/* ========================================================================
   BONNIEBYTE PC — BASE STYLESHEET
   Clean, unified, fully optimized version
   ======================================================================== */


/* ========================================================================
   1. RESET
   ======================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ========================================================================
   2. ROOT VARIABLES
   ======================================================================== */

:root {
    --bb-bg: #0d0d0d;
    --bb-surface: #111111;
    --bb-panel: #151515;
    --bb-border: #222222;

    --bb-text: #e5e5e5;
    --bb-text-soft: #bfbfbf;
    --bb-text-muted: #999999;

    --bb-blue: #66aaff;

    --bb-shadow: 0 4px 18px rgba(0,0,0,0.4);

    --space-xs: 6px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 40px;
}


/* ========================================================================
   3. GLOBAL
   ======================================================================== */

html, body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bb-bg);
    color: var(--bb-text);
    line-height: 1.6;
    padding-top: 96px; /* offset for fixed header + mobile account bar */
}

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

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* iOS overflow safety — content only */
main .container {
  overflow-x: hidden;
}


.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-rendering: optimizeLegibility;
}

.orbitron {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.4px;
}

.page-header {
    text-align: center;
    margin: 40px 0;
}


/* ========================================================================
   4. TYPOGRAPHY
   ======================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--bb-text);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

h1 {
    color: var(--bb-blue);
    font-size: 2.4rem;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--bb-blue);
    display: inline-block;
}

h2 {
    font-size: 2rem;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--bb-blue);
    display: inline-block;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: var(--space-sm);
    color: var(--bb-text-soft);
}

a {
    color: var(--bb-blue);
    text-decoration: none;
    transition: 0.25s ease;
}

a:hover {
    color: #8ec4ff;
}


/* ========================================================================
   5. BUTTONS
   ======================================================================== */

.button {
    font-family: 'Orbitron', sans-serif;
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    background: var(--bb-blue);
    color: #fff;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
    text-align: center;
}

.button:hover {
    background: #88bbff;
    color: #000;
}

.button-secondary {
    font-family: 'Orbitron', sans-serif;
    background: transparent;
    border: 2px solid var(--bb-blue);
    color: var(--bb-blue);
}

.button-secondary:hover {
    background: var(--bb-blue);
    color: #fff;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: 5px;
}


/* ========================================================================
   6. SECTIONS / PANELS
   ======================================================================== */

section {
    padding: var(--space-lg) 0;
}

.section {
    background: var(--bb-surface);
    border: 1px solid var(--bb-border);
    border-radius: 8px;
    padding: var(--space-lg) var(--space-md);
    margin-bottom: var(--space-lg);
}


/* ========================================================================
   7. SCROLL PROGRESS BAR
   ======================================================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--bb-blue);
    z-index: 3000;
    transition: width 0.2s ease;
}


/* ========================================================================
   8. HEADER BASE
   ======================================================================== */

.site-header,
.enhanced-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(12, 12, 12, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 2px solid var(--bb-blue);
    z-index: 2500;
    overflow: visible;
}

.enhanced-header {
    padding: 14px 0;
}

.enhanced-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bb-blue), transparent);
    opacity: 0.55;
}

.enhanced-header.glow {
    box-shadow: 0 0 20px rgba(102, 170, 255, 0.45);
}

.enhanced-header.shrink {
    padding: 6px 0;
    background: rgba(5, 5, 5, 0.95);
}

/* slide-hide animation */
.enhanced-header.hide {
    transform: translateY(-100%);
}

/* force transform transition on the actual header element */
#bb-header {
    transition: transform 0.35s ease !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    overflow: visible;
}

.header-logo-img {
    height: 200px;
    transition: 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(102, 170, 255, 0.3));
}

.enhanced-header.shrink .header-logo-img {
    height: 180px;
    filter: drop-shadow(0 0 4px rgba(102, 170, 255, 0.2));
}

/* Prevent header hide while cart preview is open */
html.bb-cart-preview-open .enhanced-header.hide {
    transform: translateY(0) !important;
}

/* =========================================
   CART PREVIEW — ESCAPE HEADER CLIPPING
   ========================================= */

/* Header must allow overflow for floating elements */
.site-header,
.header-content,
.header-actions {
  overflow: visible;
}

@media (max-width: 1250px) {
    .header-content {
        padding: 10px 14px;
        gap: 12px;
    }

    /* Slightly smaller logo for calmer header */
    .header-logo-img {
        height: 68px !important;
    }

    .enhanced-header.shrink .header-logo-img {
        height: 62px !important;
    }
}

@media (min-width: 900px) {
    /* Slightly smaller logo for calmer header */
    .header-logo-img {
        height: 96px !important;
    }

    .enhanced-header.shrink .header-logo-img {
        height: 88px !important;
    }
}

/* ========================================================================
   9. HEADER ACTIONS (RIGHT SIDE)
   ======================================================================== */

.header-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: visible;
    z-index: 200000; /* stacking context for toggle */
}

/* Round icon-style header buttons */
.theme-toggle,
.bb-account-toggle,
.bb-cart-toggle,
.bb-lang-toggle {
    background: transparent;
    border: 2px solid var(--bb-blue);
    width: 52px;
    height: 52px;
    border-radius: 999px;
    color: var(--bb-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.theme-toggle:hover,
.bb-account-toggle:hover,
.bb-cart-toggle:hover,
.bb-lang-toggle:hover {
    background-color: var(--bb-blue);
    color: #000;
    transform: translateY(-1px);
}



/* Cart toggle + badge */
.bb-cart-toggle {
    position: relative;
}

.bb-cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 24px;
    height: 24px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--bb-blue);
    color: #000;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pop animation */
.bb-cart-count-badge.pop {
    animation: bb-badge-pop 0.35s ease-out;
}

@keyframes bb-badge-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.bb-account-toggle svg {
    stroke: currentColor;
    fill: none;
}




/* Ensure inner elements don't block hover visuals */
.bb-lang-toggle img,
.bb-lang-toggle span {
    pointer-events: none;
}


/* Visually adapt flag + text on hover */
.bb-lang-toggle:hover img {
    filter: brightness(0) invert(1);
}

.bb-lang-toggle:hover span {
    color: #000;
}

/* Desktop header actions grouping */
@media (min-width: 1251px) {
    .header-actions {
        gap: 14px;
    }

    .bb-cart-toggle {
        margin-left: 10px;
        position: relative;
    }

    .bb-cart-toggle::before {
        content: "";
        position: absolute;
        left: -12px;
        top: 6px;
        bottom: 6px;
        width: 1px;
        background: rgba(102,170,255,0.35);
    }
}

/* ============================================================
   LANGUAGE TOGGLE — FORCE CONSISTENT BUTTON BEHAVIOUR
   ============================================================ */

/* Make language toggle behave exactly like other header buttons */
.bb-lang-toggle {
    background: transparent;
    border: 2px solid var(--bb-blue);
    color: var(--bb-blue);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

/* Hover state — same as cart / theme / account */


/* IMPORTANT: prevent flag from changing colour */
.bb-lang-toggle img {
    filter: none !important;
    opacity: 1 !important;
}

/* Keep flag readable on blue background */
.bb-lang-toggle:hover img {
    filter: none !important;
}

/* Light theme consistency */
html[data-theme="light"] .bb-lang-toggle {
    color: var(--bb-blue);
    border-color: var(--bb-blue);
}

html[data-theme="light"] .bb-lang-toggle:hover {
    background-color: var(--bb-blue);
}

/* ========================================================================
   10. LANGUAGE DROPDOWN
   ======================================================================== */

.bb-lang-dropdown {
    position: relative;
    margin-left: 6px;
    display: flex;
    align-items: center;
}

.bb-lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-lang-menu {
    position: fixed;
    left: 50%;
    top: 72px;
    transform: translateX(-50%);
    display: none;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.98);
    border: 2px solid var(--bb-blue);
    box-shadow: 0 0 18px rgba(102, 170, 255, 0.6);
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: min(420px, 100vw - 24px);
    box-sizing: border-box;
    z-index: 2600;
}

.bb-lang-dropdown.open .bb-lang-menu {
    display: flex;
}

/* ============================================================
   LANGUAGE BUTTON — SINGLE SOURCE OF TRUTH
   ============================================================ */
.lang-btn {
  width: 52px;
  height: 52px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 2px solid var(--bb-blue);
  background: var(--bb-panel);

  color: var(--bb-blue);
  cursor: pointer;

  font-size: 0.65rem;
  line-height: 1;

  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;

   font-family: 'Orbitron', sans-serif;
   font-weight: 700;
}

.lang-btn img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  pointer-events: none;
}

.lang-btn span {
  margin-top: 2px;
  font-size: 0.6rem;
  pointer-events: none;
}

/* Hover */
.lang-btn:hover {
  background: var(--bb-blue);
  color: #000;
}

/* Active */
.bb-lang-option.active {
  background: rgba(102,170,255,0.18);
  box-shadow:
    0 0 10px rgba(102,170,255,0.6),
    inset 0 0 6px rgba(102,170,255,0.4);
}


.bb-lang-menu:hover {
    background: rgba(102, 170, 255, 0.15);
}


.bb-lang-option.active {
    border-color: var(--bb-blue);
    background: rgba(102, 170, 255, 0.15);
    box-shadow:
        0 0 10px rgba(102, 170, 255, 0.6),
        inset 0 0 6px rgba(102, 170, 255, 0.4);
}

@media (max-width: 900px) {
    .bb-lang-dropdown {
        margin-left: 4px;
    }
    .lang-btn {
        width: 40px;
        height: 40px;
    }
    .bb-lang-menu {
        max-width: calc(100vw - 24px);
        padding: 8px;
    }
}

/* Light-theme override for dropdown */
html[data-theme="light"] .bb-lang-menu {
    background: rgba(255,255,255,0.92) !important;
    border-color: var(--bb-blue);
    box-shadow: 0 0 18px rgba(102,170,255,0.35);
}

html[data-theme="light"] .lang-btn {
    background: rgba(255,255,255,0.88) !important;
    color: #222 !important;
}

.bb-lang-extended[aria-hidden="false"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-lang-extended-inner {
  background: var(--bb-panel);
  border: 2px solid var(--bb-blue);
  border-radius: 12px;
  padding: 20px;
  max-width: 420px;
  width: auto;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}



.bb-lang-extended-grid button {
  background: transparent;
  border: 1px solid var(--bb-border);
  color: var(--bb-text);
  cursor: pointer;
}

.bb-lang-extended-grid button:hover {
  background: var(--bb-blue);
  color: #000;
}

.bb-lang-back {
  background: none;
  border: none;
  color: var(--bb-blue);
  cursor: pointer;
  align-self: flex-start;
}

.bb-lang-extended {
  position: fixed;
  top: 72px; /* JS overrides */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2600;

  background: rgba(10,10,10,0.98);
  border: 2px solid var(--bb-blue);
  border-radius: 16px;
  box-shadow: 0 0 22px rgba(102,170,255,0.55);

  padding: 16px;
  display: none;

  width: auto;
  max-width: min(440px, 100vw - 24px);
}

.bb-lang-extended.open {
  display: block;
}

.bb-lang-extended-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}



@media (max-width: 1250px) {
  .bb-lang-extended {
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 24px);
  }
}

.lang-btn,
.lang-btn span {
  translate: no !important;
  -webkit-translate: no !important;
}

.lang-btn span.notranslate {
  font-family: system-ui, sans-serif;
}

/* ============================================================
   EXTENDED LANGUAGE GRID — SINGLE SOURCE OF TRUTH
   ============================================================ */
.bb-lang-extended-grid {
  display: grid;
  grid-template-columns: repeat(5, 52px);
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* Tablets */
@media (max-width: 768px) {
  .bb-lang-extended-grid {
    grid-template-columns: repeat(4, 52px);
  }
}

/* Small phones (iPhone SE, etc.) */
@media (max-width: 480px) {
  .bb-lang-extended-grid {
    grid-template-columns: repeat(4, 52px);
  }
}

.bb-lang-extended-inner {
  width: 100%;
  max-width: 360px;
}

html[data-theme="light"] .bb-lang-extended {
    background: rgba(255,255,255,0.88) !important;
}

/* ========================================================================
   11. MOBILE MENU TOGGLE
   ======================================================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

/* burger bars */
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--bb-text);
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.25s ease;
}

/* transform to X */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* show burger at <= 1250px */
@media (max-width: 1250px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

/* MOBILE MENU TOGGLE SHOULD APPEAR ONLY AT <=1250px */
@media (max-width: 1250px) {
    #mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 300000 !important;
    }
}

/* Desktop >=1251px: hide burger */
@media (min-width: 1251px) {
    #mobile-menu-toggle {
        display: none !important;
    }
}



/* ========================================================================
   12. NAVIGATION
   ======================================================================== */

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--bb-text);
    font-weight: 500;
    display: flex;
    gap: 6px;
    align-items: center;
    position: relative;
    padding: 2px 0;
    transition: 0.25s ease;
}

.nav-link:hover {
    color: var(--bb-blue);
    text-shadow: 0 0 8px rgba(102, 170, 255, 0.5);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, transparent, var(--bb-blue), transparent);
    transition: 0.35s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:not(:last-child)::before {
    content: "";
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--bb-border);
    border-radius: 50%;
    opacity: 0.7;
}

/* DESKTOP ONLY: >= 1250px */
@media (min-width: 1251px) {
    .header-nav {
        position: static;
    }
    .mobile-menu-toggle {
        display: none;
    }
    .mobile-account-bar {
        display: none;
    }
}

/* TABLET + MOBILE: <= 1250px → use drawer */
@media (max-width: 1250px) {
    .header-nav {
        position: fixed;
        right: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        padding: 120px 24px;
        flex-direction: column;
        align-items: flex-start;
        background: linear-gradient(
            180deg,
            rgba(10,10,10,0.95),
            rgba(10,10,10,0.90),
            rgba(20,20,40,0.85)
        );
        border-left: 2px solid var(--bb-blue);
        transition: right 0.4s ease;
        z-index: 5000;
    }

    .header-nav.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 14px 0;
        font-size: 1.2rem;
    }

    .nav-link:hover {
        padding-left: 8px;
    }

    .nav-link::before {
        display: none;
    }

    html[data-theme="light"] .header-nav {
        background: rgba(255,255,255,0.88);
        backdrop-filter: blur(14px);
        border-left-color: var(--bb-blue);
    }

    html[data-theme="light"] .nav-link {
        color: #222;
    }

    html[data-theme="light"] .nav-link:hover {
        color: var(--bb-blue);
    }
}

/* =========================================
   TRANSLATION SAFETY — DESKTOP ONLY
   ========================================= */
@media (min-width: 1251px) {
  .header-nav {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-link {
    white-space: normal;
    line-height: 1.2;
  }
}

/* ===============================
   DESKTOP NAV TRUE CENTERING
   =============================== */
@media (min-width: 1251px) {
  .header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .header-nav {
    justify-self: center;
  }
}



/* ========================================================================
   13. MOBILE ACCOUNT BAR (TABLET + MOBILE)
   ======================================================================== */

.mobile-account-bar {
    display: none;
    width: 100%;
    background: linear-gradient(
        180deg,
        rgba(20,20,20,0.98),
        rgba(15,15,15,0.98)
    );
    border-bottom: 1px solid rgba(102,170,255,0.35);
    padding: 12px 16px;
    align-items: center;
    gap: 14px;
}


/* Activate bar at <= 1250px (tablet + mobile) */
@media (max-width: 1250px) {
    .mobile-account-bar {
        display: flex;
    }

    /* Make tap targets slightly nicer */
    .mobile-account-button {
        padding: 6px 8px;
    }
}


/* Desktop-only helper (hide things on small screens) */
@media (max-width: 1250px) {
    .desktop-only {
        display: none !important;
    }
}

.mobile-account-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bb-blue);
    background: transparent;
    border: none;
    font-family: Inter, sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.mobile-account-button svg {
    width: 22px;
    height: 22px;
    stroke: var(--bb-blue);
    fill: none;
}


/* ========================================================================
/* ========================================================================
   13A. HEADER LAYOUT POLISH (STRUCTURE ALREADY IN HTML)
   Notes: Visual/layout only — no behaviour changes.
   ======================================================================== */

/* Header actions grouping (supports header-actions-primary + header-actions-cart) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions-primary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions-cart {
    display: flex;
    align-items: center;
    margin-left: 10px;
    position: relative;
}

/* Divider before cart (desktop) */
@media (min-width: 1251px) {
    .header-actions-cart::before {
        content: "";
        position: absolute;
        left: -12px;
        top: 6px;
        bottom: 6px;
        width: 1px;
        background: rgba(102,170,255,0.35);
    }
}

/* Tablet/mobile: hide primary actions in top header row (cart + hamburger stay) */
@media (max-width: 1250px) {
    .header-actions-primary {
        display: none;
    }

    /* Use available space: cart sits left of hamburger, with breathing room */
    .header-actions {
        width: 100%;
        gap: 12px;
    }

    .header-actions-cart {
        margin-left: auto;
        margin-right: 6px;
    }

    .mobile-menu-toggle {
        margin-left: 6px;
    }
}

/* Mobile account bar quick actions (theme/lang moved here by JS) */
.mobile-account-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Slightly smaller quick action buttons in the account bar */
@media (max-width: 1250px) {
    .mobile-account-actions .theme-toggle,
    .mobile-account-actions .bb-lang-toggle {
        width: 38px;
        height: 38px;
    }
}

/* Hard guard: mobile account bar must never appear on desktop */
@media (min-width: 1251px) {
    .mobile-account-bar {
        display: none !important;
    }
}
/*
   14. HEADER ACTIONS WHEN MOBILE MENU OPEN
   ======================================================================== */

/* Hide all header actions EXCEPT the mobile toggle when menu open */
html.bb-menu-open .header-actions > *:not(#mobile-menu-toggle) {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Also fade out the mobile account bar when menu open */
html.bb-menu-open .mobile-account-bar {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Keep toggle visible and on top */
html.bb-menu-open #mobile-menu-toggle {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Make X bars blue when menu is open */
html.bb-menu-open #mobile-menu-toggle span {
    background: var(--bb-blue);
}

html.bb-menu-open .header-actions > *:not(#mobile-menu-toggle) {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ========================================================================
   15. ICON SYSTEM (HEADER + FOOTER)
   ======================================================================== */

svg {
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    image-rendering: optimizeQuality;
    display: inline-block;
}

.nav-icon,
.footer-icon,
.footer-header-icon {
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
    vertical-align: middle;
}

.nav-icon {
    width: 22px;
    height: 22px;
}


.footer-header-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
}

.footer-header-icon.is-social { 
   transform: scale(1.5); 
}

.footer-icon, {
    width: 26px;
    height: 26px;
}

@media (max-width: 900px) {
    .nav-icon,
    .footer-header-icon {
        width: 24px;
        height: 24px;
    }

    .footer-icon {
        width: 22px;
        height: 22px;
    }
}

.nav-link:hover .nav-icon,
.footer-links a:hover .footer-icon {
    opacity: 1;
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(102, 170, 255, 0.6));
}


/* ========================================================================
   16. FOOTER
   ======================================================================== */

footer.site-footer {
    background: var(--bb-panel);
    padding: var(--space-lg) 0 var(--space-md);
    border-top: 2px solid var(--bb-blue);
    position: relative;
}

footer.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bb-blue), transparent);
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--bb-border);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 550px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bb-blue);
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    position: relative;
}

.footer-col-header::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--bb-blue);
    transition: 0.3s ease;
}

.footer-col-header:hover::after {
    width: 100%;
}

.footer-accordion-arrow {
    margin-left: auto;
    transition: 0.3s ease;
}

.footer-col-header[aria-expanded="true"] .footer-accordion-arrow {
    transform: rotate(180deg);
}

.footer-col-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    display: block;
}

@media (min-width: 900px) {
    .footer-col-content {
        max-height: none !important;
    }
    .footer-accordion-arrow {
        display: none;
    }
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--bb-text-muted);
    font-size: 0.93rem;
    transition: 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--bb-blue);
    padding-left: 6px;
    text-shadow: 0 0 6px rgba(102, 170, 255, 0.6);
}

.footer-social-vertical li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
}

.footer-logo-glow {
    height: 60px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(102, 170, 255, 0.45));
}

.footer-bottom a {
    color: var(--bb-blue);
}

.footer-bottom a:hover {
    opacity: 0.75;
}

#bbpc-reset-cookie-consent {
    scroll-margin-top: 100px;
}

 .footer-brand img {
     width: 80%;
 }

@media (max-width: 1200px) {
   .footer-brand img {
     width: 70%;
 }
}

/* ========================================================================
   17. PRODUCT GRID & CARDS
   ======================================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.product-card {
    background: var(--bb-panel);
    border: 1px solid var(--bb-border);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--bb-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 18px rgba(102,170,255,0.35);
}

.product-media {
    width: 100%;
}

.product-image-placeholder {
    width: 100%;
    height: 180px;
    background: #0a0a0a;
    border: 1px dashed var(--bb-border);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bb-text-muted);
    font-size: 0.9rem;
}

.product-body h2 {
    margin-bottom: 6px;
    font-size: 1.4rem;
    color: var(--bb-blue);
}

.product-body p {
    margin-bottom: 12px;
}

.product-features {
    margin: 12px 0;
    padding-left: 18px;
    color: var(--bb-text-soft);
}

.product-features li {
    padding: 4px 0;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-badges span {
    background: rgba(102,170,255,0.1);
    border: 1px solid var(--bb-blue);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--bb-blue);
}

.product-card--placeholder {
    opacity: 0.75;
}

.product-card--placeholder:hover {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    display: block;
}

.product-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--bb-blue);
    margin-bottom: 8px;
    display: block;
}

.product-price-large {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bb-blue);
    margin: 10px 0 20px;
}


/* ========================================================================
   18. SUPPORT PANELS
   ======================================================================== */

.support-panel {
    background: var(--bb-surface);
    border: 1px solid var(--bb-border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--bb-shadow);
}

.support-panel h2 {
    color: var(--bb-blue);
    margin-bottom: 12px;
}


/* ========================================================================
   19. LIGHT THEME OVERRIDES
   ======================================================================== */

html[data-theme="light"] body {
    background: #f5f5f5;
    color: #111;
}

html[data-theme="light"] footer.site-footer {
    background: #f7f7f7;
}


/* ========================================================================

/* --- Light theme: mobile account bar + quick actions --- */
html[data-theme="light"] .mobile-account-bar {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.95),
        rgba(245,245,245,0.95)
    );
    border-bottom: 1px solid rgba(102,170,255,0.4);
}

html[data-theme="light"] .mobile-account-bar .theme-toggle,
html[data-theme="light"] .mobile-account-bar .bb-lang-toggle {
    border-color: var(--bb-blue);
    color: var(--bb-blue);
}

html[data-theme="light"] .mobile-account-button {
    color: #222;
}

html[data-theme="light"] .mobile-account-button svg {
    stroke: #222;
}

   20. ACCESSIBILITY
   ======================================================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: var(--bb-blue);
    color: #fff;
    padding: 10px 14px;
    border-radius: 4px;
    z-index: 10000;
    transition: 0.25s;
}

.skip-link:focus {
    top: 10px;
}


/* ========================================================================
   21. GTRANSLATE OVERRIDES
   ======================================================================== */

.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

body .goog-te-banner-frame + .skiptranslate {
    display: none !important;
}

.notranslate {
    unicode-bidi: plaintext !important;
    translate: no;
}

.goog-te-gadget {
    visibility: hidden !important;
}

.goog-te-combo {
    visibility: visible !important;
}

body .skiptranslate > span {
    display: none !important;
}

body .goog-te-gadget {
    font-size: 0 !important;
}

.goog-te-menu-frame.skiptranslate {
    z-index: 999999 !important;
}

.goog-te-gadget img {
    display: none !important;
}

@media (max-width: 900px) {
    .goog-te-gadget span {
        opacity: 0;
        font-size: 0;
    }
}


/* ========================================================================
   22. SOCIAL ICON STRIP
   ======================================================================== */

.social-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon1 {
    width: 75px;
    height: 75px;
    stroke: currentColor;
    fill: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icon2 {
    width: 65px;
    height: 65px;
    stroke: currentColor;
    fill: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icon3 {
    width: 57px;
    height: 57px;
    stroke: currentColor;
    fill: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icon4 {
    width: 52px;
    height: 52px;
    stroke: currentColor;
    fill: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-links a:hover .social-icon1,
.social-links a:hover .social-icon2,
.social-links a:hover .social-icon3,
.social-links a:hover .social-icon4 {
    opacity: 0.7;
    transform: translateY(-2px);
}


/* ========================================================================
   23. REDUCED MOTION
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ============================================================
   CART PAGE MOBILE FIX (<=600px)
   ============================================================ */
@media (max-width: 600px) {

    /* Stack cart items vertically */
    .cart-page table.cart-items,
    .cart-page table.cart-items tbody,
    .cart-page table.cart-items tr {
        display: block;
        width: 100%;
    }

    .cart-page table.cart-items tr {
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--bb-border);
    }

    /* Image resized and centered */
    .cart-item-image img {
        width: 90px !important;
        height: auto;
        margin: 0 auto 10px auto;
        display: block;
    }

    /* Title & details centered */
    .cart-item-details {
        text-align: center;
    }

    /* Quantity buttons centered */
    .cart-qty-controls {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin: 10px 0;
    }

    /* Price centered */
    .cart-item-price {
        text-align: center;
        margin-top: 10px;
        font-size: 1.1rem;
        color: var(--bb-blue);
    }

    /* Remove column layout entirely */
    .cart-page table.cart-items td {
        display: block;
        width: 100%;
    }
}

/* ============================================================ */

.theme-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.theme-core {
  fill: currentColor;
}

html.theme-dark .theme-rays {
  display: none;
}

html.theme-light .theme-rays {
  display: block;
}

.theme-toggle:hover .theme-icon {
  transform: rotate(15deg);
  transition: transform .25s ease;
}

/* =========================================
   THEME TOGGLE ICON — CONTRAST FIX
   ========================================= */

/* Dark theme: brand-consistent blue icon */
html[data-theme="dark"] .theme-toggle {
  color: var(--bb-blue);
  border-color: var(--bb-blue);
}

html[data-theme="dark"] .theme-toggle:hover {
  background: var(--bb-blue);
  color: #000;
}


/* Hide moon look, show rays */
html[data-theme="dark"] .theme-rays {
  display: block;
}

html[data-theme="dark"] .theme-core {
  fill: currentColor;
}

/* Light theme: show MOON */
html[data-theme="light"] .theme-toggle {
  color: var(--bb-blue);
  border-color: var(--bb-blue);
}

html[data-theme="light"] .theme-rays {
  display: none;
}

html[data-theme="light"] .theme-core {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.theme-toggle:hover .theme-icon {
  transform: rotate(20deg);
}

html[data-theme="dark"] .theme-toggle {
  box-shadow: 0 0 0 rgba(102,170,255,0);
}

html[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 0 10px rgba(102,170,255,0.45);
}

/* =========================================
   HEADER ICON HOVER — LIGHT MODE FIX
   Ensures icons turn black on blue hover
   ========================================= */

html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .bb-account-toggle:hover,
html[data-theme="light"] .bb-lang-toggle:hover,
html[data-theme="light"] .bb-cart-toggle:hover {
  color: #000;
}

/* Ensure SVG strokes/fills follow the color */
html[data-theme="light"] .theme-toggle:hover svg,
html[data-theme="light"] .bb-account-toggle:hover svg,
html[data-theme="light"] .bb-lang-toggle:hover svg,
html[data-theme="light"] .bb-cart-toggle:hover svg {
  stroke: currentColor;
  fill: currentColor;
}

.bb-account-icon {
  width: 32px;
  height: 32px;
}

.theme-icon {
  width: 26px;
  height: 26px;
}

.nav-icon {
  width: 24px;
  height: 24px;
}

.bb-cart-icon {
  width: 32px;
  height: 32px;
}

.bb-lang-extended button {
   width: 62px;
}

.bb-lang-extended img {
   width: 34px;
}
