:root {
    --ink: #14120f;
    --paper: #fbf7ef;
    --ivory: #f5f1e9;
    --muted: #766f66;
    --line: #dfd2c0;
    --bronze: #b8844c;
    --brown: #7a5c3a;
    --dark-brown: #3b2d1f;
    --success: #275c32;
    --danger: #8a251d;
    --shadow: 0 28px 80px rgba(20, 18, 15, .16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--ivory);
    color: var(--ink);
    line-height: 1.65;
}

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

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

.container {
    max-width: 1220px;
    margin: auto;
    padding: 0 24px;
}

/* HEADER */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    border: 0;
}

.nav-wrap {
    width: 100%;
    height: 132px;
    padding: 28px 48px;
    display: grid;
    grid-template-columns: 300px 1fr 170px;
    align-items: start;
}

.brand,
.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #2b0e08;
}

.brand-logo {
    width: 108px;
    height: auto;
    display: block;
}

.brand-divider {
    width: 1px;
    height: 48px;
    background: rgba(43, 14, 8, .45);
    display: block;
}

.brand-subtitle {
    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2b0e08;
}

.brand-mark,
.brand-text {
    display: none;
}

.nav {
    justify-self: center;
    display: flex;
    gap: 48px;
    align-items: center;
    padding-top: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    color: var(--brown);
}

.nav a {
    color: var(--brown);
    padding-bottom: 8px;
    border-bottom: 1px solid transparent;
    transition: all .25s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--dark-brown);
    border-bottom-color: var(--brown);
}

.nav-icons {
    justify-self: end;
    display: flex;
    gap: 24px;
    align-items: center;
    padding-top: 15px;
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.nav-icons a {
    color: #fff;
    position: relative;
    font-weight: 300;
}

.bag-icon span {
    position: absolute;
    top: -16px;
    right: -15px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #d9b88e;
    color: #fff;
    font-size: 12px;
    display: grid;
    place-items: center;
}

/* BUTTONS + TYPOGRAPHY */
.nav-cta,
.btn {
    background: #fff;
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn.secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
    box-shadow: none;
}

.text-link {
    font-weight: 800;
    color: var(--ink);
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
}

.eyebrow {
    color: var(--bronze);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2.4px;
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
    color: var(--ink);
    letter-spacing: -.045em;
    font-weight: 600;
}

.muted {
    color: var(--muted);
}

/* HOME HERO */
.lumi-hero {
    min-height: 560px;
    height: 560px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #111;
}

.lumi-hero-bg,
.lumi-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.lumi-hero-bg img {
    object-fit: cover;
    object-position: center 44%;
}

.lumi-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(250,244,235,.82) 0%, rgba(250,244,235,.18) 27%, rgba(20,18,15,.35) 62%, rgba(20,18,15,.52) 100%),
        linear-gradient(180deg, rgba(20,18,15,.2), rgba(20,18,15,.34));
}

.lumi-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 980px;
    margin: 0 auto;
    padding: 205px 24px 0;
}

.lumi-brand-kicker {
    display: none;
}

.lumi-hero h1 {
    font-family: "Cormorant Garamond", serif;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .045em;
    font-size: clamp(46px, 5.4vw, 78px);
    line-height: .95;
    margin: 0 0 22px;
}

.lumi-hero p {
    max-width: 660px;
    margin: 0 auto 30px;
    color: #fff;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 400;
}

.lumi-btn {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    border: 1px solid rgba(255, 255, 255, .9);
    color: #fff;
    border-radius: 0;
    padding: 17px 34px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(20,18,15,.14);
}

/* HOME CATEGORY TILES */
.lumi-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: calc(100% - 64px);
    margin: 24px 32px 0;
    background: transparent;
    padding: 0;
}

.lumi-cat {
    height: 420px;
    position: relative;
    overflow: hidden;
    display: block;
    background: #ddd;
}

.lumi-cat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.lumi-cat:hover img {
    transform: scale(1.04);
}

.lumi-cat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.28);
    z-index: 1;
}

.lumi-cat div {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    text-align: center;
}

.lumi-cat h2 {
    font-family: Inter, Arial, sans-serif;
    color: #fff;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 3px;
    font-size: 42px;
    line-height: 1;
    margin: 0 0 26px;
}

.lumi-cat span {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 50%;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 25px;
}

/* SECTIONS */
.section {
    padding: 72px 0;
}

body.inner-page .section {
    padding-top: 140px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
    margin-bottom: 32px;
}

.section-title h2 {
    font-size: 34px;
    line-height: 1;
    margin: 10px 0 0;
    max-width: 690px;
    font-weight: 500;
    letter-spacing: -.02em;
}

.featured-section {
    padding-top: 56px;
    background: var(--ivory);
}

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

/* PRODUCT CARDS */
.product-card,
.editorial-card,
.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(45, 34, 21, .08);
}

.product-card {
    transition: all .3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

.product-media {
    position: relative;
    overflow: hidden;
    background: #e8ded0;
}

.product-img {
    height: 340px;
    width: 100%;
    object-fit: cover;
    transition: .38s ease;
}

.product-card:hover .product-img {
    transform: scale(1.035);
}

.card-body {
    padding: 23px 24px 26px;
}

.card-body h3 {
    font-size: 29px;
    line-height: 1.03;
    margin: 10px 0 8px;
}

.tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.7px;
    color: var(--bronze);
    font-weight: 900;
}

.status {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 900;
    background: rgba(255,250,242,.88);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1.1px;
}

.status-available {
    color: var(--success);
}

.status-sold-out {
    color: var(--danger);
}

.status-hidden {
    color: #555;
}

.price {
    font-weight: 800;
    font-size: 18px;
    margin: 8px 0;
    color: #3b352f;
}

/* SHOP */
.shop-tools {
    display: grid;
    grid-template-columns: 2fr 1fr auto auto;
    gap: 12px;
    margin-bottom: 28px;
}

/* PRODUCT DETAIL */
.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(320px, 42%);
    gap: 34px;
    align-items: start;
}

.product-gallery {
    width: 100%;
    min-width: 0;
}

.gallery-main-wrap {
    position: relative;
    width: 100%;
    height: 620px;
    border-radius: 28px;
    overflow: hidden;
    background: #e8e0d5;
}

.gallery-main,
.gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .25s ease;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.8);
    background: rgba(20,18,15,.35);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    display: grid;
    place-items: center;
}

.gallery-prev {
    left: 18px;
}

.gallery-next {
    right: 18px;
}

.gallery-counter {
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: rgba(20,18,15,.62);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    z-index: 4;
}

.carousel-thumbs,
.thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-top: 14px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.thumb-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 110px;
    opacity: .55;
    transition: .2s ease;
}

.thumb-btn.active {
    opacity: 1;
    box-shadow: 0 0 0 3px var(--bronze);
}

.thumb-btn img,
.thumbs img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}

.detail-panel {
    position: sticky;
    top: 100px;
    height: auto;
    align-self: start;
}

.detail-panel h1 {
    font-size: 42px;
    line-height: 1;
    margin: 26px 0 22px;
}

.stock-line {
    color: var(--success);
    font-weight: 800;
}

.stock-line.sold {
    color: var(--danger);
}

/* VARIANTS */
.variant-box {
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.variant-box h3 {
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 14px;
    color: var(--muted);
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-option {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

.variant-option span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.18);
    display: inline-block;
}

.variant-option.active {
    border-color: var(--bronze);
    box-shadow: 0 0 0 2px rgba(184,132,76,.18);
}

.variant-meta {
    font-size: 13px;
    color: var(--muted);
    margin: 12px 0 0;
}

/* FORMS */
input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 13px 14px;
    background: white;
    font: inherit;
}

textarea {
    min-height: 150px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-grid > div {
    display: flex;
    flex-direction: column;
}

.panel {
    padding: 28px;
}

.panel label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

/* CTA + EMPTY */
.empty-state {
    border: 1px dashed var(--line);
    border-radius: 30px;
    padding: 42px;
    background: rgba(255,250,242,.68);
}

.empty-state h3 {
    font-size: 34px;
    margin: 0 0 6px;
}

.whatsapp-panel {
    border-radius: 40px;
    background: var(--ink);
    color: var(--paper);
    padding: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.whatsapp-panel h2 {
    color: var(--paper);
    font-size: 48px;
    line-height: 1;
    margin: 8px 0 0;
    max-width: 680px;
}

.floating-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #25D366;
    color: white;
    border-radius: 999px;
    padding: 13px 18px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
    z-index: 30;
}

/* TABLES */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 18px;
    overflow: hidden;
}

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

/* ADMIN */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--ink);
    color: white;
    padding: 26px;
}

.admin-sidebar a {
    display: block;
    color: #eee;
    padding: 10px 0;
}

.admin-main {
    padding: 30px;
}

.alert {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 15px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.admin-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.admin-card span {
    display: block;
    color: #777;
    font-size: 13px;
    margin-bottom: 8px;
}

.admin-card strong {
    font-size: 32px;
    font-weight: 700;
    display: block;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.admin-panel {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.admin-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-panel-head h2 {
    margin: 0;
    font-size: 24px;
}

.admin-panel-head a {
    color: var(--bronze);
    font-weight: 600;
}

/* FOOTER */
.site-footer {
    background: var(--ink);
    color: var(--paper);
    padding: 56px 0;
    margin-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 30px;
}

.site-footer a {
    display: block;
    color: #ded6cc;
    margin: 8px 0;
}

.site-footer p {
    color: #ded6cc;
}

/* TABLET */
@media(max-width: 980px) {
    .nav-wrap {
        height: 96px;
        padding: 18px 22px;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .brand-logo {
        width: 86px;
    }

    .brand-divider,
    .brand-subtitle,
    .nav-icons,
    .nav {
        display: none;
    }

    body.inner-page .section {
        padding-top: 110px;
    }

    .lumi-hero {
        height: 620px;
        min-height: 620px;
    }

    .lumi-hero-inner {
        padding-top: 185px;
    }

    .lumi-hero h1 {
        font-size: 46px;
    }

    .lumi-hero p {
        font-size: 16px;
    }

    .lumi-categories {
        width: calc(100% - 28px);
        margin: 14px 14px 0;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .lumi-cat {
        height: 260px;
    }

    .lumi-cat h2 {
        font-size: 28px;
    }

    .lumi-cat span {
        width: 48px;
        height: 48px;
    }

    .grid,
    .footer-grid,
    .form-grid,
    .shop-tools,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .product-layout {
        display: block;
    }

    .detail-panel {
        position: relative;
        top: auto;
        margin-top: 24px;
    }

    .section-title {
        display: block;
    }

    .section-title h2,
    .whatsapp-panel h2 {
        font-size: 40px;
    }

    .whatsapp-panel {
        display: block;
        padding: 34px;
    }

    .whatsapp-panel .btn {
        margin-top: 22px;
    }

    .gallery-main-wrap {
        height: 430px;
    }

    .product-img {
        height: 300px;
    }

    .thumb-btn {
        flex-basis: 86px;
    }

    .thumb-btn img,
    .thumbs img {
        width: 86px;
        height: 86px;
    }

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

    .admin-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media(max-width: 560px) {
    .container {
        padding: 0 16px;
    }

    .nav-wrap {
        height: 82px;
        padding: 14px 16px;
    }

    .brand-logo {
        width: 72px;
    }

    body.inner-page .section {
        padding-top: 92px;
    }

    .section {
        padding-bottom: 42px;
    }

    .lumi-hero {
        height: 560px;
        min-height: 560px;
    }

    .lumi-hero-inner {
        padding-top: 160px;
    }

    .lumi-hero h1 {
        font-size: 38px;
    }

    .lumi-hero p {
        font-size: 15px;
    }

    .lumi-categories {
        grid-template-columns: 1fr;
    }

    .lumi-cat {
        height: 300px;
    }

    .product-layout {
        display: block;
    }

    .gallery-main-wrap {
        height: min(92vw, 390px);
        border-radius: 22px;
    }

    .gallery-main,
    .gallery-slide {
        height: 100%;
        object-fit: cover;
    }

    .gallery-arrow {
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-counter {
        right: 10px;
        bottom: 10px;
    }

    .carousel-thumbs,
    .thumbs {
        gap: 8px;
        margin-top: 10px;
    }

    .thumb-btn {
        min-width: 70px;
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }

    .thumb-btn img,
    .thumbs img {
        width: 70px;
        height: 70px;
    }

    .detail-panel {
        padding: 24px;
        border-radius: 24px;
        margin-top: 22px;
    }

    .detail-panel h1 {
        font-size: 34px;
    }

    .price {
        font-size: 24px;
    }

    .variant-options {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .variant-option {
        white-space: nowrap;
    }

    .floating-whatsapp {
        right: 14px;
        bottom: 84px;
        padding: 11px 15px;
        font-size: 14px;
    }

    .admin-layout {
        display: block;
    }

    .admin-cards {
        grid-template-columns: 1fr;
    }

    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}