/* Mbui Technologies Shop — design system
   Solid colours only, no gradients. Typography per owner reference:
   system font stack (Segoe UI baseline), headings weight 500, H1 40px #333,
   H2 16px #333366, product names crimson, prices gray, "KSh" currency. */

:root {
    --navy: #0F2E4C;        /* primary brand (header/footer) */
    --navy-dark: #0A2138;
    --navy-soft: #1C4568;
    --heading-alt: #333366; /* H2 per reference */
    --ink: #333333;         /* body text rgb(51,51,51) */
    --muted: #666666;
    --accent-red: #C00000;  /* product names / sale accents */
    --gold: #C9922A;        /* accent for primary calls to action */
    --gold-dark: #A87817;
    --line: #E2E8F0;
    --card-line: #E5E5E5;   /* product card borders per reference */
    --bg: #FFFFFF;
    --bg-soft: #F5F7FA;
    --success: #15803D;
    --danger: #B91C1C;
    --radius: 4px;
    --shadow: 0 1px 3px rgba(15, 46, 76, 0.10);
    --shadow-lg: 0 8px 24px rgba(15, 46, 76, 0.12);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-dark); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: 40px; font-weight: 500; line-height: 1.1; color: var(--ink); }
h2 { font-size: 16px; font-weight: 500; line-height: 1.2; color: var(--heading-alt); }
h3 { font-size: 14px; font-weight: 500; color: var(--ink); }
h4 { font-size: 14px; font-weight: 600; color: var(--ink); }

p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ---------- Announcement strip ---------- */
.announcement {
    background: var(--navy-dark);
    color: #E9EEF5;
    font-size: 0.85rem;
    text-align: center;
    padding: 7px 16px;
}
.announcement a { color: #F3C860; }

/* ---------- Header: white top bar with pill search (per owner reference) ---------- */
.site-header { background: var(--bg); }

.topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 0;
    flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    display: block;
}
.brand-name { font-weight: 700; color: var(--navy-dark); font-size: 1.02rem; line-height: 1.2; }
.brand-name small { color: var(--gold-dark); font-weight: 600; }

.header-search { flex: 1 1 320px; max-width: 720px; margin: 0 auto; }
.header-search form {
    display: flex;
    align-items: center;
    border: 2px solid var(--navy);
    border-radius: 999px;
    background: #fff;
    padding: 0 8px 0 14px;
    height: 52px;
}
.header-search input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 1.02rem;
    min-width: 0;
}
.search-icon {
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    padding: 6px;
}

.header-actions { display: flex; align-items: center; gap: 22px; }
.top-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy-dark);
    font-weight: 600;
    font-size: 0.95rem;
}
.top-action svg { color: var(--accent-red); }
.top-action:hover { color: var(--accent-red); text-decoration: none; }

.cart-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy-dark);
    font-weight: 600;
    font-size: 0.95rem;
}
.cart-action:hover { color: var(--accent-red); text-decoration: none; }
.cart-icon-wrap { position: relative; display: inline-flex; color: var(--accent-red); }
.cart-count {
    position: absolute;
    top: -7px;
    right: -9px;
    background: var(--accent-red);
    color: #fff;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 1px 6px;
    line-height: 1.4;
}
.cart-total { color: var(--navy-dark); }

/* ---------- Menu: rounded white card with navy links (per owner reference) ---------- */
.nav-strip { background: #E9EBF2; padding: 12px 0 14px; }
.nav-toggle { display: none; }
.nav-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 46, 76, 0.10);
    padding: 0 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-card::-webkit-scrollbar { display: none; }
.nav-card > ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}
.nav-card > ul > li { position: relative; }
.nav-card > ul > li > a {
    display: block;
    color: var(--navy-dark);
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}
.nav-card > ul > li > a:hover { color: var(--accent-red); text-decoration: none; }
.nav-card > ul > li > a.active { color: var(--accent-red); }

.has-dropdown > a::after {
    content: "▾";
    margin-left: 6px;
    color: var(--accent-red);
    font-size: 0.7rem;
}
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 46, 76, 0.16);
    min-width: 230px;
    padding: 8px 0;
    z-index: 60;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: block; }
.dropdown li a {
    display: block;
    color: var(--navy-dark);
    padding: 10px 20px;
    font-size: 0.92rem;
    white-space: nowrap;
}
.dropdown li a:hover { color: var(--accent-red); background: var(--bg-soft); text-decoration: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.82rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 4px; color: var(--line); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    border: 1px solid var(--navy);
    border-radius: var(--radius);
    padding: 10px 20px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.btn:hover { background: var(--navy-dark); text-decoration: none; color: #fff; }
.btn-accent { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-accent:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--bg-soft); color: var(--navy-dark); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Hero slider ---------- */
.hero {
    background: var(--navy);
    color: #E9EEF5;
    margin-bottom: 32px;
}
.hero-slider {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    min-height: 430px;
}
.hero-copy {
    display: grid;
    padding: 52px 48px;
    align-items: center;
}
.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.hero-kicker { color: #F3C860; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; margin-bottom: 10px; }
.hero-heading { color: #fff; font-size: 40px; font-weight: 500; line-height: 1.1; margin: 0 0 14px; max-width: 560px; }
.hero-sub { color: #C9D6E4; max-width: 520px; font-size: 16px; margin-bottom: 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: #4A6B8A; background: transparent; }
.hero .btn-outline:hover { background: var(--navy-dark); }

.hero-media { position: relative; display: grid; }
.hero-slide-img {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .6s ease;
}
.hero-slide-img.is-active { opacity: 1; }

.hero-controls {
    position: absolute;
    left: 48px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}
.hero-dot.is-active { background: #fff; }
.hero-arrow {
    width: 34px; height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    border: 1px solid #4A6B8A;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.hero-arrow:hover { background: var(--navy-dark); }

@media (max-width: 860px) {
    .hero-slider { grid-template-columns: 1fr; min-height: 0; }
    .hero-media { order: -1; height: 230px; grid-template-rows: 230px; overflow: hidden; }
    .hero-slide-img { height: 100%; min-height: 0; }
    .hero-copy { padding: 28px 20px 64px; }
    .hero-heading { font-size: 28px; }
    .hero-controls { left: 20px; bottom: 18px; }
}

/* ---------- Sections ---------- */
.section { padding: 8px 0 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 0.88rem; font-weight: 600; }

/* ---------- Category cards ---------- */
.category-grid, .product-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.category-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
}
.category-card:hover { box-shadow: var(--shadow-lg); text-decoration: none; }
.category-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.category-card-body { padding: 12px 14px 16px; }
.category-card-body h3 { margin: 0 0 4px; font-size: 1rem; }
.category-card-body p { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* ---------- Product cards (per owner reference) ---------- */
.product-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.product-card {
    background: var(--bg);
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-card img, .product-card .img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--bg-soft);
}
.product-card .img-placeholder {
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 0.8rem; text-align: center; padding: 12px;
}
.product-card-body { padding: 10px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.product-card-body h3 { margin: 2px 0 4px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.product-card-body h3 a { color: var(--accent-red); }
.product-card-body h3 a:hover { color: #990000; }
.product-price { color: var(--muted); font-size: 13px; font-weight: 400; margin: 0 0 10px; margin-top: auto; }
.price-sale { color: var(--ink); margin-right: 0; display: block; }
.price-was { color: #999; text-decoration: line-through; font-weight: 400; font-size: 12px; display: block; }
.price-note { font-size: 13px; color: var(--muted); font-weight: 400; }
.product-card .btn-cart { margin-top: 2px; align-self: flex-start; }
.badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Add-to-cart button on product cards (light gray per reference) */
.btn-cart {
    display: inline-block;
    background: #F2F2F2;
    color: var(--ink);
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    padding: 6px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
}
.btn-cart:hover { background: #E8E8E8; text-decoration: none; color: var(--ink); }

/* ---------- Feature / info panels ---------- */
.info-panel {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}
.info-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.info-grid h3 { margin-bottom: 6px; font-size: 0.98rem; }
.info-grid p { margin: 0; font-size: 0.88rem; color: var(--muted); }

.cta-band {
    background: var(--navy);
    color: #E9EEF5;
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #C9D6E4; }

/* ---------- Product detail ---------- */
.product-layout {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
}
@media (min-width: 860px) {
    .product-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); }
}
.product-gallery img { border-radius: var(--radius); border: 1px solid var(--line); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; }
.gallery-thumbs img.selected { border-color: var(--navy); }

.product-summary .price { font-size: 22px; font-weight: 500; color: var(--ink); margin: 12px 0; }
.product-summary .price .price-was { display: inline; font-size: 15px; margin-right: 10px; }
.option-block { margin: 14px 0; }
.option-block label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.option-block select, .option-block input[type="text"], .option-block input[type="number"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.92rem;
    background: #fff;
}
.option-block small { color: var(--muted); }
.option-modifier { color: var(--gold-dark); font-weight: 600; }

.stock-note { font-size: 0.85rem; margin: 8px 0 14px; }
.in-stock { color: var(--success); font-weight: 600; }
.out-of-stock { color: var(--danger); font-weight: 600; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--bg-soft); font-weight: 600; color: var(--navy-dark); }
.table .num { text-align: right; }

/* ---------- Forms ---------- */
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 640px;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 5px; }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="password"],
.form-row input[type="tel"], .form-row input[type="number"], .form-row select, .form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.92rem;
    background: #fff;
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row small { color: var(--muted); display: block; margin-top: 3px; }
.form-error { color: var(--danger); font-size: 0.82rem; margin-top: 4px; }
.form-grid-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.form-check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.88rem; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Flash messages ---------- */
.flash { margin: 16px 0; padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem; border: 1px solid; }
.flash-success { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.flash-error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.flash-info { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.cart-summary { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cart-summary .total-row { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-summary .grand { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.qty-input { width: 64px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; text-align: center; }

/* ---------- Status pills ---------- */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; }
.pill-pending { background: #FEF3C7; color: #92400E; }
.pill-paid, .pill-completed, .pill-approved, .pill-delivered, .pill-active { background: #DCFCE7; color: #166534; }
.pill-failed, .pill-cancelled, .pill-declined, .pill-flagged { background: #FEE2E2; color: #991B1B; }
.pill-processing, .pill-sent, .pill-dispatched { background: #DBEAFE; color: #1E40AF; }
.pill-neutral { background: var(--bg-soft); color: var(--muted); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 0.86rem;
}
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    border-radius: 999px;
    padding: 10px 18px 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
}
.whatsapp-float:hover { background: #1FB855; color: #fff; text-decoration: none; }
.whatsapp-float svg { flex-shrink: 0; }
@media (max-width: 760px) {
    .whatsapp-float { right: 14px; bottom: 14px; padding: 10px 14px 10px 12px; }
    .whatsapp-float span { display: none; } /* icon-only bubble on phones */
    .whatsapp-float svg { width: 30px; height: 30px; }
}

/* ---------- Home: sidebar + product grid (per owner reference) ---------- */
.home-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.home-sidebar h2, .home-main h2 { margin: 0; }
.sidebar-title {
    font-size: 17px;
    color: var(--navy-dark);
    padding-bottom: 8px;
    border-bottom: 2px dotted var(--navy-soft);
    margin-bottom: 12px;
}
.cat-links { list-style: none; margin: 0 0 24px; padding: 0; }
.cat-links li a {
    display: block;
    color: var(--navy-dark);
    padding: 7px 0;
    font-size: 0.92rem;
}
.cat-links li.child a { padding-left: 16px; color: var(--muted); }
.cat-links li a:hover { color: var(--accent-red); text-decoration: none; }

.featured-cats {
    border: 1px dashed var(--navy-soft);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.featured-cat-item { display: block; }
.featured-cat-item img, .featured-cat-item .img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bg-soft);
}
.featured-cat-item .fc-name {
    display: block;
    color: var(--navy-dark);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.35;
    margin-top: 6px;
}
.featured-cat-item:hover .fc-name { color: var(--accent-red); text-decoration: none; }
.featured-cat-item .fc-price {
    display: block;
    color: var(--accent-red);
    font-size: 0.82rem;
    margin-top: 2px;
}

/* Simple centered cards (home grid + best sellers) */
.product-card-simple { text-align: center; }
.product-card-simple .product-card-body { padding: 10px 10px 14px; }
.product-card-simple h3 { font-size: 14px; }
.product-card-simple h3 a { color: var(--navy-dark); }
.product-card-simple h3 a:hover { color: var(--accent-red); }
.product-card-simple .product-price { color: var(--accent-red); margin: 4px 0 0; }
.product-card-simple .price-note { color: var(--accent-red); }

.section-xl {
    font-size: 34px;
    font-weight: 500;
    color: var(--navy-dark);
    margin: 0 0 20px;
}
.best-seller-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
    .best-seller-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .best-seller-grid { grid-template-columns: 1fr; }
}
.best-seller-grid .product-card { border: 0; }
.best-seller-grid .product-card:hover { box-shadow: none; }
.best-seller-grid .product-card-body { padding: 8px 6px 0; }

/* Pagination per reference: numbered boxes, current soft gray */
.pagination { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    background: #fff;
}
.pagination a { color: var(--accent-red); }
.pagination a:hover { border-color: var(--accent-red); text-decoration: none; }
.pagination .current { background: var(--bg-soft); color: var(--ink); border-color: var(--line); font-weight: 600; }

@media (max-width: 900px) {
    .home-layout { grid-template-columns: 1fr; }
    .home-sidebar { order: 2; }
    .section-xl { font-size: 26px; }
}
/* 4-column grid in the home main area (reference layout) */
.home-main .product-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #B9C6D6; margin-top: 48px; padding: 40px 0 24px; font-size: 0.88rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h4 { color: #fff; font-size: 0.92rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #B9C6D6; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #24425F; margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .topbar { gap: 14px; }
    .header-actions { gap: 14px; }
    .nav-toggle {
        display: block;
        background: none;
        border: 1px solid var(--navy);
        color: var(--navy-dark);
        border-radius: 6px;
        padding: 7px 12px;
        cursor: pointer;
        font: inherit;
        margin: 8px 10px;
    }
    .nav-card > ul { flex-direction: column; display: none; align-items: stretch; }
    .nav-card > ul.open { display: flex; }
    .nav-card > ul > li > a { padding: 12px 16px; border-top: 1px solid var(--bg-soft); }
    .dropdown { display: none !important; } /* child categories are on the category pages */
    .hero-heading { font-size: 28px; }
    .hero-controls { left: 20px; bottom: 18px; }
}
