/* ==========================================================================
   WIOS Technology - Option A: High-End Editorial Style Sheet
   Inspired by Apple, Vercel, and luxury minimalist tech design
   ========================================================================== */

/* --- 1. Custom Properties & Fonts --- */
:root {
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-secondary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Color Palette (Clean Whites, Deep Charcoal, Subtle Borders, Lime Highlights) */
  --bg-deep: #fafafa;
  --bg-surface: #ffffff;
  --bg-surface-hover: #fcfcfd;
  --border-subtle: #eaeaea;
  
  /* Brand Accent Colors */
  --brand-green: #84b819; /* Accent Green */
  --brand-green-hover: #72a113;
  --brand-blue: #0066ff;
  
  /* Text Contrast Hierarchy */
  --text-pure: #111111; /* Pitch black */
  --text-sub: #555555;  /* Deep slate grey */
  --text-dim: #999999;  /* Soft grey */
  
  /* Radii & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  --shadow-flat: 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.06);
  --shadow-modal: 0 30px 70px rgba(0, 0, 0, 0.12);
  
  --transition-normal: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s ease-out;
}

/* --- 2. Base Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  font-family: var(--font-primary);
  color: var(--text-pure);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  position: relative;
}

body.drawer-open {
  overflow: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #dddddd;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #111111;
}

/* --- 3. Minimal Top Announcement Bar --- */
.top-announcement-bar-editorial {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  color: var(--text-sub);
  padding: 0.6rem 1.5rem;
  z-index: 101;
}

.top-bar-container-editorial {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.top-bar-container-editorial a {
  color: var(--text-pure);
  text-decoration: none;
  font-weight: 700;
}

.top-bar-container-editorial a:hover {
  color: var(--brand-green);
}

.top-bar-divider {
  color: #dddddd;
}

/* --- 4. Elegant Header (Apple Style) --- */
.header-editorial {
  position: sticky;
  top: 0;
  z-index: 99;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.header-container-editorial {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container-editorial {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-pure);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.logo-icon-wrapper-wios {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logo-image-header {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  background: #ffffff;
  transition: transform var(--transition-normal);
}

.logo-container-editorial:hover .logo-image-header {
  transform: scale(1.08);
}

.logo-text-editorial {
  font-family: var(--font-primary);
}

.text-accent-editorial {
  font-weight: 400;
  color: var(--text-sub);
}

.header-actions-editorial {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Connection Badge */
.connection-status-editorial {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f4f4f5;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-secondary);
  color: var(--text-sub);
}

.status-pulse-dot-editorial {
  width: 5px;
  height: 5px;
  background-color: var(--brand-green);
  border-radius: 50%;
  position: relative;
}

.status-pulse-dot-editorial::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%;
  background-color: var(--brand-green);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Header Cart Button */
.header-cart-btn-editorial {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--text-pure);
  cursor: pointer;
  outline: none;
  font-family: var(--font-secondary);
  font-weight: 700;
  position: relative;
  transition: opacity var(--transition-fast);
}

.header-cart-btn-editorial:hover {
  opacity: 0.7;
}

.cart-icon-wrapper-editorial svg {
  width: 20px;
  height: 20px;
  display: block;
}

.cart-badge-count-editorial {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #111111;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: var(--radius-full);
  min-width: 15px;
  text-align: center;
}

/* --- 5. Cinematic Hero Section --- */
.editorial-hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  background: radial-gradient(circle at 80% 20%, #f3f4f6 0%, #fcfcfd 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding: 4rem 0;
}

.hero-grid-container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 10;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-pretitle {
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-green);
  letter-spacing: 2px;
  margin-bottom: 0.85rem;
}

.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  color: #111111; /* Dark text for light background */
  margin-bottom: 1.25rem;
}

.hero-subtext {
  font-family: var(--font-secondary);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: #444444; /* Darker subtext for readability */
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.editorial-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  background: #111111; /* Sleek black button */
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal);
}

.editorial-cta:hover {
  background: var(--brand-green);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(132, 184, 25, 0.25);
}

.hero-carousel-col {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Promo Carousel Card Styles */
.promo-carousel-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.promo-carousel-container:hover {
  transform: translateY(-2px);
}

.promo-carousel-title {
  display: block;
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-green);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  border-bottom: 1.5px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.promo-carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.promo-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.promo-card {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.promo-badge {
  align-self: flex-start;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  animation: pulsePromo 2s infinite;
}

@keyframes pulsePromo {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.promo-image-wrapper {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.promo-image-wrapper img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.promo-card:hover .promo-image-wrapper img {
  transform: scale(1.05);
}

.promo-info {
  display: flex;
  flex-direction: column;
}

.promo-brand {
  font-family: var(--font-secondary);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.promo-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-price-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.promo-old-price {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: line-through;
  font-weight: 500;
}

.promo-current-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ef4444;
}

.promo-add-btn {
  width: 100%;
  background: #111111;
  color: #ffffff;
  border: none;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.promo-add-btn:hover {
  background: var(--brand-green);
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all var(--transition-fast);
  z-index: 15;
}

.carousel-nav-btn:hover {
  background: var(--text-pure);
  color: #ffffff;
  border-color: var(--text-pure);
}

.carousel-nav-btn.prev {
  left: 0.4rem;
}

.carousel-nav-btn.next {
  right: 0.4rem;
}

.carousel-nav-btn svg {
  width: 12px;
  height: 12px;
}

/* Dots Indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.carousel-dot.active {
  width: 14px;
  border-radius: var(--radius-full);
  background: var(--text-pure);
}

/* Promo Loading Skeleton */
.promo-loading-skeleton {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* --- 6. Sticky Secondary Category Navigation Bar --- */
.category-sticky-bar {
  position: sticky;
  top: 57px; /* Matches header height dynamically */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 90;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.95rem 0;
  width: 100%;
}

.category-sticky-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-sticky-container::-webkit-scrollbar {
  display: none;
}

.category-btn {
  background: none;
  border: none;
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  padding: 0.4rem 0;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.category-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-pure);
  transition: width var(--transition-normal);
}

.category-btn:hover {
  color: var(--text-pure);
}

.category-btn.active {
  color: var(--text-pure);
}

.category-btn.active::after {
  width: 100%;
}

/* --- Subcategory Sticky Bar (Flat minimal look) --- */
.subcategory-sticky-bar {
  background: #fdfdfd;
  border-top: 1px solid var(--border-subtle);
  padding: 0.65rem 0;
  width: 100%;
  animation: fadeInSub 0.3s ease forwards;
}

@keyframes fadeInSub {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.subcategory-sticky-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.subcategory-sticky-container::-webkit-scrollbar {
  display: none;
}

.subcategory-btn {
  background: none;
  border: none;
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  padding: 0.25rem 0;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.subcategory-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--text-pure);
  transition: width var(--transition-normal);
}

.subcategory-btn:hover {
  color: var(--text-pure);
}

.subcategory-btn.active {
  color: var(--text-pure);
  font-weight: 700;
}

.subcategory-btn.active::after {
  width: 100%;
}

/* --- 7. Minimal Search & Stats (Editorial style) --- */
.catalog-section {
  width: 100%;
}

.search-section-editorial {
  max-width: 1300px;
  margin: 3.5rem auto 2.5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-row-layout-editorial {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  flex-wrap: wrap;
}

.search-container-editorial {
  position: relative;
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
}

.search-icon-editorial {
  position: absolute;
  left: 0;
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  pointer-events: none;
}

#search-input {
  width: 100%;
  padding: 0.75rem 2rem 0.75rem 1.75rem;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border-subtle);
  font-family: var(--font-secondary);
  color: var(--text-pure);
  font-size: 0.95rem;
  outline: none;
  border-radius: 0;
  transition: border-color var(--transition-normal);
}

#search-input:focus {
  border-color: var(--text-pure);
}

.clear-search-btn-editorial {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.clear-search-btn-editorial:hover {
  color: var(--text-pure);
}

.clear-search-btn-editorial svg {
  width: 14px;
  height: 14px;
}

.filter-toggle-btn-editorial {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-toggle-btn-editorial:hover,
.filter-toggle-btn-editorial.active {
  border-color: var(--text-pure);
  color: var(--text-pure);
  background: #fafafa;
}

.filter-toggle-btn-editorial svg {
  width: 14px;
  height: 14px;
}

/* Expandable Filters Panel (Grid layout) */
.filters-panel-editorial {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
  animation: slideDown 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-group-editorial {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-group-editorial label {
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.filter-group-editorial select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: #f9f9fa;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  color: var(--text-pure);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.filter-group-editorial select:focus {
  border-color: var(--text-pure);
  background: #ffffff;
}

.catalog-stats-editorial {
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* --- 8. Product Layout Containers --- */
.products-layout-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

/* Section divider */
.section-divider-editorial {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  margin: 5rem 0 3.5rem;
  padding-top: 1.5rem;
  display: flex;
}

.divider-text {
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 1.5px;
}

/* --- 9. Asymmetric Editorial Showcase (Showcase Rows) --- */
.featured-showcase-container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 2rem;
}

.showcase-row.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.showcase-row.reverse .showcase-image-col {
  order: 2;
}

.showcase-image-col {
  width: 100%;
  aspect-ratio: 1.3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fdfdfd;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-image-col:hover .showcase-image {
  transform: scale(1.04);
}

.showcase-category {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-secondary);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  letter-spacing: 0.5px;
}

.showcase-info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.showcase-brand {
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.showcase-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--text-pure);
  margin-bottom: 0.85rem;
}

.showcase-desc {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.showcase-price-tag {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 1.75rem;
}

.showcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  background: #111111;
  border: none;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all var(--transition-fast);
}

.showcase-btn:hover {
  background: var(--brand-green);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(132, 184, 25, 0.25);
}

.showcase-btn svg {
  width: 16px;
  height: 16px;
}

/* --- 10. Clean Editorial Grid (general catalog) --- */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.product-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #cccccc;
}

.card-image-container {
  position: relative;
  width: 100%;
  height: 145px; /* Uniform compact height */
  background: #fafafa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Don't crop product images, fit them nicely! */
  padding: 0.5rem; /* Clean padding around images */
  transition: transform var(--transition-normal);
}

.product-card:hover .card-image {
  transform: scale(1.04);
}

/* Fallback default block */
.image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f7f7f9;
  color: var(--text-dim);
  gap: 0.5rem;
}

.image-fallback svg {
  width: 28px;
  height: 28px;
  opacity: 0.4;
}

.fallback-text {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-sub);
}

.card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-secondary);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  z-index: 5;
}

.card-content {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.card-brand {
  font-family: var(--font-secondary);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

/* Stock status indicators */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-secondary);
  font-size: 0.63rem;
  font-weight: 700;
}

.stock-badge .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  position: relative;
}

.stock-badge.in-stock { color: #10b981; }
.stock-badge.in-stock .dot { background-color: #10b981; }
.stock-badge.low-stock { color: #ff9800; }
.stock-badge.low-stock .dot { background-color: #ff9800; }
.stock-badge.order-stock { color: #3b82f6; }
.stock-badge.order-stock .dot { background-color: #3b82f6; }
.stock-badge.out-of-stock { color: #ef4444; }
.stock-badge.out-of-stock .dot { background-color: #ef4444; }

/* Stars Rating */
.rating-container {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-secondary);
  font-size: 0.65rem;
  color: var(--text-sub);
}

.stars-row {
  display: flex;
  gap: 1px;
}

.rating-text {
  font-weight: 600;
}

.card-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.4rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.2rem;
}

.card-description {
  display: none; /* Hidden in high-density grid catalog */
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

.card-price-container {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-family: var(--font-secondary);
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-pure);
}

/* Buy Action Button */
.card-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4f4f5;
  border: none;
  color: var(--text-pure);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.product-card:hover .card-action-btn {
  background: var(--text-pure);
  color: #ffffff;
}

.card-action-btn svg {
  width: 12px;
  height: 12px;
}

/* --- 11. Skeletal Loaders --- */
.skeleton-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 290px;
  display: flex;
  flex-direction: column;
}

.skeleton-thumb {
  width: 100%;
  height: 160px;
  background: var(--border-subtle);
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f4f4f5 25%, #eaeaea 50%, #f4f4f5 75%);
  background-size: 200% 100%;
  animation: loadingPulse 1.5s infinite;
}

.skeleton-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.skeleton-line {
  background: linear-gradient(90deg, #f4f4f5 25%, #eaeaea 50%, #f4f4f5 75%);
  background-size: 200% 100%;
  animation: loadingPulse 1.5s infinite;
  border-radius: 2px;
}

.skeleton-title { height: 16px; width: 80%; margin-bottom: 0.75rem; }
.skeleton-desc-1 { height: 11px; width: 100%; margin-bottom: 0.5rem; }
.skeleton-desc-2 { height: 11px; width: 85%; margin-bottom: 1.5rem; }
.skeleton-price { height: 14px; width: 60px; }
.skeleton-btn { height: 32px; width: 32px; border-radius: 50%; }

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

/* --- 12. Empty and Error States --- */
.status-state-container {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-flat);
}

.state-icon {
  margin-bottom: 1.25rem;
  color: var(--text-dim);
}

.state-icon svg { width: 38px; height: 38px; }
.state-icon.error-icon { color: #ef4444; }
.state-icon.empty-icon { color: var(--brand-blue); }

.state-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.state-message {
  font-family: var(--font-secondary);
  color: var(--text-sub);
  max-width: 380px;
  line-height: 1.5;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #111111;
  border: none;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-primary:hover {
  background: var(--brand-green);
}

.btn-primary svg { width: 14px; height: 14px; }

/* --- 13. Native Modal (<dialog>) styling --- */
.modal {
  border: none;
  background: transparent;
  max-width: 800px;
  width: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  outline: none;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease-out forwards;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  width: 100%;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border-subtle);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #f4f4f5;
  color: var(--text-pure);
  transform: rotate(90deg);
}

.modal-close-btn svg { width: 14px; height: 14px; }

.modal-body { padding: 2.5rem; }

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.modal-gallery {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #fafafa;
  aspect-ratio: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.modal-details-info { display: flex; flex-direction: column; }

.modal-product-badge {
  font-family: var(--font-secondary);
  display: inline-flex;
  align-self: flex-start;
  padding: 0.25rem 0.55rem;
  background: #f4f4f5;
  color: var(--text-sub);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-product-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.25;
  margin-top: 0.75rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.5px;
}

.modal-product-date {
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-product-date svg { width: 12px; height: 12px; }

.modal-product-price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 1.5rem;
}

/* Modal Quantity Selector */
.modal-qty-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.modal-qty-label {
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.modal-qty-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.modal-qty-btn:hover {
  background: #f4f4f5;
  color: var(--text-pure);
}

.modal-qty-value {
  width: 36px;
  text-align: center;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-pure);
}

/* Modal Add to Cart primary button */
.modal-add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  background: #111111;
  border: none;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all var(--transition-fast);
  width: 100%;
}

.modal-add-to-cart-btn:hover {
  background: var(--brand-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(132, 184, 25, 0.25);
}

.modal-add-to-cart-btn svg {
  width: 16px;
  height: 16px;
}

/* Modal Actions Row */
.modal-actions-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  width: 100%;
}

.modal-actions-row .modal-add-to-cart-btn {
  margin-bottom: 0;
  flex: 1;
}

.modal-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  background: transparent;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-sub);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-share-btn:hover {
  background: #f4f4f5;
  color: var(--text-pure);
  border-color: #cccccc;
}

.modal-share-btn svg {
  width: 16px;
  height: 16px;
}

/* Modal Thumbnails Gallery */
.modal-gallery-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.75rem;
}

.modal-thumbnails-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.modal-thumb-item {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  padding: 2px;
}

.modal-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-thumb-item:hover {
  border-color: #bbbbbb;
}

.modal-thumb-item.active {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 1.5px rgba(132, 184, 25, 0.15);
}

.modal-section-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-product-description {
  font-family: var(--font-secondary);
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  white-space: pre-line;
}

.specs-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #fafafa;
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
}

.spec-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-family: var(--font-secondary);
}

.spec-label { color: var(--text-sub); }
.spec-value { color: var(--text-pure); font-weight: 700; }

/* Dialog animation scale-in */
dialog[open] {
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.97) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- 14. Shopping Cart Side Drawer (Bolsa de Compras) --- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 440px;
  max-width: 100%;
  height: 100%;
  background: #ffffff;
  border-left: 1px solid var(--border-subtle);
  z-index: 200;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.05);
  transition: right var(--transition-normal);
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-drawer-header {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-pure);
}

.cart-drawer-close {
  background: transparent;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.cart-drawer-close:hover {
  background: #f4f4f5;
  color: var(--text-pure);
}

.cart-drawer-close svg { width: 14px; height: 14px; }

.cart-drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Empty Cart State */
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
  height: 100%;
  color: var(--text-dim);
  gap: 1rem;
}

.cart-empty-state svg {
  width: 44px;
  height: 44px;
  opacity: 0.35;
}

.cart-empty-text {
  font-family: var(--font-secondary);
  font-size: 0.88rem;
  color: var(--text-sub);
}

/* Cart Item */
.cart-item {
  display: flex;
  gap: 1.15rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}

.cart-item-image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-pure);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-pure);
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.15rem;
}

/* Quantity selector */
.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: transparent;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: #f4f4f5;
  color: var(--text-pure);
}

.qty-value {
  width: 26px;
  text-align: center;
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-pure);
}

.btn-cart-remove {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.btn-cart-remove:hover {
  color: #ef4444;
}

.btn-cart-remove svg {
  width: 14px;
  height: 14px;
}

/* Cart Footer */
.cart-drawer-footer {
  padding: 1.75rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.total-label {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-sub);
}

.total-value {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-pure);
}

.cart-disclaimer {
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  color: var(--text-sub);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.btn-checkout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem;
  background: #111111; /* Sleek black checkout */
  border: none;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all var(--transition-normal);
}

.btn-checkout:hover {
  background: var(--brand-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(132, 184, 25, 0.25);
}

/* --- 15. Floating WhatsApp Button --- */
.whatsapp-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 98;
  transition: all var(--transition-normal);
}

.whatsapp-floating:hover {
  transform: scale(1.1) translateY(-2px);
  background-color: #20ba59;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.whatsapp-floating svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
}

/* --- 16. Minimalist Footer --- */
.main-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem 3rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-tagline {
  font-family: var(--font-secondary);
  color: var(--text-sub);
  font-size: 0.85rem;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  color: var(--text-sub);
  flex-wrap: wrap;
  gap: 1rem;
}

.status-badge-footer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #f4f4f5;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-sub);
}

.pulse-dot-green {
  width: 5px;
  height: 5px;
  background-color: var(--brand-green);
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.pulse-dot-green::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--brand-green);
  animation: pulse 2s infinite ease-in-out;
}

/* --- 17. Responsive Adaptations --- */
@media (max-width: 992px) {
  .hero-grid-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 1.5rem;
    text-align: center;
  }
  .hero-text-col {
    align-items: center;
  }
  .hero-image-overlay {
    background: rgba(252, 252, 253, 0.88);
  }
  .editorial-hero {
    padding: 3rem 0;
    min-height: auto;
  }
  .showcase-row, .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  .showcase-row.reverse .showcase-image-col {
    order: 0;
  }
  .showcase-image-col {
    aspect-ratio: 1.5;
  }
}

@media (max-width: 768px) {
  .top-announcement-bar-editorial {
    font-size: 0.7rem;
    text-align: center;
  }
  .top-bar-container-editorial {
    flex-direction: column;
    gap: 0.3rem;
  }
  .category-sticky-bar {
    top: 0;
  }
  .category-sticky-container {
    gap: 1.5rem;
    justify-content: flex-start;
  }
  .search-section-editorial {
    margin: 2rem auto 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .catalog-stats-editorial {
    text-align: left;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
    text-align: center;
  }
}

/* --- Brand Billboard Card Section --- */
.brand-billboard-section {
  background: #fcfcfd;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  justify-content: center;
}

.billboard-container {
  max-width: 1300px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  display: flex;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.billboard-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.billboard-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* --- Categories Icons Section --- */
.categories-icons-section {
  background: #ffffff;
  padding: 2.5rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.icons-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 0.5rem;
}

.icons-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  width: 110px;
  text-align: center;
  outline: none;
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f4f4f5;
  color: #71717a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.icon-circle svg {
  width: 24px;
  height: 24px;
}

.icon-label {
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-sub);
  line-height: 1.25;
  transition: color var(--transition-fast);
}

.icon-item:hover {
  transform: translateY(-2px);
}

.icon-item:hover .icon-circle {
  background: rgba(132, 184, 25, 0.08);
  color: var(--brand-green);
  border-color: rgba(132, 184, 25, 0.2);
}

.icon-item:focus-visible .icon-circle {
  box-shadow: 0 0 0 2px rgba(132, 184, 25, 0.4);
}

.icon-item:hover .icon-label {
  color: var(--text-pure);
}

.icon-item.active .icon-circle {
  background: var(--brand-green);
  color: #ffffff;
  border-color: var(--brand-green);
  box-shadow: 0 4px 12px rgba(132, 184, 25, 0.25);
}

.icon-item.active .icon-label {
  color: var(--brand-green);
  font-weight: 800;
}

/* Split Layout (MercadoLibre style) */
.catalog-layout-split {
  display: flex;
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.catalog-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.catalog-main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Sidebar block styling */
.sidebar-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
}

.sidebar-block:last-child {
  border-bottom: none;
}

.sidebar-block-title {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-pure);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-link {
  font-family: var(--font-secondary);
  font-size: 0.83rem;
  color: var(--text-sub);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  display: inline-block;
}

.sidebar-link:hover {
  color: var(--brand-green);
  transform: translateX(3px);
}

.sidebar-link.active {
  color: var(--brand-green);
  font-weight: 700;
  transform: translateX(3px);
}

.sidebar-breadcrumb {
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.sidebar-breadcrumb:hover {
  color: var(--brand-green);
}

.sidebar-breadcrumb svg {
  width: 12px;
  height: 12px;
}

/* Sidebar filter select styling */
.sidebar-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-filter-label {
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sub);
}

.sidebar-filter-select {
  font-family: var(--font-secondary);
  font-size: 0.83rem;
  color: var(--text-pure);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  background: #ffffff;
  outline: none;
  transition: border-color var(--transition-fast);
  width: 100%;
}

.sidebar-filter-select:focus {
  border-color: var(--brand-green);
}

/* Responsive adjustment for split layout */
@media (max-width: 992px) {
  .catalog-layout-split {
    flex-direction: column;
    gap: 2rem;
    padding-top: 1rem;
  }
  .catalog-sidebar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 2rem;
  }
  .sidebar-block {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 576px) {
  .catalog-sidebar {
    grid-template-columns: 1fr;
  }
}
