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

:root {
    /* Brooklyn Minimalist Palette */
    --color-bg: #FFFFFF;
    --color-dark: #4b2e2e;
    --color-gold: #EFEFEF;
    --color-accent: #F5F5F5;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing */
    --container: 1400px;
    /* Wider container */
    --radius: 0px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-dark);
}

p {
    font-weight: 300;
    color: #4A4A4A;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.4s ease;
}

/* UTILS */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--color-gold);
}

.hero {
    color: rgb(255, 255, 255);
    text-align: center;
    --mask: radial-gradient(181.12px at 50% calc(100% - 243px), #000 99%, #0000 101%) calc(50% - 162px) 0 / 324px 100%, radial-gradient(181.12px at 50% calc(100% + 162px), #0000 99%, #000 101%) 50% calc(100% - 81px) / 324px 100% repeat-x;
    background: rgb(75, 46, 46);
    padding: 60px 20px;
    mask: var(--mask);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-dark);
}

.nav-links a:hover {
    opacity: 0.6;
}

.btn-gold {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-dark);
    color: var(--color-white) !important;
    border: 2px solid var(--color-dark);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    /* Minimalist rounding */
    box-shadow: none;
}



/* HEADER */
.site-header {
    position: relative;
    /* Not fixed anymore, standard layout */
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: var(--color-white);
    border-bottom: 1px solid #eee;
}

.site-header.scrolled {
    position: fixed;
    top: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Ensures vertical centering */
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-dark);
    font-weight: 800;
    letter-spacing: -1px;
    text-align: center;
}

.site-header.scrolled .logo {
    color: var(--color-dark);
}

/* HERO */
.hero {
    height: 80vh;
    background: url('../image/hero_premium.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    /* Lighter overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 900px;
}

.hero h1 {
    font-size: 5rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 800;
}

.hero p.title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 800;
}

.hero p {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 500;
}

/* ANIMATION STATES */

.composer-main {
    color: var(--color-gold);
    margin-bottom: 20px;
    opacity: 0;
    /* For GSAP */
    transform: translateY(30px);
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 40px;
    opacity: 0;
    /* For GSAP */
    transform: translateY(30px);
}

.hero .btn-gold {
    background: var(--color-dark);
    color: var(--color-white);
    border: 1px solid var(--color-white);
    opacity: 0;
    /* For GSAP */
    transform: translateY(30px);
}

/* SECTIONS */
section {
    padding: 100px 0;
}

/* ABOUT */
.about-grid {
    display: block;
    text-align: center;
    gap: 80px;
    align-items: center;
}

.about-grid h2 {
    text-align: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    display: block;
}

.about-img::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-gold);
    z-index: -1;
}

/* COOKIES */
.cookies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Strict 3 columns like Batch */
    gap: 20px;
}

.cookie-card {
    text-align: left;
    /* Batch style often left aligned */
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: 0.3s;
}

.cookie-card:hover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: none;
}

.cookie-card img {
    width: 100%;
    height: 400px;
    /* Tall vertical images */
    object-fit: cover;
    border-radius: 0;
    /* Sharp corners */
    margin-bottom: 15px;
    transition: 0.4s;
}

.cookie-card:hover img {
    transform: scale(1.02);
    rotate: 0deg;
    /* No rotation */
}

.cookie-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-dark);
    font-weight: 700;
}

.cookie-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.cookie-card .price {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 1rem;
    display: block;
}

@media (max-width: 900px) {
    .cookies-grid {
        grid-template-columns: 1fr;
    }
}

/* BOXES */
.boxes-section {
    background: #f9f9f9;
    color: var(--color-dark);
}

.boxes-section .section-title {
    color: var(--color-dark);
}

.boxes-section p {
    color: #666;
}

.boxes-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.box-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px;
    width: 300px;
    text-align: center;
    transition: 0.4s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.box-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.box-card h3,
.box-card p,
.box-card .box-price {
    color: var(--color-dark);
}

.box-card h3 {
    margin-bottom: 10px;
    font-weight: 700;
}

.box-card .box-price {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    display: block;
    margin-bottom: 20px;
}

.box-card .btn-gold {
    background: var(--color-dark);
    color: var(--color-white);
}

/* FOOTER */
.site-footer {
    background: #fff;
    color: var(--color-dark);
    padding: 80px 0 40px;
    text-align: center;
    border-top: 1px solid #eee;
}

.site-footer .logo {
    color: var(--color-dark);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-links a {
    color: #666;
    margin: 0 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.copyright {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #999;
}

/* COMPOSER SPECIFIC */
.composer-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 100px;
    min-height: 80vh;
}

.composer-main {
    background: var(--color-white);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.composer-sidebar {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 40px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Box Selection */
.box-options {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.box-option {
    border: 2px solid #eee;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    text-align: center;
}

.box-option:hover,
.box-option.active {
    border-color: var(--color-gold);
    background: rgba(197, 160, 89, 0.05);
}

/* Visual Builder */
.visual-box {
    background: #F9F9F9;
    border: 2px dashed #ddd;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.cookie-slot {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.cookie-slot.empty::before {
    content: '+';
    font-size: 2rem;
    color: #ddd;
}

.cookie-slot.filled {
    border-color: var(--color-gold);
}

.cookie-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.flavors-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.flavor-item {
    text-align: center;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.flavor-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.flavor-item img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 10px;
}

/* Cart Sidebar */
.cart-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid var(--color-gold);
}

.cart-total {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

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

    .header-inner {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-img {
        order: -1;
    }

    /* Image on top */

    /* Composer Responsive */
    .composer-layout {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .composer-main {
        padding: 20px;
    }

    .composer-sidebar {
        position: static;
        margin-top: 40px;
        width: 100%;
    }

    .box-options {
        flex-direction: column;
        align-items: center;
    }

    .box-option {
        width: 100%;
        max-width: 300px;
        border: 2px solid #eee;
    }

    .box-option:hover,
    .box-option.active {
        border-color: var(--color-dark);
        background: transparent;
    }

    .visual-box {
        padding: 15px;
    }

    .flavors-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .boxes-grid {
        flex-direction: column;
        align-items: center;
    }

    .box-card {
        width: 100%;
        max-width: 350px;
    }

    /* Form Responsive */
    #checkout-form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* MARQUEE */
.marquee-container {
    background: var(--color-dark);
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
}

.marquee-content {
    display: inline-block;
    /* Static content */
}

@keyframes marquee {
    0% {
        transform: translateX(100vw);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 900px) {
    .marquee-container {
        white-space: nowrap;
    }

    .marquee-content {
        animation: marquee var(--marquee-duration, 15s) linear infinite;
        padding-left: 0;
        /* Ensure it moves freely */
    }
}

/* LEGAL */

.legal-section {
    padding-top: 80px;
    padding-bottom: 80px;
    min-height: 60vh;
}

.legal-section p.last-update {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
}

.legal-content-box {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.legal-block {
    margin-bottom: 30px;
}

.legal-block h2 {
    margin-bottom: 15px;
}

.legal-block a {
    color: var(--color-dark);
    font-weight: 500;
}