﻿@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap");

:root {
    --wood-900: #090807;
    --wood-800: #15110c;
    --wood-700: #2b2318;
    --wood-600: #4c3b20;
    --wood-500: #806331;
    --wood-400: #c69c49;
    --wood-300: #e5c96f;
    --wood-200: #f4e6b7;
    --wood-100: #fbf6e6;
    --cream: #ffffff;
    --ink: #14120e;
    --muted: #746b5f;
    --line: #eadfca;
    --accent: #d7ad4b;
    --accent-dark: #9b7628;
    --success: #4b7a3f;
    --danger: #b5482f;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 12, 8, .05), 0 1px 3px rgba(15, 12, 8, .04);
    --shadow-md: 0 8px 22px rgba(15, 12, 8, .08);
    --shadow-lg: 0 22px 55px rgba(15, 12, 8, .16);
    --radius: 10px;
    --radius-sm: 7px;
    --maxw: 1280px;
    --header-h: 76px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.18; font-weight: 600; color: var(--wood-900); font-family: var(--font-display); letter-spacing: 0; }

p { margin: 0 0 1rem; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: 0;
    padding: .7rem 1.35rem;
    border-radius: var(--radius-sm);
    background: var(--wood-900);
    color: var(--accent);
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: var(--shadow-sm);
}

.btn:hover { background: var(--wood-700); color: var(--wood-200); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
    background: transparent;
    color: var(--wood-900);
    border: 1px solid var(--accent);
    box-shadow: none;
}

.btn-outline:hover { background: var(--wood-100); border-color: var(--accent-dark); }

.btn-block { width: 100%; }

.btn-lg { padding: .9rem 1.9rem; font-size: 1rem; }

.badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: .22rem .55rem;
    border-radius: 5px;
    text-transform: uppercase;
}

.badge-sale { background: var(--danger); color: #fff; }
.badge-new { background: var(--success); color: #fff; }
.badge-soft { background: var(--wood-200); color: var(--wood-800); }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--wood-900);
    color: var(--wood-200);
    font-size: .82rem;
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    gap: 1rem;
}

.topbar a { color: var(--wood-200); }
.topbar a:hover { color: #fff; }
.topbar .topbar-links { display: flex; gap: 1.25rem; }
.topbar-note { display: inline-flex; align-items: center; gap: .5rem; }
.topbar-note svg { display: block; opacity: .85; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header-h);
    overflow: hidden;
}

.brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--wood-900);
    white-space: nowrap;
}
.brand.has-logo { gap: 0; }

.brand-mark {
    width: 42px; height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--accent);
}
.brand.has-logo .brand-mark {
    width: 64px;
    height: 54px;
}
.brand-mark img {
    display: block;
    width: auto;
    height: 42px;
    max-width: 100%;
    object-fit: contain;
}
.brand.has-logo .brand-mark img { height: 54px; }

.brand small { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .12em; color: var(--accent-dark); text-transform: uppercase; font-family: var(--font); }

.search {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .3rem .3rem .3rem 1rem;
    max-width: 560px;
    transition: border-color .2s, box-shadow .2s;
}

.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(215, 173, 75, .16); }

.search input {
    flex: 1;
    border: none;
    outline: none;
    font: inherit;
    background: transparent;
    color: var(--ink);
}

.search button {
    border: none;
    cursor: pointer;
    background: var(--wood-900);
    color: var(--accent);
    border-radius: 6px;
    padding: .5rem .8rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search button svg, .icon-btn .ico svg { display: block; }

.header-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }

.icon-btn {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wood-900);
    font: inherit;
    font-size: .68rem;
    padding: .45rem .6rem;
    border-radius: 10px;
}

.icon-btn:hover { background: var(--wood-100); color: var(--accent-dark); }
.icon-btn .ico { font-size: 1.2rem; line-height: 1; }

.cart-count {
    position: absolute;
    top: 2px; right: 6px;
    background: var(--accent);
    color: var(--wood-900);
    font-size: .62rem;
    font-weight: 700;
    min-width: 17px; height: 17px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 0 4px;
}

.menu-toggle { display: none; font-size: 1.5rem; }

/* ---------- Primary nav ---------- */
.primary-nav {
    background: var(--wood-800);
    color: var(--wood-200);
}

.primary-nav .container {
    display: flex;
    align-items: stretch;
    gap: .25rem;
    flex-wrap: wrap;
    position: relative;
}

.primary-nav a {
    display: inline-flex;
    align-items: center;
    padding: .85rem 1rem;
    font-weight: 600;
    font-size: .92rem;
    color: var(--wood-200);
    border-bottom: 3px solid transparent;
    transition: background .2s, border-color .2s;
}

.primary-nav a:hover, .primary-nav a.active {
    background: var(--wood-900);
    border-bottom-color: var(--accent);
}

.primary-nav .nav-item { position: static; display: flex; }
.primary-nav .nav-item > a { gap: .35rem; }
.primary-nav .caret { display: inline-flex; opacity: .75; }
.primary-nav .caret svg { display: block; }

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: min(520px, 100%);
    max-width: 100%;
    padding: 1.2rem 1.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.primary-nav .nav-item:hover .nav-dropdown,
.primary-nav .nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem 1.6rem;
}
.nav-col { padding: .2rem 0; break-inside: avoid; }
.nav-col-title {
    display: block !important;
    padding: .35rem 0 !important;
    font-weight: 700 !important;
    color: var(--wood-900) !important;
    border-bottom: none !important;
}
.nav-col-title:hover { color: var(--accent-dark) !important; background: none !important; }
.nav-col ul { list-style: none; margin: 0 0 .4rem; padding: 0; }
.nav-col li a {
    display: block !important;
    padding: .25rem 0 !important;
    font-size: .86rem !important;
    font-weight: 400 !important;
    color: var(--muted) !important;
    border-bottom: none !important;
}
.nav-col li a:hover { color: var(--accent-dark) !important; background: none !important; }

/* ---------- Hero ---------- */
.hero-list {
    display: grid;
    gap: 1rem;
    margin-top: 0;
}

.hero {
    position: relative;
    background:
        linear-gradient(115deg, rgba(9,8,7,.88), rgba(43,35,24,.62)),
        url("/uploads/banners/main-banner.png") center/cover;
    color: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 1.5rem;
}

.hero-inner {
    max-width: 600px;
    padding: clamp(2.5rem, 6vw, 5rem);
}

.hero h1 { color: #fff; font-size: clamp(2rem, 4.8vw, 3.3rem); font-weight: 600; }
.hero p { font-size: clamp(1rem, 2vw, 1.18rem); color: rgba(255,255,255,.88); max-width: 460px; }
.hero .eyebrow { display: inline-block; letter-spacing: .16em; text-transform: uppercase; font-size: .74rem; color: var(--accent); font-weight: 600; margin-bottom: .4rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
.hero-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.7); }

.hero-stats {
    list-style: none; display: flex; flex-wrap: wrap; gap: 2.2rem;
    margin: 2.2rem 0 0; padding: 1.4rem 0 0;
    border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; line-height: 1; }
.hero-stats span { font-size: .82rem; color: rgba(255,255,255,.75); }

.cat-link { display: inline-flex; align-items: center; gap: .3rem; }
.cat-link svg { display: block; transition: transform .2s ease; }
.cat-card:hover .cat-link svg { transform: translateX(3px); }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}
.section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.section-head p { color: var(--muted); margin: 0; }
.section-head .link { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent-dark); font-weight: 600; white-space: nowrap; }
.section-head .link svg { display: block; transition: transform .2s ease; }
.section-head .link:hover { color: var(--accent); }
.section-head .link:hover svg { transform: translateX(3px); }

/* ---------- Value props ---------- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.value-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    display: flex;
    gap: .9rem;
    align-items: center;
    box-shadow: var(--shadow-sm);
}
.value-card .ico {
    flex: none;
    width: 46px; height: 46px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: var(--wood-100);
    color: var(--accent-dark);
}
.value-card .ico svg { display: block; }
.value-card strong { display: block; color: var(--wood-900); }
.value-card span { font-size: .85rem; color: var(--muted); }

/* ---------- Category cards ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}
.cat-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 2.4;
    box-shadow: var(--shadow-sm);
    background: linear-gradient(135deg, var(--accent), var(--wood-900));
    color: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .cat-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.1rem;
    background: linear-gradient(to top, rgba(43,29,18,.78), rgba(43,29,18,0) 65%);
}
.cat-card h3 { color: #fff; margin: 0; font-size: 1.1rem; }
.cat-card span { font-size: .8rem; color: rgba(255,255,255,.85); }

/* ---------- Product grid & cards ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--wood-300); }

.product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--wood-100);
    overflow: hidden;
}
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; z-index: 1; }
.product-card:hover .product-media img { transform: scale(1.05); }

.product-media .placeholder {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-size: 2.2rem; font-weight: 600;
    font-family: var(--font-display);
    color: var(--wood-400);
    background: linear-gradient(160deg, var(--wood-100), var(--wood-200));
}

.product-badges { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; gap: .35rem; }

.product-body { padding: .95rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.product-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.product-title { font-size: .98rem; font-weight: 600; color: var(--wood-900); margin: .25rem 0 .6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-height: 2.5em; }
.product-title:hover { color: var(--accent-dark); }

.product-price { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; }
.product-price .now { font-size: 1.18rem; font-weight: 800; color: var(--wood-900); }
.product-price .was { font-size: .9rem; color: var(--muted); text-decoration: line-through; }

.product-actions { margin-top: .85rem; display: flex; gap: .5rem; }
.product-actions .btn { flex: 1 1 0; min-width: 0; padding-left: .6rem; padding-right: .6rem; white-space: nowrap; }

.stock { font-size: .78rem; font-weight: 600; margin-top: .5rem; display: inline-flex; align-items: center; gap: .35rem; }
.stock svg { display: block; }
.stock.in { color: var(--success); }
.stock.out { color: var(--danger); }

/* ---------- Catalog layout ---------- */
.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.8rem; align-items: start; }

.filters {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    position: sticky;
    top: calc(var(--header-h) + 12px);
}
.filters h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .8rem; }
.filters ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.filters li { margin-bottom: .15rem; }
.filters a {
    display: flex; justify-content: space-between;
    padding: .45rem .6rem; border-radius: 8px;
    font-size: .92rem; color: var(--ink);
}
.filters a:hover { background: var(--wood-100); }
.filters a.active { background: var(--wood-800); color: #fff; }
.filters a.open:not(.active) { color: var(--wood-900); font-weight: 600; }
.filters a .count { color: var(--muted); font-size: .82rem; }
.filters a.active .count { color: var(--wood-200); }

.subfilter { list-style: none; margin: .1rem 0 .5rem; padding: 0 0 0 .7rem; border-left: 1px solid var(--line); }
.subfilter li { margin-bottom: .05rem; }
.subfilter a { font-size: .87rem; padding: .35rem .55rem; color: var(--muted); }
.subfilter a:hover { background: var(--wood-100); color: var(--ink); }
.subfilter a.active { background: var(--accent); color: #fff; }
.subfilter a.active .count { color: rgba(255,255,255,.85); }
.subfilter .subfilter { padding-left: .6rem; }

.catalog-toolbar {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap;
    padding-bottom: 1.1rem; border-bottom: 1px solid var(--line);
}
.catalog-heading h1 { font-size: 1.65rem; margin: 0; }
.catalog-toolbar .result-count { display: block; color: var(--muted); font-size: .85rem; margin-top: .35rem; }

.sort-form { display: flex; align-items: center; gap: .55rem; flex: none; }
.sort-form label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.sort-form select {
    font: inherit; font-size: .88rem; font-weight: 500;
    padding: .5rem 2.2rem .5rem .8rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a7d6d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center;
    color: var(--ink); cursor: pointer; outline: none; appearance: none; -webkit-appearance: none;
}
.sort-form select:focus { border-color: var(--wood-400); }

/* ---------- Pagination ---------- */
.pagination {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: .4rem; margin-top: 2.5rem;
}
.page-link {
    display: inline-grid; place-items: center;
    min-width: 40px; height: 40px; padding: 0 .55rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white); color: var(--wood-800);
    font-size: .92rem; font-weight: 600;
    transition: background .15s, border-color .15s, color .15s;
}
.page-link:hover:not(.active):not(.disabled) { background: var(--wood-100); border-color: var(--wood-300); }
.page-link.active { background: var(--wood-900); border-color: var(--wood-900); color: var(--accent); cursor: default; }
.page-link.page-nav { font-size: 1.2rem; line-height: 1; }
.page-link.disabled { color: var(--wood-300); background: var(--cream); cursor: not-allowed; }
.page-ellipsis { padding: 0 .35rem; color: var(--muted); align-self: flex-end; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.pdp-gallery {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--wood-100);
    border: 1px solid var(--line);
    aspect-ratio: 1/1;
}
.pdp-gallery { position: relative; }
.pdp-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.pdp-gallery .placeholder {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 5rem; font-weight: 600; color: var(--wood-400); font-family: var(--font-display);
    background: linear-gradient(160deg, var(--wood-100), var(--wood-200));
}
.pdp-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: .6rem;
    margin-top: .9rem;
}
.pdp-thumb {
    padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--wood-100); overflow: hidden; cursor: pointer;
    aspect-ratio: 1/1; transition: border-color .15s, box-shadow .15s;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { border-color: var(--wood-400); }
.pdp-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(169, 98, 42, .18); }

.pdp-gallery.zoomable .pimg { cursor: zoom-in; }
.pdp-zoom {
    position: absolute; z-index: 2; bottom: .8rem; right: .8rem;
    width: 40px; height: 40px; border-radius: 50%;
    border: none; cursor: pointer;
    background: rgba(255,255,255,.92); color: var(--wood-800);
    display: grid; place-items: center;
    box-shadow: var(--shadow-md); transition: background .15s, transform .15s;
}
.pdp-zoom:hover { background: #fff; transform: scale(1.05); }

.lightbox {
    position: fixed; inset: 0; z-index: 300;
    display: none; align-items: center; justify-content: center;
    background: rgba(20, 13, 8, .9); padding: 3.5rem 1rem;
}
.lightbox.open { display: flex; }
.lightbox-image {
    max-width: min(92vw, 1100px); max-height: 86vh;
    object-fit: contain; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}
.lightbox-close, .lightbox-nav {
    position: absolute; border: none; cursor: pointer;
    background: rgba(255,255,255,.12); color: #fff;
    display: grid; place-items: center; border-radius: 50%;
    transition: background .15s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 1.1rem; right: 1.1rem; width: 44px; height: 44px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox-nav.prev { left: 1.1rem; }
.lightbox-nav.next { right: 1.1rem; }
.lightbox-counter {
    position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500;
    background: rgba(0,0,0,.3); padding: .3rem .8rem; border-radius: 999px;
}
@media (max-width: 520px) {
    .lightbox-nav { width: 40px; height: 40px; }
    .lightbox-nav.prev { left: .5rem; }
    .lightbox-nav.next { right: .5rem; }
}

.pdp-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.pdp-price { display: flex; align-items: baseline; gap: .8rem; margin: 1rem 0; }
.pdp-price .now { font-size: 2rem; font-weight: 800; color: var(--wood-900); }
.pdp-price .was { font-size: 1.15rem; color: var(--muted); text-decoration: line-through; }
.pdp-desc { color: var(--ink); }
.pdp-meta { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1.2rem; }
.pdp-meta dl { display: grid; grid-template-columns: 130px 1fr; gap: .5rem 1rem; margin: 0; }
.pdp-meta dt { color: var(--muted); font-size: .9rem; }
.pdp-meta dd { margin: 0; font-weight: 600; }
.pdp-specs { display: grid; grid-template-columns: 180px 1fr; gap: .65rem 1rem; margin: 1rem 0 0; }
.pdp-specs dt { color: var(--muted); }
.pdp-specs dd { margin: 0; font-weight: 600; }
.qty {
    display: inline-flex; align-items: center; border: 1.5px solid var(--line);
    border-radius: 999px; overflow: hidden;
}
.qty button { border: none; background: var(--white); width: 40px; height: 44px; font-size: 1.2rem; cursor: pointer; color: var(--wood-800); }
.qty input { width: 48px; height: 44px; border: none; text-align: center; font: inherit; font-weight: 600; outline: none; }
.pdp-buy { display: flex; gap: .8rem; align-items: center; margin: 1.5rem 0; flex-wrap: wrap; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); padding: 1.2rem 0 0; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb span { color: var(--wood-700); }

/* ---------- Static / content pages ---------- */
.page-hero {
    background: linear-gradient(120deg, var(--wood-900), var(--wood-700));
    color: #fff;
    border-radius: var(--radius);
    padding: clamp(2rem, 5vw, 3.2rem);
    margin-top: 1.5rem;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.85); margin: 0; max-width: 600px; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 2rem; }

.card-surface {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.4rem, 3vw, 2.2rem);
    box-shadow: var(--shadow-sm);
}

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; background: var(--white); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--wood-900); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-body { padding: 0 1.2rem 1.1rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem; color: var(--wood-800); }
.field input, .field textarea, .field select {
    width: 100%; padding: .7rem .9rem; font: inherit;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white); outline: none; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--wood-400); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Newsletter ---------- */
.newsletter {
    background: linear-gradient(120deg, var(--wood-900), var(--wood-700));
    color: #fff; border-radius: var(--radius);
    padding: clamp(2rem, 5vw, 3rem);
    display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,.85); margin: 0; }
.newsletter form { display: flex; gap: .6rem; flex: 1; min-width: 280px; max-width: 460px; }
.newsletter input { flex: 1; border: none; border-radius: 999px; padding: .8rem 1.2rem; font: inherit; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wood-900); color: var(--wood-200); margin-top: 3rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--wood-200); font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: var(--wood-300); font-size: .92rem; max-width: 320px; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 1.1rem; }
.footer-social a:hover { background: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.2rem 0;
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    font-size: .85rem; color: var(--wood-300);
}

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center; padding: 3.5rem 1rem; color: var(--muted);
    background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-state .ico { font-size: 2.6rem; margin-bottom: .6rem; }

/* ---------- Error ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.error-page .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--wood-300); line-height: 1; }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop {
    position: fixed; inset: 0; background: rgba(43,29,18,.5);
    opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 60;
}
.mobile-drawer {
    position: fixed; top: 0; left: 0; height: 100%; width: min(82vw, 340px);
    background: var(--cream); z-index: 70; padding: 1.2rem;
    transform: translateX(-100%); transition: transform .28s ease; overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.mobile-drawer .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mobile-drawer .drawer-close { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--wood-800); }
.mobile-drawer nav a { display: block; padding: .8rem .4rem; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--wood-900); }
#nav-toggle:checked ~ .drawer-backdrop { opacity: 1; visibility: visible; }
#nav-toggle:checked ~ .mobile-drawer { transform: translateX(0); }
#nav-toggle { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .value-grid, .cat-grid, .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .catalog { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 860px) {
    .search { display: none; }
    .menu-toggle { display: inline-flex; }
    .primary-nav { display: none; }
    .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-grid, .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pdp { grid-template-columns: 1fr; gap: 1.5rem; }
    .catalog { grid-template-columns: 1fr; }
    .filters { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .topbar .topbar-links { display: none; }
}

@media (max-width: 640px) {
    .cat-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header-main { gap: .5rem; }
    .brand { min-width: 0; overflow: hidden; }
    .brand > span:not(.brand-mark) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .brand.has-logo .brand-mark { width: 54px; height: 44px; }
    .brand.has-logo .brand-mark img { height: 44px; }
    .header-actions { gap: 0; }
    .header-actions .icon-btn { padding: .45rem .4rem; }
    .header-actions .icon-btn > span:not(.ico):not(.cart-count) { display: none; }
}

@media (max-width: 520px) {
    .container { padding: 0 14px; }
    .value-grid, .cat-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .brand { font-size: 1.15rem; }
    .brand.has-logo .brand-mark { width: 48px; height: 40px; }
    .brand.has-logo .brand-mark img { height: 40px; }
    .brand small { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
    .newsletter { flex-direction: column; align-items: stretch; }
    .newsletter form { max-width: 100%; min-width: 0; width: 100%; flex-direction: column; }
    .newsletter form .btn { width: 100%; }
    .section { padding: 2rem 0; }
    .product-body { padding: .7rem .75rem .85rem; }
    .product-actions { flex-direction: column; gap: .4rem; }
    .product-actions .btn { width: 100%; padding-top: .6rem; padding-bottom: .6rem; }
    .product-price .now { font-size: 1.05rem; }
    .product-title { font-size: .9rem; }
    .catalog-toolbar { align-items: stretch; }
    .sort-form { width: 100%; }
    .sort-form select { flex: 1; }
}

@media (max-width: 380px) {
    .product-grid { grid-template-columns: 1fr; }
}

/* ---------- Quote basket ---------- */
.toast-stack {
    position: fixed;
    right: 18px; bottom: 18px;
    z-index: 200;
    display: flex; flex-direction: column; gap: .6rem;
}
.toast {
    background: var(--wood-900);
    color: #fff;
    padding: .85rem 1.1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: .6rem;
    font-size: .9rem;
    max-width: 320px;
    transform: translateY(12px);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast .ico { font-size: 1.1rem; }

.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.8rem; align-items: start; }
.quote-items { display: flex; flex-direction: column; gap: .9rem; }
.quote-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .8rem;
}
.quote-row .info h3 { overflow-wrap: anywhere; }
.quote-row .thumb {
    width: 84px; height: 84px; border-radius: var(--radius-sm);
    overflow: hidden; background: var(--wood-100);
    display: grid; place-items: center; font-weight: 800; color: var(--wood-500); font-size: 1.4rem;
}
.quote-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.quote-row .info h3 { font-size: .98rem; margin: 0 0 .3rem; }
.quote-row .info .price { color: var(--wood-700); font-weight: 700; }
.quote-row .right { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.quote-remove { background: none; border: none; cursor: pointer; color: var(--danger); font-size: .82rem; }
.quote-remove:hover { text-decoration: underline; }

.quote-summary {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem;
    position: sticky;
    top: calc(var(--header-h) + 12px);
}
.quote-summary h3 { margin-bottom: 1rem; }
.quote-summary .line { display: flex; justify-content: space-between; padding: .4rem 0; color: var(--muted); }
.quote-summary .line.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .8rem; color: var(--wood-900); font-weight: 800; font-size: 1.15rem; }
.btn-whatsapp {
    background: #25d366;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.btn-whatsapp:hover { background: #1ebe57; }

.btn-whatsapp .wa-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: #fff;
}

.wa-icon {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
}

.icon-btn-wa .wa-icon {
    color: #25d366;
}

.wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.1rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.wa-float:hover {
    background: #1ebe57;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 211, 102, .5);
}

.wa-float-icon {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
}

.wa-float-icon .wa-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.wa-float-text {
    line-height: 1;
    white-space: nowrap;
}

.footer-social-wa .wa-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: #25d366;
}

        right: 1rem;
        bottom: 1rem;
        width: 3.5rem;
        height: 3.5rem;
        padding: 0;
        justify-content: center;
    }

    .wa-float-text {
        display: none;
    }
}
.quote-note { font-size: .82rem; color: var(--muted); margin-top: .8rem; }

.quote-fields { margin-top: 1.1rem; display: grid; gap: .8rem; }
.quote-fields .field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .3rem; color: var(--wood-800); }
.quote-fields .field input,
.quote-fields .field textarea {
    width: 100%; padding: .6rem .8rem; font: inherit; font-size: .9rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white); outline: none; transition: border-color .2s;
}
.quote-fields .field input:focus,
.quote-fields .field textarea:focus { border-color: var(--wood-400); }
.quote-fields .field textarea { min-height: 72px; resize: vertical; }

@media (max-width: 860px) {
    .quote-layout { grid-template-columns: 1fr; }
    .quote-summary { position: static; order: 2; }
    .quote-items { order: 1; }
}

@media (max-width: 600px) {
    .quote-row {
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-areas: "thumb info" "actions actions";
        gap: .2rem .85rem;
        align-items: center;
    }
    .quote-row .thumb { grid-area: thumb; width: 72px; height: 72px; }
    .quote-row .info { grid-area: info; }
    .quote-row .right {
        grid-area: actions;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: .6rem;
        margin-top: .7rem;
        padding-top: .7rem;
        border-top: 1px solid var(--line);
    }
    .quote-row .qty button { width: 38px; height: 40px; }
    .quote-row .qty input { width: 42px; height: 40px; }
}

/* visible only on mobile / desktop helpers */
.only-mobile { display: none; }
@media (max-width: 860px) { .only-mobile { display: block; } .only-desktop { display: none; } }

/* ---------- Mobile filter drawer ---------- */
.filters-toggle-cb { display: none; }
.filters-head { display: none; }
.filters-close { background: none; border: none; cursor: pointer; color: var(--wood-800); display: inline-flex; padding: 0; }
.filters-open { display: none; }
.filters-backdrop { display: none; }

@media (max-width: 860px) {
    .catalog-toolbar .filters-open { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; }
    .filters {
        position: fixed; top: 0; left: 0; height: 100%;
        width: min(85vw, 320px); z-index: 80;
        border: none; border-radius: 0;
        transform: translateX(-100%); transition: transform .28s ease;
        overflow-y: auto; box-shadow: var(--shadow-lg);
    }
    .filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
    .filters-backdrop {
        display: block; position: fixed; inset: 0;
        background: rgba(36, 24, 19, .5);
        opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 79;
    }
    #filters-toggle:checked ~ .filters { transform: translateX(0); }
    #filters-toggle:checked ~ .filters-backdrop { opacity: 1; visibility: visible; }
}

.contact-layout { grid-template-columns: 1fr 1.3fr; }

.contact-info-item { margin-top: 1rem; }
.contact-info-item a { color: var(--wood-800); text-decoration: none; }
.contact-info-item a:hover { color: var(--wood-600); text-decoration: underline; }

.contact-alert {
    background: var(--wood-100);
    border: 1px solid var(--wood-300);
    color: var(--wood-800);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.2rem;
}

.contact-form { margin-top: 1rem; }

.contact-map {
    margin-top: 1.8rem;
    padding: 1.25rem;
}

.contact-map h3 { margin-bottom: 1rem; }

.contact-map-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--wood-50);
}

.contact-map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 860px) {
    .contact-layout { grid-template-columns: 1fr; }
}

