:root {
    --ivory: #f7f4ef;
    --sand: #efe7dc;
    --mist: #fdfbf8;
    --ink: #1f1a16;
    --charcoal: #302a25;
    --gold: #c8a97e;
    --rose: #d7c0b6;
    --accent: #c5b7a4;
    --shadow: rgba(28, 24, 20, 0.12);
    --glow: rgba(200, 169, 126, 0.3);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, #fff, var(--ivory) 45%, var(--sand) 100%);
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

main {
    overflow: hidden;
}

.site-loader {
    position: fixed;
    inset: 0;
    background: var(--mist);
    display: grid;
    place-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

.site-loader p {
    margin-top: 16px;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.loader-mark {
    display: flex;
    gap: 10px;
}

.loader-mark span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    animation: loaderPulse 1.2s infinite ease-in-out;
}

.loader-mark span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-mark span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.4); opacity: 1; }
}

.page-transition {
    position: fixed;
    inset: 0;
    background: linear-gradient(120deg, rgba(200, 169, 126, 0.9), rgba(48, 42, 37, 0.95));
    z-index: 9998;
    transform: translateY(-100%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 244, 239, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(48, 42, 37, 0.08);
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.nav-links {
    position: relative;
    display: flex;
    gap: 18px;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links a {
    padding: 6px 0;
    color: var(--charcoal);
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.is-active {
    color: var(--ink);
}

.nav-underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    height: 2px;
    width: 40px;
    background: var(--gold);
    transition: transform 0.4s ease, width 0.4s ease;
}

.bag-button {
    border: 1px solid rgba(48, 42, 37, 0.2);
    background: transparent;
    border-radius: 999px;
    padding: 10px 18px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.bag-dot {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 6px rgba(200, 169, 126, 0.15);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 0.4; }
}

.ticker {
    background: var(--ink);
    color: #fff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ticker-track {
    display: flex;
    gap: 40px;
    padding: 10px 0;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    animation: tickerMove 24s linear infinite;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-tight {
    padding: 50px 24px;
}

.hero {
    display: grid;
    gap: 40px;
    align-items: center;
}

.hero-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(33, 28, 24, 0.18);
}

.hero-floats {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-bottle {
    position: absolute;
    width: min(140px, 32vw);
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 40px rgba(28, 24, 20, 0.2);
}

.float-bottle.one {
    top: 12%;
    left: 6%;
}

.float-bottle.two {
    bottom: 12%;
    right: 8%;
}

.float-bottle.three {
    top: 45%;
    right: 20%;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin: 0 0 16px;
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(48, 42, 37, 0.6);
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 10px 24px var(--shadow);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(48, 42, 37, 0.3);
    color: var(--charcoal);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(28, 24, 20, 0.18);
}

.btn .btn-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(255,255,255,0.4), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn:hover .btn-glow {
    opacity: 1;
}

.grid-3 {
    display: grid;
    gap: 24px;
}

.product-card {
    background: var(--mist);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 20px 50px rgba(28, 24, 20, 0.08);
    display: grid;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(28, 24, 20, 0.16);
}

.product-card img {
    border-radius: var(--radius-sm);
    height: 260px;
    width: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--ink);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 999px;
    animation: shimmer 2.4s infinite;
}

@keyframes shimmer {
    0% { box-shadow: 0 0 0 0 rgba(200, 169, 126, 0.2); }
    50% { box-shadow: 0 0 0 10px rgba(200, 169, 126, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 169, 126, 0); }
}

.editorial {
    background: var(--mist);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    gap: 32px;
    align-items: center;
    box-shadow: 0 30px 70px rgba(28, 24, 20, 0.12);
}

.editorial img {
    border-radius: var(--radius-md);
    height: 100%;
    object-fit: cover;
}

.ritual-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 12px;
}

.ritual-list li {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(239, 231, 220, 0.6);
}

.price-stack {
    display: grid;
    gap: 6px;
}

.price-original {
    text-decoration: line-through;
    color: rgba(48, 42, 37, 0.6);
}

.price-final {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ink);
}

.price-save {
    font-size: 0.9rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.price-total {
    font-size: 1rem;
    color: var(--charcoal);
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid rgba(48, 42, 37, 0.15);
}

.qty-stepper button {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.qty-stepper input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 1rem;
    background: transparent;
}

.gallery {
    display: grid;
    gap: 16px;
}

.gallery img {
    border-radius: var(--radius-md);
    height: 220px;
    object-fit: cover;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.bundle-grid {
    display: grid;
    gap: 18px;
}

.bundle-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px;
    display: grid;
    gap: 12px;
    border: 1px solid transparent;
    transition: border 0.3s ease, transform 0.3s ease;
}

.bundle-card input {
    position: absolute;
    top: 16px;
    left: 16px;
    transform: scale(1.2);
}

.bundle-card img {
    border-radius: var(--radius-sm);
    height: 200px;
    object-fit: cover;
}

.bundle-card.selected {
    border: 1px solid var(--gold);
    transform: translateY(-4px);
}

.bundle-summary {
    margin-top: 24px;
    padding: 24px;
    background: var(--mist);
    border-radius: var(--radius-md);
    display: grid;
    gap: 16px;
    box-shadow: 0 20px 50px rgba(28, 24, 20, 0.1);
}

.bundle-summary .summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.bundle-summary strong {
    font-size: 1.3rem;
}

.site-footer {
    background: var(--ink);
    color: #fff;
    padding: 60px 24px;
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto 24px;
    display: grid;
    gap: 24px;
}

.footer-grid h3,
.footer-grid h4 {
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 10px;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-note {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

.order-drawer {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
}

.order-drawer.is-open {
    pointer-events: auto;
    opacity: 1;
}

.drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 12, 9, 0.5);
}

.drawer-panel {
    position: relative;
    margin-left: auto;
    width: min(440px, 92vw);
    background: #fff;
    height: 100%;
    padding: 32px 24px 40px;
    box-shadow: -20px 0 50px rgba(0,0,0,0.2);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

.order-drawer.is-open .drawer-panel {
    transform: translateX(0);
}

.drawer-close {
    border: none;
    background: transparent;
    font-size: 2rem;
    position: absolute;
    top: 18px;
    right: 18px;
    cursor: pointer;
}

.drawer-header .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.drawer-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: var(--mist);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 16px 0 24px;
}

.drawer-summary .label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(48, 42, 37, 0.6);
}

.order-form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 8px;
    font-size: 0.85rem;
}

.form-row input,
.form-row textarea {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(48, 42, 37, 0.2);
    font-family: inherit;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: rgba(48, 42, 37, 0.7);
}

.form-error {
    font-size: 0.8rem;
    color: #b23c3c;
    min-height: 1em;
}

.order-success {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(16, 12, 9, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 2500;
}

.order-success.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.order-success-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    max-width: 380px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

.float {
    animation: floaty 6s ease-in-out infinite;
}

.float.delay {
    animation-delay: 1.5s;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

@media (min-width: 760px) {
    .hero {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .editorial {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .bundle-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-links {
        gap: 12px;
        font-size: 0.7rem;
        overflow-x: auto;
        padding-bottom: 6px;
        white-space: nowrap;
    }

    .nav-underline {
        display: none;
    }
}
