.nav-cats, .nav-cat { white-space: nowrap; }
    .smartio-mega-panel, .smartio-mega-panel * { white-space: normal; }

    .nav-cat { font-size: 13.5px; padding: 6px 10px; }

    @media (min-width: 769px) and (max-width: 1499px) {
      .top-nav .nav-signin.nav-desktop-only { display: none !important; }
      .top-nav .nav-right > a.nav-mobile-only[href*="/my-account/"] { display: flex !important; }
      .top-nav .nav-search .dgwt-wcas-search-wrapp { min-width: 0 !important; }
    }
    @media (min-width: 1300px) and (max-width: 1499px) {
      .top-nav .nav-inner { gap: 16px; }
      .top-nav .nav-cat { padding: 6px 8px; }
      .top-nav .nav-search { min-width: 200px; max-width: 200px; }
    }
    @media (min-width: 1170px) and (max-width: 1299px) {
      .top-nav .nav-inner { gap: 12px; }
      .top-nav .nav-cat { padding: 6px 7px; font-size: 13px; }
      .top-nav .nav-cat.nav-xmas { padding: 6px 11px; }
      .top-nav .nav-search { min-width: 150px; max-width: 150px; }
    }
    @media (min-width: 769px) and (max-width: 1169px) {
      .top-nav .nav-inner { gap: 14px; padding-left: 20px; padding-right: 20px; }
      .top-nav .nav-hamburger { display: flex !important; }
      .top-nav .nav-cats { display: none; }
      .top-nav .nav-search { flex: 1 1 auto; min-width: 0; max-width: 460px; }
      .top-nav .nav-right { flex: 1 1 auto; justify-content: flex-end; }
      .smartio-drawer-panel { max-width: 400px; }
    }

    .cart-badge, .fkcart-count {
      min-width: 16px; height: 16px; font-size: 9px;
      padding: 0 5px;
      background: var(--primary, #0d4877);
      box-shadow: 0 0 0 2px var(--bg-surface, #fff);
    }

    .fkcart-count:empty, .fkcart-count[data-count="0"] { display: none !important; }

    html.theme-dark .bundle-card,
    @media (prefers-color-scheme: dark) {
      html:not(.theme-light) .bundle-card {
        background: rgba(255,255,255,0.04);
        border-color: rgba(255,255,255,0.12);
      }
      html:not(.theme-light) .bundle-card.active {
        background: rgba(123,208,202,0.12);
        border-color: var(--teal-1, #7bd0ca);
      }
      html:not(.theme-light) .bundle-desc,
      html:not(.theme-light) .bundle-inc-row { color: rgba(255,255,255,0.7); }
      html:not(.theme-light) .bundle-title { color: #fff; }
    }
    html.theme-dark .bundle-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
    html.theme-dark .bundle-card.active { background: rgba(123,208,202,0.12); border-color: var(--teal-1, #7bd0ca); }
    html.theme-dark .bundle-desc, html.theme-dark .bundle-inc-row { color: rgba(255,255,255,0.7); }
    html.theme-dark .bundle-title { color: #fff; }

    html { scroll-behavior: auto; }

    html.theme-light {
      --bg: #f4f6f9 !important;
      --bg-surface: #ffffff !important;
      --text: #111827 !important;
      --text-mid: #556b85 !important;
      --text-soft: #a8b8cc !important;
      --border: #e8edf3 !important;
      --border-subtle: #d0d9e4 !important;
      color-scheme: light !important;
    }
    html.theme-dark {
      --bg: #0f1722 !important;
      --bg-surface: #18222f !important;
      --text: #e9eef5 !important;
      --text-mid: #9fb0c4 !important;
      --text-soft: #6e8198 !important;
      --border: #243245 !important;
      color-scheme: dark !important;
    }

    a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
      outline: 2px solid #0d4877;
      outline-offset: 2px;
    }
    html.theme-dark a:focus-visible, html.theme-dark button:focus-visible,
    html.theme-dark input:focus-visible, html.theme-dark select:focus-visible,
    body.smartio-dark-only a:focus-visible, body.smartio-dark-only button:focus-visible,
    body.smartio-dark-only input:focus-visible, body.smartio-dark-only select:focus-visible { outline-color: #7bd0ca; }
    .skip-link { position: absolute; left: 12px; top: -60px; z-index: 100001; padding: 10px 16px;
      background: #0d4877; color: #fff; font-weight: 700; border-radius: 8px; text-decoration: none; }
    .skip-link:focus { top: 12px; }
    #smartio-content:focus { outline: none; }

    button:disabled { opacity: 0.6; cursor: not-allowed; }

    .dgwt-wcas-search-input { font-family: inherit !important; }
    .dgwt-wcas-suggestions-wrapp { border-radius: 12px !important; box-shadow: 0 12px 30px -8px rgba(13,72,119,.24) !important; }
    .dgwt-wcas-search-form { transition: box-shadow 200ms; }

    .fkcart-modal { font-family: inherit !important; }
    .fkcart-primary-button { background: var(--primary, #0d4877) !important; }

    @media (max-width: 768px) {
      body { padding-bottom: 70px; }
      .footer { padding-bottom: 50px; }
    }

    @media (max-width: 768px) {
      .nav-cats { display: none; }
      .nav-search { min-width: 0; flex: 1; }
      .nav-search .dgwt-wcas-search-input { min-width: 0; font-size: 16px; padding: 8px 12px; }
      .nav-inner { gap: 10px; padding: 0 16px; }
      .nav-signin { padding: 7px 14px; font-size: 12px; }
    }

    @media (max-width: 768px) {
      .product-card .card-img { aspect-ratio: 1/1 !important; height: auto !important; }
      .product-card .card-img img { width: 96% !important; height: 96% !important; }
      .product-card .card-body { padding: 12px !important; gap: 3px !important; }
      .product-card .card-name { font-size: 13px !important; line-height: 1.25 !important; }
      .product-card .card-price { font-size: 16px !important; }
      .product-card .card-ask { padding: 5px 9px !important; font-size: 10px !important; }
      .product-grid { gap: 10px !important; }
      .filter-bar { padding: 8px 12px !important; }
      .filter-bar-in { flex-wrap: wrap !important; overflow: visible !important; padding-bottom: 0; }
      .filter-pill, .filter-link, .toggle-pill { font-size: 11px !important; padding: 6px 10px !important; }
    }

    @media (max-width: 480px) {
      .announce-bar { font-size: 11px !important; padding: 7px 12px !important; }
    }

    @media (hover: none) {
      .product-card:hover, .bundle-card:hover, .value-card:hover, .bnd:hover {
        transform: none !important; box-shadow: var(--shadow-sm, 0 2px 8px rgba(13,72,119,.08)) !important;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }

    @media print {
      .top-nav, .footer, .announce-bar, .fkcart-modal, [class*="floating"], .nav-cart-wrap, .smartio-theme-toggle { display: none !important; }
      body { background: white !important; color: black !important; }
    }