@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg: #F6F7FB;
    --surface: #FFFFFF;
    --border: #E7E9F2;
    --text: #14192B;
    --muted: #6B7189;

    --brand: #4F46E5;
    --brand-dark: #3F37C9;
    --brand-light: #EEF0FF;
    --navy: #12142B;
    --navy-2: #1B1E3D;

    --price: #059669;
    --price-light: #E7F7F1;

    --cta: #FF7A45;
    --cta-2: #FF5A5F;
    --cta-dark: #E8531F;

    --star: #F5A623;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(20, 25, 43, 0.05);
    --shadow-md: 0 8px 24px rgba(20, 25, 43, 0.08);
    --shadow-lg: 0 20px 45px rgba(20, 25, 43, 0.14);

    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Top bar ---------- */
.topbar {
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #C9CCFF;
    font-size: 12.5px;
}
.topbar .container { display: flex; justify-content: space-between; padding: 8px 20px; letter-spacing: 0.01em; }

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: var(--shadow-sm);
}
.site-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
}
.header-top-row { display: contents; }
.brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 21px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    flex-shrink: 0;
    letter-spacing: -0.01em;
    order: 1;
}
.brand-chip {
    background: linear-gradient(135deg, var(--brand) 0%, #7C6FF0 100%);
    color: #fff;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 7px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}
.search-box {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    max-width: 620px;
    transition: border-color .15s, background .15s;
    order: 2;
}
.search-box:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-light); }
.search-box input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 14.5px;
    padding: 11px 14px;
    font-family: var(--font-body);
}
.search-box input::placeholder { color: var(--muted); }
.search-box button {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0 16px;
    align-self: stretch;
    font-size: 16px;
}
.search-box:focus-within button { color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 22px; flex-shrink: 0; order: 3; }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--navy);
    margin: 0 auto;
    transition: transform .25s, opacity .2s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Mobile drawer menu ---------- */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 26, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
    z-index: 40;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(82vw, 340px);
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #E8E9FA;
    z-index: 50;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    padding: 18px 20px 26px;
    overflow-y: auto;
    box-shadow: -12px 0 40px rgba(0,0,0,0.3);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-drawer-header .brand { color: #fff; font-size: 15.5px; }
.drawer-close {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
}
.mobile-drawer-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.mobile-drawer-nav a {
    padding: 13px 12px;
    border-radius: 10px;
    font-size: 15.5px;
    font-weight: 600;
    color: #C9CCE8;
    transition: background .15s, color .15s;
}
.mobile-drawer-nav a:first-child {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.mobile-drawer-nav a.active { background: rgba(255,255,255,0.1); color: #fff; }
.mobile-drawer-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.mobile-drawer-cta {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--brand) 0%, #7C6FF0 100%);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px;
    border-radius: 12px;
    margin-top: auto;
    box-shadow: 0 8px 20px rgba(79,70,229,0.35);
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-fab {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
    z-index: 30;
    font-size: 26px;
    transition: transform .15s;
}
.whatsapp-fab:hover { transform: scale(1.06); }
.site-nav a { color: var(--text); font-size: 13.5px; font-weight: 600; }
.site-nav a:hover { color: var(--brand); }

.category-strip {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.category-strip::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 36px;
    background: linear-gradient(90deg, transparent, var(--surface) 85%);
    pointer-events: none;
}
.category-strip .container {
    display: flex;
    gap: 26px;
    padding: 11px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-strip .container::-webkit-scrollbar { display: none; }
.category-strip a {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    flex-shrink: 0;
}
.category-strip a:hover, .category-strip a.active { color: var(--brand); border-color: var(--cta); }

/* ---------- Hero banner ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(circle at 88% 15%, rgba(255,122,69,0.35), transparent 45%),
        radial-gradient(circle at 8% 90%, rgba(124,111,240,0.35), transparent 40%),
        linear-gradient(120deg, var(--navy) 0%, var(--brand-dark) 70%, var(--brand) 100%);
    color: #fff;
    padding: 44px 0;
    margin-bottom: 26px;
    overflow: hidden;
}
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero.hero-has-banner {
    background:
        linear-gradient(120deg, rgba(18,20,43,0.90) 0%, rgba(63,55,201,0.82) 55%, rgba(79,70,229,0.72) 100%),
        var(--hero-banner-img);
    background-size: cover;
    background-position: center;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.6vw, 34px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    max-width: 560px;
}
.hero p { margin: 0; color: #D6D9FF; font-size: 14.5px; max-width: 480px; }
.hero-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}
.hero-stats {
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 16px 22px;
    backdrop-filter: blur(6px);
}
.hero-stats div { text-align: center; padding: 0 16px; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 23px; font-weight: 800; }
.hero-stats span { font-size: 11.5px; color: #C9CCFF; }

/* ---------- Layout: sidebar + grid ---------- */
.shop-layout {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 60px;
}
.sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    height: fit-content;
    position: sticky;
    top: 96px;
    box-shadow: var(--shadow-sm);
}
.sidebar h3 { font-family: var(--font-display); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin-bottom: 2px; }
.sidebar a {
    display: flex; justify-content: space-between;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    transition: background .15s, color .15s;
}
.sidebar a:hover { background: var(--brand-light); color: var(--brand); }
.sidebar a.active { background: var(--brand-light); color: var(--brand); font-weight: 700; }
.sidebar a .count { color: var(--muted); font-size: 12px; font-weight: 500; }
.sidebar a.active .count { color: var(--brand); }

.results-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.section-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}
.results-count { color: var(--muted); font-size: 13px; font-weight: 500; }

/* ---------- Product grid ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(222px, 1fr));
    gap: 18px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .18s, transform .18s, border-color .18s;
    position: relative;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: #D6D9F5; }
.card-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: linear-gradient(135deg, var(--price) 0%, #10B981 100%);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
    z-index: 1;
}
.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    background: linear-gradient(150deg, #F0F1FB 0%, #F7F8FD 100%);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image.placeholder { color: var(--muted); font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; margin: 0; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.card-dev { color: var(--muted); font-size: 12px; margin: 0; font-weight: 500; }
.card-rating { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.card-rating .stars { color: var(--star); letter-spacing: 1px; }
.card-price-row { display: flex; align-items: baseline; gap: 8px; }
.card-price { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--price); }
.card-price-note { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.card-license-label { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--price); }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--muted); font-weight: 500; }
.card-meta span { background: var(--bg); padding: 3px 8px; border-radius: 5px; }
.card-cta {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--cta) 0%, var(--cta-2) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    padding: 11px;
    border-radius: var(--radius-sm);
    margin-top: auto;
    box-shadow: 0 6px 16px rgba(255, 90, 95, 0.28);
    transition: box-shadow .15s, transform .15s;
}
.card-cta:hover { box-shadow: 0 8px 20px rgba(255, 90, 95, 0.4); transform: translateY(-1px); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 12.5px; color: var(--muted); padding: 18px 0 4px; font-weight: 500; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 7px; color: #C7CAD9; }

/* ---------- Detail / product page ---------- */
.product-page { padding-bottom: 60px; }
.product-top {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr) 300px;
    gap: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 14px;
    box-shadow: var(--shadow-sm);
}
.product-gallery {
    aspect-ratio: 1/1;
    background: linear-gradient(150deg, #F0F1FB 0%, #F7F8FD 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery.placeholder { color: var(--muted); font-family: var(--font-display); font-weight: 700; }

.product-info h1 { font-family: var(--font-display); font-size: 25px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.product-dev { color: var(--brand); font-size: 13.5px; font-weight: 600; margin: 0 0 12px; }
.product-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.product-rating .stars { color: var(--star); font-size: 15px; letter-spacing: 1px; }
.product-highlights { list-style: none; padding: 0; margin: 0 0 16px; font-size: 13.5px; color: var(--text); }
.product-highlights li { padding: 5px 0; display: flex; gap: 9px; font-weight: 500; }
.product-highlights li::before { content: "✓"; color: var(--price); font-weight: 800; }
.product-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 11.5px; font-weight: 600; color: var(--brand); background: var(--brand-light); padding: 5px 11px; border-radius: 999px; }

.buybox {
    background: linear-gradient(160deg, #FAFAFF 0%, #F5F6FE 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}
.buybox-price { font-family: var(--font-display); font-size: 27px; font-weight: 800; color: var(--price); margin: 0 0 2px; }
.buybox-license-label { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--price); margin: 0 0 2px; }
.buybox-price-note { font-size: 12px; color: var(--muted); margin: 0 0 16px; font-weight: 500; }
.plan-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.plan-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
    font-size: 13.5px;
    cursor: pointer;
    background: var(--surface);
    transition: border-color .15s, background .15s;
}
.plan-option:has(input:checked) { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 0 0 3px rgba(79,70,229,0.08); }
.plan-option input { accent-color: var(--brand); }
.plan-option-name { flex-grow: 1; font-weight: 600; }
.plan-option-price { font-family: var(--font-display); font-weight: 800; color: var(--price); }
.download-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--cta) 0%, var(--cta-2) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    padding: 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    box-shadow: 0 8px 20px rgba(255, 90, 95, 0.3);
    transition: box-shadow .15s, transform .15s;
}
.download-btn:hover { box-shadow: 0 10px 24px rgba(255, 90, 95, 0.42); transform: translateY(-1px); }
.secure-note { text-align: center; font-size: 11.5px; color: var(--muted); margin: 0 0 16px; font-weight: 500; }
.spec-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.spec-list li {
    display: flex; justify-content: space-between;
    padding: 9px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-weight: 500;
}
.spec-list li:first-child { border-top: none; }
.spec-list li span:last-child { color: var(--text); font-weight: 600; }

.product-desc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 18px;
    box-shadow: var(--shadow-sm);
}
.product-desc h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.01em; }
.product-desc p { color: #454B63; font-size: 14px; margin: 0 0 14px; line-height: 1.65; }
.product-desc p:last-child { margin-bottom: 0; }

.related-section { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer {
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #A6A9D6;
    padding: 34px 0;
    font-size: 13px;
    text-align: center;
    margin-top: 24px;
}

.empty-state { text-align: center; padding: 64px 0; color: var(--muted); background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); font-weight: 500; }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 8px;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 13.5px;
    transition: border-color .15s, background .15s, color .15s;
}
.page-link:hover { border-color: var(--brand); color: var(--brand); }
.page-link.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-link.page-prev, .page-link.page-next { font-weight: 700; padding: 0 16px; }
.page-ellipsis { color: var(--muted); padding: 0 4px; font-weight: 600; }

/* ---------- Contact page ---------- */
.contact-page { padding: 8px 0 60px; }
.contact-intro { max-width: 560px; margin-bottom: 32px; }
.contact-intro h1 { font-family: var(--font-display); font-size: 30px; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.01em; }
.contact-intro p { color: var(--muted); font-size: 15px; }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    max-width: 900px;
}
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .18s, transform .18s, border-color .18s;
}
.contact-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: #D6D9F5; }
.contact-icon { font-size: 30px; margin-bottom: 6px; }
.contact-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0; }
.contact-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 8px; }
.contact-cta { font-weight: 700; font-size: 13.5px; color: var(--brand); }
.contact-card-whatsapp .contact-cta { color: #1FA855; }
.contact-card-telegram .contact-cta { color: #229ED9; }
.contact-card-email .contact-cta { color: var(--brand); }

/* =======================================================================
   RESPONSIVE — tablets and phones
   ======================================================================= */

/* ---- Tablets (portrait) & small laptops ---- */
@media (max-width: 900px) {
    .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .sidebar {
        position: static;
        padding: 12px;
    }
    .sidebar h3 { margin: 0 0 8px 4px; }
    .sidebar ul {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }
    .sidebar li { margin-bottom: 0; flex-shrink: 0; }
    .sidebar a {
        white-space: nowrap;
        padding: 8px 14px;
        border: 1px solid var(--border);
        border-radius: 999px;
        gap: 6px;
    }
    .sidebar a.active { border-color: var(--brand); }
    .sidebar a .count { font-size: 11px; }

    .product-top { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 22px; }
    .product-gallery { max-width: 320px; margin: 0 auto; aspect-ratio: 1/1; }

    .hero { padding: 32px 0; }
    .hero-inner { gap: 18px; }
    .hero-stats { width: 100%; justify-content: space-between; padding: 14px 16px; }
    .hero-stats div { padding: 0 6px; }
}

/* ---- Tablets (landscape/portrait boundary) & large phones ---- */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .card { padding: 12px; gap: 8px; }
    .card-title { font-size: 13.5px; }

    .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .contact-intro h1 { font-size: 25px; }
}

/* ---- Phones ---- */
@media (max-width: 640px) {
    .topbar .container { flex-direction: column; gap: 2px; padding: 6px 16px; text-align: center; }

    .site-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 16px;
    }
    .header-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .brand { font-size: 17px; }
    .brand-chip { font-size: 11px; padding: 3px 7px; }
    .search-box { order: 0; max-width: none; width: 100%; }
    .site-nav { display: none; }
    .menu-toggle { display: flex; }

    .category-strip .container { gap: 18px; padding: 9px 16px; }

    .hero h1 { font-size: 22px; }
    .hero p { font-size: 13.5px; }
    .hero-badge { font-size: 11.5px; padding: 5px 12px; }
    .hero-stats { flex-wrap: wrap; gap: 12px 0; }
    .hero-stats div { flex: 1 1 30%; padding: 4px; }
    .hero-stats strong { font-size: 19px; }

    .results-header { align-items: flex-start; }
    .section-title { font-size: 17px; }

    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .card { border-radius: var(--radius-sm); }
    .card-image { border-radius: 8px; }
    .card-cta { font-size: 12.5px; padding: 10px 6px; }
    .card-badge { font-size: 9.5px; padding: 3px 7px; top: 9px; left: 9px; }

    .product-page { padding-bottom: 40px; }
    .product-top { padding: 16px; border-radius: var(--radius-sm); }
    .product-gallery { max-width: 220px; }
    .product-info h1 { font-size: 21px; }
    .buybox { padding: 16px; }

    .product-desc { padding: 18px; }
    .product-desc h2 { font-size: 16px; }

    .contact-intro h1 { font-size: 22px; }
    .contact-card { padding: 20px; }

    .site-footer { padding: 24px 0; font-size: 12.5px; }
}

/* ---- Small phones ---- */
@media (max-width: 380px) {
    .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
    .card { padding: 10px; }
    .hero-stats div { flex: 1 1 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; }
}
