@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    /* Premium Color Palette (No Purple) */
    --gold: #D4AF37;
    --gold-light: #F9F1D0;
    --charcoal: #1A1A1A;
    --cream: #FAF9F6;
    --ivory: #FFFDF5;
    --bronze: #8B5A2B;
    --sand: #C4A484;

    /* Semantic Colors */
    --primary: var(--sand);
    --secondary: var(--charcoal);
    --accent: var(--gold);
    --bg: var(--cream);
    --text: var(--charcoal);
    --text-muted: #6B7280;

    /* Glassmorphism & Depth */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.05);

    /* Spacing & Scaling */
    --radius-sharp: 2px;
    --radius-premium: 16px;
    --container-max: 560px;

    /* Animation Tokens */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(196, 164, 132, 0.03) 0%, transparent 20%);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* --- Hero Section --- */
header {
    text-align: center;
    margin-bottom: 4rem;
}

.brand-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sharp);
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* --- Product List --- */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: var(--radius-premium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.5s var(--ease-out-expo);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform 0.3s var(--ease-out-expo);
}

.product-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: var(--gold);
}

.product-card:hover::before {
    transform: scaleY(1);
}

.product-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.2rem;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.arrow-icon {
    width: 40px;
    height: 40px;
    background: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: all 0.3s ease;
}

.product-card:hover .arrow-icon {
    background: var(--gold);
    color: white;
    transform: rotate(-45deg);
}

/* --- Modal Overlay (Slide-up) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-sheet {
    background: var(--ivory);
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    border-radius: 32px 32px 0 0;
    padding: 3rem 2rem;
    transform: translateY(100%);
    transition: transform 0.6s var(--ease-out-expo);
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .modal-sheet {
    transform: translateY(0);
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: #e2e2e2;
    border-radius: 2px;
    margin: 0 auto 2rem;
}

/* --- Nutritional Table Premium --- */
.nutri-header {
    margin-bottom: 2rem;
}

.nutri-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.serving-badge {
    display: inline-block;
    background: var(--charcoal);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
}

.nutri-table {
    width: 100%;
    border-collapse: collapse;
}

.nutri-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nutri-row:last-child {
    border-bottom: none;
}

.nutri-label {
    font-weight: 600;
    color: var(--secondary);
}

.nutri-value {
    color: var(--gold);
    font-weight: 700;
}

.daily-values-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2rem;
    line-height: 1.4;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 8px;
}

/* --- Staggered Animations --- */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.8s var(--ease-out-expo) forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Adjustments --- */
@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }

    .modal-sheet {
        padding: 2rem 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--sand);
    border-radius: 10px;
}

@media print {
    body * {
        visibility: hidden;
    }

    #printableLabel,
    #printableLabel * {
        visibility: visible;
    }

    #printableLabel {
        position: absolute;
        left: 50%;
        top: 20%;
        transform: translateX(-50%);
        border: none !important;
    }

    .modal-overlay,
    .modal-sheet {
        background: white !important;
        backdrop-filter: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}