/* ============================================================
   SAFENCIA — Audit Fixes & Improvements
   Add this file AFTER styles.css in your index.html:
   <link rel="stylesheet" href="safencia-improvements.css">
   ============================================================ */


/* ── 1. TOUCH TARGETS (103 elements were too small) ──────────
   Google requires minimum 44×44px for all clickable elements.
   ------------------------------------------------------------ */
button,
a,
.category-button,
.add-button,
.cart-toggle,
.cart-close,
.icon-button,
.nav-toggle,
.gallery-thumb,
.finder-card,
.finder-chip,
.quantity-controls button {
  min-height: 44px;
  min-width: 44px;
}

/* Keep small inline elements from being stretched awkwardly */
.quantity-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* ── 2. REDUCED MOTION (accessibility & legal compliance) ────
   Respects user OS setting for motion sensitivity.
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ── 3. CONSISTENT IMAGE ASPECT RATIO ────────────────────────
   Fixes the jagged grid caused by mixed 1:1 and 4:3 images.
   ------------------------------------------------------------ */
.product-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ── 4. FREE DELIVERY PROGRESS BAR ──────────────────────────
   The bar existed in CSS but was never rendered — now it is.
   ------------------------------------------------------------ */
.free-delivery-bar {
  margin: 0 1.25rem 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--color-surface-raised, #f8fafc);
  border-radius: 0.5rem;
  border: 1px solid var(--color-border, #e2e8f0);
}

.free-delivery-bar__text {
  font-size: 0.78rem;
  color: var(--color-muted, #64748b);
  margin-bottom: 0.4rem;
}

.free-delivery-bar__track {
  height: 6px;
  background: var(--color-border, #e2e8f0);
  border-radius: 999px;
  overflow: hidden;
}

.free-delivery-bar__fill {
  height: 100%;
  background: var(--color-primary, #3b82f6);
  border-radius: 999px;
  transition: width 0.4s ease;
  width: 0%;
}


/* ── 5. CART TRUST SIGNALS ───────────────────────────────────
   Show trust badges near the checkout button.
   ------------------------------------------------------------ */
.cart-trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  justify-content: center;
  padding: 0.6rem 1rem 0.25rem;
  font-size: 0.72rem;
  color: var(--color-muted, #64748b);
}

.cart-trust-signals span {
  white-space: nowrap;
}



/* ── 7. NAV-TOGGLE Z-INDEX FIX ───────────────────────────────
   Hamburger was z-index 201, nav was 200 — on some Android
   browsers the button disappeared behind the nav overlay.
   ------------------------------------------------------------ */
.nav-toggle {
  z-index: 202;
  position: relative;
}


/* ── 8. WA FLOAT BUTTON — SAFE-AREA FIX ─────────────────────
   Moves the button above Android/iOS system gesture bar so it
   isn't accidentally triggered by swipe gestures.
   ------------------------------------------------------------ */
.wa-float {
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 8px));
}


/* ── 9. PHONE INPUT HINT ─────────────────────────────────────
   Subtle hint so users know the required format.
   ------------------------------------------------------------ */
input[name="phone"]::placeholder {
  color: var(--color-muted, #94a3b8);
}

input[name="phone"]:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px #fee2e2;
}

input[name="phone"]:valid:not(:placeholder-shown) {
  border-color: #22c55e;
}


/* ── WHY SAFENCIA — Brand statement section ──────────────────
   Replaces the old trust band with a richer, SEO-friendly block
   ------------------------------------------------------------ */
.why-safencia {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
  background: linear-gradient(135deg, #1a2e55 0%, #1e3a8a 60%, #1d4ed8 100%);
  color: #fff;
}

.why-safencia__inner {
  max-width: var(--max, 1280px);
  margin: 0 auto;
}

.why-safencia__headline {
  text-align: center;
  margin-bottom: 2.5rem;
}

.why-safencia__headline h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.why-safencia__headline p {
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  color: #bfdbfe;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.why-safencia__pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.why-safencia__pillars li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.why-safencia__pillars li:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.why-safencia__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #60a5fa; /* bright sky blue icons */
  margin-bottom: 0.6rem;
  transition: transform 0.2s, background 0.2s;
}

.why-safencia__pillars li:hover .why-safencia__icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.15);
  color: #93c5fd;
}

.why-safencia__icon svg {
  width: 26px;
  height: 26px;
}

.why-safencia__pillars strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.why-safencia__pillars span {
  font-size: 0.78rem;
  color: #bfdbfe;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .why-safencia__pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .why-safencia__pillars {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .why-safencia__pillars li {
    padding: 1.25rem 0.85rem;
  }
}


/* ============================================================
   ADVANCED PREMIUM E-COMMERCE SEARCH STYLING
   ============================================================ */

/* Elevate header above the scrim so it stays perfectly sharp and clickable */
.site-header {
  position: relative !important;
  z-index: 200 !important;
}

/* Overflow and border-radius override to allow dropdown suggestions */
.header-search {
  position: relative !important;
  overflow: visible !important;
}

.header-search input[type="search"] {
  border-radius: 8px 0 0 8px !important;
  padding-right: 42px !important; /* Make room for the clear button */
}

/* Fix select showing native browser border when overflow is visible */
.header-search select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0 !important;
  border-left: 1px solid #e7edf6 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center !important;
  cursor: pointer;
}

.header-search__button {
  border-radius: 0 8px 8px 0 !important;
  position: relative;
  z-index: 2;
}

/* Background Dim Overlay (Scrim) */
.search-scrim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 199; /* Just below main-nav and header-main */
}

.search-scrim.is-active {
  opacity: 1;
  visibility: visible;
}

/* Sleek Circular Input Clear Button */
.search-clear-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 272px; /* Standard desktop position (select is 210px + button 52px + gap/border) */
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
  min-width: 22px;
  min-height: 22px;
}

.search-clear-btn::before {
  content: "×";
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.search-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.search-clear-btn.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 820px) {
  .search-clear-btn {
    right: 56px; /* Mobile position (button is 46px + gap/border) */
  }
}

/* Glassmorphic Suggestions Dropdown Container */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(15, 23, 42, 0.05);
  z-index: 1000;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-suggestions.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Sections title */
.suggestions-section-title {
  padding: 12px 18px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  background: rgba(248, 250, 252, 0.6);
}

/* Suggestion Item layout */
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  text-decoration: none;
  color: #1e293b;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  min-height: 64px;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.is-selected {
  background: rgba(239, 246, 255, 0.9) !important; /* Soft blue focus */
  color: #0b5be7;
  outline: none;
}

.suggestion-item:hover .suggestion-title,
.suggestion-item.is-selected .suggestion-title {
  color: #0b5be7;
}

/* Text match highlighting */
.suggestion-item mark {
  background: rgba(254, 240, 138, 0.7) !important; /* Gentle highlight */
  color: #0f172a;
  font-weight: 800;
  padding: 0 2px;
  border-radius: 2px;
}

/* Thumbnail and Image details */
.suggestion-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: transform 0.15s ease;
}

.suggestion-item:hover .suggestion-thumb,
.suggestion-item.is-selected .suggestion-thumb {
  transform: scale(1.06);
}

/* Suggestion description text info */
.suggestion-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.suggestion-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1e293b;
  transition: color 0.15s ease;
}

.suggestion-meta {
  font-size: 0.72rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* Right price tags */
.suggestion-price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: right;
  flex-shrink: 0;
}

.suggestion-price {
  color: #0f172a;
}

.suggestion-price-original {
  font-size: 0.7rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.suggestion-discount-badge {
  font-size: 0.65rem;
  background: #dcfce7;
  color: #15803d;
  padding: 0px 4px;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 1px;
  display: inline-block;
}

/* Dropdown suggestions footer link */
.suggestions-footer {
  padding: 12px 18px;
  text-align: center;
  background: #f8fafc;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 0.8rem;
  font-weight: 800;
  color: #0b5be7;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  border-radius: 0 0 12px 12px;
}

.suggestions-footer:hover {
  background: #f1f5f9;
  color: #064bd1;
}

/* Dropdown suggestions empty container state */
.suggestions-empty {
  padding: 24px 18px;
  text-align: center;
  color: #64748b;
  font-size: 0.84rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.suggestions-empty-emo {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

/* Empty focus fallback: Trending tags list */
.trending-searches-box {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trending-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trending-tag-item {
  padding: 5px 11px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trending-tag-item:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

/* Keep the homepage search aligned with the global search experience in styles.css. */
.header-search input[type="search"]::-webkit-search-cancel-button,
.header-search input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-suggestions {
  max-height: min(68vh, 560px);
  border-radius: 8px;
}

.suggestions-section-title--spaced {
  margin-top: 10px;
}

.suggestion-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  min-height: 72px;
}

/* Mobile price inline — hidden on desktop, shown on mobile */
.suggestion-price--mobile {
  display: none;
  font-weight: 700;
  color: #0b5be7;
}

/* === Mobile search fixes === */
@media (max-width: 820px) {
  /* Ensure header fills full viewport width */
  .header-main {
    width: 100%;
  }

  /* Keep dropdown fully within the screen */
  .search-suggestions {
    left: 0;
    right: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Compact result rows on narrow screens */
  .suggestion-item {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 8px 14px;
    gap: 10px;
    min-height: 52px;
  }

  .suggestion-thumb {
    width: 38px;
    height: 38px;
  }

  /* Hide the right-side price column — it cramps the title on mobile */
  .suggestion-price-row {
    display: none;
  }

  /* Show price inline in the meta row instead */
  .suggestion-price--mobile {
    display: inline;
  }
}

.suggestion-title {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}


.suggestion-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  padding: 2px 7px;
}

.suggestions-footer--inline {
  margin-top: 12px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
}

@media (max-width: 820px) {
  .suggestion-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .suggestion-price-row {
    grid-column: 2;
    justify-items: start;
    min-width: 0;
  }
}

/* ==================================================================== */
/* SAFENCIA PRODUCT CARD v2 — Conversion-Optimised                       */
/* Adds: square image, branded placeholder, star rating, discount price, */
/*       social proof, WhatsApp button, full-card tap, Product schema    */
/* Theme preserved: Safencia blue / yellow / white                       */
/* ==================================================================== */

/* ── Square image aspect ratio (1:1) ── */
.home-toy-card__media,
.product-card .product-image,
.product-card__media {
  aspect-ratio: 1 / 1 !important;
}

/* ── Branded placeholder for missing / broken images ── */
.home-toy-card__media.sf-img-missing,
.product-card .product-image.sf-img-missing,
.product-card__media.sf-img-missing,
.sf-related-card__image.sf-img-missing {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 55%, #fbbf24 100%) !important;
}

.home-toy-card__media.sf-img-missing > img,
.product-card .product-image.sf-img-missing > img,
.product-card__media.sf-img-missing > img,
.sf-related-card__image.sf-img-missing > img {
  opacity: 0;
}

.home-toy-card__media.sf-img-missing::before,
.product-card .product-image.sf-img-missing::before,
.product-card__media.sf-img-missing::before,
.sf-related-card__image.sf-img-missing::before {
  content: "Safencia Toy";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}

/* ── Star rating row ── */
.sf-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: -4px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  line-height: 1;
}

.sf-card-rating__star {
  color: #f59e0b;
  font-size: 0.95rem;
  line-height: 1;
}

.sf-card-rating__value {
  color: #0f172a;
  font-weight: 900;
}

.sf-card-rating__count {
  color: #64748b;
  font-weight: 600;
  font-size: 0.76rem;
}

/* ── Price block with discount support ── */
.sf-card-price-block {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0;
  line-height: 1.1;
}

.sf-card-price-old {
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.sf-card-price-now {
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.1;
}

.sf-card-price-save {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ── Social proof micro-line ── */
.sf-card-proof {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: #047857;
}

.sf-card-proof--bought { color: #c2410c; }
.sf-card-proof--stock  { color: #047857; }
.sf-card-proof--cod    { color: #1d4ed8; }

/* ── Dual action buttons (Add to Cart + WhatsApp) ── */
.sf-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.product-card .sf-card-actions .add-button,
.home-toy-card .sf-card-actions .add-button {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.sf-card-wa {
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  height: 42px;
  width: 42px;
  background: #25D366;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  border: 0;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
  position: relative;
  z-index: 3;
}

.sf-card-wa:hover,
.sf-card-wa:focus-visible {
  background: #128C7E;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.42);
  transform: translateY(-1px);
}

.sf-card-wa svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  pointer-events: none;
}

/* ── Full-card tap target overlay ── */
.product-card,
.home-toy-card { position: relative; }

.sf-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-indent: -9999px;
  overflow: hidden;
  background: transparent;
}

.product-card .add-button,
.home-toy-card .add-button,
.sf-card-wa,
.product-card .home-toy-card__media,
.home-toy-card .home-toy-card__media,
.product-card .product-image-link,
.product-card h3 a,
.home-toy-card h3 a,
.sf-card-rating,
.sf-card-price-block,
.sf-card-proof {
  position: relative;
  z-index: 2;
}

/* ── Status badge priority colours (Best Seller > Trending > Hot > New) ── */
.product-label--bestseller {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.45) !important;
}

.product-label--trending {
  background: linear-gradient(135deg, #7c3aed, #9333ea) !important;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.45) !important;
}

.product-label--hot {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.45) !important;
}

.product-label--new {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.45) !important;
}

/* ── Body spacing tightened for new card density ── */
.home-toy-card__body,
.product-card .product-body {
  gap: 6px;
  padding: 14px 16px 16px;
}

.home-toy-card__bottom,
.product-card__bottom {
  gap: 6px;
  margin-top: auto;
}

/* ── Mobile tap area expansion ── */
@media (max-width: 640px) {
  .sf-card-wa { height: 44px; width: 44px; flex-basis: 44px; }
  .product-card .sf-card-actions .add-button,
  .home-toy-card .sf-card-actions .add-button { min-height: 44px; }
}

/* ── Active filter chips (Shop page) ─────────────────────────────────────
   Shows the user what filters are currently applied, with one-tap removal.
   On mobile this is the user's #1 escape hatch when results feel "too narrow"
   — far faster than re-opening the filter drawer and unchecking by hand.   */
.shop-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.shop-active-filters:empty { display: none; }

.shop-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 12px;
  background: #eaf2ff;
  color: var(--brand-blue);
  border: 1px solid #cfdcfb;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  max-width: 100%;
}

.shop-filter-chip__label {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.shop-filter-chip__remove {
  appearance: none;
  background: var(--brand-blue);
  color: #fff;
  border: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.shop-filter-chip__remove:hover,
.shop-filter-chip__remove:focus-visible {
  background: #073fa8;
  outline: none;
}

.shop-filter-chip--clearall {
  background: #fff7d6;
  border-color: #f3d36b;
  color: #6b4900;
  cursor: pointer;
  padding: 6px 12px;
  font-weight: 700;
}
.shop-filter-chip--clearall:hover { background: #ffeeb0; }

@media (max-width: 640px) {
  .shop-filter-chip { font-size: 0.72rem; padding: 4px 6px 4px 10px; }
  .shop-filter-chip__label { max-width: 130px; }
  .shop-filter-chip__remove { width: 20px; height: 20px; } /* bigger tap target */
}

