:root {
    --kl-bg: #eae8e2;
    --kl-ink: #12110f;
    --kl-muted: #6a6760;
    --kl-line: #d0cec8;
    --kl-card: #faf9f6;
    --kl-soft: #e3e1da;
    --kl-deep: #1a1917;
    --kl-font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
    --kl-font-body: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--kl-font-body);
    color: var(--kl-ink);
    background-color: var(--kl-bg);
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -15%, rgba(255,255,255,0.55), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 20%, rgba(0,0,0,0.04), transparent 50%),
        linear-gradient(180deg, #f2f0ea 0%, var(--kl-bg) 38%, #e4e2db 100%);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* —— Site header (matched to exotic-room) —— */
.ms-site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 40;
    padding-top: env(safe-area-inset-top);
}
.ms-site-header-inner {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
}
.ms-site-header-inner > a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #f3f3f3;
}
.ms-site-header-inner > a img {
    height: 36px;
    width: auto;
    max-width: none;
}
.ms-site-header nav a {
    color: #9a9a9a;
    text-decoration: none;
    margin-left: 28px;
    font-size: 0.72em;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.2s;
}
.ms-site-header nav a:hover {
    color: #d4d4d4;
}
@media (max-width: 720px) {
    .ms-site-header-inner {
        padding: 0 16px;
        min-height: 58px;
    }
    .ms-site-header-inner > a img {
        height: 30px;
    }
    .ms-site-header nav a {
        margin-left: 16px;
        font-size: 0.68em;
    }
}

.kl-shell {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px 72px;
}

.kl-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 28px 0 22px;
}
.kl-brand {
    font-family: var(--kl-font-display);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 0.95;
}
.kl-brand span {
    display: block;
    margin-top: 0.18em;
    margin-left: 0;
    font-family: var(--kl-font-body);
    font-size: 0.28em;
    letter-spacing: 0.16em;
    color: var(--kl-muted);
    font-weight: 600;
    text-transform: uppercase;
    vertical-align: baseline;
}

/* —— Page header (browse + detail) —— */
.kl-page-head {
    margin: 28px 0 28px;
    animation: kl-rise 0.6s ease both;
}
.kl-page-head h1 {
    margin: 0 0 8px;
    font-family: var(--kl-font-display);
    font-weight: 400;
    font-size: clamp(2.8rem, 7vw, 4.4rem);
    letter-spacing: 0.04em;
    line-height: 0.95;
    text-transform: uppercase;
}
.kl-page-head p {
    margin: 0;
    color: var(--kl-muted);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}
.kl-detail-head .kl-head-sep {
    color: var(--kl-line);
}
.kl-page-head .kl-status {
    font-size: 0.68rem;
}

.kl-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px 18px;
}

.kl-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    opacity: 0;
    transform: translateY(16px);
    animation: kl-rise 0.7s ease forwards;
}
.kl-card:nth-child(1) { animation-delay: 0.05s; }
.kl-card:nth-child(2) { animation-delay: 0.1s; }
.kl-card:nth-child(3) { animation-delay: 0.15s; }
.kl-card:nth-child(4) { animation-delay: 0.2s; }
.kl-card:nth-child(5) { animation-delay: 0.25s; }
.kl-card:nth-child(6) { animation-delay: 0.3s; }
.kl-card:nth-child(n+7) { animation-delay: 0.35s; }

.kl-card-media {
    aspect-ratio: 1;
    background: var(--kl-soft);
    overflow: hidden;
    position: relative;
}
.kl-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(18,17,15,0.18) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.kl-card:hover .kl-card-media::after { opacity: 1; }
.kl-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.kl-card:hover .kl-card-media img { transform: scale(1.06); }
.kl-card-body {
    padding: 12px 2px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.kl-card-name {
    font-family: var(--kl-font-display);
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.05;
    text-transform: uppercase;
}
.kl-card-group {
    font-size: 0.72rem;
    color: var(--kl-muted);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kl-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--kl-muted);
    border: 1px solid var(--kl-line);
    background: rgba(255,255,255,0.35);
}

/* —— Detail: full-slab hero with soft half-height fade —— */
.kl-detail-page .kl-shell {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}
.kl-detail-page .kl-topbar,
.kl-detail-page .kl-crumb-wrap,
.kl-detail-page .kl-detail-body {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 22px;
    padding-right: 22px;
}
.kl-detail-page .kl-detail-body {
    padding-bottom: 56px;
}

.kl-crumb-wrap { padding-top: 10px; }
.kl-crumb {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--kl-muted);
}
.kl-crumb a {
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.kl-crumb a:hover { color: var(--kl-ink); border-color: var(--kl-ink); }

.kl-detail-hero {
    position: relative;
    margin: 14px 0 0;
    min-height: min(78vh, 760px);
    background: #141311;
    overflow: hidden;
    animation: kl-fade 0.8s ease both;
}
.kl-detail-hero img {
    width: 100%;
    height: min(78vh, 760px);
    object-fit: cover;
    object-position: center;
    display: block;
}
.kl-detail-hero-empty {
    min-height: min(50vh, 420px);
    width: 100%;
}
.kl-detail-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 50%;
    display: flex;
    align-items: flex-end;
    padding: 0 22px 36px;
    /* Soft fade across the lower half of the slab */
    background: linear-gradient(
        180deg,
        rgba(10, 9, 8, 0) 0%,
        rgba(10, 9, 8, 0.12) 35%,
        rgba(10, 9, 8, 0.38) 70%,
        rgba(10, 9, 8, 0.58) 100%
    );
    color: #f5f3ee;
    pointer-events: none;
}
.kl-detail-hero-caption-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    pointer-events: auto;
}
.kl-detail-hero-caption h1 {
    margin: 0 0 10px;
    font-family: var(--kl-font-display);
    font-size: clamp(2.8rem, 7vw, 4.6rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 0.95;
    text-transform: uppercase;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.25);
}
.kl-detail-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 243, 238, 0.78);
}
.kl-detail-hero-meta .kl-status.is-in { color: #bbf7d0; }
.kl-detail-hero-meta .kl-status.is-out { color: #fecaca; }
.kl-detail-hero-meta .kl-status.is-soon { color: #fde68a; }

.kl-detail-body {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: 36px 40px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 36px;
    animation: kl-rise 0.7s ease 0.1s both;
}
.kl-detail-main.is-full {
    grid-column: 1 / -1;
}

.kl-swatch-panel {
    position: sticky;
    top: 20px;
}
.kl-swatch {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--kl-line);
    background: var(--kl-soft);
}
.kl-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kl-swatch-label {
    margin: 10px 0 0;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--kl-muted);
    font-weight: 700;
}

.kl-detail-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}
.kl-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    gap: 28px 36px;
    align-items: start;
}
.kl-detail-side {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.kl-info h2,
.kl-sizes-block h2,
.kl-download h2 {
    margin: 0 0 14px;
    font-family: var(--kl-font-display);
    font-size: 1.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.kl-attrs {
    display: grid;
    gap: 0;
    margin: 0;
}
.kl-attrs div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(18,17,15,0.1);
}
.kl-attrs div:last-child { border-bottom: 1px solid rgba(18,17,15,0.1); }
.kl-attrs dt {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--kl-muted);
    font-weight: 700;
    padding-top: 3px;
}
.kl-attrs dd { margin: 0; font-weight: 600; font-size: 0.98rem; }

.kl-sizes {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.kl-sizes li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92rem;
    padding: 10px 0;
    border-top: 1px solid rgba(18,17,15,0.08);
}
.kl-sizes li:last-child { border-bottom: 1px solid rgba(18,17,15,0.08); }
.kl-sizes .dim { color: var(--kl-muted); font-weight: 500; }

.kl-download {
    padding-top: 0;
    border-top: 0;
}
.kl-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}
.kl-actions .kl-note {
    flex: none;
    margin-top: 2px;
}

@media (max-width: 980px) {
    .kl-detail-body {
        grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
        gap: 28px;
    }
    .kl-detail-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 720px) {
    .kl-detail-body {
        grid-template-columns: 1fr;
    }
    .kl-swatch-panel {
        position: static;
        max-width: 420px;
    }
    .kl-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
.kl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border: 1px solid var(--kl-ink);
    background: var(--kl-ink);
    color: #f5f3ee;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.kl-btn:hover { background: #2c2a27; transform: translateY(-1px); }
.kl-btn.secondary {
    background: transparent;
    color: var(--kl-ink);
}
.kl-btn.secondary:hover { background: rgba(18,17,15,0.05); }
.kl-note {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: var(--kl-muted);
    line-height: 1.45;
}

.kl-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.kl-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.kl-status.is-in { color: #166534; }
.kl-status.is-out { color: #7f1d1d; }
.kl-status.is-soon { color: #854d0e; }

@keyframes kl-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes kl-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
