/* ============================================================
   SHOP ARCHIVE – HERO + FILTER + PRODUCTS (AJAX Layout)
   File: assets/css/shop-archive.css
   Theme: Vape Shop SocalBird
   ------------------------------------------------------------
   Goal:
   - Top: Dark hero (breadcrumb + title + subtitle + stats cards)
   - নিচে: White panel
       - Left side filter panel (desktop)
       - Right side product archive (cards = same as home)
   - AJAX filter + pagination (no full page reload)
   - Mobile:
     - Top bar: Filter button + sort dropdown
     - Filter off-canvas from left + overlay
     - Product grid: 2 per row
============================================================ */

/* ---------- Page background ---------- */

.site-main--shop {
  /* Dark top area + light bottom, Figma-like */
  background:
    radial-gradient(circle at top left, rgba(248, 250, 252, 0.14), transparent 55%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.4), transparent 60%),
    linear-gradient(to bottom, #050b16 0, #050b16 320px, #f3f4f6 320px, #f3f4f6 100%);
}

/* ============================================================
   HERO (TOP DARK SECTION)
============================================================ */

.vss-shop-hero {
  padding: 70px 0 84px;
  color: #f9fafb;
  position: relative;
  overflow: hidden;
  margin-top: -32px;
}

.vss-shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.18) 0, transparent 55%),
    radial-gradient(circle at 100% 0, rgba(15, 23, 42, 0.9) 0, transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}

.vss-shop-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.96)),
    radial-gradient(circle at center, rgba(15, 23, 42, 0.2) 0, transparent 60%);
  mix-blend-mode: normal;
  pointer-events: none;
}

.vss-shop-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;

  /* সব content center align */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Breadcrumb */

.vss-shop-hero__breadcrumb {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 14px;
}

.vss-shop-hero__breadcrumb-item {
  position: relative;
  padding-right: 14px;
}

.vss-shop-hero__breadcrumb-item + .vss-shop-hero__breadcrumb-item::before {
  content: '›';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: rgba(148, 163, 184, 0.9);
}

/* Badge */

.vss-shop-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.12);
  background: radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.25), transparent 60%);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fef3c7;
  margin-bottom: 14px;
}

/* Title + subtitle */

.vss-shop-hero__title {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 10px;
}

.vss-shop-hero__title-line {
  display: block;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.9);
}

.vss-shop-hero__title-highlight {
  display: block;
  font-weight: 800;
  color: #f7b34c;
}

.vss-shop-hero__subtitle {
  margin: 0 auto 26px;
  font-size: 14px;
  color: rgba(203, 213, 225, 0.96);
  max-width: 520px;
}

/* Stats cards */

.vss-shop-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.vss-shop-hero__stat {
  flex: 0 0 160px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.98));
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vss-shop-hero__stat-number {
  font-size: 20px;
  font-weight: 700;
  color: #fefce8;
}

.vss-shop-hero__stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(209, 213, 219, 0.85);
}

/* ============================================================
   WHITE PANEL – FILTER + PRODUCTS
============================================================ */

.vss-shop-archive {
  max-width: 1200px;
  margin: 48px auto 64px;
  padding: 0 16px 0;
  position: relative;
  font-family: inherit;
  z-index: 2;
}

/* Top anchor (for JS scroll) */
.vss-shop-archive__top-anchor {
  height: 1px;
  margin-top: -1px;
}

/* Loading state */
.vss-shop-archive.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.vss-shop-archive::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  transition: background 0.2s ease;
  border-radius: 24px;
}

.vss-shop-archive.is-loading::after {
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.06), transparent);
  pointer-events: auto;
}

/* ---------- Layout: Sidebar + main ---------- */

.vss-shop-archive__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

/* ---------- Filters (desktop base) ---------- */

/* main container এখন শুধু wrapper, প্রতিটা section আলাদা card */
.vss-shop-archive__filters {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: 0;
  position: relative;
  z-index: 2;
}

.vss-shop-archive__filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}

.vss-shop-archive__filters-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.vss-shop-archive__filters-reset {
  font-size: 12px;
  color: #9ca3af;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

/* প্রতিটা section এখন আলাদা card */
.vss-shop-archive__filters-section {
  padding: 16px 18px 18px;
  margin-bottom: 14px;
  border-radius: 22px;
  background-color: #ffffff;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(209, 213, 219, 0.9);
}

/* আগের border-top behaviour remove */
.vss-shop-archive__filters-section:first-of-type {
  border-top: 1px solid rgba(209, 213, 219, 0.9);
}

/* ---------- Section titles + SVG icons ---------- */

.vss-shop-archive__filters-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vss-shop-archive__filters-section-title-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f9fafb;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.vss-shop-archive__filters-section-title-icon svg {
  width: 12px;
  height: 12px;
  stroke: #6b7280;
  fill: none;
  stroke-width: 1.8;
}

/* Search */
.vss-shop-archive__filters-section-title--search
  .vss-shop-archive__filters-section-title-icon {
  background: #f9fafb;
}

/* Categories */
.vss-shop-archive__filters-section-title--categories
  .vss-shop-archive__filters-section-title-icon {
  background: #eef2ff;
  border-color: #c4b5fd;
}

/* Price */
.vss-shop-archive__filters-section-title--price
  .vss-shop-archive__filters-section-title-icon {
  background: #fef3c7;
  border-color: #facc15;
}

.vss-shop-archive__filters-section-title--price
  .vss-shop-archive__filters-section-title-icon svg {
  stroke: #f59e0b;
}

/* Rating */
.vss-shop-archive__filters-section-title--rating
  .vss-shop-archive__filters-section-title-icon {
  background: #fef3c7;
  border-color: #facc15;
}

.vss-shop-archive__filters-section-title--rating
  .vss-shop-archive__filters-section-title-icon svg {
  stroke: none;
  fill: #f59e0b;
}

.vss-shop-archive__filters-section-title-text {
  display: inline-block;
}

/* ---------- Search input ---------- */

.vss-shop-archive__price-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.vss-shop-archive__price-input {
  flex: 1 1 0;
  position: relative;
}

.vss-shop-archive__price-input input[type='number'],
.vss-shop-archive__price-input input[type='text'],
.vss-shop-archive__price-input input[type='search'] {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 10px 14px;
  font-size: 13px;
  color: #111827;
  background-color: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.vss-shop-archive__price-input input::placeholder {
  color: #cbd5e1;
}

.vss-shop-archive__price-input input:focus {
  outline: none;
  border-color: #f59e0b;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
}

/* Checkbox filters (Categories) */

.vss-shop-archive__checkbox-list {
  list-style: none;
  margin: 0;
  padding: 2px 0 0;
  max-height: 210px;
  overflow: hidden auto;
}

.vss-shop-archive__checkbox-item {
  font-size: 13px;
  color: #111827;
  margin-bottom: 6px;
}

.vss-shop-archive__checkbox-item:last-child {
  margin-bottom: 0;
}

.vss-shop-archive__checkbox-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 14px;
  transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

/* Checkbox itself */
.vss-shop-archive__checkbox-item input[type='checkbox'] {
  margin: 0;
  width: 15px;
  height: 15px;
  accent-color: #f59e0b;
}

/* Hover / active states (modern :has support থাকলে সুন্দর highlight হবে) */
.vss-shop-archive__checkbox-label:hover {
  background-color: #eef2ff;
}

.vss-shop-archive__checkbox-label:has(input:checked) {
  background-color: #0f172a;
  color: #f9fafb;
}

/* ---------- Category tree dropdown UI ---------- */

.vss-shop-archive__checkbox-list--categories {
  max-height: 320px;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #f59e0b rgba(15, 23, 42, 0.08);
}

.vss-shop-archive__checkbox-list--categories::-webkit-scrollbar {
  width: 5px;
}

.vss-shop-archive__checkbox-list--categories::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
}

.vss-shop-archive__checkbox-list--categories::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #f7b34c, #f59e0b);
  border-radius: 999px;
}

.vss-shop-archive__checkbox-list--categories::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #f59e0b, #ea580c);
}

.vss-shop-archive__checkbox-item--category {
  margin-bottom: 8px;
}

.vss-shop-archive__checkbox-item--category:last-child {
  margin-bottom: 0;
}

.vss-shop-archive__category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.vss-shop-archive__checkbox-label--category {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.vss-shop-archive__checkbox-label--category input[type='checkbox'] {
  flex: 0 0 auto;
}

.vss-shop-archive__category-toggle {
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  height: 32px;
  margin-left: auto;
  border: 1px solid #f59f0a;
  border-radius: 10px;
  background: #fadbb4;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  padding: 0;
}

.vss-shop-archive__category-toggle:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.vss-shop-archive__category-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.vss-shop-archive__checkbox-item--category.is-expanded
  .vss-shop-archive__category-toggle
  svg {
  transform: rotate(180deg);
}

.vss-shop-archive__subcategory-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 0 0 18px;
}

.vss-shop-archive__subcategory-list[hidden] {
  display: none !important;
}

.vss-shop-archive__checkbox-item--subcategory {
  margin-bottom: 4px;
}

.vss-shop-archive__checkbox-item--subcategory:last-child {
  margin-bottom: 0;
}

.vss-shop-archive__checkbox-label--subcategory {
  font-size: 12px;
  color: #374151;
  padding: 6px 10px;
  background-color: #f8fafc;
}

.vss-shop-archive__checkbox-label--subcategory:hover {
  background-color: #eef2ff;
}

.vss-shop-archive__checkbox-label--subcategory:has(input:checked) {
  background-color: #111827;
  color: #ffffff;
}

/* ---------- Rating pills ---------- */

.vss-shop-archive__rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.vss-shop-archive__rating-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 5px 9px 5px 8px;
  font-size: 12px;
  color: #111827;
  background-color: #f9fafb;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.vss-shop-archive__rating-pill input[type='radio'] {
  display: none;
}

.vss-shop-archive__rating-pill span {
  margin-left: 2px;
}

/* ✅ Active state – পুরো pill টা color হবে, radio checked হোক বা class থাকুক */
.vss-shop-archive__rating-pill.is-active,
.vss-shop-archive__rating-pill:has(input[type='radio']:checked) {
  background-color: #f59e0b;
  color: #111827;
  border-color: #f59e0b;
}

/* Filter footer – apply button */

.vss-shop-archive__filters-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

/* ---------- Price card (custom slider UI) ---------- */

.vss-price-filter-card {
  border-radius: 22px;
  background-color: #ffffff;
  padding: 16px 14px 14px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: inset 0 0 0 1px rgba(249, 250, 251, 0.9);
  color: #111827;
}

.vss-price-filter-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.vss-price-filter-card__icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #f59e0b;
  background:
    linear-gradient(135deg, #fef3c7 0, #fde68a 40%, #fed7aa 100%);
  box-shadow: 0 8px 16px rgba(248, 181, 59, 0.55);
}

.vss-price-filter-card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.vss-price-filter-card__values {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
}

.vss-price-filter-card__value {
  flex: 1 1 0;
  border-radius: 16px;
  padding: 10px 11px 9px;
  background-color: #f9fafb;
  border: 1px solid rgba(229, 231, 235, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vss-price-filter-card__value--min {
  background-color: #f9fafb;
}

.vss-price-filter-card__value--max {
  background-color: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

.vss-price-filter-card__value-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.vss-price-filter-card__value-amount {
  font-size: 15px;
  font-weight: 700;
}

/* === Dual range (min + max) – single line + 2 handle === */

.vss-price-filter-card__slider-wrap {
  margin-top: 4px;
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
}

/* Single visual line (track) */
.vss-price-filter-card__slider-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, #fbbf24 0, #f97316 100%);
}

/* দুইটা range input এক লাইনে overlap হবে */
.vss-price-filter-card__slider-wrap .vss-price-filter-card__slider {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 18px;
  top: 30%;
  transform: translateY(-50%);
  background: transparent;
  pointer-events: none;
  margin: 0;
}

/* Default track (WebKit) – geometry রাখব, transparent রাখব */
.vss-price-filter-card__slider-wrap
  .vss-price-filter-card__slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

/* Default track (Firefox) */
.vss-price-filter-card__slider-wrap
  .vss-price-filter-card__slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

/* Thumb style – ঠিক লাইনের মাঝখানে বসবে */
.vss-price-filter-card__slider-wrap
  .vss-price-filter-card__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 50%;
  background-color: #f97316;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(248, 181, 59, 0.35);
}

.vss-price-filter-card__slider-wrap
  .vss-price-filter-card__slider::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 50%;
  background-color: #f97316;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(248, 181, 59, 0.35);
}

/* z-index – যেন দুইটা handle পরিষ্কার দেখা যায় */
.vss-price-filter-card__slider-wrap .js-vss-price-range-min {
  z-index: 3;
}
.vss-price-filter-card__slider-wrap .js-vss-price-range-max {
  z-index: 4;
}

/* ---------- Main area (header + products) ---------- */

.vss-shop-archive__main {
  min-width: 0;
}

/* White panel top bar (result + sort) */

.vss-shop-archive__header {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 14px 18px 14px;
  margin-bottom: 18px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.vss-shop-archive__header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vss-shop-archive__result-count-wrap {
  font-size: 13px;
  color: #64748b;
}

/* Toolbar: sort */

.vss-shop-archive__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.vss-shop-archive__sort {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vss-shop-archive__sort-label {
  font-size: 12px;
  color: #64748b;
}

.vss-shop-archive__sort-select-wrap {
  position: relative;
}

.vss-shop-archive__sort-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background-color: #f9fafb;
  padding: 6px 26px 6px 10px;
  font-size: 12px;
  color: #0f172a;
  cursor: pointer;
}

.vss-shop-archive__sort-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #64748b;
  pointer-events: none;
}

/* View toggle (grid / list) – এখন HTML এ নেই, কিন্তু future use এর জন্য রেখে দিলাম */

.vss-shop-archive__view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vss-shop-archive__view-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background-color: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: #64748b;
}

.vss-shop-archive__view-btn.is-active {
  background-color: #0f172a;
  color: #fefefe;
  border-color: #0f172a;
}

/* ---------- Products grid (Woo loop inside) ---------- */

.vss-shop-archive__products {
  margin-top: 16px;
}

/* WooCommerce default structure:
   .products { display: flex; } etc.
   এখানে archive এর ভিতরে শুধু grid পুনঃডিফাইন করছি
*/
.vss-shop-archive__products ul.products {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* নিশ্চিত করব list style remove থাকে */
.vss-shop-archive__products ul.products li.product {
  margin: 0 !important;
}

/* shop archive card গুলো যেন vertically stretch না হয় */
.vss-shop-archive .home-pbc__product-card,
.vss-shop-archive .home-pbc__product-card-inner {
  height: auto;
}

.vss-shop-archive .home-pbc__product-card-inner {
  justify-content: flex-start;
}

/* Result count (when printed inline) */

.vss-shop-archive__result-count {
  font-size: 13px;
  color: #64748b;
}

/* ---------- Pagination ---------- */

.vss-shop-archive__pagination-wrap {
  margin-top: 22px;
}

.vss-shop-archive__pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background-color: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.vss-shop-archive__pagination--single {
  display: none;
}

.vss-page-btn,
.vss-page-number {
  border-radius: 999px;
  border: 1px solid transparent;
  background-color: transparent;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  color: #0f172a;
}

.vss-page-btn--prev,
.vss-page-btn--next {
  background-color: #0f172a;
  color: #fefefe;
  border-color: #0f172a;
  font-weight: 500;
}

.vss-page-number {
  background-color: #f9fafb;
  border-color: rgba(148, 163, 184, 0.7);
}

.vss-page-number--current {
  background-color: #f7b34c;
  border-color: #f7b34c;
  color: #0f172a;
  font-weight: 600;
}

.vss-page-btn[disabled],
.vss-page-btn.disabled {
  opacity: 0.45;
  cursor: default;
}

.vss-page-dots {
  font-size: 12px;
  color: #94a3b8;
}

/* ---------- Mobile filter toggle + overlay ---------- */

/* Mobile-only top bar inside header */
.vss-shop-archive__mobile-toolbar {
  display: none;
  margin-top: 10px;
  justify-content: space-between;
  gap: 10px;
}

.vss-shop-archive__filter-toggle-btn {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background-color: #0f172a;
  color: #fefefe;
  font-size: 13px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.vss-shop-archive__filter-toggle-btn span {
  font-size: 14px;
  line-height: 1;
}

.vss-shop-archive__mobile-sort {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

/* Off-canvas overlay */
.vss-shop-archive__filters-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 40;
}

.vss-shop-archive__filters-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Buttons inside mobile footer */

.vss-shop-archive__filters-apply-btn {
  flex: 1 1 0;
  border-radius: 999px;
  border: 0;
  background-color: #0f172a;
  color: #fefefe;
  font-size: 13px;
  padding: 7px 14px;
  font-weight: 500;
  cursor: pointer;
}

.vss-shop-archive__filters-clear-btn {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background-color: #ffffff;
  color: #64748b;
  font-size: 12px;
  padding: 7px 12px;
  cursor: pointer;
}

/* Body lock যখন offcanvas খোলা থাকে */
html.vss-filters-open {
  overflow: hidden;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .vss-shop-hero {
    padding: 54px 0 70px;
  }

  .vss-shop-archive {
    margin: -40px auto 52px;
  }

  .vss-shop-archive__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Desktop toolbar hidden, replace by mobile toolbar */
  .vss-shop-archive__toolbar {
    display: none;
  }

  .vss-shop-archive__mobile-toolbar {
    display: flex;
  }

  /* FILTERS → same element as desktop, but off-canvas on mobile */
  .vss-shop-archive__filters {
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    background-color: #ffffff;
    border-radius: 0 16px 16px 0;
    box-shadow: none;
    transform: translateX(-100%);
    transition: transform 0.24s ease-out;
    z-index: 41;
    padding: 18px 16px 20px;
    display: flex;
    flex-direction: column;
    border: 0;
  }

  .vss-shop-archive__filters.is-open {
    transform: translateX(0);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.45);
  }

  .vss-shop-archive__filters-form {
    flex: 1 1 auto;
    margin-top: 8px;
    overflow: hidden auto;
  }

  .vss-shop-archive__filters-footer {
    margin-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }

  .vss-shop-archive__checkbox-list--categories {
    max-height: none;
  }

  .vss-shop-archive__subcategory-list {
    padding-left: 14px;
  }

  /* Products grid: 3 per row tablet */
  .vss-shop-archive__products ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vss-shop-archive__pagination-wrap {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .vss-shop-hero__title {
    font-size: 26px;
  }

  .vss-shop-hero__subtitle {
    font-size: 13px;
  }

  .vss-shop-hero__stats {
    gap: 12px;
  }

  .vss-shop-hero__stat {
    flex: 1 1 0;
  }

  .vss-shop-archive {
    padding: 0 12px;
    margin: -34px auto 44px;
  }

  .vss-shop-archive__header {
    padding: 12px 12px 12px;
  }

  .vss-shop-archive__category-toggle {
    width: 30px;
    min-width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .vss-shop-archive__checkbox-label--category,
  .vss-shop-archive__checkbox-label--subcategory {
    font-size: 12px;
  }

  /* Products grid: 2 per row mobile */
  .vss-shop-archive__products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .vss-shop-archive__pagination {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .vss-shop-archive__products ul.products {
    gap: 10px;
  }

  .vss-page-btn--prev,
  .vss-page-btn--next {
    padding-inline: 8px;
  }
}

/* SHOP ARCHIVE – Fix product card width from home CSS
-------------------------------------------------------- */

.vss-shop-archive ul.products li.product {
  width: 100% !important;
}

/* Home section card CSS reset inside shop archive */
.vss-shop-archive ul.products li.product .home-pbc__product-card,
.vss-shop-archive ul.products li.product .home-pbc__product {
  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
}

/* Inner wrapper যেন normal height/width ব্যবহার করে */
.vss-shop-archive ul.products li.product .home-pbc__product-card-inner {
  width: 100% !important;
  height: auto !important;
  justify-content: flex-start !important;
}

/* =========================================
   LOOP ADD TO CART EXTRA LINK HIDE (SAFETY)
========================================= */

.vss-shop-archive .home-pbc__actions > a.added_to_cart.wc-forward,
.vss-shop-archive a.added_to_cart.wc-forward {
  display: none !important;
}

/* ============================================================
   CATEGORY SEO CONTENT (Bottom Section)
   - shows only on product category pages when enabled
============================================================ */

.vss-category-seo-content{
  max-width: 1200px;
  margin: 100px auto 70px;
  padding: 0 16px;
}

.vss-category-seo-content,
.vss-tax-seo-content{
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px;
}

.vss-category-seo-content *,
.vss-tax-seo-content *{
  box-sizing: border-box;
}

/* Headings */
.vss-category-seo-content h1,
.vss-category-seo-content h2,
.vss-category-seo-content h3,
.vss-category-seo-content h4,
.vss-category-seo-content h5,
.vss-category-seo-content h6,
.vss-tax-seo-content h1,
.vss-tax-seo-content h2,
.vss-tax-seo-content h3,
.vss-tax-seo-content h4,
.vss-tax-seo-content h5,
.vss-tax-seo-content h6{
  margin: 0 0 12px 0;
  color: #111827;
  line-height: 1.25;
}

.vss-category-seo-content h1,
.vss-tax-seo-content h1{ font-size: 24px; font-weight: 800; }
.vss-category-seo-content h2,
.vss-tax-seo-content h2{ font-size: 20px; font-weight: 800; }
.vss-category-seo-content h3,
.vss-tax-seo-content h3{ font-size: 18px; font-weight: 800; }
.vss-category-seo-content h4,
.vss-tax-seo-content h4{ font-size: 16px; font-weight: 800; }

/* Paragraph spacing */
.vss-category-seo-content p,
.vss-tax-seo-content p{
  margin: 0 0 12px 0;
  line-height: 1.85;
  color: #111827;
  font-size: 14px;
}

.vss-category-seo-content p:last-child,
.vss-tax-seo-content p:last-child{
  margin-bottom: 0;
}

/* Links */
.vss-category-seo-content a,
.vss-tax-seo-content a{
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vss-category-seo-content a:hover,
.vss-tax-seo-content a:hover{
  opacity: 0.85;
}

/* Lists */
.vss-category-seo-content ul,
.vss-category-seo-content ol,
.vss-tax-seo-content ul,
.vss-tax-seo-content ol{
  margin: 0 0 12px 18px;
  padding: 0;
}

.vss-category-seo-content li,
.vss-tax-seo-content li{
  margin: 6px 0;
  line-height: 1.75;
  color: #111827;
}

/* Blockquote */
.vss-category-seo-content blockquote,
.vss-tax-seo-content blockquote{
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 4px solid #f7b34c;
  background: #fff7e0;
  border-radius: 12px;
  color: #111827;
}

.vss-category-seo-content blockquote p,
.vss-tax-seo-content blockquote p{
  margin: 0;
}

/* Tables (যদি content এ table থাকে) */
.vss-category-seo-content table,
.vss-tax-seo-content table{
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.vss-category-seo-content th,
.vss-category-seo-content td,
.vss-tax-seo-content th,
.vss-tax-seo-content td{
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding: 10px 12px;
  font-size: 14px;
  text-align: left;
}

.vss-category-seo-content th,
.vss-tax-seo-content th{
  background: #f9fafb;
  font-weight: 700;
  color: #111827;
}

/* Images inside SEO content */
.vss-category-seo-content img,
.vss-tax-seo-content img{
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 10px 0;
}

/* Responsive padding for SEO box */
@media (max-width: 767px){
  .vss-category-seo-content,
  .vss-tax-seo-content{
    padding: 16px 14px;
    margin: 22px auto 56px;
  }
}