:root {
    --ink: #17120f;
    --muted: #6d625b;
    --line: #e9e2d8;
    --paper: #ffffff;
    --soft: #f7f4ef;
    --wood: #9b6334;
    --wood-dark: #573019;
    --gold: #f6c400;
    --green: #1f6d50;
    --white: #ffffff;
    --shadow: 0 18px 48px rgba(25, 18, 12, .12);
    --card-shadow: 0 14px 32px rgba(25, 18, 12, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
    background: var(--gold);
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}
.topbar-inner, .topbar-links, .header-main, .nav-inner, .product-actions, .hero-actions, .split {
    display: flex;
    align-items: center;
}
.topbar-inner { min-height: 46px; justify-content: space-between; gap: 18px; }
.topbar-links { gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 4px; }
.whatsapp-link { display: inline-flex; align-items: center; gap: 6px; }
.whatsapp-link svg { width: 18px; height: 18px; fill: #075e54; }
.language-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 12px;
    border-left: 1px solid rgba(0,0,0,.18);
}
.language-links a { padding: 4px 7px; border-radius: 5px; }
.language-links a:hover { background: rgba(0,0,0,.08); text-decoration: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(24, 18, 15, .08);
}
.header-main {
    min-height: 82px;
    gap: 24px;
    justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; min-width: 190px; }
.brand-logo { width: 150px; max-height: 58px; object-fit: contain; }
.footer-brand .brand-logo { width: 150px; filter: brightness(0) invert(1); }

.search { position: relative; flex: 1; max-width: 500px; }
.search input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--soft);
    border-radius: 999px;
    padding: 0 96px 0 20px;
    font-weight: 700;
    outline: none;
}
.search input:focus { border-color: #c9aa85; background: var(--white); }
.search button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: var(--ink);
    color: var(--white);
    font-weight: 900;
    cursor: pointer;
}
.header-cta, .primary-btn, .secondary-btn, .quote-link, .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 900;
    border: 0;
}
.header-cta, .primary-btn, .quote-link { background: var(--green); color: var(--white); }
.header-cta { background: var(--ink); border: 1px solid var(--ink); }
.header-cta:hover, .search button:hover { background: var(--wood-dark); border-color: var(--wood-dark); }
.secondary-btn { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.menu-toggle { display: none; background: var(--soft); color: var(--ink); cursor: pointer; }

.nav-band {
    background: var(--gold);
    color: var(--ink);
    border-top: 1px solid rgba(0,0,0,.1);
    border-bottom: 1px solid rgba(0,0,0,.1);
}
.nav-inner { min-height: 54px; gap: 4px; justify-content: center; }
.nav-inner > a, .nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    padding: 0 16px;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.nav-inner > a:hover, .nav-dropdown:hover > a { background: var(--ink); color: var(--gold); }
.nav-dropdown { position: relative; }
.mega-menu {
    position: absolute;
    left: 0;
    top: 100%;
    width: min(920px, calc(100vw - 32px));
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    padding: 18px;
}
.nav-dropdown:hover .mega-menu { display: grid; }
.mega-menu a { padding: 14px; border-radius: 8px; border: 1px solid var(--line); }
.mega-menu a:hover { border-color: var(--wood); background: var(--soft); }
.mega-menu strong { display: block; }
.mega-menu span { color: var(--muted); font-size: 12px; }

.hero { position: relative; overflow: hidden; background: var(--white); }
.hero-slider { position: relative; min-height: 560px; }
.hero-slide {
    display: none;
    min-height: 560px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slide.active { display: block; }
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.72) 44%, rgba(255,255,255,.18));
}
.hero-slide-inner { min-height: 560px; display: grid; align-items: center; position: relative; z-index: 1; }
.hero-copy { max-width: 620px; }
.eyebrow {
    display: inline-block;
    color: var(--wood);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 12px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: .98; letter-spacing: 0; margin-bottom: 22px; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.05; margin-bottom: 12px; }
.hero-copy p, .page-hero p, .lead { color: var(--muted); font-size: 18px; max-width: 680px; }
.hero-actions { gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
}
.hero-dots button {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(23,18,15,.24);
    cursor: pointer;
}
.hero-dots button.active { background: var(--ink); }

.service-strip { background: var(--ink); color: var(--white); }
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
}
.service-grid div { padding: 22px 18px; background: rgba(255,255,255,.05); }
.service-grid strong { display: block; color: var(--gold); font-size: 17px; }
.service-grid span { display: block; color: #e7dfd3; font-size: 13px; margin-top: 4px; }

.section { padding: 72px 0; }
.section.muted { background: #fafafa; }
.section-head { margin-bottom: 28px; }
.section-head.split { justify-content: space-between; gap: 18px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card {
    min-height: 175px;
    padding: 24px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    transition: transform .18s ease, box-shadow .18s ease;
}
.category-card:hover, .product-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.category-card span { color: var(--gold); font-weight: 900; font-size: 34px; }
.category-card p, .product-card p, .contact-card p, .site-footer p { color: var(--muted); }

.references-section { padding-top: 54px; padding-bottom: 54px; background: var(--white); }
.reference-marquee { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.reference-track { display: flex; gap: 22px; width: max-content; padding: 18px; animation: marquee 24s linear infinite; }
.reference-logo {
    width: 150px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.reference-logo img { max-width: 118px; max-height: 48px; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.product-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}
.product-image { aspect-ratio: 1 / 1; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-category { display: block; color: var(--wood); font-size: 12px; font-weight: 900; margin-bottom: 8px; }
.product-card h3 {
    font-size: 16px;
    line-height: 1.25;
    min-height: 40px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-sku { display: block; color: #9a7a48; font-size: 12px; font-weight: 900; margin-bottom: 10px; }
.product-card p {
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-actions { justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.text-link { color: var(--wood-dark); font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.quote-link { min-height: 38px; padding: 0 14px; font-size: 13px; }

.info-band {
    display: grid;
    grid-template-columns: 1fr .9fr auto;
    align-items: center;
    gap: 24px;
    background: var(--ink);
    color: var(--white);
    border-radius: 10px;
    padding: 34px;
}
.info-band p { color: #e8dccd; margin-bottom: 0; }

.page-hero {
    background: linear-gradient(90deg, rgba(23,18,15,.94), rgba(88,51,28,.78)), url("../img/slide-showroom.jpg") center / cover;
    color: var(--white);
    padding: 78px 0;
}
.page-hero p { color: #eadfce; }
.catalogue-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.filter-panel, .contact-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    align-self: start;
}
.filter-panel a, .site-footer a, .contact-card a { display: block; margin: 9px 0; color: var(--muted); }
.filter-panel a:hover, .site-footer a:hover, .contact-card a:hover { color: var(--wood); }

.product-detail { padding: 74px 0; }
.detail-grid { display: grid; grid-template-columns: minmax(320px, .95fr) 1.05fr; gap: 44px; align-items: start; }
.product-gallery { display: grid; gap: 14px; }
.detail-image { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.detail-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 8px; background: #fff; }
.thumb-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.thumb-row button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
}
.thumb-row button.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(246,196,0,.28); }
.thumb-row img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.detail-copy h1 { font-size: clamp(32px, 4vw, 52px); }
.stock-code {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 800;
}
.spec-list { padding: 0; list-style: none; display: grid; gap: 10px; margin: 24px 0; }
.spec-list li { padding: 12px 14px; border-left: 4px solid var(--gold); background: var(--soft); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0; }
.tag-row span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-weight: 700; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}
.contact-form .full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 900; }
input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    font: inherit;
    color: var(--ink);
    background: var(--white);
}
textarea { resize: vertical; }
.flash { margin-top: 22px; padding: 14px 18px; border-radius: 8px; background: #e7f6ef; color: #115e42; font-weight: 800; }
.prose { max-width: 880px; color: var(--muted); font-size: 18px; }

.site-footer { background: var(--ink); color: var(--white); padding-top: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 36px; }
.site-footer h3 { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 34px;
    padding: 18px 0;
    color: #d7cab9;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.admin-shell { background: #f5f7fb; color: #18202a; min-height: 100vh; }
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: #151a23; color: #fff; padding: 22px; }
.admin-sidebar .brand-logo { filter: brightness(0) invert(1); }
.admin-sidebar a { display: block; padding: 11px 12px; border-radius: 8px; color: #cdd5df; }
.admin-sidebar a:hover, .admin-sidebar .active { background: #273041; color: #fff; }
.admin-content { padding: 28px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.admin-card { background: #fff; border: 1px solid #e6eaf0; border-radius: 8px; padding: 20px; box-shadow: 0 12px 30px rgba(24,32,42,.06); margin-bottom: 18px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.admin-grid .full { grid-column: 1 / -1; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.table th, .table td { border-bottom: 1px solid #edf0f4; padding: 12px; text-align: left; vertical-align: top; }
.table th { background: #f7f9fc; font-size: 12px; text-transform: uppercase; color: #5d6878; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn, .danger-btn {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 8px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
}
.btn { background: #1f6d50; color: #fff; }
.btn.secondary { background: #eef2f6; color: #18202a; }
.danger-btn { background: #a83232; color: #fff; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #201916, #6d4020); }
.login-card { width: min(420px, 100%); background: #fff; border-radius: 10px; padding: 28px; box-shadow: var(--shadow); }
.thumb { width: 70px; height: 70px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line); }

@media (max-width: 980px) {
    .topbar-inner, .topbar-links { align-items: flex-start; flex-direction: column; }
    .topbar-inner { padding: 10px 0; }
    .header-main { flex-wrap: wrap; padding: 10px 0; }
    .search { order: 3; max-width: none; flex-basis: 100%; }
    .header-cta { display: none; }
    .menu-toggle { display: inline-flex; }
    .nav-band { display: none; }
    .nav-band.open { display: block; }
    .nav-inner { align-items: stretch; flex-direction: column; padding: 8px 0; }
    .mega-menu { position: static; display: grid; width: 100%; grid-template-columns: 1fr; box-shadow: none; }
    .hero-slide, .hero-slide-inner { min-height: 480px; }
    .detail-grid, .contact-grid, .catalogue-layout, .info-band, .footer-grid, .admin-layout { grid-template-columns: 1fr; }
    .service-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .brand-logo { width: 126px; }
    .language-links { border-left: 0; padding-left: 0; flex-wrap: wrap; }
    .hero-slide, .hero-slide-inner { min-height: 430px; }
    .product-grid, .category-grid, .service-grid, .contact-form, .admin-grid { grid-template-columns: 1fr; }
    .thumb-row { grid-template-columns: repeat(4, 1fr); }
    .contact-form .full, .admin-grid .full { grid-column: auto; }
    .section { padding: 52px 0; }
    .footer-bottom { flex-direction: column; }
}
