:root {
    --bg: #f9f7f4;
    --paper: #fffdf9;
    --ink: #171312;
    --muted: #756b63;
    --maroon: #9f1239;
    --maroon-dark: #74112d;
    --gold: #d97706;
    --line: #eadfd4;
    --soft: #f3ebe4;
    --shadow: 0 18px 50px rgba(43, 23, 18, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    place-items: center;
    background: rgba(249, 247, 244, 0.86);
    backdrop-filter: blur(4px);
    color: var(--maroon);
    font-weight: 700;
}

.page-loader.is-visible {
    display: grid;
}

.shipping-strip {
    background: var(--ink);
    color: white;
    text-align: center;
    padding: 7px 16px;
    font-size: 13px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(249, 247, 244, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 28px;
}

.brand-mark,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}

.brand-emblem {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--maroon);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    font-weight: 700;
}

.brand-mark strong {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    line-height: 1;
}

.brand-mark small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 12px;
    font-weight: 700;
}

.desktop-nav > a,
.nav-item > a {
    padding: 20px 0;
}

.nav-item {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 190px;
    transform: translateX(-50%) translateY(10px);
    visibility: hidden;
    opacity: 0;
    display: grid;
    gap: 2px;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: 160ms ease;
}

.nav-dropdown a {
    padding: 9px 10px;
    color: var(--muted);
}

.nav-dropdown a:hover {
    color: var(--maroon);
    background: var(--soft);
}

.nav-item:hover .nav-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(280px, 22vw);
    border: 1px solid var(--line);
    background: white;
    padding: 9px 12px;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.icon-button {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
}

.cart-link span {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    min-width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    background: var(--maroon);
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.mobile-menu-button,
.mobile-drawer {
    display: none;
}

.flash {
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 12px 16px;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
}

.flash-success {
    border-color: rgba(22, 101, 52, 0.2);
    color: #166534;
}

.flash-error {
    border-color: rgba(159, 18, 57, 0.25);
    color: var(--maroon);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: center;
    gap: 48px;
    min-height: calc(100vh - 116px);
    max-width: 1440px;
    margin: 0 auto;
    padding: 56px 28px 70px;
}

.hero-copy {
    max-width: 560px;
}

.eyebrow,
.section-title p,
.hero-tagline {
    color: var(--maroon);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1.05;
}

.hero h1 {
    margin-top: 8px;
    font-size: clamp(48px, 8vw, 106px);
}

.hero-tagline {
    margin: 24px 0 28px;
}

.primary-button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border: 1px solid transparent;
    font-weight: 800;
    text-align: center;
}

.primary-button {
    background: var(--maroon);
    color: white;
}

.primary-button:hover {
    background: var(--maroon-dark);
}

.secondary-button {
    background: white;
    border-color: var(--line);
    color: var(--ink);
}

.ghost-button {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.wide {
    width: 100%;
}

.hero-media {
    display: grid;
    grid-template-columns: 1fr 0.78fr;
    gap: 18px;
    align-items: end;
}

.hero-media img {
    width: 100%;
    height: min(680px, 72vh);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.hero-media img:nth-child(2) {
    height: min(520px, 56vh);
    margin-bottom: 42px;
}

.section-wrap,
.shop-layout,
.cart-layout,
.checkout-layout,
.account-grid,
.contact-layout,
.content-band,
.policy-page,
.product-tabs {
    max-width: 1320px;
    margin: 0 auto;
    padding: 56px 28px;
}

.section-title {
    margin-bottom: 24px;
    text-align: center;
}

.section-title h2,
.section-heading-row h2,
.page-hero h1,
.policy-page h1 {
    font-size: clamp(30px, 4vw, 52px);
}

.category-scroll {
    display: grid;
    grid-auto-columns: minmax(160px, 210px);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.category-card {
    background: white;
    border: 1px solid var(--line);
}

.category-card img {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    object-fit: cover;
}

.category-card span {
    display: block;
    padding: 13px 14px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    font-weight: 700;
}

.section-heading-row,
.result-bar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.section-heading-row a {
    color: var(--maroon);
    font-weight: 800;
    text-transform: lowercase;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

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

.product-card {
    position: relative;
    background: transparent;
}

.product-image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--soft);
}

.product-image-wrap img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 360ms ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.04);
}

.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--maroon);
    color: white;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.product-card-body {
    position: relative;
    padding: 14px 0 0;
}

.wishlist-form {
    position: absolute;
    top: -52px;
    right: 10px;
    z-index: 3;
}

.heart-button,
.icon-cart-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    background: white;
}

.heart-button.is-loved {
    color: var(--maroon);
}

.product-name {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    font-weight: 700;
}

.product-meta {
    margin: 4px 0 7px;
    color: var(--muted);
    font-size: 13px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-row del,
.product-price-large del {
    color: var(--muted);
}

.price-row strong,
.product-price-large strong {
    color: var(--maroon);
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.product-actions .ghost-button {
    flex: 1;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
}

.offer-band {
    background: #fff8ee;
    max-width: none;
    padding-inline: max(28px, calc((100vw - 1320px) / 2 + 28px));
}

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

.testimonial-grid article,
.value-grid article,
.account-panel,
.contact-card,
.summary-card,
.filter-panel,
.contact-form,
.auth-card {
    border: 1px solid var(--line);
    background: white;
    padding: 24px;
    box-shadow: var(--shadow);
}

.stars {
    color: var(--gold);
}

.testimonial-grid p {
    color: var(--muted);
}

.testimonial-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.newsletter-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1320px;
    margin: 56px auto;
    padding: 34px 28px;
    background: var(--ink);
    color: white;
}

.newsletter-band p {
    margin: 0 0 6px;
    color: #f3c988;
    font-weight: 800;
}

.newsletter-band h2 {
    font-size: clamp(26px, 4vw, 44px);
}

.newsletter-band span {
    color: #f3c988;
}

.instagram-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.instagram-strip img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.page-hero {
    max-width: 1320px;
    margin: 0 auto;
    padding: 58px 28px 28px;
}

.page-hero.small {
    min-height: 220px;
}

.page-hero p {
    max-width: 680px;
    color: var(--muted);
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: start;
    gap: 34px;
}

.filter-panel {
    position: sticky;
    top: 118px;
}

.filter-panel form,
.auth-card,
.contact-form,
.checkout-form,
.product-buy-box {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    padding: 12px 12px;
    outline: 0;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--maroon);
}

.subcategory-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 28px 18px;
}

.subcategory-pills a {
    border: 1px solid var(--line);
    background: white;
    padding: 9px 14px;
    font-weight: 700;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 52px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 58px 28px;
}

.main-product-image {
    overflow: hidden;
    background: var(--soft);
}

.main-product-image img {
    width: 100%;
    max-height: 760px;
    object-fit: cover;
}

.zoom-wrap:hover img {
    transform: scale(1.2);
}

.zoom-wrap img {
    transition: transform 280ms ease;
}

.thumb-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.thumb-row button {
    border: 1px solid var(--line);
    background: white;
    padding: 0;
}

.thumb-row img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-summary h1 {
    margin: 8px 0 18px;
    font-size: clamp(36px, 5vw, 70px);
}

.product-price-large {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 24px;
}

.product-buy-box {
    margin: 26px 0;
    padding: 22px;
    border: 1px solid var(--line);
    background: white;
}

.shipping-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.tab-buttons {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--line);
}

.tab-buttons button {
    border: 0;
    background: transparent;
    padding: 14px 18px;
    font-weight: 800;
}

.tab-buttons button.is-active {
    color: var(--maroon);
    border-bottom: 2px solid var(--maroon);
}

.tab-panel {
    display: none;
    padding-top: 24px;
}

.tab-panel.is-active {
    display: block;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    align-items: start;
    gap: 34px;
}

.cart-table-wrap {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--line);
}

.cart-table th,
.cart-table td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.cart-product img {
    width: 58px;
    height: 74px;
    object-fit: cover;
}

.text-link {
    border: 0;
    background: transparent;
    color: var(--maroon);
    font-weight: 800;
}

.summary-card {
    display: grid;
    gap: 14px;
}

.summary-card h2 {
    font-size: 26px;
}

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

.summary-card .grand-total {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 18px;
}

.coupon-form {
    display: grid;
    grid-template-columns: 1fr auto;
}

.coupon-form button {
    border: 0;
    background: var(--ink);
    color: white;
    padding: 0 16px;
    font-weight: 800;
}

.checkout-form {
    border: 1px solid var(--line);
    background: white;
    padding: 24px;
    box-shadow: var(--shadow);
}

.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.checkout-steps button {
    border: 1px solid var(--line);
    background: var(--soft);
    padding: 10px;
    font-weight: 800;
}

.checkout-steps button.is-active {
    background: var(--maroon);
    color: white;
}

.checkout-step {
    display: none;
    gap: 16px;
}

.checkout-step.is-active {
    display: grid;
}

.radio-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
}

.radio-row input {
    width: auto;
}

.auth-shell {
    display: grid;
    min-height: 66vh;
    place-items: center;
    padding: 60px 28px;
}

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

.auth-card h1 {
    font-size: 44px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--maroon);
    font-weight: 800;
}

.account-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
}

.wide-panel {
    grid-column: 1 / -1;
}

.order-row {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.order-row span,
.muted {
    color: var(--muted);
}

.story-hero {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 58px 28px;
}

.story-hero h1 {
    margin: 8px 0 20px;
    font-size: clamp(40px, 6vw, 74px);
}

.story-hero img {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
}

.content-band h2 {
    margin-bottom: 16px;
    font-size: 42px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 32px;
}

.policy-page {
    max-width: 900px;
}

.policy-page p {
    color: var(--muted);
    font-size: 17px;
}

.empty-state {
    display: grid;
    gap: 14px;
    justify-items: start;
    border: 1px solid var(--line);
    background: white;
    padding: 32px;
}

.page-empty {
    max-width: 760px;
    margin: 64px auto;
}

.site-footer {
    margin-top: 40px;
    background: #211312;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 56px 28px;
}

.footer-grid p,
.footer-grid a {
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid h3 {
    margin-bottom: 14px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
}

.footer-grid a {
    display: block;
    margin-bottom: 9px;
}

.footer-brand {
    margin-bottom: 16px;
    color: white;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
}

.social-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.social-row a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hashtags {
    color: #f3c988;
    font-weight: 800;
}

.quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    place-items: center;
    background: rgba(23, 19, 18, 0.62);
    padding: 20px;
}

.quick-view-modal.is-open {
    display: grid;
}

.quick-view-panel {
    display: grid;
    grid-template-columns: 260px minmax(0, 360px);
    gap: 22px;
    width: min(100%, 720px);
    background: var(--paper);
    padding: 20px;
}

.quick-view-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.quick-view-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    background: white;
}

@media (max-width: 1180px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: grid;
    }

    .header-shell {
        grid-template-columns: auto 1fr auto;
    }

    .brand-mark {
        min-width: auto;
    }

    .search-box {
        display: none;
    }

    .mobile-drawer {
        display: none;
        padding: 10px 28px 24px;
        border-top: 1px solid var(--line);
        background: var(--paper);
    }

    .mobile-drawer.is-open {
        display: grid;
    }

    .mobile-drawer a {
        padding: 10px 0;
        font-weight: 800;
        border-bottom: 1px solid var(--line);
    }

    .mobile-child {
        padding-left: 18px;
        color: var(--muted);
        font-weight: 600;
    }

    .mobile-search {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        margin-bottom: 12px;
    }

    .mobile-search button {
        width: 46px;
        border: 1px solid var(--line);
        background: white;
    }

    .hero,
    .product-detail,
    .story-hero {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

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

@media (max-width: 860px) {
    .hero,
    .section-wrap,
    .shop-layout,
    .cart-layout,
    .checkout-layout,
    .account-grid,
    .contact-layout,
    .content-band,
    .policy-page,
    .product-tabs,
    .product-detail,
    .story-hero,
    .page-hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-media {
        grid-template-columns: 1fr 1fr;
    }

    .hero-media img,
    .hero-media img:nth-child(2) {
        height: 360px;
        margin-bottom: 0;
    }

    .product-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .shop-layout,
    .cart-layout,
    .checkout-layout,
    .account-grid,
    .contact-layout,
    .footer-grid,
    .testimonial-grid,
    .value-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        position: static;
    }

    .newsletter-band {
        align-items: flex-start;
        flex-direction: column;
        margin-left: 18px;
        margin-right: 18px;
    }

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

    .quick-view-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .header-shell {
        gap: 8px;
        padding: 12px 14px;
    }

    .brand-mark small {
        display: none;
    }

    .brand-mark strong {
        font-size: 17px;
    }

    .brand-emblem {
        width: 38px;
        height: 38px;
    }

    .header-actions {
        gap: 6px;
    }

    .icon-button {
        width: 38px;
        height: 38px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-media {
        gap: 10px;
    }

    .hero-media img,
    .hero-media img:nth-child(2) {
        height: 280px;
    }

    .product-grid,
    .compact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .product-name {
        font-size: 17px;
    }

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

    .icon-cart-button {
        width: 100%;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-table {
        min-width: 680px;
    }
}
