:root {
    --primary: #0b6e4f;
    --accent: #d4af37;
    --text: #13251f;
    --bg: #f7faf8;
    --card: #ffffff;
    --border: #e1e8e4;
    --dark: #0e3b2c;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
.icon-svg { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header / Nav */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.logo { font-size: 22px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--primary); }
.logo img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 24px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
/* Category items inside #navLinks are a mobile-only accordion (desktop uses .category-nav instead). */
.nav-links-cats-label, .nav-cat-group { display: none; }
.nav-mobile-auth { display: none; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.mini-cart-wrap { position: relative; }
.nav-cart-link { position: relative; display: flex; align-items: center; color: var(--text); }
.nav-cart-link .icon-svg { width: 22px; height: 22px; }
.nav-cart-badge { position: absolute; top: -8px; right: -9px; background: var(--primary); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; padding: 3px 5px; border-radius: 10px; min-width: 16px; text-align: center; }
.mini-cart-dropdown {
    position: absolute; top: calc(100% + 14px); right: 0; width: 340px; max-width: calc(100vw - 32px);
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 18px 40px rgba(16,24,21,.16); z-index: 60;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .15s, transform .15s, visibility .15s;
}
.mini-cart-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mini-cart-head { padding: 14px 16px; font-weight: 700; border-bottom: 1px solid var(--border); }
.mini-cart-items { max-height: 320px; overflow-y: auto; }
.mini-cart-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.mini-cart-item:last-child { border-bottom: none; }
.mini-cart-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--bg); }
.mini-cart-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mini-cart-item-body a { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-cart-item-meta { font-size: 12px; color: #8a978f; }
.mini-cart-remove-form { flex-shrink: 0; }
.mini-cart-remove { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; color: #8a978f; }
.mini-cart-remove:hover { background: var(--bg); color: #c0392b; }
.mini-cart-remove .icon-svg { width: 14px; height: 14px; }
.mini-cart-empty { padding: 28px 16px; text-align: center; color: #8a978f; font-size: 13.5px; }
.mini-cart-footer { padding: 14px 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.mini-cart-total { font-size: 13.5px; }

/* Category menu strip under the header */
.category-nav {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.cat-nav-inner { position: relative; }
.cat-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.cat-nav-item { position: relative; }
.cat-nav-item > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 11px 14px;
    color: #eaf5ef;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}
.cat-nav-item > a .icon-svg { width: 14px; height: 14px; }
.cat-nav-item > a:hover,
.cat-nav-item.open > a { background: rgba(255,255,255,0.1); color: #fff; }
.cat-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.14);
    list-style: none;
    margin: 0;
    padding: 6px;
    z-index: 60;
}
.cat-nav-item.has-dropdown:hover .cat-dropdown,
.cat-nav-item.has-dropdown.open .cat-dropdown { display: block; }
.cat-dropdown li a {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 500;
}
.cat-dropdown li a:hover { background: var(--bg); color: var(--primary); }
.cat-dropdown li:first-child a { font-weight: 700; border-bottom: 1px solid var(--border); margin-bottom: 4px; border-radius: 6px 6px 0 0; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #2a2205; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-secondary { background: #eef3f0; color: var(--text); }
.btn-disabled { background: #e3e7e5; color: #8a978f; cursor: not-allowed; pointer-events: none; user-select: none; }
.btn-light { background: #fff; color: var(--text); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 7px; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.2s;
}

/* Hero */
.hero { padding: 72px 0; background: linear-gradient(180deg, #eef7f1, var(--bg)); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.hero-grid.no-image { grid-template-columns: 1fr; text-align: center; }
.hero-grid.no-image .hero-content { max-width: 720px; margin: 0 auto; }
.hero-grid.no-image .hero-search { justify-content: center; }
.hero-content h1 { font-size: 42px; margin: 0 0 16px; line-height: 1.15; }
.hero-content p { font-size: 18px; color: #475750; max-width: 560px; margin: 0 0 28px; }
.hero-search { display: flex; gap: 0; max-width: 520px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px; box-shadow: 0 8px 24px rgba(6, 48, 36, 0.08); }
.hero-search input { flex: 1; border: none; outline: none; padding: 12px 14px; font-size: 15px; border-radius: 8px; background: transparent; }
.hero-search button { display: flex; align-items: center; gap: 6px; border: none; background: var(--primary); color: #fff; font-weight: 600; padding: 0 22px; border-radius: 8px; cursor: pointer; transition: 0.2s; white-space: nowrap; }
.hero-search button:hover { opacity: 0.9; }
.hero-search button svg { width: 16px; height: 16px; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.hero-image-wrap { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: 0 12px 28px rgba(6, 48, 36, 0.10); background: var(--card); padding: 14px; box-sizing: border-box; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; }
.hero-image-overlay { position: absolute; inset: 14px; border-radius: 10px; }

/* Stats */
.stats { display: flex; justify-content: center; gap: 60px; padding: 50px 0; flex-wrap: wrap; text-align: center; }
.stats .stat-value { font-size: 34px; font-weight: 800; color: var(--primary); }
.stats .stat-label { color: #607068; }

/* Features */
.section { padding: 60px 0; }
.section h2 { text-align: center; font-size: 30px; margin-bottom: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.card svg { width: 36px; height: 36px; color: var(--primary); margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; }
.card p { color: #607068; margin: 0; }
.section-features { padding: 24px 0 36px; margin-top: -20px; }
.section-features h2 { margin-bottom: 24px; }
.feature-card { padding: 20px 24px; display: flex; align-items: center; gap: 16px; }
.feature-card svg { width: 30px; height: 30px; margin-bottom: 0; flex-shrink: 0; }
.feature-card h3 { font-size: 17px; margin: 0 0 4px; }
.feature-card p { font-size: 14px; }
@media (max-width: 760px) {
    .feature-card { flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }
}

/* Categories */
.category-pill { display: block; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px 12px; font-weight: 700; }
.category-pill svg { width: 28px; height: 28px; color: var(--primary); margin: 0 auto 10px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.testimonial { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px 22px; text-align: center; position: relative; }
.testimonial-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; border: 3px solid var(--card); box-shadow: 0 0 0 3px var(--primary); }
.testimonial-text { font-size: 14px; line-height: 1.6; color: var(--text); margin: 0 0 16px; font-style: italic; }
.testimonial-stars { color: #f5a623; display: flex; justify-content: center; gap: 2px; margin-bottom: 10px; }
.testimonial-stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.testimonial-name { font-weight: 700; }
.testimonial-role { font-size: 13px; color: #8a978f; margin-top: 2px; }

@media (max-width: 560px) {
    .testimonial-grid { grid-template-columns: 1fr; }
}

/* CTA banner */
.cta-banner { background: var(--primary); color: #fff; text-align: center; padding: 60px 20px; border-radius: 0; }
.cta-banner h2 { font-size: 28px; margin: 0 0 10px; }
.cta-banner p { opacity: .9; margin: 0 0 24px; }

/* Footer */
.site-footer { background: var(--dark); color: #cbd8d1; padding: 48px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #cbd8d1; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: #9cada3; max-width: 320px; }
.footer-logo { display: inline-flex; background: #fff; padding: 8px 14px; border-radius: 10px; }
.footer-logo img { height: 28px; width: auto; display: block; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 16px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-bottom { text-align: center; padding-top: 24px; margin-top: 32px; border-top: 1px solid #22342c; font-size: 13px; color: #8a978f; }

/* Product cards (catalog) */
.product-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.product-card img { width: 100%; height: 150px; object-fit: cover; background: #eef3f0; }
.product-card .body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card .price { color: var(--primary); font-weight: 800; }
.product-card .meta-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.product-card .sales { font-size: 12px; color: #8a978f; }

/* Star ratings (shared: home cards + product detail reviews) */
.rating-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.rating-stars svg { width: 14px; height: 14px; }
.rating-stars .star-filled { color: var(--accent); fill: var(--accent); }
.rating-stars .star-filled svg { fill: currentColor; }
.rating-stars .star-empty { color: #d7ddd9; }
.rating-count { font-size: 12.5px; color: #8a978f; margin-left: 4px; vertical-align: middle; }

/* Homepage category product rows */
.category-row { padding-top: 10px; padding-bottom: 36px; }
.category-row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.category-row-head h2 { text-align: left; font-size: 24px; margin: 0; }
.view-all-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.view-all-link svg { width: 15px; height: 15px; }
.home-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.home-product-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.home-product-card:hover { box-shadow: 0 14px 30px rgba(6, 48, 36, 0.1); transform: translateY(-2px); }
.hpc-thumb { position: relative; display: block; }
.hpc-thumb a { display: block; }
.hpc-thumb img { width: 100%; height: 150px; object-fit: cover; background: #eef3f0; }
.hpc-overlay { position: absolute; inset: 0; background: rgba(6, 48, 36, 0.45); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.home-product-card:hover .hpc-overlay { opacity: 1; pointer-events: auto; }
.hpc-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hpc-title { color: var(--text); font-weight: 700; font-size: 15px; line-height: 1.3; }
.hpc-title:hover { color: var(--primary); }
.hpc-vendor { color: #8a978f; font-size: 12.5px; margin: 0; }
.hpc-rating { margin-top: 2px; }
.hpc-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.hpc-price { color: var(--primary); font-weight: 800; }
.hpc-sales { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #8a978f; margin-top: 2px; }
.hpc-sales svg { width: 13px; height: 13px; }
.hpc-footer form { margin: 0; }
.cart-btn-wrap { display: contents; }
.hpc-footer .btn-sm svg { width: 15px; height: 15px; }
@media (max-width: 960px) { .home-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .home-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .category-row-head { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* Browse/catalog pages use the same product card next to a narrower sidebar, so cap it at 3 columns. */
.browse-layout .home-product-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .browse-layout .home-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .browse-layout .home-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .browse-layout .home-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* List view: same card content, laid out as a horizontal row via grid (more robust than flex-wrap). */
.home-product-grid.list-mode { grid-template-columns: 1fr; }
.list-mode .home-product-card { flex-direction: row; align-items: stretch; }
.list-mode .hpc-thumb { width: 200px; flex: 0 0 200px; }
.list-mode .hpc-thumb img { width: 100%; height: 100%; }
.list-mode .hpc-body { display: grid; grid-template-columns: 2fr 1fr auto; align-items: center; gap: 16px; padding: 16px 20px; }
.list-mode .hpc-title { grid-column: 1; grid-row: 1; }
.list-mode .hpc-vendor { grid-column: 1; grid-row: 2; }
.list-mode .hpc-rating { grid-column: 1; grid-row: 3; }
.list-mode .hpc-footer { grid-column: 2 / span 2; grid-row: 1 / span 3; margin: 0; padding: 0; justify-self: end; gap: 20px; }
@media (max-width: 720px) {
    .list-mode .home-product-card { flex-direction: column; }
    .list-mode .hpc-thumb { width: 100%; flex-basis: auto; }
    .list-mode .hpc-thumb img { height: 150px; }
    .list-mode .hpc-body { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
    .list-mode .hpc-footer { justify-self: stretch; }
}

/* Browse / catalog layout */
.browse-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.browse-layout > aside { position: sticky; top: 84px; align-self: start; }
.browse-sidebar { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.browse-sidebar h4 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: #607068; }
.browse-sidebar + .browse-sidebar { margin-top: 18px; }
.cat-list { list-style: none; margin: 0 0 18px; padding: 0; }
.cat-list li { margin: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: 7px 8px; border-radius: 8px; color: var(--text); font-size: 14px; }
.cat-list a:hover { background: var(--bg); }
.cat-list a.active { background: var(--primary); color: #fff; font-weight: 700; }
.cat-list .count { color: #8a978f; font-size: 12px; }
.cat-list a.active .count { color: #e6f3ee; }
.cat-list-sub a { padding-left: 20px; font-size: 13.5px; }
.price-filter input[type="number"] { width: 100%; padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.price-filter .price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-slider-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.price-slider { position: relative; height: 18px; margin-bottom: 14px; }
.price-slider-track, .price-slider-range { position: absolute; top: 50%; transform: translateY(-50%); height: 4px; border-radius: 4px; }
.price-slider-track { left: 0; right: 0; background: var(--border); }
.price-slider-range { background: var(--primary); }
.price-slider input[type="range"] {
    position: absolute; top: 0; left: 0; width: 100%; margin: 0; height: 18px;
    appearance: none; -webkit-appearance: none; background: transparent; pointer-events: none;
}
.price-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none; -webkit-appearance: none; pointer-events: auto;
    width: 16px; height: 16px; border-radius: 50%; background: #fff;
    border: 2px solid var(--primary); cursor: pointer; margin-top: 0;
}
.price-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff;
    border: 2px solid var(--primary); cursor: pointer;
}
.price-slider input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.price-slider input[type="range"]::-moz-range-track { background: transparent; }
.price-slider-boxes { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price-slider-box { display: flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 8px; padding: 0 8px; }
.price-slider-box span { color: #8a978f; font-size: 13px; }
.price-slider-box input[type="number"] { width: 50px; text-align: left; padding: 6px 0; border: none; font-size: 13px; background: transparent; }
.price-slider-box input[type="number"]:focus { outline: none; }
.browse-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.browse-toolbar .count-label { color: #607068; font-size: 14px; }
.browse-toolbar select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: #fff; }

.search-input-wrap { position: relative; display: flex; align-items: center; }
.search-input-wrap input[type="text"] { width: 100%; padding: 10px 40px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.search-input-icon { position: absolute; left: 12px; display: flex; color: #8a978f; pointer-events: none; }
.search-input-icon .icon-svg { width: 18px; height: 18px; }
.search-input-clear { position: absolute; right: 8px; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: none; background: transparent; color: #8a978f; cursor: pointer; border-radius: 50%; }
.search-input-clear:hover { background: var(--bg); color: var(--text); }
.search-input-clear .icon-svg { width: 16px; height: 16px; }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.view-toggle a { padding: 7px 10px; display: flex; color: #607068; background: #fff; }
.view-toggle a.active { background: var(--primary); color: #fff; }
.browse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.browse-list .product-card { flex-direction: row; }
.browse-list .product-card img { width: 180px; height: auto; flex-shrink: 0; }
.browse-list .product-card .body { flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap; }
.browse-list .product-card .meta-row { margin-top: 0; }
@media (max-width: 860px) {
    .browse-layout { grid-template-columns: 1fr; }
    .browse-sidebar { position: static; }
    .browse-grid { grid-template-columns: repeat(2, 1fr); }
    .browse-list .product-card { flex-direction: column; }
    .browse-list .product-card img { width: 100%; }
    .browse-list .product-card .body { flex-direction: column; align-items: stretch; }
}
@media (max-width: 520px) {
    .browse-grid { grid-template-columns: 1fr; }
}

/* Mobile filter drawer: hidden icon-trigger opens the price/category sidebar as an
   off-canvas panel sliding in from the left, with its own header/Apply/Reset footer. */
.mobile-filter-toggle { display: none; }
.filters-backdrop { display: none; }
@media (max-width: 860px) {
    .mobile-filter-toggle {
        display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
        padding: 10px 16px; border: 1px solid var(--border); border-radius: 10px;
        background: #fff; color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer;
    }
    .mobile-filter-toggle .icon-svg { width: 17px; height: 17px; color: var(--primary); }
    .mobile-filter-toggle:hover { border-color: var(--primary); }

    .filters-backdrop {
        display: block; position: fixed; inset: 0; background: rgba(14, 24, 20, .5);
        z-index: 150; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
    }
    .filters-backdrop.active { opacity: 1; visibility: visible; }

    .browse-layout > aside {
        position: fixed; top: 0; bottom: 0; left: 0; width: 86%; max-width: 320px;
        background: var(--card); z-index: 160; padding: 18px; overflow-y: auto;
        display: flex; flex-direction: column; gap: 16px;
        transform: translateX(-100%); transition: transform .28s ease;
        box-shadow: 6px 0 28px rgba(16,24,21,.2);
    }
    .browse-layout > aside.filters-open { transform: translateX(0); }

    .filters-drawer-head { display: flex; align-items: center; justify-content: space-between; }
    .filters-drawer-head h3 { margin: 0; font-size: 16px; }
    .filters-drawer-close {
        display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
        border: none; background: var(--bg); border-radius: 50%; color: var(--text); cursor: pointer;
    }
    .filters-drawer-close .icon-svg { width: 16px; height: 16px; }

    .filters-drawer-actions {
        display: flex; gap: 10px; margin-top: auto; padding-top: 14px;
        border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--card);
    }
    .filters-drawer-actions .btn { flex: 1; justify-content: center; }
}
@media (min-width: 861px) {
    .filters-drawer-head, .filters-drawer-actions { display: none !important; }
}

/* Auth cards */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 0; background: var(--bg); }
.auth-split {
    display: flex; width: 100%; max-width: 1040px; margin: 40px auto; border-radius: 18px; overflow: hidden;
    box-shadow: 0 12px 32px rgba(16,24,21,.12);
}
.auth-brand {
    flex: 1; min-width: 0; background: linear-gradient(135deg, var(--primary), #073a2a); color: #fff;
    padding: 52px 44px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.auth-brand .logo { color: #fff; font-size: 24px; }
.auth-brand .logo span { color: var(--accent); }
.auth-brand h2 { font-size: 26px; margin: 18px 0 0; }
.auth-brand p { opacity: .85; font-size: 15px; line-height: 1.6; max-width: 360px; margin: 0; }
.auth-brand ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.auth-brand ul li { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: .92; }
.auth-brand ul li .icon-svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.auth-form-side { flex: 1; min-width: 0; background: var(--card); padding: 52px 44px; display: flex; align-items: center; justify-content: center; }
.auth-card { background: transparent; border: none; border-radius: 0; padding: 0; width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 24px; margin: 0 0 24px; text-align: center; }
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 11px 16px; margin-bottom: 20px;
    background: #fff; border: 1px solid #dadce0; border-radius: 8px;
    color: #3c4043; font-size: 14px; font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    transition: background .15s, box-shadow .15s, border-color .15s;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 4px rgba(0,0,0,0.12); border-color: #c6c9cc; }
.btn-google:active { background: #f1f3f4; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: #8a978f; font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
@media (max-width: 860px) {
    .auth-brand { display: none; }
    .auth-split { margin: 0; border-radius: 0; box-shadow: none; min-height: 100vh; }
    .auth-form-side { padding: 40px 20px; }
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
}
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.flash-success { background: #e4f7ec; color: #0b6e4f; }
.flash-error { background: #fdeceb; color: #b3261e; }

/* Become a vendor / author application page */
.vendor-hero {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    color: #fff; border-radius: 18px; padding: 40px; display: flex; align-items: center;
    justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px;
}
.vendor-hero .badge-pill {
    display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18);
    padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 14px;
}
.vendor-hero h2 { font-size: 30px; margin: 0 0 10px; max-width: 520px; line-height: 1.25; }
.vendor-hero p { opacity: .92; max-width: 520px; margin: 0; }
.vendor-hero .hero-icon {
    width: 86px; height: 86px; border-radius: 18px; background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.vendor-hero .hero-icon svg { width: 40px; height: 40px; }
.vendor-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.vendor-benefit {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
}
.vendor-benefit .b-icon {
    width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center;
    justify-content: center; margin-bottom: 14px;
}
.vendor-benefit .b-icon.b-green { background: #e4f7ec; color: #0b6e4f; }
.vendor-benefit .b-icon.b-blue { background: #e7edfe; color: #2a4dd0; }
.vendor-benefit .b-icon.b-purple { background: #f1e9fd; color: #6d3fc9; }
.vendor-benefit h3 { font-size: 16px; margin: 0 0 8px; }
.vendor-benefit p { font-size: 14px; color: #607068; margin: 0; }
.vendor-apply-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.vendor-apply-card .apply-head { background: var(--primary); height: 6px; }
.vendor-apply-card .apply-body { padding: 32px; }
.vendor-apply-card h2 { margin: 0 0 6px; font-size: 22px; }
.vendor-apply-card > .apply-body > p.sub { color: #607068; margin: 0 0 24px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .vendor-benefits, .form-grid-2 { grid-template-columns: 1fr; } .vendor-hero { padding: 28px; } }

/* Product detail page */
.breadcrumbs { font-size: 13px; color: #8a978f; margin-bottom: 10px; }
.breadcrumbs a { color: #8a978f; }
.breadcrumbs a:hover { color: var(--primary); }
.pd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.pd-head h1 { margin: 0; font-size: 26px; }
.pd-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: #607068; font-size: 14px; margin: 8px 0 20px; }
.pd-meta a { color: var(--primary); font-weight: 600; }
.pd-meta .pd-meta-item { display: flex; align-items: center; gap: 5px; }
.pd-meta .icon-svg { width: 15px; height: 15px; }

.pd-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.pd-tabs button { background: none; border: none; font: inherit; cursor: pointer; padding: 10px 0; color: #607068; font-weight: 600; border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 6px; }
.pd-tabs button .badge { background: #eef3f0; color: #607068; border-radius: 10px; padding: 1px 7px; font-size: 12px; font-weight: 700; }
.pd-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.pd-tab-panel { display: none; }
.pd-tab-panel.active { display: block; }

.pd-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.pd-layout aside { position: sticky; top: 84px; align-self: start; }
.pd-cover { width: 100%; aspect-ratio: 16 / 9; max-height: 320px; object-fit: cover; border-radius: 14px; margin-bottom: 24px; background: #eef3f0; }
.pd-section { margin-bottom: 24px; }
.pd-section h2 { font-size: 19px; margin: 0 0 10px; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 8px; }
.feature-list li:last-child { border-bottom: none; }
.feature-list li .icon-svg { color: var(--primary); flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tags span { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; font-size: 13px; }
.empty-note { color: #8a978f; font-size: 14px; padding: 20px 0; }

/* Reviews tab */
.review-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.review-summary-score { font-size: 42px; font-weight: 800; color: var(--primary); line-height: 1; }
.review-form { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 24px; }
.review-form h3 { margin: 0 0 10px; font-size: 16px; }
.review-form textarea { width: 100%; margin: 12px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; resize: vertical; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; color: #d7ddd9; }
.star-input label svg { width: 24px; height: 24px; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--accent); }
.star-input input:checked ~ label svg, .star-input label:hover svg, .star-input label:hover ~ label svg { fill: currentColor; }
.review-list { display: flex; flex-direction: column; gap: 18px; }
.review-item { border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.review-item:last-child { border-bottom: none; }
.review-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.review-date { color: #8a978f; font-size: 12.5px; }
.review-comment { margin: 8px 0 0; color: #475750; }
.vendor-reply { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.vendor-reply strong { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--primary); }
.vendor-reply p { margin: 6px 0 0; color: #475750; }
.vendor-reply-form { margin-top: 10px; }
.vendor-reply-form textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; resize: vertical; margin-bottom: 8px; }

.pd-buybox { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.pd-license-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pd-license-select { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14.5px; font-weight: 700; background: #fff; appearance: none; }
.pd-license-select.pd-license-fixed { display: flex; align-items: center; }
select.pd-license-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a978f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; padding-right: 30px; }
.pd-price { color: var(--primary); font-weight: 800; font-size: 20px; white-space: nowrap; }
.pd-license-desc { color: #607068; font-size: 12.5px; margin: 0 0 8px; }
.pd-license-links { font-size: 12.5px; margin-bottom: 14px; }
.pd-license-links a { color: var(--primary); text-decoration: none; }
.pd-license-links a:hover { text-decoration: underline; }
.pd-license-links .sep { color: var(--border); margin: 0 6px; }
.pd-license-info { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; background: var(--bg); }
.pd-checklist { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.pd-checklist li { display: flex; gap: 8px; align-items: center; padding: 4px 0; color: #44524c; }
.pd-checklist li .icon-svg { color: var(--primary); width: 15px; height: 15px; }
.pd-buybox .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.pd-buybox .fine-print { font-size: 12px; color: #8a978f; text-align: center; margin: 8px 0 14px; }
.btn-add-to-cart { background: var(--primary); color: #fff; border: none; font-weight: 700; font-size: 15px; padding: 13px 16px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-add-to-cart:hover { background: #095c41; }
.btn-add-to-cart .icon-svg { width: 18px; height: 18px; }
.pd-actions { display: flex; gap: 10px; }
.pd-actions .btn { margin-bottom: 0; }
.pd-actions .btn.wishlisted { background: #fdecec; border-color: #f3b9b9; color: #c0392b; }

.vendor-badge-card { background: #fff8e6; border: 1px solid #f0dca0; color: #8a6d1d; border-radius: 10px; padding: 10px 14px; margin-top: 18px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.vendor-badge-card .icon-svg { width: 16px; height: 16px; }
.author-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-top: 10px; }
.author-card .a-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.author-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.author-card .a-name { font-weight: 700; }
.author-card .a-sub { font-size: 12px; color: #8a978f; }
.author-card .btn.btn-block { width: 100%; margin-bottom: 0; }

/* Vendor portfolio banner (shown atop /products?vendor_id=X) */
.browse-page-section { padding-top: 20px; }
.vendor-portfolio-banner {
    position: relative; overflow: hidden; border-radius: 16px; margin-bottom: 22px;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    color: #fff; padding: 28px 30px; display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.vendor-portfolio-banner::before, .vendor-portfolio-banner::after {
    content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08);
}
.vendor-portfolio-banner::before { width: 260px; height: 260px; top: -120px; right: -60px; }
.vendor-portfolio-banner::after { width: 160px; height: 160px; bottom: -90px; right: 160px; }
.vendor-portfolio-identity { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; }
.vendor-portfolio-logo {
    width: 68px; height: 68px; border-radius: 16px; background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 26px;
    flex-shrink: 0; box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.vendor-portfolio-name { font-size: 23px; font-weight: 800; margin: 0 0 4px; }
.vendor-portfolio-sub { font-size: 13.5px; opacity: .85; }
.vendor-portfolio-back { color: #fff; opacity: .85; font-size: 13px; text-decoration: none; display: inline-block; margin-bottom: 10px; }
.vendor-portfolio-back:hover { opacity: 1; text-decoration: underline; }
.vendor-portfolio-stats { position: relative; z-index: 1; display: flex; gap: 30px; }
.vendor-portfolio-stat { text-align: center; }
.vendor-portfolio-stat .num { font-size: 21px; font-weight: 800; display: block; line-height: 1.2; }
.vendor-portfolio-stat .lbl { font-size: 12px; opacity: .8; }
.vendor-portfolio-stat .stars-row { color: #ffd34d; font-size: 13px; }
@media (max-width: 600px) {
    .vendor-portfolio-banner { padding: 14px; }
    .vendor-portfolio-stats { gap: 16px; width: 100%; justify-content: center; }
    .vendor-portfolio-identity { width: 100%; justify-content: center; text-align: center; flex-direction: column; }
}

/* Vendor badges/sticker sidebar widget on the portfolio page */
.vendor-badges-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 20px; }
.vendor-badges-card h4 { margin: 0 0 12px; font-size: 14px; }
.vendor-badges-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.vendor-sticker {
    display: flex; align-items: center; justify-content: center; background: #f3f7f4; border: 1px solid var(--border);
    border-radius: 50%; width: 38px; height: 38px; color: var(--text); cursor: default;
}
.vendor-sticker .icon-svg { width: 17px; height: 17px; }
.vendor-sticker.gold { background: #fff8e6; border-color: #f0dca0; color: #8a6d1d; }
.vendor-sticker.gold .icon-svg { color: #d4a017; }
.vendor-sticker.blue { background: #eaf2ff; border-color: #c3d9fb; color: #1d4e8a; }
.vendor-sticker.blue .icon-svg { color: #2563eb; }
.vendor-sticker.purple { background: #f3eaff; border-color: #ddc3fb; color: #5b1d8a; }
.vendor-sticker.purple .icon-svg { color: #7c3aed; }

.attr-panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-top: 18px; }
.attr-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.attr-row:last-child { border-bottom: none; }
.attr-row .a-label { color: #8a978f; display: flex; align-items: center; gap: 6px; }
.attr-row .a-value { font-weight: 600; text-align: right; }
.more-attributes-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: none; border: none; color: var(--primary); font-weight: 700; font-size: 13px; padding: 10px 0 0; cursor: pointer; }
.more-attributes-toggle .icon-svg { width: 14px; height: 14px; transition: transform .15s ease; }
.more-attributes-toggle.open .icon-svg { transform: rotate(180deg); }
.more-attributes-panel { margin-top: 4px; }
.pd-sidebar-footer { text-align: center; font-size: 11.5px; color: #8a978f; margin-top: 16px; line-height: 1.6; }
.pd-sidebar-footer a { color: var(--primary); text-decoration: none; }
.pd-sidebar-footer a:hover { text-decoration: underline; }

/* Cart page */
.cart-empty { text-align: center; padding: 60px 20px; color: #8a978f; }
.cart-empty .icon-svg { width: 48px; height: 48px; color: var(--border); margin-bottom: 12px; }
.cart-empty p { margin-bottom: 16px; font-size: 15px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.cart-item-thumb { flex-shrink: 0; width: 86px; height: 64px; border-radius: 8px; overflow: hidden; display: block; }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-title { display: block; font-weight: 700; color: var(--text); text-decoration: none; margin-bottom: 4px; }
.cart-item-title:hover { color: var(--primary); }
.cart-item-vendor { font-size: 12.5px; color: #8a978f; margin-bottom: 8px; }
.cart-item-license-form select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; background: #fff; }
.cart-item-price { font-weight: 800; color: var(--primary); font-size: 16px; white-space: nowrap; }
.cart-item-remove-form { flex-shrink: 0; }
.cart-item-remove { background: none; border: none; color: #c0392b; cursor: pointer; padding: 6px; display: flex; }
.cart-item-remove .icon-svg { width: 18px; height: 18px; }
.cart-summary { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; position: sticky; top: 90px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: #44524c; }
.cart-summary-total { font-size: 17px; font-weight: 800; color: var(--text); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.cart-summary .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.cart-summary .fine-print { font-size: 12px; color: #8a978f; text-align: center; margin: 8px 0 0; }

@media (max-width: 960px) {
    .pd-layout { grid-template-columns: 1fr; }
    .pd-layout aside { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}

@media (max-width: 560px) {
    .cart-item { flex-wrap: wrap; }
    .cart-item-thumb { width: 72px; height: 54px; }
}

/* Maintenance */
.maintenance-wrap { min-height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }

/* ------------------------- Responsive ------------------------- */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 20px;
        gap: 16px;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .site-header .inner { position: relative; }
    .category-nav { display: none; }
    .nav-links-cats-label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: #8a978f; margin-top: 6px; }
    .nav-cat-group { display: block; width: 100%; }
    .nav-cat-group > a { font-weight: 600; font-size: 14.5px; }
    .nav-cat-group details summary { cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--text); list-style: none; }
    .nav-cat-group details summary::-webkit-details-marker { display: none; }
    .nav-cat-group details summary .icon-svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
    .nav-cat-group details[open] summary .icon-svg { transform: rotate(180deg); }
    .nav-cat-group details ul { list-style: none; margin: 6px 0 0; padding: 0 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
    .nav-cat-group details ul a { font-size: 13.5px; font-weight: 500; color: #4a5a52; }
    .nav-auth-desktop { display: none; }
    .nav-mobile-auth { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
    .nav-mobile-auth .btn { width: 100%; justify-content: center; padding: 11px; font-size: 14.5px; }
    .nav-mobile-auth .btn-outline, .nav-mobile-auth .btn-outline:hover { color: var(--primary); }
    .nav-mobile-auth .btn-primary, .nav-mobile-auth .btn-primary:hover { color: #fff; }
}

@media (max-width: 760px) {
    .hero { padding: 50px 0; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-grid .hero-content { max-width: 100%; }
    .hero-content h1 { font-size: 30px; }
    .hero-content p { font-size: 16px; margin-inline: auto; }
    .hero-search { margin-inline: auto; flex-direction: column; }
    .hero-search button { padding: 12px; justify-content: center; }
    .hero .actions { justify-content: center; }
    .hero-image-wrap { order: -1; margin-bottom: 8px; aspect-ratio: 16/10; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .stats { gap: 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-brand p { max-width: none; }
    .nav-actions .btn { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
    .grid-3, .grid-5 { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 26px; }
    .auth-card { padding: 24px; }
    .cta-banner h2 { font-size: 22px; }
}
