/**
 * Punto Secreto - Product Archive Styles
 * High-end editorial design matching the approved mockup.
 * Encapsulated strictly under #ps-product-archive-root for Elementor independence.
 * Responsive: Desktop 1440px / 1280px (4 cols), 1024px (3 cols), 768px (2 cols), 390px / 360px (2 cols).
 * Typography: Inherits Bodoni Moda (headings) & Manrope (body) from Bersoft Theme.
 */

#ps-product-archive-root {
  --ps-font-heading: var(--bs-font-heading, var(--font-heading, 'Bodoni Moda', 'Bodoni MT', Didot, Georgia, serif));
  --ps-font-body: var(--bs-font-body, var(--font-body, 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif));
  --ps-red: #B30000;
  --ps-red-hover: #8F0000;
  --ps-pink: #FF1493;
  --ps-dark: #0F172A;
  --ps-slate: #334155;
  --ps-muted: #64748B;
  --ps-border: #E2E8F0;
  --ps-border-subtle: #F1F5F9;
  --ps-bg-card: #FFFFFF;
  --ps-bg-btn: #FDF2F4;
  --ps-bg-btn-hover: #FCE4E8;
  --ps-text-btn: #631221;
  --ps-badge-sale-bg: #B30000;
  --ps-badge-sale-text: #FFFFFF;
  --ps-badge-outofstock-bg: #FDF2F4;
  --ps-badge-outofstock-text: #7A1C2E;
  --ps-badge-outofstock-border: #FCE4E8;
  --ps-badge-lowstock-bg: #FDF2F4;
  --ps-badge-lowstock-text: #8E162D;
  --ps-badge-lowstock-border: #FCE4E8;
  --ps-star-red: #B30000;
  --ps-radius-sm: 6px;
  --ps-radius-md: 10px;
  --ps-radius-lg: 14px;
  --ps-radius-pill: 999px;
  --ps-ease: cubic-bezier(0.23, 1, 0.32, 1);

  display: block;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 64px;
  box-sizing: border-box;
  font-family: var(--ps-font-body);
  color: var(--ps-slate);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#ps-product-archive-root *,
#ps-product-archive-root *::before,
#ps-product-archive-root *::after {
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  #ps-product-archive-root {
    padding: 20px 24px 48px;
  }
}

@media (max-width: 640px) {
  #ps-product-archive-root {
    padding: 16px 16px 36px;
  }
}

/* ==========================================================================
   1. SEO Compact Header
   ========================================================================== */
#ps-product-archive-root .ps-archive-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ps-border-subtle);
}

#ps-product-archive-root .ps-archive-breadcrumbs {
  font-size: 0.82rem;
  color: var(--ps-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

#ps-product-archive-root .ps-archive-breadcrumbs a {
  color: var(--ps-muted);
  text-decoration: none;
  transition: color 0.15s;
}

#ps-product-archive-root .ps-archive-breadcrumbs a:hover {
  color: var(--ps-red);
}

#ps-product-archive-root .ps-bc-sep {
  color: #CBD5E1;
  font-size: 0.75rem;
}

#ps-product-archive-root .ps-bc-current {
  color: var(--ps-dark);
  font-weight: 600;
}

#ps-product-archive-root .ps-archive-title {
  font-family: var(--ps-font-heading);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  color: var(--ps-dark);
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}

#ps-product-archive-root .ps-archive-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ps-muted);
  max-width: 760px;
  margin: 0;
}

/* ==========================================================================
   2. Main Layout (Sidebar + Main)
   ========================================================================== */
#ps-product-archive-root .ps-archive-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 1024px) {
  #ps-product-archive-root .ps-archive-layout {
    display: block;
  }
}

/* ==========================================================================
   3. Sidebar Filters (Desktop)
   ========================================================================== */
#ps-product-archive-root .ps-archive-sidebar {
  position: sticky;
  top: 24px;
  overflow: visible;
  padding-right: 8px;
}

#ps-product-archive-root .ps-sidebar-mobile-header {
  display: none; /* Never visible on desktop */
}

#ps-product-archive-root .ps-filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--ps-border-subtle);
}

#ps-product-archive-root .ps-filters-title {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ps-dark);
  margin: 0;
  line-height: 1.2;
}

#ps-product-archive-root .ps-btn-clear-filters {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ps-red);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}

#ps-product-archive-root .ps-btn-clear-filters:hover {
  color: var(--ps-red-hover);
  text-decoration: underline;
}

/* Accordion Sections */
#ps-product-archive-root .ps-accordion-item {
  border-bottom: 1px solid var(--ps-border-subtle);
  padding: 14px 0;
}

#ps-product-archive-root .ps-accordion-item:last-child {
  border-bottom: none;
}

#ps-product-archive-root .ps-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ps-dark);
  cursor: pointer;
  text-align: left;
}

#ps-product-archive-root .ps-accordion-header span:first-child {
  flex-grow: 1;
}

#ps-product-archive-root .ps-accordion-icon {
  font-size: 0.82rem;
  color: var(--ps-muted);
  transition: transform 0.22s var(--ps-ease);
  display: inline-block;
  user-select: none;
}

#ps-product-archive-root .ps-accordion-item:not(.is-open) .ps-accordion-icon {
  transform: rotate(-90deg);
}

#ps-product-archive-root .ps-accordion-content {
  padding-top: 12px;
}

#ps-product-archive-root .ps-accordion-item:not(.is-open) .ps-accordion-content {
  display: none;
}

/* Category Filter Rows with Real Links */
#ps-product-archive-root .ps-filter-options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#ps-product-archive-root .ps-filter-cat-item {
  display: flex;
  align-items: center;
}

#ps-product-archive-root .ps-filter-cat-link {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ps-slate);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: var(--ps-radius-sm);
  transition: background-color 0.15s, color 0.15s;
}

#ps-product-archive-root .ps-filter-cat-link:hover {
  background-color: #F8FAFC;
  color: var(--ps-red);
}

#ps-product-archive-root .ps-filter-cat-item.is-active > .ps-filter-cat-link {
  color: var(--ps-red);
  font-weight: 600;
}

#ps-product-archive-root .ps-filter-checkbox-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid #CBD5E1;
  border-radius: 3px;
  background: #FFFFFF;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s var(--ps-ease);
}

#ps-product-archive-root .ps-filter-checkbox-box.is-checked {
  background: var(--ps-red);
  border-color: var(--ps-red);
  color: #FFFFFF;
}

#ps-product-archive-root .ps-checkmark {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

#ps-product-archive-root .ps-checkbox-text {
  flex-grow: 1;
  font-size: 0.85rem;
}

#ps-product-archive-root .ps-checkbox-count {
  font-size: 0.78rem;
  color: #94A3B8;
  margin-left: auto;
}

/* Standard Checkbox Labels */
#ps-product-archive-root .ps-filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  font-size: 0.85rem;
  color: var(--ps-slate);
  cursor: pointer;
  border-radius: var(--ps-radius-sm);
  transition: background-color 0.15s, color 0.15s;
  user-select: none;
}

#ps-product-archive-root .ps-filter-checkbox-label:hover {
  background-color: #F8FAFC;
  color: var(--ps-red);
}

#ps-product-archive-root .ps-filter-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--ps-red);
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

/* Price Range Inputs */
#ps-product-archive-root .ps-price-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

#ps-product-archive-root .ps-price-col label {
  display: block;
  font-size: 0.75rem;
  color: var(--ps-muted);
  margin-bottom: 4px;
}

#ps-product-archive-root .ps-price-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  padding: 5px 8px;
  background: #FAFAFA;
  transition: border-color 0.15s, background-color 0.15s;
}

#ps-product-archive-root .ps-price-input-wrap:focus-within {
  border-color: var(--ps-red);
  background: #FFFFFF;
}

#ps-product-archive-root .ps-price-currency {
  font-size: 0.8rem;
  color: var(--ps-muted);
  margin-right: 4px;
  user-select: none;
}

#ps-product-archive-root .ps-input-price {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ps-dark);
  outline: none;
}

#ps-product-archive-root .ps-btn-apply-price {
  width: 100%;
  height: 34px;
  background: var(--ps-red);
  color: #FFFFFF;
  border: none;
  border-radius: var(--ps-radius-sm);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s, transform 0.15s;
}

#ps-product-archive-root .ps-btn-apply-price:hover {
  background: var(--ps-red-hover);
}

#ps-product-archive-root .ps-btn-apply-price:active {
  transform: scale(0.98);
}

/* ==========================================================================
   4. Mobile Filter Bar (< 1025px)
   ========================================================================== */
#ps-product-archive-root .ps-mobile-filter-bar {
  display: none;
}

@media (max-width: 1024px) {
  #ps-product-archive-root .ps-mobile-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
  }

  #ps-product-archive-root .ps-mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    background: var(--ps-red);
    color: #FFFFFF;
    border: none;
    border-radius: var(--ps-radius-sm);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s;
  }

  #ps-product-archive-root .ps-mobile-filter-btn:hover {
    background: var(--ps-red-hover);
  }

  #ps-product-archive-root .ps-btn-clear-mobile {
    font-size: 0.85rem;
  }

  /* Drawer Behavior */
  #ps-product-archive-root .ps-archive-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    max-height: 100vh;
    background: #FFFFFF;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    padding: 20px 20px 40px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.3s var(--ps-ease);
  }

  #ps-product-archive-root .ps-archive-sidebar.is-open {
    transform: translateX(0);
  }

  #ps-product-archive-root .ps-sidebar-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--ps-border);
  }

  #ps-product-archive-root .ps-sidebar-mobile-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ps-dark);
    margin: 0;
  }

  #ps-product-archive-root .ps-drawer-close-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--ps-muted);
    cursor: pointer;
    padding: 2px 6px;
  }

  #ps-product-archive-root .ps-filters-header {
    display: none; /* Hide desktop header inside drawer */
  }

  #ps-product-archive-root .ps-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ps-ease);
  }

  #ps-product-archive-root .ps-drawer-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ==========================================================================
   5. Top Bar: Sort Dropdown (Right-aligned, no visible "Ordenar por:")
   ========================================================================== */
#ps-product-archive-root .ps-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 18px;
}

#ps-product-archive-root .ps-sort-control {
  display: flex;
  align-items: center;
}

#ps-product-archive-root .ps-select-wrap {
  position: relative;
}

#ps-product-archive-root .ps-sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: #FFFFFF;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  padding: 7px 32px 7px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ps-slate);
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s;
}

#ps-product-archive-root .ps-sort-select:focus {
  border-color: var(--ps-red);
}

#ps-product-archive-root .ps-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ps-muted);
  font-size: 0.75rem;
}

/* ==========================================================================
   6. Active Filter Chips
   ========================================================================== */
#ps-product-archive-root .ps-active-chips-container {
  margin-bottom: 18px;
}

#ps-product-archive-root .ps-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#ps-product-archive-root .ps-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid var(--ps-border);
  color: var(--ps-slate);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 16px;
  font-family: inherit;
}

#ps-product-archive-root .ps-chip-remove-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--ps-muted);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

#ps-product-archive-root .ps-chip-remove-btn:hover {
  color: var(--ps-red);
}

/* ==========================================================================
   7. Product Grid
   ========================================================================== */
#ps-product-archive-root .ps-grid-wrapper {
  position: relative;
  min-height: 380px;
}

#ps-product-archive-root .ps-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  #ps-product-archive-root .ps-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  #ps-product-archive-root .ps-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  #ps-product-archive-root .ps-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* Loading Overlay */
#ps-product-archive-root .ps-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--ps-radius-md);
  transition: opacity 0.2s var(--ps-ease);
}

#ps-product-archive-root .ps-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(179, 0, 0, 0.15);
  border-top-color: var(--ps-red);
  border-radius: 50%;
  animation: ps-spin 0.75s linear infinite;
}

@keyframes ps-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   8. Product Card Editorial
   ========================================================================== */
#ps-product-archive-root .ps-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ps-bg-card);
  border: 1px solid var(--ps-border-subtle);
  border-radius: var(--ps-radius-md);
  overflow: hidden;
  transition: transform 0.25s var(--ps-ease), box-shadow 0.25s var(--ps-ease), border-color 0.25s;
}

#ps-product-archive-root .ps-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
  border-color: #E2E8F0;
}

/* Card Media (100% width, 4:5 ratio, superposed hover image) */
#ps-product-archive-root .ps-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #F8FAFC;
  overflow: hidden;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 9px 9px 0 0;
}

#ps-product-archive-root .ps-card-img-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

#ps-product-archive-root .ps-card-img-primary {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
  max-width: none;
}

#ps-product-archive-root .ps-card-img-secondary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ps-ease);
}

#ps-product-archive-root .ps-product-card:hover .ps-card-img-secondary {
  opacity: 1;
}

@media (hover: none) {
  #ps-product-archive-root .ps-product-card:hover .ps-card-img-secondary {
    opacity: 0;
  }
}

/* Badges (Pill Shape with 12px offset from image corner) */
#ps-product-archive-root .ps-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}

#ps-product-archive-root .ps-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--ps-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--ps-radius-pill);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

#ps-product-archive-root .ps-badge-sale {
  background: var(--ps-badge-sale-bg);
  color: var(--ps-badge-sale-text);
  border: none;
}

#ps-product-archive-root .ps-badge-outofstock {
  background: var(--ps-badge-outofstock-bg);
  color: var(--ps-badge-outofstock-text);
  border: 1px solid var(--ps-badge-outofstock-border);
}

#ps-product-archive-root .ps-badge-lowstock {
  background: var(--ps-badge-lowstock-bg);
  color: var(--ps-badge-lowstock-text);
  border: 1px solid var(--ps-badge-lowstock-border);
}

/* Card Body */
#ps-product-archive-root .ps-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (max-width: 480px) {
  #ps-product-archive-root .ps-card-body {
    padding: 10px 8px 12px;
  }
}

#ps-product-archive-root .ps-card-title {
  font-family: var(--ps-font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ps-dark);
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

#ps-product-archive-root .ps-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

#ps-product-archive-root .ps-card-title a:hover {
  color: var(--ps-red);
}

#ps-product-archive-root .ps-card-brand {
  font-family: var(--ps-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ps-muted);
  margin-bottom: 6px;
}

#ps-product-archive-root .ps-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ps-font-body);
  font-size: 0.76rem;
  color: var(--ps-muted);
  margin-bottom: 6px;
}

#ps-product-archive-root .ps-rating-star {
  color: var(--ps-star-red);
  font-size: 0.82rem;
}

#ps-product-archive-root .ps-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 8px;
  font-family: var(--ps-font-body);
}

/* 1. Precio normal (sin descuento): oscuro #151515 */
#ps-product-archive-root .ps-card-price-row .ps-price-current,
#ps-product-archive-root .ps-card-price-row .ps-price-current .woocommerce-Price-amount {
  font-family: var(--ps-font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: #151515;
}

#ps-product-archive-root .ps-card-price-row .ps-price-current {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

/* 2. Precio regular anterior: gris neutro #8A8F98 tachado (nunca rojo) */
#ps-product-archive-root .ps-card-price-row del,
#ps-product-archive-root .ps-card-price-row del .woocommerce-Price-amount,
#ps-product-archive-root .ps-card-price-row .ps-price-current del,
#ps-product-archive-root .ps-card-price-row .ps-price-current del .woocommerce-Price-amount,
#ps-product-archive-root .ps-card-price-row .ps-price-regular,
#ps-product-archive-root .ps-card-price-row .ps-price-regular .woocommerce-Price-amount {
  font-family: var(--ps-font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: #8A8F98;
  text-decoration: line-through;
}

/* 3. Precio de oferta: rojo oficial #B30000 */
#ps-product-archive-root .ps-card-price-row ins,
#ps-product-archive-root .ps-card-price-row ins .woocommerce-Price-amount,
#ps-product-archive-root .ps-card-price-row .ps-price-current ins,
#ps-product-archive-root .ps-card-price-row .ps-price-current ins .woocommerce-Price-amount,
#ps-product-archive-root .ps-card-price-row .ps-price-sale,
#ps-product-archive-root .ps-card-price-row .ps-price-sale .woocommerce-Price-amount {
  font-family: var(--ps-font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ps-red);
  text-decoration: none;
}

/* Swatches Preview */
#ps-product-archive-root .ps-card-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

#ps-product-archive-root .ps-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  box-sizing: border-box;
  display: inline-block;
  flex-shrink: 0;
}

#ps-product-archive-root .ps-swatch-more {
  font-family: var(--ps-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ps-muted);
  margin-left: 2px;
}

/* Sizes Preview */
#ps-product-archive-root .ps-card-sizes {
  font-family: var(--ps-font-body);
  font-size: 0.76rem;
  color: #64748B;
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   9. Action Row: Single Full-width Pill Button "Ver detalle"
   ========================================================================== */
#ps-product-archive-root .ps-card-action {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  width: 100%;
}

#ps-product-archive-root .ps-btn-detail {
  width: 100%;
  height: 38px;
  line-height: 38px;
  padding: 0 16px;
  background-color: var(--ps-bg-btn);
  color: var(--ps-text-btn);
  border-radius: var(--ps-radius-pill);
  font-family: var(--ps-font-body);
  font-weight: 600;
  font-size: 0.86rem;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out, transform 0.16s ease-out;
  cursor: pointer;
  display: block;
  border: 1px solid transparent;
}

#ps-product-archive-root .ps-btn-detail:hover {
  background-color: var(--ps-bg-btn-hover);
  color: var(--ps-red);
  border-color: #F8D7DA;
}

#ps-product-archive-root .ps-btn-detail:active {
  transform: scale(0.97);
}

#ps-product-archive-root .ps-btn-whatsapp {
  display: none; /* WhatsApp button removed from cards per specification */
}

/* ==========================================================================
   10. Pagination (Numerical Circles)
   ========================================================================== */
#ps-product-archive-root .ps-pagination-container {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

#ps-product-archive-root .ps-pagination-nav {
  display: flex;
  justify-content: center;
}

#ps-product-archive-root .ps-pagination-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#ps-product-archive-root .ps-page-item {
  margin: 0;
  padding: 0;
}

#ps-product-archive-root .ps-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ps-border);
  background: #FFFFFF;
  color: var(--ps-slate);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s var(--ps-ease);
  cursor: pointer;
}

#ps-product-archive-root .ps-page-num:hover {
  border-color: var(--ps-red);
  color: var(--ps-red);
}

#ps-product-archive-root .ps-page-num.is-active,
#ps-product-archive-root .ps-page-item.is-active .ps-page-num {
  background: var(--ps-red);
  border-color: var(--ps-red);
  color: #FFFFFF;
  cursor: default;
}

#ps-product-archive-root .ps-page-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

/* ==========================================================================
   11. No Products Found State
   ========================================================================== */
#ps-product-archive-root .ps-no-products-box {
  text-align: center;
  padding: 64px 24px;
  background: #FAFAFA;
  border: 1px dashed var(--ps-border);
  border-radius: var(--ps-radius-lg);
  margin: 16px 0;
}

#ps-product-archive-root .ps-no-products-icon {
  margin-bottom: 14px;
}

#ps-product-archive-root .ps-no-products-title {
  font-family: var(--ps-font-heading);
  font-size: 1.45rem;
  color: var(--ps-dark);
  margin: 0 0 8px;
}

#ps-product-archive-root .ps-no-products-desc {
  font-size: 0.92rem;
  color: var(--ps-muted);
  max-width: 460px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

#ps-product-archive-root .ps-btn-reset-empty {
  display: inline-block;
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: #FFFFFF;
  background: var(--ps-red);
  border: none;
  border-radius: var(--ps-radius-sm);
  cursor: pointer;
  transition: background-color 0.18s;
}

#ps-product-archive-root .ps-btn-reset-empty:hover {
  background: var(--ps-red-hover);
}