/* Three Star Agencies — navy & gold buildware theme */

:root {
    --navy: #0c1424;
    --navy-2: #121d33;
    --navy-3: #1a2742;
    --gold: #c5a059;
    --gold-strong: #d4af6a;
    --gold-dark: #b8903a;
    --gold-soft: rgba(212, 169, 78, 0.14);
    --bg: #f4f6f9;
    --surface: #ffffff;
    --border: #e3e8ef;
    --text: #16202f;
    --text-muted: #5b6879;
    --text-faint: #8b95a5;
    --success: #178a54;
    --danger: #c73838;
    --whatsapp: #1fa855;
    --font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Outfit', 'Segoe UI', sans-serif;
    --radius: 6px;
    --radius-lg: 10px;
    --shadow-sm: 0 1px 3px rgba(12, 20, 36, 0.08);
    --shadow-md: 0 8px 24px -8px rgba(12, 20, 36, 0.18);
    --shadow-lg: 0 18px 48px -12px rgba(12, 20, 36, 0.32);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

.gold { color: var(--gold); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-strong); }

.btn-outline { background: transparent; color: var(--navy); border-color: #c4cdd9; }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-outline:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-outline:disabled:hover { background: transparent; color: var(--navy); border-color: #c4cdd9; }

.btn-whatsapp { background: var(--whatsapp); color: #fff; width: 100%; }
.btn-whatsapp:hover { background: #178f47; }

.btn-block { width: 100%; }

.icon-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}
.icon-btn:hover { color: var(--text); }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 60; box-shadow: var(--shadow-md); isolation: isolate; }

.topbar { background: #060b16; color: #aeb7c6; font-size: 0.78rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 0.4rem; gap: 1rem; }
.topbar-tag { color: var(--gold); letter-spacing: 0.04em; }
.topbar-links { display: flex; gap: 1.25rem; }
.topbar-links a:hover { color: #fff; }
.topbar-phone { color: var(--gold); font-weight: 600; }

.header-main { background: var(--navy); }
.header-main-inner { display: flex; align-items: center; gap: 2rem; padding-block: 0.9rem; }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: min(280px, 48vw);
    object-fit: contain;
    object-position: left center;
}
.brand-footer .brand-logo {
    height: 64px;
    max-width: 300px;
}

.search { position: relative; flex: 1; display: flex; max-width: 560px; }
.search input[type="search"] {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.92rem;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
    background: #fff;
    color: var(--text);
}
.search button[type="submit"] {
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding-inline: 1.1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s var(--ease);
}
.search button[type="submit"]:hover { background: var(--gold-strong); }

.suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
    z-index: 80;
}
.suggestion {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    font-family: var(--font-body);
}
.suggestion:last-child { border-bottom: none; }
.suggestion:hover, .suggestion.is-active { background: var(--gold-soft); }
.suggestion img { width: 40px; height: 40px; object-fit: contain; background: #f1f3f6; border-radius: 4px; flex-shrink: 0; }
.suggestion-title { font-size: 0.85rem; font-weight: 500; color: var(--text); display: block; }
.suggestion-meta { font-size: 0.72rem; color: var(--text-faint); }
.suggestion-price { margin-left: auto; font-weight: 600; font-size: 0.85rem; color: var(--gold-dark); white-space: nowrap; }
.suggestion-price.price-request { color: var(--navy); font-size: 0.78rem; }
.suggestion-empty { padding: 0.9rem; font-size: 0.85rem; color: var(--text-muted); text-align: center; }

.header-actions { display: flex; gap: 0.5rem; flex-shrink: 0; position: relative; z-index: 70; }
.header-action {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #dfe5ee;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.header-action:hover,
.dropdown.is-open .dropdown-trigger { border-color: var(--gold); color: var(--gold); }
.header-action .chevron { transition: transform 0.2s var(--ease); }
.dropdown.is-open .chevron { transform: rotate(180deg); }
.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 4px;
}

/* ---------- Dropdown menus ---------- */

.dropdown { position: relative; }
.dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(420px, 92vw);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
    animation: drop-in 0.18s var(--ease);
}
.dropdown-panel-brands { width: min(360px, 92vw); }
@keyframes drop-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 340px;
    overflow-y: auto;
    padding: 0.4rem;
}
.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    transition: background 0.15s var(--ease);
}
.dropdown-item em {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--text-faint);
    background: #f1f3f6;
    padding: 1px 7px;
    border-radius: 999px;
}
.dropdown-item:hover,
.dropdown-item.is-active { background: var(--gold-soft); color: var(--navy); }
.dropdown-item.is-active em { background: var(--gold); color: var(--navy); }
.dropdown-footer {
    display: block;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-dark);
    background: #fafbfc;
}
.dropdown-footer:hover { background: var(--gold-soft); }
.dropdown-empty { grid-column: 1 / -1; padding: 1rem; color: var(--text-muted); font-size: 0.85rem; text-align: center; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mainnav { background: var(--navy-2); border-top: 1px solid rgba(255, 255, 255, 0.06); position: relative; z-index: 50; }
.mainnav-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.mainnav-inner::-webkit-scrollbar { display: none; }
.mainnav a {
    color: #c3cbd8;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.75rem 1.1rem;
    white-space: nowrap;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.mainnav a:hover { color: var(--gold); }
.mainnav a.active { background: var(--gold); color: var(--navy); }

/* ---------- Category chips ---------- */

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-block: 0.5rem 1rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
    cursor: pointer;
}
.chip span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-faint);
    background: #f1f3f6;
    padding: 1px 6px;
    border-radius: 999px;
}
.chip:hover { border-color: var(--gold); color: var(--navy); }
.chip.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.chip.is-active span { background: rgba(255,255,255,0.15); color: #fff; }

/* ---------- Flash ---------- */

.flash-wrap { margin-top: 1rem; }
.flash { padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 0.5rem; }
.flash-success { background: #e7f6ee; color: var(--success); border: 1px solid #bfe6d1; }
.flash-error { background: #fdecec; color: var(--danger); border: 1px solid #f3c6c6; }

/* ---------- Sync status banner ---------- */

.sync-status {
    border-bottom: 1px solid var(--border);
    animation: rise-in 0.35s var(--ease) both;
}
.sync-status.is-success { background: #eaf7ef; color: #146c43; }
.sync-status.is-error { background: #fdeeee; color: #a61d24; }
.sync-status-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-block: 1rem;
    flex-wrap: wrap;
}
.sync-status-main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: min(100%, 280px);
    flex: 1;
}
.sync-status-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
}
.sync-status-main strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}
.sync-status-main p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.92;
}
.sync-status-time {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    opacity: 0.75;
}
.sync-status-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.sync-status-stats div {
    min-width: 88px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    padding: 0.55rem 0.75rem;
    text-align: center;
}
.sync-status-stats em {
    display: block;
    font-style: normal;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
}
.sync-status-stats span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.75;
}
.sync-status-close {
    position: absolute;
    top: 0.65rem;
    right: 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.55;
    padding: 0.15rem 0.35rem;
}
.sync-status-close:hover { opacity: 1; }

@media (max-width: 640px) {
    .sync-status-inner { padding-right: 2rem; }
    .sync-status-stats { width: 100%; }
    .sync-status-stats div { flex: 1; min-width: 0; }
}

/* ---------- Hero ---------- */

.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 14, 26, 0.97) 0%, rgba(9, 14, 26, 0.82) 38%, rgba(9, 14, 26, 0.25) 70%, rgba(9, 14, 26, 0.15) 100%),
        url('../images/hero-art.jpg') right center / auto 100% no-repeat,
        var(--navy);
}
.hero-inner { position: relative; padding-block: 4.5rem; }
.hero-copy { max-width: 34rem; animation: rise-in 0.7s var(--ease) both; }
.hero-copy h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
.hero-copy p { margin-top: 1rem; font-size: 1.05rem; color: #c9d1dd; max-width: 26rem; }
.hero-cta { margin-top: 1.75rem; }

.hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
    max-width: 40rem;
}
.trust-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.trust-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #e8eef6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(197, 160, 89, 0.75);
}
.trust-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
.trust-item strong {
    display: block;
    font-size: 0.88rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.1rem;
}
.trust-item > div > span {
    display: block;
    font-size: 0.75rem;
    color: #a8b2c2;
    line-height: 1.35;
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */

.section { padding-block: 2.75rem 0.5rem; }
.section:last-of-type { padding-bottom: 3rem; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-head h2 { font-size: 1.5rem; }
.section-link { font-size: 0.85rem; font-weight: 600; color: var(--gold-dark); }
.section-link:hover { color: var(--navy); }

/* ---------- Category grid ---------- */

.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.category-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.category-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.category-media { height: 110px; display: flex; align-items: center; justify-content: center; }
.category-media img { max-height: 100%; object-fit: contain; }
.category-name { font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; }
.category-explore { font-size: 0.78rem; font-weight: 600; color: var(--gold-dark); }

/* ---------- Product cards ---------- */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-media {
    position: relative;
    background: #fff;
    border: none;
    border-bottom: 1px solid var(--border);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem;
    cursor: pointer;
    width: 100%;
}
.card-media img { max-height: 100%; object-fit: contain; transition: transform 0.3s var(--ease); }
.product-card:hover .card-media img { transform: scale(1.05); }
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
}

.card-body { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.85rem 0.95rem 1rem; flex: 1; }
.card-brand { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.card-title {
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}
.card-title:hover { color: var(--gold-dark); }
.card-price { display: flex; align-items: baseline; gap: 0.45rem; margin-top: 0.15rem; }
.price-now { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--gold-dark); }
.price-old { font-size: 0.8rem; color: var(--text-faint); }
.price-request {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--navy);
    letter-spacing: 0.01em;
}
.card-stock { font-size: 0.75rem; font-weight: 600; }
.card-stock.in { color: var(--success); }
.card-stock.out { color: var(--danger); }
.card-body .btn { margin-top: auto; }

/* ---------- Promo ---------- */

.promo {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(10, 15, 27, 0.96) 0%, rgba(10, 15, 27, 0.75) 45%, rgba(10, 15, 27, 0.2) 100%),
        url('../images/promo-art.jpg') right center / auto 100% no-repeat,
        var(--navy-2);
    color: #fff;
    padding: 2.75rem 2.5rem;
    transition: box-shadow 0.3s var(--ease);
}
.promo:hover { box-shadow: var(--shadow-lg); }
.promo-copy { max-width: 30rem; }
.promo-copy h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.promo-copy p { margin-block: 0.75rem 1.25rem; color: #c9d1dd; font-size: 0.95rem; }

/* ---------- Perks ---------- */

.perks {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.perk { text-align: left; padding-inline: 0.5rem; border-left: 2px solid var(--gold); }
.perk h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.perk p { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Page head / catalog layout ---------- */

.page-head { padding-block: 2rem 0.5rem; }
.page-head h1 { font-size: 1.8rem; }
.page-head p { color: var(--text-muted); margin-top: 0.25rem; }

.catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: start;
    padding-block: 1.25rem 3rem;
}

.filters {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: sticky;
    top: 130px;
}
.filters-head { display: none; }
.filters-toggle { display: none; }
.catalog-toolbar { margin-bottom: 0.25rem; }
.filter-group { margin-bottom: 1.2rem; }
.filter-group h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.5rem; }
.filters select,
.filters input[type="number"] {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.88rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    outline: none;
}
.filters select:focus,
.filters input:focus { border-color: var(--gold); }
.price-inputs { display: flex; align-items: center; gap: 0.4rem; }
.filter-hint { font-size: 0.72rem; color: var(--text-faint); margin-top: 0.35rem; }
.check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; cursor: pointer; }
.check input { accent-color: var(--gold-dark); width: 15px; height: 15px; }
.filter-clear { display: block; text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; text-decoration: underline; }
.filter-clear:hover { color: var(--danger); }

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.sort-form { display: flex; align-items: center; gap: 0.5rem; }
.sort-form select {
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    outline: none;
}

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    padding: 3.5rem 1.5rem;
}
.empty-state h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* ---------- Pagination ---------- */

.pagination-wrap { margin-top: 1.75rem; display: flex; justify-content: center; }
.pager { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; }
.pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding-inline: 0.55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
a.pager-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.pager-btn.is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager-btn.is-disabled { opacity: 0.4; pointer-events: none; }

/* ---------- Contact ---------- */

.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; padding-block: 1.25rem 3rem; align-items: start; }
.contact-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.contact-logo {
    display: block;
    height: 72px;
    width: auto;
    max-width: 100%;
    margin-bottom: 1.25rem;
    /* Dark plate so the white tagline stays readable on light pages */
    background: var(--navy);
    border-radius: var(--radius);
    padding: 0.55rem 0.85rem;
}
.contact-block h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.contact-about { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1.25rem; }
.contact-list { list-style: none; display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.contact-list li { font-size: 0.9rem; color: var(--text-muted); }
.contact-list strong { color: var(--text); display: inline-block; min-width: 70px; }
.contact-list a { color: var(--gold-dark); }
.contact-block .btn-whatsapp { width: auto; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.contact-actions .btn { width: auto; }
.contact-cta { background: var(--navy); color: #fff; border-color: var(--navy); }
.contact-cta p { color: #c9d1dd; font-size: 0.93rem; }
.contact-cta a { color: var(--gold); text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer { background: #060b16; color: #9aa4b4; margin-top: 2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 2rem;
    padding-block: 2.75rem;
}
.footer-brand p { font-size: 0.85rem; margin-top: 1rem; max-width: 20rem; }
.site-footer h4 { color: #fff; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer ul a { font-size: 0.85rem; transition: color 0.2s var(--ease); }
.site-footer ul a:hover { color: var(--gold); }
.footer-contact li { font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; font-size: 0.78rem; }

/* ---------- Cart drawer ---------- */

.cart-overlay, .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 11, 22, 0.6);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease);
}
.cart-overlay.open, .modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 92vw);
    background: var(--surface);
    z-index: 95;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    box-shadow: var(--shadow-lg);
    pointer-events: none;
}
.cart-drawer.open {
    transform: translateX(0);
    pointer-events: auto;
}
@supports (padding: env(safe-area-inset-bottom)) {
    .cart-drawer { padding-bottom: env(safe-area-inset-bottom); }
    .mainnav.is-open { padding-bottom: env(safe-area-inset-bottom); }
}

.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--navy);
    color: #fff;
}
.cart-head h2 { font-size: 1.1rem; }
.cart-head .icon-btn { color: #c3cbd8; }
.cart-head .icon-btn:hover { color: #fff; }

.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.cart-empty { text-align: center; color: var(--text-muted); padding-block: 3rem; font-size: 0.9rem; }

.cart-item { display: flex; gap: 0.75rem; padding-block: 0.75rem; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 56px; height: 56px; object-fit: contain; background: #f1f3f6; border-radius: var(--radius); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 0.85rem; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-price { font-size: 0.8rem; color: var(--gold-dark); font-weight: 600; }
.cart-item-controls { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.35rem; }
.cart-remove { background: none; border: none; color: var(--text-faint); font-size: 0.75rem; cursor: pointer; text-decoration: underline; }
.cart-remove:hover { color: var(--danger); }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-stepper button {
    background: #f1f3f6;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text);
}
.qty-stepper button:hover { background: var(--gold-soft); }
.qty-stepper input {
    width: 42px;
    height: 28px;
    border: none;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.cart-foot { border-top: 1px solid var(--border); padding: 1.1rem 1.25rem; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 0.3rem; }
.cart-total-row strong { font-family: var(--font-heading); font-size: 1.15rem; color: var(--navy); }
.cart-note { font-size: 0.75rem; color: var(--text-faint); margin-bottom: 0.9rem; }

/* ---------- Modals ---------- */

.modal-overlay { display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.modal {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(14px);
    transition: transform 0.25s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close { position: absolute; top: 0.6rem; right: 0.75rem; z-index: 2; }

.qv-modal { max-width: 780px; }
.qv-grid { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; padding: 1.75rem; }
.qv-media { background: #f7f8fa; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; padding: 1rem; min-height: 280px; }
.qv-media img { max-height: 260px; object-fit: contain; }
.qv-meta { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 0.3rem; }
.qv-info h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.qv-price { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--gold-dark); display: flex; gap: 0.6rem; align-items: baseline; }
.qv-price .price-request,
#qv-price.price-request { color: var(--navy); font-size: 1.05rem; font-weight: 600; }
.qv-price s { font-size: 0.9rem; color: var(--text-faint); font-weight: 400; }
.qv-stock { font-size: 0.82rem; font-weight: 600; margin-block: 0.3rem 0.6rem; }
.qv-stock.in { color: var(--success); }
.qv-stock.out { color: var(--danger); }
.qv-desc { font-size: 0.88rem; color: var(--text-muted); white-space: pre-line; max-height: 130px; overflow-y: auto; margin-bottom: 0.6rem; }
.qv-features { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; padding: 0; }
.qv-features li { background: var(--gold-soft); color: var(--gold-dark); font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 4px; }
.qv-actions { display: flex; gap: 0.75rem; align-items: center; }

.wa-modal { max-width: 420px; padding: 1.75rem; }
.wa-modal h3 { font-size: 1.2rem; }
.wa-sub { font-size: 0.85rem; color: var(--text-muted); margin-block: 0.35rem 1.1rem; }
.wa-modal label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.3rem; }
.wa-modal input, .wa-modal textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.9rem;
    outline: none;
    resize: vertical;
}
.wa-modal input:focus, .wa-modal textarea:focus { border-color: var(--gold); }

/* ---------- Toast ---------- */

.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translate(-50%, 20px);
    background: var(--navy);
    color: #fff;
    font-size: 0.88rem;
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    z-index: 120;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.mobile-only { display: none !important; }
.desktop-only { display: block; }
.header-actions .desktop-only { display: block; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .perks { grid-template-columns: repeat(3, 1fr); row-gap: 1.25rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .container { width: min(1200px, 100% - 2rem); }
}

@media (max-width: 860px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    .header-actions .mobile-only { display: flex !important; }

    .container { width: min(1200px, 100% - 1.5rem); }

    .header-main-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand actions"
            "search search";
        gap: 0.75rem 0.5rem;
        align-items: center;
    }
    .brand { grid-area: brand; min-width: 0; }
    .header-actions { grid-area: actions; margin-left: 0; gap: 0.35rem; }
    .search { grid-area: search; max-width: none; width: 100%; }

    .header-action {
        padding: 0.55rem;
        min-width: 42px;
        min-height: 42px;
        justify-content: center;
    }
    .action-label,
    .header-action .chevron { display: none; }

    .nav-toggle { display: flex; }

    .mainnav {
        display: none;
        border-top: none;
        background: var(--navy-3);
        max-height: min(70vh, 520px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .mainnav.is-open { display: block; }
    .mainnav-inner {
        flex-direction: column;
        overflow: visible;
        padding-block: 0.25rem 0.75rem;
    }
    .mainnav a,
    .mobile-nav-acc {
        padding: 0.9rem 0.25rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        font-size: 0.9rem;
        letter-spacing: 0.04em;
    }
    .nav-desktop-link { display: none !important; }

    .mobile-nav-section { border-bottom: 1px solid rgba(255,255,255,0.06); }
    .mobile-nav-acc {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: none;
        border: none;
        border-bottom: none;
        color: #c3cbd8;
        font-family: var(--font-body);
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        cursor: pointer;
        padding: 0.9rem 0.25rem;
    }
    .mobile-nav-acc svg { transition: transform 0.2s var(--ease); }
    .mobile-nav-acc[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--gold); }
    .mobile-nav-acc[aria-expanded="true"] { color: var(--gold); }
    .mobile-nav-panel {
        padding: 0 0 0.5rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem;
    }
    .mobile-nav-panel[hidden] { display: none !important; }
    .mobile-nav-panel a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.35rem;
        padding: 0.65rem 0.5rem !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        border-radius: var(--radius);
        font-size: 0.78rem !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        font-weight: 500 !important;
        color: #dfe5ee;
    }
    .mobile-nav-panel a em {
        font-style: normal;
        font-size: 0.68rem;
        color: #8e99ac;
    }
    .mobile-nav-panel a.active {
        background: var(--gold) !important;
        color: var(--navy) !important;
        border-color: var(--gold) !important;
    }
    .mobile-nav-panel a.active em { color: var(--navy); }

    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-toolbar {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    .filters-toggle {
        display: inline-flex;
        align-self: flex-start;
        gap: 0.45rem;
    }
    .filters {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(340px, 88vw);
        z-index: 110;
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--border);
        transform: translateX(-105%);
        transition: transform 0.3s var(--ease);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: var(--shadow-lg);
        padding-top: 0;
    }
    .filters.is-open { transform: translateX(0); }
    .filters-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        background: var(--surface);
        padding: 1rem 0 0.75rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--border);
        z-index: 1;
    }
    .filters-head h3 { font-size: 1.05rem; }
    .filters-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(6, 11, 22, 0.55);
        z-index: 105;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s var(--ease);
    }
    .filters-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .category-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.35rem;
        margin-inline: -0.15rem;
        padding-inline: 0.15rem;
    }
    .category-chips::-webkit-scrollbar { display: none; }
    .chip { flex-shrink: 0; white-space: nowrap; }

    .contact-layout { grid-template-columns: 1fr; }
    .qv-grid { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
    .qv-media { min-height: 200px; }
    .qv-media img { max-height: 180px; }
    .qv-actions { flex-wrap: wrap; }
    .qv-actions .btn { flex: 1; min-width: 140px; }

    .hero-bg {
        background:
            linear-gradient(rgba(9, 14, 26, 0.92), rgba(9, 14, 26, 0.78)),
            url('../images/hero-art.jpg') center / cover no-repeat,
            var(--navy);
    }
    .promo {
        background:
            linear-gradient(rgba(10, 15, 27, 0.94), rgba(10, 15, 27, 0.88)),
            url('../images/promo-art.jpg') center / cover no-repeat,
            var(--navy-2);
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 640px) {
    .topbar { font-size: 0.72rem; }
    .topbar-inner { padding-block: 0.35rem; }
    .topbar-links a:not(.topbar-phone) { display: none; }
    .topbar-tag { display: none; }
    .topbar-inner { justify-content: flex-end; }

    .brand-logo {
        height: 40px;
        max-width: min(200px, 52vw);
    }
    .brand-footer .brand-logo {
        height: 52px;
        max-width: 240px;
    }

    .search input[type="search"] {
        font-size: 16px; /* prevents iOS zoom */
        padding: 0.7rem 0.85rem;
    }

    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
    .category-media { height: 88px; }
    .category-tile { padding: 0.75rem; }
    .category-name { font-size: 0.85rem; }
    .category-explore { font-size: 0.7rem; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
    .card-media { height: 140px; padding: 0.55rem; }
    .card-body { padding: 0.65rem 0.7rem 0.8rem; }
    .card-title { font-size: 0.82rem; min-height: 2.2em; }
    .price-now { font-size: 0.95rem; }
    .card-body .btn { font-size: 0.8rem; padding: 0.5rem 0.6rem; width: 100%; }

    .perks { grid-template-columns: 1fr; gap: 0; padding: 0.5rem 1rem; }
    .perk {
        padding: 0.85rem 0.35rem;
        border-left: none;
        border-bottom: 1px solid var(--border);
    }
    .perk:last-child { border-bottom: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2rem; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: 0.25rem; }

    .hero-inner { padding-block: 2.5rem 2.75rem; }
    .hero-copy h1 { font-size: 1.75rem; }
    .hero-copy p { font-size: 0.95rem; }
    .hero-trust { grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1.5rem; }

    .section { padding-block: 1.75rem 0.25rem; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 0.35rem; margin-bottom: 1rem; }
    .section-head h2 { font-size: 1.25rem; }

    .page-head { padding-block: 1.25rem 0.25rem; }
    .page-head h1 { font-size: 1.4rem; }

    .results-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }
    .sort-form { width: 100%; justify-content: space-between; }
    .sort-form select { flex: 1; min-height: 42px; }

    .filters select,
    .filters input[type="number"],
    .wa-modal input,
    .wa-modal textarea {
        font-size: 16px;
        min-height: 44px;
    }
    .check { min-height: 44px; }

    .modal-overlay { padding: 0.75rem; align-items: flex-end; }
    .qv-modal, .wa-modal {
        max-height: 92vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .wa-modal { padding: 1.25rem; }

    .cart-drawer { width: min(100vw, 100%); }

    .dropdown-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
    .product-grid,
    .category-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .card-media { height: 120px; }
}
