/* ── SELF-HOSTED PLAYFAIR DISPLAY BRAND FONT (Zero External DNS / Render Blocking) ── */
  @font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("/storefront/themes/shopperstheme/assets/fonts/playfair-display-600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* ── GLOBAL MOBILE VIEWPORT OVERFLOW SAFEGUARD (Preserves position: sticky) ── */
  body {
    overflow-x: clip;
    max-width: 100vw;
    width: 100%;
  }
  .MobileBar-module__tnFBRG__bar {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
  }

  /* ── MODERN CUSTOMER AUTH & ACCOUNT POPOVER SYSTEM ── */
  .zah-account-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
  }
  .zah-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 640;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0 14px;
    height: 40px;
    border-radius: 9999px;
    background: var(--surface-2, #f1f5f9);
    color: var(--ink, #0f172a);
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }
  .zah-auth-btn:hover {
    background: var(--line, #e2e8f0);
  }
  [data-theme="dark"] .zah-auth-btn {
    background: #1e293b;
    color: #f8fafc;
    border-color: #334155;
  }
  [data-theme="dark"] .zah-auth-btn:hover {
    background: #334155;
  }
  .zah-auth-btn .zah-auth-caret {
    transition: transform 0.2s var(--ease-out, ease);
    opacity: 0.75;
  }
  .zah-account-menu:hover .zah-auth-caret,
  .zah-account-menu.open .zah-auth-caret {
    transform: rotate(180deg);
  }

  /* Popover Dropdown Panel */
  .zah-auth-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e2e8f0);
    border-radius: var(--r-inner, 12px);
    box-shadow: var(--shadow-2, 0 20px 40px -15px rgba(15, 23, 42, 0.18));
    padding: 8px;
    z-index: var(--z-overlay, 1060);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s var(--ease-out, ease), transform 0.18s var(--ease-out, ease), visibility 0.18s;
    pointer-events: none;
  }
  [data-theme="dark"] .zah-auth-popover {
    background: #0d1526;
    border-color: #1e293b;
  }
  .zah-account-menu:hover .zah-auth-popover,
  .zah-account-menu:focus-within .zah-auth-popover,
  .zah-account-menu.open .zah-auth-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Invisible hover bridge connecting button to popover */
  .zah-auth-popover::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
  }

  .zah-popover-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--line, #e2e8f0);
    margin-bottom: 6px;
  }
  .zah-popover-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand, #2563eb);
    color: var(--on-brand, #ffffff);
    font-weight: 800;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .zah-popover-userinfo {
    min-width: 0;
    flex: 1;
  }
  .zah-popover-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .zah-popover-meta {
    font-size: 0.72rem;
    color: var(--ink-3, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .zah-popover-guest-head {
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--line, #e2e8f0);
    margin-bottom: 8px;
  }
  .zah-popover-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .zah-popover-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-weight: 580;
    color: var(--ink-2, #334155);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.14s ease, color 0.14s ease;
    text-decoration: none;
  }
  .zah-popover-item svg {
    color: var(--ink-3, #64748b);
    transition: color 0.14s ease;
    flex-shrink: 0;
  }
  .zah-popover-item:hover {
    background: var(--surface-2, #f1f5f9);
    color: var(--ink, #0f172a);
  }
  .zah-popover-item:hover svg {
    color: var(--brand, #2563eb);
  }
  .zah-popover-danger {
    color: var(--bad, #dc2626) !important;
  }
  .zah-popover-danger svg {
    color: var(--bad, #dc2626) !important;
  }
  .zah-popover-danger:hover {
    background: var(--bad-soft, rgba(220, 38, 38, 0.1)) !important;
    color: var(--bad, #dc2626) !important;
  }

  .zah-popover-divider {
    height: 1px;
    background: var(--line, #e2e8f0);
    margin: 4px 0;
  }

  @media (max-width: 820px) {
    .zah-account-menu .zah-auth-btn .zah-auth-label,
    .zah-account-menu .zah-auth-btn .zah-auth-caret {
      display: none;
    }
    .zah-account-menu .zah-auth-btn {
      padding: 0;
      width: 42px;
      height: 42px;
      justify-content: center;
      border-radius: var(--r-pill, 9999px);
      background: transparent;
      color: var(--ink, #0f172a);
      border: none;
    }
    .zah-account-menu .zah-auth-btn:hover {
      background: var(--surface-2, #f1f5f9);
    }
    .zah-auth-popover {
      right: -10px;
    }
  }

  /* ── ShoppersPK Header Layout Polish ── */
  .UtilityBar-module__OLZFFW__bar {
    background: #0b0f19 !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid #1e293b !important;
  }
  .UtilityBar-module__OLZFFW__place {
    color: #f8fafc !important;
    font-weight: 600 !important;
  }
  .UtilityBar-module__OLZFFW__place:hover {
    color: #60a5fa !important;
    text-decoration: underline !important;
  }
  .UtilityBar-module__OLZFFW__wa {
    color: #22c55e !important;
    font-weight: 750 !important;
  }

  /* ERP quick-edit button */
  .erp-quick-edit-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex: none;
    text-decoration: none;
  }
  .erp-quick-edit-btn svg {
    flex: none;
  }

  :root {
    --header-h: 118px;
  }
  @media (max-width: 992px) {
    :root {
      --header-h: 70px;
    }
  }
  @media (max-width: 640px) {
    :root {
      --header-h: 56px;
    }
  }

  .SiteHeader-module__azVQWW__header {
    position: relative !important;
    background: var(--surface, #ffffff) !important;
    border-bottom: 1px solid var(--line, #f1f5f9) !important;
    padding: 14px 0 0 !important;
    height: auto !important;
    min-height: auto !important;
  }
  .SiteHeader-module__azVQWW__bar {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 16px !important;
    padding-bottom: 14px !important;
    height: auto !important;
    min-height: auto !important;
  }

  /* Universal Breadcrumb Clearance below Header */
  .CategoryPage-module__zGEXGG__crumbs {
    position: relative !important;
    z-index: 2 !important;
    padding-top: clamp(14px, 1.8vw, 22px) !important;
    padding-bottom: clamp(6px, 1vw, 12px) !important;
    clear: both !important;
  }

  /* Left Search Pill (Theme-Aware + Mobile Icon Mode) */
  .spk-header-search-wrap {
    justify-self: start;
    width: 100%;
    max-width: 320px;
  }
  .spk-search-pill-btn {
    display: inline-flex;
    align-items: center;
    background: var(--surface-2, #f1f3f7);
    border: 1px solid transparent;
    border-radius: 9999px;
    height: 42px;
    padding: 0 16px;
    width: 100%;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    color: var(--ink, #0f172a);
  }
  .spk-search-pill-btn:hover {
    background: #e9ecf2;
    border-color: #cbd5e1;
  }
  .spk-search-placeholder {
    font-size: 0.875rem;
    color: var(--ink-3, #64748b);
    font-weight: 500;
    flex: 1;
  }
  .spk-search-kbd {
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #cbd5e1);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--ink-3, #64748b);
    margin-right: 8px;
    line-height: 1.2;
  }
  .spk-search-glass {
    color: var(--ink-3, #64748b);
    display: inline-flex;
  }
  [data-theme="dark"] .spk-search-pill-btn {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
  }
  [data-theme="dark"] .spk-search-pill-btn:hover {
    background: #334155;
    border-color: #475569;
  }
  [data-theme="dark"] .spk-search-kbd {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
  }

  /* Center Brand Logo */
  .spk-center-brand {
    display: inline-flex;
    justify-self: center;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
  }
  .spk-app-icon-squircle {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e2e8f0);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    overflow: hidden;
    flex-shrink: 0;
  }
  [data-theme="dark"] .spk-app-icon-squircle {
    background: #0f172a;
    border-color: #334155;
  }
  .spk-app-icon-squircle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .spk-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.1;
  }
  .spk-brand-title {
    font-family: "Playfair Display", Didot, "Bodoni MT", Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a3158;
    text-align: center;
  }
  .spk-brand-dot {
    color: #2563eb;
  }
  [data-theme="dark"] .spk-brand-title {
    color: #d7e3fa;
  }
  [data-theme="dark"] .spk-brand-sub {
    color: #8fa5cf;
  }
  .spk-brand-sub {
    font-family: "Mona Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.625rem;
    font-weight: 650;
    letter-spacing: 0.24em;
    text-indent: 0.24em;
    text-transform: uppercase;
    color: #51648a;
    margin-top: 3px;
    text-align: center;
    display: block;
    width: 100%;
  }

  /* Right Action Icons */
  .SiteHeader-module__azVQWW__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
    justify-content: flex-end;
  }

  /* Category Navigation Strip */
  .spk-category-strip {
    border-top: 1px solid var(--line, #f1f5f9);
    border-bottom: none;
    background: var(--surface, #ffffff);
    position: relative;
    z-index: 100;
  }
  .spk-cat-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    position: relative;
  }
  .spk-nav-item {
    position: static;
  }
  .spk-cat-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: "Playfair Display", Didot, "Bodoni MT", Georgia, "Times New Roman", serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-2, #334155);
    text-decoration: none;
    padding: 13px 14px 11px;
    white-space: nowrap;
    position: relative;
    transition: color 0.15s ease;
  }
  .spk-cat-nav-link:hover,
  .spk-nav-item:hover > .spk-cat-nav-link {
    color: #2563eb;
  }
  .spk-nav-item:hover > .spk-cat-nav-link::after,
  .spk-cat-nav-link.is-active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2.5px;
    background: #2563eb;
    border-radius: 2px 2px 0 0;
  }
  .spk-caret {
    transition: transform 0.2s ease;
    opacity: 0.6;
  }
  .spk-nav-item:hover .spk-caret {
    transform: rotate(180deg);
    opacity: 1;
  }

  /* Strip menu button + dropdown (Latest Arrival / Deals / Best Sellers) */
  .spk-menu-dropdown {
    position: relative;
  }
  .spk-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ink, #0f172a);
  }
  .spk-menu-btn svg {
    flex: none;
  }
  .spk-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 232px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow:
      0 24px 60px -12px rgba(15, 23, 42, 0.18),
      0 8px 20px -8px rgba(15, 23, 42, 0.10);
    padding: 8px;
    display: none;
    z-index: 1060;
  }
  .spk-menu-dropdown.open .spk-menu-panel {
    display: block;
    animation: spkMegaIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .spk-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 9px;
    color: #334155;
    font-family: "Mona Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .spk-menu-link::after {
    content: "›";
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    color: #2563eb;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    flex: none;
  }
  .spk-menu-link:hover,
  .spk-menu-link:focus-visible {
    background: #eff6ff;
    color: #1d4ed8;
  }
  .spk-menu-link:hover::after,
  .spk-menu-link:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
  }
  [data-theme="dark"] .spk-menu-panel {
    background: #0d1526;
    border-color: #1e293b;
  }
  [data-theme="dark"] .spk-menu-link {
    color: #a8b3c5;
  }
  [data-theme="dark"] .spk-menu-link:hover,
  [data-theme="dark"] .spk-menu-link:focus-visible {
    background: rgba(37, 99, 235, 0.16);
    color: #93c5fd;
  }

  /* Laptop widths: tighten the strip so all items fit one line */
  @media (max-width: 1280px) {
    .spk-cat-nav-link {
      padding-left: 10px;
      padding-right: 10px;
      letter-spacing: 0.08em;
    }
    .spk-nav-item:hover > .spk-cat-nav-link::after,
    .spk-cat-nav-link.is-active::after {
      left: 10px;
      right: 10px;
    }
  }

  /* ═══ MEGA MENU v2 — theme-matched ═══ */
  .spk-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 18px 18px;
    box-shadow:
      0 24px 60px -12px rgba(15, 23, 42, 0.18),
      0 8px 20px -8px rgba(15, 23, 42, 0.10);
    padding: 26px 30px 28px;
    display: none;
    z-index: 1055;
  }
  .spk-nav-item:not(.force-closed):hover .spk-mega-menu,
  .spk-nav-item:not(.force-closed):focus-within .spk-mega-menu {
    display: block;
    animation: spkMegaIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  /* Invisible hover bridge */
  .spk-mega-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
  }
  /* Brand gradient hairline across the top of the panel */
  .spk-mega-menu::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 55%, #2563eb 100%);
  }
  @keyframes spkMegaIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Mega Menu Grid Columns */
  .spk-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    align-items: stretch;
  }
  .spk-mega-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .spk-mega-col + .spk-mega-col:not(:last-child) {
    border-left: 1px solid #eef2f7;
    padding-left: 26px;
  }
  .spk-nav-item:not(.force-closed):hover .spk-mega-col,
  .spk-nav-item:not(.force-closed):focus-within .spk-mega-col {
    animation: spkColIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .spk-nav-item:hover .spk-mega-col:nth-child(2),
  .spk-nav-item:focus-within .spk-mega-col:nth-child(2) { animation-delay: 0.04s; }
  .spk-nav-item:hover .spk-mega-col:nth-child(3),
  .spk-nav-item:focus-within .spk-mega-col:nth-child(3) { animation-delay: 0.08s; }
  .spk-nav-item:hover .spk-mega-col:nth-child(4),
  .spk-nav-item:focus-within .spk-mega-col:nth-child(4) { animation-delay: 0.12s; }
  @keyframes spkColIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .spk-mega-col-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Mona Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f172a;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #edf1f6;
  }
  .spk-mega-col-title::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 2.5px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    flex: none;
  }
  .spk-mega-col-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: #2563eb;
  }

  /* Links: hover chips with a slide-in arrow */
  .spk-mega-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    margin: 0 -10px;
    border-radius: 9px;
    color: #334155;
    font-family: "Mona Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 520;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .spk-mega-link::after {
    content: "›";
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    color: #2563eb;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    flex: none;
  }
  .spk-mega-link:hover,
  .spk-mega-link:focus-visible {
    background: #eff6ff;
    color: #1d4ed8;
  }
  .spk-mega-link:hover::after,
  .spk-mega-link:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
  }

  .spk-mega-promo-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 16px;
    padding: 22px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 230px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.25),
      0 14px 30px -12px rgba(15, 23, 42, 0.35);
  }
  .spk-mega-promo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px 210px at 110% -10%, rgba(255, 255, 255, 0.35), transparent 60%);
  }
  .spk-mega-promo-card::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -58px;
    width: 172px;
    height: 172px;
    border-radius: 50%;
    border: 26px solid rgba(255, 255, 255, 0.14);
    z-index: -1;
  }
  .spk-mega-promo-card .spk-promo-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: "Mona Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    backdrop-filter: blur(4px);
    width: fit-content;
    margin-bottom: 12px;
  }
  .spk-mega-promo-card h4 {
    font-family: "Mona Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.22rem;
    font-weight: 750;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0 0 6px 0;
    color: #ffffff;
  }
  .spk-mega-promo-card p {
    font-family: "Mona Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0 0 18px 0;
    opacity: 0.92;
    color: #ffffff;
  }
  .spk-mega-promo-card .spk-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 9999px;
    font-family: "Mona Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 750;
    text-decoration: none;
    color: #0f172a;
    background: #facc15;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    text-align: center;
  }
  .spk-mega-promo-card .spk-promo-btn:hover {
    background: #eab308;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -6px rgba(0, 0, 0, 0.45);
  }

  /* Mega Menu — Dark theme */
  [data-theme="dark"] .spk-mega-menu {
    background: linear-gradient(180deg, #0d1526 0%, #0b1220 100%);
    border-color: #1e293b;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.65), 0 8px 20px -8px rgba(0, 0, 0, 0.5);
  }
  [data-theme="dark"] .spk-mega-col + .spk-mega-col:not(:last-child) {
    border-color: #1e293b;
  }
  [data-theme="dark"] .spk-mega-col-title {
    color: #e2e8f0;
    border-color: #1e293b;
  }
  [data-theme="dark"] .spk-mega-link {
    color: #a8b3c5;
  }
  [data-theme="dark"] .spk-mega-link:hover,
  [data-theme="dark"] .spk-mega-link:focus-visible {
    background: rgba(37, 99, 235, 0.16);
    color: #93c5fd;
  }

  @media (prefers-reduced-motion: reduce) {
    .spk-mega-menu,
    .spk-mega-col {
      animation: none !important;
    }
  }

  /* Command palette: "View all results" footer on one line */
  #command-palette-dialog .CommandPalette-module__zBRSga__item:not(:has(.CommandPalette-module__zBRSga__icon, .CommandPalette-module__zBRSga__thumb)) {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #command-palette-dialog .CommandPalette-module__zBRSga__item:not(:has(.CommandPalette-module__zBRSga__icon, .CommandPalette-module__zBRSga__thumb)) > :first-child {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #command-palette-dialog .CommandPalette-module__zBRSga__list > a:not(.CommandPalette-module__zBRSga__item) {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }

  @media (max-width: 992px) {
    .spk-category-strip {
      display: none;
    }
  }
  /* Mobile & Tablet: Collapse search pill into circular icon button so 3-col grid stays balanced */
  @media (max-width: 860px) {
    .spk-search-placeholder,
    .spk-search-kbd {
      display: none;
    }
    .spk-header-search-wrap {
      width: auto;
      max-width: none;
    }
    .spk-search-pill-btn {
      width: 42px;
      height: 42px;
      padding: 0;
      justify-content: center;
    }
  }
  /* Mobile: logo icon only — hide the ShoppersPK wordmark + EST. line */
  @media (max-width: 640px) {
    .spk-brand-text {
      display: none;
    }
  }
