/* Products page (app/(store)/products/ProductsClient.jsx, components/ProductFilterSidebar.jsx).
   The first three blocks are the page's own <style> tags, copied unchanged. */

/* Search bar */
.store-search-input-wrapper {
              display: flex;
              align-items: center;
              width: 100%;
              border: 1px solid rgba(var(--color-primary-rgb), 0.12);
              border-radius: 16px;
              background-color: #ffffff;
              padding: 0 6.5rem 0 1.25rem;
              box-sizing: border-box;
              transition: all 0.3s ease;
            }
            .store-search-input-wrapper:focus-within {
              border-color: var(--color-primary) !important;
              box-shadow: 0 0 0 1px var(--color-primary);
            }
            .store-search-icon {
              color: var(--color-primary);
              opacity: 0.6;
              margin-right: 0.8rem;
              flex-shrink: 0;
              display: flex;
              align-items: center;
            }
            .store-search-input {
              width: 100%;
              padding: 0.9rem 0;
              font-size: 0.95rem;
              border: none;
              background: transparent;
              outline: none;
              font-family: inherit;
              color: #2D2D2D;
            }
            .store-search-btn {
              position: absolute;
              right: 6px;
              top: 6px;
              bottom: 6px;
              background-color: var(--color-primary);
              color: #ffffff;
              border: none;
              border-radius: 12px;
              padding: 0 1.5rem;
              font-weight: 700;
              font-size: 0.85rem;
              letter-spacing: 0.5px;
              cursor: pointer;
              display: flex;
              align-items: center;
              gap: 0.4rem;
              transition: all 0.2s ease;
              box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.2);
            }
            .store-search-btn:hover {
              transform: translateY(-1px);
              box-shadow: 0 6px 16px rgba(var(--color-primary-rgb), 0.3);
            }
            @media (max-width: 768px) {
              .store-search-input-wrapper {
                padding: 0 5.5rem 0 1rem;
              }
              .store-search-icon {
                margin-right: 0.6rem;
              }
              .store-search-input {
                font-size: 0.75rem;
                padding: 0.8rem 0;
              }
              .store-search-btn {
                padding: 0 1rem;
                font-size: 0.75rem;
              }
            }

/* Page layout (styleTag) */
.store-top-bar {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      align-items: stretch;
      margin-top: 0;
      margin-bottom: 2rem;
    }

    @media (max-width: 1023px) {
      .store-top-bar {
        gap: 1.25rem;
        margin-top: 1.75rem;
      }
    }

    .store-dropdowns-container {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
      width: 100%;
      box-sizing: border-box;
    }

    /* Collection, category and size filters live in the left sidebar / Filters panel now */
    .store-dropdowns-container .store-gender-wrapper,
    .store-dropdowns-container .store-category-wrapper,
    .store-dropdowns-container .store-size-wrapper {
      display: none;
    }

    @media (min-width: 1024px) {
      .store-dropdowns-container {
        display: flex;
        justify-content: flex-end;
      }
      .store-dropdowns-container .store-sort-wrapper {
        flex: 0 0 280px !important;
      }
    }

    @media (max-width: 1024px) {
      .store-dropdowns-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
      }
    }

    .store-catalog-layout {
      display: flex;
      align-items: flex-start;
      gap: 1.75rem;
    }
    .store-filter-sidebar {
      flex: 0 0 260px;
      position: sticky;
      top: 6rem;
      max-height: calc(100vh - 7rem);
      overflow-y: auto;
      scrollbar-width: thin;
    }
    .store-catalog-main {
      flex: 1;
      min-width: 0;
    }

    @media (max-width: 580px) {
      .store-dropdowns-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
      }
      .store-gender-wrapper,
      .store-category-wrapper,
      .store-size-wrapper,
      .store-sort-wrapper {
        min-width: 0;
        width: 100%;
        flex: 1 1 auto;
      }
    }

    .store-filter-btn {
      width: 100%;
      padding: 0.85rem 1.15rem;
      border-radius: 16px;
      border: 1px solid rgba(var(--color-primary-rgb), 0.12);
      background-color: #ffffff;
      font-size: 0.88rem;
      font-weight: 700;
      color: #2D2D2D;
      cursor: pointer;
      outline: none;
      font-family: inherit;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.35rem;
      box-sizing: border-box;
      transition: all 0.2s ease;
    }
    .store-filter-btn:hover {
      border-color: rgba(var(--color-primary-rgb), 0.3);
    }
    .store-filter-label {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      color: #64748b;
      font-weight: 500;
      font-size: 0.85rem;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .store-filter-value {
      text-transform: capitalize;
      font-weight: 800;
      color: var(--color-primary);
      font-size: 0.85rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
      text-align: right;
      flex: 1;
      margin-right: 0.15rem;
    }

    @media (max-width: 768px) {
      .store-filter-btn {
        padding: 0.65rem 0.65rem;
        border-radius: 12px;
        font-size: 0.78rem;
        gap: 0.25rem;
      }
      .store-filter-label {
        font-size: 0.74rem;
        gap: 0.25rem;
      }
      .store-filter-value {
        font-size: 0.74rem;
      }
    }

    .hide-scrollbar::-webkit-scrollbar {
      display: none;
    }
    .hide-scrollbar {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

/* Filter sidebar */
.pfs-root { background: #fff; border: 1px solid rgba(var(--color-primary-rgb), 0.1); border-radius: 16px; padding: 0.4rem 1.1rem 0.6rem; box-sizing: border-box; }
        .pfs-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid #f1f5f9; }
        .pfs-title { font-size: 1rem; font-weight: 800; color: #0f172a; }
        .pfs-clear { background: none; border: none; color: var(--color-primary); font-weight: 700; font-size: 0.78rem; cursor: pointer; padding: 0; font-family: inherit; }
        .pfs-section { border-bottom: 1px solid #f1f5f9; }
        .pfs-section:last-of-type { border-bottom: none; }
        .pfs-section-head { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: none; padding: 0.85rem 0; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #334155; cursor: pointer; font-family: inherit; }
        .pfs-section-body { display: flex; flex-direction: column; gap: 0.15rem; padding-bottom: 0.85rem; }
        .pfs-option { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; font-size: 0.86rem; color: #334155; cursor: pointer; line-height: 1.3; }
        /* Radio and checkbox options share one tick box in the site's maroon & gold theme (as in the header) */
        .pfs-option input { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0; flex-shrink: 0; cursor: pointer; display: grid; place-content: center; border: 1.5px solid rgba(92, 21, 32, 0.35); border-radius: 5px; background: #fff; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; }
        .pfs-option input::after { content: ''; width: 5px; height: 9px; border: solid #fde68a; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform 0.15s ease; }
        .pfs-option input:checked { background: linear-gradient(135deg, #5c1520 0%, #360910 100%); border-color: #5c1520; }
        .pfs-option input:checked::after { transform: rotate(45deg) scale(1); }
        .pfs-option:hover input:not(:disabled) { border-color: #5c1520; }
        .pfs-option input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(197, 131, 26, 0.35); }
        .pfs-option-label { flex: 1; min-width: 0; text-transform: capitalize; overflow-wrap: anywhere; }
        .pfs-option-count { font-size: 0.74rem; color: #94a3b8; font-weight: 600; }
        .pfs-option-disabled { opacity: 0.45; cursor: default; }
        .pfs-option-disabled input { cursor: default; }
        .pfs-sub { margin: 0.1rem 0 0.35rem 1.4rem; padding-left: 0.6rem; border-left: 2px solid rgba(var(--color-primary-rgb), 0.15); display: flex; flex-direction: column; gap: 0.05rem; }
        .pfs-sub .pfs-option { font-size: 0.82rem; padding: 0.25rem 0; }
        .pfs-more { align-self: flex-start; background: none; border: none; color: var(--color-primary); font-weight: 700; font-size: 0.8rem; cursor: pointer; padding: 0.3rem 0 0; font-family: inherit; }
        .pfs-price-form { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; }
        .pfs-price-form input { width: 100%; min-width: 0; padding: 0.45rem 0.55rem; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.8rem; font-family: inherit; outline: none; box-sizing: border-box; }
        .pfs-price-form input:focus { border-color: var(--color-primary); }
        .pfs-price-form span { font-size: 0.75rem; color: #94a3b8; }
        .pfs-price-form button { padding: 0.45rem 0.75rem; border: none; border-radius: 8px; background: var(--color-primary); color: #fff; font-weight: 700; font-size: 0.78rem; cursor: pointer; font-family: inherit; }

/* isMobile (< 1024 px) switches from the React page */
.dv-prod-container { padding-top: 1.75rem; padding-bottom: 6rem; }
.dv-prod-crumbs { margin-bottom: 0.6rem; }
.dv-prod-h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 0 0 1rem 0; }
.dv-prod-intro { margin: -0.4rem 0 1.25rem 0; font-size: 0.95rem; }
.dv-prod-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.dv-prod-mobile-only { display: none !important; }
.dv-prod-empty { padding: 4rem 2rem; gap: 1.25rem; }
.dv-prod-empty-icon { width: 72px; height: 72px; }
.dv-prod-empty-icon svg { width: 32px; height: 32px; }
.dv-prod-empty h2 { font-size: 1.6rem; }
.dv-prod-empty p { font-size: 0.95rem; }
.dv-prod-empty button { padding: 0.85rem 2rem; font-size: 0.88rem; }
.dv-prod-suggest:hover { background-color: rgba(var(--color-primary-rgb), 0.04); }
@media (max-width: 1023.98px) {
  .dv-prod-container { padding-top: 1rem; padding-bottom: 8.5rem; }
  .dv-prod-crumbs { margin-bottom: 0.45rem; }
  .dv-prod-h1 { font-size: 1.35rem; margin: 0.35rem 0 0.85rem 0; }
  .dv-prod-intro { margin: -0.4rem 0 1rem 0; font-size: 0.85rem; }
  .dv-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 3.5rem; }
  .dv-prod-desktop-only { display: none !important; }
  .dv-prod-mobile-only { display: flex !important; }
  .dv-prod-empty { padding: 2.5rem 1.25rem; gap: 1rem; }
  .dv-prod-empty-icon { width: 60px; height: 60px; }
  .dv-prod-empty-icon svg { width: 26px; height: 26px; }
  .dv-prod-empty h2 { font-size: 1.35rem; }
  .dv-prod-empty p { font-size: 0.88rem; }
  .dv-prod-empty button { padding: 0.75rem 1.6rem; font-size: 0.82rem; }
}
