/* ============================================================
   BBGadgets storefront layout
   Loaded after style.css. Uses its own class names
   (.site-head, .hero-slide, .p-card, .marq, .foot, .tabbar) so
   the legacy rules in style.css never apply to this markup.
   ============================================================ */

:root {
    --sf-ink: #111111;
    --sf-ink-soft: #5a5a5a;
    --sf-line: #e6e6e6;
    --sf-bg: #ffffff;
    --sf-tint: #fdeeee;
    --sf-accent: #d00000;
    --sf-brand: #0071BC;
    --sf-radius: 3px;
    --sf-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

.sf {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--sf-ink);
    background: var(--sf-bg);
}

.sf h1, .sf h2, .sf h3, .sf h4, .sf .logo-word {
    font-family: 'Rubik', 'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
}

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

.sf-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.sf-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--sf-ink-soft);
    font-weight: 600;
}

/* ---------- header palette ----------
   The top of the page runs its own dark scheme so the storefront body
   keeps --sf-* untouched. Scoped to the header and its surfaces. */
.site-head, .drawer, .search-panel, .tabbar {
    --hd-bg: #ffffff;
    --hd-panel: #ffffff;
    --hd-ink: #000000;
    --hd-muted: rgba(0, 0, 0, .7);
    --hd-faint: rgba(0, 0, 0, .5);
    --hd-line: rgba(0, 0, 0, .15);
    --hd-hover: rgba(0, 0, 0, .05);
    --hd-live: #0071BC;
}

/* Scroll animation used by the marquee promo strip. */
@keyframes anno-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- header ---------- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--hd-bg);
    color: var(--hd-ink);
    border-bottom: 1px solid var(--hd-line);
}
.site-head.is-stuck { box-shadow: 0 18px 40px -26px rgba(10, 10, 10, .95); }
.site-head :focus-visible {
    outline: 2px solid var(--hd-live);
    outline-offset: 3px;
    border-radius: 6px;
}
.head-grid {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 78px;
}
.head-menu-btn {
    background: none;
    border: 0;
    cursor: pointer;
    width: 44px;
    height: 44px;
    margin-left: -10px;
    display: none;
    place-items: center;
    border-radius: 12px;
    line-height: 0;
    color: var(--hd-ink);
}
.head-menu-btn:hover { background: var(--hd-hover); }
.logo-word {
    font-size: 25px;
    letter-spacing: -.03em;
    display: flex;
    align-items: baseline;
    gap: 2px;
    white-space: nowrap;
    flex: none;
    color: var(--hd-ink);
}
.logo-word b { color: var(--hd-live); }
.logo-img {
    display: block;
    height: 34px;
    width: auto;
    max-width: 100%;
    transition: opacity .25s ease;
}
.logo-word:hover .logo-img { opacity: .8; }
.logo-img--drawer { height: 30px; }

/* the search box sits in the bar itself, between logo and tools */
.head-search {
    position: relative;
    display: none;
    flex: 1 1 auto;
    max-width: 480px;
    margin: 0 auto;
}
.head-search input[type=text] {
    width: 100%;
    height: 44px;
    padding: 0 48px;
    background: rgba(243, 239, 228, .045);
    border: 1px solid var(--hd-line);
    border-radius: 999px;
    color: var(--hd-ink);
    font: 400 14.5px 'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
    transition: border-color .3s ease, background .3s ease;
}
.head-search input[type=text]::placeholder { color: var(--hd-faint); }
.head-search input[type=text]:focus {
    outline: none;
    border-color: rgba(147, 213, 0, .5);
    background: rgba(243, 239, 228, .075);
}
.head-search-ico {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: rgba(243, 239, 228, .5);
    pointer-events: none;
}
.head-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--hd-live);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.head-search button svg { width: 15px; height: 15px; }
.head-search button:hover { filter: brightness(1.08); }
@media (min-width: 901px) {
    .head-search { display: block; }
    .head-tools #searchBtn { display: none; }
}

/* menu links run along their own strip under the bar */
.head-nav {
    background: var(--hd-bg);
    border-top: 1px solid var(--hd-line);
}
.head-nav-in {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 46px;
    padding-left: 6px;
}
.head-nav a {
    height: 100%;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--hd-muted);
    border-bottom: 2px solid transparent;
    transition: color .22s ease, border-color .22s ease;
}
.head-nav a:hover { color: var(--hd-ink); }
.head-nav a.is-active { color: var(--hd-ink); border-bottom-color: var(--hd-live); }
.head-nav .nav-hot { color: var(--hd-live); font-weight: 700; }
.head-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
    flex: none;
}
.tool {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    position: relative;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--hd-ink);
    transition: background .22s ease;
}
.tool:hover { background: var(--hd-hover); }
.tool svg { width: 20px; height: 20px; }
.tool-count {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--hd-live);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.tool-count.is-sale { background: #e8c96a; }
.sf .head-login {
    font-size: 13.5px;
    font-weight: 600;
    background: var(--hd-live);
    color: #fff;
    padding: 11px 17px;
    border-radius: 999px;
    white-space: nowrap;
    margin-left: 6px;
    transition: filter .22s ease;
}
.sf .head-login:hover { color: #fff; filter: brightness(1.08); }
/* `.sf a` would otherwise inherit the dark body ink and disappear on the header. */
.sf .head-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
    padding: 10px 16px;
    border: 1px solid var(--hd-line);
    border-radius: 999px;
    color: var(--hd-ink);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.head-call svg { width: 17px; height: 17px; color: var(--hd-live); flex: none; }
.head-call b { font-weight: 700; color: var(--hd-live); }
.sf .head-call:hover { background: var(--hd-live); border-color: var(--hd-live); color: #fff; }
.head-call:hover svg, .head-call:hover b { color: #fff; }
.drawer-nav .drawer-call { color: var(--hd-live); font-weight: 700; }

/* ---------- drawer + search overlay ---------- */
.scrim {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, .62);
    opacity: 0;
    visibility: hidden;
    transition: .25s;
    z-index: 300;
}
.scrim.is-open { opacity: 1; visibility: visible; }
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(330px, 86vw);
    background: var(--hd-panel);
    color: var(--hd-ink);
    z-index: 310;
    transform: translateX(-100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--hd-line);
}
.drawer-x {
    background: none;
    border: 0;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--hd-muted);
}
.drawer-x:hover { color: var(--hd-ink); }
.drawer-nav { padding: 6px 0 20px; }
.drawer-nav a {
    display: block;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--hd-muted);
    border-bottom: 1px solid rgba(243, 239, 228, .07);
}
.drawer-nav a:hover { color: var(--hd-ink); background: var(--hd-hover); }
.drawer-grp {
    padding: 16px 20px 6px;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hd-faint);
    font-weight: 700;
}
.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--hd-bg);
    color: var(--hd-ink);
    z-index: 320;
    padding: 22px 0;
    transform: translateY(-100%);
    transition: transform .3s ease;
    border-bottom: 1px solid var(--hd-line);
    box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .95);
}
.search-panel.is-open { transform: none; }
.search-form-sf { display: flex; gap: 10px; max-width: 720px; margin: 0 auto; padding: 0 20px; }
.search-form-sf input {
    flex: 1;
    height: 48px;
    background: rgba(243, 239, 228, .045);
    border: 1px solid var(--hd-line);
    border-radius: 999px;
    padding: 0 20px;
    font-size: 15px;
    color: var(--hd-ink);
    font-family: inherit;
}
.search-form-sf input::placeholder { color: var(--hd-faint); }
.search-form-sf input:focus {
    outline: none;
    border-color: rgba(147, 213, 0, .5);
    background: rgba(243, 239, 228, .075);
}
.search-form-sf button {
    border: 0;
    background: var(--hd-live);
    color: #fff;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.search-form-sf button:hover { filter: brightness(1.08); }
.search-hint { text-align: center; margin-top: 14px; font-size: 13px; color: var(--hd-faint); }

/* ---------- hero slideshow ---------- */
.hero-slides { position: relative; background: #f2f2f2; }
.slide {
    display: none;
    min-height: 460px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.slide.is-active { display: flex; }
.slide--a { background: linear-gradient(115deg, #0b1f3f 0%, #0071BC 55%, #4d94ff 100%); }
.slide--b { background: linear-gradient(115deg, #141414 0%, #2b2b2b 60%, #4a4a4a 100%); }
.slide--c { background: linear-gradient(115deg, #3a0d0d 0%, #7a1f1f 55%, #d00000 100%); }
.slide-in { position: relative; z-index: 2; max-width: 620px; color: #fff; }
.slide-in .sf-eyebrow { color: rgba(255, 255, 255, .75); }
.slide-in h2 { font-size: clamp(30px, 5vw, 54px); margin: 12px 0 14px; }
.slide-in p { font-size: 17px; opacity: .9; margin-bottom: 26px; max-width: 460px; }
.slide-glyph {
    position: absolute;
    right: -4%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(180px, 30vw, 360px);
    opacity: .13;
    z-index: 1;
    pointer-events: none;
}
.btn-sf {
    display: inline-block;
    background: #fff;
    color: var(--sf-ink);
    padding: 14px 34px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    border: 0;
    cursor: pointer;
    transition: .2s;
}
.btn-sf:hover { transform: translateY(-2px); }
.btn-sf--dark { background: var(--sf-ink); color: #fff; }
/* Admin action buttons sit on the white staff bar, so they stay light. */
.btn-sf--light { background: #fff; color: var(--sf-ink); border: 1px solid var(--sf-line); }
.btn-sf--light:hover { border-color: var(--sf-ink); }
.btn-sf--line { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); }
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .85);
    cursor: pointer;
    font-size: 19px;
    z-index: 3;
    display: grid;
    place-items: center;
}
.slide-nav:hover { background: #fff; }
.slide-nav--prev { left: 18px; }
.slide-nav--next { right: 18px; }
.slide-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    z-index: 3;
}
.slide-dots button {
    width: 30px;
    height: 4px;
    border: 0;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    padding: 0;
}
.slide-dots button.is-active { background: #fff; }

/* ---------- service / USP strip ---------- */
.svc { border-bottom: 1px solid var(--sf-line); background: #fff; }
.svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--sf-line);
}
.svc-item {
    background: #fff;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 26px 22px;
}
.svc-item svg { width: 30px; height: 30px; flex: none; color: var(--sf-brand); }
.svc-item h4 { font-size: 15px; margin-bottom: 3px; }
.svc-item p { font-size: 13px; color: var(--sf-ink-soft); line-height: 1.45; }

/* ---------- section heading ---------- */
.sf-sec { padding: 56px 0; }
.sf-sec--gray { background: #fafafa; }
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 8px 0 6px; }
.sec-head p { color: var(--sf-ink-soft); font-size: 15px; }
.sec-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    margin-bottom: 26px;
}
.sec-link { font-size: 14px; font-weight: 600; border-bottom: 2px solid var(--sf-ink); padding-bottom: 2px; white-space: nowrap; }

/* ---------- product card ---------- */
.p-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.p-card {
    display: flex;
    min-width: 0;
    transition: .25s ease-out;
}
.p-card-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(17, 17, 17, .05);
    padding: 12px;
    overflow: hidden;
    transition: .25s ease-out;
}
.p-card:hover .p-card-inner {
    box-shadow: 0 8px 22px rgba(17, 17, 17, .10);
    transform: translateY(-2px);
}
.p-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    font-size: 64px;
    position: relative;
    background: linear-gradient(150deg, #f5f7fb, #e9edf5);
    border-radius: 8px;
    overflow: hidden;
}
.p-media-link {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.p-glyph { line-height: 1; }
.p-media--phone { background: linear-gradient(150deg, #eef3ff, #dbe6ff); }
.p-media--laptop { background: linear-gradient(150deg, #f2f4f6, #e2e6ea); }
.p-media--tablet { background: linear-gradient(150deg, #f4f1ff, #e3ddf9); }
.p-media--audio { background: linear-gradient(150deg, #fff3f3, #ffe2e2); }

/* A product photo covers the category glyph, badges stay on top. */
.p-media .p-photo,
.detail-media .p-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.p-media .p-photo { transition: transform .35s ease-out; }
.p-card:hover .p-photo { transform: scale(1.04); }
.p-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: var(--sf-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: .02em;
}
.p-badge--stock { right: auto; left: 10px; background: var(--sf-ink); }
.p-badge--stock.p-badge--in { background: #0071BC; }
.p-badge--stock.p-badge--out { background: var(--sf-accent); }
.p-info { padding: 10px 2px 2px; display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.p-cat { font-size: 10px; letter-spacing: .10em; text-transform: uppercase; color: var(--sf-ink-soft); font-weight: 600; }
.p-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.9em;
    overflow: hidden;
}
.sf .p-name { font-weight: 600; }
.p-name a:hover { color: var(--sf-brand); }
.p-desc {
    font-size: 11px;
    line-height: 1.45;
    color: #6b7280;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.9em;
    overflow: hidden;
}
.p-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 8px 0 6px; }
.p-now { font-weight: 700; font-size: 16px; }
.p-was { color: var(--sf-ink-soft); text-decoration: line-through; font-size: 12px; }
.p-off { color: var(--sf-accent); font-size: 11px; font-weight: 700; }
.p-form { margin-top: 4px; }
.p-qty {
    width: 58px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    padding: 9px 6px;
    font-family: inherit;
    font-size: 14px;
    text-align: center;
}
.p-btn {
    width: 100%;
    min-height: 36px;
    border: 0;
    background: #0071BC;
    color: #fff;
    padding: 7px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .4s ease-out;
}
.p-btn:hover { background: #005a96; }
.p-btn:disabled { background: #c9c9c9; cursor: not-allowed; }
/* Row actions on the white admin panels stay light - the dark fill marks a
   submit, not a link. `.sf a` would otherwise recolour the anchor variants. */
.p-btn--quiet {
    background: #fff;
    color: var(--sf-ink);
    border: 1px solid var(--sf-line);
}
.p-btn--quiet:hover { background: #f2f4f7; color: var(--sf-ink); border-color: #cfd4dc; }
.sf .p-btn--quiet { color: var(--sf-ink); }
.p-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: var(--sf-ink-soft);
    border: 1px dashed var(--sf-line);
    border-radius: var(--sf-radius);
}

/* ---------- marquee promo strip ---------- */
.marq {
    background: var(--sf-ink);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 17px 0;
}
.marq-track {
    display: inline-flex;
    animation: anno-scroll 22s linear infinite;
    font-family: 'Rubik', sans-serif;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.marq-track span { padding-right: 44px; }
.marq-track i { color: var(--sf-accent); font-style: normal; padding-right: 44px; }

/* ---------- store info cards ---------- */
.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.store-card {
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    overflow: hidden;
    background: #fff;
}
.store-map {
    height: 210px;
    background:
        repeating-linear-gradient(0deg, #dfe4ea 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, #dfe4ea 0 1px, transparent 1px 34px),
        linear-gradient(140deg, #eef1f5, #dde3ea);
    position: relative;
}
.store-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.store-body { padding: 20px 22px 24px; }
.store-body h3 { font-size: 18px; margin-bottom: 8px; }
.store-body p { font-size: 14px; color: var(--sf-ink-soft); margin-bottom: 6px; }
.store-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.store-tag {
    font-size: 12px;
    font-weight: 600;
    background: #f2f4f7;
    border-radius: 20px;
    padding: 5px 12px;
    color: var(--sf-ink);
}
.store-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--sf-line);
}
.store-phone {
    font-size: 14px;
    font-weight: 700;
    color: var(--sf-ink);
    text-decoration: none;
}
.store-loc {
    font-size: 13px;
    font-weight: 700;
    color: var(--sf-brand);
    text-decoration: none;
    border: 1px solid var(--sf-brand);
    border-radius: 20px;
    padding: 6px 14px;
}
.store-loc:hover { background: var(--sf-brand); color: #fff; }
.loc-thumb { display: grid; place-items: center; }
.loc-preview {
    height: 260px;
    border: 1px solid var(--sf-line);
    border-radius: 10px;
    overflow: hidden;
    background: #eef1f5;
}
.loc-preview iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- footer ---------- */
.foot { background: #0071BC; color: #d8d8d8; padding: 56px 0 0; }
.foot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 40px;
}
.foot h4 { color: #fff; font-size: 15px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.foot ul { list-style: none; }
.foot li { margin-bottom: 10px; font-size: 14px; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot p { font-size: 14px; line-height: 1.6; }
.foot-addr { font-size: 14px; margin-bottom: 16px; }
.foot-addr b { color: #fff; display: block; margin-bottom: 3px; }
.foot-social { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.foot-social a {
    width: 38px;
    height: 38px;
    border: 1px solid #333;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #cfcfcf;
    transition: color .25s, border-color .25s, transform .25s;
}
.foot-social a svg, .foot-social a img { width: 20px; height: 20px; }
.foot-social a:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }
.news-form { display: flex; margin: 14px 0 10px; }
.news-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #333;
    background: #161616;
    color: #fff;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    border-radius: 3px 0 0 3px;
}
.news-form button {
    border: 0;
    background: #fff;
    color: #0d0d0d;
    font-weight: 700;
    padding: 0 20px;
    cursor: pointer;
    font-family: inherit;
    border-radius: 0 3px 3px 0;
}
.pay-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pay-chip {
    background: #fff;
    color: #0d0d0d;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 11px;
    letter-spacing: .03em;
}
.foot-bar {
    border-top: 1px solid #232323;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #8f8f8f;
}

/* ---------- sticky mobile tab bar ---------- */
.tabbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hd-bg);
    color: var(--hd-ink);
    border-top: 1px solid var(--hd-line);
    z-index: 220;
    padding: 7px 0 max(7px, env(safe-area-inset-bottom));
}
/* flex, not a fixed column count: the Call tab only exists once a number is set */
.tabbar-grid { display: flex; }
.tabbar-grid .tab { flex: 1; min-width: 0; }
.sf .tab {
    display: grid;
    place-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--hd-muted);
    position: relative;
    padding: 4px 0;
}
.tab svg { width: 21px; height: 21px; }
.sf .tab.is-active { color: var(--hd-live); }
.sf .tab.tab--call { color: var(--hd-live); font-weight: 700; }
.sf .tab.tab--call:active { background: var(--hd-hover); }
.tab b {
    position: absolute;
    top: 0;
    right: 22%;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: var(--hd-live);
    color: #fff;
    font-size: 10px;
    display: grid;
    place-items: center;
    padding: 0 4px;
}

/* ---------- flash message ---------- */
.flash {
    background: #eefbea;
    color: #1c6b22;
    border-bottom: 1px solid #cdeccf;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.flash--error { background: #fdeeee; color: #a31111; border-bottom-color: #f3d1d1; }

/* ---------- page shell for inner pages ---------- */
.page-head {
    padding: 40px 0 26px;
    border-bottom: 1px solid var(--sf-line);
    background: #fafafa;
}
.page-head h1 { font-size: clamp(24px, 4vw, 36px); }
.crumbs { font-size: 13px; color: var(--sf-ink-soft); margin-bottom: 8px; }
.filterbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px 0 4px;
}
.filterbar select, .filterbar input[type=text] {
    border: 1px solid var(--sf-line);
    border-radius: 30px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
}
.chipbar { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 0 0; }
.chip {
    border: 1px solid var(--sf-line);
    border-radius: 22px;
    padding: 7px 15px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
}
.chip.is-active { background: var(--sf-ink); color: #fff; border-color: var(--sf-ink); }

/* ---------- detail page ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 40px 0 60px; align-items: start; }
.detail-media {
    aspect-ratio: 1/1;
    border-radius: var(--sf-radius);
    display: grid;
    place-items: center;
    font-size: 150px;
    background: linear-gradient(150deg, #f5f7fb, #e6ebf3);
    position: relative;
    border: 1px solid var(--sf-line);
}
.detail-info h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 6px 0 10px; }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.detail-price .p-now { font-size: 27px; }
.detail-desc { color: var(--sf-ink-soft); font-size: 15px; line-height: 1.7; margin: 18px 0; }
.spec-list { list-style: none; border-top: 1px solid var(--sf-line); margin-top: 20px; }
.spec-list li { border-bottom: 1px solid var(--sf-line); padding: 11px 0; font-size: 14px; display: flex; justify-content: space-between; }
.spec-list span { color: var(--sf-ink-soft); }
.buy-row { display: flex; gap: 12px; align-items: center; margin: 22px 0 12px; }
.buy-row .p-qty { width: 82px; padding: 13px; }
.btn-xl { padding: 15px 34px; border-radius: 30px; font-size: 15px; }
.pill-note {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: #f2f4f7;
    border-radius: 22px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
}

/* ---------- cart / table pages ---------- */
.tbl { width: 100%; border-collapse: collapse; background: #fff; }
.tbl th {
    text-align: left;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sf-ink-soft);
    padding: 14px 12px;
    border-bottom: 1px solid var(--sf-line);
}
.tbl td { padding: 16px 12px; border-bottom: 1px solid var(--sf-line); font-size: 14px; vertical-align: middle; }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
.panel { border: 1px solid var(--sf-line); border-radius: var(--sf-radius); padding: 22px; background: #fff; }
.panel h3 { font-size: 17px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.sum-row--total { border-top: 1px solid var(--sf-line); margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 17px; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 12px; }
.form-sf { display: grid; gap: 14px; }
.form-sf fieldset { border: 1px solid var(--sf-line); border-radius: var(--sf-radius); padding: 20px; }
.form-sf legend { font-weight: 700; font-size: 15px; padding: 0 8px; }
.fld label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.fld input, .fld textarea {
    width: 100%;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
}
.fld input:focus, .fld textarea:focus, .filterbar select:focus { outline: 2px solid var(--sf-brand); outline-offset: 1px; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--sf-ink-soft); }
.empty-state .glyph { font-size: 54px; display: block; margin-bottom: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
    .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
    .head-call b { display: none; }
}
@media (max-width: 900px) {
    .head-nav { display: none; }
    .head-menu-btn { display: grid; }
    .head-login { display: none; }
    .sf .head-call { display: none; }
    .site-head .head-grid { height: 66px; justify-content: space-between; }
    .logo-word { font-size: 22px; margin-right: auto; }
    .logo-img { height: 34px; }
    .logo-img--drawer { height: 30px; }
    .head-nav-desk { display: none; }
    .detail { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: repeat(2, 1fr); }
    .tabbar { display: block; }
    body, .sf { padding-bottom: 66px; }
    .slide { min-height: 380px; }
}
@media (max-width: 640px) {
    .p-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .store-grid { grid-template-columns: 1fr; }
    .svc-grid { grid-template-columns: 1fr; }
    .sf-sec { padding: 38px 0; }
    .sec-head--row { flex-direction: column; align-items: flex-start; }
    .foot-grid { grid-template-columns: 1fr; }
    .marq-track { font-size: 17px; }
}

/* ---------- image-backed hero slides ---------- */
.slide.has-media { background: #1a1a1a; }
.slide-bg { position: absolute; inset: 0; z-index: 0; }
.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.slide-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(95deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .12) 100%);
}
.slide.has-media .sf-wrap { position: relative; z-index: 2; }

/* ---------- admin: slides manager ---------- */
.admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.slide-admin-list { display: grid; gap: 16px; }
.slide-admin {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    background: #fff;
    padding: 16px;
    align-items: start;
}
.slide-admin.is-off { opacity: .55; }
.slide-admin-thumb {
    aspect-ratio: 16/9;
    border-radius: var(--sf-radius);
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #222;
}
.slide-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slide-admin-thumb.theme-a { background: linear-gradient(115deg, #0b1f3f, #0071BC); }
.slide-admin-thumb.theme-b { background: linear-gradient(115deg, #141414, #4a4a4a); }
.slide-admin-thumb.theme-c { background: linear-gradient(115deg, #3a0d0d, #d00000); }
.slide-admin-glyph { font-size: 40px; opacity: .5; }
.slide-admin-body h3 { font-size: 19px; margin: 6px 0 2px; }
.slide-admin-body > p { font-size: 14px; color: var(--sf-ink-soft); margin-bottom: 10px; }
.slide-admin-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.slide-admin-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--sf-ink-soft);
    margin-bottom: 12px;
}
.slide-admin-link {
    font-family: ui-monospace, Consolas, monospace;
    background: #f4f5f7;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}
.slide-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.slide-admin-actions form { display: flex; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld small { font-size: 12px; color: var(--sf-ink-soft); margin-top: 6px; display: block; }
.fld select {
    width: 100%;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
}
.chk { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.upload-box {
    border: 2px dashed var(--sf-line);
    border-radius: var(--sf-radius);
    padding: 18px;
    display: grid;
    gap: 12px;
}
.upload-box input[type=file] { font-family: inherit; font-size: 14px; }
.upload-help { font-size: 12px; color: var(--sf-ink-soft); }
.upload-current img {
    max-height: 150px;
    border-radius: var(--sf-radius);
    display: block;
    margin-bottom: 8px;
    border: 1px solid var(--sf-line);
}
.upload-preview img {
    max-height: 150px;
    border-radius: var(--sf-radius);
    display: block;
    border: 1px solid var(--sf-line);
}
@media (max-width: 700px) {
    .slide-admin { grid-template-columns: 1fr; }
    .slide-admin-thumb { max-width: 260px; }
    .two-col { grid-template-columns: 1fr; }
}

/* ---------- admin area bar (only rendered on admin pages) ---------- */
.adm-bar { background: #fff; border-bottom: 1px solid var(--sf-line); }
.adm-inner { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
.adm-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--sf-brand);
    white-space: nowrap;
}
.adm-links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
.adm-i {
    background: #fff;
    border: 1px solid transparent;
    color: var(--sf-ink-soft);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
}
.adm-i:hover { background: #f2f4f7; color: var(--sf-ink); }
.adm-i.is-active { background: #fff; border-color: var(--sf-line); color: var(--sf-brand); }
.adm-who {
    margin-left: 10px;
    font-size: 12px;
    color: var(--sf-ink-soft);
    white-space: nowrap;
}
.adm-out {
    color: var(--sf-ink-soft);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--sf-line);
    padding: 6px 12px;
    border-radius: 20px;
}
.adm-out--end { margin-left: 0; }
.adm-out:hover { color: var(--sf-ink); border-color: var(--sf-ink); }
.adm-bell {
    margin-left: auto;
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--sf-ink-soft);
    text-decoration: none;
}
.adm-bell:hover { background: #f2f4f7; color: var(--sf-ink); }
.adm-bell svg { width: 20px; height: 20px; }
.adm-bell.is-active { color: var(--sf-brand); }
.adm-bell-count {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #d00000;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

/* ---------- staff notification list ---------- */
.ntf-list { margin-top: 22px; }
.ntf-row { align-items: flex-start; }
.ntf-kind { flex: none; width: 96px; padding-top: 2px; }
.ntf-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--sf-brand);
    background: var(--sf-tint);
    border-radius: 20px;
    padding: 4px 10px;
}
.ntf-time { font-size: 12px; color: var(--sf-ink-soft); white-space: nowrap; }
.ntf-link { font-size: 13px; font-weight: 700; color: var(--sf-brand); text-decoration: none; }
.ntf-link:hover { text-decoration: underline; }
.ntf-row.is-read { opacity: .62; }
.ntf-row.is-read .ntf-tag { color: var(--sf-ink-soft); background: #f2f4f7; }

/* ---------- checkout payment choice ---------- */
.pay-opts { display: grid; gap: 10px; margin-bottom: 18px; }
.pay-opt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--sf-line);
    border-radius: 10px;
    padding: 13px 15px;
    cursor: pointer;
    background: #fff;
}
.pay-opt:hover { border-color: var(--sf-brand); }
.pay-opt input { margin-top: 3px; accent-color: var(--sf-brand); flex: none; }
.pay-opt b { display: block; font-size: 14px; color: var(--sf-ink); }
.pay-opt small { display: block; font-size: 12px; color: var(--sf-ink-soft); margin-top: 3px; line-height: 1.45; }
.pay-note { font-size: 12px; color: var(--sf-ink-soft); margin: 7px 0 0; }
.pay-status {
    border: 1px solid var(--sf-line);
    border-left: 4px solid var(--sf-brand);
    border-radius: 8px;
    background: #fff;
    padding: 16px 18px;
    margin: 0 0 22px;
}
.pay-status b { display: block; font-size: 15px; margin-bottom: 4px; }
.pay-status span { font-size: 13px; color: var(--sf-ink-soft); }
.pay-status.is-paid { border-left-color: #1f8b4c; }
.pay-status.is-failed { border-left-color: #d00000; }

/* ---------- manual mobile money (pay to our number) ---------- */
.pay-nums {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--sf-ink);
    letter-spacing: .01em;
}
.pay-nums b { display: inline; font-size: 12.5px; color: var(--sf-ink-soft); font-weight: 600; }

.pay-manual {
    border: 1px solid var(--sf-line);
    border-left: 4px solid var(--sf-brand);
    border-radius: 10px;
    background: #fff;
    padding: 20px 22px;
    margin: 0 0 22px;
    text-align: left;
}
.pay-manual h2 { font-size: 18px; margin: 0 0 12px; }
.mp-steps { margin: 0 0 16px; padding-left: 22px; font-size: 14px; line-height: 1.7; }
.mp-steps li { margin-bottom: 4px; }
.mp-ref {
    display: inline-block;
    font-family: ui-monospace, "Consolas", monospace;
    font-size: 15px;
    font-weight: 700;
    background: #f2f4f7;
    border: 1px dashed #9aa3af;
    border-radius: 6px;
    padding: 3px 10px;
    letter-spacing: .06em;
}
.mp-accounts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 14px; }
.mp-acct {
    border: 1px solid var(--sf-line);
    border-radius: 10px;
    padding: 12px 14px;
    background: #fbfcfd;
}
.mp-net { display: block; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--sf-brand); }
.mp-num {
    display: block;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .02em;
    margin: 3px 0;
    user-select: all;
}
.mp-name, .mp-note { display: block; font-size: 12px; color: var(--sf-ink-soft); }
.mp-name { font-weight: 700; color: var(--sf-ink); }
.mp-note { margin-top: 3px; }
.mp-claimed { border-top: 1px solid var(--sf-line); padding-top: 12px; margin-top: 4px; }
.mp-claimed p { font-size: 13px; margin: 0 0 8px; }
.mp-claimed b { display: block; font-size: 13px; }
.mp-claimed span { display: block; color: var(--sf-ink-soft); font-weight: 400; }
.mp-form { margin-top: 6px; border-top: 1px solid var(--sf-line); padding-top: 14px; }
.mp-form summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: var(--sf-brand);
}
.mp-form form { display: grid; gap: 14px; margin-top: 16px; max-width: 520px; }
.mp-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.mp-form input, .mp-form select, .mp-form textarea {
    width: 100%;
    font: inherit;
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid var(--sf-line);
    border-radius: 8px;
    background: #fff;
}
.mp-form input:focus, .mp-form select:focus, .mp-form textarea:focus { outline: 2px solid var(--sf-brand); outline-offset: 1px; }

/* admin bar count for payments waiting on the statement */
.adm-i-count {
    display: inline-block;
    margin-left: 6px;
    min-width: 18px;
    padding: 1px 5px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

/* ---------- social link rows + logo picker ---------- */
.soc-admin { grid-template-columns: 96px 1fr; }
.soc-thumb {
    height: 76px;
    border-radius: var(--sf-radius);
    background: #f2f4f7;
    display: grid;
    place-items: center;
    color: var(--sf-ink);
}
.soc-thumb svg, .soc-thumb img { width: 34px; height: 34px; }
.soc-preview {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 1px solid var(--sf-line);
    background: #0e1621;
    color: #fff;
    display: grid;
    place-items: center;
}
.soc-preview svg, .soc-preview img { width: 36px; height: 36px; }
.soc-bad { color: var(--sf-accent); font-weight: 600; }

@media (max-width: 768px) {
    .adm-inner { gap: 10px; }
    .adm-tag, .adm-who, .adm-out--end { display: none; }
    .soc-admin { grid-template-columns: 1fr; }
    .soc-thumb { height: 60px; }
}

/* ---------- sign in / create account ---------- */
.au-shell { padding: 54px 0 78px; background: linear-gradient(180deg, #f7f8fa, #fff 62%); }
.au-inner { display: grid; justify-items: center; }
.au-card {
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    padding: 26px 26px 30px;
    box-shadow: 0 14px 36px rgba(17, 17, 17, .07);
    width: 100%;
    max-width: 430px;
}
.au-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: #f2f4f7;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 22px;
}
.au-tab {
    text-align: center;
    padding: 11px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--sf-ink-soft);
    text-decoration: none;
}
.au-tab.is-active { background: #fff; color: var(--sf-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.au-error {
    font-size: 14px;
    font-weight: 600;
    color: #a31111;
    background: var(--sf-tint);
    border: 1px solid #f6c9c9;
    border-radius: 8px;
    padding: 12px 14px;
    margin: -6px 0 18px;
}
.au-pane[hidden] { display: none; }
.au-pane .fld { margin-bottom: 16px; }
.au-submit { width: 100%; margin-top: 6px; }
.au-foot { font-size: 13px; color: var(--sf-ink-soft); margin: 16px 0 0; text-align: center; }
.au-foot a { color: var(--sf-brand); font-weight: 700; text-decoration: none; }

@media (max-width: 900px) {
    .au-shell { padding: 34px 0 54px; }
}


/* ---------- WhatsApp button styling (matches Call Us) ---------- */
.head-whatsapp {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 14px;
    color: var(--hd-ink-soft) !important;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    transition: color .22s ease !important;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.head-whatsapp:hover {
    color: var(--hd-ink) !important;
}

.head-whatsapp svg, .head-whatsapp img {
    width: 20px;
    height: 20px;
    color: #0071BC;
    transition: color .22s ease;
}

.head-whatsapp:hover svg, .head-whatsapp:hover img {
    color: #005a96;
}

/* The mark is green, so flip it to white when it sits on a green button. */
.btn-whatsapp img, .payment-contact .btn-whatsapp img {
    filter: brightness(0) invert(1);
}

.head-whatsapp span {
    display: block;
}

/* A phone number must never break onto a second line in the header. */
.head-whatsapp, .head-call { white-space: nowrap; }
.head-whatsapp b, .head-call b { white-space: nowrap; }

.head-whatsapp b {
    font-weight: 600;
    font-size: 13px;
}

/* ---------- fit every screen size ----------
   The header tools used to be flex:none, so on a narrow phone they pushed the
   page wider than the viewport. Icons also had fixed pixel sizes, which looked
   oversized on small screens. Everything below scales down together. */

img, svg, video {
    max-width: 100%;
}

.whatsapp-logo {
    width: clamp(14px, 3.2vw, 20px);
    height: auto;
    aspect-ratio: 1 / 1;
    flex: none;
}

@media (max-width: 900px) {
    .head-grid { gap: 10px; }
    .head-tools { flex: 0 1 auto; min-width: 0; gap: 0; }
    .head-whatsapp { padding: 8px 10px; gap: 1px; }
    .tool { width: 40px; height: 40px; }
    .head-menu-btn { width: 40px; height: 40px; margin-left: -6px; }
}

@media (max-width: 640px) {
    .head-grid { gap: 6px; height: 60px; }
    .logo-img { height: 28px; }
    .head-whatsapp span { display: none; }
    .head-whatsapp { padding: 8px; }
    .whatsapp-logo { width: 20px; }
    .head-whatsapp b { font-size: 11px; }
    .p-grid { gap: 10px; }
    .p-info, .p-name { overflow-wrap: anywhere; }
    .action-buttons, .payment-contact, .contact-options {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .p-card-inner { padding: 8px; border-radius: 10px; }
    .p-media { font-size: 44px; }
    .p-info { padding: 8px 0 0; }
    .p-now { font-size: 14px; }
    .p-badge { font-size: 10px; padding: 3px 7px; }
    .logo-img { height: 24px; }
    .head-tools .tool { width: 36px; height: 36px; }
}

/* ---------- desktop product grid ----------
   Phones and tablets keep the 2-cards-per-row layout from the rules above.
   On PC screens the wider original grid is restored. */
@media (min-width: 901px) {
    .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .p-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
