/* =============================================================================
   OCTOVIA NEXUS PROMO — PRODUCT CATALOG
   Comprehensive WooCommerce shop/catalog styles
   ============================================================================= */

/* ===== SHOP LAYOUT (Sidebar + Main) ===== */
.op-shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--op-space-xl);
  padding: var(--op-space-2xl) 0;
  align-items: start;
}

.op-shop-main {
  min-width: 0; /* prevent grid blowout */
}

/* ===== SIDEBAR FILTERS ===== */
.op-shop-sidebar {
  background: var(--op-card);
  border-radius: var(--op-radius-lg);
  box-shadow: var(--op-shadow-sm);
  padding: var(--op-space-lg);
  position: sticky;
  top: var(--op-space-lg);
}

.op-shop-sidebar-title {
  font-family: var(--op-font-display);
  font-size: var(--op-text-lg);
  font-weight: 700;
  color: var(--op-text);
  margin: 0 0 var(--op-space-md);
  padding-bottom: var(--op-space-sm);
  border-bottom: 2px solid var(--op-primary);
}

/* Filter group (collapsible section) */
.op-filter-group {
  border-bottom: 1px solid var(--op-border-light);
  padding: var(--op-space-md) 0;
}
.op-filter-group:last-child {
  border-bottom: none;
}

.op-filter-group__title {
  font-family: var(--op-font);
  font-size: var(--op-text-sm);
  font-weight: 600;
  color: var(--op-text);
  margin: 0 0 var(--op-space-sm);
}

.op-filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--op-font);
  font-size: var(--op-text-sm);
  font-weight: 600;
  color: var(--op-text);
  cursor: pointer;
  user-select: none;
  padding: var(--op-space-xs) 0;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.op-filter-title:hover {
  color: var(--op-primary);
}
.op-filter-title::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--op-text-muted);
  border-bottom: 2px solid var(--op-text-muted);
  transform: rotate(45deg);
  transition: transform var(--op-transition);
  flex-shrink: 0;
  margin-left: var(--op-space-sm);
}
.op-filter-group.is-collapsed .op-filter-title::after {
  transform: rotate(-45deg);
}
.op-filter-group.is-collapsed .op-filter-list,
.op-filter-group.is-collapsed .op-price-range {
  display: none;
}

/* Filter list (checkboxes) */
.op-filter-list {
  list-style: none;
  padding: 0;
  margin: var(--op-space-sm) 0 0;
  max-height: 220px;
  overflow-y: auto;
}
.op-filter-list li {
  margin-bottom: var(--op-space-xs);
}
.op-filter-list label {
  display: flex;
  align-items: center;
  gap: var(--op-space-xs);
  font-size: var(--op-text-sm);
  color: var(--op-text-secondary);
  cursor: pointer;
  padding: 2px 0;
  transition: color var(--op-transition);
}
.op-filter-list label:hover {
  color: var(--op-text);
}
.op-filter-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--op-primary);
  flex-shrink: 0;
  cursor: pointer;
}

/* Category link style */
.op-cat-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  text-decoration: none;
  color: #334155;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.op-cat-link:hover {
  color: var(--op-primary);
}
.op-cat-link.active {
  color: var(--op-primary);
  font-weight: 600;
}
.op-cat-count {
  margin-left: auto;
  color: #94A3B8;
  font-size: 0.75rem;
}
.op-cat-name {
  flex: 1;
}

/* Filter count badge */
.op-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--op-border-light);
  color: var(--op-text-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  margin-left: auto;
}

/* ===== COLOUR SWATCH GRID ===== */
.op-colour-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem;
}
.op-colour-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.op-colour-swatch:hover {
  opacity: 0.8;
}
.op-swatch-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px #E2E8F0;
  transition: all 0.2s;
}
.op-colour-swatch.active .op-swatch-circle {
  border-color: var(--op-primary);
  box-shadow: 0 0 0 2px var(--op-primary);
}
.op-swatch-label {
  font-size: 0.6875rem;
  color: #64748B;
  max-width: 50px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Price range inputs */
.op-price-filter {
  padding-top: 0.5rem;
}
.op-price-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.op-price-field {
  flex: 1;
}
.op-price-label {
  display: block;
  font-size: 0.8125rem;
  color: #64748B;
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.op-price-dash {
  color: var(--op-text-muted);
  font-size: var(--op-text-sm);
  flex-shrink: 0;
}
.op-price-field input {
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius);
  font-family: var(--op-font);
  font-size: var(--op-text-sm);
  color: var(--op-text);
  background: var(--op-white);
  transition: border-color var(--op-transition);
}
.op-price-field input:focus {
  outline: none;
  border-color: var(--op-primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}
.op-price-apply {
  background: none;
  border: 1px solid var(--op-primary);
  color: var(--op-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--op-radius);
  font-weight: 600;
  cursor: pointer;
  font-size: var(--op-text-sm);
  font-family: var(--op-font);
  white-space: nowrap;
  margin-top: 0.75rem;
  transition: background var(--op-transition), color var(--op-transition);
}
.op-price-apply:hover {
  background: var(--op-primary);
  color: var(--op-white);
}
.op-price-range-sep {
  color: var(--op-text-muted);
  font-size: var(--op-text-sm);
  flex-shrink: 0;
}

/* Active filters pill row */
.op-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--op-space-xs);
  margin-bottom: var(--op-space-md);
}
.op-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: #E0F2FE;
  color: #0369A1;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}
.op-filter-pill__x {
  text-decoration: none;
  color: #0369A1;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}
.op-filter-pill__x:hover {
  color: #DC2626;
}
.op-filter-clear-link {
  font-size: 0.75rem;
  color: #DC2626;
  text-decoration: none;
  font-weight: 500;
}
.op-filter-clear-link:hover {
  text-decoration: underline;
}
.op-active-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--op-primary-light);
  color: var(--op-primary-dark);
  font-size: var(--op-text-xs);
  font-weight: 500;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--op-transition);
}
.op-active-filter:hover {
  background: var(--op-primary);
  color: var(--op-white);
}
.op-active-filter-x {
  font-size: 0.875rem;
  line-height: 1;
  font-weight: 700;
}
.op-clear-filters {
  font-size: var(--op-text-xs);
  color: var(--op-danger);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  padding: 4px 6px;
  transition: opacity var(--op-transition);
}
.op-clear-filters:hover {
  opacity: 0.7;
}

/* Sidebar header */
.op-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--op-space-md);
}
.op-sidebar-title {
  font-family: var(--op-font-display);
  font-size: var(--op-text-lg);
  font-weight: 700;
  color: var(--op-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.op-sidebar-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--op-text-muted);
  padding: 0.25rem;
}

/* ===== CATEGORY CHIPS (drill-down strip) ===== */
.op-cat-chips {
  display: flex;
  gap: 0.625rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.25rem;
  margin: 0 0 0.5rem;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.op-cat-chips::-webkit-scrollbar { height: 6px; }
.op-cat-chips::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
.op-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 100px;
  text-decoration: none;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.18s ease;
  scroll-snap-align: start;
  white-space: nowrap;
}
.op-cat-chip:hover {
  border-color: var(--op-primary);
  color: var(--op-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.10);
}
.op-cat-chip.is-active {
  background: var(--op-primary);
  border-color: var(--op-primary);
  color: #fff;
}
.op-cat-chip.is-active .op-cat-chip__count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.op-cat-chip__icon,
.op-cat-chip__thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  flex-shrink: 0;
  overflow: hidden;
}
.op-cat-chip__thumb img { width: 100%; height: 100%; object-fit: cover; }
.op-cat-chip__icon--placeholder {
  background: var(--op-primary-light);
  color: var(--op-primary);
  font-weight: 700;
  font-size: 0.875rem;
}
.op-cat-chip__count {
  background: #F1F5F9;
  color: #64748B;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 0.125rem;
}
.op-cat-chip--all { padding-left: 0.875rem; }
.op-cat-chip--all .op-cat-chip__icon { background: var(--op-primary-light); color: var(--op-primary); }

/* ===== CATEGORY MULTI-SELECT (sidebar) ===== */
.op-filter-group__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.op-filter-group__clear {
  font-size: 0.6875rem;
  color: var(--op-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.op-filter-group__clear:hover { text-decoration: underline; }

.op-filter-search {
  width: 100%;
  margin: 0.5rem 0 0.625rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 0.8125rem;
  background: #F8FAFC;
  transition: border-color 0.15s, background 0.15s;
}
.op-filter-search:focus {
  outline: none;
  border-color: var(--op-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

.op-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 320px;
  overflow-y: auto;
  border-radius: 6px;
}
.op-cat-list::-webkit-scrollbar { width: 6px; }
.op-cat-list::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
.op-cat-item { margin: 0; }

.op-cat-check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s;
  font-size: 0.875rem;
}
.op-cat-check:hover { background: #F1F5F9; }
.op-cat-check.is-active { background: var(--op-primary-light); }
.op-cat-check__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.op-cat-check__box {
  width: 18px;
  height: 18px;
  border: 2px solid #CBD5E1;
  border-radius: 4px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.15s;
}
.op-cat-check__box::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity 0.12s;
}
.op-cat-check__input:checked + .op-cat-check__box,
.op-cat-check.is-active .op-cat-check__box {
  background: var(--op-primary);
  border-color: var(--op-primary);
}
.op-cat-check__input:checked + .op-cat-check__box::after,
.op-cat-check.is-active .op-cat-check__box::after {
  opacity: 1;
}
.op-cat-check__name { flex: 1; color: #334155; }
.op-cat-check.is-active .op-cat-check__name { color: var(--op-primary); font-weight: 600; }
.op-cat-check__count {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
  background: #F1F5F9;
  padding: 1px 8px;
  border-radius: 100px;
}
.op-cat-check.is-active .op-cat-check__count {
  background: rgba(8, 145, 178, 0.18);
  color: var(--op-primary);
}

.op-cat-apply {
  width: 100%;
  margin-top: 0.625rem;
  padding: 0.625rem 0.875rem;
  background: var(--op-primary);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
}
.op-cat-apply:hover:not(:disabled) { background: var(--op-primary-dark, #0e7490); }
.op-cat-apply:disabled { background: #CBD5E1; cursor: not-allowed; }
.op-cat-hint {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  color: #94A3B8;
  line-height: 1.4;
  font-style: italic;
}

/* ===== COLOUR DROPDOWN (replaces grid swatch picker) ===== */
.op-colour-select {
  position: relative;
  margin-top: 0.5rem;
}
.op-colour-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #1E293B;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.op-colour-select__trigger:hover { border-color: var(--op-primary); }
.op-colour-select.is-open .op-colour-select__trigger {
  border-color: var(--op-primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}
.op-colour-select__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
}
.op-colour-select__dot--multi {
  background: conic-gradient(#DC2626, #EAB308, #16A34A, #2563EB, #9333EA, #DC2626);
}
.op-colour-select__current { flex: 1; }
.op-colour-select__chevron {
  flex-shrink: 0;
  color: #94A3B8;
  transition: transform 0.18s;
}
.op-colour-select.is-open .op-colour-select__chevron { transform: rotate(180deg); }

.op-colour-select__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12), 0 4px 6px rgba(15,23,42,0.04);
  max-height: 300px;
  overflow-y: auto;
}
.op-colour-select__option { margin: 0; }
.op-colour-select__option a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  text-decoration: none;
  color: #334155;
  font-size: 0.8125rem;
  transition: background 0.12s;
}
.op-colour-select__option a:hover { background: #F1F5F9; }
.op-colour-select__option.is-selected a {
  background: var(--op-primary-light);
  color: var(--op-primary);
  font-weight: 600;
}
.op-colour-select__name { flex: 1; }
.op-colour-select__count {
  font-size: 0.6875rem;
  color: #94A3B8;
  background: #F1F5F9;
  padding: 1px 7px;
  border-radius: 100px;
  font-weight: 500;
}
.op-colour-select__option.is-selected .op-colour-select__count {
  background: rgba(8, 145, 178, 0.15);
  color: var(--op-primary);
}

/* ===== SORT / FILTER BAR ===== */
.op-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--op-space-sm);
  margin-bottom: var(--op-space-lg);
}

.woocommerce-result-count {
  color: var(--op-text-secondary);
  font-size: var(--op-text-sm);
  margin: 0;
}

.woocommerce-ordering select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius);
  font-family: var(--op-font);
  font-size: var(--op-text-sm);
  color: var(--op-text);
  background: var(--op-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  background-size: 10px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--op-transition);
}
.woocommerce-ordering select:focus {
  outline: none;
  border-color: var(--op-primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* ===== PRODUCT GRID ===== */
ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--op-space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* CRITICAL: Override WooCommerce float-based layout */
ul.products li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  background: var(--op-card);
  border-radius: var(--op-radius-lg);
  overflow: hidden;
  box-shadow: var(--op-shadow-sm);
  transition: all var(--op-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  list-style: none;
}
ul.products li.product:hover,
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  box-shadow: var(--op-shadow-md);
  transform: translateY(-2px);
}

/* ===== PRODUCT CARD IMAGE ===== */
.op-product-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Placeholder shown when no image exists at all */
.op-product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
  color: #94A3B8;
}
.op-product-placeholder svg {
  opacity: 0.55;
}
.op-product-placeholder__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #94A3B8;
}
/* Background variant: sits behind a real image (only visible while loading) */
.op-product-placeholder--bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #F1F5F9;
}
.op-product-placeholder--bg .op-product-placeholder__label { display: none; }
.op-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--op-space-md);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  background: #F1F5F9;
}
ul.products li.product:hover .op-product-card-image img {
  transform: scale(1.05);
}

/* Placeholder SVG */
.op-product-card-image .op-placeholder-img {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

/* ===== PRODUCT SKU ===== */
.op-product-sku {
  font-size: 0.8125rem;
  color: #94A3B8;
  display: block;
  margin-bottom: 0.25rem;
}

/* ===== STOCK INFO ===== */
.op-stock-info {
  font-size: 0.8125rem;
  color: var(--op-text-secondary);
  margin: 0.25rem 0;
}
.op-stock-info strong {
  font-weight: 600;
}
.op-stock-info--out {
  color: #DC2626;
}

/* ===== COLOUR SWATCHES (on card) ===== */
.op-colour-swatches {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  margin: 0.25rem 0;
  flex-wrap: wrap;
}
.op-colour-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.op-colour-more {
  font-size: 0.6875rem;
  color: #94A3B8;
  margin-left: 0.125rem;
  font-weight: 500;
}

/* ===== PRODUCT CARD CONTENT ===== */
.op-product-card-body {
  padding: var(--op-space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

ul.products li.product .woocommerce-loop-product__title,
.op-product-card-name {
  font-family: var(--op-font);
  font-size: var(--op-text-sm);
  font-weight: 700;
  color: var(--op-text);
  margin: 0 0 0.25rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.op-product-card-name:hover { color: var(--op-primary); }

ul.products li.product .price,
.op-product-card-price {
  font-family: var(--op-font);
  font-size: var(--op-text-base);
  font-weight: 700;
  color: var(--op-text);
  margin: 0;
}
ul.products li.product .price del {
  color: var(--op-text-muted);
  font-weight: 400;
  font-size: var(--op-text-sm);
  margin-right: var(--op-space-xs);
}
ul.products li.product .price ins {
  text-decoration: none;
  color: var(--op-danger);
  font-weight: 700;
}

/* WooCommerce default sale badge — hidden (we use our own) */
ul.products li.product .onsale {
  display: none;
}

/* Hide empty product cards (skipped by is_visible check) */
ul.products li.product:empty {
  display: none;
}

/* ===== PRODUCT CARD ACTIONS ===== */
.op-product-card-actions {
  padding: 0 var(--op-space-md) var(--op-space-md);
  margin-top: auto;
}
.op-product-card-actions .op-btn,
.op-product-card-actions .button,
.op-product-card-actions .add_to_cart_button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  font-size: var(--op-text-xs);
  font-weight: 600;
  font-family: var(--op-font);
  border: none;
  border-radius: var(--op-radius);
  background: var(--op-primary);
  color: var(--op-white);
  cursor: pointer;
  transition: all var(--op-transition);
  text-decoration: none;
  text-align: center;
}
.op-product-card-actions .op-btn:hover,
.op-product-card-actions .button:hover,
.op-product-card-actions .add_to_cart_button:hover {
  background: var(--op-primary-dark);
}

/* ===== PRODUCT BADGES ===== */
.op-product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  z-index: 2;
}
.op-product-badges span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.op-badge-new {
  background: var(--op-primary-light);
  color: var(--op-primary-dark);
}
.op-badge-sale {
  background: #FEE2E2;
  color: var(--op-danger);
}

/* ===== CATEGORY HERO BANNER ===== */
.op-category-hero {
  background: linear-gradient(135deg, var(--op-primary) 0%, #0E7490 100%);
  color: var(--op-white);
  padding: 2.5rem 2rem;
  margin-bottom: var(--op-space-xl);
  border-radius: var(--op-radius-lg);
  position: relative;
  overflow: hidden;
}
.op-category-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}
.op-category-hero h1 {
  font-family: var(--op-font-display);
  font-size: var(--op-text-3xl);
  font-weight: 800;
  color: var(--op-white);
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 1;
}
.op-category-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0;
  font-size: var(--op-text-base);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ===== BREADCRUMBS ===== */
.op-breadcrumbs {
  padding: var(--op-space-md) 0;
  font-size: var(--op-text-sm);
  color: var(--op-text-muted);
}
.op-breadcrumbs a {
  color: var(--op-text-secondary);
  text-decoration: none;
  transition: color var(--op-transition);
}
.op-breadcrumbs a:hover {
  color: var(--op-primary);
}
.op-breadcrumb-sep {
  margin: 0 0.375rem;
  color: var(--op-border);
}

/* ===== PAGINATION ===== */
nav.woocommerce-pagination {
  margin-top: var(--op-space-2xl);
  text-align: center;
}
nav.woocommerce-pagination ul {
  display: inline-flex;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--op-radius);
  font-size: var(--op-text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--op-transition);
}
nav.woocommerce-pagination ul li a {
  background: var(--op-white);
  color: var(--op-text);
  border: 1px solid var(--op-border);
}
nav.woocommerce-pagination ul li a:hover {
  background: var(--op-primary);
  color: var(--op-white);
  border-color: var(--op-primary);
}
nav.woocommerce-pagination ul li span.current {
  background: var(--op-primary);
  color: var(--op-white);
  border: 1px solid var(--op-primary);
}
nav.woocommerce-pagination ul li span.dots {
  border: none;
  background: transparent;
  color: var(--op-text-muted);
}

/* ===== SKELETON LOADING ===== */
.op-skeleton {
  background: linear-gradient(90deg, var(--op-border-light) 25%, var(--op-bg) 50%, var(--op-border-light) 75%);
  background-size: 200% 100%;
  animation: op-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--op-radius);
}
.op-skeleton-image {
  aspect-ratio: 1;
  border-radius: var(--op-radius-lg) var(--op-radius-lg) 0 0;
}
.op-skeleton-text {
  height: 14px;
  margin: var(--op-space-xs) var(--op-space-md);
}
.op-skeleton-text--short {
  width: 60%;
}
.op-skeleton-price {
  height: 18px;
  width: 40%;
  margin: var(--op-space-xs) var(--op-space-md) var(--op-space-md);
}
.op-skeleton-btn {
  height: 36px;
  margin: 0 var(--op-space-md) var(--op-space-md);
}

@keyframes op-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== NO RESULTS ===== */
.op-no-products {
  text-align: center;
  padding: var(--op-space-3xl) var(--op-space-lg);
  color: var(--op-text-secondary);
  grid-column: 1 / -1;
}
.op-no-products-icon {
  font-size: 3rem;
  margin-bottom: var(--op-space-md);
  opacity: 0.4;
}
.op-no-products h3 {
  font-family: var(--op-font-display);
  font-size: var(--op-text-xl);
  font-weight: 700;
  color: var(--op-text);
  margin: 0 0 var(--op-space-sm);
}
.op-no-products p {
  font-size: var(--op-text-sm);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== STOCK BADGE ===== */
.op-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.5;
}
.op-stock-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.op-stock-badge--instock {
  background: #D1FAE5;
  color: #065F46;
}
.op-stock-badge--instock::before {
  background: var(--op-success);
}
.op-stock-badge--low {
  background: #FEF3C7;
  color: #92400E;
}
.op-stock-badge--low::before {
  background: var(--op-accent);
}
.op-stock-badge--outofstock {
  background: #F1F5F9;
  color: var(--op-text-muted);
}
.op-stock-badge--outofstock::before {
  background: var(--op-text-muted);
}

/* ===== DELIVERY INFO ===== */
.op-delivery-info {
  display: flex;
  align-items: center;
  gap: var(--op-space-xs);
  font-size: var(--op-text-xs);
  color: var(--op-text-secondary);
  margin-top: var(--op-space-xs);
}
.op-delivery-info svg,
.op-delivery-info .op-delivery-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--op-success);
}

/* ===== CHECKOUT PROGRESS INDICATOR ===== */
.op-checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--op-space-lg) 0;
  margin-bottom: var(--op-space-xl);
}

.op-progress-step {
  display: flex;
  align-items: center;
  gap: var(--op-space-xs);
  position: relative;
}

.op-progress-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: var(--op-text-sm);
  font-weight: 700;
  background: var(--op-border-light);
  color: var(--op-text-muted);
  border: 2px solid var(--op-border);
  transition: all var(--op-transition);
  flex-shrink: 0;
}

.op-progress-label {
  font-size: var(--op-text-sm);
  font-weight: 500;
  color: var(--op-text-muted);
  white-space: nowrap;
  transition: color var(--op-transition);
}

.op-progress-line {
  width: 60px;
  height: 2px;
  background: var(--op-border);
  margin: 0 var(--op-space-sm);
  transition: background var(--op-transition);
}

/* Active step */
.op-progress-step--active .op-progress-num {
  background: var(--op-primary);
  color: var(--op-white);
  border-color: var(--op-primary);
}
.op-progress-step--active .op-progress-label {
  color: var(--op-primary);
  font-weight: 600;
}

/* Done step */
.op-progress-step--done .op-progress-num {
  background: var(--op-success);
  color: var(--op-white);
  border-color: var(--op-success);
}
.op-progress-step--done .op-progress-label {
  color: var(--op-text-secondary);
}
.op-progress-step--done ~ .op-progress-line,
.op-progress-line.op-progress-line--done {
  background: var(--op-success);
}

/* ===== MOBILE FILTER TOGGLE ===== */
.op-filter-toggle {
  display: none; /* hidden on desktop */
  align-items: center;
  justify-content: center;
  gap: var(--op-space-xs);
  padding: 0.625rem var(--op-space-md);
  background: var(--op-white);
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius);
  font-family: var(--op-font);
  font-size: var(--op-text-sm);
  font-weight: 500;
  color: var(--op-text);
  cursor: pointer;
  transition: all var(--op-transition);
}
.op-filter-toggle:hover {
  border-color: var(--op-primary);
  color: var(--op-primary);
}
.op-filter-toggle svg {
  width: 16px;
  height: 16px;
}

/* ===== BACK TO TOP BUTTON ===== */
.op-back-to-top {
  position: fixed;
  bottom: 90px; /* above WhatsApp FAB */
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--op-primary);
  color: var(--op-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--op-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}
.op-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.op-back-to-top:hover {
  background: var(--op-primary-dark);
  transform: translateY(-2px);
}
.op-back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ===== RESPONSIVE ===== */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  /* Hide sidebar, show filter toggle */
  .op-shop-layout {
    grid-template-columns: 1fr;
  }

  .op-shop-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    z-index: 1000;
    border-radius: 0;
    overflow-y: auto;
    box-shadow: var(--op-shadow-lg);
    padding: var(--op-space-xl) var(--op-space-lg);
  }
  .op-shop-sidebar.op-shop-sidebar--open {
    display: block;
  }

  .op-sidebar-close {
    display: flex;
  }

  /* Overlay behind sidebar */
  body.op-sidebar-overlay::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  .op-filter-toggle {
    display: inline-flex;
  }

  /* 3-column grid without sidebar */
  ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile landscape — 768px */
@media (max-width: 768px) {
  ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--op-space-md);
  }

  .op-category-hero {
    padding: 1.5rem 1.25rem;
  }
  .op-category-hero h1 {
    font-size: var(--op-text-2xl);
  }

  .op-sort-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .op-checkout-progress {
    flex-wrap: wrap;
    gap: var(--op-space-xs);
  }
  .op-progress-line {
    width: 30px;
  }
  .op-progress-label {
    font-size: var(--op-text-xs);
  }

  .op-shop-sidebar {
    width: 280px;
  }
}

/* Mobile portrait — 480px */
@media (max-width: 480px) {
  ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  ul.products li.product .woocommerce-loop-product__title,
  .op-product-card-name {
    font-size: var(--op-text-xs);
    padding: 0.5rem 0.75rem 0.25rem;
  }

  ul.products li.product .price {
    padding: 0 0.75rem 0.5rem;
    font-size: var(--op-text-sm);
  }

  .op-product-card-actions {
    padding: 0 0.75rem 0.75rem;
  }
  .op-product-card-actions .op-btn,
  .op-product-card-actions .button,
  .op-product-card-actions .add_to_cart_button {
    padding: 0.5rem;
    font-size: 0.6875rem;
  }

  .op-product-card-body {
    padding: var(--op-space-sm);
  }

  .op-category-hero {
    padding: 1.25rem 1rem;
    margin-bottom: var(--op-space-md);
  }
  .op-category-hero h1 {
    font-size: var(--op-text-xl);
  }

  .op-breadcrumbs {
    font-size: var(--op-text-xs);
  }

  nav.woocommerce-pagination ul li a,
  nav.woocommerce-pagination ul li span {
    min-width: 34px;
    height: 34px;
    font-size: var(--op-text-xs);
  }

  .op-checkout-progress {
    padding: var(--op-space-md) 0;
  }
  .op-progress-num {
    width: 26px;
    height: 26px;
    font-size: var(--op-text-xs);
  }
  .op-progress-line {
    width: 20px;
  }

  .op-back-to-top {
    width: 38px;
    height: 38px;
    bottom: 80px;
    right: 14px;
  }
}
