/* -------------------------------------------------------------
 * Sushma Pure Desi Ghee - Clean White Luxury Design System
 * Ghosh Dairy & Farm
 * ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --gold-primary: #D4AF37;
    --gold-light: #FCE89E;
    --gold-dark: #B8860B;
    --gold-gradient: linear-gradient(135deg, #E6C453 0%, #D4AF37 50%, #B8860B 100%);
    --emerald-dark: #07221A;
    --emerald-deep: #0D3B2E;
    --emerald-accent: #155E4A;
    
    --bg-body: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-alt: #F8FAF8;

    --border-color: #E2E8F0;
    --border-gold: rgba(212, 175, 55, 0.35);

    --text-dark: #0F172A;
    --text-muted: #64748B;
    --text-light: #F8FAFC;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 14px 30px rgba(0, 0, 0, 0.1);

    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
    color: var(--emerald-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Clean White Card */
.white-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.white-card:hover {
    border-color: #CBD5E1;
    box-shadow: var(--shadow-lg);
}

/* Gold Gradient Text */
.gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    outline: none;
    text-align: center;
}

.btn-emerald {
    background: var(--emerald-dark);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(7, 34, 26, 0.15);
}

.btn-emerald:hover {
    background: var(--emerald-accent);
    box-shadow: 0 6px 18px rgba(7, 34, 26, 0.25);
}

.btn-gold {
    background: var(--gold-gradient);
    color: #0F1412;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.45);
}

.btn-outline-emerald {
    background: transparent;
    border: 1.5px solid var(--emerald-dark);
    color: var(--emerald-dark);
}

.btn-outline-emerald:hover {
    background: var(--emerald-dark);
    color: #FFFFFF;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
}

/* Header & Navbar */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    position: relative;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--emerald-dark);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.7rem;
    color: var(--gold-dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold-dark);
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--emerald-dark);
    cursor: pointer;
    padding: 6px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 60px 0 40px 0;
    background: #FFFFFF;
    overflow: hidden;
    border-bottom: 1px solid #F1F5F9;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-dark);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--emerald-dark);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-badges {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
    flex-wrap: wrap;
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-badge-item i {
    font-size: 1.4rem;
    color: var(--gold-dark);
}

.hero-badge-item span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08));
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.section-subtitle {
    color: var(--gold-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.1rem;
    margin-bottom: 12px;
    color: var(--emerald-dark);
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background: #FFFFFF;
}

.variation-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 20px;
    border-radius: 25px;
    background: #F8FAF8;
    border: 1px solid #E2E8F0;
    color: var(--text-dark);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    background: var(--emerald-dark);
    color: #FFFFFF;
    border-color: var(--emerald-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    padding: 24px;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
}

.product-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gold-gradient);
    color: #0F1412;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
}

.product-img-box {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.product-img-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-info {
    flex-grow: 1;
}

.product-weight {
    color: var(--gold-dark);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--emerald-dark);
}

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--emerald-dark);
}

.product-mrp {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* FSSAI Badge Callout Box */
.fssai-box {
    background: #F8FAF8;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0;
}

.fssai-badge-img {
    height: 48px;
    width: auto;
}

/* Form Controls */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--emerald-dark);
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    outline: none;
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    color: var(--emerald-dark);
}

/* Footer */
.footer {
    background: var(--emerald-dark);
    color: var(--text-light);
    padding: 50px 0 25px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 35px;
    margin-bottom: 35px;
}

.footer-title {
    font-size: 1.05rem;
    color: var(--gold-light);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #CBD5E1;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #94A3B8;
    font-size: 0.82rem;
}

/* Studio Secret Label Card Styling */
.label-preview-card {
    background: #FFFFFF;
    color: #1A1A1A;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border: 3px solid #D4AF37;
    position: relative;
}

.label-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.label-brand-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #07221A;
}

.label-weight-badge {
    background: #07221A;
    color: #FFE082;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

.label-preview-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.label-details p {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #333;
}

.label-details strong {
    color: #07221A;
}

.label-codes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #F8F9FA;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
}

.label-preview-footer {
    border-top: 1px solid #E2E8F0;
    padding-top: 8px;
    text-align: center;
    font-size: 0.72rem;
    color: #4A5568;
}

/* Print Styling */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-area, #printable-area * {
        visibility: visible;
    }
    #printable-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print {
        display: none !important;
    }
}

/* =============================================================
   RESPONSIVE MEDIA QUERIES (MOBILE, TABLET, DESKTOP)
   ============================================================= */

/* Tablet & Below (<= 992px) */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-tag {
        margin: 0 auto 16px auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-main-img {
        max-height: 320px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid #E2E8F0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        display: none;
    }

    .nav-links.mobile-active {
        display: flex;
    }
}

/* Mobile Phones (<= 640px) */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .brand-title {
        font-size: 1.15rem;
    }

    .brand-subtitle {
        font-size: 0.62rem;
        letter-spacing: 1px;
    }

    .brand-logo img {
        height: 40px;
    }

    .hero {
        padding: 40px 0 30px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .products-grid {
        grid-template-columns: 1fr; /* Full 1-column on mobile phones */
        gap: 20px;
    }

    .product-card {
        padding: 20px;
    }

    .product-img-box {
        height: 170px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .btn {
        width: 100%; /* Touch friendly full width buttons on phones */
    }

    .nav-actions {
        width: auto;
    }

    .nav-actions .btn {
        width: auto;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .fssai-box {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        padding: 20px;
    }
}

/* Small Phones (<= 380px) */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .brand-title {
        font-size: 1rem;
    }
}
