  /* ── LAYOUT ── */
  .stock-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
  }
  .stock-main { flex: 1; min-width: 0; }
  .card-moco-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .card-moco { margin: 0; }
  .card-price { font-size: 12px; font-weight: 500; color: #111; letter-spacing: 0.5px; white-space: nowrap; margin: 0; }

  /* ── TOOLBAR ── */
  .stock-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; gap: 16px; }
  .filter-toggle-mobile {
    display: none; align-items: center; gap: 8px; background: none;
    border: 1px solid #ccc; padding: 8px 16px; font-size: 13px;
    font-weight: 500; letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
  }
  .filter-mobile-count { background: #111; color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 8px; }

  @media (max-width: 768px) {
    .stock-layout { flex-direction: column; }
    .filter-toggle-mobile { display: flex; }
  }

  /* ── SIDEBAR (desktop) ── */
  .filter-sidebar { width: 240px; flex-shrink: 0; background: #fff; border-right: 1px solid #f0f0f0; padding-right: 20px; }
  .filter-sidebar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #e0e0e0; gap: 10px; }
  .filter-title { font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #111; white-space: nowrap; }
  .filter-clear-all { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #aaa; background: none; border: none; cursor: pointer; transition: color 0.2s; white-space: nowrap; }
  .filter-clear-all:hover { color: #111; }
  .filter-close { display: none; border: 0; background: transparent; color: #111; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; padding: 8px 10px; white-space: nowrap; }

  /* ── GRUPPI ── */
  .filter-group { margin-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
  .filter-group-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; font-size: 14px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: #111; user-select: none; }
  .filter-arrow svg { transition: transform 0.2s; display: block; }
  .filter-group.closed .filter-arrow svg { transform: rotate(-90deg); }
  .filter-options { list-style: none; padding: 0 0 20px 0; display: flex; flex-direction: column; gap: 14px; margin: 0; }
  .filter-group.closed .filter-options { display: none; }

  .filter-option { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; color: #444; transition: color 0.2s; }
  .filter-option:hover { color: #111; }
  .filter-option input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 16px; height: 16px; border: 1px solid #ccc; background: #fff;
    cursor: pointer; flex-shrink: 0; transition: all 0.2s; position: relative;
  }
  .filter-option input[type="checkbox"]:checked { background: #111; border-color: #111; }
  .filter-option input[type="checkbox"]:checked::after {
    content: ''; position: absolute; top: 1px; left: 4px;
    width: 5px; height: 9px; border: 2px solid #fff;
    border-top: none; border-left: none; transform: rotate(45deg);
  }

  /* ── CHIPS ── */
  .active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
  .filter-chip { display: inline-flex; align-items: center; gap: 6px; background: #111; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; padding: 8px 16px; cursor: pointer; transition: background 0.2s; }
  .filter-chip:hover { background: #333; }
  .filter-chip-x { font-size: 14px; line-height: 1; font-weight: 300; }

  /* ── WRAPPER ── */
  .stock-wrapper { max-width: 1600px; margin: 0 auto; padding: 56px 24px 100px; }
  .stock-header { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid #e0e0e0; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
  .stock-header-left .stock-eyebrow { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #aaa; margin-bottom: 10px; }
  .stock-header-left h1 { font-family: 'Freight', serif; font-size: 36px; font-weight: 400; color: #111; }
  .stock-count { font-size: 13px; letter-spacing: 1px; color: #aaa; text-transform: uppercase; }

  /* ── SEARCH ── */
  .search-bar { position: relative; max-width: 400px; flex: 1; }
  .search-bar input { width: 100%; border: none; border-bottom: 1px solid #ccc; padding: 12px 36px 12px 0; font-size: 14px; font-family: 'Freight', sans-serif; background: transparent; outline: none; color: #111; transition: border-color 0.2s; }
  .search-bar input:focus { border-bottom-color: #111; }
  .search-bar input::placeholder { color: #aaa; letter-spacing: 1px; }
  .search-bar .search-icon { position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: #aaa; font-size: 16px; }

  /* ── GRID ── */
  .product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
  @media (max-width: 1400px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
  @media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 700px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 480px)  { .product-grid { grid-template-columns: 1fr; } }

  /* ── CARD ── */
  .product-card { background: #fff; cursor: pointer; overflow: hidden; position: relative; }
  .product-card:hover .card-overlay { opacity: 1; }
  .product-card:hover .card-img { transform: scale(1.04); }
  .product-card:hover .btn-360 { opacity: 1; }

  /* ── GENDER BADGE ── */
  .card-gender-badge {
    position: absolute; top: 10px; right: 10px; z-index: 4;
    padding: 6px 10px; border-radius: 999px;
    background: rgba(0,0,0,0.78); color: #fff;
    font-size: 9px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
    opacity: 0; transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
  }
  .product-card:hover .card-gender-badge { opacity: 1; transform: translateY(0); }
  @media (hover: none), (pointer: coarse) {
    .card-gender-badge { opacity: 1; transform: none; }
  }

  .card-img-wrapper { position: relative; overflow: hidden; aspect-ratio: 1/1; background: #f0f0f0; }
  .card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
  .card-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.08); opacity: 0; transition: opacity 0.3s; }
  .card-info { padding: 20px 16px 24px; }
  .card-brand { font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: #aaa; margin-bottom: 6px; }
  .card-moco { font-size: 15px; font-weight: 400; color: #111; margin-bottom: 8px; font-family: 'Freight', serif; }

  /* ── BTN 360 ── */
  .btn-360 { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.75); color: #fff; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 10px; border: none; cursor: pointer; z-index: 2; opacity: 0; transition: background 0.2s, opacity 0.3s; }
  .btn-360:hover { background: #000; }
  @media (hover: none), (pointer: coarse) {
    .btn-360 { opacity: 1 !important; background: rgba(0,0,0,0.78); padding: 10px 14px; font-size: 10px; border-radius: 10px; min-height: 40px; min-width: 72px; }
    .product-card:hover .btn-360 { opacity: 1 !important; }
  }

  /* ── VIEWER 360 ── */
  .viewer-360-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 99999; align-items: center; justify-content: center; flex-direction: column; cursor: grab; }
  .viewer-360-overlay.active { display: flex; }
  .viewer-360-overlay.dragging { cursor: grabbing; }
  .viewer-360-img { max-height: 75vh; max-width: 85vw; object-fit: contain; pointer-events: none; user-select: none; }
  .viewer-360-close { position: absolute; top: 24px; right: 32px; color: #fff; font-size: 28px; cursor: pointer; font-weight: 300; z-index: 100000; line-height: 1; }
  .viewer-360-info { margin-top: 20px; text-align: center; }
  .viewer-360-info .v-moco { font-family: 'Freight', serif; font-size: 16px; color: #fff; margin-bottom: 6px; }
  .viewer-360-hint { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #666; margin-top: 8px; }
  .viewer-360-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
  .viewer-360-dots span { width: 5px; height: 5px; border-radius: 50%; background: #444; transition: background 0.2s; }
  .viewer-360-dots span.active { background: #fff; }

  /* ── LIGHTBOX ── */
  .lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; flex-direction: column; }
  .lightbox-overlay.active { display: flex; }
  .lightbox-close { position: absolute; top: 24px; right: 32px; color: #fff; font-size: 28px; cursor: pointer; font-weight: 300; line-height: 1; z-index: 10000; }
  .lightbox-img-wrapper { display: flex; align-items: center; gap: 24px; }
  .lightbox-main-img { max-height: 75vh; max-width: 80vw; object-fit: contain; }
  .lightbox-arrow { color: #fff; font-size: 28px; cursor: pointer; padding: 16px; opacity: 0.6; transition: opacity 0.2s; user-select: none; }
  .lightbox-arrow:hover { opacity: 1; }
  .lightbox-info { margin-top: 20px; text-align: center; color: #ccc; }
  .lightbox-info .lb-moco { font-family: 'Freight', serif; font-size: 16px; color: #fff; margin-bottom: 4px; }
  .lightbox-info .lb-sku { font-size: 11px; letter-spacing: 1px; color: #aaa; }
  .lightbox-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
  .lightbox-dots span { width: 6px; height: 6px; border-radius: 50%; background: #555; cursor: pointer; transition: background 0.2s; }
  .lightbox-dots span.active { background: #fff; }

  /* ── ADD TO CART ── */
  .btn-add-cart { width: 100%; margin-top: 14px; padding: 12px; background: #111; color: #fff; border: none; font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
  .btn-add-cart:hover { background: #fff; color: #111; border: 1px solid #111; }

  /* ── LOADING ── */
  .loading-bar { text-align: center; padding: 48px 0; display: none; }
  .loading-bar span { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: #aaa; }

  /* ── BACKDROP ── */
  .filter-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(2px); z-index: 997; }
  .filter-backdrop.active { display: block; }

  /* ── PILL SELEZIONATA ── */
  .filter-option.is-checked { background: #111; border-color: #111; color: #fff; }
  .filter-option.is-checked span { color: #fff; }
  .filter-option.is-checked input[type="checkbox"] { background: #fff; border-color: #fff; }

  body.filters-open footer,
  body.filters-open .site-footer,
  body.filters-open .footer,
  body.filters-open #footer { display: none !important; }

  /* ── MOBILE SIDEBAR ── */
  @media (max-width: 768px) {
    .filter-sidebar {
      position: fixed !important; left: 0; right: 0; bottom: 0; top: auto !important;
      height: 78vh; max-height: 78vh;
      transform: translateY(100%); transition: transform .28s ease; z-index: 998;
      border-right: none; border-top-left-radius: 18px; border-top-right-radius: 18px;
      background: #fff; box-shadow: 0 -10px 30px rgba(0,0,0,.18);
      display: flex; flex-direction: column;
      padding: 14px 18px 12px; overflow: hidden; width: auto !important;
    }
    .filter-sidebar.mobile-open { transform: translateY(0); }
    .filter-sidebar-header { position: sticky; top: 0; background: #fff; z-index: 2; padding-top: 8px; margin-bottom: 10px; }
    .filter-sidebar-header:before { content: ""; display: block; width: 44px; height: 4px; border-radius: 99px; background: #ddd; margin: 0 auto 12px; }
    .filter-close { display: inline-block; }
    .filter-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
    .filter-options { gap: 10px; padding-bottom: 18px; }
    .filter-option { width: 100%; padding: 12px 12px; border-radius: 12px; background: #fafafa; border: 1px solid #eee; transition: background .15s, border-color .15s; -webkit-tap-highlight-color: transparent; }
    .filter-option input[type="checkbox"] { width: 20px; height: 20px; border-radius: 6px; }
    .filter-footer-mobile { display: block; position: sticky; bottom: 0; z-index: 3; padding: 12px 0 4px; background: linear-gradient(to top, rgba(255,255,255,1) 70%, rgba(255,255,255,0)); }
    .filter-done { width: 100%; height: 44px; border-radius: 14px; border: none; background: #111; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
    body.filters-open { overflow: hidden; touch-action: none; }
  }

  .filter-footer-mobile { display: none !important; }
  @media (max-width: 768px) { .filter-footer-mobile { display: block !important; } }

  /* ── DESKTOP PREMIUM SIDEBAR ── */
  @media (min-width: 769px) {
    .filter-sidebar {
      background: #fafafa; border: none; border-radius: 20px;
      padding: 28px 26px 32px;
      box-shadow: 0 12px 30px rgba(0,0,0,0.06), 0 1px 0 rgba(0,0,0,0.04);
      overflow: visible !important; height: auto !important; max-height: none !important;
    }
    .filter-sidebar-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #e6e6e6; }
    .filter-title { font-size: 14px; letter-spacing: 3px; color: #111; }
    .filter-clear-all { font-size: 11px; letter-spacing: 2px; color: #aaa; }
    .filter-clear-all:hover { color: #111; }
    .filter-body { overflow: visible !important; }
    .filter-group { margin-bottom: 32px; padding-bottom: 0; border-bottom: none; }
    .filter-group:last-child { margin-bottom: 0; }
    .filter-group-header { padding: 10px 0 16px; font-size: 13px; letter-spacing: 2.5px; color: #111; }
    .filter-arrow svg path { stroke: #999; }
    .filter-options { gap: 10px; padding-bottom: 12px; }
    .filter-option { width: 100%; padding: 12px 14px; border-radius: 12px; background: #fafafa; border: 1px solid #eee; font-size: 13px; font-weight: 400; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease; }
    .filter-option:hover { background: #f3f3f3; border-color: #ddd; }
    .filter-option.is-checked { background: #111; border-color: #111; color: #fff; }
    .filter-option.is-checked span { color: #fff; }
    .filter-option input[type="checkbox"] { width: 18px; height: 18px; border-radius: 6px; border: 1px solid #ccc; background: #fff; transition: all .15s ease; }
    .filter-option.is-checked input[type="checkbox"] { background: #fff; border-color: #fff; }
    .filter-option input[type="checkbox"]:checked::after { top: 2px; left: 5px; }
    .filter-sidebar-header { padding-bottom: 20px; margin-bottom: 20px; }
    .filter-title { font-size: 10px; letter-spacing: 3px; }
    .filter-clear-all { font-size: 9px; letter-spacing: 2px; opacity: .6; }
    .filter-clear-all:hover { opacity: 1; }

    /* ── RX-ABLE INLINE ── */
    #rxAbleLi { margin-left: 20px; transition: opacity 0.2s ease; }

    .filter-option-rxable {
      position: relative;
      padding: 8px 12px !important;
      font-size: 12px !important;
      background: #f0f0f0 !important;
      border-color: #e0e0e0 !important;
      border-left: 2px solid #ccc !important;
      border-radius: 10px !important;
      color: #666 !important;
    }
    .filter-option-rxable span { color: #666; font-size: 12px; }
    .filter-option-rxable.is-checked { background: #111 !important; border-color: #111 !important; border-left-color: #111 !important; }
    .filter-option-rxable.is-checked span { color: #fff !important; }
    .filter-option-rxable input[type="checkbox"]:checked { background: #fff !important; border-color: #fff !important; }

    /* ── TOOLTIP ── */
    .filter-option-rxable::after {
      content: 'Possibility of using prescription lenses';
      position: absolute; bottom: calc(100% + 8px); left: 50%;
      transform: translateX(-50%) translateY(4px);
      background: #111; color: #fff; font-size: 10px; font-weight: 400;
      letter-spacing: 0.5px; line-height: 1.4; text-transform: none;
      white-space: nowrap; padding: 6px 10px; border-radius: 6px;
      opacity: 0; pointer-events: none;
      transition: opacity 0.2s ease, transform 0.2s ease; z-index: 100;
    }
    .filter-option-rxable::before {
      content: ''; position: absolute; bottom: calc(100% + 2px); left: 50%;
      transform: translateX(-50%) translateY(4px);
      border: 5px solid transparent; border-top-color: #111;
      opacity: 0; pointer-events: none;
      transition: opacity 0.2s ease, transform 0.2s ease; z-index: 100;
    }
    .filter-option-rxable:hover::after,
    .filter-option-rxable:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }
  }

  /* ── RX-ABLE DESC (mobile) ── */
/* ── RX-ABLE DESC (mobile) ── */
.rxable-desc {
  display: none;
  font-size: 10px;        /* ← questa è la dimensione globale (nascosta su desktop) */
  font-weight: 400;
  color: #888;
  letter-spacing: 0.3px;
  line-height: 1.3;
  margin-top: 2px;
  text-transform: none;
}

@media (max-width: 768px) {
  .rxable-desc {
    display: block;
    font-size: 12px;      /* ✅ AGGIUNTO — più leggibile su mobile */
    color: #777;          /* ✅ leggermente più scuro per contrasto */
    line-height: 1.4;     /* ✅ un po' più di respiro */
  }

  .filter-option-rxable span {
    display: flex;
    flex-direction: column;
    gap: 4px;             /* ✅ aumentato da 2px a 4px per più separazione */
  }

  .filter-option-rxable::after,
  .filter-option-rxable::before { display: none !important; }

  .filter-option-rxable.is-checked .rxable-desc {
    color: rgba(255, 255, 255, 0.75); /* ✅ leggermente più visibile quando checked */
  }
}

.filter-hidden {
  display: none;
}

/* ─────────────────────────────────────────────
   COLLECTIONS_ITEMS
───────────────────────────────────────────── */

.img-error {
  background: #eee;
}
