/*
 * Seanav Theme — Shop Page Futuristic Upgrade v2.0
 * Speed-first: all animations use only transform/opacity (GPU-composited).
 * No external dependencies. Loaded ONLY on WooCommerce archive/shop pages.
 *
 * Sections:
 *  1. Shop Hero
 *  2. Category Quick-Nav
 *  3. Results Bar
 *  4. Product Card Upgrades
 *  5. Sidebar Refinements
 *  6. Pagination
 *  7. Empty State
 *  8. Mobile Tweaks
 */

/* ============================================================
   1. SHOP HERO — futuristic banner above the grid
   ============================================================ */
.seanav-shop-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 44px;
  margin-bottom: 0;
  background: linear-gradient(180deg,
    rgba(0,255,136,0.04) 0%,
    transparent 100%
  );
}

/* Animated grid lines — pure CSS, zero JS */
.seanav-shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

/* Top green accent line */
.seanav-shop-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 12px 2px rgba(0,255,136,0.35);
}

.seanav-shop-hero-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}

.seanav-shop-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.seanav-shop-hero-eyebrow::before,
.seanav-shop-hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--green);
  opacity: 0.7;
}

.seanav-shop-hero h1 {
  font-family: var(--f-display) !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  color: var(--t-bright) !important;
  margin: 0 0 12px !important;
  background: linear-gradient(135deg, var(--t-bright) 40%, var(--green) 120%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.seanav-shop-hero-desc {
  font-family: var(--f-body);
  font-size: var(--text-sm);
  color: var(--t-muted);
  margin-bottom: 22px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Stat badges row */
.seanav-shop-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.seanav-shop-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border-green);
  border-radius: 20px;
  background: rgba(0,255,136,0.05);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.04em;
}
.seanav-shop-stat svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ============================================================
   2. CATEGORY QUICK-NAV — horizontal scrollable chips
   ============================================================ */
.seanav-cat-quicknav {
  padding: 18px 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.seanav-cat-quicknav::-webkit-scrollbar { display: none; }

.seanav-cat-quicknav-inner {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;        /* single row — scrolls horizontally */
  padding: 2px 4px 6px;
}

.seanav-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: var(--surface-3);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--t-muted);
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.18s,
    border-color 0.18s,
    background 0.18s,
    transform 0.18s var(--ease-spring);
  cursor: pointer;
}
.seanav-cat-chip:hover,
.seanav-cat-chip.is-active {
  color: var(--green);
  border-color: var(--border-green);
  background: rgba(0,255,136,0.07);
  transform: translateY(-2px);
  text-decoration: none;
}
.seanav-cat-chip.is-active {
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,255,136,0.15);
}
.seanav-cat-chip-count {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: var(--t-dim);
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 8px;
}
.seanav-cat-chip.is-active .seanav-cat-chip-count,
.seanav-cat-chip:hover .seanav-cat-chip-count {
  background: rgba(0,255,136,0.15);
  color: var(--green);
}

/* ============================================================
   3. RESULTS BAR — count + sort
   ============================================================ */
.seanav-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

/* WooCommerce result count gets styled inline */
.seanav-shop-main .woocommerce-result-count {
  font-family: var(--f-mono) !important;
  font-size: 0.68rem !important;
  color: var(--t-dim) !important;
  letter-spacing: 0.05em;
  margin: 0 !important;
}
.seanav-shop-main .woocommerce-result-count strong {
  color: var(--green) !important;
}

/* Sort-by select */
.seanav-shop-main .woocommerce-ordering select,
.seanav-shop-sidebar .orderby {
  background: var(--surface-3) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 7px !important;
  color: var(--t-primary) !important;
  font-family: var(--f-body) !important;
  font-size: 0.78rem !important;
  padding: 6px 32px 6px 10px !important;
  outline: none !important;
  transition: border-color 0.18s, box-shadow 0.18s !important;
}
.seanav-shop-main .woocommerce-ordering select:focus,
.seanav-shop-sidebar .orderby:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 2px rgba(0,255,136,0.12) !important;
}

/* ============================================================
   4. PRODUCT CARD UPGRADES
   ============================================================ */

/* Contain layout for performance */
.seanav-shop-main .product-small {
  contain: content;
}

/* Corner bracket decorations — pure CSS */
.product-small .box-image {
  position: relative;
}
.product-small .box-image::before,
.product-small .box-image::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s var(--ease-spring);
  transform: scale(0.5);
}
.product-small .box-image::before {
  top: 6px;
  left: 6px;
  border-top: 2px solid var(--green);
  border-left: 2px solid var(--green);
  border-radius: 2px 0 0 0;
}
.product-small .box-image::after {
  bottom: 6px;
  right: 6px;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  border-radius: 0 0 2px 0;
}
.product-small:hover .box-image::before,
.product-small:hover .box-image::after {
  opacity: 1;
  transform: scale(1);
}

/* Product image zoom on hover — GPU only (sizing handled in Fix 3 below) */
.product-small .image-cover img {
  transition: transform 0.45s var(--ease-out) !important;
  display: block;
}
.product-small:hover .image-cover img {
  transform: scale(1.06) !important;
}

/* Card text area polish */
.product-small .box-text-products {
  padding: 12px 14px 14px !important;
}

/* Category label — monospace chip */
.product-small .product-cat {
  font-family: var(--f-mono) !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--green) !important;
  opacity: 0.75 !important;
  margin-bottom: 5px !important;
}
.product-small:hover .product-cat {
  opacity: 1 !important;
}

/* Product title */
.product-small .product-title a {
  font-family: var(--f-display) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--t-bright) !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  transition: color 0.18s !important;
  text-decoration: none !important;
}
.product-small:hover .product-title a {
  color: var(--green) !important;
}

/* Price — monospace always */
.product-small .price {
  font-family: var(--f-mono) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--t-bright) !important;
  margin: 4px 0 8px !important;
}

/* On-sale badge — futuristic pill */
.product-small .on-sale,
.product-small .onsale {
  font-family: var(--f-mono) !important;
  font-size: 0.6rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  background: linear-gradient(135deg, var(--green), var(--cyan)) !important;
  color: #000 !important;
  border-radius: 4px !important;
  padding: 2px 7px !important;
  border: none !important;
}

/* Stock status indicator dot */
.product-small.out-of-stock .box-text-products::after {
  content: '⬤ Out of stock';
  display: block;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: #ef4444;
  letter-spacing: 0.05em;
  margin-top: 4px;
  opacity: 0.8;
}
.product-small:not(.out-of-stock) .product-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  margin-right: 5px;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.22s;
}
.product-small:hover:not(.out-of-stock) .product-title::before {
  opacity: 1;
}

/* ============================================================
   5. SIDEBAR REFINEMENTS
   ============================================================ */

/* Checkbox and radio inputs in filters */
.seanav-shop-sidebar input[type="checkbox"],
.seanav-shop-sidebar input[type="radio"] {
  accent-color: var(--green);
}

/* Price filter slider */
.seanav-shop-sidebar .price_slider_wrapper .ui-slider-range {
  background: linear-gradient(90deg, var(--green), var(--cyan)) !important;
}
.seanav-shop-sidebar .price_slider_wrapper .ui-slider-handle {
  background: var(--green) !important;
  border: 2px solid var(--surface-1) !important;
  box-shadow: 0 0 8px rgba(0,255,136,0.5) !important;
}
.seanav-shop-sidebar .price_slider_wrapper .ui-slider {
  background: var(--surface-4) !important;
  border: none !important;
  height: 4px !important;
  border-radius: 2px !important;
}

/* Category/term links */
.seanav-shop-sidebar .widget_product_categories a,
.seanav-shop-sidebar .woocommerce-widget-layered-nav a,
.seanav-shop-sidebar .widget_layered_nav a {
  color: var(--t-muted) !important;
  font-size: 0.8rem !important;
  transition: color 0.15s, padding-left 0.15s !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none !important;
}
.seanav-shop-sidebar .widget_product_categories a:hover,
.seanav-shop-sidebar .woocommerce-widget-layered-nav a:hover,
.seanav-shop-sidebar .widget_layered_nav a:hover,
.seanav-shop-sidebar .widget_product_categories .current-cat > a {
  color: var(--green) !important;
  padding-left: 4px !important;
}
.seanav-shop-sidebar .widget_product_categories .count,
.seanav-shop-sidebar .woocommerce-widget-layered-nav .count {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  opacity: 0.55;
  background: var(--surface-4);
  padding: 1px 5px;
  border-radius: 6px;
}

/* ============================================================
   6. PAGINATION — futuristic style
   ============================================================ */
.seanav-shop-main .woocommerce-pagination {
  margin-top: 28px !important;
  text-align: center;
}
.seanav-shop-main .woocommerce-pagination ul {
  display: inline-flex !important;
  gap: 6px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-wrap: wrap;
  justify-content: center;
}
.seanav-shop-main .woocommerce-pagination ul li {
  display: flex !important;
}
.seanav-shop-main .woocommerce-pagination ul li a,
.seanav-shop-main .woocommerce-pagination ul li span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  border: 1px solid var(--border-subtle) !important;
  background: var(--surface-3) !important;
  color: var(--t-muted) !important;
  font-family: var(--f-mono) !important;
  font-size: 0.78rem !important;
  text-decoration: none !important;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s var(--ease-spring) !important;
}
.seanav-shop-main .woocommerce-pagination ul li a:hover {
  color: var(--green) !important;
  border-color: var(--border-green) !important;
  background: rgba(0,255,136,0.07) !important;
  transform: translateY(-2px) !important;
}
.seanav-shop-main .woocommerce-pagination ul li span.current {
  color: #000 !important;
  border-color: var(--green) !important;
  background: var(--green) !important;
  font-weight: 700 !important;
  box-shadow: 0 0 16px rgba(0,255,136,0.35) !important;
}

/* ============================================================
   7. EMPTY STATE — when no products found
   ============================================================ */
.woocommerce-info,
.woocommerce-no-products-found {
  background: var(--surface-2) !important;
  border: 1px solid var(--border-subtle) !important;
  border-left: 3px solid var(--cyan) !important;
  border-radius: 10px !important;
  padding: 32px 28px !important;
  color: var(--t-muted) !important;
  font-family: var(--f-body) !important;
}
.woocommerce-info::before {
  color: var(--cyan) !important;
}

/* ============================================================
   8. MOBILE TWEAKS  ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  .seanav-shop-hero {
    padding: 32px 0 24px;
  }
  .seanav-shop-hero h1 {
    font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
  }
  .seanav-shop-hero-stats {
    gap: 6px;
  }
  .seanav-cat-quicknav-inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
  .seanav-results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  /* Stack card text to save vertical space */
  .product-small .box-text-products {
    padding: 10px 10px 12px !important;
  }
}

/* ============================================================
   9. TARGETED FIXES — sale badge / gaps / image proportion
   ============================================================ */

/* FIX 1: Hide the green circular Sale badge entirely.
   The strikethrough price already communicates the discount. */
.seanav-shop-main .product-small .badge-container,
.seanav-shop-main .product-small .callout.badge.badge-circle {
  display: none !important;
}

/* FIX 2: Tighten column gaps
   Original: 10px padding each side + 20px bottom margin = crowded.
   Reduced: 5px padding + 10px bottom. */
.seanav-shop-main .products.seanav-products {
  margin-left: -5px !important;
  margin-right: -5px !important;
}
.seanav-shop-main .products.seanav-products > .product-small.col {
  padding-left: 5px !important;
  padding-right: 5px !important;
  margin-bottom: 10px !important;
}

/* FIX 3: Uniform square image boxes with object-fit:cover
   Prevents tall/wide images from breaking card height consistency. */
.seanav-shop-main .product-small .box-image {
  position: relative;
  overflow: hidden;
}
.seanav-shop-main .product-small .image-cover {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-2);
}
.seanav-shop-main .product-small .image-cover a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.seanav-shop-main .product-small .image-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* FIX 4: Compact card text so title never wraps excessively */
.seanav-shop-main .product-small .box-text-products {
  padding: 10px 10px 12px !important;
}
.seanav-shop-main .product-small .product-title a {
  font-size: 0.82rem !important;
  line-height: 1.3 !important;
}
.seanav-shop-main .product-small .product-cat {
  font-size: 0.58rem !important;
  margin-bottom: 3px !important;
}

/* FIX 5: On-sale price styling — dim original, highlight discounted */
.seanav-shop-main .product-small del .woocommerce-Price-amount {
  font-size: 0.72rem !important;
  opacity: 0.5 !important;
  color: var(--t-dim) !important;
}
.seanav-shop-main .product-small ins {
  text-decoration: none !important;
  font-weight: 700 !important;
}
.seanav-shop-main .product-small ins .woocommerce-Price-amount {
  color: var(--green) !important;
}

/* Hide the redundant AED price suffix — currency is already shown in the amount */
.seanav-shop-main .product-small .woocommerce-price-suffix {
  display: none !important;
}

/* ============================================================
   10. FULL-WIDTH GRID LAYOUT — toolbar + filter drawer
   ============================================================ */

/* Outer wrapper: padding matches container */
.seanav-shop-fullwidth-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

/* Toolbar row: Filter btn left, result count right */
.seanav-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.seanav-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.seanav-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Filter button */
.seanav-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--border-green);
  border-radius: 7px;
  background: rgba(0,255,136,0.05);
  color: var(--green);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s var(--ease-spring);
}
.seanav-filter-btn:hover,
.seanav-filter-btn[aria-expanded="true"] {
  background: rgba(0,255,136,0.12);
  box-shadow: 0 0 0 1px var(--border-green);
  transform: translateY(-1px);
}

/* Result count in toolbar */
.seanav-shop-toolbar .woocommerce-result-count {
  font-family: var(--f-mono) !important;
  font-size: 0.68rem !important;
  color: var(--t-dim) !important;
  margin: 0 !important;
}
.seanav-shop-toolbar .woocommerce-result-count strong {
  color: var(--green) !important;
}

/* Notices (out-of-stock messages etc.) inside toolbar */
.seanav-shop-toolbar .woocommerce-notices-wrapper { margin: 0; }

/* ---- Full-width product grid ---- */
.seanav-shop-fullwidth-wrap .products.seanav-products {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-left: -5px !important;
  margin-right: -5px !important;
  width: auto !important;
  max-width: none !important;
}

/* 4 columns desktop, 3 tablet, 2 mobile */
.seanav-shop-fullwidth-wrap .products.seanav-products > .product-small.col {
  flex: 0 0 25% !important;
  width: 25% !important;
  max-width: 25% !important;
  padding-left: 5px !important;
  padding-right: 5px !important;
  margin-bottom: 10px !important;
  box-sizing: border-box !important;
  contain: content;
}

/* Image: square + cover-fill */
.seanav-shop-fullwidth-wrap .product-small .image-cover {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-2);
}
.seanav-shop-fullwidth-wrap .product-small .image-cover a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.seanav-shop-fullwidth-wrap .product-small .image-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.4s var(--ease-out) !important;
}
.seanav-shop-fullwidth-wrap .product-small:hover .image-cover img {
  transform: scale(1.06) !important;
}

/* Card inner */
.seanav-shop-fullwidth-wrap .product-small .box-text-products {
  padding: 10px 12px 12px !important;
}
.seanav-shop-fullwidth-wrap .product-small .product-cat {
  font-size: 0.58rem !important;
  margin-bottom: 3px !important;
}
.seanav-shop-fullwidth-wrap .product-small .product-title a {
  font-size: 0.84rem !important;
  line-height: 1.3 !important;
}

/* Hide the badge circle */
.seanav-shop-fullwidth-wrap .product-small .badge-container,
.seanav-shop-fullwidth-wrap .product-small .callout.badge.badge-circle {
  display: none !important;
}

/* Hide price suffix */
.seanav-shop-fullwidth-wrap .product-small .woocommerce-price-suffix {
  display: none !important;
}

/* Pagination */
.seanav-shop-fullwidth-wrap .woocommerce-pagination {
  margin-top: 24px !important;
  text-align: center;
}

/* ---- Filter Drawer ---- */
.seanav-filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--surface-1);
  border-right: 1px solid var(--border-subtle);
  z-index: 10000;
  transform: translateX(-100%);
  transition: transform 0.28s var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.seanav-filter-drawer.is-open {
  transform: translateX(0);
  box-shadow: 6px 0 40px rgba(0,0,0,0.6);
}

/* Drawer header */
.seanav-filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-2);
  flex-shrink: 0;
}
.seanav-filter-drawer-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.seanav-filter-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: transparent;
  color: var(--t-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.seanav-filter-close:hover {
  color: var(--t-bright);
  background: var(--surface-3);
}

/* Drawer scrollable body */
.seanav-filter-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

/* ── Hide non-filter widgets (product lists, recently viewed) ── */
.seanav-filter-drawer-body .widget_products,
.seanav-filter-drawer-body .woocommerce.widget_products,
.seanav-filter-drawer-body .widget_recently_viewed_products,
.seanav-filter-drawer-body .widget_seanav_recently_viewed,
.seanav-filter-drawer-body .woocommerce.widget_recently_viewed_products,
.seanav-filter-drawer-body #seanav-catalog-ordering,
.seanav-filter-drawer-body .seanav-widget-catalog-ordering {
  display: none !important;
}

/* ── CRITICAL: override global .widget { height:100% } that causes stretch ── */
.seanav-filter-drawer-body .widget {
  height: auto !important;
  min-height: 0 !important;
  /* Reset all global widget box-model overrides */
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  border-left: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  flex-direction: unset !important;
  justify-content: unset !important;
  overflow: visible !important;
}
.seanav-filter-drawer-body .widget:last-child {
  border-bottom: none !important;
}

/* Widget title row */
.seanav-filter-drawer-body .widget-title,
.seanav-filter-drawer-body h4.widget-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 11px 16px !important;
  margin: 0 !important;
  font-family: var(--f-mono) !important;
  font-size: 0.6rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--t-muted) !important;
  background: var(--surface-2) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  cursor: default !important;
  line-height: 1 !important;
}
.seanav-filter-drawer-body .widget-title::before {
  content: '' !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: var(--green) !important;
  flex-shrink: 0 !important;
  box-shadow: 0 0 5px rgba(0,255,136,0.5) !important;
}

/* Content area inside each widget */
.seanav-filter-drawer-body .widget > *:not(.widget-title):not(h4.widget-title) {
  padding: 8px 16px 12px !important;
  margin: 0 !important;
}

/* ── Category / layered-nav lists ── */
.seanav-filter-drawer-body .product-categories,
.seanav-filter-drawer-body .woocommerce-widget-layered-nav-list {
  list-style: none !important;
  padding: 6px 16px 10px !important;
  margin: 0 !important;
}
.seanav-filter-drawer-body .product-categories li,
.seanav-filter-drawer-body .woocommerce-widget-layered-nav-list li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}
.seanav-filter-drawer-body .product-categories a,
.seanav-filter-drawer-body .woocommerce-widget-layered-nav-list a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 5px 4px !important;
  font-size: 0.78rem !important;
  font-family: var(--f-body) !important;
  color: var(--t-muted) !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  transition: color 0.15s, background 0.15s, padding-left 0.15s !important;
  line-height: 1.3 !important;
}
.seanav-filter-drawer-body .product-categories a:hover,
.seanav-filter-drawer-body .woocommerce-widget-layered-nav-list a:hover {
  color: var(--green) !important;
  background: rgba(0,255,136,0.05) !important;
  padding-left: 8px !important;
}
.seanav-filter-drawer-body .product-categories .current-cat > a {
  color: var(--green) !important;
  font-weight: 600 !important;
  background: rgba(0,255,136,0.07) !important;
  padding-left: 8px !important;
}
.seanav-filter-drawer-body .product-categories .count,
.seanav-filter-drawer-body .woocommerce-widget-layered-nav-list .count {
  font-family: var(--f-mono) !important;
  font-size: 0.58rem !important;
  color: var(--t-dim) !important;
  background: var(--surface-4) !important;
  padding: 1px 6px !important;
  border-radius: 20px !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}
.seanav-filter-drawer-body .product-categories .current-cat > a .count {
  background: rgba(0,255,136,0.18) !important;
  color: var(--green) !important;
}
/* Sub-category indent */
.seanav-filter-drawer-body .product-categories .children {
  padding-left: 10px !important;
  padding-bottom: 2px !important;
  list-style: none !important;
  border-left: 1px solid var(--border-subtle) !important;
  margin: 0 0 0 8px !important;
}

/* ── Price filter ── */
.seanav-filter-drawer-body .price_slider_wrapper {
  padding: 12px 16px 14px !important;
  margin: 0 !important;
}
.seanav-filter-drawer-body .price_slider_wrapper .price_slider {
  margin: 10px 4px 8px !important;
}
.seanav-filter-drawer-body .ui-slider {
  background: var(--surface-4) !important;
  border: none !important;
  height: 3px !important;
  border-radius: 2px !important;
  position: relative !important;
}
.seanav-filter-drawer-body .ui-slider-range {
  background: linear-gradient(90deg, var(--green), var(--cyan)) !important;
  border-radius: 2px !important;
  position: absolute !important;
  height: 100% !important;
}
.seanav-filter-drawer-body .ui-slider-handle {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: var(--green) !important;
  border: 2px solid var(--surface-1) !important;
  box-shadow: 0 0 0 1px var(--green-dim), 0 0 8px rgba(0,255,136,0.35) !important;
  top: -6px !important;
  cursor: grab !important;
  position: absolute !important;
  outline: none !important;
  transition: box-shadow 0.15s !important;
  margin-left: -7px !important; /* center handle on thumb position */
}
.seanav-filter-drawer-body .ui-slider-handle:active  { cursor: grabbing !important; }
.seanav-filter-drawer-body .ui-slider-handle:focus   { box-shadow: 0 0 0 3px rgba(0,255,136,0.4) !important; }

.seanav-filter-drawer-body .price_slider_amount {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin-top: 4px !important;
}
/* Hide raw min/max inputs — slider + labels are enough */
.seanav-filter-drawer-body .price_slider_amount .min_price,
.seanav-filter-drawer-body .price_slider_amount .max_price {
  display: none !important;
}
/* from LEFT · to RIGHT — aligned under the handles */
.seanav-filter-drawer-body .price_label {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  order: 1 !important;
  margin: 0 !important;
  padding: 0 2px !important;
  font-size: 0 !important; /* hide "Price:" and dash text nodes */
  line-height: 1 !important;
  color: transparent !important;
}
.seanav-filter-drawer-body .price_label .from,
.seanav-filter-drawer-body .price_label .to {
  display: inline-block !important;
  font-family: var(--f-mono) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  color: var(--green) !important;
  line-height: 1.3 !important;
}
.seanav-filter-drawer-body .price_label .from { order: 1; }
.seanav-filter-drawer-body .price_label .to   { order: 2; margin-left: auto !important; }

.seanav-filter-drawer-body .price_slider_amount .button {
  order: 2 !important;
  width: 100% !important;
  padding: 7px 14px !important;
  font-family: var(--f-mono) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  background: rgba(0,255,136,0.07) !important;
  border: 1px solid var(--border-green) !important;
  border-radius: 5px !important;
  color: var(--green) !important;
  cursor: pointer !important;
  transition: background 0.15s, box-shadow 0.15s !important;
  height: auto !important;
  line-height: 1.5 !important;
  text-align: center !important;
}
.seanav-filter-drawer-body .price_slider_amount .button:hover {
  background: rgba(0,255,136,0.14) !important;
  box-shadow: 0 0 0 1px var(--border-green) !important;
}

/* ── Price filter: two-button row (FILTER + CLEAR) ── */
.seanav-filter-drawer-body .seanav-price-btn-row {
  display: flex !important;
  gap: 8px !important;
  order: 3 !important;
  width: 100% !important;
}
/* Override full-width / order rules when button lives inside the row */
.seanav-filter-drawer-body .seanav-price-btn-row .button {
  flex: 1 !important;
  width: auto !important;
  order: unset !important;
  min-width: 0 !important;
}
/* CLEAR button — muted ghost style */
.seanav-filter-drawer-body .seanav-price-clear-btn {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 7px 10px !important;
  font-family: var(--f-mono) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  background: transparent !important;
  border: 1px solid rgba(0,255,136,0.18) !important;
  border-radius: 5px !important;
  color: rgba(0,255,136,0.45) !important;
  cursor: pointer !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  text-align: center !important;
}
.seanav-filter-drawer-body .seanav-price-clear-btn:hover {
  background: rgba(255,60,60,0.07) !important;
  border-color: rgba(255,80,80,0.4) !important;
  color: rgba(255,110,110,0.85) !important;
  text-decoration: none !important;
}

/* ── Active filter chips ── */
.seanav-filter-drawer-body .wc-layered-nav-term {
  padding: 8px 16px 10px !important;
  margin: 0 !important;
}
.seanav-filter-drawer-body .chosen-filters .chosen-filter,
.seanav-filter-drawer-body .woocommerce-widget-layered-nav-list .chosen {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: rgba(0,255,136,0.07) !important;
  border: 1px solid var(--border-green) !important;
  border-radius: 20px !important;
  padding: 3px 10px !important;
  font-size: 0.68rem !important;
  color: var(--green) !important;
  margin: 2px !important;
}

/* ── Brand list ── */
.seanav-filter-drawer-body .seanav-brand-list {
  list-style: none !important;
  padding: 6px 16px 10px !important;
  margin: 0 !important;
}
.seanav-filter-drawer-body .seanav-brand-list li { list-style: none !important; margin: 0 !important; }
.seanav-filter-drawer-body .seanav-brand-list li a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 5px 4px !important;
  font-size: 0.78rem !important;
  color: var(--t-muted) !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  transition: color 0.15s, background 0.15s, padding-left 0.15s !important;
}
.seanav-filter-drawer-body .seanav-brand-list li a:hover {
  color: var(--green) !important;
  background: rgba(0,255,136,0.05) !important;
  padding-left: 8px !important;
}
.seanav-filter-drawer-body .seanav-brand-list .count {
  font-family: var(--f-mono) !important;
  font-size: 0.58rem !important;
  color: var(--t-dim) !important;
  background: var(--surface-4) !important;
  padding: 1px 6px !important;
  border-radius: 20px !important;
  flex-shrink: 0 !important;
}
.seanav-filter-drawer-body .seanav-brand-list li a:hover .count {
  background: rgba(0,255,136,0.18) !important;
  color: var(--green) !important;
}

/* ── Product search widget in drawer ── */
.seanav-filter-drawer-body .woocommerce-product-search,
.seanav-filter-drawer-body .seanav-product-search {
  position: relative !important;
  display: block !important;
  padding: 10px 16px 12px !important;
  margin: 0 !important;
}
.seanav-filter-drawer-body .woocommerce-product-search .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}
.seanav-filter-drawer-body .woocommerce-product-search .search-field,
.seanav-filter-drawer-body .seanav-product-search .search-field {
  background: var(--surface-3) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 7px !important;
  color: var(--t-primary) !important;
  font-size: 0.78rem !important;
  padding: 9px 40px 9px 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  outline: none !important;
  display: block !important;
  transition: border-color 0.18s, box-shadow 0.18s !important;
}
.seanav-filter-drawer-body .woocommerce-product-search .search-field:focus,
.seanav-filter-drawer-body .seanav-product-search .search-field:focus {
  border-color: var(--border-green) !important;
  box-shadow: 0 0 0 2px rgba(0,255,136,0.1) !important;
}
.seanav-filter-drawer-body .woocommerce-product-search .seanav-product-search-btn,
.seanav-filter-drawer-body .seanav-product-search .seanav-product-search-btn {
  position: absolute !important;
  right: 20px !important;
  top: 50% !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300ff88' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 15px 15px !important;
  border: none !important;
  box-shadow: none !important;
  color: #00ff88 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 5 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.seanav-filter-drawer-body .woocommerce-product-search .seanav-product-search-btn:hover,
.seanav-filter-drawer-body .seanav-product-search .seanav-product-search-btn:hover {
  color: #f0f6fc !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f0f6fc' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
}
/* Hide inline SVG if present — CSS background icon is the reliable source */
.seanav-filter-drawer-body .woocommerce-product-search .seanav-product-search-btn svg,
.seanav-filter-drawer-body .seanav-product-search .seanav-product-search-btn svg,
.seanav-filter-drawer-body .woocommerce-product-search .seanav-product-search-icon,
.seanav-filter-drawer-body .seanav-product-search .seanav-product-search-icon {
  display: none !important;
}

/* ── Toolbar sort select (outside drawer) ── */
.seanav-toolbar-sort .woocommerce-ordering {
  float: none !important;
  margin: 0 !important;
}
.seanav-toolbar-sort .woocommerce-ordering select.orderby {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: var(--surface-3)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2300ff88' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E")
    no-repeat right 10px center !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 7px !important;
  color: var(--t-muted) !important;
  font-family: var(--f-mono) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  padding: 6px 28px 6px 10px !important;
  cursor: pointer !important;
  outline: none !important;
  transition: border-color 0.18s, box-shadow 0.18s, color 0.18s !important;
  height: auto !important;
  min-width: 175px !important;
}
.seanav-toolbar-sort .woocommerce-ordering select.orderby:hover {
  border-color: var(--border-green) !important;
  color: var(--t-primary) !important;
}
.seanav-toolbar-sort .woocommerce-ordering select.orderby:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 2px rgba(0,255,136,0.12) !important;
  color: var(--t-bright) !important;
}

/* Overlay */
.seanav-filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}
.seanav-filter-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Responsive ---- */
@media (min-width: 1200px) {
  .seanav-shop-fullwidth-wrap .products.seanav-products > .product-small.col {
    flex: 0 0 20% !important;
    width: 20% !important;
    max-width: 20% !important;
  }
}
@media (max-width: 900px) {
  .seanav-shop-fullwidth-wrap .products.seanav-products > .product-small.col {
    flex: 0 0 33.3333% !important;
    width: 33.3333% !important;
    max-width: 33.3333% !important;
  }
}
@media (max-width: 540px) {
  .seanav-shop-fullwidth-wrap {
    padding: 0 10px 30px;
  }
  .seanav-shop-fullwidth-wrap .products.seanav-products > .product-small.col {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
  }
  .seanav-filter-drawer { width: 88vw; }
}
