/* ============================================
   AstroGems - Complete Stylesheet (PHP version)
   Replaces Tailwind CSS with hand-crafted CSS
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --orange-50: #fff7ed;
    --orange-600: #ea580c;
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --red-50: #fef2f2;
    --red-200: #fecaca;
    --red-600: #dc2626;
    --red-800: #991b1b;
    --blue-100: #dbeafe;
    --blue-800: #1e40af;
    --emerald-100: #d1fae5;
    --emerald-800: #065f46;
    --purple-100: #f3e8ff;
    --purple-800: #6b21a8;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

html { scroll-behavior: smooth; }
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
input, select, textarea { font: inherit; }

/* ---------- Layout ---------- */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.flex-1 { flex: 1; }

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--amber-600);
    color: var(--white);
    text-align: center;
    font-size: 0.75rem;
    padding: 0.375rem 1rem;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 30;
    border-bottom: 1px solid var(--gray-200);
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem; max-width: 80rem; margin: 0 auto;
}
@media (min-width: 1024px) { .header-inner { padding: 0.75rem 2rem; } }

.logo { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.logo-img {
    height: 1.75rem; width: auto; object-fit: contain;
    border-radius: var(--radius-sm);
}
.logo-text { font-size: 1rem; font-weight: 700; color: var(--gray-900); letter-spacing: -0.025em; }

.desktop-nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .desktop-nav { display: flex; } }
.nav-link {
    padding: 0.5rem 0.75rem; border-radius: 0.375rem;
    font-size: 0.875rem; font-weight: 500; color: var(--gray-700);
    transition: all 0.15s;
}
.nav-link:hover { background: var(--amber-50); color: var(--amber-700); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.verify-link {
    display: none; align-items: center; gap: 0.25rem; padding: 0.5rem 0.75rem;
    border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500;
    color: var(--gray-600); transition: background 0.15s;
}
.verify-link:hover { background: var(--gray-100); }
@media (min-width: 640px) { .verify-link { display: flex; } }

.cart-btn {
    position: relative; padding: 0.5rem; border-radius: 0.375rem;
    color: var(--gray-700); background: none; border: none; transition: background 0.15s;
}
.cart-btn:hover { background: var(--gray-100); }
.cart-badge {
    position: absolute; top: -0.25rem; right: -0.25rem;
    width: 1.25rem; height: 1.25rem; border-radius: var(--radius-full);
    background: var(--amber-600); color: var(--white);
    font-size: 0.75rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.mobile-toggle {
    padding: 0.5rem; border-radius: 0.375rem; color: var(--gray-700);
    background: none; border: none; transition: background 0.15s;
}
.mobile-toggle:hover { background: var(--gray-100); }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

.mobile-nav {
    display: none; flex-direction: column; gap: 0.25rem;
    border-top: 1px solid var(--gray-200); padding: 1rem;
    background: var(--white);
}
.mobile-nav.open { display: flex; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
.mobile-nav-link {
    padding: 0.625rem 0.75rem; border-radius: 0.375rem;
    font-size: 0.875rem; font-weight: 500; color: var(--gray-700);
}
.mobile-nav-link:hover { background: var(--amber-50); color: var(--amber-700); }

.icon { width: 1rem; height: 1rem; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }

/* ---------- Main Content ---------- */
.main-content { min-height: 100vh; }

/* ---------- Hero Banner ---------- */
.hero-banner {
    background: #1b2a4a;
    overflow: hidden;
    position: relative;
}
.hero-banner-inner {
    display: flex;
    min-height: 360px;
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
}
.hero-left {
    flex: 1;
    padding: 2.5rem 1.5rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    max-width: 50%;
}
.hero-subtitle {
    color: #c0c8d8;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}
.hero-brand-name {
    font-size: 2.75rem;
    font-weight: 800;
    color: #f5c518;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}
@media (min-width: 640px) { .hero-brand-name { font-size: 3.5rem; } }
@media (min-width: 1024px) { .hero-brand-name { font-size: 4rem; } }
.hero-services {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 440px;
    margin-bottom: 1.5rem;
}
.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.hero-consult-btn {
    display: inline-block;
    background: #f5c518;
    color: #1b2a4a;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    padding: 0.75rem 2rem;
    border: 2px solid #f5c518;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.hero-consult-btn:hover {
    background: transparent;
    color: #f5c518;
}
.hero-zodiac {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}
@media (max-width: 480px) { .hero-zodiac { display: none; } }
.hero-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #f5c518;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}
.hero-phone:hover { color: #fff; }
.hero-phone-icon { width: 1.25rem; height: 1.25rem; }

/* Right side — yellow accent */
.hero-right {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
}
@media (min-width: 768px) { .hero-right { display: block; } }
@media (min-width: 1024px) { .hero-right { width: 55%; } }

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Hero Banner Slideshow */
.hero-banner-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.hero-banner-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
    will-change: transform;
}
.hero-banner-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-banner-prev,
.hero-banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.35);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 20px;
    z-index: 2;
    line-height: 1;
}
.hero-banner-prev { left: 8px; }
.hero-banner-next { right: 8px; }
.hero-banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.hero-banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    border: none;
    padding: 0;
}
.hero-banner-dot.active {
    background: #fff;
}

/* Mobile: full-width banner */
@media (max-width: 767px) {
    .hero-banner-inner { flex-direction: column; }
    .hero-left { padding: 2rem 1.25rem 2rem; text-align: center; align-items: center; max-width: 100%; }
    .hero-cta-row { justify-content: center; }
    .hero-phone { justify-content: center; }
    .hero-right { display: none; }
    .hero-brand-name { font-size: 2.25rem; }
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: 1.875rem; font-weight: 700; color: var(--gray-900); }
.section-subtitle { margin-top: 0.75rem; color: var(--gray-600); }
.section-header-flex { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.view-all-link { display: none; align-items: center; gap: 0.25rem; font-size: 0.875rem; font-weight: 500; color: var(--amber-700); }
.view-all-link:hover { color: var(--amber-800); }
@media (min-width: 640px) { .view-all-link { display: flex; } }

.page-title { font-size: 1.875rem; font-weight: 700; color: var(--gray-900); }
.page-subtitle { margin-top: 0.75rem; color: var(--gray-600); }
.page-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    border-radius: var(--radius-full); padding: 0.375rem 1rem; margin-bottom: 1rem;
    font-size: 0.875rem; font-weight: 500;
    background: var(--amber-100); color: var(--amber-800);
}
.page-badge-green { background: var(--green-100); color: var(--green-800); }

/* ---------- Collections Grid ---------- */
.collections-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .collections-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.collection-card {
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
    border: 1px solid var(--gray-200); background: var(--white);
    border-radius: var(--radius); padding: 1.5rem; text-align: center;
    box-shadow: var(--shadow-sm); transition: all 0.2s;
}
.collection-card:hover { box-shadow: var(--shadow-md); border-color: var(--amber-200); transform: translateY(-2px); }
.collection-icon { font-size: 2.5rem; transition: transform 0.2s; }
.collection-card:hover .collection-icon { transform: scale(1.1); }
.collection-title { font-size: 1.125rem; font-weight: 600; color: var(--gray-900); }
.collection-card:hover .collection-title { color: var(--amber-700); }
.collection-desc { font-size: 0.875rem; color: var(--gray-500); }

/* ---------- Products Grid ---------- */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .products-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
@media (min-width: 768px) { .products-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.product-card {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--gray-200); background: var(--white);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card-image {
    position: relative; width: 100%; padding-top: 100%; overflow: hidden;
    background: var(--gray-50);
}
.product-card-image img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.3s;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-400);
}
.product-card-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; flex: 1; }
.product-card-title {
    font-size: 0.875rem; font-weight: 500; color: var(--gray-900);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card:hover .product-card-title { color: var(--amber-700); }
.product-card-price { margin-top: auto; padding-top: 0.5rem; font-size: 1.125rem; font-weight: 700; color: var(--gray-900); }

/* ---------- Steps ---------- */
.steps-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
    position: relative; text-align: center;
    border: 1px solid var(--gray-200); background: var(--white);
    border-radius: var(--radius); padding: 2rem;
}
.step-number {
    position: absolute; top: -1rem; left: 50%; transform: translateX(-50%);
    background: var(--amber-600); color: var(--white);
    border-radius: var(--radius-full); padding: 0.25rem 0.75rem;
    font-size: 0.875rem; font-weight: 700;
}
.step-icon { font-size: 2.5rem; }
.step-title { margin-top: 1rem; font-size: 1.125rem; font-weight: 600; color: var(--gray-900); }
.step-desc { margin-top: 0.5rem; font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; }

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    padding: 4rem 0;
}
.cta-title { font-size: 1.875rem; font-weight: 700; color: var(--white); }
.cta-text { margin-top: 1rem; font-size: 1.125rem; color: #fef3c7; }
.cta-actions { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }
@media (min-width: 640px) { .cta-actions { flex-direction: row; } }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
    border: 1px solid var(--gray-200); background: var(--white);
    border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.review-stars { display: flex; align-items: center; gap: 0.25rem; }
.review-stars-sm .star { font-size: 0.875rem; }
.review-stars-md .star { font-size: 1rem; }
.review-stars-lg .star { font-size: 1.25rem; }
.star-full { color: var(--amber-400); }
.star-half { color: var(--amber-400); opacity: 0.6; }
.star-empty { color: var(--gray-300); }
.star-sm { font-size: 0.75rem; }
.review-count { font-size: 0.75rem; color: var(--gray-500); margin-left: 0.25rem; }
.review-text { margin-top: 0.75rem; font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; }
.review-footer { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; }
.review-name { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); }
.review-location { font-size: 0.75rem; color: var(--gray-500); }
.review-product-badge {
    font-size: 0.75rem; font-weight: 500; color: var(--amber-700);
    background: var(--amber-50); border-radius: var(--radius-full);
    padding: 0.25rem 0.75rem;
}

.reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.review-card-full {
    border: 1px solid var(--gray-200); background: var(--white);
    border-radius: var(--radius); padding: 1.5rem;
}
.review-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.75rem; }
.review-author { display: flex; align-items: center; gap: 0.75rem; }
.review-avatar {
    width: 2.5rem; height: 2.5rem; border-radius: var(--radius-full);
    background: var(--amber-100); color: var(--amber-800);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; font-weight: 700;
}
.review-author-name { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); display: flex; align-items: center; gap: 0.5rem; }
.verified-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.75rem; font-weight: 500; color: var(--green-700);
    background: var(--green-100); border-radius: var(--radius-full); padding: 0.125rem 0.5rem;
}
.review-meta { font-size: 0.75rem; color: var(--gray-500); }
.review-product-link { font-size: 0.875rem; color: var(--amber-700); font-weight: 500; }
.review-body { margin-top: 0.75rem; font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; }
.review-card-footer { margin-top: 0.75rem; }
.helpful-btn {
    background: none; border: 1px solid var(--gray-200); border-radius: var(--radius-full);
    padding: 0.25rem 0.75rem; font-size: 0.75rem; color: var(--gray-600); cursor: pointer;
}
.helpful-btn:hover { background: var(--gray-50); }

.review-summary { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .review-summary { flex-direction: row; justify-content: space-between; } }
.review-summary-left { text-align: center; }
@media (min-width: 768px) { .review-summary-left { text-align: left; } }
.review-summary-score { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.review-big-number { font-size: 2.5rem; font-weight: 700; color: var(--gray-900); }
.review-summary-right { width: 100%; max-width: 20rem; display: flex; flex-direction: column; gap: 0.375rem; }
.rating-bar { display: flex; align-items: center; gap: 0.5rem; }
.rating-bar-label { font-size: 0.75rem; color: var(--gray-500); width: 0.75rem; }
.rating-bar-track { flex: 1; height: 0.5rem; border-radius: var(--radius-full); background: var(--gray-200); }
.rating-bar-fill { height: 100%; border-radius: var(--radius-full); background: var(--amber-400); }
.rating-bar-count { font-size: 0.75rem; color: var(--gray-500); width: 1.5rem; }

/* ---------- Badges ---------- */
.badge-list { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.badge {
    display: inline-flex; align-items: center;
    border: 1px solid var(--gray-200); border-radius: var(--radius-full);
    padding: 0.125rem 0.5rem; font-size: 0.75rem; font-weight: 500;
}
.badge-certified { background: var(--green-100); color: var(--green-800); border-color: var(--green-200); }
.badge-ethically-sourced { background: var(--emerald-100); color: var(--emerald-800); border-color: #a7f3d0; }
.badge-free-shipping { background: var(--blue-100); color: var(--blue-800); border-color: #bfdbfe; }

/* ---------- Trust Chips ---------- */
.trust-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 768px) { .trust-chips { gap: 2rem; } }
.trust-chips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .trust-chips-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-chip { display: flex; align-items: center; gap: 0.75rem; }
.trust-chips-grid .trust-chip { border: 1px solid var(--gray-200); background: var(--white); padding: 1rem; border-radius: 0.5rem; }
.trust-chip-icon { font-size: 1.5rem; }
.trust-chip-label { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); }
.trust-chip-desc { font-size: 0.75rem; color: var(--gray-500); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    border-radius: 0.5rem; font-weight: 600; border: none;
    transition: all 0.15s; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--amber-600); color: var(--white); padding: 0.875rem 2rem; font-size: 1rem; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--amber-700); }
.btn-secondary { background: var(--white); color: var(--gray-700); padding: 0.875rem 2rem; font-size: 1rem; border: 1px solid var(--gray-300); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--gray-50); }
.btn-white { background: var(--white); color: var(--amber-700); padding: 0.875rem 2rem; font-size: 1rem; box-shadow: var(--shadow-sm); }
.btn-white:hover { background: var(--amber-50); }
.btn-outline-white { background: transparent; color: var(--white); padding: 0.875rem 2rem; font-size: 1rem; border: 1px solid rgba(255,255,255,.3); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-full { width: 100%; }
.btn-disabled { background: var(--gray-300); color: var(--gray-500); cursor: not-allowed; padding: 1rem 2rem; font-size: 1.125rem; }
.btn-whatsapp { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-200); }
.btn-whatsapp:hover { background: var(--green-100); }
.btn-icon { width: 1rem; height: 1rem; }
.btn-text { background: none; border: none; color: var(--gray-500); font-size: 0.875rem; text-align: center; }
.btn-text:hover { color: var(--gray-700); }

.link-amber { font-size: 0.875rem; font-weight: 500; color: var(--amber-700); }
.link-amber:hover { color: var(--amber-800); }
.link-muted { font-size: 0.875rem; color: var(--gray-500); }
.link-muted:hover { color: var(--gray-700); }

/* ---------- Product Detail ---------- */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.875rem; color: var(--gray-500); }
.breadcrumb a:hover { color: var(--amber-700); }
.breadcrumb-current { color: var(--gray-900); font-weight: 500; }

.product-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .product-layout { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.product-main-image {
    position: relative; width: 100%; padding-top: 100%; overflow: hidden;
    border-radius: var(--radius-lg); background: var(--gray-100);
}
.product-main-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-image-placeholder {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.product-image-placeholder span { font-size: 8rem; }

.product-thumbnails { display: flex; gap: 0.75rem; margin-top: 1rem; }
.product-thumb {
    width: 5rem; height: 5rem; overflow: hidden; border-radius: 0.5rem;
    border: 2px solid transparent; background: var(--gray-100); cursor: pointer; transition: border-color 0.15s;
}
.product-thumb:hover { border-color: var(--amber-400); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 1.5rem; }

.product-info { display: flex; flex-direction: column; gap: 1.5rem; }
.product-title { font-size: 1.875rem; font-weight: 700; color: var(--gray-900); }
.product-purpose { font-size: 1rem; font-weight: 500; color: var(--amber-700); }
.product-price { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }

.cert-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-200);
    border-radius: 0.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500;
    cursor: pointer; transition: background 0.15s;
}
.cert-btn:hover { background: var(--green-100); }

.product-trust-inline { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.875rem; color: var(--gray-600); }
.product-actions { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .product-actions { flex-direction: row; } }

.specs-table { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.spec-row { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-200); }
.spec-row:last-child { border-bottom: none; }
.spec-label { font-size: 0.875rem; color: var(--gray-500); }
.spec-value { font-size: 0.875rem; font-weight: 500; color: var(--gray-900); }

/* ---------- Product Tabs ---------- */
.product-tabs { margin-top: 3rem; border-top: 1px solid var(--gray-200); padding-top: 2rem; }
.tabs-nav { display: flex; gap: 2rem; border-bottom: 1px solid var(--gray-200); margin-bottom: 1.5rem; }
.tab-btn {
    background: none; border: none; padding-bottom: 0.75rem;
    font-size: 0.875rem; font-weight: 500; color: var(--gray-500); cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.15s;
}
.tab-btn:hover { color: var(--gray-700); }
.tab-btn.active { color: var(--amber-700); border-bottom-color: var(--amber-600); }
.tab-content h3 { font-size: 1.125rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.75rem; }
.prose { font-size: 0.875rem; color: var(--gray-600); line-height: 1.75; }
.astro-box { background: var(--amber-50); border: 1px solid var(--amber-200); border-radius: var(--radius); padding: 1.5rem; }
.astro-box p { font-size: 0.875rem; color: var(--gray-700); margin-bottom: 0.75rem; }
.astro-box p:last-child { margin-bottom: 0; }
.wear-box { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; }
.wear-box p { font-size: 0.875rem; color: var(--gray-700); line-height: 1.6; }
.reviews-placeholder { text-align: center; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 2rem; }

/* ---------- Modal ---------- */
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 50;
    background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
}
.modal-overlay.open { display: block; }
.modal {
    display: none; position: fixed; z-index: 51;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: calc(100% - 2rem); max-width: 28rem;
    background: var(--white); border-radius: var(--radius-lg);
    padding: 1.5rem; box-shadow: var(--shadow-xl);
}
.modal.open { display: block; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-header h3 { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); }
.close-btn { background: none; border: none; font-size: 1.5rem; color: var(--gray-400); cursor: pointer; padding: 0.25rem; line-height: 1; }
.close-btn:hover { color: var(--gray-600); }

.cert-badge-large {
    width: 5rem; height: 5rem; border-radius: var(--radius-full);
    background: var(--green-100); display: flex; align-items: center; justify-content: center;
    margin: 0 auto; color: var(--green-600);
}
.cert-details { border: 1px solid var(--gray-200); border-radius: 0.5rem; overflow: hidden; }
.cert-row { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-200); }
.cert-row:last-child { border-bottom: none; }
.cert-row-label { font-size: 0.875rem; color: var(--gray-500); }
.cert-row-value { font-size: 0.875rem; font-weight: 500; color: var(--gray-900); }
.mono { font-family: 'Courier New', monospace; }
.truncate { max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Certificate Verify Page ---------- */
.cert-icon-large {
    width: 4rem; height: 4rem; border-radius: var(--radius-full);
    background: var(--green-100); color: var(--green-600);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}
.cert-form { margin-bottom: 2rem; }
.cert-form-row { display: flex; gap: 0.75rem; }
.cert-form-row input { flex: 1; padding: 0.75rem 1rem; border: 1px solid var(--gray-300); border-radius: 0.5rem; font-size: 0.875rem; }
.cert-form-row input:focus { border-color: var(--amber-500); outline: none; box-shadow: 0 0 0 2px rgba(217,119,6,.2); }

.cert-result { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.cert-status { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.5rem; }
.cert-status-ok { background: var(--green-50); border-bottom: 1px solid var(--green-200); }
.cert-status-fail { background: var(--red-50); border-bottom: 1px solid var(--red-200); }
.cert-status-icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; }
.cert-status-icon-ok { background: var(--green-100); color: var(--green-600); }
.cert-status-icon-fail { background: #fee2e2; color: var(--red-600); }
.cert-status-title { font-weight: 600; font-size: 0.875rem; }
.cert-status-ok .cert-status-title { color: var(--green-800); }
.cert-status-fail .cert-status-title { color: var(--red-800); }
.cert-status-text { font-size: 0.875rem; }
.cert-status-ok .cert-status-text { color: var(--green-600); }
.cert-status-fail .cert-status-text { color: var(--red-600); }

.cert-info { border-top: 1px solid var(--gray-200); padding-top: 2rem; }
.cert-info h3 { font-size: 1.125rem; font-weight: 600; color: var(--gray-900); margin-bottom: 1rem; }
.cert-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 640px) { .cert-info-grid { grid-template-columns: 1fr; } }
.cert-info-item { text-align: center; }
.cert-info-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.cert-info-item h4 { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.25rem; }
.cert-info-item p { font-size: 0.75rem; color: var(--gray-500); }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.card-header { background: var(--gray-50); padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-200); }
.card-header h2 { font-size: 1.125rem; font-weight: 600; color: var(--gray-900); }
.card-header p { font-size: 0.875rem; color: var(--gray-500); }
.card-body { padding: 1.5rem; }
.card-title { font-size: 1.125rem; font-weight: 600; color: var(--gray-900); padding: 1.5rem 1.5rem 0; }
.card-highlight { background: var(--amber-50); border-color: var(--amber-200); padding: 1.5rem; }
.card-highlight h3 { font-size: 0.875rem; font-weight: 600; color: var(--amber-800); margin-bottom: 0.5rem; }
.card-highlight p { font-size: 0.875rem; color: var(--amber-800); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.75rem; color: var(--gray-500); margin-bottom: 0.25rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.625rem 0.75rem; border: 1px solid var(--gray-300);
    border-radius: 0.5rem; font-size: 0.875rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--amber-500); outline: none;
    box-shadow: 0 0 0 2px rgba(217,119,6,.2);
}
.form-title { font-size: 0.875rem; font-weight: 500; color: var(--gray-700); margin-bottom: 1rem; }
.form-row-3 { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .form-row-3 { grid-template-columns: repeat(3, 1fr); } }
.divider { border-top: 1px solid var(--gray-200); margin: 1.5rem 0; }

/* ---------- Consult Page ---------- */
.two-col-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .two-col-layout { grid-template-columns: 1fr 1fr; } }
.consult-benefits { display: flex; flex-direction: column; gap: 1.5rem; }
.benefit-list { list-style: none; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.benefit-item { display: flex; gap: 1rem; }
.benefit-icon {
    flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
    background: var(--amber-50); display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.benefit-item h3 { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); }
.benefit-item p { font-size: 0.875rem; color: var(--gray-600); }
.astrologer-profile { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; }
.astrologer-avatar {
    width: 3.5rem; height: 3.5rem; border-radius: var(--radius-full);
    background: var(--amber-100); display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.astrologer-name { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); }
.astrologer-exp { font-size: 0.75rem; color: var(--gray-500); }
.calendly-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 2px dashed var(--gray-300); border-radius: 0.5rem;
    padding: 3rem; text-align: center;
}
.calendly-placeholder p { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 1rem; }
.consult-form { display: flex; flex-direction: column; }

/* ---------- Quiz (Recommend Page) ---------- */
.quiz-form { display: flex; flex-direction: column; gap: 2rem; }
.quiz-section {
    border: 1px solid var(--gray-200); background: var(--white);
    border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.quiz-section-title { font-size: 1.25rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.25rem; }
.quiz-section-subtitle { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 1.5rem; }

.option-grid { display: grid; gap: 0.75rem; }
.option-grid-2 { grid-template-columns: repeat(2, 1fr); }
.option-card {
    display: flex; align-items: center; gap: 0.75rem;
    border: 2px solid var(--gray-200); border-radius: 0.5rem;
    padding: 1rem; cursor: pointer; transition: all 0.15s;
}
.option-card-center { flex-direction: column; text-align: center; padding: 1.5rem; }
.option-card:hover { border-color: var(--gray-300); }
.option-card:has(.option-input:checked) { border-color: var(--amber-500); background: var(--amber-50); }
.option-input { display: none; }
.option-icon { font-size: 1.5rem; }
.option-icon-lg { font-size: 2rem; }
.option-label { font-size: 0.875rem; font-weight: 500; color: var(--gray-900); }

.option-list { display: flex; flex-direction: column; gap: 0.75rem; }
.option-row {
    display: flex; align-items: center;
    border: 2px solid var(--gray-200); border-radius: 0.5rem;
    padding: 0.875rem 1rem; cursor: pointer; transition: all 0.15s;
}
.option-row:hover { border-color: var(--gray-300); }
.option-row:has(.option-input:checked) { border-color: var(--amber-500); background: var(--amber-50); }

.text-muted { color: var(--gray-400); }

/* ---------- Filters ---------- */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.filter-label { font-size: 0.875rem; color: var(--gray-500); padding: 0.375rem 0; }
.filter-btn {
    border: 1px solid var(--gray-200); border-radius: var(--radius-full);
    padding: 0.375rem 1rem; font-size: 0.875rem; color: var(--gray-700);
    background: var(--white); cursor: pointer; transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--amber-300); background: var(--amber-50); color: var(--amber-700); }
.filter-btn-active { background: var(--amber-600); color: var(--white); border-color: var(--amber-600); }

/* ---------- Cart Drawer ---------- */
.cart-overlay {
    display: none; position: fixed; inset: 0; z-index: 40;
    background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
}
.cart-overlay.open { display: block; }
.cart-drawer {
    position: fixed; top: 0; right: -100%; bottom: 0; z-index: 50;
    width: 100%; max-width: 28rem; background: var(--white);
    box-shadow: var(--shadow-xl); display: flex; flex-direction: column;
    transition: right 0.3s ease;
}
.cart-drawer.open { right: 0; }
.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-200); }
.cart-drawer-header h2 { font-size: 1.125rem; font-weight: 600; color: var(--gray-900); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-drawer-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); display: flex; flex-direction: column; gap: 0.75rem; }
.cart-total { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; font-weight: 600; }
.empty-cart-msg { text-align: center; color: var(--gray-500); padding: 4rem 0; }

.cart-item {
    display: flex; gap: 1rem; padding: 0.75rem;
    border: 1px solid var(--gray-200); border-radius: 0.5rem; margin-bottom: 0.75rem;
}
.cart-item-image {
    width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden;
    border-radius: 0.375rem; background: var(--gray-100);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cart-item-title { font-size: 0.875rem; font-weight: 500; color: var(--gray-900); }
.cart-item-variant { font-size: 0.75rem; color: var(--gray-500); }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.cart-item-qty { font-size: 0.75rem; color: var(--gray-500); }
.cart-item-price { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); }
.cart-remove-btn { background: none; border: none; font-size: 0.75rem; color: var(--red-600); cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--gray-200); background: var(--gray-50); }
.site-footer .container { padding-top: 3rem; padding-bottom: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: span 2; }
@media (min-width: 768px) { .footer-brand { grid-column: span 1; } }
.footer-desc { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; margin-top: 1rem; }
.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-icon {
    width: 2.25rem; height: 2.25rem; border-radius: var(--radius-full);
    background: var(--gray-200); color: var(--gray-600);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    transition: all 0.15s;
}
.social-icon:hover { background: var(--amber-100); color: var(--amber-700); }
.footer-heading { font-size: 0.75rem; font-weight: 600; color: var(--gray-900); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--gray-600); transition: color 0.15s; }
.footer-links a:hover { color: var(--amber-700); }
.footer-trust {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem;
    border-top: 1px solid var(--gray-200); margin-top: 2.5rem; padding-top: 2rem;
}
.trust-badge-sm { font-size: 0.75rem; font-weight: 500; color: var(--gray-600); }
.footer-copy { margin-top: 1.5rem; text-align: center; font-size: 0.75rem; color: var(--gray-400); }

/* ---------- Error / Empty States ---------- */
.center-message { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; text-align: center; padding: 2rem; }
.center-message h1 { font-size: 2.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.center-message p { color: var(--gray-600); margin-bottom: 2rem; max-width: 28rem; }
.big-emoji { font-size: 3.75rem; margin-bottom: 1rem; display: block; }
.empty-state { text-align: center; padding: 4rem 0; }
.empty-state h2 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-top: 1rem; }
.empty-state p { color: var(--gray-600); margin-bottom: 2rem; }

.success-message { text-align: center; padding: 2rem; }
.success-message h3 { font-size: 1.125rem; font-weight: 600; color: var(--gray-900); margin-top: 0.5rem; }
.success-message p { color: var(--gray-600); }
.error-message { background: var(--red-50); border: 1px solid var(--red-200); color: var(--red-800); padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; margin-bottom: 1rem; }

/* ---------- Responsive Helpers ---------- */
@media (max-width: 639px) {
    .hero-title { font-size: 2rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .collections-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c5c5c5; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a0a0a0; }
