/* The Kitchen Cabinet — brand styles layered over Bootstrap 5 */

:root {
    --ink: #23201c;
    --ink-soft: #55504a;
    --cream: #f7f3ec;
    --cream-deep: #efe8dc;
    --paper: #fffdf9;
    --wood: #8a5a3b;
    --wood-dark: #6b4326;
    --forest: #3f5b4c;
    --forest-dark: #33493d;
    --brass: #c19a4b;
    --line: #e3dccf;
    --shadow: 0 18px 40px -22px rgba(58, 44, 30, .45);

    --bs-body-font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--cream);
    --bs-emphasis-color: var(--ink);
    --bs-border-color: var(--line);
}

body {
    background: var(--cream);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3, .display-4, .brand-name {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    letter-spacing: -.01em;
}

.text-forest { color: var(--forest) !important; }
.text-wood { color: var(--wood) !important; }
.bg-cream { background: var(--cream) !important; }
.bg-cream-deep { background: var(--cream-deep) !important; }
.bg-paper { background: var(--paper) !important; }
.eyebrow {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--wood);
}

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: .01em; }
.btn-lg { padding: .8rem 1.7rem; }
.btn-brand {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
}
.btn-brand:hover, .btn-brand:focus { background: #100e0b; border-color: #100e0b; color: #fff; }
.btn-forest { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff; }
.btn-outline-ink { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline-ink:hover { background: var(--ink); color: var(--cream); }

/* ---------- Announcement + nav ---------- */
.announce {
    background: var(--ink);
    color: var(--cream);
    letter-spacing: .02em;
}
.site-nav {
    background: rgba(247, 243, 236, .88);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
    padding-top: .7rem;
    padding-bottom: .7rem;
}
.brand-mark {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    background: var(--ink); color: var(--brass);
    border-radius: 9px; font-size: 1rem;
}
.brand-name { font-size: 1.25rem; color: var(--ink); }
.site-nav .nav-link { font-weight: 500; color: var(--ink-soft); padding-inline: .9rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--ink); }
.nav-search .form-control, .nav-search .input-group-text { background: var(--paper); border-color: var(--line); }
.nav-search .form-control:focus { box-shadow: none; border-color: var(--wood); }
.btn-cart {
    border: 1.5px solid var(--ink); color: var(--ink);
    border-radius: 999px; padding: .4rem .9rem; font-weight: 600;
}
.btn-cart:hover { background: var(--ink); color: var(--cream); }
.cart-badge { background: var(--wood); color: #fff; font-size: .62rem; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .8rem; }
.dropdown-item:hover { background: var(--cream); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(120% 90% at 85% 0%, #fbf7f0 0%, rgba(251,247,240,0) 60%),
        linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
    overflow: hidden;
}
.hero-title { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.03; }
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; }
.hero-stat-num { font-family: 'Fraunces', serif; font-size: 1.7rem; color: var(--ink); }
.hero-stat-label { font-size: .78rem; color: var(--ink-soft); }
.hero-visual {
    background: linear-gradient(160deg, #fff 0%, var(--cream-deep) 100%);
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }

/* ---------- Door artwork ---------- */
.door-svg { display: block; width: 100%; height: 100%; }
.door-frame {
    background: linear-gradient(160deg, #fbf8f2, #efe8dc);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}
.door-frame::after {
    content: ""; position: absolute; inset: 0;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
    border-radius: 16px; pointer-events: none;
}

/* ---------- Product cards ---------- */
.product-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .door-frame { border-radius: 0; }
.product-media { position: relative; aspect-ratio: 4 / 5; }
.product-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: var(--ink); color: var(--cream);
    font-size: .68rem; font-weight: 600; letter-spacing: .04em;
    padding: .28rem .6rem; border-radius: 999px; text-transform: uppercase;
}
.product-badge.badge-sale { background: var(--wood); }
.product-badge.badge-new { background: var(--forest); }
.product-title { font-family: 'Fraunces', serif; font-size: 1.06rem; color: var(--ink); }
.product-cat { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wood); }
.price { font-weight: 700; color: var(--ink); }
.price-compare { color: var(--ink-soft); text-decoration: line-through; font-weight: 500; font-size: .9rem; }
.stars { color: var(--brass); font-size: .8rem; letter-spacing: .05em; }
.quick-add {
    position: absolute; inset-inline: 12px; bottom: 12px; z-index: 2;
    opacity: 0; transform: translateY(8px); transition: .22s ease;
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
@media (hover: none) { .quick-add { opacity: 1; transform: none; } }

/* ---------- Category tiles ---------- */
.category-tile {
    position: relative; display: block; border-radius: 18px; overflow: hidden;
    border: 1px solid var(--line); min-height: 220px; text-decoration: none;
    color: var(--ink); transition: transform .25s ease, box-shadow .25s ease;
}
.category-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-tile .tile-body {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    justify-content: flex-end; padding: 1.3rem;
    background: linear-gradient(180deg, rgba(35,32,28,0) 35%, rgba(35,32,28,.72) 100%);
    color: #fff;
}
.category-tile .tile-body h3 { color: #fff; margin: 0; }
.category-tile .tile-swatch { position: absolute; inset: 0; }

/* ---------- Value props ---------- */
.value-icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: var(--cream-deep); color: var(--wood); font-size: 1.4rem; flex: none;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-sm { padding-block: clamp(2rem, 4vw, 3rem); }

/* ---------- Filters ---------- */
.filter-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    border: 1.5px solid var(--line); background: var(--paper);
    color: var(--ink-soft); border-radius: 999px; padding: .4rem .9rem;
    font-size: .85rem; font-weight: 500; text-decoration: none; transition: .15s ease;
}
.filter-chip:hover { border-color: var(--wood); color: var(--ink); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.form-select:focus, .form-control:focus { border-color: var(--wood); box-shadow: none; }

/* ---------- Product detail ---------- */
.pdp-media { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pdp-thumb { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; }
.spec-list dt { color: var(--ink-soft); font-weight: 500; }
.spec-list dd { font-weight: 600; }
.qty-input { max-width: 84px; text-align: center; border-radius: 999px; }
.trust-row i { color: var(--forest); }

/* ---------- Variant selector ---------- */
.variant-list { display: flex; flex-direction: column; gap: .5rem; }
.variant-option {
    display: flex; align-items: center; gap: .8rem;
    border: 1.5px solid var(--line); background: var(--paper);
    border-radius: 12px; padding: .7rem .9rem; cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.variant-option:hover { border-color: var(--wood); }
.variant-option input { accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.variant-option .v-info { display: flex; flex-direction: column; line-height: 1.2; }
.variant-option .v-name { font-weight: 600; color: var(--ink); }
.variant-option .v-meta { font-size: .74rem; color: var(--ink-soft); }
.variant-option .v-price { margin-left: auto; font-weight: 700; color: var(--ink); }
.variant-option.is-selected, .variant-option:has(input:checked) {
    border-color: var(--ink); box-shadow: 0 0 0 3px rgba(35,32,28,.08);
}
.variant-option.is-disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Cart ---------- */
.cart-line { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.cart-thumb { width: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); flex: none; }
.summary-card { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); position: sticky; top: 90px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); }
.site-footer .brand-name { color: #fff; }
.footer-muted { color: #b7b0a5; }
.footer-head { font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; color: #d8d1c5; margin-bottom: 1rem; }
.footer-links a { color: #cbc4b8; text-decoration: none; display: block; padding: .28rem 0; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-social { color: #cbc4b8; }
.footer-social:hover { color: var(--brass); }
.footer-rule { border-color: rgba(255,255,255,.12); }
.site-footer a { color: #cbc4b8; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Misc ---------- */
.rounded-2xl { border-radius: 20px; }
.card-clean { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
a { color: var(--wood); }
a:hover { color: var(--wood-dark); }
.text-body-soft { color: var(--ink-soft); }
