/*
 * OM SAI Sports Shop archive.
 * Loaded only when is_shop() is true and scoped by the oss-shop-page body class.
 */
.oss-shop-page {
  --oss-primary: #0B1F3A;
  --oss-primary-dark: #071527;
  --oss-primary-hover: #152C4E;
  --oss-blue: #155EEF;
  --oss-blue-hover: #1048C6;
  --oss-accent: #E53935;
  --oss-accent-hover: #C62828;
  --oss-action-blue: #155EEF;
  --oss-action-blue-hover: #1048C6;
  --oss-bg: #F7F9FC;
  --oss-surface: #FFFFFF;
  --oss-surface-alt: #F8FAFC;
  --oss-surface-soft: #F1F5F9;
  --oss-border: #E6EAF0;
  --oss-border-subtle: #EEF2F6;
  --oss-border-light: #EEF2F6;
  --oss-ink: #0B1F3A;
  --oss-text: #0B1F3A;
  --oss-text-dark: #0B1F3A;
  --oss-muted: #64748B;
  --oss-text-muted: #64748B;
  --oss-radius: 12px;
  --oss-radius-card: 14px;
  --oss-radius-btn: 8px;
  --oss-radius-badge: 6px;
  --oss-radius-sm: 8px;
  --oss-shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.04);
  --oss-shadow-card: 0 4px 16px rgba(11, 31, 58, 0.06);
  --oss-shadow-card-hover: 0 8px 24px rgba(11, 31, 58, 0.12);
  --oss-shadow: 0 4px 16px rgba(11, 31, 58, 0.06);
  --oss-star: #F59E0B;
  background: #F7F9FC;
  color: var(--oss-ink);
}

/* Prevent background scroll when mobile filter drawer is open */
html.oss-drawer-locked,
html.oss-drawer-locked body {
  overflow: hidden !important;
}

.oss-shop-page .xs-section-padding {
  padding-block: clamp(24px, 3vw, 44px);
}

/* Desktop Container: Constrained to 1280px max-width, centered with 24px padding */
.oss-shop-page .shop-archive > .container,
.oss-shop-page .shop-content > .container,
.oss-shop-page .xs-content-section > .container,
.oss-shop-page .site-main > .container,
.oss-shop-page .woocommerce-page .container,
.oss-shop-page .oss-shop-layout,
.oss-shop-page .oss-shop-toolbar-wrapper,
.oss-shop-page .oss-category-hero {
  width: min(100% - 48px, 1280px) !important;
  max-width: 1280px !important;
  padding-inline: 0 !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}
.oss-shop-page .shop-archive > .container > .row,
.oss-shop-page .shop-content > .container > .row,
.oss-shop-page .xs-content-section > .container > .row,
.oss-shop-page .site-main > .container > .row,
.oss-shop-page .shop-area .row {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}
.oss-shop-page #primary,
.oss-shop-page #primary[class*="col-"],
.oss-shop-page .content-area,
.oss-shop-page #main,
.oss-shop-page .site-main {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  padding-inline: 0 !important;
  margin-inline: 0 !important;
  float: none !important;
  display: block !important;
}

/* Suppress Marketo parent theme raw category header and oversized category image */
.oss-shop-page .woocommerce-products-header > .woocommerce-products-header__title,
.oss-shop-page .woocommerce-products-header > .page-title,
.oss-shop-page .woocommerce-products-header > h5,
.oss-shop-page .woocommerce-products-header .woo-cat-image,
.oss-shop-page .woo-cat-image,
.oss-shop-page .wpc-custom-selected-terms {
  display: none !important;
}

.oss-shop-page .woocommerce-products-header {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* Suppress legacy Marketo sidebar on Shop page completely */
.oss-shop-page .sidebar-shop,
.oss-shop-page .sidebar-shop[class*="col-"],
.oss-shop-page aside.sidebar-shop,
.oss-shop-page .shop-sidebar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  flex: 0 0 0% !important;
}

/* Suppress permanent Rating and Category sidebar clutter inside Shop */
.oss-shop-page :is(.sidebar-shop, #secondary, .widget-area) :is(.widget_rating_filter, .widget_products, .product_list_widget, .widget-title:has(+ .product_list_widget)) {
  display: none !important;
}

/* ==========================================================================
   Category Archive Hero (Breadcrumbs, Title, Description, Subcategories)
   ========================================================================== */
.oss-category-hero {
  margin: 0 0 28px;
}
.oss-category-breadcrumb {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: #64748B;
}
.oss-category-breadcrumb ol.oss-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
}
.oss-category-breadcrumb li.oss-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: #64748B;
}
.oss-category-breadcrumb li.oss-breadcrumb-item a {
  color: #64748B;
  text-decoration: none;
  transition: color 0.18s ease;
}
.oss-category-breadcrumb li.oss-breadcrumb-item a:hover {
  color: var(--oss-blue, #155EEF);
}
.oss-category-breadcrumb .oss-breadcrumb-sep {
  color: #CBD5E1;
  margin: 0 4px;
}
.oss-category-header {
  margin-bottom: 20px;
}
.oss-category-title {
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 850;
  color: var(--oss-ink, #0B1F3A);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 8px;
}
.oss-category-description {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #475467;
  max-width: 75ch;
  margin: 0;
}
.oss-category-description p {
  margin: 0 0 8px;
}
.oss-category-description p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Category Subcategories Bar & Brand Archive Hero
   ========================================================================== */
.oss-archive-subcategories-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid var(--oss-border);
  border-radius: var(--oss-radius-sm);
  box-shadow: 0 2px 8px rgba(15, 29, 47, 0.04);
}
.oss-subcategories-label {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--oss-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.oss-subcategories-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.oss-subcat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  min-height: 36px;
  box-sizing: border-box;
  background: var(--oss-surface-alt);
  border: 1px solid var(--oss-border);
  border-radius: 999px;
  color: var(--oss-ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.oss-subcat-chip:hover,
.oss-subcat-chip.is-active {
  background: var(--oss-primary);
  border-color: var(--oss-primary);
  color: #ffffff;
}
.oss-subcat-count {
  font-size: 0.74rem;
  opacity: 0.8;
}

/* Brand Archive Hero */
.oss-brand-archive-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 28px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid var(--oss-border);
  border-radius: var(--oss-radius);
  box-shadow: 0 2px 10px rgba(15, 29, 47, 0.04);
}
.oss-brand-archive-hero__logo {
  flex: 0 0 auto;
  max-width: 140px;
  max-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oss-brand-archive-hero__logo img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.oss-brand-archive-hero__content {
  flex: 1 1 auto;
}
.oss-brand-archive-hero__title {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 850;
  color: var(--oss-ink);
  letter-spacing: -0.02em;
}
.oss-brand-archive-hero__description {
  margin: 0;
  font-size: 0.92rem;
  color: var(--oss-muted);
  line-height: 1.5;
  max-width: 65ch;
}

/* ==========================================================================
   Modern Toolbar (Filter Trigger, Result Count, Authoritative Sorting)
   ========================================================================== */
.oss-shop-toolbar-wrapper {
  clear: both;
  margin: 0 0 24px;
}
.oss-shop-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  min-height: 56px !important;
  padding: 10px 18px !important;
  margin: 0 0 24px !important;
  background: var(--oss-surface, #ffffff) !important;
  border: 1px solid var(--oss-border, #E6EAF0) !important;
  border-radius: var(--oss-radius, 12px) !important;
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.04) !important;
  box-sizing: border-box !important;
}
.oss-shop-toolbar__left {
  display: flex !important;
  align-items: center !important;
}
.oss-shop-toolbar__right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-left: auto !important;
}
.oss-btn-filter-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 16px !important;
  border: 1.5px solid var(--oss-border, #cbd5e1) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--oss-ink, #0B1F3A) !important;
  font: inherit !important;
  font-size: 0.86rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  white-space: nowrap !important;
}
.oss-btn-filter-trigger:hover {
  background: #f8fafc !important;
  border-color: var(--oss-primary, #0B1F3A) !important;
  color: var(--oss-primary, #0B1F3A) !important;
}
.oss-filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--oss-accent, #E53935);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  line-height: 1;
}
.oss-shop-toolbar__count .woocommerce-result-count {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--oss-muted, #64748B) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  float: none !important;
}
.oss-shop-toolbar__sorting {
  display: flex;
  align-items: center;
}
.oss-shop-toolbar__sorting .woocommerce-ordering {
  float: none;
  margin: 0;
  display: flex;
  align-items: center;
}
.oss-shop-toolbar__sorting .woocommerce-ordering .orderby {
  min-width: 195px;
  height: 40px;
  padding: 6px 36px 6px 14px;
  border: 1.5px solid var(--oss-border, #cbd5e1);
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--oss-ink, #0f1d2f);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6876' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  box-shadow: 0 1px 3px rgba(15, 29, 47, 0.05);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.oss-shop-toolbar__sorting .woocommerce-ordering .orderby:hover {
  border-color: #94a3b8;
}
.oss-shop-toolbar__sorting .woocommerce-ordering .orderby:focus-visible {
  outline: 3px solid var(--oss-action-blue, #2563eb);
  outline-offset: 1px;
}

/* ==========================================================================
   Full-Width Shop Layout (Side Drawer for Filters + Full Products Area)
   ========================================================================== */
.oss-shop-layout {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.oss-shop-desktop-sidebar {
  display: none !important;
}

.oss-shop-main-col {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   Filter Groups (Shared Between Sidebar and Off-Canvas Drawer)
   ========================================================================== */
.oss-filter-groups-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.oss-filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oss-filter-group__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--oss-ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--oss-border-light);
}
.oss-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}
.oss-filter-list::-webkit-scrollbar {
  width: 4px;
}
.oss-filter-list::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}
.oss-filter-list__item {
  margin: 0;
  padding: 0;
}
.oss-filter-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--oss-ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.oss-filter-link:hover {
  background: #f1f5f9;
  color: var(--oss-action-blue);
}
.oss-filter-list__item.is-selected .oss-filter-link {
  background: #eef4fa;
  color: var(--oss-action-blue);
  font-weight: 750;
}
.oss-filter-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--oss-border);
  border-radius: 4px;
  background: #ffffff;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  transition: all 0.15s ease;
}
.oss-filter-list__item.is-selected .oss-filter-checkbox {
  background: var(--oss-action-blue);
  border-color: var(--oss-action-blue);
}
.oss-filter-name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oss-filter-count {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--oss-muted);
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
.oss-filter-list__item.is-selected .oss-filter-count {
  background: #dbeafe;
  color: var(--oss-action-blue);
}

/* Price Filter Form inside Filter Groups */
.oss-price-filter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oss-price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.oss-price-input-wrap {
  flex: 1 1 0;
  position: relative;
  display: flex;
  align-items: center;
}
.oss-price-currency {
  position: absolute;
  left: 8px;
  color: var(--oss-muted);
  font-size: 0.8rem;
  font-weight: 700;
  pointer-events: none;
}
.oss-price-input-wrap input {
  width: 100%;
  height: 36px;
  padding: 0 8px 0 22px;
  border: 1px solid var(--oss-border);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--oss-ink);
  box-sizing: border-box;
}
.oss-price-input-wrap input:focus {
  border-color: var(--oss-action-blue);
  outline: none;
}
.oss-price-separator {
  color: var(--oss-muted);
  font-weight: 700;
}
.oss-btn-price-apply {
  padding: 8px 16px;
  background: var(--oss-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.18s ease;
  width: 100%;
  text-align: center;
}
.oss-btn-price-apply:hover {
  background: var(--oss-primary-hover);
}

/* Active Filter Chips Bar (Above Products Grid) */
.oss-active-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 8px 0;
}
.oss-active-filters-label {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--oss-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.oss-active-chips-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.oss-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #eef4fa;
  border: 1px solid #cbdde9;
  border-radius: 999px;
  color: var(--oss-primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.oss-filter-chip:hover {
  background: #e2ecf5;
  border-color: var(--oss-accent);
  color: var(--oss-accent);
}
.oss-chip-remove {
  font-size: 1.1rem;
  line-height: 1;
}
.oss-clear-all-link {
  margin-left: 6px;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--oss-accent);
  text-decoration: underline;
  cursor: pointer;
}
.oss-clear-all-link:hover {
  color: var(--oss-accent-hover);
}

/* ==========================================================================
   Dedicated Off-Canvas Filter Drawer (Mobile & Tablet <= 1023px)
   ========================================================================== */
.oss-filter-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--oss-z-drawer-backdrop, 1200) !important;
  background: rgba(15, 29, 47, 0.6) !important;
  backdrop-filter: blur(3px);
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.28s ease !important;
}
.oss-filter-backdrop.is-active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.oss-filter-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: var(--oss-z-drawer, 1210) !important;

  width: min(90vw, 380px) !important;
  max-width: 380px !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  box-shadow: -8px 0 32px rgba(15, 29, 47, 0.22) !important;
  transform: translateX(105%) !important;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none;
  visibility: hidden;
}
.oss-filter-drawer.is-open {
  transform: translateX(0) !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
.oss-filter-drawer__header {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 22px !important;
  border-bottom: 1px solid var(--oss-border) !important;
  background: #ffffff !important;
}
.oss-filter-drawer__header h3 {
  margin: 0 !important;
  color: var(--oss-ink) !important;
  font-size: 1.15rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
  text-transform: uppercase !important;
}
.oss-filter-drawer__close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid var(--oss-border) !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  color: var(--oss-ink) !important;
  font-size: 1.5rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}
.oss-filter-drawer__close:hover {
  background: #f1f5f9 !important;
  color: var(--oss-accent) !important;
}
.oss-filter-drawer__body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 22px !important;
}
.oss-filter-drawer__footer {
  flex: 0 0 auto !important;
  position: sticky !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 16px 22px !important;
  border-top: 1px solid var(--oss-border) !important;
  background: #ffffff !important;
  box-shadow: 0 -4px 16px rgba(15, 29, 47, 0.08) !important;
}
.oss-btn-drawer-clear {
  color: var(--oss-muted) !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}
.oss-btn-drawer-clear:hover {
  color: var(--oss-accent) !important;
}
.oss-btn-drawer-apply {
  padding: 11px 22px !important;
  min-height: 44px !important;
  background: var(--oss-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  cursor: pointer !important;
  transition: background 0.18s ease !important;
}
.oss-btn-drawer-apply:hover {
  background: var(--oss-primary-hover) !important;
}

/* Empty State Suggestions */
.oss-empty-state-suggestions {
  margin: 16px auto 24px;
  max-width: 500px;
  text-align: left;
}
.oss-suggestions-list {
  list-style: disc;
  padding-left: 24px;
  margin: 0;
  color: var(--oss-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Product Grid: Desktop Base (Default 3 items beside sidebar) */
.oss-shop-page .oss-products-grid,
.oss-shop-page .oss-shop-main-col .row,
.oss-shop-page .oss-shop-layout .row,
.oss-shop-page #primary .oss-shop-main-col .row,
.oss-shop-page #primary .row,
.oss-shop-page ul.products,
.oss-shop-page .woocommerce ul.products,
.oss-shop-page #primary ul.products,
.oss-shop-page #main ul.products,
.oss-shop-page .products {
  display: grid !important;
  clear: both !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 40px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
  box-sizing: border-box !important;
}

/* Single Product Category or Grid: Constrain card width cleanly, prevent awkward 1-of-4 grid gap */
.oss-shop-page .oss-products-grid.oss-products-grid--single,
.oss-shop-page .oss-products-grid:has(> li.product:only-of-type) {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  width: 100% !important;
}

.oss-shop-page .oss-products-grid.oss-products-grid--single > li.product,
.oss-shop-page .oss-products-grid:has(> li.product:only-of-type) > li.product {
  width: 100% !important;
  max-width: 295px !important;
  flex: 0 0 295px !important;
}

/* Suppress any rogue non-product items inside grid (e.g., Marketo compare/wishlist wrappers) */
.oss-shop-page .oss-products-grid > li:not(.type-product):not(.product),
.oss-shop-page .oss-products-grid > li.xs-wishlist-wrapper {
  display: none !important;
}

/* Premium Product Card Structure */
.oss-shop-page .oss-products-grid > li.product,
.oss-shop-page .oss-shop-main-col .row > li.product,
.oss-shop-page .oss-shop-layout .row > li.product,
.oss-shop-page #primary .oss-shop-main-col .row > li.product,
.oss-shop-page #primary .row > li.product,
.oss-shop-page ul.products > li.product,
.oss-shop-page .woocommerce ul.products > li.product,
.oss-shop-page #primary ul.products > li.product,
.oss-shop-page li.product {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--oss-border, #E6EAF0) !important;
  border-radius: var(--oss-radius-card, 14px) !important;
  background: var(--oss-surface, #ffffff) !important;
  box-shadow: var(--oss-shadow-card, 0 4px 16px rgba(11, 31, 58, 0.06)) !important;
  list-style: none !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.oss-shop-page .oss-products-grid > li.product:hover,
.oss-shop-page .oss-shop-main-col .row > li.product:hover,
.oss-shop-page .oss-shop-layout .row > li.product:hover,
.oss-shop-page #primary .row > li.product:hover,
.oss-shop-page ul.products > li.product:hover,
.oss-shop-page .woocommerce ul.products > li.product:hover,
.oss-shop-page li.product:hover {
  border-color: #CBD5E1 !important;
  box-shadow: var(--oss-shadow-card-hover, 0 8px 24px rgba(11, 31, 58, 0.12)) !important;
  transform: translateY(-4px) !important;
}

.oss-shop-page li.product .woocommerce-LoopProduct-link {
  color: inherit;
  text-decoration: none;
}

/* Product Card Image Stage: Contained aspect ratio, scales to card not page */
.oss-shop-page li.product .xs_product_img_link {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  background: #ffffff !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid var(--oss-border-subtle, #EEF2F6) !important;
}

.oss-shop-page li.product .xs_product_img_link img {
  display: block !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  transition: transform .28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.oss-shop-page li.product:hover .xs_product_img_link img {
  transform: scale(1.04) !important;
}

/* Genuine Discount Badge & Sale Flash */
.oss-shop-page li.product .onsale,
.oss-shop-page li.product .oss-discount-badge {
  position: absolute;
  top: 10px;
  right: auto;
  left: 10px;
  z-index: 3;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 4px 8px;
  border-radius: var(--oss-radius-badge, 6px);
  background: var(--oss-accent, #E53935);
  color: #ffffff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(229, 57, 53, 0.28);
}

/* Action Icons: Wishlist, Compare, Quickview */
.oss-shop-page li.product .product-item-meta {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: flex;
  width: auto;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}
.oss-shop-page li.product .product-item-meta > li {
  margin: 0;
}
/* By default on desktop, secondary actions fade in on card hover; wishlist stays visible */
.oss-shop-page li.product .product-item-meta > li:not(.xs-wishlist-wrapper) {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.oss-shop-page li.product:hover .product-item-meta > li:not(.xs-wishlist-wrapper),
.oss-shop-page li.product:focus-within .product-item-meta > li:not(.xs-wishlist-wrapper) {
  opacity: 1;
  transform: translateX(0);
}
.oss-shop-page li.product .product-item-meta a,
.oss-shop-page li.product .product-item-meta button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  padding: 0;
  border: 1px solid var(--oss-border);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 29, 47, 0.08);
  color: var(--oss-muted);
  font-size: 0;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.oss-shop-page li.product .product-item-meta :is(a, button):hover {
  border-color: var(--oss-accent);
  background: #fff5f5;
  color: var(--oss-accent);
  transform: scale(1.06);
}
.oss-shop-page li.product .product-item-meta :is(a, button):focus-visible,
.oss-shop-page li.product .xs_product_img_link:focus-visible,
.oss-shop-page li.product .product-title a:focus-visible {
  outline: 3px solid var(--oss-ink);
  outline-offset: 2px;
}
.oss-shop-page li.product .product-item-meta :is(i, svg) {
  width: 20px;
  height: 20px;
  font-size: 19px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.oss-shop-page li.product {
  cursor: pointer;
}

/* Suppress the redundant cart wrapper in the floating top-right action rail.
   Primary Add to Cart button is already rendered at the bottom of the card.
   This permanently eliminates the empty / blank circle bug. */
.oss-shop-page li.product .product-item-meta > li.xs-cart-wrapper,
.oss-shop-page li.product .product-item-meta .xs-cart-wrapper {
  display: none !important;
}

/* Unified Premium Product Card Styling for Catalog Archives */
.oss-shop-page .oss-products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  margin: 0 0 40px !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

@media (max-width: 1199px) {
  .oss-shop-page .oss-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 767px) {
  .oss-shop-page .oss-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

.oss-shop-page .oss-product-card {
  display: flex !important;
  overflow: hidden !important;
  min-width: 0 !important;
  flex-direction: column !important;
  border: 1px solid var(--oss-border, #E6EAF0) !important;
  border-radius: var(--oss-radius-card, 14px) !important;
  background: var(--oss-surface, #FFFFFF) !important;
  box-shadow: var(--oss-shadow-card, 0 4px 16px rgba(11, 31, 58, 0.06)) !important;
  cursor: pointer !important;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.oss-shop-page .oss-product-card:hover {
  border-color: #CBD5E1 !important;
  box-shadow: var(--oss-shadow-card-hover, 0 8px 24px rgba(11, 31, 58, 0.12)) !important;
  transform: translateY(-4px) !important;
}
.oss-shop-page .oss-product-card :is(.yith-woocompare-add-button, a.compare, .compare-button, .xs-cart-wrapper, [data-target*="quick-view"], .xsicon-eye) {
  display: none !important;
}
.oss-shop-page .oss-product-card__media-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}
.oss-shop-page .oss-product-card__media {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1 !important;
  background: #f8fafc !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid var(--oss-border-subtle, #EEF2F6) !important;
}
.oss-shop-page .oss-product-card__image,
.oss-shop-page .oss-product-card__media img {
  display: block !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  transition: transform .28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.oss-shop-page .oss-product-card:hover .oss-product-card__image,
.oss-shop-page .oss-product-card:hover .oss-product-card__media img {
  transform: scale(1.04) !important;
}
.oss-shop-page .oss-product-card__wishlist {
  position: absolute !important;
  z-index: 3 !important;
  top: 10px !important;
  right: 10px !important;
}
.oss-shop-page .oss-product-card__wishlist :is(a, button):not(.button) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid var(--oss-border, #E6EAF0) !important;
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.06) !important;
  color: var(--oss-muted, #64748B) !important;
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background-color .18s ease !important;
}
.oss-shop-page .oss-product-card__wishlist :is(a, button):hover {
  transform: scale(1.08) !important;
  border-color: var(--oss-accent, #E53935) !important;
  background: #FFF5F5 !important;
  color: var(--oss-accent, #E53935) !important;
}
.oss-shop-page .oss-product-card__wishlist :is(.yith-wcwl-wishlistaddedbrowse, .yith-wcwl-wishlistexistsbrowse) a {
  border-color: var(--oss-accent, #E53935) !important;
  color: var(--oss-accent, #E53935) !important;
  background: #FFF5F5 !important;
}
.oss-shop-page .oss-product-card__wishlist :is(i, svg) {
  width: 18px !important;
  height: 18px !important;
  font-size: 17px !important;
  line-height: 1 !important;
}
.oss-shop-page .oss-product-card__badge {
  position: absolute !important;
  z-index: 2 !important;
  top: 10px !important;
  left: 10px !important;
  padding: 4px 8px !important;
  border-radius: var(--oss-radius-badge, 6px) !important;
  background: var(--oss-accent, #E53935) !important;
  color: #fff !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .03em !important;
  text-transform: uppercase !important;
}
.oss-shop-page .oss-product-card__body {
  display: flex !important;
  flex: 1 !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  padding: 14px 14px 16px !important;
}
.oss-shop-page .oss-product-card__meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 8px !important;
  margin-bottom: 6px !important;
}
.oss-shop-page .oss-product-card__brand {
  font-size: .70rem !important;
  font-weight: 750 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: var(--oss-muted, #64748B) !important;
}
.oss-shop-page .oss-product-card__stock {
  margin: 0 !important;
  color: #059669 !important;
  font-size: .70rem !important;
  font-weight: 750 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}
.oss-shop-page .oss-product-card__stock.out-of-stock {
  color: #dc2626 !important;
}
.oss-shop-page .oss-product-card__title,
.oss-shop-page .oss-product-card h3 {
  margin: 2px 0 0 !important;
  font-size: clamp(0.88rem, 0.95vw, 0.98rem) !important;
  font-weight: 700 !important;
  line-height: 1.38 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.7em !important;
}
.oss-shop-page .oss-product-card__title a,
.oss-shop-page .oss-product-card h3 a {
  color: var(--oss-ink, #0B1F3A) !important;
  text-decoration: none !important;
  transition: color .18s ease !important;
}
.oss-shop-page .oss-product-card__title a:hover,
.oss-shop-page .oss-product-card h3 a:hover {
  color: var(--oss-blue, #155EEF) !important;
}
.oss-shop-page .oss-product-card__rating {
  margin: 6px 0 4px !important;
  min-height: 18px !important;
}
.oss-shop-page .oss-product-card__price {
  margin: 6px 0 12px !important;
  color: var(--oss-ink, #0B1F3A) !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}
.oss-shop-page .oss-product-card__price del {
  color: #94A3B8 !important;
  font-size: .84em !important;
  font-weight: 500 !important;
  text-decoration: line-through !important;
}
.oss-shop-page .oss-product-card__price ins,
.oss-shop-page .oss-product-card__price ins .amount {
  background: transparent !important;
  color: var(--oss-ink, #0B1F3A) !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}
.oss-shop-page .oss-product-card__button.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 42px !important;
  margin: auto 0 0 !important;
  padding: 10px 14px !important;
  border-radius: var(--oss-radius-btn, 8px) !important;
  font-size: .84rem !important;
  font-weight: 750 !important;
  letter-spacing: .02em !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: all .18s ease !important;
}
.oss-shop-page .oss-product-card__button.button:not(.product_type_variable):not(.oss-btn-notify-me) {
  background: var(--oss-primary, #0B1F3A) !important;
  border: 1.5px solid var(--oss-primary, #0B1F3A) !important;
  color: #FFFFFF !important;
}
.oss-shop-page .oss-product-card__button.button:not(.product_type_variable):not(.oss-btn-notify-me):hover {
  background: var(--oss-blue, #155EEF) !important;
  border-color: var(--oss-blue, #155EEF) !important;
  color: #FFFFFF !important;
}
.oss-shop-page .oss-product-card__button.button.product_type_variable {
  background: #FFFFFF !important;
  border: 1.5px solid var(--oss-primary, #0B1F3A) !important;
  color: var(--oss-primary, #0B1F3A) !important;
}
.oss-shop-page .oss-product-card__button.button.product_type_variable:hover {
  background: var(--oss-primary, #0B1F3A) !important;
  border-color: var(--oss-primary, #0B1F3A) !important;
  color: #FFFFFF !important;
}
.oss-shop-page .oss-product-card__button.button.oss-btn-notify-me {
  background: #F8FAFC !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #334155 !important;
}
.oss-shop-page .oss-product-card__button.button.oss-btn-notify-me:hover {
  background: var(--oss-primary, #0B1F3A) !important;
  border-color: var(--oss-primary, #0B1F3A) !important;
  color: #FFFFFF !important;
}

@media (prefers-reduced-motion: reduce) {
  .oss-shop-page li.product,
  .oss-shop-page li.product:hover {
    transition: none !important;
    transform: none !important;
  }
}

/* Product Content & Typography */
.oss-shop-page li.product .xs-product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}
.oss-shop-page li.product .xs-product-content:empty {
  display: none;
}
.oss-shop-page li.product .product-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.oss-shop-page li.product .product-title a {
  color: var(--oss-ink);
  text-decoration: none;
  transition: color .18s ease;
}
.oss-shop-page li.product .product-title a:hover {
  color: var(--oss-blue, #155EEF);
}
.oss-shop-page li.product .star-rating {
  float: none;
  margin: 8px 0 0;
  color: var(--oss-star, #F59E0B) !important;
  font-size: .84rem;
}
.oss-shop-page li.product .price {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 8px 0 12px !important;
  color: var(--oss-ink, #0B1F3A) !important;
  font-size: 1.10rem !important;
  font-weight: 800 !important;
}
.oss-shop-page li.product .price del,
.oss-shop-page li.product .price del .amount,
.oss-shop-page li.product .price del .woocommerce-Price-amount {
  margin-right: 2px !important;
  color: #94A3B8 !important;
  font-size: .84em !important;
  font-weight: 500 !important;
  text-decoration: line-through !important;
}
.oss-shop-page li.product .price ins,
.oss-shop-page li.product .price ins .amount,
.oss-shop-page li.product .price ins .woocommerce-Price-amount {
  background: transparent !important;
  color: var(--oss-ink, #0B1F3A) !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: 1.08em !important;
}
.oss-shop-page li.product .price > .amount,
.oss-shop-page li.product .price > .woocommerce-Price-amount,
.oss-shop-page li.product .price .amount {
  color: var(--oss-ink, #0B1F3A) !important;
  font-weight: 800 !important;
}
.oss-shop-page li.product .oss-shop-stock {
  order: 5;
  width: 100%;
  margin: 6px 0 0;
  color: #059669;
  font-size: .70rem;
  font-weight: 750;
  letter-spacing: .04em;
  line-height: 1.3;
  text-transform: uppercase;
}
.oss-shop-page li.product .oss-shop-stock.out-of-stock {
  color: #dc2626;
}

/* Product Card Action Buttons (Consistent Navy/Blue Sports Palette) */
.oss-shop-page li.product .button,
.oss-shop-page li.product .add_to_cart_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 42px !important;
  margin: auto 0 0 !important;
  padding: 10px 14px !important;
  border-radius: var(--oss-radius-btn, 8px) !important;
  font-size: .84rem !important;
  font-weight: 750 !important;
  letter-spacing: .02em !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: all .18s ease !important;
}
/* Primary Add to Cart button (Solid Navy) */
.oss-shop-page li.product .button:not(.product_type_variable):not(.oss-btn-notify-me),
.oss-shop-page li.product .add_to_cart_button {
  background: var(--oss-primary, #0B1F3A) !important;
  border: 1.5px solid var(--oss-primary, #0B1F3A) !important;
  color: #FFFFFF !important;
}
.oss-shop-page li.product .button:not(.product_type_variable):not(.oss-btn-notify-me):hover,
.oss-shop-page li.product .add_to_cart_button:hover {
  background: var(--oss-blue, #155EEF) !important;
  border-color: var(--oss-blue, #155EEF) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(21, 94, 239, 0.25) !important;
}
/* Select Options button (Outlined Navy) */
.oss-shop-page li.product .button.product_type_variable {
  background: #FFFFFF !important;
  border: 1.5px solid var(--oss-primary, #0B1F3A) !important;
  color: var(--oss-primary, #0B1F3A) !important;
}
.oss-shop-page li.product .button.product_type_variable:hover {
  background: var(--oss-primary, #0B1F3A) !important;
  border-color: var(--oss-primary, #0B1F3A) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.18) !important;
}
/* Notify Me button (Outlined Slate) */
.oss-shop-page li.product .button.oss-btn-notify-me {
  background: #F8FAFC !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #334155 !important;
}
.oss-shop-page li.product .button.oss-btn-notify-me:hover {
  background: var(--oss-primary, #0B1F3A) !important;
  border-color: var(--oss-primary, #0B1F3A) !important;
  color: #FFFFFF !important;
}
.oss-shop-page li.product .button:focus-visible { outline: 3px solid var(--oss-blue, #155EEF); outline-offset: 2px; }

/* Sidebar Widgets & Filter Styling (Legacy fallback) */

.oss-shop-page .sidebar-shop .widget {
  margin: 0 0 20px;
  padding: 20px;
  border: 1px solid var(--oss-border);
  border-radius: var(--oss-radius);
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 29, 47, 0.03);
}
.oss-shop-page .sidebar-shop .widget-title {
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--oss-border-light);
  color: var(--oss-ink);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.3;
  text-transform: uppercase;
}
.oss-shop-page .sidebar-shop ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.oss-shop-page .sidebar-shop .product-categories li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 7px;
  border-bottom: 1px solid #f1f5f9;
}
.oss-shop-page .sidebar-shop .product-categories li:last-child {
  border-bottom: 0;
}
.oss-shop-page .sidebar-shop .product-categories a {
  color: #334155;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease;
}
.oss-shop-page .sidebar-shop .product-categories a:hover {
  color: var(--oss-accent);
}
.oss-shop-page .sidebar-shop .product-categories a:focus-visible,
.oss-shop-page .sidebar-shop .product_list_widget a:focus-visible {
  outline: 2px solid var(--oss-ink);
  outline-offset: 3px;
}
.oss-shop-page .sidebar-shop .count {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--oss-muted);
  font-size: .72rem;
  font-weight: 700;
}

/* Price Filter Widget */
.oss-shop-page .widget_price_filter .price_slider_wrapper {
  padding-top: 8px;
}
.oss-shop-page .widget_price_filter .ui-slider {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
}
.oss-shop-page .widget_price_filter .ui-slider .ui-slider-range {
  background: var(--oss-action-blue, #1d4ed8);
}
.oss-shop-page .widget_price_filter .ui-slider .ui-slider-handle {
  top: -6px;
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--oss-action-blue, #1d4ed8);
  box-shadow: 0 2px 6px rgba(15, 29, 47, 0.25);
  cursor: grab;
}
.oss-shop-page .widget_price_filter .price_slider_amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.oss-shop-page .widget_price_filter .price_slider_amount .price_label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--oss-ink);
}
.oss-shop-page .widget_price_filter .price_slider_amount .button {
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--oss-primary);
  border-radius: 6px;
  background: var(--oss-primary);
  color: #ffffff;
  font-size: .82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: background-color .18s ease, border-color .18s ease;
}
.oss-shop-page .widget_price_filter .price_slider_amount .button:hover {
  border-color: var(--oss-primary-hover);
  background: var(--oss-primary-hover);
}

/* Native Pagination */
.oss-shop-page .woocommerce-pagination {
  clear: both;
  padding-top: 36px;
}
.oss-shop-page .woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  border: 0;
}
.oss-shop-page .woocommerce-pagination ul.page-numbers li {
  border: 0;
}
.oss-shop-page .woocommerce-pagination .page-numbers :is(a, span) {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--oss-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--oss-ink);
  font-weight: 750;
  font-size: .9rem;
  place-items: center;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.oss-shop-page .woocommerce-pagination .page-numbers span.current,
.oss-shop-page .woocommerce-pagination .page-numbers a:hover {
  border-color: var(--oss-primary);
  background: var(--oss-primary);
  color: #ffffff;
}
.oss-shop-page .woocommerce-pagination .page-numbers a:focus-visible {
  outline: 3px solid var(--oss-action-blue);
  outline-offset: 2px;
}

/* Empty Results Card */
.oss-shop-page .woocommerce-info,
.oss-shop-page .woocommerce-no-products-found,
.oss-shop-page .oss-shop-no-results {
  clear: both;
  width: 100%;
  max-width: 680px;
  margin: 28px auto;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 3.5vw, 32px);
  border: 1px solid var(--oss-border);
  border-radius: var(--oss-radius);
  background: #ffffff;
  color: var(--oss-ink);
  box-shadow: var(--oss-shadow);
  text-align: center;
  box-sizing: border-box;
}

/* Prevent double-nesting */
.oss-shop-page :is(.woocommerce-info, .woocommerce-no-products-found, .oss-empty-search-container) :is(.oss-shop-no-results, .woocommerce-no-products-found) {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
.oss-shop-page .oss-shop-no-results__icon {
  display: grid;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--oss-muted);
  place-items: center;
}
.oss-shop-page .oss-shop-no-results h3 {
  margin: 0 0 10px;
  color: var(--oss-ink);
  font-size: 1.3rem;
  font-weight: 800;
}
.oss-shop-page .oss-shop-no-results p {
  max-width: 50ch;
  margin: 0 auto 24px;
  color: var(--oss-muted);
  font-size: .95rem;
  line-height: 1.5;
}
.oss-shop-page .oss-btn-reset-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 28px;
  border: 2px solid var(--oss-primary);
  border-radius: 8px;
  background: var(--oss-primary);
  color: #ffffff;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background-color .18s ease, border-color .18s ease;
}
.oss-shop-page .oss-btn-reset-shop:hover {
  background: var(--oss-primary-hover);
  border-color: var(--oss-primary-hover);
  color: #ffffff;
}

/* Breakpoints & Responsive Multi-Column Product Grid Architecture */

/* 1. Desktop & Large Screens (>= 1100px): 4 Full-Width Columns */
@media (min-width: 1100px) {
  .oss-shop-page .oss-products-grid,
  .oss-shop-page .oss-shop-main-col .row,
  .oss-shop-page .oss-shop-layout .row,
  .oss-shop-page #primary .oss-shop-main-col .row,
  .oss-shop-page #primary .row,
  .oss-shop-page ul.products,
  .oss-shop-page .woocommerce ul.products,
  .oss-shop-page #primary ul.products,
  .oss-shop-page #main ul.products,
  .oss-shop-page .products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

/* 2. Small Laptop & Tablet Landscape (768px - 1099.98px): 3 Columns */
@media (min-width: 768px) and (max-width: 1099.98px) {
  .oss-shop-page .oss-products-grid,
  .oss-shop-page .oss-shop-main-col .row,
  .oss-shop-page .oss-shop-layout .row,
  .oss-shop-page #primary .oss-shop-main-col .row,
  .oss-shop-page #primary .row,
  .oss-shop-page ul.products,
  .oss-shop-page .woocommerce ul.products,
  .oss-shop-page #primary ul.products,
  .oss-shop-page #main ul.products,
  .oss-shop-page .products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 991px) {
  .oss-shop-page .shop-archive > .container,
  .oss-shop-page .shop-content > .container,
  .oss-shop-page .xs-content-section > .container {
    width: min(100% - 32px, 920px) !important;
  }
  .oss-shop-page .shop-archive > .container > .row,
  .oss-shop-page .shop-content > .container > .row,
  .oss-shop-page .xs-content-section > .container > .row {
    display: block !important;
    margin-inline: 0 !important;
  }
  .oss-shop-page #primary,
  .oss-shop-page .content-area {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-inline: 0 !important;
  }
  .oss-shop-page .oss-shop-mobile-filter-bar {
    display: none; /* handled inside modern toolbar mobile pill */
  }

  /* Toolbar adjustments for tablet */
  .oss-shop-toolbar {
    padding: 10px 14px;
  }

  /* Slide-in Filter Drawer for Mobile & Tablet */
  .oss-filter-drawer {
    width: min(90vw, 380px) !important;
  }

  /* On touch/tablet screens, keep all secondary action icons visible */
  .oss-shop-page li.product .product-item-meta > li:not(.xs-wishlist-wrapper) {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .oss-shop-page .shop-archive > .container,
  .oss-shop-page .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  .oss-shop-page .oss-shop-layout,
  .oss-shop-page .oss-shop-layout--fullwidth {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .oss-shop-page .oss-shop-main-col {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .oss-shop-page .woocommerce-info,
  .oss-shop-page .woocommerce-no-products-found,
  .oss-shop-page .oss-shop-no-results {
    width: 100% !important;
    max-width: 100% !important;
    margin: 16px 0 !important;
    padding: 24px 14px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }
  .oss-shop-page .oss-shop-no-results__icon {
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 14px !important;
  }
  .oss-shop-page .oss-shop-no-results__icon svg {
    width: 32px !important;
    height: 32px !important;
  }
  .oss-shop-page .oss-shop-no-results h3,
  .oss-shop-page .oss-empty-search-heading {
    font-size: 1.2rem !important;
    margin-bottom: 8px !important;
  }
  .oss-shop-page .oss-shop-no-results p,
  .oss-shop-page .oss-empty-search-desc {
    font-size: 0.92rem !important;
    max-width: 100% !important;
    margin-bottom: 16px !important;
  }
  .oss-shop-page .oss-search-empty-try {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .oss-shop-page .oss-search-tag-pills {
    justify-content: center !important;
    gap: 6px !important;
  }
  .oss-shop-page .oss-search-tag-pill,
  .oss-shop-page .oss-tag-pill {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
  }
  .oss-shop-page .oss-suggestions-list {
    text-align: left !important;
    padding-left: 20px !important;
    margin: 14px 0 !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }
  .oss-shop-page .oss-no-results-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .oss-shop-page .oss-no-results-actions a,
  .oss-shop-page .oss-no-results-actions .button,
  .oss-shop-page .oss-btn-reset-shop,
  .oss-shop-page .oss-btn-clear-filters {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 0.92rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .oss-shop-page .xs-section-padding {
    padding-block: 24px 44px;
  }
  .oss-shop-page .oss-products-grid,
  .oss-shop-page .oss-shop-main-col .row,
  .oss-shop-page .oss-shop-layout .row,
  .oss-shop-page #primary .oss-shop-main-col .row,
  .oss-shop-page #primary .row,
  .oss-shop-page ul.products,
  .oss-shop-page .woocommerce ul.products,
  .oss-shop-page #primary ul.products,
  .oss-shop-page #main ul.products,
  .oss-shop-page .products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .oss-shop-page .woocommerce-result-count,
  .oss-shop-page .woocommerce-ordering {
    float: none;
  }
  .oss-shop-page .woocommerce-result-count {
    width: 100%;
    margin-bottom: 10px;
    padding-block: 0;
  }
  .oss-shop-page .woocommerce-ordering {
    display: block;
    width: 100%;
    margin: 0;
  }
  .oss-shop-page .oss-shop-toolbar {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    margin-bottom: 16px !important;
  }
  .oss-shop-page .oss-shop-toolbar__left {
    display: none !important;
  }
  .oss-shop-page .oss-shop-toolbar__right {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }
  .oss-shop-page .oss-btn-filter-trigger {
    display: inline-flex !important;
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 12px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
  .oss-shop-page .oss-shop-toolbar__count {
    display: none !important;
  }
  .oss-shop-page .oss-shop-toolbar__sorting {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .oss-shop-page .oss-shop-toolbar__sorting .woocommerce-ordering {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
  }
  .oss-shop-page .oss-shop-toolbar__sorting .before-default-sorting,
  .oss-shop-page .oss-mobile-sort-label {
    display: none !important;
  }
  .oss-shop-page .oss-shop-toolbar__sorting .orderby,
  .oss-shop-page .woocommerce-ordering .orderby {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    line-height: 42px !important;
    padding: 0 30px 0 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--oss-ink, #0f1d2f) !important;
    background-color: #ffffff !important;
    border: 1.5px solid var(--oss-border, #cbd5e1) !important;
    border-radius: 8px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6876' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    box-shadow: 0 1px 3px rgba(15, 29, 47, 0.05) !important;
  }
  .oss-shop-page .oss-shop-toolbar__sorting .orderby:focus,
  .oss-shop-page .woocommerce-ordering .orderby:focus {
    outline: none !important;
    border-color: var(--oss-primary, #e43728) !important;
    box-shadow: 0 0 0 2px rgba(228, 55, 40, 0.15) !important;
  }
  .oss-shop-page .oss-products-grid.oss-products-grid--single > li.product,
  .oss-shop-page .oss-products-grid:has(> li.product:only-of-type) > li.product {
    max-width: calc(50% - 6px) !important;
    flex: 0 0 calc(50% - 6px) !important;
  }
  .oss-shop-page .oss-category-hero {
    margin-bottom: 20px !important;
  }
  .oss-shop-page .oss-category-breadcrumb {
    margin-bottom: 10px !important;
    font-size: 0.80rem !important;
  }
  .oss-shop-page .oss-category-title {
    font-size: 1.55rem !important;
    margin-bottom: 6px !important;
  }
  .oss-shop-page .oss-category-description {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }
  .oss-shop-page .oss-archive-subcategories-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    margin-bottom: 18px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .oss-shop-page .oss-subcategories-label {
    font-size: 0.76rem !important;
    margin-bottom: 2px !important;
  }
  .oss-shop-page .oss-subcategories-chips {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    width: 100% !important;
    padding-bottom: 4px !important;
    scrollbar-width: none !important;
  }
  .oss-shop-page .oss-subcategories-chips::-webkit-scrollbar {
    display: none !important;
  }
  .oss-shop-page .oss-subcat-chip {
    flex-shrink: 0 !important;
    min-height: 44px !important;
    padding: 8px 16px !important;
    font-size: 0.84rem !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .oss-shop-page li.product {
    border-radius: 10px !important;
  }
  .oss-shop-page li.product .xs_product_img_link {
    aspect-ratio: 1 / 1 !important;
    padding: 6px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8fafc !important;
    border-radius: 9px 9px 0 0 !important;
  }
  .oss-shop-page li.product .xs_product_img_link img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  .oss-shop-page li.product .onsale,
  .oss-shop-page li.product .oss-discount-badge {
    top: 6px !important;
    left: 6px !important;
    padding: 3px 6px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    border-radius: 4px !important;
  }
  .oss-shop-page li.product .product-item-meta {
    top: 6px !important;
    right: 6px !important;
    gap: 0 !important;
  }
  .oss-shop-page li.product .product-item-meta > li:not(.xs-wishlist-wrapper),
  .oss-shop-page li.product .yith-woocompare-add-button,
  .oss-shop-page li.product .yith-wcqv-button,
  .oss-shop-page li.product .compare {
    display: none !important;
  }
  .oss-shop-page li.product .product-item-meta .xs-wishlist-wrapper,
  .oss-shop-page li.product .product-item-meta .xs-wishlist-wrapper :is(a, button):not(.button) {
    position: relative !important;
    display: inline-flex !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid var(--oss-border, #e5e9ec) !important;
    box-shadow: 0 2px 6px rgba(15, 29, 47, 0.08) !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
  .oss-shop-page li.product .product-item-meta .xs-wishlist-wrapper :is(a, button):not(.button)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .oss-shop-page li.product .product-item-meta .xs-wishlist-wrapper :is(i, svg) {
    width: 16px !important;
    height: 16px !important;
    font-size: 15px !important;
    line-height: 1 !important;
  }
  .oss-shop-page li.product .product-item-meta .xs-wishlist-wrapper a:has(:is(svg, i))::before,
  .oss-shop-page li.product .product-item-meta .xs-wishlist-wrapper a:has(:is(svg, i))::after {
    display: none !important;
    content: none !important;
  }
  .oss-shop-page li.product .xs-product-content {
    display: flex !important;
    flex: 1 !important;
    flex-direction: column !important;
    padding: 8px 10px !important;
  }
  .oss-shop-page li.product .oss-shop-stock {
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    margin-bottom: 4px !important;
  }
  .oss-shop-page li.product .product-title {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    height: 2.6em !important;
    min-height: 2.6em !important;
    margin: 0 0 6px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .oss-shop-page li.product .price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 4px 6px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: var(--oss-ink) !important;
    line-height: 1.25 !important;
    margin: 0 0 8px 0 !important;
  }
  .oss-shop-page li.product .price del,
  .oss-shop-page li.product .price del .amount,
  .oss-shop-page li.product .price del .woocommerce-Price-amount {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #94A3B8 !important;
    text-decoration: line-through !important;
    white-space: nowrap !important;
  }
  .oss-shop-page li.product .price ins,
  .oss-shop-page li.product .price ins .amount,
  .oss-shop-page li.product .price ins .woocommerce-Price-amount,
  .oss-shop-page li.product .price .amount,
  .oss-shop-page li.product .price > .woocommerce-Price-amount {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: var(--oss-primary, #0B1F3A) !important;
    text-decoration: none !important;
    background: transparent !important;
    white-space: nowrap !important;
  }
  .oss-shop-page li.product .button,
  .oss-shop-page li.product .add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 6px 8px !important;
    margin-top: auto !important;
    font-size: 11.5px !important;
    font-weight: 750 !important;
    letter-spacing: 0.02em !important;
    border-radius: 6px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .oss-shop-page li.product .button:not(.product_type_variable):not(.oss-btn-notify-me),
  .oss-shop-page li.product .add_to_cart_button {
    background: var(--oss-primary, #0B1F3A) !important;
    border: 1.5px solid var(--oss-primary, #0B1F3A) !important;
    color: #FFFFFF !important;
  }
  .oss-shop-page li.product .button.product_type_variable {
    background: #FFFFFF !important;
    border: 1.5px solid var(--oss-primary, #0B1F3A) !important;
    color: var(--oss-primary, #0B1F3A) !important;
  }
  .oss-shop-page li.product .button.oss-btn-notify-me {
    background: #F8FAFC !important;
    border: 1.5px solid #CBD5E1 !important;
    color: #334155 !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .oss-shop-page li.product:hover,
  .oss-shop-page ul.products > li.product:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(15, 29, 47, 0.04) !important;
  }
  .oss-shop-page li.product:hover .xs_product_img_link img {
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .oss-shop-page .shop-archive > .container {
    width: min(100% - 20px, 460px);
  }
  .oss-shop-page .oss-products-grid,
  .oss-shop-page .oss-shop-main-col .row,
  .oss-shop-page .oss-shop-layout .row,
  .oss-shop-page #primary .oss-shop-main-col .row,
  .oss-shop-page #primary .row,
  .oss-shop-page ul.products,
  .oss-shop-page .woocommerce ul.products,
  .oss-shop-page #primary ul.products,
  .oss-shop-page #main ul.products,
  .oss-shop-page .products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .oss-shop-page .oss-products-grid.oss-products-grid--single > li.product,
  .oss-shop-page .oss-products-grid:has(> li.product:only-of-type) > li.product {
    max-width: calc(50% - 4px) !important;
    flex: 0 0 calc(50% - 4px) !important;
  }
  .oss-shop-page li.product .xs-product-content {
    padding: 7px 8px !important;
  }
  .oss-shop-page li.product .product-title {
    font-size: 12px !important;
  }
  .oss-shop-page li.product .price {
    font-size: 13px !important;
  }
  .oss-shop-page li.product .button,
  .oss-shop-page li.product .add_to_cart_button {
    min-height: 32px !important;
    height: 32px !important;
    font-size: 10.5px !important;
  }
}

@media (max-width: 350px) {
  .oss-shop-page .oss-products-grid,
  .oss-shop-page .oss-shop-main-col .row,
  .oss-shop-page .oss-shop-layout .row,
  .oss-shop-page #primary .oss-shop-main-col .row,
  .oss-shop-page #primary .row,
  .oss-shop-page ul.products,
  .oss-shop-page .woocommerce ul.products,
  .oss-shop-page #primary ul.products,
  .oss-shop-page #main ul.products,
  .oss-shop-page .products {
    gap: 6px !important;
  }
  .oss-shop-page .oss-products-grid.oss-products-grid--single > li.product,
  .oss-shop-page .oss-products-grid:has(> li.product:only-of-type) > li.product {
    max-width: calc(50% - 3px) !important;
    flex: 0 0 calc(50% - 3px) !important;
  }
  .oss-shop-page li.product .xs-product-content {
    padding: 5px 6px !important;
  }
  .oss-shop-page li.product .product-title {
    font-size: 11px !important;
  }
  .oss-shop-page li.product .price {
    font-size: 12px !important;
  }
}

@media (max-width: 360px) {
  .oss-shop-page .oss-products-grid,
  .oss-shop-page .oss-shop-main-col .row,
  .oss-shop-page .oss-shop-layout .row,
  .oss-shop-page #primary .oss-shop-main-col .row,
  .oss-shop-page #primary .row,
  .oss-shop-page ul.products,
  .oss-shop-page .woocommerce ul.products,
  .oss-shop-page #primary ul.products,
  .oss-shop-page #main ul.products,
  .oss-shop-page .products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .oss-filter-drawer__header {
    padding: 16px !important;
  }
  .oss-filter-drawer__body {
    padding: 16px !important;
    gap: 20px !important;
  }
  .oss-filter-drawer__footer {
    padding: 14px 16px !important;
    gap: 10px !important;
  }
  .oss-btn-drawer-apply {
    padding: 9px 16px !important;
    font-size: 0.82rem !important;
  }
  .oss-shop-page .oss-shop-toolbar__right {
    gap: 6px !important;
  }
  .oss-shop-page .oss-btn-filter-trigger {
    padding: 0 6px !important;
    font-size: 12.5px !important;
    gap: 5px !important;
  }
  .oss-shop-page .oss-shop-toolbar__sorting .orderby,
  .oss-shop-page .woocommerce-ordering .orderby {
    padding: 0 24px 0 8px !important;
    font-size: 12px !important;
    background-position: right 7px center !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oss-shop-page ul.products > li.product,
  .oss-shop-page #primary ul.products > li.product,
  .oss-shop-page #primary > .row > li.product,
  .oss-shop-page li.product,
  .oss-shop-page li.product .xs_product_img_link img,
  .oss-filter-drawer,
  .oss-filter-backdrop {
    transition: none !important;
  }
}

/* Phase 4 — Discovery Toolbar & Sorting Authority */
.before-default-sorting,
p.before-default-sorting {
  display: none !important;
}
.oss-shop-main-col > .woocommerce-ordering,
.woocommerce-products-header ~ .woocommerce-ordering,
#primary > .woocommerce-ordering:not(.oss-shop-toolbar__sorting .woocommerce-ordering) {
  display: none !important;
}
.oss-shop-toolbar__sorting .woocommerce-ordering {
  display: block !important;
}

/* Phase 4 — Suppress Parent Theme Quick-View and Compare Triggers */
.product-item-meta li:has(a[data-target*="quick-view"]),
.product-item-meta a[data-target*="quick-view"],
.xs-quick-view-modal,
.product-item-meta .xs-compare-wrapper,
.yith-woocompare-add-button,
.compare-button,
.clear-all-compare,
a.compare {
  display: none !important;
}

/* Phase 4 — Recently Viewed Products Grid */
.oss-recently-viewed-section {
  margin: 48px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--oss-border, #e2e8f0);
}
.oss-recently-viewed-section .oss-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--oss-ink, #0f172a);
  margin-bottom: 24px;
}

/* Category Recommendations (Rendered on Sparse / Single-Product Categories) */
.oss-category-recommendations-section {
  margin: 48px 0 32px;
  padding-top: 36px;
  border-top: 1px solid var(--oss-border, #E6EAF0);
}
.oss-recommendations-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.oss-recommendations-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 850;
  color: var(--oss-ink, #0B1F3A);
  letter-spacing: -0.02em;
}
.oss-recommendations-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.90rem;
  font-weight: 750;
  color: var(--oss-blue, #155EEF);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}
.oss-recommendations-view-all:hover {
  color: var(--oss-primary, #0B1F3A);
}
.oss-recommendations-view-all svg {
  transition: transform 0.18s ease;
}
.oss-recommendations-view-all:hover svg {
  transform: translateX(3px);
}

