:root {
    --ink: #100d0b;
    --espresso: #171210;
    --charcoal: #241c17;
    --warm: #3a2e26;
    --cream: #f3eee6;
    --cream-soft: #e8dfd2;
    --muted: #b9ad9c;
    --gold: #c9a46c;
    --gold-deep: #a88445;
    --line: rgba(201, 164, 108, 0.22);
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-brand: "Great Vibes", cursive;
    --font-ui: "Manrope", system-ui, sans-serif;
    --header-h: 6.5rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-ui);
    background: var(--ink);
    color: var(--cream);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container { width: min(1180px, 90vw); margin: 0 auto; }

/* ——— Header ——— */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 80;
    padding: 0.85rem 0 0.65rem;
    transition: background 0.35s var(--ease), border-color 0.35s;
    border-bottom: 1px solid transparent;
}
.site-header.is-home {
    background: linear-gradient(180deg, rgba(16,13,11,0.72) 0%, rgba(16,13,11,0.15) 100%);
}
.site-header.is-solid {
    background: rgba(16, 13, 11, 0.94);
    border-bottom-color: var(--line);
    backdrop-filter: blur(14px);
}

.header-top {
    width: min(1180px, 90vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.header-utils { display: flex; align-items: center; gap: 1rem; }
.header-utils.left { justify-content: flex-start; }
.header-utils.right { justify-content: flex-end; }

.brand-mark { text-align: center; line-height: 1; }
.brand-script {
    font-family: var(--font-brand);
    font-size: clamp(2.1rem, 3.5vw, 2.85rem);
    color: var(--cream);
    letter-spacing: 0.02em;
    display: inline-block;
    text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.brand-script:hover { color: var(--gold); }

.header-nav {
    display: flex;
    justify-content: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    margin-top: 0.55rem;
    padding-bottom: 0.35rem;
}
.header-nav a {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.25s;
}
.header-nav a:hover,
.header-nav a.active { color: var(--gold); }

.icon-btn, .cart-link {
    color: var(--cream-soft);
    background: none;
    border: 0;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
}
.cart-count {
    position: absolute;
    top: -7px; right: -9px;
    min-width: 16px; height: 16px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    font-size: 0.62rem;
    font-weight: 600;
    display: grid;
    place-items: center;
    padding: 0 4px;
}
.currency-chip {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 0.28rem 0.5rem;
}

.header-search {
    display: none;
    width: min(560px, 90vw);
    margin: 0.75rem auto 0;
    gap: 0;
}
.header-search.open { display: flex; }
.header-search input {
    flex: 1;
    background: var(--charcoal);
    border: 1px solid var(--line);
    border-right: 0;
    color: var(--cream);
    padding: 0.7rem 1rem;
}
.header-search button {
    background: var(--gold);
    border: 0;
    color: var(--ink);
    padding: 0.7rem 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    cursor: pointer;
}

/* ——— Hero ——— */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-items: end;
    overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1.06);
    animation: hero-drift 22s var(--ease) infinite alternate;
}
.hero-veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(16,13,11,0.82) 0%, rgba(16,13,11,0.45) 42%, rgba(16,13,11,0.25) 100%),
        linear-gradient(0deg, rgba(16,13,11,0.75) 0%, transparent 45%);
}
.hero-grain {
    position: absolute; inset: 0;
    opacity: 0.07;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes hero-drift {
    from { transform: scale(1.06) translate3d(0,0,0); }
    to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.hero-stage {
    position: relative;
    z-index: 2;
    width: min(1180px, 90vw);
    margin: 0 auto;
    padding: calc(var(--header-h) + 2rem) 0 4.5rem;
    display: grid;
    gap: 2.5rem;
}

.hero-brand-line {
    font-family: var(--font-brand);
    font-size: clamp(4.5rem, 14vw, 10rem);
    line-height: 0.85;
    color: transparent;
    background: linear-gradient(120deg, rgba(201,164,108,0.15), rgba(243,238,230,0.55) 45%, rgba(201,164,108,0.25));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 1px rgba(201,164,108,0.35);
    animation: brand-in 1.4s var(--ease) both;
    pointer-events: none;
    max-width: 100%;
    overflow: hidden;
}

.hero-copy { max-width: 34rem; }
.hero-eyebrow,
.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.hero-headline {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 1.1rem;
    animation: rise 0.9s var(--ease) 0.15s both;
}
.hero-sub {
    color: var(--cream-soft);
    font-weight: 300;
    font-size: 1.05rem;
    max-width: 28rem;
    margin-bottom: 2rem;
    animation: rise 0.9s var(--ease) 0.28s both;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    animation: rise 0.9s var(--ease) 0.4s both;
}

@keyframes brand-in {
    from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

/* ——— Buttons ——— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.7rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.btn-solid {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
}
.btn-solid:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn-line {
    background: transparent;
    color: var(--cream);
    border-color: rgba(243,238,230,0.45);
}
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-filled { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-filled:hover { background: var(--cream); border-color: var(--cream); }

.text-link {
    color: var(--gold);
    letter-spacing: 0.06em;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
}
.text-link:hover { border-bottom-color: var(--gold); }

/* ——— Bands ——— */
main { padding-top: 0; }
.page-main { padding-top: calc(var(--header-h) + 1.5rem); min-height: 70vh; }

.band { padding: 5.5rem 0; }
.band-head { max-width: 36rem; margin: 0 auto 3rem; text-align: center; }
.band-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 3.5vw, 2.85rem);
    margin-bottom: 0.75rem;
}
.band-lead { color: var(--muted); font-weight: 300; }
.band-foot { text-align: center; margin-top: 3rem; }

.section { padding: 4.5rem 0; }
.section-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 2.5rem;
}

/* Room mosaic */
.room-mosaic {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, 22vw);
    gap: 0.85rem;
}
.room-tile {
    position: relative;
    grid-column: span 4;
    overflow: hidden;
    background: var(--charcoal) center/cover no-repeat;
    background-image: var(--room-img);
    isolation: isolate;
    min-height: 200px;
}
.room-tile.is-featured { grid-column: span 8; grid-row: span 2; }
.room-tile-shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(16,13,11,0.85) 100%);
    transition: background 0.4s;
}
.room-tile:hover .room-tile-shade {
    background: linear-gradient(180deg, rgba(16,13,11,0.15) 10%, rgba(16,13,11,0.88) 100%);
}
.room-tile:hover { transform: none; }
.room-tile::after {
    content: "";
    position: absolute; inset: 0;
    background-image: var(--room-img);
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: transform 1.1s var(--ease);
}
.room-tile:hover::after { transform: scale(1.06); }
.room-tile-meta {
    position: absolute;
    left: 1.25rem; right: 1.25rem; bottom: 1.25rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}
.room-tile-name {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
}
.room-tile-cta {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

/* Products */
.product-rail,
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 1.25rem;
}
.product-tile-link { display: block; }
.product-tile-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--charcoal);
    margin-bottom: 1rem;
}
.product-tile-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}
.product-tile:hover .product-tile-media img { transform: scale(1.05); }
.product-tile-flag {
    position: absolute;
    top: 0.85rem; left: 0.85rem;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--gold);
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--line);
}
.product-tile-cat {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.35rem;
}
.product-tile-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
    color: var(--cream);
}
.product-tile-price { color: var(--muted); font-size: 0.9rem; }
.product-tile-price .now { color: var(--cream-soft); }
.product-tile-price .was {
    margin-left: 0.45rem;
    text-decoration: line-through;
    opacity: 0.55;
    font-size: 0.82rem;
}

/* Legacy product-card aliases used elsewhere */
.product-card { /* noop wrapper for old includes */ }
.product-image { aspect-ratio: 4/5; overflow: hidden; background: var(--charcoal); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding-top: 1rem; }
.product-category { font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.product-name { font-family: var(--font-display); font-size: 1.25rem; margin: 0.35rem 0; }
.product-price { color: var(--muted); }
.product-price .sale { color: var(--gold); margin-right: 0.4rem; }
.product-price .compare { text-decoration: line-through; opacity: 0.5; }

.categories-strip {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; margin-bottom: 2rem;
}
.category-pill {
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.category-pill:hover, .category-pill.active {
    color: var(--gold);
    border-color: var(--gold);
}

/* Editorial */
.editorial {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 70vh;
}
.editorial-media {
    background: var(--charcoal) center/cover no-repeat;
    background-image: var(--ed-img);
    min-height: 420px;
}
.editorial-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 6vw, 5rem);
    background: var(--espresso);
}
.editorial-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.editorial-text {
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 1.75rem;
    max-width: 28rem;
}

.ambient-panel {
    position: relative;
    min-height: 420px;
    background: center/cover no-repeat;
    background-image: var(--amb-img);
    display: grid;
    place-items: center;
}
.ambient-panel::before {
    content: "";
    position: absolute; inset: 0;
    background: rgba(16,13,11,0.62);
}
.ambient-inner {
    position: relative;
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 34rem;
}
.ambient-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.75rem);
    margin-bottom: 0.75rem;
}
.ambient-text { color: var(--cream-soft); margin-bottom: 1.75rem; }

/* Shop */
.shop-layout { display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem; padding: 2rem 0 4rem; }
.shop-sidebar h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--gold);
}
.filter-list { list-style: none; }
.filter-list li { margin-bottom: 0.45rem; }
.filter-list a { color: var(--muted); font-size: 0.9rem; }
.filter-list a.active { color: var(--gold); }
.shop-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.75rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.shop-toolbar select {
    background: var(--charcoal);
    border: 1px solid var(--line);
    color: var(--cream);
    padding: 0.45rem 0.75rem;
}

.product-detail {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    padding: 2rem 0 4rem;
}
.product-detail-image {
    aspect-ratio: 1;
    background: var(--charcoal);
    overflow: hidden;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.product-detail-info .price { font-size: 1.35rem; color: var(--gold); margin: 1rem 0; }
.product-detail-info .description { color: var(--muted); margin: 1.5rem 0; line-height: 1.8; }
.quantity-input {
    width: 72px;
    background: var(--charcoal);
    border: 1px solid var(--line);
    color: var(--cream);
    padding: 0.55rem;
    text-align: center;
    margin-right: 0.85rem;
}

/* Cart / checkout */
.cart-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.cart-table th, .cart-table td {
    padding: 1rem; text-align: left;
    border-bottom: 1px solid var(--line);
}
.cart-table th {
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; padding: 2rem 0 4rem; }
.form-group { margin-bottom: 1.15rem; }
.form-group label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.4rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    background: var(--charcoal);
    border: 1px solid var(--line);
    color: var(--cream);
    padding: 0.7rem 0.85rem;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.order-summary {
    background: var(--charcoal);
    border: 1px solid var(--line);
    padding: 1.6rem;
}
.order-summary h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
}
.summary-row {
    display: flex; justify-content: space-between;
    padding: 0.45rem 0; color: var(--muted); font-size: 0.9rem;
}
.summary-row.total {
    border-top: 1px solid var(--line);
    margin-top: 0.7rem; padding-top: 0.9rem;
    color: var(--cream); font-size: 1.05rem;
}
.payment-options { margin: 1.4rem 0; }
.payment-option {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.75rem; border: 1px solid var(--line);
    margin-bottom: 0.5rem; cursor: pointer;
}
.payment-option:has(input:checked) {
    border-color: var(--gold);
    background: rgba(201,164,108,0.08);
}
.bank-details {
    background: rgba(201,164,108,0.07);
    border: 1px solid var(--line);
    padding: 1rem; margin-top: 1rem;
    font-size: 0.9rem; color: var(--muted);
}

.alert {
    padding: 0.85rem 1.15rem; margin: 1rem 0;
    font-size: 0.9rem; border: 1px solid;
}
.alert-success { background: rgba(76,175,80,0.1); border-color: rgba(76,175,80,0.3); color: #a5d6a7; }
.alert-error { background: rgba(244,67,54,0.1); border-color: rgba(244,67,54,0.3); color: #ef9a9a; }

/* Footer */
.site-footer {
    background: var(--espresso);
    border-top: 1px solid var(--line);
    padding: 4rem 0 2rem;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.footer-logo {
    font-family: var(--font-brand);
    font-size: 2.25rem;
    display: inline-block;
    margin-bottom: 0.85rem;
}
.footer-text { color: var(--muted); font-size: 0.92rem; max-width: 28rem; font-weight: 300; }
.footer-heading {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.45rem; color: var(--muted); font-size: 0.9rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
}

.pagination { display: flex; gap: 0.45rem; justify-content: center; margin: 2rem 0; list-style: none; }
.pagination a, .pagination span {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}
.pagination .active span { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.content-page { max-width: 720px; margin: 0 auto; padding: 2rem 0 4rem; }
.content-page h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 1.4rem;
}
.content-page p { color: var(--muted); margin-bottom: 1rem; line-height: 1.85; }

.success-box { text-align: center; padding: 4rem 2rem; max-width: 600px; margin: 0 auto; }
.success-box h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

@media (max-width: 980px) {
    .product-rail, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .room-tile, .room-tile.is-featured { grid-column: span 6; grid-row: span 1; }
    .editorial { grid-template-columns: 1fr; }
    .editorial-media { min-height: 320px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .header-nav { display: none; }
    --header-h: 4.5rem;
    .hero-stage { padding-bottom: 3rem; }
    .hero-brand-line { font-size: clamp(3.5rem, 18vw, 5.5rem); }
    .shop-layout, .product-detail, .checkout-grid { grid-template-columns: 1fr; }
    .room-tile, .room-tile.is-featured { grid-column: span 12; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
