/* ==========================================================================
   INVA GADGET (IBD) design layer — loaded last (after store.css, bebo.css, bebo-shop.css).
   1. Re-maps the shared colour tokens to the IBD palette (sampled from the supplied logo):
        navy   #0b1f66  (logo #011866)  primary: buttons, links, headings accents
        deep   #0a1433                 footer, top bar, dark surfaces
        orange #f25a00  (logo #fe5900)  accent: deals, badges, Buy Now, highlights
        light  #f5f7fb / #eef2fa        secondary backgrounds
        ink    #161b2e                 primary text
   2. Component refinements: header, category navigation, hero, category grid, product cards, sections, footer.
   ========================================================================== */
:root {
    --ibd-navy: #0b1f66;
    --ibd-navy-2: #14307f;
    --ibd-deep: #0a1433;
    --ibd-orange: #f25a00;
    --ibd-orange-2: #d94f00;   /* button fill: white text stays readable */
    --ibd-orange-soft: #fff1e8;
    --ibd-light: #f5f7fb;
    --ibd-light-2: #eef2fa;
    --ibd-ink: #161b2e;
    --ibd-muted: #5d6578;
    --ibd-line: #e3e7ef;

    /* shared tokens used by store.css / bebo*.css */
    --bebo: var(--ibd-orange);
    --bebo-btn: var(--ibd-navy);
    --bebo-dark: #081650;
    --bebo-deep: var(--ibd-deep);
    --bebo-pastel: var(--ibd-light-2);
    --bebo-blush: var(--ibd-light);
    --charcoal: var(--ibd-ink);
    --ink: var(--ibd-ink);
    --gold: var(--ibd-orange);
    --gold-light: #ffb58a;
    --gold-pale: var(--ibd-light-2);
    --gold-deep: var(--ibd-navy);
    --ivory: var(--ibd-light);
    --sand: var(--ibd-light-2);
    --line: var(--ibd-line);
    --crimson: var(--ibd-orange-2);
    --grad-gold: linear-gradient(135deg, var(--ibd-navy-2), var(--ibd-navy));
    --brand-ink: var(--ibd-navy);
    --brand-ink-hover: #081650;
    --brand-light: #8fa2e0;
    --accent-ink: var(--ibd-orange-2);
    --accent-ink-hover: #b84300;
    --tech-ink: var(--ibd-orange-2);
    --text: #2b3142;
    --muted: var(--ibd-muted);
    --border: var(--ibd-line);
    --border-strong: #cfd6e4;
    --section: var(--ibd-light);
    --surface-2: var(--ibd-light);
    --shadow: 0 18px 40px -26px rgba(11, 31, 102, .35);
    --shadow-lg: 0 30px 60px -30px rgba(11, 31, 102, .45);
    --shadow-brand: 0 16px 30px -18px rgba(11, 31, 102, .65);
    --header-shadow: 0 6px 24px -18px rgba(10, 20, 51, .55);
    --radius: 12px;
    --bs-primary: var(--ibd-navy);
    --bs-link-color: var(--ibd-navy);
    --bs-link-hover-color: var(--ibd-orange-2);
    /* Page width: content up to 1600px with a small, balanced side margin (16px phones, 24-32px desktops). */
    --bs-max: 1600px;
    --ibd-gutter: 16px;
}
@media (min-width: 992px) { :root { --ibd-gutter: clamp(24px, 2vw, 32px); } }
::selection { background: rgba(242, 90, 0, .18); }
:focus-visible { outline-color: var(--ibd-orange); }
body.theme-ibd { color: var(--text); }
.theme-ibd h1, .theme-ibd h2, .theme-ibd h3, .theme-ibd h4, .theme-ibd h5, .theme-ibd h6 { color: var(--ibd-ink); letter-spacing: -.015em; }
.theme-ibd .text-brand { color: var(--ibd-orange-2) !important; }
.theme-ibd .btn-primary, .theme-ibd .btn-brand, .theme-ibd .btn-cta { background-image: none; background-color: var(--ibd-navy); text-shadow: none; box-shadow: 0 10px 20px -14px rgba(11, 31, 102, .9); }
.theme-ibd .btn-primary:hover, .theme-ibd .btn-brand:hover, .theme-ibd .btn-cta:hover { background-color: #081650; }
.theme-ibd .btn-accent, .theme-ibd .btn-warning { --bs-btn-bg: var(--ibd-orange-2); --bs-btn-border-color: var(--ibd-orange-2); --bs-btn-color: #fff; --bs-btn-hover-bg: #b84300; --bs-btn-hover-border-color: #b84300; --bs-btn-hover-color: #fff; }

/* ---------- Top bar ---------- */
.theme-ibd .bs-topbar { background: var(--ibd-deep); color: rgba(255, 255, 255, .88); }
.theme-ibd .bs-topbar-center i { color: var(--ibd-orange); }
.theme-ibd .bs-topbar-center a { font-weight: 600; }

/* ---------- Header + logo ---------- */
.theme-ibd .bs-header { border-bottom: 1px solid var(--ibd-line); }
.theme-ibd .bs-header-main { min-height: 78px; }
.brand-logo--mark { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; min-width: 0; }
.theme-ibd .bs-logo .brand-logo--mark img, .brand-logo--mark img { height: 52px; width: 52px; flex: 0 0 auto; object-fit: contain; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-word b { font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; letter-spacing: .02em; color: var(--ibd-navy); white-space: nowrap; }
.brand-word small { font-size: .7rem; color: var(--ibd-muted); font-weight: 600; margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.site-footer .brand-word b { color: #fff; }
.site-footer .brand-word small { color: rgba(255, 255, 255, .7); }
.site-footer .brand-logo--mark img { height: 60px; width: 60px; background: #fff; border-radius: 50%; }
.theme-ibd .bs-search { background: var(--ibd-light); border: 1.5px solid var(--ibd-line); border-radius: 12px; height: 48px; }
.theme-ibd .bs-search:focus-within { border-color: var(--ibd-navy); box-shadow: 0 0 0 .2rem rgba(11, 31, 102, .1); }
.theme-ibd .bs-search-cat { border-radius: 12px 0 0 12px; }
.theme-ibd .bs-search-btn { border-radius: 9px; width: 46px; height: 40px; background: var(--ibd-orange-2); }
.theme-ibd .bs-search-btn:hover { background: #b84300; }
.theme-ibd .bs-action { color: var(--ibd-ink); }
.theme-ibd .bs-action:hover { color: var(--ibd-navy); background: var(--ibd-light); }
.theme-ibd .bs-action .count { background: var(--ibd-orange-2); }
.theme-ibd .bs-icon-btn:hover { background: var(--ibd-light); color: var(--ibd-navy); }

/* ---------- Category navigation row ---------- */
.theme-ibd .bs-nav { background: var(--ibd-navy); border-top: 0; }
.theme-ibd .bs-nav-row { min-height: 50px; padding: 0; gap: .75rem; }
.theme-ibd .bs-allcats-btn { background: var(--ibd-orange-2); border-radius: 0; height: 50px; padding: 0 1.15rem; }
.theme-ibd .bs-allcats-btn:hover { background: #b84300; }
.ibd-catnav { list-style: none; display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.ibd-catnav li { flex: 0 0 auto; }
.ibd-catnav a { display: inline-flex; align-items: center; gap: .35rem; height: 50px; padding: 0 .62rem; color: rgba(255, 255, 255, .9); font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.ibd-catnav a:hover, .ibd-catnav a.is-active { color: #fff; border-bottom-color: var(--ibd-orange); background: rgba(255, 255, 255, .06); }
/* "More": categories that don't fit on the desktop bar (bebo.js [data-priority-nav]). */
.ibd-catmore { position: relative; flex: 0 0 auto; }
.ibd-catmore-btn { display: inline-flex; align-items: center; gap: .35rem; height: 50px; padding: 0 .7rem; border: 0; background: transparent; color: #fff; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.ibd-catmore-btn i { font-size: .7rem; transition: transform .2s; }
.ibd-catmore.is-open .ibd-catmore-btn, .ibd-catmore-btn:hover { background: rgba(255, 255, 255, .1); }
.ibd-catmore.is-open .ibd-catmore-btn i { transform: rotate(180deg); }
.ibd-catmore-menu { display: none; position: absolute; z-index: 1060; top: 100%; right: 0; min-width: 240px; margin: 0; padding: .4rem; list-style: none; background: #fff; border: 1px solid var(--ibd-line); border-radius: 0 0 12px 12px; box-shadow: 0 24px 48px -24px rgba(10, 20, 51, .45); }
.ibd-catmore.is-open .ibd-catmore-menu { display: block; }
.ibd-catmore-menu a { display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--ibd-ink); font-size: .88rem; font-weight: 600; text-decoration: none; }
.ibd-catmore-menu a:hover, .ibd-catmore-menu a:focus-visible { background: var(--ibd-light); color: var(--ibd-navy); }
.ibd-nav-extra { flex: 0 0 auto; gap: .25rem; align-items: center; }
.ibd-nav-extra a { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border-radius: 8px; color: #fff; font-size: .85rem; font-weight: 700; text-decoration: none; }
.ibd-nav-extra a:hover { background: rgba(255, 255, 255, .1); }
.ibd-deal-link i, .ibd-catnav-deal i { color: #ffb070; }
@media (max-width: 991.98px) {
    .theme-ibd .bs-header-main { min-height: 64px; }
    .theme-ibd .bs-logo { justify-content: flex-start; }
    .theme-ibd .bs-logo .brand-logo--mark img { height: 40px; width: 40px; }
    .brand-word b { font-size: 1.02rem; }
    .brand-word small { display: none; }
    .theme-ibd .bs-nav { background: #fff; border-top: 1px solid var(--ibd-line); }
    .theme-ibd .bs-nav-row { padding: .45rem 0; }
    /* Swipeable chip row on touch screens */
    .ibd-catnav { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: .45rem; padding: 0 .1rem; scroll-snap-type: x proximity; }
    .ibd-catnav::-webkit-scrollbar { display: none; }
    .ibd-catnav li { scroll-snap-align: start; }
    .ibd-catnav a { height: 36px; padding: 0 .9rem; border: 1px solid var(--ibd-line); border-radius: 999px; background: var(--ibd-light); color: var(--ibd-ink); font-size: .8rem; }
    .ibd-catnav a:hover, .ibd-catnav a.is-active { background: var(--ibd-navy); color: #fff; border-color: var(--ibd-navy); }
    .ibd-catnav-deal { color: var(--ibd-orange-2) !important; }
}
@media (max-width: 379.98px) {
    .brand-word b { font-size: .92rem; letter-spacing: 0; }
    .theme-ibd .bs-action { min-width: 38px; padding: .3rem .2rem; }
}

/* ---------- Hero slider: full screen width, edge to edge (Admin > Marketing > Banners) ---------- */
.theme-ibd .ibd-hero-wrap { padding: 0; background: #fff; }
.theme-ibd .ibd-hero-wrap + section:not(.features-bar) { margin-top: 0; }
.theme-ibd .ibd-hero { aspect-ratio: auto; height: clamp(360px, 34vw, 640px); min-height: 0; border-radius: 0; background: #fff; }
/* Sliding transition: the active slide sits at 0, the next one enters from the side (bebo.js sets the start side). */
.theme-ibd .ibd-hero .bs-hero-slide { opacity: 1; visibility: hidden; transform: translateX(100%); transition: transform .85s cubic-bezier(.65, .05, .36, 1), visibility 0s linear .85s; background: var(--slide-bg, #fff); will-change: transform; }
.theme-ibd .ibd-hero .bs-hero-slide.is-active { visibility: visible; transform: none; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .theme-ibd .ibd-hero .bs-hero-slide { transition: none; } }
.theme-ibd .ibd-slide::after { display: none; }
.theme-ibd .ibd-slide-media { position: absolute; inset: 0; }
.theme-ibd .ibd-slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ibd-slide-inner { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; max-width: var(--bs-max); margin: 0 auto; padding: 0 var(--ibd-gutter); pointer-events: none; }
.ibd-slide-inner a { pointer-events: auto; }
.theme-ibd .ibd-slide .bs-hero-content { position: relative; left: auto; top: auto; transform: none; max-width: min(540px, 40%); color: var(--slide-ink, var(--ibd-ink)); }
.theme-ibd .bs-hero-chip { background: var(--ibd-orange-2); color: #fff; backdrop-filter: none; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.theme-ibd .bs-hero-title { color: inherit; font-size: clamp(1.6rem, .9rem + 2.4vw, 3.3rem); letter-spacing: -.02em; }
.theme-ibd .bs-hero-text { color: inherit; opacity: .8; }
.theme-ibd .bs-hero-btn { background: var(--ibd-orange-2); color: #fff !important; border-radius: 10px; box-shadow: 0 12px 24px -14px rgba(242, 90, 0, .8); }
.theme-ibd .bs-hero-btn:hover { background: var(--ibd-navy); color: #fff !important; }
/* split (default): text on the slide colour (white by default), photo on the right fading into it. */
.theme-ibd .ibd-slide--split .ibd-slide-media { left: auto; width: 62%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.theme-ibd .ibd-slide--split .bs-hero-title { color: var(--slide-ink, var(--ibd-navy)); }
/* overlay: photo across the whole slide, white text on a navy gradient. */
.theme-ibd .ibd-slide--overlay .ibd-slide-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 20, 51, .8) 0%, rgba(10, 20, 51, .45) 40%, rgba(10, 20, 51, 0) 65%); }
.theme-ibd .ibd-slide--overlay .bs-hero-content { color: var(--slide-ink, #fff); }
/* image: designed artwork (text already in the image), shown whole; the slide is one link. */
.theme-ibd .ibd-slide--image .ibd-slide-media img { object-fit: contain; }
.ibd-slide-link { position: absolute; inset: 0; z-index: 2; }
/* Controls on a light hero */
.theme-ibd .ibd-hero .bs-hero-dots button { background: rgba(11, 31, 102, .22); }
.theme-ibd .ibd-hero .bs-hero-dots button.is-active { background: var(--ibd-orange-2); }
.theme-ibd .ibd-hero .bs-hero-nav { opacity: 1; background: #fff; color: var(--ibd-navy); box-shadow: 0 8px 22px -12px rgba(10, 20, 51, .55); }
.theme-ibd .ibd-hero .bs-hero-nav:hover { background: var(--ibd-navy); color: #fff; }
.theme-ibd .ibd-hero .bs-hero-nav.prev { left: .9rem; }
.theme-ibd .ibd-hero .bs-hero-nav.next { right: .9rem; }
.theme-ibd .ibd-hero .bs-hero-pause { background: #fff; color: var(--ibd-navy); box-shadow: 0 6px 16px -10px rgba(10, 20, 51, .6); right: var(--ibd-gutter); }
@media (min-width: 768px) and (max-width: 1199.98px) {
    .theme-ibd .ibd-slide .bs-hero-content { max-width: 46%; }
    .theme-ibd .ibd-slide--split .ibd-slide-media { width: 60%; }
}
@media (min-width: 768px) { .ibd-slide-inner { padding-left: max(var(--ibd-gutter), 4.25rem); } }
@media (min-width: 1728px) { .ibd-slide-inner { padding-left: var(--ibd-gutter); } }
@media (max-width: 767.98px) {
    .theme-ibd .ibd-hero { height: min(132vw, 600px); }
    /* split on phones: photo on top, text below on the slide colour */
    .theme-ibd .ibd-slide--split .ibd-slide-media { left: 0; width: 100%; height: 58%; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
    .ibd-slide-inner { align-items: flex-end; padding-bottom: 2.9rem; }
    .theme-ibd .ibd-slide .bs-hero-content { max-width: 100%; }
    .theme-ibd .ibd-slide--overlay .ibd-slide-media::after { background: linear-gradient(0deg, rgba(10, 20, 51, .9) 0%, rgba(10, 20, 51, .5) 42%, rgba(10, 20, 51, 0) 68%); }
    .theme-ibd .bs-hero-title { font-size: clamp(1.4rem, 1rem + 2.6vw, 1.9rem); margin-bottom: .45rem; }
    .theme-ibd .bs-hero-text { font-size: .88rem; margin-bottom: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .theme-ibd .bs-hero-chip { margin-bottom: .6rem; }
    .theme-ibd .bs-hero-btn { padding: .65rem 1.2rem; }
    .theme-ibd .ibd-hero .bs-hero-dots { bottom: 1rem; }
}

/* ---------- Section heads ---------- */
.theme-ibd .section-head h2::before { background: var(--ibd-orange); width: 5px; }
.theme-ibd .section-head .view-all { border-radius: 8px; color: var(--ibd-navy); border-color: rgba(11, 31, 102, .2); background: #fff; }
.theme-ibd .section-head .view-all:hover { background: var(--ibd-navy); color: #fff; }
.theme-ibd .section.bg-surface, .theme-ibd .bg-surface { background: var(--ibd-light) !important; }

/* ---------- Features bar ---------- */
.theme-ibd .features-bar .feature { border-radius: 12px; border-color: var(--ibd-line); }
.theme-ibd .features-bar .feature i { color: var(--ibd-orange-2); background: var(--ibd-orange-soft); }

/* ---------- Shop by Category carousel ----------
   One row that auto-scrolls right to left (store.js), with arrows, mouse drag and touch swipe.
   --per = cards visible at once; card width is derived from the track width so cards never wrap. */
.ibd-catcar { --per: 2.3; --gap: .75rem; position: relative; }
@media (min-width: 576px) { .ibd-catcar { --per: 3.2; } }
@media (min-width: 768px) { .ibd-catcar { --per: 3.8; } }
@media (min-width: 992px) { .ibd-catcar { --per: 5; --gap: 1rem; } }
@media (min-width: 1200px) { .ibd-catcar { --per: 6; } }
.ibd-catcar-track { list-style: none; margin: -8px 0 -16px; padding: 8px 0 16px; display: flex; flex-wrap: nowrap; gap: var(--gap); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.ibd-catcar-track::-webkit-scrollbar { display: none; }
.ibd-catcar-track:focus-visible { box-shadow: 0 0 0 3px rgba(11, 31, 102, .25); border-radius: 14px; }
.ibd-catcar-item { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; }
.ibd-catcar.is-loop .ibd-catcar-track { cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.ibd-catcar.is-dragging .ibd-catcar-track { cursor: grabbing; user-select: none; }
.ibd-catcar.is-dragging .ibd-cat { pointer-events: none; }
.ibd-catcar .ibd-cat img { -webkit-user-drag: none; user-select: none; }
.ibd-catcar-btn { position: absolute; z-index: 3; top: calc(50% - 4px); transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--ibd-line); border-radius: 50%; background: #fff; color: var(--ibd-navy); font-size: 1rem; box-shadow: 0 10px 24px -14px rgba(10, 20, 51, .55); transition: background .2s, color .2s, border-color .2s; }
.ibd-catcar-btn:hover, .ibd-catcar-btn:focus-visible { background: var(--ibd-orange-2); border-color: var(--ibd-orange-2); color: #fff; }
.ibd-catcar-btn:focus-visible { outline: 3px solid rgba(242, 90, 0, .35); outline-offset: 2px; }
.ibd-catcar-btn[hidden] { display: none; }
.ibd-catcar-prev { left: -8px; }
.ibd-catcar-next { right: -8px; }
@media (max-width: 575.98px) { .ibd-catcar-btn { width: 34px; height: 34px; font-size: .85rem; } .ibd-catcar-prev { left: -4px; } .ibd-catcar-next { right: -4px; } }
.ibd-cat { display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; padding: .75rem .5rem .85rem; border: 1px solid var(--ibd-line); border-radius: 14px; background: #fff; text-align: center; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ibd-cat:hover, .ibd-cat:focus-visible { border-color: var(--ibd-navy); box-shadow: 0 16px 30px -22px rgba(11, 31, 102, .6); transform: translateY(-2px); }
.ibd-cat-img { width: 100%; max-width: 160px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--ibd-light); }
.ibd-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.ibd-cat-img i { font-size: 2rem; color: var(--ibd-navy); }
.ibd-cat-name { font-weight: 700; font-size: .84rem; color: var(--ibd-ink); line-height: 1.25; }
.ibd-cat-count { font-size: .72rem; color: var(--ibd-muted); }
@media (max-width: 575.98px) { .ibd-cat { padding: .55rem .35rem .65rem; border-radius: 12px; } .ibd-cat-name { font-size: .78rem; } .ibd-cat-count { font-size: .7rem; } }

/* ---------- Product cards ---------- */
.theme-ibd .product-card { border: 1px solid var(--ibd-line); border-radius: 14px; background: #fff; container-type: inline-size; container-name: pcard; }
.theme-ibd .product-card:hover { border-color: #c9d2e6; box-shadow: 0 22px 40px -28px rgba(11, 31, 102, .55); transform: translateY(-2px); }
.theme-ibd .product-card .media { background: var(--ibd-light); border-radius: 13px 13px 0 0; }
.theme-ibd .product-card .media img { object-fit: contain; }
.theme-ibd .product-card .badges { gap: .3rem; }
.theme-ibd .p-badge.sale { background: var(--ibd-orange-2); }
.theme-ibd .p-badge.new { background: var(--ibd-navy); }
.theme-ibd .product-card .meta { color: var(--ibd-orange-2); letter-spacing: .06em; }
.theme-ibd .product-card .title { font-size: .9rem; font-weight: 600; }
.theme-ibd .product-card .title a { color: var(--ibd-ink); }
.theme-ibd .product-card .title a:hover { color: var(--ibd-navy); }
.theme-ibd .product-card .price { color: var(--ibd-navy); font-size: 1.08rem; }
.theme-ibd .product-card .price-old { color: #8a91a3; font-size: .82rem; }
.ibd-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: .3rem; font-size: .72rem; font-weight: 600; min-width: 0; }
.ibd-stock { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.ibd-stock.is-in { color: #13804b; }
.ibd-stock.is-out { color: #b42318; }
.ibd-sold { color: var(--ibd-muted); white-space: nowrap; }
.theme-ibd .bs-card-btn { border-radius: 9px; border-width: 1.5px; }
.theme-ibd .bs-add-btn { background: #fff; color: var(--ibd-navy); border-color: var(--ibd-navy); }
.theme-ibd .bs-add-btn:hover:not(:disabled) { background: var(--ibd-navy); color: #fff; border-color: var(--ibd-navy); }
.theme-ibd .bs-buy-btn { background: var(--ibd-orange-2); border-color: var(--ibd-orange-2); color: #fff; }
.theme-ibd .bs-buy-btn:hover:not(:disabled) { background: #b84300; border-color: #b84300; box-shadow: 0 8px 16px -10px rgba(184, 67, 0, .8); }
.theme-ibd .product-card .actions button { border-radius: 10px; }
.theme-ibd .product-card .actions .wishlist-btn.active i { color: var(--ibd-orange-2); }
.theme-ibd .bs-slider-btn:hover { background: var(--ibd-navy); border-color: var(--ibd-navy); }

/* ---------- Flash sale / countdown ---------- */
.theme-ibd .flash-sale { background: linear-gradient(135deg, var(--ibd-orange-soft) 0%, #fff 55%); border-color: #ffd9c2; border-radius: 18px; }
.theme-ibd .flash-sale .countdown .unit { background: var(--ibd-navy); }
.theme-ibd .flash-sale h2 .text-danger { color: var(--ibd-orange-2) !important; }

/* ---------- Promo cards, wide promo, newsletter, brands ---------- */
.theme-ibd .promo-card { border-radius: 16px; }
.theme-ibd .promo-card::before { background: linear-gradient(90deg, rgba(10, 20, 51, .85) 0%, rgba(10, 20, 51, .35) 55%, rgba(10, 20, 51, 0) 100%); }
.theme-ibd .wide-promo { border-radius: 18px; }
.theme-ibd .bs-newsletter { background: linear-gradient(120deg, var(--ibd-light-2), #fff 70%); border-radius: 16px; }
.theme-ibd .bs-newsletter-icon { background: var(--ibd-orange-2); border-radius: 12px; }
.theme-ibd .bs-brand-tile { border-radius: 12px; }
.theme-ibd .bs-brand-tile:hover, .theme-ibd .bs-brand-tile:focus-visible { border-color: var(--ibd-navy); box-shadow: 0 12px 22px -16px rgba(11, 31, 102, .6); }
.theme-ibd .bs-brand-tile:hover span { color: var(--ibd-navy); }
.theme-ibd .bs-brand-all { color: var(--ibd-navy); }

/* ---------- Footer ---------- */
.theme-ibd .site-footer { background: var(--ibd-deep); color: rgba(255, 255, 255, .82); border-top: 0; }
.theme-ibd .site-footer::before { height: 4px; background: linear-gradient(90deg, var(--ibd-navy-2), var(--ibd-orange)); }
.theme-ibd .site-footer a { color: rgba(255, 255, 255, .85); }
.theme-ibd .site-footer a:hover { color: #fff; }
.theme-ibd .bs-footer .contact-list i { color: var(--ibd-orange); }
.theme-ibd .bs-footer .social-links a:hover { background: var(--ibd-orange-2); color: #fff !important; border-color: var(--ibd-orange-2); }
.theme-ibd .bs-footer .footer-bottom { background: rgba(0, 0, 0, .22); }

/* ---------- Misc pages ---------- */
.theme-ibd .page-header { background: linear-gradient(120deg, var(--ibd-light-2), #fff); border-bottom: 1px solid var(--ibd-line); }
.theme-ibd .whatsapp-float { box-shadow: 0 10px 24px -10px rgba(10, 20, 51, .6); }
.theme-ibd .back-to-top { background: var(--ibd-navy); }
.theme-ibd .mobile-nav a.active, .theme-ibd .mobile-nav a:hover { color: var(--ibd-orange-2); }
.theme-ibd #miniCart .offcanvas-title { color: var(--ibd-ink); }
.theme-ibd .pagination { --bs-pagination-active-bg: var(--ibd-navy); --bs-pagination-active-border-color: var(--ibd-navy); --bs-pagination-color: var(--ibd-navy); }
.theme-ibd .form-control:focus, .theme-ibd .form-select:focus { border-color: var(--ibd-navy); box-shadow: 0 0 0 .2rem rgba(11, 31, 102, .12); }
.theme-ibd .form-check-input:checked { background-color: var(--ibd-navy); border-color: var(--ibd-navy); }

/* One side margin everywhere (>= 24px on large screens so Bootstrap's g-lg-5 rows never poke past the viewport). */
.theme-ibd .container { padding-left: var(--ibd-gutter); padding-right: var(--ibd-gutter); }
/* Wider page: six product cards per row on large screens. */
@media (min-width: 1500px) { .theme-ibd .bs-slider { --per: 6; } }

/* ---------- OTP widget + COD advance ---------- */
.ibd-otp { margin-top: .5rem; }
.ibd-otp-ok { display: inline-flex; align-items: center; gap: .35rem; color: #13804b; font-weight: 700; font-size: .85rem; }
.ibd-otp-code { margin-top: .5rem; }
.ibd-advance { background: var(--ibd-orange-soft); border: 1px solid #ffd9c2; }

/* ---------- Product Q&A ---------- */
.ibd-qa-item { padding: .85rem 0; border-bottom: 1px solid var(--ibd-line); }
.ibd-qa-item p { margin: 0 0 .35rem; display: flex; gap: .55rem; align-items: flex-start; }
.ibd-qa-q { font-weight: 600; color: var(--ibd-ink); }
.ibd-qa-a { color: var(--text); }
.ibd-qa-tag { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--ibd-navy); color: #fff; }
.ibd-qa-tag.is-a { background: var(--ibd-orange-2); }

/* ---------- Live chat widget ---------- */
.ibd-chat-fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--ibd-navy); color: #fff; font-size: 1.45rem; display: grid; place-items: center; box-shadow: 0 14px 28px -12px rgba(10, 20, 51, .7); }
.ibd-chat-fab:hover { background: var(--ibd-orange-2); }
.ibd-chat-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--ibd-orange-2); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.theme-ibd .back-to-top { bottom: 5.25rem; }
.ibd-chat-panel { position: fixed; right: 1.25rem; bottom: 5.5rem; z-index: 1045; width: min(360px, calc(100vw - 2rem)); height: min(520px, calc(100vh - 8rem)); display: flex; flex-direction: column; background: #fff; border-radius: 16px; border: 1px solid var(--ibd-line); box-shadow: 0 30px 60px -24px rgba(10, 20, 51, .55); overflow: hidden; }
.ibd-chat-panel[hidden] { display: none; }
.ibd-chat-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .8rem 1rem; background: var(--ibd-navy); color: #fff; }
.ibd-chat-head b { display: block; font-size: .95rem; }
.ibd-chat-head small { font-size: .74rem; opacity: .9; }
.ibd-chat-head small .bi { font-size: .55rem; vertical-align: middle; }
.ibd-chat-close { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 32px; height: 32px; border-radius: 50%; }
.ibd-chat-log { flex: 1 1 auto; overflow-y: auto; padding: .9rem; background: var(--ibd-light); display: flex; flex-direction: column; gap: .5rem; }
.ibd-chat-msg { max-width: 82%; padding: .5rem .75rem; border-radius: 12px; font-size: .88rem; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.ibd-chat-msg small { display: block; font-size: .66rem; opacity: .7; margin-top: .15rem; }
.ibd-chat-msg.is-admin { background: #fff; border: 1px solid var(--ibd-line); align-self: flex-start; }
.ibd-chat-msg.is-me { background: var(--ibd-navy); color: #fff; align-self: flex-end; }
.ibd-chat-note { font-size: .75rem; color: var(--ibd-muted); text-align: center; }
.ibd-chat-form { padding: .6rem; border-top: 1px solid var(--ibd-line); background: #fff; }
.ibd-chat-form textarea { resize: none; }
.ibd-chat-details { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-bottom: .4rem; }
.ibd-chat-details[hidden] { display: none; }
@media (max-width: 991.98px) {
    .ibd-chat-fab { bottom: 80px; left: .9rem; right: auto; width: 46px; height: 46px; font-size: 1.2rem; }
    .ibd-chat-panel { left: .75rem; right: .75rem; width: auto; bottom: 134px; height: min(480px, calc(100vh - 200px)); }
    .theme-ibd .back-to-top { bottom: 80px; }
}
@media print { .ibd-chat { display: none !important; } }
