  :root {
      --blur-intensity: 25px;
      --glass-bg: rgba(255, 255, 255, 0.2);
      --glass-border: rgba(255, 255, 255, 0.4);
      --text-color: #1a1a1a;
      --text-color-light: #4b4b4b;
      --button-bg: rgba(255, 255, 255, 0.3);
      --button-hover: rgba(255, 255, 255, 0.6);
      --primary-accent-h: 200;
      --primary-accent-s: 100%;
      --primary-accent-l: 50%;

      --primary-accent: hsl(var(--primary-accent-h), var(--primary-accent-s), var(--primary-accent-l));
      --primary-accent-hover: hsl(var(--primary-accent-h), var(--primary-accent-s), calc(var(--primary-accent-l) + 10%));
      --primary-accent-shadow: hsla(var(--primary-accent-h), var(--primary-accent-s), var(--primary-accent-l), 0.2);
      --primary-accent-shadow-hover: hsla(var(--primary-accent-h), var(--primary-accent-s), var(--primary-accent-l), 0.4);

      --primary-accent-light: hsl(var(--primary-accent-h), var(--primary-accent-s), calc(var(--primary-accent-l) + 15%));
      --primary-accent-lighter: hsl(var(--primary-accent-h), var(--primary-accent-s), calc(var(--primary-accent-l) + 30%));
      --primary-accent-dark: hsl(var(--primary-accent-h), var(--primary-accent-s), calc(var(--primary-accent-l) - 15%));
      --primary-accent-darker: hsl(var(--primary-accent-h), var(--primary-accent-s), calc(var(--primary-accent-l) - 30%));

      /* Same hue, dark enough for white text to pass WCAG AA (4.9:1). The
         brand blue (#00aaff) is only 2.6:1 against white, so it stays for
         decoration (borders, glows, gradients) and these carry anything
         readable — button labels, icon-only buttons, accent-coloured text. */
      --primary-accent-strong: hsl(200, 100%, 35%);
      --primary-accent-strong-hover: hsl(200, 100%, 29%);
  }

  /* Keyboard focus: always visible, never suppressed. Uses :focus-visible
     so mouse clicks on links/buttons don't draw a ring but Tab navigation
     always does. */
  a:focus-visible,
  button:focus-visible,
  select:focus-visible,
  input[type="checkbox"]:focus-visible,
  input[type="radio"]:focus-visible,
  [tabindex]:focus-visible,
  summary:focus-visible {
      outline: 3px solid #1a1a1a !important;
      outline-offset: 2px;
      box-shadow: 0 0 0 5px #ffffff;
  }

  /* Text fields match :focus-visible even on a mouse click (the caret is
     always "keyboard focus"), so the heavy ring above made every click on
     a search box look broken. They get a soft accent ring instead — still
     clearly visible for keyboard users. Fields that draw their own focus
     state (.site-search via :focus-within, the search page's hero input)
     opt out entirely. */
  input:not([type="checkbox"]):not([type="radio"]):focus-visible,
  textarea:focus-visible {
      outline: 2px solid var(--primary-accent-strong);
      outline-offset: 1px;
  }

  .site-search-input:focus-visible,
  .search-page-hero-input:focus-visible {
      /* !important: the :not([type]) selector above outranks a single class. */
      outline: none !important;
  }

  .skip-link {
      position: absolute;
      left: 12px;
      top: -60px;
      z-index: 4000;
      background: #1a1a1a;
      color: #fff;
      padding: 10px 18px;
      border-radius: 10px;
      font-weight: 600;
      text-decoration: none;
      transition: top 0.15s ease;
  }

  .skip-link:focus {
      top: 12px;
      color: #fff;
  }

  @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;
      }
  }

  body {
      margin: 0;
      padding: 40px 0px 0px 0px;
      scrollbar-width: thin !important;
      scrollbar-color: rgba(100, 100, 100, 0.2) transparent !important;
      scrollbar-gutter: stable !important;
      scroll-behavior: smooth !important;
      min-height: 100vh !important;
      display: flex;
      justify-content: center;
      align-items: center;
      background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
      font-family: 'SF Pro Display', sans-serif;
      flex-direction: column;

  }

  .montserrat {
      font-family: 'Montserrat';
  }


  .ui-section-title {
      color: var(--text-color);
      text-align: center;
      margin-top: 60px;
      margin-bottom: 25px;
      font-size: 2rem;
      font-weight: 600;
      width: 100%;
  }



  /* ===================================================================
     Product card (.pcard) — the one compact card used for every product
     listing (markup: components/product-card.php). Nothing is hidden
     behind hover, so it works the same on touch screens; one action (add
     to cart) plus quick view on the image, and the whole card links to
     the product.
     =================================================================== */
  .pcard {
      position: relative;
      display: flex;
      flex-direction: column;
      height: 100%;
      width: 100%;
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.08);
      border-radius: 14px;
      overflow: hidden;
      transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }

  .pcard:hover {
      border-color: rgba(0, 119, 179, 0.35);
      box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
      transform: translateY(-2px);
  }

  .pcard-media {
      position: relative;
      display: block;
      aspect-ratio: 1 / 1;
      background: #f6f8fa;
  }

  .pcard-media img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      padding: 12px;
      box-sizing: border-box;
      transition: transform 0.25s ease;
  }

  .pcard:hover .pcard-media img {
      transform: scale(1.04);
  }

  .pcard-oos .pcard-media img {
      filter: grayscale(100%);
      opacity: 0.6;
  }

  .pcard-badge {
      position: absolute;
      top: 8px;
      left: 8px;
      padding: 2px 8px;
      border-radius: 6px;
      font-size: 0.7rem;
      font-weight: 700;
      color: #fff;
  }

  .pcard-badge-sale {
      background: #c4161c;
  }

  .pcard-badge-new {
      background: var(--primary-accent-strong);
  }

  .pcard-quick {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 1px solid rgba(0, 0, 0, 0.08);
      background: rgba(255, 255, 255, 0.95);
      color: #1a1a1a;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease;
  }

  .pcard-quick:hover {
      background: var(--primary-accent-strong);
      color: #fff;
  }

  .pcard-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 10px 12px 12px;
  }

  .pcard-brand {
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: #5c6670;
  }

  .pcard-title {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 2.6em;
      line-height: 1.3;
      font-size: 0.86rem;
      font-weight: 600;
      color: #1a1a1a;
      text-decoration: none;
  }

  .pcard-title:hover {
      color: var(--primary-accent-strong);
      text-decoration: underline;
  }

  /* The title link covers the whole card, so anywhere on it opens the
     product; the quick-view and cart buttons sit above it. */
  .pcard-title::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 1;
  }

  .pcard-quick,
  .pcard-cart {
      z-index: 2;
  }

  .pcard-price-row {
      display: flex;
      align-items: baseline;
      flex-wrap: wrap;
      gap: 2px 8px;
  }

  .pcard-price {
      font-size: 1rem;
      font-weight: 700;
      color: #1a1a1a;
  }

  .pcard-price-old {
      font-size: 0.76rem;
      color: #5c6670;
      text-decoration: line-through;
  }

  .pcard-foot {
      margin-top: auto;
      padding-top: 6px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
  }

  .pcard-stock {
      font-size: 0.72rem;
      font-weight: 600;
  }

  .pcard-stock::before {
      content: '';
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      margin-right: 5px;
      vertical-align: middle;
      background: currentColor;
  }

  .pcard-stock-ok { color: #1a7f2a; }
  .pcard-stock-low { color: #8a5a00; }
  .pcard-stock-out { color: #b02a37; }

  .pcard-cart {
      position: relative;
      flex-shrink: 0;
      width: 36px;
      height: 36px;
      border: none;
      border-radius: 10px;
      background: var(--primary-accent-strong);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.15s ease;
  }

  .pcard-cart:hover {
      background: var(--primary-accent-strong-hover);
  }

  .pcard-cart:disabled {
      background: #c9ced3;
      cursor: not-allowed;
  }

  /* Horizontal-scrolling rows of cards (homepage brand/category rows,
     related products). Scoped to the wrapper because product.php also
     uses .product-carousel for its Embla image gallery, which must not
     pick up this gap/padding/scrolling. */
  .product-carousel-wrapper {
      position: relative;
  }

  .product-carousel-wrapper .product-carousel {
      display: flex;
      flex-wrap: nowrap;
      overflow-x: auto;
      gap: 14px;
      padding: 6px 4px 14px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
  }

  .product-carousel-wrapper .product-carousel::-webkit-scrollbar {
      display: none;
  }

  .col-card {
      flex: 0 0 190px;
      max-width: 190px;
  }

  @media (max-width: 576px) {
      .col-card {
          flex-basis: 160px;
          max-width: 160px;
      }

      .pcard-body {
          padding: 8px 10px 10px;
      }
  }

  .title {
      font-size: 1.4rem;
      font-weight: 600;
      text-align: center;
  }


  .card-full {
      width: 100%;
      height: 100%;
      padding: 40px;
      /* more padding for bigger look */
      border-radius: 30px;
      backdrop-filter: blur(var(--blur-intensity));
      -webkit-backdrop-filter: blur(var(--blur-intensity));
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      color: var(--text-color);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
      position: relative;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .card-full:hover {
      transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
      box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
  }

  .image-placeholder-full {
      width: 100%;
      aspect-ratio: 1/1;
      border-radius: 25px;
      background: rgba(255, 255, 255, 0.1);
      border: 1px dashed rgba(255, 255, 255, 0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      position: relative;
  }

  .instock-pill-full {
      position: absolute;
      top: 10px;
      right: 10px;
      padding: 5px 14px;
      border-radius: 50px;
      font-size: 0.8rem;
      font-weight: 600;
      color: #fff;

      background: rgba(52, 185, 56, 0.849);
      border: 1px solid rgba(255, 255, 255, 0.25);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);

      box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
      transition: opacity 0.3s ease;
      animation: pillPulse 3s ease-in-out infinite;
  }

  .card-full:hover .instock-pill-full {
      opacity: 0;
  }

  .title-full {
      font-size: 2rem;
      font-weight: 600;
      text-align: center;
      margin-bottom: 5px;
  }

  .price-full {
      font-size: 2.4rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 80px;
      color: #4b4b4bff;
      text-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  }

  .actions-full {
      position: absolute;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%) translateY(100%);
      width: 90%;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      opacity: 0;
      transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .card-full:hover .actions-full {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
  }

  .actions-full button {
      border: none;
      border-radius: 16px;
      backdrop-filter: blur(12px);
      font-weight: 500;
      cursor: pointer;
      transition: background 0.3s ease, transform 0.2s ease;
  }

  .actions-full button:first-child,
  .actions-full button:last-child {
      flex: 0 0 60px;
      padding: 12px;
      font-size: 1.4rem;
  }

  .actions-full button:nth-child(2) {
      flex: 1;
      padding: 12px 24px;
  }

  .actions-full button:hover {
      transform: translateY(-2px);
  }


  /* Base header */
  .header-nav {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      width: 95%;
      max-width: 1200px;
      padding: 12px 25px;
      border-radius: 20px;
      backdrop-filter: blur(var(--blur-intensity));
      -webkit-backdrop-filter: blur(var(--blur-intensity));
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 1000;
  }

  .header-nav .logo {
      max-width: 160px;
  }

  /* Desktop nav */
  .header-nav .nav-links {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 30px;
  }

  .header-nav .nav-links a {
      color: var(--text-color-light);
      text-decoration: none;
      font-weight: 500;
      transition: 0.2s;
  }

  .header-nav .nav-links a:hover {
      color: var(--text-color);
  }

  /* Actions */
  .header-nav .nav-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      position: relative;
  }

  /* Hamburger */
  .hamburger {
      display: none;
      background: transparent;
      border: none;
      font-size: 1.5rem;
      color: var(--text-color-light);
      cursor: pointer;
  }

  /* --- Mobile Styles --- */
  @media (max-width: 991px) {
      .header-nav {
          flex-wrap: wrap;
          /* allow stacking */
          justify-content: space-between;
      }

      .header-nav .nav-links {
          position: static !important;
          transform: none !important;
          /* removes the quick snap */
          display: none;
          flex-direction: column;
          gap: 15px;
          width: 100%;
          margin-top: 10px;
          padding: 15px;
          border-radius: 15px;
          background: var(--glass-bg);
          border: 1px solid var(--glass-border);
          backdrop-filter: blur(var(--blur-intensity));
          box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
          text-align: center;
      }

      .header-nav .nav-links.show {
          display: flex;
          animation: fadeIn 0.3s ease;
      }

      .nav-links a.btn-base {
          display: flex;
          justify-content: center;
          align-items: center;
          gap: 8px;
          padding: 10px;
      }

      .hamburger {
          display: block;
          z-index: 1100;
          /* keep above */
      }

      .header-nav .nav-actions {
          gap: 8px;
      }
  }

  @keyframes fadeIn {
      from {
          opacity: 0;
          transform: translateY(-10px);
      }

      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  /* ===================================================================
     Traditional storefront header (homepage + a few info pages that share
     $p == 'home' in components/header.php): top utility bar, logo/search/
     account row, and a category dropdown bar — replaces the old floating
     pill nav on those pages only. Other pages keep .header-nav untouched.
     =================================================================== */

  .site-header-wrap {
      position: sticky;
      top: 0;
      z-index: 1000;
      /* body is a flex column with align-items:center for the OLD
         floating-pill header design — that shrink-wraps + centers every
         direct child to its own content width by default, which is why
         this was only ever as wide as the category list. Stretch across
         the full cross-axis instead of letting it size to content. */
      align-self: stretch;
      width: 100%;
      /* This header's height changes (topbar/category-nav collapsing) as it
         condenses on scroll. Without this, the browser's scroll anchoring
         tries to compensate for that shift by nudging the scroll position
         itself, which the condense/expand scroll handler then misreads as
         the user scrolling — causing the whole thing to flicker between
         states. Opting this element out of anchoring stops that feedback
         loop at the source. */
      overflow-anchor: none;
  }

  /* Scroll-condensed header (assets/script/components.js toggles this class
     based on scroll direction): the topbar and category nav collapse away,
     and the main header row shrinks into a centered floating pill holding
     just the logo and search bar. */
  .site-topbar,
  .category-nav {
      max-height: 200px;
      opacity: 1;
      transition: max-height 0.3s ease, opacity 0.25s ease;
  }

  /* The topbar never contains anything that needs to escape its box, so it
     can stay clipped at all times. .category-nav does — its dropdown panels
     render below the bar via position:absolute, and overflow:hidden on any
     ancestor clips them regardless of that absolute positioning. Only clip
     while actually condensed (collapsing to 0 height), where the nav isn't
     interactive anyway; leave it visible the rest of the time so hovering a
     category can actually show its dropdown. */
  .site-topbar {
      overflow: hidden;
  }

  .site-header-wrap.header-condensed .site-topbar,
  .site-header-wrap.header-condensed .category-nav {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
  }

  .site-header {
      transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  }

  .site-header-wrap.header-condensed .site-header {
      background: transparent;
      border-bottom-color: transparent;
      box-shadow: none;
      padding: 10px 0;
  }

  .site-header-inner {
      transition: max-width 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease, padding 0.3s ease;
  }

  .site-header-wrap.header-condensed .site-header-inner {
      max-width: 720px;
      margin: 0 auto;
      background: #ffffff;
      border-radius: 50px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
      padding: 8px 14px 8px 20px;
      gap: 12px;
  }

  /* Account/cart ride along in the condensed pill too, right next to the
     search bar, instead of disappearing on scroll — just trimmed down (no
     text labels, smaller icons) so the pill stays compact. The hamburger
     stays hidden; it's mobile-only (d-lg-none) and irrelevant at the
     desktop widths this pill applies to. */
  .site-header-wrap.header-condensed .hamburger {
      display: none;
  }

  .site-header-wrap.header-condensed .site-header-icons {
      gap: 2px;
  }

  .site-header-wrap.header-condensed .site-header-icon {
      min-width: auto;
      padding: 6px;
  }

  .site-header-wrap.header-condensed .site-header-icon-label {
      /* Overrides Bootstrap's d-xl-inline (display:inline !important at
         >=1200px) which would otherwise win on wide viewports and break the
         compact pill. */
      display: none !important;
  }

  .site-logo img {
      transition: max-width 0.3s ease;
  }

  .site-header-wrap.header-condensed .site-logo img {
      max-width: 110px;
  }

  .site-topbar {
      background: #f7f9fb;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      color: var(--text-color-light, #4b4b4b);
      font-size: 0.82rem;
  }

  .site-topbar-inner {
      width: 100%;
      padding: 7px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 20px;
  }

  .site-topbar-contact a,
  .site-topbar-links a {
      color: var(--text-color-light, #4b4b4b);
      text-decoration: none;
      margin-right: 20px;
      transition: color 0.2s ease;
  }

  .site-topbar-links a {
      margin-right: 0;
      margin-left: 20px;
  }

  .site-topbar-contact a:hover,
  .site-topbar-links a:hover {
      color: var(--primary-accent-strong);
  }

  .site-header {
      background: #ffffff;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  }

  .site-header-inner {
      width: 100%;
      padding: 16px 24px;
      display: flex;
      align-items: center;
      gap: 28px;
  }

  .site-logo img {
      max-width: 150px;
      display: block;
  }

  .site-search {
      flex: 1;
      display: flex;
      max-width: 620px;
      margin: 0 auto;
      background: #f3f5f7;
      border: 1px solid #e6e9ec;
      border-radius: 50px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .site-search:focus-within {
      border-color: var(--primary-accent);
      box-shadow: 0 0 0 3px var(--primary-accent-shadow, rgba(0, 153, 255, 0.15));
      background: #ffffff;
  }

  .site-search-input {
      flex: 1;
      padding: 12px 22px;
      border: none;
      border-radius: 50px 0 0 50px;
      background: transparent;
      font-size: 0.92rem;
      outline: none;
      -webkit-appearance: none;
      appearance: none;
  }

  .site-search-btn {
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      margin: 4px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--primary-accent-strong);
      color: #fff;
      cursor: pointer;
      transition: background 0.2s ease;
  }

  .site-search-btn:hover {
      background: var(--primary-accent-strong-hover);
  }

  .site-header-icons {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-left: auto;
  }

  .site-header-icon {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      min-width: 52px;
      padding: 6px 8px;
      border-radius: 12px;
      color: var(--text-color);
      text-decoration: none;
      font-size: 0.68rem;
      font-weight: 600;
      transition: background 0.15s ease;
  }

  .site-header-icon:hover {
      background: rgba(0, 153, 255, 0.08);
      color: var(--text-color);
  }

  .site-header-icon i {
      font-size: 1.25rem;
      color: var(--primary-accent-darker, var(--primary-accent));
  }

  .site-header-icon:hover i {
      color: var(--primary-accent);
  }

  .site-header-icon .cart-counter {
      font-size: 0.6rem;
  }

  .category-nav {
      background: #f0f7ff;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .category-nav-inner {
      width: 100%;
      padding: 0 24px;
  }

  .category-nav-list {
      list-style: none;
      display: flex;
      margin: 0;
      padding: 0;
  }

  .category-nav-item {
      position: relative;
  }

  .category-nav-item > a {
      display: block;
      padding: 12px 18px;
      color: var(--primary-accent-darker, #004d80);
      text-decoration: none;
      font-weight: 600;
      font-size: 0.88rem;
      white-space: nowrap;
      transition: background 0.2s ease;
  }

  .category-nav-item > a:hover,
  .category-nav-item > a.active {
      background: rgba(0, 153, 255, 0.1);
  }

  .category-nav-item > a.active {
      box-shadow: inset 0 -3px 0 var(--primary-accent, #0099ff);
  }

  /* .category-nav-dropdown is the hoverable hit area, not the visible panel
     — it starts flush against the nav link (top:100%, no gap) and extends a
     few px past the visible panel's edges via padding, so the cursor is
     still "inside" this element (and therefore still inside
     .category-nav-item, keeping :hover active) while crossing from the link
     down into the panel. A literal gap here (the old margin-top approach)
     is dead space the mouse can slip through, closing the dropdown before
     it's reached — which is what made it fiddly to actually use. The real
     white box is .category-nav-dropdown-panel, a child that carries all the
     visible styling. */
  .category-nav-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      padding-top: 6px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.15s;
      transform: translateY(6px);
      z-index: 1001;
  }

  /* :focus-within opens the same dropdown for keyboard users — tabbing onto
     a category link reveals its subcategories, and they stay open while
     focus moves through them. */
  .category-nav-item:hover .category-nav-dropdown,
  .category-nav-item:focus-within .category-nav-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .category-nav-dropdown-panel {
      min-width: 220px;
      background: #ffffff;
      border-radius: 12px;
      box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
      padding: 8px;
  }

  .category-nav-dropdown a {
      display: block;
      padding: 9px 14px;
      border-radius: 8px;
      color: var(--text-color);
      text-decoration: none;
      font-size: 0.88rem;
  }

  .category-nav-dropdown a:hover {
      background: rgba(0, 153, 255, 0.08);
      color: var(--primary-accent-darker, var(--primary-accent));
  }

  .mobile-nav-panel {
      display: none;
      flex-direction: column;
      gap: 4px;
      padding: 16px;
      background: #ffffff;
      border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .mobile-nav-panel.show {
      display: flex;
      animation: fadeIn 0.3s ease;
  }

  .mobile-nav-panel .site-search-input {
      border-radius: 50px 0 0 50px;
  }

  .mobile-nav-link {
      padding: 10px 4px;
      color: var(--text-color);
      text-decoration: none;
      font-weight: 500;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .mobile-nav-link .cart-counter {
      margin-left: 8px;
  }

  @media (max-width: 991px) {
      .site-header-inner {
          padding: 12px 16px;
          gap: 14px;
      }

      .site-logo img {
          max-width: 120px;
      }

      .site-header-icons {
          gap: 16px;
      }
  }

  /* Desktop, expanded header only (not the scroll-condensed pill, which
     keeps its own tight logo+search layout below): the search bar sticks to
     the right, flush against the account/cart icons, instead of floating in
     the middle of the row. margin-left:auto on .site-search eats all the
     free space ahead of it, pulling both it and the icon group (right after
     it in DOM order) over to the right edge as one unit, with the logo
     staying put on the left. Scoped to >=992px because below that the
     search form is hidden entirely (.d-none.d-lg-flex) and the mobile
     hamburger button takes its place. */
  @media (min-width: 992px) {
      .site-header-wrap:not(.header-condensed) .site-header-inner .site-search {
          flex: 0 1 440px;
          margin: 0 0 0 auto;
      }

      .site-header-wrap:not(.header-condensed) .site-header-icons {
          margin-left: 0;
      }

      /* Search page hides the header's search form (it has its own hero
         search box in the page body) — fall back to pushing the icon group
         itself to the right so it doesn't collapse back next to the logo. */
      .site-header-wrap:not(.header-condensed) .site-header-inner:not(:has(.site-search)) .site-header-icons {
          margin-left: auto;
      }
  }

  /* --- Skeleton loading placeholders --------------------------------- */
  /* Every .pcard (product card, used site-wide) is hidden until
     components.js marks the page ready, so a matching skeleton card —
     inserted as its sibling — is what actually paints first. Driven from
     components.css (render-blocking, in <head>) rather than an inline
     style, so there's no flash of real content before the skeleton. */
  body:not(.content-ready) .pcard {
      display: none !important;
  }

  .skeleton-card {
      display: none;
      flex-direction: column;
      height: 100%;
      border-radius: 14px;
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.06);
      overflow: hidden;
  }

  body.skeleton-active .skeleton-card {
      display: flex;
  }

  .skeleton-shimmer {
      background: linear-gradient(90deg, #e9edf1 25%, #f4f6f8 37%, #e9edf1 63%);
      background-size: 400% 100%;
      animation: skeleton-shimmer 1.4s ease infinite;
      border-radius: 6px;
  }

  @keyframes skeleton-shimmer {
      0% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
  }

  .skeleton-img {
      width: 100%;
      aspect-ratio: 1 / 1;
      border-radius: 0;
  }

  .skeleton-body {
      display: flex;
      flex-direction: column;
      gap: 7px;
      padding: 10px 12px 12px;
      flex: 1;
  }

  .skeleton-line {
      height: 12px;
      width: 90%;
  }

  .skeleton-line.short {
      width: 40%;
      height: 10px;
  }

  .skeleton-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: auto;
      padding-top: 4px;
  }

  .skeleton-btn {
      width: 36px;
      height: 36px;
      border-radius: 10px;
  }





  .btn-base {
      border: none;
      border-radius: 14px;
      padding: 12px 25px;
      font-weight: 600;
      cursor: pointer;
      font-size: 1rem;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      transition: all 0.2s ease;
  }

  .btn-base:hover {
      transform: translateY(-2px);
  }

  .btn-disabled {
      opacity: 0.6;
      background-color: #b3b3b3 !important;
      color: white;
      cursor: not-allowed;
      pointer-events: none;
      transform: none !important;
  }

  .btn-base:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
  }

  .btn-style1 {

      background: var(--primary-accent-strong);
      color: white;
      box-shadow: 0 4px 15px var(--primary-accent-shadow);
  }

  .btn-style1:hover {
      background: var(--primary-accent-strong-hover);
      color: white;
      box-shadow: 0 6px 20px var(--primary-accent-shadow-hover);
  }

  .btn-style2 {
      background: var(--button-bg);
      color: var(--text-color);
      border: 1px solid var(--glass-border);
  }

  .btn-style2:hover {
      background: var(--button-hover);
  }

  .btn-style3 {
      background: linear-gradient(135deg,
              var(--primary-accent-light),
              var(--primary-accent),
              var(--primary-accent-dark));
      color: white;
      text-transform: uppercase;
      letter-spacing: 1px;
      box-shadow: 0 4px 20px var(--primary-accent-shadow),
          0 0 12px var(--primary-accent-light);
      animation: pulseGlow 2.5s infinite;
  }

  /* Hover state */
  .btn-style3:hover {
      transform: translateY(-3px) scale(1.05);
      box-shadow: 0 6px 25px var(--primary-accent-shadow-hover),
          0 0 18px var(--primary-accent-lighter);
  }

  /* Pulse glow animation */
  @keyframes pulseGlow {
      0% {
          box-shadow: 0 4px 20px var(--primary-accent-dark),
              0 0 12px var(--primary-accent-light);
      }

      50% {
          box-shadow: 0 6px 28px var(--primary-accent-darker),
              0 0 20px var(--primary-accent-lighter);
      }

      100% {
          box-shadow: 0 4px 20px var(--primary-accent-dark),
              0 0 12px var(--primary-accent-light);
      }
  }


  .btn-small {
      padding: 8px 16px;
      font-size: 0.9rem;
      border-radius: 12px;
  }


  .input-field {
      width: 100%;
      padding: 15px 20px;
      border-radius: 14px;
      border: 1px solid var(--glass-border);
      background: var(--glass-bg);
      color: var(--text-color);
      font-size: 1rem;
      font-weight: 500;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      transition: all 0.3s ease;
  }

  .input-field::placeholder {
      color: var(--text-color-light);
      opacity: 0.7;
  }

  .input-field:focus {
      outline: none;
      border-color: var(--primary-accent);
      box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  }

  .input-group {
      display: flex;
      width: 100%;
      align-items: stretch;
      gap: 0;
  }

  .input-group .input-field {
      flex: 1;
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
      border-right: none;
      height: 100%;
      box-sizing: border-box;
  }

  .input-group .btn-base,
  .input-group .input-label {
      height: 100%;
      padding: 0 25px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
  }


  .input-group .input-label {
      display: flex;
      align-items: center;
      padding: 0 20px;
      background: var(--button-bg);
      border: 1px solid var(--glass-border);
      border-left: 0;
  }


  .custom-checkbox {
      display: flex;
      align-items: center;
      cursor: pointer;
      color: var(--text-color);
      user-select: none;
  }

  .custom-checkbox input {
      display: none;
  }

  .custom-checkbox .checkmark {
      width: 24px;
      height: 24px;
      border-radius: 7px;
      margin-right: 12px;
      position: relative;
      background: rgba(255, 255, 255, 0.35);
      /* slightly more opaque */
      border: 2px solid var(--primary-accent);
      /* accent border for visibility */
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      /* soft shadow for depth */
      transition: background 0.2s, border 0.2s, box-shadow 0.2s;
  }

  /* On hover/focus, add a glow */
  .custom-checkbox:hover .checkmark,
  .custom-checkbox input:focus+.checkmark {
      box-shadow: 0 0 0 4px var(--primary-accent-shadow);
      border-color: var(--primary-accent-dark);
  }

  /* Checked state: keep accent color */
  .custom-checkbox input:checked+.checkmark {
      background: var(--primary-accent);
      border-color: var(--primary-accent-dark);
  }

  .custom-checkbox .checkmark::after {
      content: "\f00c";
      font-family: "Font Awesome 6 Free";
      font-weight: 900;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0);
      font-size: 14px;
      color: #fff;
      transition: transform 0.2s ease;
  }

  .custom-checkbox input:checked+.checkmark {
      background: var(--primary-accent);
      border-color: transparent;
  }

  .custom-checkbox input:checked+.checkmark::after {
      transform: translate(-50%, -50%) scale(1);
  }

  /* Glassmorphism Tooltip */
  .glass-tooltip {
      position: absolute;
      z-index: 100;
      left: 50%;
      bottom: 120%;
      transform: translateX(-50%);
      min-width: 110px;
      padding: 10px 18px;
      border-radius: 16px;
      background: var(--glass-bg, rgba(255, 255, 255, 0.25));
      border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.4));
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      color: var(--text-color, #1a1a1a);
      font-size: 0.95rem;
      font-weight: 500;
      box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s, transform 0.18s;
      white-space: nowrap;
  }

  /* Tooltip arrow */
  .glass-tooltip::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border-width: 8px 8px 0 8px;
      border-style: solid;
      border-color: var(--glass-bg, rgba(255, 255, 255, 0.25)) transparent transparent transparent;
      filter: blur(0.5px);
  }

  /* Show tooltip on hover */
  .has-tooltip:hover .glass-tooltip,
  .has-tooltip:focus .glass-tooltip {
      opacity: 1;
      transform: translateX(-50%) translateY(-6px) scale(1.03);
      pointer-events: auto;
  }


  .dropdown {
      position: relative;
      display: inline-block;
  }


  .color-selector {
      display: flex;
      gap: 10px;
      align-items: center;
  }

  .color-selector .color-swatch {
      position: relative;
  }

  .color-selector input {
      display: none;
      outline: none;
      -webkit-appearance: none;
      appearance: none;
  }


  .color-selector label {
      width: 25px;
      height: 25px;
      border-radius: 50%;
      cursor: pointer;
      display: block;
      border: 3px solid rgba(255, 255, 255, 0.5);
      box-sizing: content-box;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .color-selector label:hover {
      transform: scale(1.1);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }

  .color-selector input:checked+label {
      transform: scale(1.15);
      box-shadow: 0 2px 4px #1a1a1a;
  }

  /* Make the main container a reference for absolute positioning */
  .nav-actions {
      position: relative;
      display: flex;
      align-items: center;
  }

  /* Style for the search bar container */
  .search-container {
      position: absolute;
      top: 0;
      right: 0;
      height: 100%;
      width: 0;
      opacity: 0;
      visibility: hidden;
      overflow: visible;
      transition: width 0.4s ease-in-out, opacity 0.4s ease-in-out;
  }

  .search-container .input-field {
      width: 100%;
      border-right: none;
  }

  #signup-btn {
      white-space: nowrap;
  }

  .nav-actions.search-active .search-container {
      width: 300px;
      opacity: 1;
      visibility: visible;
  }

  /* Dim effect when search is active */
  .container.dimmed,
  .container-fluid.dimmed {
      opacity: 0.5;
      pointer-events: none;
      /* disables interaction */
      transition: opacity 0.3s ease;
  }

  /* Ensure container still animates normally */
  .container,
  .container-fluid {
      transition: opacity 0.3s ease;
  }


  .bg-glass {
      border-radius: 30px;
      backdrop-filter: blur(var(--blur-intensity, 12px));
      -webkit-backdrop-filter: blur(var(--blur-intensity, 12px));
      background: rgba(255, 255, 255, 0.08);
      /* translucent glass */
      border: 1px solid rgba(255, 255, 255, 0.25);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.151);
      /* depth */
      position: relative;
      overflow: hidden;
  }

  /* subtle shine overlay */
  .bg-glass::before {
      content: "";
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(120deg,
              rgba(255, 255, 255, 0.15) 0%,
              rgba(255, 255, 255, 0.05) 40%,
              transparent 60%);
      transform: rotate(25deg);
      animation: shine 6s infinite linear;
      pointer-events: none;
  }

  /* shine animation */
  @keyframes shine {
      0% {
          transform: translateX(-100%) rotate(25deg);
      }

      100% {
          transform: translateX(100%) rotate(25deg);
      }
  }


  .footer {
      position: relative;
      width: 100%;
      margin-top: 80px;
      backdrop-filter: blur(var(--blur-intensity));
      -webkit-backdrop-filter: blur(var(--blur-intensity));
      background: var(--glass-bg);
      border-top: 1px solid var(--glass-border);
      color: var(--text-color-light);
      overflow: hidden;
      z-index: 0;
  }

  .footer-wave {
      position: absolute;
      top: -50px;
      left: 0;
      width: 100%;
      height: 80px;
      background-size: cover;
  }

  .footer-top {
      padding: 60px 0 30px;
  }

  .footer-logo {
      max-width: 160px;
  }

  .footer h5,
  .footer h2.h5 {
      color: var(--text-color);
      margin-bottom: 15px;
      font-weight: 600;
  }

  .footer-business {
      font-style: normal;
      font-size: 0.86rem;
      line-height: 1.6;
      color: var(--text-color-light);
  }

  .footer-business a {
      color: var(--text-color-light);
  }

  .footer-consent {
      display: flex;
      gap: 8px;
      align-items: flex-start;
      font-size: 0.8rem;
      line-height: 1.45;
      color: var(--text-color-light);
  }

  .footer-consent input {
      margin-top: 3px;
      flex-shrink: 0;
  }

  .footer-consent a {
      color: var(--text-color);
  }

  .footer-links {
      list-style: none;
      padding: 0;
      margin: 0;
  }

  .footer-links li {
      margin-bottom: 8px;
  }

  .footer-links a {
      text-decoration: none;
      color: var(--text-color-light);
      transition: 0.2s;
  }

  .footer-links a:hover {
      color: var(--text-color);
  }

  .socials a {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      width: 35px;
      height: 35px;
      margin-right: 10px;
      border-radius: 50%;
      text-decoration: none;
  }

  /* Column: email field row on top, consent checkbox underneath (a row
     layout squeezed the consent text into a narrow column beside the input). */
  .newsletter {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 10px;
      max-width: 420px;
  }

  .newsletter .input-group {
      width: 100%;
  }


  .footer-bottom {
      border-top: 1px solid var(--glass-border);
      text-align: center;
      padding: 15px 0;
      font-size: 0.85rem;
      /* No opacity fade — at 0.7 the #4b4b4b text dropped below 4.5:1. */
      color: var(--text-color-light);
  }

  .cart-center {
      /* Ensure content is vertically aligned in the middle */
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
  }

  /* Optional: Adjust gap between left and center columns if needed */
  .cart-card>div {
      /* Apply some spacing between columns */
      margin-right: 20px;
  }

  .cart-card>div:last-child {
      margin-right: 0;
  }

  /*
 * --------------------------------
 * CART CARD LAYOUT (Outer Flex)
 * --------------------------------
 */
  .cart-card {
      display: flex;
      justify-content: space-between;
      align-items: center;
      /* Vertically centers cart-left and cart-right */
      padding: 18px;
      border-radius: 20px;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(var(--blur-intensity));
      margin-bottom: 16px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
      /* min-height is critical for vertical centering to work */
      min-height: 100px;
  }

  /* Optional: Adjust gap between columns */
  .cart-card>div {
      margin-right: 20px;
  }

  .cart-card>div:last-child {
      margin-right: 0;
  }

  /*
 * --------------------------------
 * CART LEFT (Product Details)
 * --------------------------------
 */
  .cart-left {
      display: flex;
      align-items: center;
      gap: 15px;
  }

  .cart-img {
      width: 90px;
      height: 90px;
      object-fit: cover;
      border-radius: 12px;
  }

  .cart-info {
      /* Set this to column to stack the whole title/variant block with the quantity input */
      display: flex;
      flex-direction: column;
      gap: 6px;
  }

  /* * FIX 1: Title and Variant Side-by-Side 
 * Use a wrapper div around the title and variant to manage their display. 
 * Since the HTML structure is `<a href...><h6/></a><p/>`, 
 * we just need to target the parent container for those two items.
 * Since the parent is .cart-info, we'll ensure they are inline.
 */
  .cart-info a,
  .cart-variant {
      /* These need to be inline elements to sit side-by-side */
      display: inline;
  }

  .cart-title {
      margin: 0;
      font-size: 1rem;
      font-weight: 600;
      /* Add a small gap after the title */
      padding-right: 5px;
  }

  .cart-variant {
      margin: 0;
      font-size: 0.85rem;
      color: gray;
      /* Reset block behavior */
      display: inline;
  }


  /*
 * --------------------------------
 * Quantity Input
 * --------------------------------
 */
  .qty-input {
      display: flex;
      align-items: center;
      gap: 4px;
      width: fit-content;
      background: rgba(255, 255, 255, 0.25);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 8px;
      padding: 2px 6px;
  }

  .qty-input input {
      width: 35px;
      text-align: center;
      border: none;
      background: transparent;
      font-size: 14px;
      font-weight: 500;
      color: #333;
      outline: none;
  }

  .qty-btn {
      background: rgba(0, 0, 0, 0.05);
      color: #333;
      border: none;
      border-radius: 6px;
      width: 22px;
      height: 22px;
      font-size: 14px;
      line-height: 1;
      cursor: pointer;
      transition: 0.2s;
  }

  .qty-btn:hover {
      background: rgba(0, 0, 0, 0.1);
  }

  .qty-btn:disabled {
      opacity: 0.3;
      cursor: not-allowed;
  }


  /*
 * --------------------------------
 * CART RIGHT (Price & Actions)
 * --------------------------------
 */
  .cart-right {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      /* Aligns content to the right */

      /* FIX 2: Vertical Alignment */
      /* Needs to take full height of parent and distribute space */
      height: 100%;
      justify-content: space-between;
  }

  /* * FIX 3: Price Block Centering 
 * This block is one of the two main items in the column (.cart-right). 
 * The space-between above will push it up, so we need to center its *internal* content.
 */
  .cart-price-block {
      text-align: right;
      /* This centers the block's content vertically within the space given by .cart-right */
      margin-top: auto;
      margin-bottom: auto;
  }

  .cart-price {
      font-size: 1rem;
      font-weight: 600;
  }

  .cart-actions {
      display: flex;
      gap: 8px;
      /* Use margin-top: auto to push this block to the bottom of .cart-right. 
       However, 'justify-content: space-between' on .cart-right already handles this. 
       We only need to ensure the other elements don't interfere. 
       The mt-3 class is already adding a margin, so we can override it if needed.
    */
      margin-top: 0 !important;
  }

  .qty-input {
      display: flex;
      align-items: center;
      gap: 4px;
      width: fit-content;
      background: rgba(255, 255, 255, 0.25);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 8px;
      padding: 2px 6px;
  }

  .qty-input input {
      width: 35px;
      text-align: center;
      border: none;
      background: transparent;
      font-size: 14px;
      font-weight: 500;
      color: #333;
      outline: none;
  }

  .qty-btn {
      background: rgba(0, 0, 0, 0.05);
      color: #333;
      border: none;
      border-radius: 6px;
      width: 22px;
      height: 22px;
      font-size: 14px;
      line-height: 1;
      cursor: pointer;
      transition: 0.2s;
  }

  .qty-btn:hover {
      background: rgba(0, 0, 0, 0.1);
  }

  .qty-btn:disabled {
      opacity: 0.3;
      cursor: not-allowed;
  }

  .lg-modal {
      position: fixed;
      inset: 0;
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1050;
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(10px);
      overflow-y: auto;
      padding: 60px 20px;
  }

  .lg-modal.lg-show {
      display: flex;
      animation: lgFadeIn 0.3s ease-out;
  }

  .lg-dialog {
      position: relative;
      background: rgba(255, 255, 255, 0.07);
      backdrop-filter: blur(25px);
      border-radius: 18px;
      padding: 30px;
      max-width: 950px;
      width: 95%;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
      animation: lgFadeIn 0.35s ease-out;
      color: var(--text-color);
      margin: auto;
  }

  .lg-close {
      background: none;
      border: none;
      font-size: 1.8rem;
      cursor: pointer;
      color: var(--text-color);
      position: absolute;
      top: 18px;
      right: 22px;
      z-index: 10;
      transition: 0.2s;
  }

  .lg-close:hover {
      transform: scale(1.15);
  }

  /* ---- Quick view popup (markup: components/footer.php, logic: components.js) ---- */
  html.qv-lock { overflow: hidden; }

  .qv-modal {
      position: fixed;
      inset: 0;
      z-index: 1060;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
  }

  .qv-modal.qv-open {
      display: flex;
  }

  .qv-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.62);
      backdrop-filter: blur(3px);
      animation: qvFade 0.2s ease-out;
  }

  .qv-dialog {
      position: relative;
      width: 100%;
      max-width: 900px;
      max-height: calc(100vh - 40px);
      overflow-y: auto;
      background: #fff;
      color: #1a1a1a;
      border-radius: 18px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
      outline: none;
      animation: qvPop 0.22s ease-out;
  }

  .qv-close {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 2;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1px solid #d5dbe5;
      background: #fff;
      color: #1a1a1a;
      font-size: 1.6rem;
      line-height: 1;
      cursor: pointer;
      display: grid;
      place-items: center;
  }

  .qv-close:hover { background: #f1f4f9; }
  .qv-close:focus-visible,
  .qv-chip:focus-visible,
  .qv-btn:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }

  .qv-body {
      display: grid;
      grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
      gap: 28px;
      padding: 28px;
  }

  .qv-image-box {
      background: #fff;
      border: 1px solid #e6eaf1;
      border-radius: 14px;
      aspect-ratio: 1 / 1;
      display: grid;
      place-items: center;
      overflow: hidden;
  }

  .qv-image-box img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
  }

  .qv-info {
      display: flex;
      flex-direction: column;
      min-width: 0;
      padding-right: 34px; /* room for the close button on narrow layouts */
  }

  .qv-crumbs {
      font-size: 0.85rem;
      font-weight: 600;
      color: hsl(200, 100%, 30%);
      margin-bottom: 6px;
      min-height: 1.2em;
  }

  .qv-title {
      font-size: 1.35rem;
      line-height: 1.3;
      font-weight: 700;
      margin: 0 0 14px;
      overflow-wrap: anywhere;
  }

  .qv-price-row {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 6px 12px;
  }

  .qv-price {
      font-size: 1.9rem;
      font-weight: 800;
      color: #111;
  }

  .qv-price-base {
      font-size: 1.05rem;
      color: #6b7280;
      text-decoration: line-through;
  }

  .qv-save {
      font-size: 0.85rem;
      font-weight: 700;
      color: #0b6b3a;
      background: #e3f6ec;
      border-radius: 999px;
      padding: 3px 10px;
  }

  .qv-stock {
      margin-top: 6px;
      font-size: 0.95rem;
      font-weight: 600;
      min-height: 1.3em;
  }

  .qv-stock.is-in { color: #0b6b3a; }
  .qv-stock.is-low { color: #a35a00; }
  .qv-stock.is-out { color: #b42318; }

  .qv-options-wrap { margin-top: 16px; }

  .qv-label {
      font-size: 0.85rem;
      font-weight: 700;
      color: #4b5563;
      margin-bottom: 8px;
  }

  .qv-options {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
  }

  .qv-chip {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 14px;
      border: 2px solid #c5cfdc;
      border-radius: 10px;
      background: #fff;
      color: #1a1a1a;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
  }

  .qv-chip:hover { border-color: hsl(200, 100%, 35%); }

  .qv-chip.is-selected {
      border-color: hsl(200, 100%, 35%);
      background: hsl(200, 100%, 96%);
      box-shadow: 0 0 0 2px hsla(200, 100%, 35%, 0.18);
  }

  .qv-chip.is-sold { color: #8a94a6; }
  .qv-chip.is-sold small { font-weight: 500; font-size: 0.75rem; }

  .qv-dot {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 1px solid rgba(0, 0, 0, 0.25);
      flex: none;
  }

  .qv-description {
      margin-top: 18px;
      padding-top: 16px;
      border-top: 1px solid #e6eaf1;
      font-size: 0.95rem;
      line-height: 1.6;
      color: #374151;
      max-height: 170px;
      overflow-y: auto;
  }

  .qv-description[hidden] { display: none; }
  .qv-description ul { padding-left: 1.2rem; margin: 0; }
  .qv-description li { margin-bottom: 4px; }
  .qv-description p { margin: 0 0 8px; }

  .qv-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 20px;
  }

  .qv-btn {
      flex: 1 1 170px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 13px 18px;
      border-radius: 12px;
      font-size: 1rem;
      font-weight: 700;
      text-decoration: none;
      cursor: pointer;
      border: 2px solid transparent;
  }

  .qv-btn-primary {
      background: hsl(200, 100%, 35%);
      color: #fff;
  }

  .qv-btn-primary:hover:not(:disabled) { background: hsl(200, 100%, 29%); }

  .qv-btn-primary:disabled {
      background: #d5dbe5;
      color: #5b6577;
      cursor: not-allowed;
  }

  .qv-btn-ghost {
      background: #fff;
      color: hsl(200, 100%, 28%);
      border-color: hsl(200, 100%, 35%);
  }

  .qv-btn-ghost:hover { background: hsl(200, 100%, 96%); }

  @keyframes qvFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes qvPop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

  @media (max-width: 700px) {
      .qv-modal { padding: 0; align-items: flex-end; }
      .qv-dialog { max-height: 94vh; border-radius: 18px 18px 0 0; }
      .qv-body { grid-template-columns: 1fr; gap: 16px; padding: 18px 16px 20px; }
      .qv-image-box { aspect-ratio: 4 / 3; }
      .qv-info { padding-right: 0; }
      .qv-title { font-size: 1.2rem; padding-right: 36px; }
      .qv-price { font-size: 1.6rem; }
      .qv-actions { position: sticky; bottom: 0; background: #fff; padding-top: 12px; margin-bottom: -4px; }
  }

  @media (prefers-reduced-motion: reduce) {
      .qv-backdrop, .qv-dialog { animation: none; }
  }
  @keyframes lgFadeIn {
      from {
          opacity: 0;
          transform: scale(0.95);
      }

      to {
          opacity: 1;
          transform: scale(1);
      }
  }

  .toast {
      position: fixed;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%) translateY(100%);
      min-width: 250px;
      max-width: 90%;
      padding: 15px 20px;
      border-radius: 12px;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(var(--blur-intensity));
      color: var(--text-color);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.4s ease, opacity 0.4s ease;
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 1rem;
      font-weight: 500;
      z-index: 1100;
  }

  .toast.show {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
      pointer-events: auto;
  }

  .toast .toast-icon {
      font-size: 1.2rem;
  }

  .toast .toast-message {
      flex: 1;
      word-wrap: break-word;
      overflow-wrap: break-word;
  }

  .toast .toast-close {
      background: none;
      border: none;
      font-size: 1.2rem;
      cursor: pointer;
      color: var(--text-color-light);
      transition: color 0.2s ease;
      padding: 0;
      /* Added for better alignment */
      line-height: 1;
      /* Added for better alignment */
  }

  .toast .toast-close:hover {
      color: var(--text-color);
  }

  .toast-spinner {
      width: 1.2rem;
      /* Match icon size */
      height: 1.2rem;
      /* Match icon size */
      border: 3px solid var(--text-color-light, #e0e0e0);
      /* Use light text color */
      border-top: 3px solid var(--text-color, #333);
      /* Use main text color */
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      box-sizing: border-box;
      /* Ensure border doesn't add to size */
  }

  @keyframes spin {
      0% {
          transform: rotate(0deg);
      }

      100% {
          transform: rotate(360deg);
      }
  }


  /* Legal / Terms pages */
  .legal-container {
      max-width: 900px;
      margin: 0 auto;
      color: var(--text-color);
      border-radius: 14px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  }

  .legal-container h1 {
      font-weight: 800;
      font-size: 2rem;
      color: var(--primary-accent-darker);
  }

  .legal-container h3 {
      font-size: 1.05rem;
      margin-bottom: 8px;
  }

  .legal-container p {
      line-height: 1.75;
      color: rgba(26, 26, 26, 0.85);
  }

  .legal-container .lead {
      color: var(--text-color-light);
  }

  @media (max-width: 768px) {
      .legal-container {
          padding: 20px !important;
      }
  }
  
  @keyframes pop-badge {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.4); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.pop-animation {
    animation: pop-badge 0.3s ease-out !important;
}

/* ---- Town / area autocomplete (assets/script/city-picker.js) ---- */
.city-picker { position: relative; }
.city-picker-list {
    position: absolute; z-index: 1060; left: 0; right: 0; top: calc(100% + 4px);
    margin: 0; padding: 4px; list-style: none; max-height: 300px; overflow-y: auto;
    background: #fff; border: 1px solid rgba(0, 0, 0, .12); border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}
.city-picker-list li[role="option"] { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.city-picker-list li[role="option"]:hover, .city-picker-list li.active { background: hsl(200, 100%, 95%); }
.city-picker-name { font-weight: 600; color: #1a1a1a; }
.city-picker-area { font-weight: 400; color: #555; }
.city-picker-meta { font-size: .8rem; color: #5d6a82; }
.city-picker-empty { padding: 10px; font-size: .85rem; color: #5d6a82; }

/* ---- Product options (product.php): named options, sold-out state, keyboard focus ---- */
.color-selector { flex-wrap: wrap; }
.color-selector input.color-btn { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.color-selector input.color-btn:focus-visible + label { outline: 3px solid #1a1a1a; outline-offset: 3px; }
.color-selector .option-chip label {
    width: auto; height: auto; border-radius: 999px; padding: 6px 14px; box-sizing: border-box;
    border: 1.5px solid rgba(0, 0, 0, .18); background: #fff; color: #1a1a1a; font-size: .85rem; font-weight: 500; line-height: 1.2;
}
.color-selector .option-chip label:hover { transform: none; box-shadow: none; border-color: hsl(200, 100%, 35%); }
.color-selector .option-chip input:checked + label { transform: none; box-shadow: none; border-color: hsl(200, 100%, 35%); background: hsl(200, 100%, 95%); color: hsl(200, 100%, 25%); font-weight: 600; }
.color-selector .is-sold-out label { opacity: .45; text-decoration: line-through; }

/* ---- Cash on delivery confirmation (checkout.php #cashOnDeliveryModal) ---- */
.cod-modal .lg-dialog { max-width: 520px; width: calc(100vw - 32px); background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid #e3e7ef; box-shadow: 0 24px 60px rgba(15, 23, 42, .25); max-height: calc(100vh - 32px); overflow-y: auto; }
.cod-modal .lg-backdrop { background: rgba(15, 23, 42, .45); }
.cod-modal .lg-title { font-size: 1.25rem; font-weight: 700; color: #1a1a1a; }
.cod-amount { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 16px; margin-bottom: 20px; border-radius: 14px; background: hsl(200, 100%, 96%); border: 1px solid hsl(200, 80%, 85%); }
.cod-amount-label { font-size: .9rem; color: #3d4a5c; font-weight: 600; }
.cod-amount-value { font-size: 2rem; line-height: 1.15; font-weight: 800; color: hsl(200, 100%, 25%); }
.cod-amount-note { font-size: .85rem; color: #3d4a5c; }
.cod-terms-title { font-size: 1rem; font-weight: 700; color: #1a1a1a; margin: 0 0 10px; }
.cod-terms { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.cod-terms li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; line-height: 1.5; color: #1f2937; }
.cod-terms-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #eef2f7; color: hsl(200, 100%, 30%); font-size: .9rem; }
/* Big, high-contrast tick box; the whole row is clickable */
.cod-agree { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid #c5cfdc; border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .15s, background-color .15s; }
.cod-agree:hover { border-color: hsl(200, 100%, 35%); }
.cod-agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cod-agree-box { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; border: 2.5px solid #4b5563; background: #fff; display: grid; place-items: center; color: transparent; font-size: .9rem; transition: all .15s; }
.cod-agree-text { font-size: 1rem; font-weight: 600; color: #1a1a1a; line-height: 1.4; }
.cod-agree input:checked + .cod-agree-box { background: hsl(200, 100%, 35%); border-color: hsl(200, 100%, 35%); color: #fff; }
.cod-agree:has(input:checked) { border-color: hsl(200, 100%, 35%); background: hsl(200, 100%, 97%); }
.cod-agree input:focus-visible + .cod-agree-box { outline: 3px solid #1a1a1a; outline-offset: 3px; }
.cod-footer { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cod-footer { margin-top: 18px; }
.cod-footer #codPlaceOrderBtn:disabled { opacity: 1; background: #d5dbe4 !important; border-color: #d5dbe4 !important; color: #4b5563 !important; cursor: not-allowed; box-shadow: none !important; }
.cod-hint { margin: 8px 0 0; text-align: right; font-size: .85rem; color: #4b5563; }
@media (max-width: 480px) {
    .cod-footer { flex-direction: column-reverse; }
    .cod-footer .btn { width: 100%; }
    .cod-hint { text-align: center; }
    .cod-amount-value { font-size: 1.7rem; }
}
