/* ==============================
   THE SECOND COOKIE
   Brand Website Styles
================================= */

:root {
    --brown: #624638;
    --dark-brown: #422C20;
    --light-brown: #956D4D;
    --beige: #F6EBDD;
    --cream: #EAD8C2;
    --white: #FFF9F1;
    --accent: #B77B42;
    --text-soft: #896F5D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* keeps anchor targets from hiding behind the sticky navbar */
    scroll-padding-top: 90px;
}

body {
    background-color: var(--beige);
    color: var(--brown);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

/* ===== LOADER ===== */

#loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--brown);
    color: var(--beige);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease, visibility 1s ease;
}

/* intro already played during this visit: don't show it again */
html.intro-seen #loader {
    display: none;
}

#loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-title {
    display: inline-block;
    white-space: nowrap;
    font-family: 'Anton', sans-serif;
    font-size: clamp(30px, 6vw, 70px);
    letter-spacing: 2px;
}

.loader-title::after {
    content: "|";
    display: inline-block;
    color: var(--accent);
    margin-left: 5px;
    animation: blinkCursor 0.7s infinite;
}

#loader p {
    margin-top: 15px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes blinkCursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===== NAVBAR (sticky) ===== */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 7%;
    background: var(--beige);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 900;              /* above the page, below the cart drawer (999+) */
    transition: box-shadow 0.3s;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.brand {
    color: var(--brown);
    font-family: 'Anton', sans-serif;
    font-size: 23px;
    line-height: 0.95;
    letter-spacing: 1px;
}

.brand span {
    color: var(--accent);
}

/* Cookie icon that replaces the "C" in SECOND */
.cookie-c {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin: 0 0.03em;
    vertical-align: -0.02em;
    color: inherit;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--brown);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-order {
    text-decoration: none;
    background: var(--brown);
    color: var(--beige);
    padding: 13px 24px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.nav-order:hover {
    background: var(--dark-brown);
    transform: translateY(-3px);
}

/* Cart button */

.cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--brown);
    border-radius: 50%;
    background: transparent;
    color: var(--brown);
    cursor: pointer;
    transition: 0.3s;
}

.cart-btn:hover {
    background: var(--brown);
    color: var(--beige);
}

#cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
}

.cart-btn.bump {
    animation: bump 0.4s;
}

@keyframes bump {
    50% { transform: scale(1.25); }
}

/* ===== HERO ===== */

.hero {
    display: grid;
    grid-template-columns: 0.85fr 1.25fr;
    align-items: center;
    gap: 30px;
    padding: 60px 5% 110px;
    position: relative;
    overflow: hidden;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 25px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #8C9A61;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.5); }
}

.hero-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(34px, 4.4vw, 68px);
    line-height: 1.05;
    text-transform: uppercase;
    animation: slideUp 1s ease both;
}

.hero-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    text-transform: none;
    color: var(--light-brown);
}

.hero-description {
    margin-top: 22px;
    max-width: 460px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-soft);
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
    display: inline-block;
    text-decoration: none;
    padding: 16px 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-primary {
    background: var(--brown);
    color: var(--beige);
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.btn-ghost {
    border: 1px solid var(--brown);
    color: var(--brown);
}

.btn-ghost:hover {
    background: var(--brown);
    color: var(--beige);
}

.hero-stats {
    display: flex;
    gap: 40px;
    list-style: none;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #62463833;
}

.hero-stats strong {
    display: block;
    font-family: 'Anton', sans-serif;
    font-size: 26px;
    font-weight: 400;
}

.hero-stats span {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-soft);
    text-transform: uppercase;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 800px;
    justify-self: center;
}

.hero-circle {
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--cream);
    box-shadow: 0 30px 60px rgba(66, 44, 32, 0.2);
    animation: float 5s ease-in-out infinite;
}

.hero-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    background: var(--brown);
    color: var(--beige);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 9px 14px;
    border-radius: 30px;
}

.hero-card {
    position: absolute;
    bottom: -40px;
    left: -30px;
    z-index: 2;
    width: min(340px, 78%);
    background: var(--white);
    padding: 20px 24px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(66, 44, 32, 0.18);
}

.hero-card span {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent);
}

.hero-card h2 {
    font-family: 'Anton', sans-serif;
    font-size: 22px;
    font-weight: 400;
    margin: 4px 0 8px;
    text-transform: uppercase;
}

.hero-card p {
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--text-soft);
    margin-bottom: 10px;
}

.hero-card strong {
    font-size: 18px;
}

/* ===== MARQUEE ===== */

.marquee {
    background: var(--brown);
    color: var(--beige);
    overflow: hidden;
    padding: 18px 0;
    transform: rotate(-1deg) scale(1.02);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.marquee-track span {
    font-family: 'Anton', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    white-space: nowrap;
    padding-right: 30px;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ===== MENU ===== */

.menu-section {
    padding: 90px 6%;
}

.menu-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 50px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--light-brown);
}

.menu-heading h2 {
    font-family: 'Anton', sans-serif;
    font-size: clamp(45px, 6vw, 85px);
    line-height: 0.95;
    text-transform: uppercase;
}

.menu-heading h2 span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--light-brown);
    text-transform: none;
}

.menu-note {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-soft);
    text-align: right;
}

/* Cookie grid: 4 across on desktop */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Product card (the whole card is a link to the product page) */

.cookie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 2px solid var(--brown);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--brown);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cookie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(66, 44, 32, 0.18);
}

.cookie-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--brown);
    color: var(--beige);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 20px;
}

.cookie-image {
    aspect-ratio: 1 / 1;
    background: var(--cream);
    overflow: hidden;
}

.cookie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.cookie-card:hover .cookie-image img {
    transform: scale(1.06);
}

/* For transparent PNG cookies (no background), add class "contain":
   <div class="cookie-image contain"> */
.cookie-image.contain {
    background: var(--white);
}

.cookie-image.contain img {
    object-fit: contain;
    padding: 8%;
}

.cookie-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    gap: 10px;
    padding: 22px 16px 24px;
}

.cookie-details h3 {
    font-family: 'Anton', sans-serif;
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.15;
}

.cookie-price {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--light-brown);
}

/* Brown button (used on the product page) */

.add-btn {
    width: 100%;
    background: var(--brown);
    color: var(--beige);
    border: none;
    border-radius: 6px;
    padding: 15px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.add-btn:hover {
    background: var(--accent);
}

/* ===== COMING SOON ===== */

.coming-section {
    background: var(--brown);
    color: var(--beige);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 7%;
    gap: 50px;
    overflow: hidden;
}

.coming-content {
    flex: 1;
}

.coming-content .eyebrow {
    color: #D3AE8B;
}

.coming-content h2 {
    font-family: 'Anton', sans-serif;
    font-size: clamp(45px, 6vw, 85px);
    line-height: 0.95;
    text-transform: uppercase;
}

.coming-content h2 span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #D3AE8B;
    text-transform: none;
}

.coming-content > p:not(.eyebrow) {
    margin-top: 25px;
    font-size: 13px;
    line-height: 1.9;
    color: #E1CBB6;
}

.coming-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 25px;
    border: 1px solid var(--beige);
    text-decoration: none;
    color: var(--beige);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.3s;
}

.coming-btn:hover {
    background: var(--beige);
    color: var(--brown);
}

.coming-visual {
    position: relative;
    width: 42%;
}

.coming-visual img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 200px 200px 5px 5px;
    filter: sepia(20%);
}

.coming-sticker {
    position: absolute;
    bottom: -25px;
    left: -35px;
    background: var(--accent);
    color: white;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Anton', sans-serif;
    font-size: 17px;
    text-align: center;
    animation: float 4s ease-in-out infinite;
}

.coming-sticker span {
    font-size: 12px;
}

/* ===== HOW YOUR ORDER WORKS ===== */

.steps-section {
    /* no background of its own: the strip floats as a rounded card,
       with space around it so it never touches the blocks above/below */
    padding: 10px 7% 90px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 46px 44px;
    background: var(--cream);          /* light brown */
    border-radius: 26px;
    box-shadow: 0 14px 34px rgba(66, 44, 32, 0.10);
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-icon {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    color: var(--brown);
}

.step h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
    color: var(--brown);
}

.step p {
    font-size: 13px;
    line-height: 1.7;
    color: #7A5F4D;
}

/* Next-drop teaser without the photo: centered text */

.coming-section.coming-simple {
    justify-content: center;
    text-align: center;
    padding: 90px 7%;
}

.coming-simple .coming-content {
    flex: 0 1 820px;
}

.coming-simple .coming-content h2 {
    font-size: clamp(40px, 5.5vw, 76px);
}

/* ===== STORY ===== */

.story-section {
    padding: 80px 7% 100px;
    text-align: center;
}

.story-section h2 {
    font-family: 'Anton', sans-serif;
    font-size: clamp(40px, 6vw, 80px);
    line-height: 1;
    text-transform: uppercase;
}

.story-section h2 span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--light-brown);
    text-transform: none;
}

.story-section > p:not(.eyebrow) {
    max-width: 550px;
    margin: 30px auto;
    font-size: 14px;
    line-height: 2;
    color: var(--text-soft);
}

.story-signature {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 20px;
    margin-top: 10px;
}

/* ----- Our Story: compact block ----- */

.story-block {
    max-width: 1100px;
    margin: 0 auto;
    padding: 46px 52px 44px;
    background: var(--cream);
    border-radius: 26px;
    text-align: left;
}

.story-section .story-block h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.1;
    margin-bottom: 8px;
}

.story-lead {
    margin-bottom: 26px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 19px;
    color: var(--light-brown);
}

.story-text {
    column-count: 2;
    column-gap: 56px;
}

.story-text p {
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.75;
    color: #5A4233;
}

.story-text em {
    font-style: italic;
    font-weight: 700;
}

.story-text p.story-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 16px;
    color: var(--brown);
}

.story-signoff {
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--brown);
}

@media (max-width: 800px) {

    .story-text {
        column-count: 1;
    }
}

@media (max-width: 650px) {

    .story-block {
        padding: 30px 24px 28px;
        border-radius: 20px;
    }

    .story-lead {
        font-size: 17px;
        margin-bottom: 20px;
    }
}

/* ----- Our Story: its own page ----- */

.story-page {
    padding: 40px 7% 100px;
}

.story-page .back-link {
    display: block;
    max-width: 820px;
    margin: 0 auto 24px;
}

.story-page .story-block {
    max-width: 820px;
    padding: 56px 60px 52px;
}

.story-page .story-block h2 {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.1;
    margin-bottom: 8px;
}

.story-page .story-text {
    column-count: 1;
}

.story-page .story-text p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.9;
}

.story-page .story-text p.story-quote {
    font-size: 20px;
}

.story-page .story-signoff {
    margin-top: 22px;
    font-size: 16px;
}

@media (max-width: 650px) {

    .story-page {
        padding: 30px 5% 70px;
    }

    .story-page .story-block {
        padding: 30px 24px 28px;
    }

    .story-page .story-text p {
        font-size: 15.5px;
    }
}

/* ===== PRODUCT PAGE ===== */

.product-page {
    padding: 40px 7% 110px;
    min-height: 70vh;
}

.back-link {
    display: inline-block;
    margin: 0 auto 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--brown);
    text-decoration: none;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent);
}

.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1150px;
    margin: 0 auto;
}

.pd-grid[hidden],
.pd-missing[hidden] {
    display: none;
}

.pd-main {
    aspect-ratio: 1 / 1;
    border: 2px solid var(--brown);
    border-radius: 18px;
    overflow: hidden;
    background: var(--cream);
}

.pd-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.pd-thumb {
    width: 82px;
    height: 82px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: var(--cream);
    cursor: pointer;
    transition: border-color 0.3s;
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-thumb:hover,
.pd-thumb.active {
    border-color: var(--brown);
}

.pd-info .eyebrow {
    margin-bottom: 12px;
}

.pd-info h1 {
    font-family: 'Anton', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.pd-price {
    margin-top: 14px;
    font-family: 'Anton', sans-serif;
    font-size: 30px;
    color: var(--light-brown);
}

.pd-desc {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-soft);
}

.pd-points {
    margin-top: 18px;
    padding-left: 18px;
    font-size: 13px;
    line-height: 2;
    color: var(--text-soft);
}

.pd-buy {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.pd-qty {
    flex-shrink: 0;
}

.pd-qty button {
    width: 40px;
    height: 44px;
}

.pd-qty span {
    min-width: 28px;
}

.pd-add {
    flex: 1;
}

.pd-policy {
    margin-top: 34px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--cream);
    border-radius: 14px;
}

.pd-policy h2 {
    font-family: 'Anton', sans-serif;
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pd-policy ul {
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-soft);
}

.pd-policy li + li {
    margin-top: 6px;
}

.pd-policy li strong {
    color: var(--brown);
}

.pd-policy a {
    display: inline-block;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent);
    text-decoration: none;
}

.pd-policy a:hover {
    text-decoration: underline;
}

.pd-missing {
    max-width: 500px;
    margin: 80px auto;
    text-align: center;
}

.pd-missing h1 {
    font-family: 'Anton', sans-serif;
    font-size: 48px;
    font-weight: 400;
    text-transform: uppercase;
}

.pd-missing p {
    margin: 14px 0 26px;
    color: var(--text-soft);
    line-height: 1.8;
}

/* ===== POLICIES PAGE ===== */

.policy-page {
    padding: 70px 7% 110px;
    max-width: 1200px;
    margin: 0 auto;
}

.policy-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(46px, 7vw, 88px);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.policy-title span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    text-transform: none;
    color: var(--light-brown);
}

.policy-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    align-items: start;
}

.policy-nav {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.policy-nav a {
    padding: 12px 16px;
    border-left: 3px solid var(--cream);
    color: var(--brown);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.policy-nav a:hover {
    border-left-color: var(--accent);
    background: var(--white);
    color: var(--accent);
}

.policy-section {
    scroll-margin-top: 100px;
    padding-bottom: 50px;
}

.policy-section + .policy-section {
    padding-top: 50px;
    border-top: 1px solid #62463822;
}

.policy-section h2 {
    font-family: 'Anton', sans-serif;
    font-size: 36px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.policy-section ul {
    list-style: none;
}

.policy-section li {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-soft);
    padding: 10px 0;
    border-bottom: 1px dashed #62463822;
}

.policy-section li strong {
    color: var(--brown);
}

.policy-help {
    font-size: 14px;
    color: var(--text-soft);
}

.policy-help a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.policy-help a:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */

footer {
    background: var(--dark-brown);
    color: var(--beige);
    padding: 60px 7% 25px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-top h2 {
    font-family: 'Anton', sans-serif;
    font-size: 55px;
    font-weight: 400;
    line-height: 0.9;
}

.footer-top h2 span {
    color: var(--accent);
}

.footer-top p {
    font-size: 12px;
    color: #D3AE8B;
    margin-top: 15px;
}

.footer-cols {
    display: flex;
    gap: 70px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-top .footer-links p {
    margin: 0;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--beige);
}

.footer-links a {
    color: var(--beige);
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ffffff30;
    padding-top: 20px;
    font-size: 10px;
    letter-spacing: 1px;
    color: #C7AE99;
}

/* ===== TOAST ===== */

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 30px);
    background: var(--dark-brown);
    color: var(--beige);
    padding: 14px 24px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: 0.35s;
    z-index: 2000;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ===== CART DRAWER ===== */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(35, 22, 15, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--cream);
}

.cart-header h2 {
    font-family: 'Anton', sans-serif;
    font-size: 26px;
    font-weight: 400;
}

.close-cart {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--brown);
}

#cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 10px 28px;
}

.empty-cart {
    text-align: center;
    margin-top: 80px;
    color: var(--light-brown);
    font-size: 14px;
    line-height: 1.8;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--cream);
}

.cart-item img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--cream);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-size: 14px;
    font-weight: 700;
}

.cart-item-info p {
    font-size: 12px;
    color: var(--light-brown);
    margin: 3px 0 10px;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--cream);
    border-radius: 30px;
    background: var(--beige);
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 16px;
    color: var(--brown);
    cursor: pointer;
}

.quantity-controls span {
    min-width: 22px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.cart-item-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.cart-item-side strong {
    font-size: 14px;
}

.remove-item {
    background: none;
    border: none;
    font-size: 11px;
    color: #a1745a;
    cursor: pointer;
    text-decoration: underline;
}

.cart-footer {
    padding: 22px 28px 28px;
    border-top: 1px solid var(--cream);
    background: var(--beige);
    max-height: 70%;
    overflow-y: auto;
}

.cart-form {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.cart-form label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--light-brown);
}

.cart-form input,
.cart-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--cream);
    border-radius: 6px;
    background: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--brown);
    resize: none;
}

.cart-form input:focus,
.cart-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.cart-form .invalid {
    border-color: #c0392b;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}

.cart-row.muted {
    color: var(--text-soft);
    font-size: 12px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-family: 'Anton', sans-serif;
    font-size: 24px;
    margin: 14px 0 18px;
    padding-top: 14px;
    border-top: 1px dashed #62463855;
}

.checkout-btn {
    width: 100%;
    padding: 17px;
    background: var(--brown);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.checkout-btn:hover {
    background: var(--accent);
}

/* ===== CHECKOUT PAGE ===== */

.checkout-page [hidden] {
    display: none !important;
}

.checkout-page {
    min-height: 75vh;
}

.co-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
}

.co-main {
    display: flex;
    justify-content: flex-end;
    padding: 40px 5% 80px 7%;
}

.co-main-inner {
    width: 100%;
    max-width: 620px;
}

.co-main .back-link {
    margin-bottom: 22px;
}

.co-summary {
    background: #EFE0CC;
    border-left: 1px solid #62463822;
    padding: 50px 7% 80px 5%;
}

.co-summary-inner {
    position: sticky;
    top: 100px;
    max-width: 480px;
}

.co-section + .co-section {
    margin-top: 34px;
}

.co-section h2,
.co-summary h2 {
    font-family: 'Anton', sans-serif;
    font-size: 26px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.co-summary h2 {
    margin-bottom: 22px;
}

/* Form fields with floating labels */

.field {
    position: relative;
    margin-bottom: 14px;
}

.field input,
.field select {
    width: 100%;
    height: 60px;
    padding: 24px 16px 8px;
    background: var(--white);
    border: 1px solid #D4BC9F;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--brown);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field label {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--text-soft);
    pointer-events: none;
    transition: all 0.15s ease;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field select + label {
    top: 17px;
    transform: none;
    font-size: 11px;
    letter-spacing: 0.3px;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--brown);
    box-shadow: 0 0 0 3px #62463822;
}

.field.invalid input {
    border-color: #c0392b;
}

.field-error {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: #c0392b;
}

.field.invalid .field-error {
    display: block;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

.co-note {
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid #D4BC9F;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-soft);
}

.co-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 22px;
    font-size: 14px;
    cursor: pointer;
}

.co-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--brown);
}

.place-order-btn {
    width: 100%;
    height: 58px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.place-order-btn:hover {
    filter: brightness(0.92);
}

.co-policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #62463822;
}

.co-policy-links a {
    font-size: 12.5px;
    color: var(--accent);
    text-decoration: none;
}

.co-policy-links a:hover {
    text-decoration: underline;
}

/* Order summary */

.co-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.co-thumb {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--cream);
    border: 1px solid #62463822;
}

.co-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 11px;
    display: block;
}

.co-qty {
    position: absolute;
    top: -9px;
    right: -9px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    background: var(--brown);
    color: var(--beige);
    font-size: 12px;
    font-weight: 700;
    border-radius: 11px;
}

.co-item-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.co-item-name small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-soft);
}

.co-item-price {
    font-size: 14px;
    font-weight: 600;
}

.co-totals {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #62463822;
}

.co-summary .cart-row {
    font-size: 14px;
}

.co-summary .cart-row.muted {
    font-size: 13px;
}

.co-edit {
    margin-top: 18px;
    padding: 0;
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

/* Empty box + thank-you screens */

.co-empty,
.co-thanks {
    max-width: 540px;
    margin: 90px auto;
    padding: 0 6%;
    text-align: center;
}

.co-empty h1,
.co-thanks h1 {
    font-family: 'Anton', sans-serif;
    font-size: 46px;
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
}

.co-empty p,
.co-thanks p {
    margin: 14px 0 28px;
    color: var(--text-soft);
    line-height: 1.8;
}

.co-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 900px) {

    .co-layout {
        grid-template-columns: 1fr;
    }

    .co-summary {
        order: -1;
        padding: 28px 6% 30px;
        border-left: none;
        border-bottom: 1px solid #62463822;
    }

    .co-summary-inner {
        position: static;
        max-width: none;
    }

    .co-main {
        justify-content: center;
        padding: 30px 6% 70px;
    }
}

/* ===== ANIMATIONS ===== */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE: SMALL DESKTOP / TABLET ===== */

@media (max-width: 1100px) {

    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
    }
}

@media (max-width: 1000px) {

    .coming-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .coming-visual {
        width: 80%;
        align-self: center;
    }

    .coming-visual img {
        height: 400px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 6% 80px;
    }

    .hero-stats {
        gap: 25px;
    }

    .hero-visual {
        max-width: 680px;
    }

    /* the description card sits under the image instead of overlapping it */
    .hero-card {
        position: relative;
        bottom: auto;
        left: auto;
        width: 92%;
        margin: -60px auto 0;
    }

    .pd-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 560px;
    }

    .policy-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .policy-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .policy-nav a {
        border: 1px solid var(--cream);
        border-radius: 30px;
        padding: 9px 16px;
        font-size: 12px;
    }
}

/* ===== RESPONSIVE: MOBILE ===== */

@media (max-width: 650px) {

    html {
        scroll-padding-top: 78px;
    }

    .navbar {
        padding: 12px 5%;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .brand {
        font-size: 18px;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-order {
        font-size: 10px;
        padding: 12px 14px;
    }

    .hero-title {
        font-size: clamp(32px, 9.5vw, 46px);
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .hero-card h2 {
        font-size: 18px;
    }

    .marquee-track span {
        font-size: 17px;
    }

    .menu-section {
        padding: 70px 5%;
    }

    .menu-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .menu-heading h2 {
        font-size: 60px;
    }

    .menu-note {
        text-align: left;
    }

    /* ---- Sliding cookie cards on phones ---- */

    .menu-grid {
        display: flex;
        max-width: none;
        gap: 14px;
        margin: 0 -5%;                 /* let the slider run edge to edge */
        padding: 6px 5% 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 5%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .menu-grid::-webkit-scrollbar {
        display: none;
    }

    .cookie-card {
        flex: 0 0 62%;                 /* smaller cards, the next one peeks in */
        scroll-snap-align: start;
        border-radius: 16px;
    }

    .cookie-card:hover {
        transform: none;
    }

    .cookie-badge {
        top: 9px;
        left: 9px;
        font-size: 9px;
        padding: 5px 10px;
    }

    .cookie-details {
        padding: 16px 10px 18px;
    }

    .cookie-details h3 {
        font-size: 19px;
    }

    .cookie-price {
        font-size: 14px;
    }

    .coming-section {
        padding: 80px 5%;
    }

    .coming-content h2 {
        font-size: 55px;
    }

    .coming-visual {
        width: 90%;
    }

    .coming-visual img {
        height: 300px;
    }

    .story-section {
        padding: 60px 5% 70px;
    }

    .story-section h2 {
        font-size: 50px;
    }

    .product-page {
        padding: 30px 5% 80px;
    }

    .pd-buy {
        flex-direction: column;
        align-items: stretch;
    }

    .pd-qty {
        align-self: flex-start;
    }

    .policy-page {
        padding: 50px 5% 80px;
    }

    .policy-section h2 {
        font-size: 30px;
    }

    .footer-top {
        gap: 40px;
    }

    .footer-top h2 {
        font-size: 45px;
    }

    .footer-cols {
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== STEPS: RESPONSIVE ===== */

@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .steps-section {
        padding: 6px 5% 60px;
    }

    .steps-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding: 30px 24px;
        border-radius: 20px;
    }

    .coming-section.coming-simple {
        padding: 70px 6%;
    }

    .coming-simple .coming-content h2 {
        font-size: 42px;
    }
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}