:root {
    --primary-orange: #FF6B35;
    --border-color: #e0ddd8;
    --text-dark: #1a1a1a;
    --text-light: #666666;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); line-height: 1.6; background: #fff; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

/* Navigation */
.navbar { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border-color); backdrop-filter: blur(10px); background-color: rgba(255,255,255,0.95); }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 1.2rem 2rem; display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.logo-img { height: 30px; width: auto; display: block; }
.nav-menu { display: flex; list-style: none; gap: 2.2rem; align-items: center; }
.nav-menu a { font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dark); position: relative; }
.nav-menu a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: var(--primary-orange); transition: width 0.3s ease; }
.nav-menu a:hover::after { width: 100%; }
.language-selector { margin-left: 1rem; padding-left: 1.5rem; border-left: 1px solid var(--border-color); }
.language-selector select { font-family: inherit; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; background: transparent; border: none; cursor: pointer; color: var(--text-dark); padding: 0.25rem; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); }

/* Page shell */
.page { max-width: 1300px; margin: 0 auto; padding: 0 2rem; }
.breadcrumb { font-size: 0.82rem; color: var(--text-light); padding: 2rem 0 0; text-transform: uppercase; letter-spacing: 1px; }
.breadcrumb a:hover { color: var(--primary-orange); }
.breadcrumb span { color: var(--primary-orange); }

.page-head { padding: 2.5rem 0 3rem; border-bottom: 1px solid var(--border-color); margin-bottom: 3.5rem; }
.page-head .eyebrow { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-orange); font-weight: 600; margin-bottom: 0.9rem; }
.page-head h1 { font-family: 'Marcellus', serif; font-size: 3rem; font-weight: 400; letter-spacing: 0.5px; margin-bottom: 0.8rem; }
.page-head p { font-size: 1.05rem; color: var(--text-light); max-width: 680px; }

/* Category product grid */
.product-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; padding-bottom: 6rem; }
.product-card { display: block; background: #fff; border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden; transition: all 0.3s ease; }
.product-card:hover { box-shadow: 0 16px 38px rgba(0,0,0,0.12); transform: translateY(-6px); border-color: rgba(255,107,53,0.4); }
.product-card .media { height: 300px; background: #ece9e4; overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .media img { transform: scale(1.05); }
.product-card .body { padding: 1.6rem; }
.product-card .model { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary-orange); margin-bottom: 0.4rem; }
.product-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.product-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }
.product-card .view { display: inline-block; margin-top: 1rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary-orange); font-weight: 600; }

/* Detail layout */
.detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; padding-bottom: 6rem; }
.gallery .main-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; background: #ece9e4; border: 1px solid var(--border-color); }
.thumbs { display: flex; gap: 0.8rem; margin-top: 1rem; flex-wrap: wrap; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 3px; cursor: pointer; border: 1px solid var(--border-color); opacity: 0.65; transition: all 0.25s ease; }
.thumbs img:hover { opacity: 1; }
.thumbs img.active { opacity: 1; border-color: var(--primary-orange); }

.detail-info .model { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-orange); margin-bottom: 0.8rem; }
.detail-info h1 { font-family: 'Marcellus', serif; font-size: 2.6rem; font-weight: 400; line-height: 1.15; margin-bottom: 1.3rem; }
.detail-info h1.sku-name { font-size: 3.4rem; letter-spacing: 1px; }
.product-card h3.sku-name { font-size: 1.55rem; letter-spacing: 0.5px; }
.detail-info .lead { font-size: 1.05rem; color: var(--text-light); line-height: 1.85; margin-bottom: 2rem; }
.detail-info h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.2rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border-color); }
.spec-list { list-style: none; margin-bottom: 2.5rem; }
.spec-list li { padding: 0.7rem 0; padding-left: 1.8rem; position: relative; color: var(--text-light); border-bottom: 1px solid var(--border-color); }
.spec-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-orange); font-weight: bold; }
.btn { display: inline-block; padding: 1rem 2.2rem; background: var(--primary-orange); color: #fff; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; border-radius: 2px; transition: all 0.3s ease; }
.btn:hover { background: #ff5722; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(255,107,53,0.3); }

/* Footer — matches homepage (site.css) */
.section-container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; }
.footer { background: #1a1a1a; color: rgba(255,255,255,0.9); padding: 3rem 0 1rem; margin-top: 2rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 3rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { height: 26px; width: auto; display: block; margin-bottom: 1.2rem; }
.footer-tagline { font-family: 'Marcellus', serif; font-size: 1.15rem; color: #fff; letter-spacing: 0.5px; }
.footer-section h4 { font-family: 'Marcellus', serif; font-size: 1.1rem; margin-bottom: 1rem; color: var(--primary-orange); font-weight: 400; letter-spacing: 0.5px; }
.footer-section p { color: rgba(255,255,255,0.8); margin-bottom: 0.5rem; line-height: 1.6; font-size: 0.9rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.6rem; }
.footer-section a { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.footer-section a:hover { color: var(--primary-orange); }
.footer-bottom { text-align: center; color: rgba(255,255,255,0.6); font-size: 0.85rem; padding: 1rem 0; }

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .nav-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1.2rem; background: #fff; border-bottom: 1px solid var(--border-color); padding: 1.5rem 2rem; max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: all 0.35s ease; }
    .nav-menu.active { max-height: 460px; opacity: 1; pointer-events: auto; }
    .language-selector { margin-left: 0; padding-left: 0; border-left: none; }
    .detail { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
    .page-head h1 { font-size: 2.1rem; }
    .detail-info h1 { font-size: 2rem; }
}

/* ---------- Products mega-menu ---------- */
.nav-item.has-mega { position: static; }
.mega-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 22px 46px rgba(0,0,0,0.12);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 1100;
}
.nav-item.has-mega:hover > .mega-menu,
.nav-item.has-mega:focus-within > .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { max-width: 1280px; margin: 0 auto; padding: 2.4rem 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.mega-menu a { text-transform: none; letter-spacing: normal; }
.mega-menu a::after { content: none; }
.mega-thumb { display: block; height: 200px; border-radius: 5px; overflow: hidden; margin-bottom: 1.2rem; }
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mega-col:hover .mega-thumb img { transform: scale(1.05); }
.mega-cat { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; font-family: 'Marcellus', serif; font-size: 1.25rem; color: var(--text-dark); padding-bottom: 0.7rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
.mega-cat:hover { color: var(--primary-orange); }
.mega-cat .status { font-family: 'Inter', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 20px; white-space: nowrap; }
.mega-cat .status.available { background: var(--primary-orange); color: #fff; }
.mega-cat .status.soon { color: var(--text-light); border: 1px solid var(--border-color); }
.mega-list { list-style: none; }
.mega-list li a { display: block; padding: 0.5rem 0; color: var(--text-light); font-size: 0.95rem; font-weight: 500; }
.mega-list li a:hover { color: var(--primary-orange); padding-left: 6px; }
.mega-list .has-sub { position: relative; }
.mega-list .has-sub > a::after { content: '\25B8'; position: static; background: none; width: auto; height: auto; margin-left: 0.45rem; font-size: 0.72rem; color: var(--text-light); vertical-align: middle; transition: color 0.2s ease; }
.mega-list .has-sub:hover > a::after { color: var(--primary-orange); }
.mega-sub { list-style: none; position: absolute; left: 100%; top: -0.6rem; min-width: 210px; background: #fff; border: 1px solid var(--border-color); border-radius: 6px; box-shadow: 0 16px 36px rgba(0,0,0,0.14); padding: 0.5rem 0.4rem; opacity: 0; visibility: hidden; transform: translateX(-8px); transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s; z-index: 30; }
.mega-list .has-sub:hover > .mega-sub { opacity: 1; visibility: visible; transform: translateX(0); }
.mega-sub li a { display: block; padding: 0.4rem 0.85rem; font-size: 0.88rem; color: var(--text-light); font-weight: 500; white-space: nowrap; border-radius: 4px; }
.mega-sub li a:hover { color: var(--primary-orange); background: var(--warm-bg); padding-left: 0.85rem; }

@media (max-width: 900px) {
    .nav-menu.active { max-height: 1100px; }
    .mega-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; min-width: 0; padding: 0 0 0 0.8rem; }
    .mega-list .has-sub > a::after { content: none; }
    .nav-item.has-mega { position: relative; }
    .mega-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; background: transparent; }
    .mega-inner { display: block; max-width: none; padding: 0.6rem 0 0; }
    .mega-thumb { display: none; }
    .mega-col + .mega-col { margin-top: 1rem; }
    .mega-cat { font-size: 1rem; border-bottom: none; padding-bottom: 0.3rem; margin-bottom: 0.2rem; }
    .mega-list li a { padding: 0.45rem 0 0.45rem 0.8rem; font-size: 0.9rem; }
}


/* ===== door-hardware (.dh) ===== */
.dh .product-card .media { background:#fff; }
.dh .product-card .media img { object-fit:contain; padding:18px; }
.dh .gallery .main-img { object-fit:contain; background:#fff; padding:1.5rem; }
.dh .thumbs img { object-fit:contain; background:#fff; padding:4px; }
.dh .spec-rows { list-style:none; margin-bottom:2.2rem; }
.dh .spec-rows li { display:flex; gap:1rem; padding:0.6rem 0; border-bottom:1px solid var(--border-color); font-size:0.9rem; }
.dh .spec-rows .k { flex:0 0 40%; font-weight:600; color:var(--text-dark); }
.dh .spec-rows .v { color:var(--text-light); }
.dh .finishes { display:flex; flex-wrap:wrap; gap:0.5rem; margin-bottom:2rem; }
.dh .finish-chip { font-size:0.72rem; letter-spacing:0.3px; border:1px solid var(--border-color); border-radius:20px; padding:0.35rem 0.85rem; color:var(--text-light); }
.dh .detail-info h2 { margin-top:0.5rem; }
.dh .feature-list { list-style:none; margin-bottom:2.2rem; }
.dh .feature-list li { padding:0.5rem 0 0.5rem 1.6rem; position:relative; color:var(--text-light); font-size:0.9rem; border-bottom:1px solid var(--border-color); }
.dh .feature-list li::before { content:'\2713'; position:absolute; left:0; color:var(--primary-orange); font-weight:700; }
.dh .variant-table { width:100%; border-collapse:collapse; margin-bottom:2.2rem; font-size:0.85rem; }
.dh .variant-table th { text-align:left; font-weight:600; color:var(--text-dark); border-bottom:2px solid var(--border-color); padding:0.6rem 0.9rem 0.6rem 0; white-space:nowrap; }
.dh .variant-table td { color:var(--text-light); border-bottom:1px solid var(--border-color); padding:0.6rem 0.9rem 0.6rem 0; }

/* smart-lock download btn */
.btn-row { display:flex; flex-direction:column; gap:1rem; align-items:stretch; max-width:420px; }
.btn-row .btn { width:100%; text-align:center; }
.btn-download { background:transparent; color:var(--text-dark); border:1px solid var(--border-color); }
.btn-download:hover { background:transparent; border-color:var(--primary-orange); color:var(--primary-orange); box-shadow:none; }

/* ---- Cabinet & Furniture Hardware ---- */
.dh .spec-rows .v { flex:1; color:var(--text-light); }
.dh .detail-info h2 + .spec-rows { margin-top:-0.4rem; }
.dh .spec-note { font-size:0.8rem; text-transform:uppercase; letter-spacing:1.2px; color:var(--primary-orange); font-weight:600; margin:-1rem 0 2rem; }
.dh .spec-notes { list-style:none; margin:-0.8rem 0 2.2rem; padding-left:0; }
.dh .spec-notes li { font-size:0.85rem; color:var(--text-light); line-height:1.7; padding:0.25rem 0 0.25rem 1rem; position:relative; }
.dh .spec-notes li::before { content:'—'; position:absolute; left:0; color:var(--border-color); }
.dh .table-wrap { overflow-x:auto; margin:0 0 3rem; border:1px solid var(--border-color); border-radius:4px; background:#fff; }
.dh .spec-table { width:100%; border-collapse:collapse; font-size:0.85rem; min-width:520px; }
.dh .spec-table th { text-align:left; font-weight:600; padding:0.85rem 1rem; background:#faf8f6; border-bottom:1px solid var(--border-color); white-space:nowrap; }
.dh .spec-table td { padding:0.75rem 1rem; border-bottom:1px solid var(--border-color); color:var(--text-light); vertical-align:top; }
.dh .spec-table tbody tr:last-child td { border-bottom:none; }
.dh .spec-table tbody tr:hover td { background:#fdfbfa; }
.dh .detail + .table-wrap, .dh .detail ~ .table-wrap { margin-top:0; }
.dh .page > h2 { font-size:0.85rem; text-transform:uppercase; letter-spacing:1.5px; margin:0 0 1.2rem; padding-bottom:0.8rem; border-bottom:1px solid var(--border-color); }

/* ---- Site search ---- */
.nav-search { display: flex; align-items: center; }
.search-toggle { background: none; padding: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-dark); border-radius: 50%; transition: background 0.2s ease, color 0.2s ease; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { background: rgba(255,107,53,0.1); color: var(--primary-orange); }
.search-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

body.ss-open { overflow: hidden; }
.site-search { position: fixed; inset: 0; z-index: 2000; }
.site-search[hidden] { display: none; }
.ss-backdrop { position: absolute; inset: 0; background: rgba(15,15,15,0.45); animation: ssFade 0.18s ease; }
.ss-panel { position: relative; max-width: 680px; margin: 8vh auto 0; background: #fff; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,0.28); overflow: hidden; animation: ssRise 0.2s ease; }
@keyframes ssFade { from { opacity: 0; } }
@keyframes ssRise { from { opacity: 0; transform: translateY(-10px); } }

.ss-field { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border-color); }
.ss-icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: var(--primary-orange); stroke-width: 2; stroke-linecap: round; }
.ss-field input { flex: 1; min-width: 0; border: none; outline: none; font-family: inherit; font-size: 1.05rem; color: var(--text-dark); background: none; -webkit-appearance: none; appearance: none; }
.ss-field input::-webkit-search-cancel-button { display: none; }
.ss-close { background: none; font-size: 1.6rem; line-height: 1; color: var(--text-light); padding: 0 0.2rem; }
.ss-close:hover { color: var(--text-dark); }

.ss-status { padding: 0.6rem 1.15rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 600; color: var(--text-light); background: #faf8f6; border-bottom: 1px solid var(--border-color); }
.ss-list { max-height: 58vh; overflow-y: auto; }
.ss-hint { padding: 1.6rem 1.15rem 2rem; color: var(--text-light); font-size: 0.92rem; }

.ss-hit { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 1.15rem; border-bottom: 1px solid #f1efec; transition: background 0.15s ease; }
.ss-hit:last-child { border-bottom: none; }
.ss-hit:hover, .ss-hit.is-active { background: #fdf6f2; }
.ss-thumb { flex: 0 0 46px; width: 46px; height: 46px; border: 1px solid var(--border-color); border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ss-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.ss-body { flex: 1; min-width: 0; }
.ss-title { display: block; font-weight: 600; font-size: 0.98rem; color: var(--text-dark); }
.ss-title mark { background: rgba(255,107,53,0.22); color: inherit; padding: 0 1px; border-radius: 2px; }
.ss-meta { display: block; font-size: 0.8rem; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-kind { flex: 0 0 auto; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 0.22rem 0.5rem; border-radius: 3px; color: var(--text-light); background: #f1efec; }
.ss-kind.ss-sku { color: var(--primary-orange); background: rgba(255,107,53,0.12); }

@media (max-width: 900px) {
    .nav-search { justify-content: flex-start; }
    .search-toggle { padding: 4px 0; }
}
@media (max-width: 640px) {
    .ss-panel { margin: 0; max-width: none; height: 100%; border-radius: 0; display: flex; flex-direction: column; }
    .ss-list { max-height: none; flex: 1; }
}
