:root {
    --bg: #f7f4ef;
    --surface: #ffffff;
    --text: #171717;
    --muted: #6f6a63;
    --line: #ded8cf;
    --accent: #171717;
    --max: 1180px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

.wrap {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.92);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 22px;
    font-size: .95rem;
}

.hero {
    padding: 96px 0;
    border-bottom: 1px solid var(--line);
}

.hero h1 {
    max-width: 820px;
    margin: 8px 0 18px;
    font-size: clamp(2.5rem, 7vw, 5.8rem);
    line-height: .95;
    letter-spacing: -.045em;
}

.hero p:not(.eyebrow) {
    max-width: 690px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.eyebrow {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.button {
    display: inline-block;
    margin-top: 18px;
    padding: 13px 20px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
}

.section { padding: 64px 0 80px; }

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 5px 0 0;
    font-size: 2rem;
}

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

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}

.product-image {
    aspect-ratio: 4 / 5;
    background: #ebe7e1;
    display: grid;
    place-items: center;
    overflow: hidden;
}

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

.placeholder {
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--muted);
}

.product-copy { padding: 16px; }

.product-copy h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.price {
    margin: 0;
    font-weight: 800;
}

.empty-state {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 36px;
}

.empty-state h3 { margin-top: 0; }

.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    color: var(--muted);
    font-size: .9rem;
}

@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .wrap { width: min(calc(100% - 24px), var(--max)); }
    .hero { padding: 64px 0; }
    .product-grid { grid-template-columns: 1fr; }
}

/* KYHIRAH PHASE 3.2 */
.detail-grid{display:grid;grid-template-columns:minmax(280px,460px) minmax(0,1fr);gap:56px;align-items:start;max-width:1050px;margin:0 auto}.detail-grid>.product-image{width:100%;max-width:460px;aspect-ratio:4/5;min-height:0;height:auto;border-radius:18px;border:1px solid var(--line);overflow:hidden;background:#ebe7e1}.detail-grid>.product-image img{width:100%;height:100%;object-fit:contain;display:block;background:#fff}.detail-grid>div:last-child{padding-top:8px}.detail-grid>div:last-child h1{margin:0 0 14px;font-size:clamp(2rem,4vw,3.8rem);line-height:1.04}.detail-grid>div:last-child .price{font-size:1.4rem;margin-bottom:18px}@media(max-width:800px){.detail-grid{grid-template-columns:1fr;gap:28px}.detail-grid>.product-image{max-width:500px;margin:0 auto}}


/* KYHIRAH PHASE 5 — PUBLIC CATALOG EXPERIENCE */
.site-header{position:sticky;top:0;z-index:20;backdrop-filter:blur(12px)}
.product-card{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.product-card:hover{transform:translateY(-3px);box-shadow:0 14px 36px rgba(0,0,0,.07);border-color:#cfc7bd}
.product-card-link{display:block;height:100%}
.product-copy{display:grid;gap:7px}
.product-copy h3,.product-copy .price{margin:0}
.card-category{margin:0;color:var(--muted);font-size:.75rem;font-weight:700;letter-spacing:.04em}
.view-product{margin-top:4px;font-size:.85rem;font-weight:800}
.text-link{font-weight:800;font-size:.9rem}
.category-strip-section{padding:54px 0 10px}
.category-strip{display:flex;flex-wrap:wrap;gap:10px}
.category-pill{display:inline-flex;align-items:center;min-height:42px;padding:9px 15px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-weight:750}
.category-pill:hover{border-color:#bbb2a7}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:28px;color:var(--muted);font-size:.86rem}
.breadcrumbs a:hover{text-decoration:underline}
.catalog-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}
.catalog-heading h1{margin:6px 0 0;font-size:clamp(2.3rem,5vw,4.6rem);line-height:1}
.catalog-heading>div>p:last-child{max-width:700px;color:var(--muted);line-height:1.65}
.secondary-button-public{display:inline-block;padding:11px 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-weight:800;white-space:nowrap}
.catalog-categories{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:34px}
.category-tile{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px;border:1px solid var(--line);border-radius:15px;background:var(--surface)}
.category-tile span{font-size:.82rem;color:var(--muted);font-weight:700}
.category-tile:hover{border-color:#bbb2a7}
.catalog-results-heading{display:flex;justify-content:flex-end;margin:0 0 14px;color:var(--muted);font-size:.86rem}
.product-detail-copy h1{font-size:clamp(2.2rem,4.2vw,4rem)!important}
.detail-meta-line{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-bottom:20px}
.detail-price{font-size:1.55rem;font-weight:850;margin:0}
.status-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-size:.77rem;font-weight:850}
.status-available{border-color:#9eb7a0}
.status-reserved{border-color:#d2b46a}
.status-sold{border-color:#b9b4ae;color:var(--muted)}
.detail-lead{font-size:1.08rem;line-height:1.7;color:var(--muted)}
.attribute-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:24px 0}
.attribute-grid>div{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.attribute-grid span,.attribute-grid strong{display:block}
.attribute-grid span{margin-bottom:4px;color:var(--muted);font-size:.74rem}
.product-description{margin:24px 0;line-height:1.75;color:#4e4a45}
.marketplace-box,.status-message{margin-top:30px;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.marketplace-box>p:not(.eyebrow),.status-message p{color:var(--muted);line-height:1.6}
.marketplace-actions{display:grid;gap:10px;margin-top:16px}
.marketplace-button{display:block;padding:13px 17px;border-radius:999px;background:var(--accent);color:#fff;font-weight:850;text-align:center}
.product-detail-image img{object-fit:contain!important}
@media(max-width:900px){
  .catalog-categories{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .catalog-heading{align-items:flex-start;flex-direction:column}
  .secondary-button-public{white-space:normal}
}
@media(max-width:560px){
  .category-strip-section{padding-top:40px}
  .catalog-categories{grid-template-columns:1fr}
  .attribute-grid{grid-template-columns:1fr}
}

/* KYHIRAH PHASE 6 — BRANDING & STATIC HERO */
.brand-lockup{display:inline-flex;align-items:center;gap:10px}
.site-logo-image{display:block;width:auto!important;height:34px!important;max-width:54px!important;max-height:34px!important;object-fit:contain!important;flex:0 0 auto}
.hero-inner{display:block}
.hero-with-image .hero-inner{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);align-items:center;gap:54px}
.hero-with-image .hero-copy h1{max-width:760px}
.hero-media{width:100%;aspect-ratio:16/10;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:#ebe7e1}
.hero-media img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:850px){
  .hero-with-image .hero-inner{grid-template-columns:1fr;gap:32px}
  .hero-media{max-width:680px}
}
@media(max-width:560px){
  .site-logo-image{height:30px!important;max-width:46px!important;max-height:30px!important}
}

/* KYHIRAH PHASE 6.1 — HERO LAYOUT CORRECTION
   Tightens the Phase 6 image hero without changing the original
   text-only hero fallback. */
.hero-with-image{
    padding:64px 0 68px;
}
.hero-with-image .hero-inner{
    align-items:center;
}
.hero-with-image .hero-copy{
    align-self:center;
}
.hero-with-image .hero-copy h1{
    margin-top:0;
}
.hero-with-image .hero-media{
    align-self:center;
}
@media(max-width:850px){
    .hero-with-image{
        padding:52px 0 58px;
    }
}
@media(max-width:560px){
    .hero-with-image{
        padding:42px 0 48px;
    }
}
