/**
 * PapaStyles E-Commerce CRO & High-Conversion Design System
 * Based on Google Stitch: PapaStyle E-Commerce UX/UI (ID: 7214172202450605850)
 *
 * Screens Implemented:
 * 1. PapaStyles - Fiche Produit CRO & Conversion (10b2a47195244a5ba232033970112873)
 * 2. PapaStyles - Catalogue & Catégorie Produits (f481d557db3341ad94d2ba164800389f)
 * 3. PapaStyles - Accueil & Offres CRO (6c645aef1f3340fa89cd7d013102947a)
 */

:root {
  /* Design Tokens from Stitch */
  --ps-primary: #136e00;
  --ps-primary-container: #47a930;
  --ps-primary-fixed: #94fa77;
  --ps-primary-fixed-dim: #79dd5e;
  --ps-on-primary: #ffffff;
  --ps-on-primary-container: #053600;
  
  --ps-background: #f6faff;
  --ps-surface: #f6faff;
  --ps-surface-canvas: #ffffff;
  --ps-surface-subtle: #f8f9fa;
  --ps-surface-muted: #e9ecef;
  --ps-surface-container: #e6eff8;
  --ps-surface-container-high: #e0e9f2;
  --ps-surface-container-low: #ecf5fe;
  --ps-surface-warm-tint: #fbf9f5;
  
  --ps-on-surface: #141d23;
  --ps-on-surface-variant: #3f4a3a;
  --ps-secondary: #5f5e5e;
  --ps-outline: #6f7a68;
  --ps-outline-variant: #bfcab5;

  /* CRO Accents & Urgency */
  --ps-urgency-alert: #c8392b;
  --ps-error: #ba1a1a;
  --ps-voucher-highlight: #ebf6e7;
  --ps-voucher-border: #a4dc96;
  --ps-marine-trust: #3a537a;
  --ps-gold-star: #f59e0b;
  --ps-tag-discount: #e02424;

  /* Typography */
  --ps-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ps-font-icon: 'Material Symbols Outlined';

  /* Border radius */
  --ps-radius-sm: 6px;
  --ps-radius-md: 10px;
  --ps-radius-lg: 16px;
  --ps-radius-xl: 24px;
  --ps-radius-full: 9999px;

  /* Shadows */
  --ps-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --ps-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --ps-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --ps-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base resets & typography */
body.gpc {
  font-family: var(--ps-font-sans);
  background-color: var(--ps-background);
  color: var(--ps-on-surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  vertical-align: middle;
}


/* ==========================================================================
   GLOBAL HORIZONTAL OVERFLOW PREVENTION (Zero Mobile Spill)
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

#page,
.site,
.site-content,
.content-area,
.site-main,
.site-footer,
.ps-home-wrapper,
.ps-single-product-wrap,
.ps-single-product-page-wrap,
.ps-catalog-wrapper,
.ps-catalog-hero,
.ps-catalog-layout,
.ps-urgency-strip,
.ps-trust-bar,
.ps-conversion-footer {
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* Visibility Utilities */
.hide-on-mobile {
  display: initial;
}
.hide-on-desktop {
  display: none !important;
}

/* ==========================================================================
   GENERATEPRESS LAYOUT & CONTAINER OVERRIDES
   ========================================================================== */
#page.grid-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

.site-content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-content .content-area,
.site-content .content-area.ps-full-width {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sidebar,
.widget-area.sidebar,
.is-right-sidebar,
.is-left-sidebar {
  display: none !important;
}

.site-footer {
  width: 100% !important;
  clear: both !important;
}

.site-footer .footer-widgets,
.footer-widgets {
  display: none !important;
}

/* GeneratePress Site Header Integration */
.site-header {
  background-color: var(--ps-surface-canvas);
  border-bottom: 1px solid var(--ps-surface-muted);
}

.site-header .inside-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px;
  padding: 12px 20px !important;
  max-width: 1320px;
  margin: 0 auto;
}

.site-header .site-branding {
  margin: 0 !important;
}

.site-header .header-widget .woocommerce-product-search {
  display: none !important;
}

/* ==========================================================================
   1. CRO TOP URGENCY STRIP
   ========================================================================== */
.ps-urgency-strip {
  background: linear-gradient(90deg, #0c5300 0%, #136e00 50%, #0c5300 100%);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 16px;
  text-align: center;
  position: relative;
  z-index: 99;
}

.ps-urgency-strip a {
  color: #ffffff;
  text-decoration: underline;
}

.ps-urgency-strip .ps-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ps-strip-badges {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ps-strip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ps-countdown-pill {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--ps-radius-full);
  padding: 2px 10px;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION CRO
   ========================================================================== */
.ps-main-header {
  background-color: var(--ps-surface-canvas);
  border-bottom: 1px solid var(--ps-surface-muted);
  box-shadow: var(--ps-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 90;
}

.ps-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ps-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ps-on-surface);
  letter-spacing: -0.02em;
}

.ps-brand-logo .ps-logo-icon {
  width: 38px;
  height: 38px;
  background-color: var(--ps-primary);
  color: #fff;
  border-radius: var(--ps-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.ps-brand-logo span.accent {
  color: var(--ps-primary-container);
}

.ps-header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.ps-header-search input[type="search"] {
  width: 100%;
  padding: 10px 42px 10px 16px;
  border-radius: var(--ps-radius-full);
  border: 1.5px solid var(--ps-surface-muted);
  background-color: var(--ps-surface-subtle);
  font-size: 0.9rem;
  color: var(--ps-on-surface);
  transition: all 0.2s ease;
}

.ps-header-search input[type="search"]:focus {
  border-color: var(--ps-primary);
  background-color: var(--ps-surface-canvas);
  outline: none;
  box-shadow: 0 0 0 3px rgba(19, 110, 0, 0.15);
}

.ps-header-search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ps-secondary);
  cursor: pointer;
  padding: 0;
  display: flex;
}

.ps-header-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--ps-voucher-highlight);
  border: 1px solid var(--ps-voucher-border);
  padding: 6px 12px;
  border-radius: var(--ps-radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ps-on-primary-container);
}

.ps-header-trust .stars {
  color: var(--ps-gold-star);
  display: flex;
  gap: 1px;
}

.ps-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ps-header-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ps-on-surface);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 8px 12px;
  border-radius: var(--ps-radius-md);
  transition: background 0.15s ease;
  position: relative;
}

.ps-header-action-btn:hover {
  background-color: var(--ps-surface-container-low);
  color: var(--ps-primary);
}

.ps-cart-badge {
  background-color: var(--ps-urgency-alert);
  color: #fff;
  border-radius: var(--ps-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  position: absolute;
  top: 0px;
  right: 4px;
}

/* Category Nav Sub-Bar */
.ps-cat-nav {
  background-color: var(--ps-surface-canvas);
  border-bottom: 1px solid var(--ps-surface-muted);
  overflow-x: auto;
  white-space: nowrap;
}

.ps-cat-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps-cat-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  color: var(--ps-on-surface);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.ps-cat-nav a:hover,
.ps-cat-nav a.active {
  color: var(--ps-primary);
  border-bottom-color: var(--ps-primary);
}

.ps-cat-nav .ps-hot-tag {
  background-color: var(--ps-urgency-alert);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--ps-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   3. VALUE PROPOSITION & TRUST BAR
   ========================================================================== */
.ps-trust-bar {
  background-color: var(--ps-surface-canvas);
  border-bottom: 1px solid var(--ps-surface-muted);
  padding: 18px 20px;
}

.ps-trust-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ps-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ps-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--ps-radius-full);
  background-color: var(--ps-voucher-highlight);
  color: var(--ps-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ps-trust-text h4 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ps-on-surface);
}

.ps-trust-text p {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  color: var(--ps-secondary);
}

/* ==========================================================================
   4. HOME HERO SECTION & PROMOS (Screen 3)
   ========================================================================== */
.ps-hero-section {
  max-width: 1320px;
  margin: 24px auto;
  padding: 0 20px;
}

.ps-hero-card {
  background: linear-gradient(135deg, #0c5300 0%, #136e00 60%, #47a930 100%);
  border-radius: var(--ps-radius-xl);
  color: #fff;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--ps-shadow-xl);
}

.ps-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--ps-radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ps-hero-content h1 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  color: #fff;
}

.ps-hero-content p {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.95;
  margin: 0 0 28px;
  max-width: 540px;
}

.ps-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ps-btn-primary {
  background-color: #ffffff;
  color: var(--ps-on-primary-container);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--ps-radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ps-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: var(--ps-primary);
}

.ps-btn-outline-light {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--ps-radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.ps-btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.ps-hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.ps-hero-img-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ps-radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.ps-hero-img-wrap:hover img {
  transform: rotate(0deg) scale(1.02);
}

.ps-hero-floating-card {
  position: absolute;
  bottom: -15px;
  left: -20px;
  background-color: var(--ps-surface-canvas);
  color: var(--ps-on-surface);
  border-radius: var(--ps-radius-md);
  padding: 12px 18px;
  box-shadow: var(--ps-shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.ps-hero-floating-card .discount {
  background-color: var(--ps-urgency-alert);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: var(--ps-radius-sm);
}

/* ==========================================================================
   5. FLASH DEALS & COUNTDOWN SECTION
   ========================================================================== */
.ps-section {
  max-width: 1320px;
  margin: 48px auto;
  padding: 0 20px;
}

.ps-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.ps-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ps-section-title h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.ps-section-title .badge {
  background-color: var(--ps-urgency-alert);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--ps-radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ps-timer-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--ps-surface-canvas);
  border: 1.5px solid var(--ps-urgency-alert);
  border-radius: var(--ps-radius-full);
  padding: 6px 14px;
  font-weight: 700;
  color: var(--ps-urgency-alert);
  font-size: 0.875rem;
}

/* ==========================================================================
   6. PRODUCT CARD CRO (Grid & List) - UNCLUTTERED T-SHIRT GRAPHICS
   ========================================================================== */
.ps-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ps-product-card {
  background-color: var(--ps-surface-canvas);
  border: 1px solid var(--ps-surface-muted);
  border-radius: var(--ps-radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ps-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ps-shadow-lg);
  border-color: var(--ps-primary-fixed);
}

/* Product Card Media: Breathing room & Contain image so print is 100% visible */
.ps-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #ffffff !important;
  overflow: hidden;
  padding: 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.ps-card-media img,
.ps-card-img-link,
.ps-card-img-link img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

.ps-product-card:hover .ps-card-media img,
.ps-product-card:hover .ps-card-img-link img {
  transform: scale(1.03);
}

/* Corner Badges: Top Left and Top Right only, completely leaving the center print open */
.ps-card-badges-row {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.ps-badge-sale-compact {
  background-color: var(--ps-urgency-alert);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--ps-radius-sm);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  display: inline-block;
  line-height: 1.3;
}

.ps-badge-bestseller-compact {
  background-color: var(--ps-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--ps-radius-sm);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1.3;
}

.ps-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
  pointer-events: none;
}

.ps-badge-sale {
  background-color: var(--ps-urgency-alert);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--ps-radius-sm);
}

.ps-badge-bestseller {
  background-color: var(--ps-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--ps-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.ps-card-scarcity {
  display: none !important;
}

.ps-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Scarcity line inside body: Zero interference with the shirt graphic */
.ps-card-scarcity-line {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ps-urgency-alert);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.ps-pulse-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ps-urgency-alert);
  box-shadow: 0 0 0 rgba(200, 57, 43, 0.6);
  animation: ps-pulse 1.8s infinite;
  display: inline-block;
  flex-shrink: 0;
}

.ps-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--ps-secondary);
  margin-bottom: 6px;
}

.ps-card-rating .stars {
  color: var(--ps-gold-star);
  font-size: 0.95rem;
}

/* 2-line title clamping: Prevents long titles from blowing up card height */
.ps-card-title,
.ps-card-body h3,
.ps-card-body .woocommerce-loop-product__title {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 8px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  height: 2.7em !important;
  color: var(--ps-on-surface) !important;
}

.ps-card-title a {
  color: inherit;
  text-decoration: none;
}

.ps-card-title a:hover {
  color: var(--ps-primary);
}

.ps-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.ps-card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ps-on-surface);
}

.ps-card-price-regular {
  font-size: 0.875rem;
  color: var(--ps-secondary);
  text-decoration: line-through;
}

.ps-card-save-badge {
  background-color: var(--ps-voucher-highlight);
  color: var(--ps-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--ps-radius-sm);
}

.ps-btn-card-atc {
  width: 100%;
  background-color: var(--ps-primary-container);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 14px;
  border-radius: var(--ps-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.15s;
  text-decoration: none;
}

.ps-btn-card-atc:hover {
  background-color: var(--ps-primary);
  color: #fff;
}

/* ==========================================================================
   7. CATALOG & CATEGORY PAGE (Screen 2)
   ========================================================================== */
.ps-catalog-hero {
  background-color: var(--ps-surface-canvas);
  border-bottom: 1px solid var(--ps-surface-muted);
  padding: 32px 20px;
  margin-bottom: 32px;
}

.ps-catalog-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.ps-breadcrumbs {
  font-size: 0.8125rem;
  color: var(--ps-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ps-breadcrumbs a {
  color: var(--ps-secondary);
  text-decoration: none;
}

.ps-breadcrumbs a:hover {
  color: var(--ps-primary);
}

.ps-catalog-banner {
  background: linear-gradient(135deg, #fbf9f5 0%, #ebf6e7 100%);
  border: 1px solid var(--ps-voucher-border);
  border-radius: var(--ps-radius-lg);
  padding: 24px 32px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ps-catalog-banner-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ps-primary);
  margin: 0 0 6px;
}

.ps-catalog-banner-text p {
  margin: 0;
  color: var(--ps-on-surface-variant);
  font-size: 0.9375rem;
}

.ps-catalog-layout {
  max-width: 1320px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar Filters */
.ps-filter-sidebar {
  background-color: var(--ps-surface-canvas);
  border: 1px solid var(--ps-surface-muted);
  border-radius: var(--ps-radius-lg);
  padding: 24px;
  position: sticky;
  top: 90px;
}

.ps-filter-title {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ps-filter-group {
  border-top: 1px solid var(--ps-surface-muted);
  padding: 16px 0;
}

.ps-filter-group-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.ps-filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  cursor: pointer;
}

.ps-filter-checkbox input[type="checkbox"] {
  accent-color: var(--ps-primary);
  width: 16px;
  height: 16px;
}

.ps-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ps-filter-pill {
  border: 1px solid var(--ps-surface-muted);
  background-color: var(--ps-surface-subtle);
  border-radius: var(--ps-radius-md);
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.ps-filter-pill:hover,
.ps-filter-pill.active {
  background-color: var(--ps-voucher-highlight);
  border-color: var(--ps-primary);
  color: var(--ps-primary);
}

/* Catalog Top Toolbar */
.ps-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--ps-surface-canvas);
  border: 1px solid var(--ps-surface-muted);
  border-radius: var(--ps-radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
}

.ps-sort-select {
  border: 1px solid var(--ps-surface-muted);
  border-radius: var(--ps-radius-sm);
  padding: 6px 12px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--ps-on-surface);
  background-color: var(--ps-surface-canvas);
}

/* ==========================================================================
   8. SINGLE PRODUCT CRO (Screen 1)
   ========================================================================== */
.ps-single-product-wrap {
  max-width: 1320px;
  margin: 24px auto 60px;
  padding: 0 20px;
  box-sizing: border-box;
}

.ps-single-product-bottom-trust {
  margin-top: 48px;
  clear: both;
  width: 100%;
}

.ps-single-product-bottom-trust .ps-trust-bar {
  border-radius: var(--ps-radius-xl);
  border: 1px solid var(--ps-surface-muted);
  box-shadow: var(--ps-shadow-sm);
  background-color: #ffffff;
}

.ps-product-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Gallery */
.ps-gallery-wrap {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ps-main-image-box {
  position: relative;
  border-radius: var(--ps-radius-xl);
  overflow: hidden;
  background-color: #ffffff !important;
  border: 1px solid var(--ps-surface-muted);
  box-shadow: var(--ps-shadow-sm);
  aspect-ratio: 1 / 1;
  max-height: 520px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.ps-main-image-box img,
#ps-main-prod-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto;
  display: block;
}

.ps-gallery-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.ps-gallery-badges .ps-badge-sale {
  background-color: var(--ps-urgency-alert);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--ps-radius-sm);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.ps-gallery-badges .ps-badge-bestseller {
  background-color: var(--ps-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--ps-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.ps-gallery-eco-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  padding: 4px 10px;
  border-radius: var(--ps-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--ps-shadow-sm);
  pointer-events: none;
}

.ps-thumbnails-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.ps-thumb-btn {
  aspect-ratio: 1 / 1;
  border-radius: var(--ps-radius-md);
  border: 2px solid var(--ps-surface-muted);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: none;
  transition: all 0.2s;
}

.ps-thumb-btn.active,
.ps-thumb-btn:hover {
  border-color: var(--ps-primary);
  box-shadow: 0 0 0 2px rgba(19, 110, 0, 0.2);
}

.ps-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info & CRO Machine */
.ps-product-info-col {
  background-color: var(--ps-surface-canvas);
  border-radius: var(--ps-radius-xl);
  border: 1px solid var(--ps-surface-muted);
  padding: 32px;
  box-shadow: var(--ps-shadow-sm);
}

.ps-live-viewers-alert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fff1f0;
  color: var(--ps-urgency-alert);
  border: 1px solid #ffccc7;
  border-radius: var(--ps-radius-full);
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.ps-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ps-urgency-alert);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(200, 57, 43, 0.7);
  animation: ps-pulse 1.6s infinite;
}

@keyframes ps-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 57, 43, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(200, 57, 43, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 57, 43, 0); }
}

.ps-product-title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.ps-social-proof-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ps-surface-muted);
  flex-wrap: wrap;
}

.ps-price-box {
  background-color: var(--ps-surface-subtle);
  border-radius: var(--ps-radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ps-price-values {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.ps-current-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ps-on-surface);
  white-space: nowrap !important;
  display: inline-block;
  line-height: 1.1;
}

.ps-current-price .woocommerce-Price-amount,
.ps-current-price .woocommerce-Price-currencySymbol {
  white-space: nowrap !important;
}

.ps-original-price {
  font-size: 1.05rem;
  color: var(--ps-secondary);
  text-decoration: line-through;
  white-space: nowrap !important;
  display: inline-block;
}

.ps-original-price .woocommerce-Price-amount,
.ps-original-price .woocommerce-Price-currencySymbol {
  white-space: nowrap !important;
}

.ps-discount-badge {
  background-color: var(--ps-urgency-alert);
  color: #fff;
  font-weight: 800;
  font-size: 0.8125rem;
  padding: 5px 12px;
  border-radius: var(--ps-radius-full);
  white-space: nowrap !important;
  flex-shrink: 0;
  line-height: 1.2;
}

.ps-customization-box {
  display: none !important;
}

/* Coupon Vouchers Box */
.ps-vouchers-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.ps-voucher-card {
  background-color: var(--ps-voucher-highlight);
  border: 1.5px dashed var(--ps-voucher-border);
  border-radius: var(--ps-radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ps-voucher-info strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--ps-primary);
  font-weight: 800;
}

.ps-voucher-info span {
  font-size: 0.75rem;
  color: var(--ps-secondary);
}

.ps-btn-copy-code {
  background-color: var(--ps-primary);
  color: #fff;
  border: none;
  border-radius: var(--ps-radius-sm);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.ps-btn-copy-code.copied {
  background-color: var(--ps-on-surface);
  color: #fff;
}

/* Stock Scarcity Bar */
.ps-stock-scarcity-box {
  margin-bottom: 24px;
}

.ps-scarcity-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ps-urgency-alert);
  margin-bottom: 6px;
}

.ps-progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: var(--ps-surface-muted);
  border-radius: var(--ps-radius-full);
  overflow: hidden;
}

.ps-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff7875, #c8392b);
  border-radius: var(--ps-radius-full);
  transition: width 0.6s ease;
}

/* Color & Size Selectors */
.ps-option-group {
  margin-bottom: 20px;
}

.ps-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.ps-color-swatches {
  display: flex;
  gap: 12px;
}

.ps-color-swatch {
  width: 36px;
  height: 36px;
  border-radius: var(--ps-radius-full);
  border: 2px solid transparent;
  padding: 2px;
  cursor: pointer;
  background: none;
}

.ps-color-swatch.active {
  border-color: var(--ps-primary);
}

.ps-color-swatch-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--ps-radius-full);
  box-shadow: inset 0 0 2px rgba(0,0,0,0.2);
}

.ps-size-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.ps-size-btn {
  border: 1.5px solid var(--ps-surface-muted);
  background-color: var(--ps-surface-canvas);
  border-radius: var(--ps-radius-md);
  padding: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ps-on-surface);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.ps-size-btn:hover,
.ps-size-btn.active {
  border-color: var(--ps-primary);
  background-color: var(--ps-voucher-highlight);
  color: var(--ps-primary);
}

/* Customization Field */
.ps-customization-box {
  background-color: var(--ps-surface-warm-tint);
  border: 1.5px solid #ebd7b2;
  border-radius: var(--ps-radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.ps-customization-box label {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 8px;
  color: var(--ps-on-surface);
}

.ps-customization-box input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--ps-radius-sm);
  border: 1px solid #d5c39f;
  background-color: #fff;
  font-size: 0.9375rem;
  font-family: inherit;
}

/* Primary ATC CTA */
.ps-atc-action-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.ps-btn-main-atc {
  background: linear-gradient(180deg, #188600 0%, #136e00 100%);
  color: #fff;
  border: none;
  font-size: 1.125rem;
  font-weight: 800;
  padding: 18px 28px;
  border-radius: var(--ps-radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(19, 110, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ps-btn-main-atc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(19, 110, 0, 0.45);
}

.ps-express-checkout-box {
  background-color: var(--ps-surface-subtle);
  border-radius: var(--ps-radius-md);
  padding: 12px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ps-secondary);
}

.ps-express-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

/* Reassurance Strip in Product */
.ps-product-guarantees {
  border-top: 1px solid var(--ps-surface-muted);
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.ps-product-guarantee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ps-on-surface);
}

.ps-product-guarantee-item .material-symbols-outlined {
  color: var(--ps-primary);
  font-size: 22px;
}

/* Frequently Bought Together Bundle */
.ps-bundle-box {
  background-color: var(--ps-surface-subtle);
  border: 1.5px solid var(--ps-surface-muted);
  border-radius: var(--ps-radius-lg);
  padding: 24px;
  margin-top: 36px;
}

.ps-bundle-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 16px;
}

.ps-bundle-items-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ps-bundle-item-thumb {
  width: 90px;
  height: 90px;
  border-radius: var(--ps-radius-md);
  border: 1px solid var(--ps-surface-muted);
  overflow: hidden;
  background-color: #fff;
}

.ps-bundle-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-bundle-plus-icon {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ps-secondary);
}

.ps-bundle-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ps-surface-muted);
  padding-top: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.ps-bundle-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ps-bundle-combo-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ps-primary);
}

.ps-btn-bundle-buy {
  background-color: var(--ps-primary);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--ps-radius-md);
  cursor: pointer;
}

/* Accordions for single product */
.ps-accordion-group {
  margin-top: 28px;
  border-top: 1px solid var(--ps-surface-muted);
}

.ps-accordion-item {
  border-bottom: 1px solid var(--ps-surface-muted);
}

.ps-accordion-header {
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ps-on-surface);
  cursor: pointer;
  text-align: left;
}

.ps-accordion-content {
  padding: 0 0 16px;
  font-size: 0.9375rem;
  color: var(--ps-secondary);
  line-height: 1.6;
  display: none;
}

.ps-accordion-content.open {
  display: block;
}

/* ==========================================================================
   9. STICKY ADD TO CART BAR
   ========================================================================== */
.ps-sticky-atc-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--ps-surface-canvas);
  border-top: 1px solid var(--ps-surface-muted);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  padding: 12px 20px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.ps-sticky-atc-bar.visible {
  transform: translateY(0);
}

.ps-sticky-atc-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ps-sticky-product-snippet {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ps-sticky-product-snippet img {
  width: 48px;
  height: 48px;
  border-radius: var(--ps-radius-sm);
  object-fit: cover;
}

.ps-sticky-title {
  font-weight: 700;
  font-size: 0.9375rem;
}

.ps-sticky-price {
  font-weight: 800;
  color: var(--ps-primary);
  font-size: 1.125rem;
}

/* ==========================================================================
   10. SIZE GUIDE MODAL
   ========================================================================== */
.ps-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ps-modal-overlay.open {
  display: flex;
}

.ps-modal-dialog {
  background-color: var(--ps-surface-canvas);
  border-radius: var(--ps-radius-xl);
  max-width: 650px;
  width: 100%;
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--ps-shadow-xl);
}

.ps-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--ps-secondary);
}

.ps-size-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.875rem;
}

.ps-size-table th,
.ps-size-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ps-surface-muted);
  text-align: center;
}

.ps-size-table th {
  background-color: var(--ps-surface-subtle);
  font-weight: 700;
}

/* ==========================================================================
   11. CONVERSION FOOTER
   ========================================================================== */
.ps-conversion-footer {
  background-color: var(--ps-surface-canvas);
  border-top: 1px solid var(--ps-surface-muted);
  padding: 60px 20px 24px;
  margin-top: 60px;
}

.ps-footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ps-surface-muted);
}

.ps-footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--ps-on-surface);
}

.ps-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ps-footer-col ul li {
  margin-bottom: 10px;
}

.ps-footer-col ul li a {
  color: var(--ps-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.ps-footer-col ul li a:hover {
  color: var(--ps-primary);
}

.ps-footer-bottom {
  max-width: 1320px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ps-secondary);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .ps-trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .ps-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ps-catalog-layout {
    grid-template-columns: 1fr;
  }
  .ps-filter-sidebar {
    position: static;
  }
  .ps-product-main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ps-gallery-wrap {
    position: static;
  }
  .ps-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Visibility Utilities */
  .hide-on-mobile {
    display: none !important;
  }
  .hide-on-desktop {
    display: initial !important;
  }

  /* Header & Urgency Bar Mobile Restraints */
  .ps-header-trust,
  .ps-header-search {
    display: none !important;
  }
  .ps-strip-badges {
    display: none !important;
  }
  .ps-strip-inner {
    padding: 6px 12px !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  .ps-strip-center {
    font-size: 0.75rem !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }
  .ps-strip-timer .ps-countdown-pill {
    font-size: 0.75rem !important;
    padding: 2px 6px !important;
  }

  /* Home Hero */
  .ps-hero-card {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }

  /* Product Card Mobile Grid (Screen 3 & Screen 2) */
  .ps-product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .ps-product-card {
    border-radius: var(--ps-radius-md) !important;
  }
  .ps-card-media {
    padding: 6px !important;
  }
  .ps-card-body {
    padding: 10px !important;
  }
  .ps-card-title,
  .ps-card-body h3,
  .ps-card-body .woocommerce-loop-product__title {
    font-size: 0.8125rem !important;
    height: 2.6em !important;
    margin: 0 0 6px 0 !important;
  }
  .ps-card-scarcity-line {
    font-size: 0.6875rem !important;
    margin-bottom: 4px !important;
  }
  .ps-card-rating {
    font-size: 0.75rem !important;
    margin-bottom: 4px !important;
  }
  .ps-card-price-row {
    margin-bottom: 8px !important;
  }
  .ps-card-price {
    font-size: 1.05rem !important;
  }
  .ps-btn-card-atc {
    padding: 8px 10px !important;
    font-size: 0.8125rem !important;
  }

  /* Single Product Mobile Layout Fixes (Fix for 2.PNG bị lệch bên phải) */
  .site-main,
  .ps-single-product-page-wrap {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ps-single-product-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px auto 30px !important;
    padding: 0 12px !important; /* symmetrical 12px padding left & right */
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .ps-breadcrumbs {
    font-size: 0.75rem !important;
    margin-bottom: 12px !important;
    padding: 0 2px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ps-product-main-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 16px !important;
    box-sizing: border-box !important;
  }

  .ps-gallery-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: static !important;
  }

  /* Main Image Box: PERFECTLY CENTERED, 100% equal margins, no right overflow */
  .ps-main-image-box {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 10px !important;
    background: #ffffff !important;
    border: 1px solid var(--ps-surface-muted) !important;
    border-radius: var(--ps-radius-xl) !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .ps-main-image-box img,
  #ps-main-prod-img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .ps-gallery-badges {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    width: calc(100% - 20px) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    pointer-events: none !important;
    z-index: 5 !important;
    box-sizing: border-box !important;
  }

  .ps-gallery-badges .ps-badge-sale {
    font-size: 0.6875rem !important;
    padding: 3px 6px !important;
    border-radius: var(--ps-radius-sm) !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12) !important;
    line-height: 1.2 !important;
  }

  .ps-gallery-badges .ps-badge-bestseller {
    font-size: 0.6875rem !important;
    padding: 3px 6px !important;
    border-radius: var(--ps-radius-sm) !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12) !important;
    line-height: 1.2 !important;
  }

  .ps-gallery-eco-tag {
    display: none !important;
  }

  .ps-thumbnails-row {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    margin-top: 10px !important;
    padding-bottom: 4px !important;
    scrollbar-width: thin;
  }

  .ps-thumb-btn {
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  .ps-product-info-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 12px !important;
    box-sizing: border-box !important;
  }

  .ps-vouchers-container {
    grid-template-columns: 1fr !important;
  }

  .ps-size-buttons {
    grid-template-columns: repeat(5, 1fr) !important;
  }

  /* Reassurance Guarantees on Mobile: Clean vertical stack with zero clipping */
  .ps-product-guarantees {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 14px 0 !important;
    margin-bottom: 20px !important;
    border-top: 1px solid var(--ps-surface-muted) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .ps-product-guarantee-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: var(--ps-on-surface) !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .ps-product-guarantee-item .material-symbols-outlined {
    font-size: 20px !important;
    color: var(--ps-primary) !important;
    flex-shrink: 0 !important;
  }

  .ps-single-product-bottom-trust {
    margin-top: 28px !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .ps-single-product-bottom-trust .ps-trust-bar {
    border-radius: var(--ps-radius-lg) !important;
    padding: 16px 12px !important;
  }

  /* Sticky Add to Cart Bar Mobile Optimization (Fix for 2.jpg) */
  .ps-sticky-atc-bar {
    padding: 8px 12px !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12) !important;
  }
  .ps-sticky-atc-inner {
    max-width: 100% !important;
    width: 100% !important;
    gap: 8px !important;
    justify-content: space-between !important;
  }
  .ps-sticky-product-snippet {
    gap: 8px !important;
    flex-shrink: 0 !important;
  }
  .ps-sticky-product-snippet img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    object-fit: contain !important;
  }
  .ps-sticky-title {
    display: none !important;
  }
  .ps-sticky-timer {
    display: none !important;
  }
  .ps-sticky-price {
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
  }
  .ps-sticky-actions-wrap {
    flex: 1 !important;
    display: flex !important;
    justify-content: flex-end !important;
  }
  .ps-btn-card-atc.ps-sticky-submit-btn {
    width: 100% !important;
    max-width: 180px !important;
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Price Box Mobile Fix: Currency NEVER wraps onto second line */
  .ps-price-box {
    padding: 12px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .ps-price-values {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .ps-current-price {
    font-size: 1.625rem !important;
    white-space: nowrap !important;
    line-height: 1.1 !important;
    display: inline-block !important;
  }
  .ps-current-price .woocommerce-Price-amount,
  .ps-current-price .woocommerce-Price-currencySymbol {
    white-space: nowrap !important;
  }
  .ps-original-price {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    display: inline-block !important;
  }
  .ps-original-price .woocommerce-Price-amount,
  .ps-original-price .woocommerce-Price-currencySymbol {
    white-space: nowrap !important;
  }
  .ps-discount-badge {
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Customization box deleted as requested */
  .ps-customization-box {
    display: none !important;
  }

  /* Value Proposition Bar & Footer */
  .ps-trust-bar-inner {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .ps-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* ==========================================================================
   14. SIZE GUIDE TABS COMPONENT (T-SHIRT & HOODIE)
   ========================================================================== */
.ps-size-guide-section {
  margin: 56px 0;
  clear: both;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ps-size-guide-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.ps-size-guide-header {
  text-align: center;
  margin-bottom: 28px;
}

.ps-size-guide-pill-badge {
  display: inline-block;
  background-color: #ffedd5;
  color: #c2410c;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.ps-size-guide-title {
  font-size: 2.125rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ps-size-guide-subtitle {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0 auto;
  max-width: 620px;
  line-height: 1.5;
}

/* Tab Switcher */
.ps-size-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin: 28px 0 36px;
}

.ps-size-tabs-nav {
  display: inline-flex;
  background-color: #f1f5f9;
  padding: 6px;
  border-radius: 9999px;
  gap: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ps-size-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.ps-size-tab-btn .ps-tab-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ps-size-tab-btn:hover:not(.active) {
  color: #0f172a;
  background-color: rgba(255, 255, 255, 0.6);
}

.ps-size-tab-btn.active {
  background-color: #ffffff;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Size Grid: Table + Diagram */
.ps-size-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ps-size-table-col,
.ps-size-guide-diagram-col {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ps-th-desktop {
  display: inline;
}

.ps-th-mobile {
  display: none;
}

.ps-fit-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ps-fit-pill {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
  color: #ffffff;
}

.ps-fit-regular {
  background-color: #b91c1c;
}

.ps-fit-comfort {
  background-color: #0f172a;
}

.ps-fit-material {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 600;
}

.ps-table-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.ps-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ps-measurements-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ps-measurements-table th {
  background-color: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  text-transform: uppercase;
  border: none;
  white-space: nowrap;
}

.ps-measurements-table td {
  padding: 12px 18px;
  font-size: 0.875rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.ps-measurements-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.ps-measurements-table tbody tr:last-child td {
  border-bottom: none;
}

.ps-measurements-table .ps-row-popular {
  background-color: #f0fdf4 !important;
  font-weight: 600;
}

.ps-popular-tag {
  font-size: 0.6875rem;
  background-color: #dcfce7;
  color: #166534;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Measurement Guide Card */
.ps-diagram-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.ps-diagram-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ps-diagram-card-header h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ps-diagram-svg-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 0;
}

.ps-tshirt-svg {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
}

.ps-diagram-instructions {
  margin-top: 14px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #475569;
}

.ps-marker-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ps-marker-box.marker-a {
  background-color: #ea580c;
}

.ps-marker-box.marker-b {
  background-color: #0284c7;
}

.ps-marker-title-a {
  color: #ea580c;
}

.ps-marker-title-b {
  color: #0284c7;
}

.ps-guide-tip-box {
  margin-top: 6px;
  padding: 10px 14px;
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  color: #92400e;
  line-height: 1.4;
}

.ps-guide-tip-box p {
  margin: 0;
}

/* ==========================================================================
   15. CUSTOMER REVIEWS COMPONENT (UX/UI & WOOCOMMERCE)
   ========================================================================== */
.ps-reviews-section {
  margin: 64px 0 56px;
  clear: both;
  width: 100%;
}

.ps-reviews-container {
  max-width: 1240px;
  margin: 0 auto;
}

.ps-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}

.ps-reviews-badge-pill {
  display: inline-block;
  background-color: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.ps-reviews-main-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ps-reviews-subtitle {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0;
}

.ps-btn-write-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0f172a;
  color: #ffffff;
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  font-family: inherit;
}

.ps-btn-write-review:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
}

/* Reviews Layout Grid */
.ps-reviews-layout-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 36px;
  align-items: start;
}

/* Summary Card */
.ps-summary-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 100px;
}

.ps-score-top {
  text-align: center;
  margin-bottom: 24px;
}

.ps-score-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.ps-stars-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 1.35rem;
  color: #f59e0b;
  margin-bottom: 10px;
}

.ps-recommend-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ps-primary);
  margin-bottom: 6px;
}

.ps-count-subtext {
  font-size: 0.8125rem;
  color: #64748b;
}

/* Breakdown Bars */
.ps-breakdown-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.ps-breakdown-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: #475569;
}

.ps-star-label {
  width: 60px;
  font-weight: 600;
  white-space: nowrap;
}

.ps-bar-track {
  flex: 1;
  height: 8px;
  background-color: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.ps-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ea580c, #f97316);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.ps-star-pct {
  width: 32px;
  text-align: right;
  font-weight: 600;
  color: #64748b;
}

.ps-summary-divider {
  height: 1px;
  background-color: #f1f5f9;
  margin: 22px 0;
}

/* Trust List */
.ps-summary-trust-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ps-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}

.ps-trust-icon-check,
.ps-trust-icon-truck,
.ps-trust-icon-shield {
  color: #16a34a;
  font-size: 18px;
  flex-shrink: 0;
}

/* Review Cards Feed */
.ps-reviews-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ps-review-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ps-review-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.ps-review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}

.ps-reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ps-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.ps-reviewer-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ps-reviewer-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ps-reviewer-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.ps-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #f0fdf4;
  color: #16a34a;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #bbf7d0;
}

.ps-review-date {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.ps-review-card-stars {
  color: #f59e0b;
  font-size: 1.05rem;
  letter-spacing: 2px;
  white-space: nowrap;
}

.ps-review-headline {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.ps-review-content-body p {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Collapsible Review Form Drawer */
.ps-review-form-drawer {
  background-color: #ffffff;
  border: 2px solid var(--ps-primary);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.ps-review-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ps-review-form-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.ps-close-form-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 50%;
}

.ps-close-form-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.ps-form-row {
  margin-bottom: 16px;
}

.ps-form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.ps-form-row textarea,
.ps-form-row input[type="text"],
.ps-form-row input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.875rem;
  font-family: inherit;
  box-sizing: border-box;
}

.ps-form-row textarea:focus,
.ps-form-row input[type="text"]:focus,
.ps-form-row input[type="email"]:focus {
  border-color: var(--ps-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(19, 110, 0, 0.1);
}

.ps-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ps-form-rating-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  font-size: 1.5rem;
}

.ps-form-rating-stars input[type="radio"] {
  display: none;
}

.ps-form-rating-stars label {
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s;
  margin: 0;
}

.ps-form-rating-stars input[type="radio"]:checked ~ label,
.ps-form-rating-stars label:hover,
.ps-form-rating-stars label:hover ~ label {
  color: #f59e0b;
}

.ps-btn-submit-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--ps-primary);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: inherit;
}

.ps-btn-submit-review:hover {
  background-color: var(--ps-primary-hover);
}

/* ==========================================================================
   16. RESPONSIVE BREAKPOINTS FOR SIZE GUIDE & REVIEWS
   ========================================================================== */
@media (max-width: 992px) {
  .ps-size-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ps-reviews-layout-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ps-summary-card {
    position: static;
  }

  .ps-size-guide-title {
    font-size: 1.75rem;
  }

  .ps-reviews-main-title {
    font-size: 1.65rem;
  }
}

@media (max-width: 768px) {
  .ps-size-guide-section {
    margin: 36px 0 !important;
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .ps-size-guide-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .ps-size-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 20px !important;
    box-sizing: border-box !important;
  }

  .ps-size-table-col,
  .ps-size-guide-diagram-col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Table Mobile Optimization: 100% fit, no horizontal overflow */
  .ps-th-desktop {
    display: none !important;
  }

  .ps-th-mobile {
    display: inline !important;
  }

  .ps-table-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .ps-table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ps-measurements-table {
    width: 100% !important;
    min-width: 100% !important;
    table-layout: fixed !important;
  }

  .ps-measurements-table th {
    padding: 10px 4px !important;
    font-size: 0.6875rem !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
  }

  .ps-measurements-table th.ps-col-size,
  .ps-measurements-table th:first-child {
    width: 25% !important;
    text-align: left !important;
    padding-left: 8px !important;
  }

  .ps-measurements-table th.ps-col-a,
  .ps-measurements-table th:nth-child(2) {
    width: 25% !important;
  }

  .ps-measurements-table th.ps-col-b,
  .ps-measurements-table th:nth-child(3) {
    width: 25% !important;
  }

  .ps-measurements-table th.ps-col-c,
  .ps-measurements-table th:nth-child(4) {
    width: 25% !important;
  }

  .ps-measurements-table td {
    padding: 10px 4px !important;
    font-size: 0.8125rem !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .ps-measurements-table td:first-child {
    text-align: left !important;
    padding-left: 8px !important;
    white-space: normal !important;
  }

  .ps-popular-tag {
    display: inline-block !important;
    font-size: 0.5625rem !important;
    padding: 1px 3px !important;
    margin-left: 2px !important;
    line-height: 1.1 !important;
  }

  /* Diagram Card Mobile Optimization: Perfectly Centered & Contained */
  .ps-diagram-card {
    padding: 18px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .ps-diagram-svg-wrap {
    padding: 8px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ps-tshirt-svg {
    max-width: 220px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .ps-diagram-instructions {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ps-guide-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.8125rem !important;
    gap: 8px !important;
  }

  .ps-guide-item > div {
    flex: 1 !important;
    min-width: 0 !important;
    word-break: break-word !important;
  }

  .ps-guide-tip-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.78125rem !important;
    padding: 10px 12px !important;
  }

  .ps-guide-tip-box p {
    flex: 1 !important;
    min-width: 0 !important;
    word-break: break-word !important;
  }

  .ps-size-guide-title {
    font-size: 1.45rem;
  }

  .ps-size-tabs-nav {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    flex-direction: column;
    border-radius: 14px;
    padding: 6px;
  }

  .ps-size-tab-btn {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.875rem;
  }

  .ps-reviews-section {
    margin: 40px 0 32px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  .ps-reviews-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ps-reviews-layout-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ps-summary-card {
    padding: 22px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: static !important;
  }

  .ps-reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .ps-btn-write-review {
    width: 100%;
    justify-content: center;
  }

  .ps-review-card {
    padding: 18px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ps-review-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ps-review-card-stars {
    align-self: flex-start;
  }

  .ps-form-grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   17. FORCE ELIMINATE LEGACY BLACK FOOTER & PRE-EXISTING DEMO WIDGETS
   ========================================================================== */
.site-footer .footer-widgets,
.footer-widgets,
#footer-widgets,
.inside-footer-widgets,
.site-info,
.footer-bar,
.site-footer > :not(.ps-conversion-footer),
.site-footer:not(:has(.ps-conversion-footer)),
footer:not(.ps-conversion-footer):not(.entry-meta):not(.comment-meta),
div[class*="footer-widget"],
div[id*="footer-widget"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.site-footer {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Sibling elements after .ps-conversion-footer */
.ps-conversion-footer ~ div:not(.ps-modal-overlay):not(#ps-size-modal):not(.ps-sticky-atc-bar),
.ps-conversion-footer ~ footer,
.ps-conversion-footer ~ section,
.ps-conversion-footer ~ aside {
  display: none !important;
}

/* ==========================================================================
   STICKY BAR PRODUCT INFO + EXTERNAL PRODUCT BUTTON
   ========================================================================== */
/* Alias for new sticky inner layout */
.ps-sticky-product-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.ps-sticky-product-info .ps-sticky-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* External/Affiliate product CTA button – same visual as main ATC */
.ps-btn-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  background-color: var(--ps-primary);
  color: #fff !important;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  border-radius: var(--ps-radius-pill);
  padding: 16px 32px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
  border: none;
}

.ps-btn-external:hover {
  background-color: var(--ps-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
  color: #fff !important;
}

.ps-btn-external:active {
  transform: translateY(0);
}

/* Force main ATC button class to cover <a> tags too */
a.ps-btn-main-atc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: #fff !important;
}

a.ps-btn-main-atc:hover {
  color: #fff !important;
}