:root {
    --bg: #f6f1ea;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --ink: #171313;
    --muted: #6e625d;
    --gold: #b48a5a;
    --gold-deep: #7f5c35;
    --line: rgba(23, 19, 19, 0.08);
    --shadow: 0 24px 80px rgba(48, 30, 12, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(180, 138, 90, 0.15), transparent 30%),
        radial-gradient(circle at top right, rgba(127, 92, 53, 0.14), transparent 28%),
        linear-gradient(180deg, #fbf7f2 0%, #f4ede4 40%, #f8f4ef 100%);
    min-height: 100vh;
}

h1, h2, h3, h4, .brand-name {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.01em;
}

code {
    color: var(--gold-deep);
}

.page-shell {
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 24px 48px;
}

.hero-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, transparent 45%),
        radial-gradient(circle at 20% 20%, rgba(180, 138, 90, 0.15), transparent 30%);
    opacity: 0.7;
    z-index: -1;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1b1615, #6b4a2e);
    color: #f8efe4;
    font-weight: 800;
    font-size: 22px;
}

.brand-name {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.brand-note {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chip,
.cart-trigger,
.icon-btn,
.btn {
    border: 0;
    font: inherit;
}

.chip,
.cart-trigger,
.icon-btn {
    cursor: pointer;
}

.chip {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    color: var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover,
.cart-trigger:hover,
.icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(32, 20, 12, 0.1);
}

.cart-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d1716, #4b3220);
    color: #fff;
}

.cart-trigger strong {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    margin-bottom: 22px;
}

.hero-copy,
.hero-showcase,
.store-strip,
.story-panel,
.loading-card,
.catalog-card,
.modal-card {
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.hero-copy {
    border-radius: 32px;
    padding: 34px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold-deep);
    font-weight: 800;
}

.hero-copy h1 {
    font-size: clamp(3rem, 5vw, 5.7rem);
    line-height: 0.94;
    margin: 20px 0 18px;
    max-width: 14ch;
}

.hero-copy p {
    font-size: 1.02rem;
    max-width: 60ch;
    color: var(--muted);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin: 20px 0 28px;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary,
.btn-checkout {
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-hero-primary,
.btn-checkout {
    background: linear-gradient(135deg, #1e1817, #7f5c35);
    color: #fff;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
}

.btn-hero-primary:hover,
.btn-hero-secondary:hover,
.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(36, 22, 10, 0.16);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hero-metrics div {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 19, 19, 0.06);
}

.hero-metrics strong {
    display: block;
    font-size: 1.4rem;
}

.hero-metrics span {
    display: block;
    color: var(--muted);
    margin-top: 6px;
    font-size: 0.92rem;
}

.hero-showcase {
    border-radius: 32px;
    padding: 22px;
    display: grid;
    gap: 18px;
}

.showcase-card {
    min-height: 230px;
    border-radius: 26px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    color: #fff;
}

.showcase-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
}

.showcase-card > * {
    position: relative;
    z-index: 1;
}

.showcase-card-a {
    background:
        linear-gradient(180deg, rgba(19, 16, 14, 0.06), rgba(19, 16, 14, 0.56)),
        url('https://images.unsplash.com/photo-1496747611176-843222e1e57c?auto=format&fit=crop&w=1200&q=80') center/cover;
}

.showcase-card-b {
    background:
        linear-gradient(180deg, rgba(19, 16, 14, 0.06), rgba(19, 16, 14, 0.56)),
        url('https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=1200&q=80') center/cover;
}

.showcase-card span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.9;
}

.showcase-card h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    margin: 8px 0 0;
    max-width: 12ch;
}

.store-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    border-radius: 28px;
    padding: 18px;
    margin-bottom: 26px;
}

.store-strip > div {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
}

.store-strip strong {
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
}

.store-strip span {
    color: var(--muted);
    line-height: 1.6;
}

.catalog-section {
    margin-bottom: 30px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin: 6px 0 0;
}

.search-box input,
.form-grid input,
.form-grid textarea,
.checkout-grid input,
.checkout-grid textarea {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(23, 19, 19, 0.12);
    background: rgba(255, 255, 255, 0.82);
    padding: 14px 16px;
    color: var(--ink);
    outline: none;
}

.search-box input:focus,
.form-grid input:focus,
.form-grid textarea:focus,
.checkout-grid input:focus,
.checkout-grid textarea:focus {
    border-color: rgba(127, 92, 53, 0.45);
    box-shadow: 0 0 0 4px rgba(180, 138, 90, 0.12);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.catalog-card,
.loading-card {
    border-radius: 28px;
    overflow: hidden;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(44, 25, 11, 0.16);
}

.card-media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: #ddd;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-body {
    padding: 18px;
}

.card-kicker {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.card-body h3 {
    font-size: 2rem;
    line-height: 0.95;
    margin: 0 0 8px;
}

.card-body p {
    color: var(--muted);
    margin: 0 0 14px;
    line-height: 1.7;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
}

.subtle {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.mini-btn {
    cursor: pointer;
    background: rgba(23, 19, 19, 0.06);
    border-radius: 999px;
    padding: 12px 14px;
    border: 0;
}

.loading-card {
    min-height: 320px;
    display: grid;
    place-items: center;
    color: var(--muted);
}

.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.story-panel {
    border-radius: 28px;
    padding: 24px;
}

.story-panel-dark {
    background: linear-gradient(135deg, #181312, #3f2919);
    color: #f8efe4;
}

.story-panel-light {
    background: rgba(255, 255, 255, 0.7);
}

.story-panel span {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    opacity: 0.85;
}

.story-panel h3 {
    margin: 12px 0 8px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.story-panel p {
    color: inherit;
    opacity: 0.88;
    line-height: 1.7;
}

.drawer-backdrop,
.modal-layer {
    position: fixed;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.drawer-backdrop {
    background: rgba(17, 12, 10, 0.36);
    z-index: 30;
}

.modal-layer {
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(17, 12, 10, 0.38);
}

.drawer-backdrop.is-open,
.modal-layer.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -440px;
    width: min(440px, 100vw);
    height: 100vh;
    z-index: 35;
    background: rgba(250, 246, 241, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: -24px 0 70px rgba(22, 14, 8, 0.2);
    transition: right 0.24s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.is-open {
    right: 0;
}

.drawer-head,
.drawer-footer {
    padding: 20px;
    border-color: rgba(23, 19, 19, 0.08);
}

.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    border-bottom: 1px solid var(--line);
}

.drawer-body {
    padding: 18px 20px;
    flex: 1;
    overflow: auto;
}

.drawer-footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.drawer-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 19, 19, 0.06);
    margin-bottom: 12px;
}

.drawer-item img {
    width: 76px;
    height: 96px;
    object-fit: cover;
    border-radius: 16px;
}

.drawer-item h4 {
    margin: 0 0 4px;
    font-size: 1.45rem;
}

.drawer-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 10px;
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qty-controls button,
.qty-controls span {
    border: 0;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    background: rgba(23, 19, 19, 0.06);
}

.btn-checkout {
    width: 100%;
}

.modal-card {
    width: min(100%, 760px);
    border-radius: 32px;
    padding: 24px;
    max-height: 90vh;
    overflow: auto;
    background: rgba(252, 249, 245, 0.96);
}

.modal-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
    margin-bottom: 16px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(23, 19, 19, 0.06);
    font-size: 1.6rem;
    line-height: 1;
}

.auth-card {
    width: min(100%, 480px);
}

.form-grid,
.checkout-grid {
    display: grid;
    gap: 14px;
}

.form-grid label,
.checkout-grid label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
}

.form-grid span,
.checkout-grid span {
    color: var(--ink);
    font-size: 14px;
}

.helper-text,
.modal-copy {
    color: var(--muted);
    line-height: 1.7;
}

.product-gallery {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
    border-radius: 24px;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gallery-thumbs button {
    border: 0;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
    display: block;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin: 18px 0;
}

.product-meta strong {
    display: block;
    font-size: 2rem;
}

.product-meta span {
    color: var(--muted);
}

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

.checkout-grid .full {
    grid-column: 1 / -1;
}

.success-card {
    width: min(100%, 540px);
    text-align: center;
}

.success-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(180, 138, 90, 0.14);
    color: var(--gold-deep);
    font-weight: 800;
    margin-bottom: 16px;
}

.success-card h3 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.toast-shell {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: grid;
    gap: 10px;
}

.toast-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(23, 19, 19, 0.95);
    color: #fff;
    min-width: 240px;
    box-shadow: var(--shadow);
}

.toast-item small {
    display: block;
    opacity: 0.8;
    margin-top: 4px;
}

@media (max-width: 1180px) {
    .hero-grid,
    .story-section,
    .product-gallery,
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        min-height: auto;
    }

    .store-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .page-shell {
        padding: 14px 14px 36px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .top-actions {
        flex-wrap: wrap;
    }

    .hero-copy {
        padding: 24px;
    }

    .hero-metrics,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .card-body h3 {
        font-size: 1.8rem;
    }

    .gallery-main img {
        min-height: 320px;
    }
}

