/* ==========================================================================
   StellarUnicorn premium layer v1 (28 Nov 2026)
   Spec: Premium Design and Motion Standard v1 (project files,
   standards/premium-design-motion-standard-v1.md).

   Loaded AFTER styles.css on every public page. It owns three things:
     1. The floating dock: chat, voice helpdesk, cart and course tutor buttons
        share one bottom-right stack, so no button can sit on another one, on
        an open panel, on the cart drawer or on the mobile bottom nav.
     2. One motion set: page-load entrance, scroll reveal, hover and press,
        all on the same easing and durations, and all switched off for
        people who ask their device for reduced motion.
     3. Small layout fixes found in the 28 Nov audit (phone width, shop hero).

   Why some rules carry !important: the widgets write their own position
   inline (#floatingCartBtn in shop.html, and chatbot.js sets bubble.style.bottom
   on phones). The dock has to win over inline styles, and only the dock
   properties are marked. Nothing here changes a logo or a brand colour.
   ========================================================================== */

:root {
  --pm-ease-out: cubic-bezier(.16, 1, .3, 1);      /* entrances, hovers */
  --pm-ease-in-out: cubic-bezier(.65, 0, .35, 1);  /* moves between states */
  --pm-ease-pop: cubic-bezier(.34, 1.56, .64, 1);  /* small things appearing */
  --pm-dur-1: 160ms;  /* press, colour */
  --pm-dur-2: 280ms;  /* hover, open/close */
  --pm-dur-3: 520ms;  /* panels, page-load items */
  --pm-dur-4: 800ms;  /* scroll reveal */
  --pm-focus: var(--accent, #7fffd4);
  --pm-dock: 1;       /* marker: the dock is active on this page */
}

/* ---------- 1. Floating dock ---------------------------------------------
   Slot 0 is the corner. The chat bubble always takes slot 0, so it sits in
   the same place on every page; page-specific buttons stack above it. */
body {
  --pm-dock-right: 24px;
  --pm-dock-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  --pm-dock-gap: 12px;
  --pm-fab: 56px;
  --pm-slot-0: var(--pm-dock-bottom);
  --pm-slot-1: calc(var(--pm-dock-bottom) + var(--pm-fab) + var(--pm-dock-gap));
  --pm-slot-2: calc(var(--pm-dock-bottom) + 2 * (var(--pm-fab) + var(--pm-dock-gap)));
  --pm-panel-gap: 14px;
}
@media (max-width: 600px) {
  body {
    --pm-dock-right: 16px;
    --pm-dock-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    --pm-fab: 52px;
  }
}
/* The mobile bottom nav (index, pricing, blog) shows at 900px and below:
   bottom 24 + height 68. The dock starts 14px above it. */
@media (max-width: 900px) {
  body:has(.mobile-bottom-nav) { --pm-dock-bottom: 106px; }
}
@media (max-width: 380px) {
  body:has(.mobile-bottom-nav) { --pm-dock-bottom: 88px; }  /* nav: bottom 12 + 62 */
}

/* Shared button look: one size, one shadow, one hover, one press.
   The cart carries "html body" like the others since 4 Dec: shop.html's
   phone rule (#floatingCartBtn { right: auto !important }) sits in a <style>
   after this file, so at equal weight it won and parked the cart in the
   bottom-left corner on phones, on top of product prices. */
html body #su-chat-bubble,
html body .suhd-btn,
html body .tutor-fab,
html body #floatingCartBtn {
  position: fixed !important;
  right: var(--pm-dock-right) !important;
  left: auto !important;
  width: var(--pm-fab) !important;
  height: var(--pm-fab) !important;
  z-index: 9000 !important;   /* below every overlay and drawer (10000+) */
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset !important;
  transition: transform var(--pm-dur-2) var(--pm-ease-out),
              box-shadow var(--pm-dur-2) var(--pm-ease-out),
              opacity var(--pm-dur-2) var(--pm-ease-out),
              bottom var(--pm-dur-3) var(--pm-ease-out) !important;
  animation: pm-pop var(--pm-dur-3) var(--pm-ease-pop) .5s backwards;
}
html body #su-chat-bubble { bottom: var(--pm-slot-0) !important; }
html body .tutor-fab { bottom: var(--pm-slot-0) !important; }

/* Voice helpdesk: corner when it is alone (helpdesk demo), slot 1 under chat. */
html body .suhd-btn { bottom: var(--pm-slot-0) !important; animation-delay: .6s; }
html body:has(#su-chat-bubble) .suhd-btn { bottom: var(--pm-slot-1) !important; }

/* Cart: above chat, and above the helpdesk if a page ever has all three. */
#floatingCartBtn { bottom: var(--pm-slot-0) !important; animation-delay: .6s; }
html body:has(#su-chat-bubble) #floatingCartBtn { bottom: var(--pm-slot-1) !important; }
html body:has(#su-chat-bubble):has(.suhd-btn) #floatingCartBtn { bottom: var(--pm-slot-2) !important; }

@media (hover: hover) {
  html body #su-chat-bubble:hover,
  html body .suhd-btn:hover,
  html body .tutor-fab:hover,
  #floatingCartBtn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, .6), 0 0 24px rgba(127, 255, 212, .28), 0 0 0 1px rgba(255, 255, 255, .14) inset !important;
  }
}
html body #su-chat-bubble:active,
html body .suhd-btn:active,
html body .tutor-fab:active,
#floatingCartBtn:active { transform: scale(.94) !important; transition-duration: var(--pm-dur-1) !important; }

/* Phones: premium.js adds .pm-dock-away while the visitor scrolls down, so
   the corner buttons step out of the way of the cards; scrolling up, the
   page ends and open panels bring them straight back. */
@media (max-width: 900px) {
  html.pm-dock-away body :is(#su-chat-bubble, .suhd-btn, #floatingCartBtn, .tutor-fab) {
    opacity: 0 !important;
    transform: translate3d(0, 18px, 0) scale(.86) !important;
    pointer-events: none !important;
  }
  /* At the very bottom the dock comes back, so leave room under the footer:
     its last links (Licence, Contact) used to sit under the chat bubble. */
  html body:has(#su-chat-bubble, .suhd-btn, #floatingCartBtn, .tutor-fab)::after {
    content: ""; display: block;
    height: calc(var(--pm-slot-0) + var(--pm-fab) + 12px);
  }
  html body:has(#su-chat-bubble):has(.suhd-btn, #floatingCartBtn)::after {
    height: calc(var(--pm-slot-1) + var(--pm-fab) + 12px);
  }
  html body:has(#su-chat-bubble):has(.suhd-btn):has(#floatingCartBtn)::after {
    height: calc(var(--pm-slot-2) + var(--pm-fab) + 12px);
  }
}

/* Cart icon and count. The icon was white on the light end of the gradient,
   and an empty cart showed a red "0". The icon now uses each brand's own
   "ink on accent" colour (the same as its filter pills), and the count only
   shows once something is in the cart (premium.js marks it empty). */
html body #floatingCartBtn > i { color: var(--accent-ink, #0a0118) !important; font-size: 24px !important; }
html body #cartCountBadge {
  top: -4px !important;
  right: -4px !important;
  min-width: 22px;
  width: auto !important;
  height: 22px !important;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--n-900, #0a0118) !important;
  border: 0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .5);
  transition: opacity var(--pm-dur-2) var(--pm-ease-out), transform var(--pm-dur-2) var(--pm-ease-pop);
}
html body #cartCountBadge[data-pm-empty] { opacity: 0; transform: scale(.4); }

/* The helpdesk button showed a 💬 emoji, the same symbol as the chat bubble
   under it, and emoji render differently on every phone. A headset icon says
   "voice help" and draws the same everywhere. */
html body .suhd-btn { font-size: 0 !important; color: #fff; display: flex; align-items: center; justify-content: center; }
html body .suhd-btn::before {
  content: "";
  width: 26px; height: 26px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14v-2a9 9 0 0 1 18 0v2'/%3E%3Cpath d='M21 15a2 2 0 0 1-2 2h-1v-6h1a2 2 0 0 1 2 2z'/%3E%3Cpath d='M3 15a2 2 0 0 0 2 2h1v-6H5a2 2 0 0 0-2 2z'/%3E%3Cpath d='M18 17v1a3 3 0 0 1-3 3h-3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14v-2a9 9 0 0 1 18 0v2'/%3E%3Cpath d='M21 15a2 2 0 0 1-2 2h-1v-6h1a2 2 0 0 1 2 2z'/%3E%3Cpath d='M3 15a2 2 0 0 0 2 2h1v-6H5a2 2 0 0 0-2 2z'/%3E%3Cpath d='M18 17v1a3 3 0 0 1-3 3h-3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hover labels (premium.js adds data-pm-label), desktop pointers only. */
@media (hover: hover) and (min-width: 901px) {
  [data-pm-label]::after {
    content: attr(data-pm-label);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translate3d(6px, -50%, 0);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(12, 6, 28, .92);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #f2f0f7;
    font: 600 12px/1.2 'Outfit', system-ui, sans-serif;
    letter-spacing: .2px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--pm-dur-2) var(--pm-ease-out), transform var(--pm-dur-2) var(--pm-ease-out);
  }
  [data-pm-label]:hover::after { opacity: 1; transform: translate3d(0, -50%, 0); }
}

/* Panels open directly above their own button and above every other button. */
html body #su-chat-window,
html body .suhd-panel,
html body .tutor-panel {
  right: var(--pm-dock-right) !important;
  left: auto !important;
  z-index: 9100 !important;
}
html body #su-chat-window,
html body .tutor-panel { bottom: calc(var(--pm-slot-0) + var(--pm-fab) + var(--pm-panel-gap)) !important; }
html body .suhd-panel { bottom: calc(var(--pm-slot-0) + var(--pm-fab) + var(--pm-panel-gap)) !important; }
html body:has(#su-chat-bubble) .suhd-panel { bottom: calc(var(--pm-slot-1) + var(--pm-fab) + var(--pm-panel-gap)) !important; }
html body #su-chat-window.open,
html body .suhd-panel.open,
html body .tutor-panel.open { animation: pm-panel-in var(--pm-dur-3) var(--pm-ease-out) both; transform-origin: bottom right; }

/* Phones: panels become full-width sheets with room for the keyboard. */
@media (max-width: 600px) {
  html body #su-chat-window,
  html body .suhd-panel,
  html body .tutor-panel {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
  }
  html body #su-chat-window,
  html body .suhd-panel,
  html body .tutor-panel {
    max-height: calc(100dvh - var(--pm-slot-0) - var(--pm-fab) - var(--pm-panel-gap) - 24px) !important;
  }
  html body:has(#su-chat-bubble) .suhd-panel {
    max-height: calc(100dvh - var(--pm-slot-1) - var(--pm-fab) - var(--pm-panel-gap) - 24px) !important;
  }
}

/* One thing open at a time: while a panel, the cart drawer or a modal is
   open, the other buttons step out of the way instead of covering it. */
html body:has(#su-chat-window.open) :is(.suhd-btn, #floatingCartBtn),
html body:has(.suhd-panel.open) :is(#su-chat-bubble, #floatingCartBtn),
html body:has(.cart-drawer.open) :is(#su-chat-bubble, .suhd-btn, #floatingCartBtn),
html body:has(.cart-overlay.open) :is(#su-chat-bubble, .suhd-btn, #floatingCartBtn),
html body:has(#checkoutModal[style*="flex"]) :is(#su-chat-bubble, .suhd-btn, #floatingCartBtn),
html body:has(#productLightbox[style*="flex"]) :is(#su-chat-bubble, .suhd-btn, #floatingCartBtn) {
  opacity: 0 !important;
  transform: scale(.85) !important;
  pointer-events: none !important;
}
html body:has(.cart-drawer.open) :is(#su-chat-window, .suhd-panel) { display: none !important; }

/* ---------- 2. Motion ----------------------------------------------------- */
@keyframes pm-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes pm-fade-down { from { opacity: 0; transform: translate3d(0, -12px, 0); } to { opacity: 1; transform: none; } }
@keyframes pm-panel-in { from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.97); } to { opacity: 1; transform: none; } }

/* Page load: the top bar settles in. backwards fill, so once it has played
   the nav's own styles (and any transform it uses) are untouched. */
body > nav,
body > header {
  animation: pm-fade-down var(--pm-dur-3) var(--pm-ease-out) .05s backwards;
}

/* Scroll reveal. .fade-in is the existing system (script.js); it keeps
   working and now uses the shared timing. .pm-reveal is added by premium.js
   only to blocks that start below the fold, so nothing on the first screen
   ever blinks, and nothing is hidden if JavaScript does not run. */
.fade-in {
  transform: translate3d(0, 24px, 0);
  transition: opacity var(--pm-dur-4) var(--pm-ease-out), transform var(--pm-dur-4) var(--pm-ease-out);
}
html.pm-js .pm-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity var(--pm-dur-4) var(--pm-ease-out), transform var(--pm-dur-4) var(--pm-ease-out);
  transition-delay: calc(var(--pm-i, 0) * 70ms);
}
html.pm-js .pm-reveal.pm-in { opacity: 1; transform: none; }
@media print {
  .fade-in, html.pm-js .pm-reveal { opacity: 1 !important; transform: none !important; }
}

/* Hover and press: one calm lift for cards, one press for buttons. The old
   card hover also scaled the card 2%, which blurs text mid-animation. */
.glass-card:hover { transform: translateY(-4px); }
.btn-primary:active,
.btn-buy:active { transform: translateY(0) scale(.98); transition-duration: var(--pm-dur-1); }

/* One visible focus ring for keyboard users, in the site's accent colour. */
:where(a, button, input, select, textarea, summary, [role="button"], [tabindex]):focus-visible {
  outline: 2px solid var(--pm-focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Fixes from the 28 Nov audit -------------------------------- */

/* Phones were laid out about 500px wide, not 390: the three blurred
   background orbs are position:absolute against the page, hang off the right
   edge, and Chrome and Safari widen the layout viewport to fit them, which
   also pushed every fixed button off-centre. Pinning them to the screen
   keeps the same glow and stops them counting toward page width. */
.bg-orb { position: fixed; }

/* The cursor-following glow and unicorn are mouse effects. On touch screens
   there is no mouse, so they parked in the middle of the hero, over the
   headline and the main button. (pointer: coarse) keeps this to real touch
   screens; a desktop with a mouse keeps the effect. */
@media (hover: none) and (pointer: coarse) {
  .gooey-canvas-container,
  .unicorn-overlay { display: none !important; }
}

/* On a desktop the same effect parked in the middle of the hero, over the
   headline, until the mouse first moved. It now waits for the mouse
   (premium.js adds .pm-pointer on the first mouse move) and fades in. */
.gooey-canvas-container,
.unicorn-overlay { transition: opacity var(--pm-dur-3) var(--pm-ease-out); }
html.pm-js:not(.pm-pointer) .gooey-canvas-container,
html.pm-js:not(.pm-pointer) .unicorn-overlay { opacity: 0; }

/* Shop hero: the 200px crest plus a two-line title did not fit the fixed
   380px box on phones, so the crest top and "Student Store" were cut off. */
@media (max-width: 600px) {
  .hero-3d-text img { height: 120px !important; margin-bottom: 10px !important; }
  .hero-3d-text h1 { font-size: clamp(1.75rem, 8vw, 2.4rem) !important; letter-spacing: 1px !important; line-height: 1.15; }
  .hero-3d-container { height: 340px !important; }
}

/* ---------- 5. One button set (4 Dec 2026) ---------------------------------
   Standard v1 section 3. Before this, the shop alone had seven button looks
   (blue Add to Cart, navy Apply, blue page numbers, lavender pills, a white
   active category), the home page put white text on the light aqua end of
   its gradient, and the chosen colour swatch had a blue ring.

   Now there is one primary button, one secondary button, one chip and one
   swatch. Colours come from the brand's own variables: pink to aqua with
   dark ink on StellarUnicorn (the .btn-primary gradient in styles.css), and
   brand-shop.js supplies Bonzentech, Bonzentu and Carol's colours through
   the same variables. The lists sit in :where() so they add no weight:
   brand-shop.js's own rules stay more specific and still win, so every brand
   keeps its own colours. No logo changes. */
:root {
  --pm-btn-h: 48px;
  --pm-btn-r: 12px;
  --pm-sheen: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .38) 50%, transparent 62%);
}

/* Primary: Add to Cart, Secure Checkout, the main call to action. */
html body :where(.btn-primary, .cta-btn, .product-card .btn-buy, #lbAddBtn, #cartDrawer .btn-buy[data-paypal-ui], #generatePaymentBtn) {
  min-height: var(--pm-btn-h) !important;
  border: 0 !important;
  border-radius: var(--pm-btn-r) !important;
  background: var(--pm-sheen), linear-gradient(135deg, var(--accent-pink, #df7cba), var(--accent, #7fffd4)) !important;
  background-size: 250% 100%, 100% 100% !important;
  background-position: 130% 0, 0 0 !important;
  background-repeat: no-repeat !important;
  color: var(--accent-ink, #0a0118) !important;
  -webkit-text-fill-color: currentColor;
  font-weight: 700 !important;
  letter-spacing: .01em;
  text-shadow: none !important;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .14) inset !important;
  transition: transform var(--pm-dur-2) var(--pm-ease-out),
              box-shadow var(--pm-dur-2) var(--pm-ease-out),
              background-position 700ms var(--pm-ease-out) !important;
}
html body :where(.btn-primary, .cta-btn):not([hidden]):not([style*="display: none"]):not([style*="display:none"]) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
html body :where(.btn-primary, .cta-btn, .product-card .btn-buy, #lbAddBtn, #cartDrawer .btn-buy[data-paypal-ui], #generatePaymentBtn) i { color: inherit !important; }

/* Button labels stay on one line. On narrow cards the price row wraps and
   the button moves under the price, instead of "Add to / Cart" in two lines.
   In the product view the two buttons stack when they do not fit side by side. */
html body :where(.product-card .btn-buy, #lbAddBtn, #lbAddBtn + button) { white-space: nowrap; }
html body .product-card .product-price-row { flex-wrap: wrap; gap: 8px 12px; }
html body .product-card .product-price-row > .btn-buy { margin-left: auto; padding-left: 14px !important; padding-right: 16px !important; }
html body :where(:has(> #lbAddBtn)) { flex-wrap: wrap; }
html body #lbAddBtn { flex: 1 1 170px !important; }
html body #lbAddBtn + button { flex: 1 1 130px !important; justify-content: center; }

/* Secondary: the quieter choice next to a primary (Buy Now in the product
   view, Web3 Checkout, Apply on a promo code). */
html body :where(.btn-secondary, #lbAddBtn + button, #cartDrawer .btn-buy[data-no-kids], #cartDrawer button[onclick^="applyPromoCode"]) {
  min-height: var(--pm-btn-h) !important;
  border-radius: var(--pm-btn-r) !important;
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  color: var(--text-main, #f0f0f0) !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  transition: transform var(--pm-dur-2) var(--pm-ease-out),
              border-color var(--pm-dur-2) var(--pm-ease-out),
              box-shadow var(--pm-dur-2) var(--pm-ease-out) !important;
}

@media (hover: hover) {
  html body :where(.btn-primary, .cta-btn, .product-card .btn-buy, #lbAddBtn, #cartDrawer .btn-buy[data-paypal-ui], #generatePaymentBtn):hover {
    transform: translateY(-2px) !important;
    background-position: -30% 0, 0 0 !important;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .75), 0 0 24px -4px var(--accent-a30, rgba(127, 255, 212, .3)), 0 0 0 1px rgba(255, 255, 255, .22) inset !important;
  }
  html body :where(.btn-secondary, #lbAddBtn + button, #cartDrawer .btn-buy[data-no-kids], #cartDrawer button[onclick^="applyPromoCode"]):hover {
    transform: translateY(-2px) !important;
    border-color: var(--accent, #7fffd4) !important;
    box-shadow: 0 0 20px -6px var(--accent-a30, rgba(127, 255, 212, .3)) !important;
  }
}
html body :where(.btn-primary, .cta-btn, .btn-buy, .btn-secondary, #lbAddBtn + button, #cartDrawer button[onclick^="applyPromoCode"]):active {
  transform: scale(.98) !important;
  transition-duration: var(--pm-dur-1) !important;
}

/* Coming-soon items: the product view greys its buttons out inline (cursor
   default, no click), so they keep that muted look. Disabled buttons too. */
html body :where(#lbAddBtn, #lbAddBtn + button)[style*="cursor: default"],
html body :where(.btn-primary, .cta-btn, .btn-buy, .btn-secondary):disabled {
  background: rgba(100, 116, 139, .3) !important;
  border: 1px solid rgba(148, 163, 184, .2) !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: .6;
  cursor: default;
}

/* Chips: price and availability filters, categories and page numbers.
   One shape and one active state; each keeps its own resting colour. */
html body :where(.price-pill, .avail-pill, .mega-link, .filter-btn, .grid-controls button) {
  border-radius: 999px !important;
  transition: transform var(--pm-dur-2) var(--pm-ease-out),
              background-color var(--pm-dur-2) var(--pm-ease-out),
              border-color var(--pm-dur-2) var(--pm-ease-out),
              box-shadow var(--pm-dur-2) var(--pm-ease-out) !important;
}
html body .grid-controls button[aria-pressed] {
  min-width: 36px;
  min-height: 32px;
  padding: 0 12px !important;
  font-weight: 600 !important;
}
html body .grid-controls button[aria-pressed="false"] {
  background: rgba(30, 41, 59, .8) !important;
  border: 1px solid rgba(148, 163, 184, .3) !important;
  color: #cbd5e1 !important;
}
html body .filter-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px !important;
  background: rgba(30, 41, 59, .8) !important;
  border: 1px solid rgba(148, 163, 184, .3) !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
}
html body :where(.price-pill, .avail-pill, .mega-link, .filter-btn).active,
html body .grid-controls button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent-pink, #df7cba), var(--accent, #7fffd4)) !important;
  border-color: transparent !important;
  color: var(--accent-ink, #0a0118) !important;
  box-shadow: 0 6px 18px -8px var(--accent-a30, rgba(127, 255, 212, .3)) !important;
}
@media (hover: hover) {
  html body :where(.price-pill, .avail-pill, .mega-link, .filter-btn, .grid-controls button):not(.active):not([aria-pressed="true"]):not(:disabled):hover {
    transform: translateY(-2px);
    border-color: var(--accent, #7fffd4) !important;
  }
}
html body .filter-btn:disabled { opacity: .4 !important; cursor: default; }

/* Colour swatches: a ring in the brand accent around the chosen colour, with
   a dark gap so black and navy swatches still read as chosen. The circle
   stays 30px; the invisible ::after makes each one a 44px tap target. */
html body .color-swatch {
  position: relative;
  width: 30px !important;
  height: 30px !important;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .22) !important;
  box-shadow: none !important;
  transition: transform var(--pm-dur-1) var(--pm-ease-out), box-shadow var(--pm-dur-2) var(--pm-ease-out) !important;
}
html body .color-swatch::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
html body .color-swatch[aria-pressed="true"] {
  border-color: var(--n-900, #0a0118) !important;
  box-shadow: 0 0 0 2px var(--accent, #7fffd4) !important;
}
@media (hover: hover) {
  html body .color-swatch:hover { transform: translateY(-2px); }
}
html body .color-swatch:active { transform: scale(.92); }

/* Search and sort: they had a bright blue outline that matched nothing
   else. Now a soft line in the brand accent, the button corners, and a
   brighter accent line when focused. */
html body :where(#searchInput, #sortSelect) {
  min-height: 44px !important;
  border-radius: var(--pm-btn-r) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-color: color-mix(in srgb, var(--accent, #7fffd4) 32%, transparent) !important;
  transition: border-color var(--pm-dur-2) var(--pm-ease-out), box-shadow var(--pm-dur-2) var(--pm-ease-out);
}
html body :where(#searchInput, #sortSelect):is(:hover, :focus) {
  border-color: var(--accent, #7fffd4) !important;
}
html body :where(#searchInput, #sortSelect):focus {
  box-shadow: 0 0 0 3px var(--accent-a20, rgba(127, 255, 212, .2)) !important;
}

/* Size and sort menus: the same height and corners as the buttons, and one
   drawn chevron in place of each browser's own arrow. */
html body :where(select[id^="sz_"], #lbSize, #sortSelect) {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px !important;
  border-radius: var(--pm-btn-r) !important;
  padding-right: 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px !important;
  transition: border-color var(--pm-dur-2) var(--pm-ease-out);
}
html body :where(select[id^="sz_"], #lbSize):hover { border-color: var(--accent, #7fffd4) !important; }

/* ---------- 4. Reduced motion -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .gooey-canvas-container, .unicorn-overlay, #webgl-canvas { display: none !important; }
  .fade-in, html.pm-js .pm-reveal { opacity: 1 !important; transform: none !important; }
}
