/**
 * Enhanced Product Archive Styling
 * 
 * File: wp-content/themes/eo-astra-child/assets/css/archive-products.css
 * Version: 1.0.0
 * Date: 2025-06-25
 * 
 * Modern styling for product category pages, brand pages, and shop archives
 * Features improved layout, hero sections, and better mobile experience
 */

/*==============================================================================
  CSS VARIABLES - ARCHIVE PAGES
==============================================================================*/
:root {
  /* Archive-specific variables */
  --archive-hero-bg: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  --archive-hero-overlay: rgba(26, 26, 26, 0.05);
  --archive-title-color: var(--accent-black, #1a1a1a);
  --archive-description-color: var(--text-secondary, #4a4a4a);
  --archive-stats-bg: rgba(255, 255, 255, 0.9);
  --archive-controls-bg: #fff;
  --archive-grid-gap: 30px;
  --archive-grid-gap-mobile: 20px;
}

/*==============================================================================
  ARCHIVE CONTAINER
==============================================================================*/
.eo-archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Mobile: Reduce container padding for more space */
@media (max-width: 768px) {
  .eo-archive-container {
    padding: 0 10px;
  }
}

/*==============================================================================
  ENHANCED ARCHIVE HEADER
==============================================================================*/
.eo-archive-header {
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.eo-archive-hero {
  background: var(--archive-hero-bg);
  position: relative;
  padding: 60px 40px;
  text-align: center;
}

.eo-archive-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--archive-hero-overlay);
  z-index: 1;
}

.eo-archive-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* Archive Breadcrumbs */
.eo-archive-breadcrumbs {
  margin-bottom: 20px;
}

.eo-archive-breadcrumbs .woocommerce-breadcrumb {
  font-size: 14px;
  color: var(--text-muted, #6b6b6b);
  text-align: center;
}

.eo-archive-breadcrumbs .woocommerce-breadcrumb a {
  color: var(--text-secondary, #4a4a4a);
  text-decoration: none;
  transition: color 0.3s ease;
}

.eo-archive-breadcrumbs .woocommerce-breadcrumb a:hover {
  color: var(--accent-black, #1a1a1a);
}

/* Archive Title */
.eo-archive-title {
  font-family: "Inter-Bold", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--archive-title-color);
  margin: 0 0 20px 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.eo-archive-type {
  background: var(--primary-color, #d7040f);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.6em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Archive Description */
.eo-archive-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--archive-description-color);
  margin: 0 0 30px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.eo-archive-description p {
  margin-bottom: 16px;
}

.eo-archive-description p:last-child {
  margin-bottom: 0;
}

/* Archive Stats */
.eo-archive-stats {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: var(--archive-stats-bg);
  padding: 12px 24px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.eo-product-count {
  font-family: "Inter-Bold", sans-serif;
  font-weight: 600;
  color: var(--accent-black, #1a1a1a);
  font-size: 1rem;
}

/*==============================================================================
  ARCHIVE CONTENT & CONTROLS
==============================================================================*/
.eo-archive-content {
  position: relative;
}

/* Archive Controls */
.eo-archive-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px 30px;
  background: var(--archive-controls-bg);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.eo-archive-controls-left,
.eo-archive-controls-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Result Count Styling */
.woocommerce-result-count {
  font-family: "Inter-Medium", sans-serif;
  font-size: 14px;
  color: var(--text-secondary, #4a4a4a);
  margin: 0;
}

/* Ordering Dropdown */
.woocommerce-ordering select {
  padding: 8px 16px;
  border: 1px solid var(--border-medium, #d0d0d0);
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: var(--text-primary, #1a1a1a);
  min-width: 200px;
  transition: all 0.3s ease;
}

.woocommerce-ordering select:focus {
  outline: none;
  border-color: var(--accent-black, #1a1a1a);
  box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1);
}

/*==============================================================================
  ENHANCED PRODUCT GRID
==============================================================================*/
.eo-products-grid {
  margin-bottom: 40px;
}

.eo-products-grid .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: var(--archive-grid-gap) !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Enhanced Product Cards for Archives */
.eo-products-grid .woocommerce ul.products li.product {
  background: #fff !important;
  border: 1px solid var(--border-light, #e8e8e8) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
}

.eo-products-grid .woocommerce ul.products li.product:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
  border-color: var(--accent-black, #1a1a1a) !important;
}

/* Product Image Enhancement */
.eo-products-grid .astra-shop-thumbnail-wrap {
  position: relative;
  overflow: hidden;
  background: #f9f9f9;
  border-radius: 0;
}

.eo-products-grid .astra-shop-thumbnail-wrap img {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
  transition: transform 0.4s ease !important;
}

.eo-products-grid li.product:hover .astra-shop-thumbnail-wrap img {
  transform: scale(1.08) !important;
}

/* Product Info Enhancement */
.eo-products-grid .astra-shop-summary-wrap {
  padding: 25px 20px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  justify-content: space-between !important;
}

.eo-products-grid .woocommerce-loop-product__title {
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--accent-black, #1a1a1a) !important;
  line-height: 1.3 !important;
  margin: 0 0 15px 0 !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.eo-products-grid .woocommerce-loop-product__title:hover {
  color: var(--primary-color, #d7040f) !important;
}

/* Enhanced Price Display */
.eo-products-grid .price {
  margin: 15px 0 20px 0 !important;
  font-family: "Inter-Bold", sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--price-color, #1a1a1a) !important;
}

/* Enhanced Add to Cart Button */
.eo-products-grid .button {
  margin: 0 !important;
  padding: 12px 24px !important;
  font-family: "Inter-Medium", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  background: transparent !important;
  color: var(--accent-black, #1a1a1a) !important;
  border: 2px solid var(--accent-black, #1a1a1a) !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  width: 100% !important;
  text-align: center !important;
}

.eo-products-grid .button:hover {
  background: var(--accent-black, #1a1a1a) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(26, 26, 26, 0.3) !important;
}

/*==============================================================================
  NO PRODUCTS FOUND
==============================================================================*/
.eo-no-products {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 40px 0;
}

.eo-no-products-content h2 {
  font-family: "Inter-Bold", sans-serif;
  font-size: 2rem;
  color: var(--accent-black, #1a1a1a);
  margin: 0 0 20px 0;
}

.eo-no-products-content p {
  font-size: 1.1rem;
  color: var(--text-secondary, #4a4a4a);
  line-height: 1.6;
  margin: 0 0 16px 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.eo-shop-button {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px !important;
  background: var(--primary-color, #d7040f) !important;
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
}

.eo-shop-button:hover {
  background: var(--accent-black, #1a1a1a) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/*==============================================================================
  PAGINATION ENHANCEMENT
==============================================================================*/
.woocommerce-pagination {
  margin-top: 50px;
  text-align: center;
}

.woocommerce-pagination .page-numbers {
  display: inline-block;
  padding: 12px 16px;
  margin: 0 4px;
  background: #fff;
  border: 1px solid var(--border-medium, #d0d0d0);
  border-radius: 8px;
  color: var(--text-primary, #1a1a1a);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 44px;
  text-align: center;
}

.woocommerce-pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers.current {
  background: var(--accent-black, #1a1a1a);
  color: white;
  border-color: var(--accent-black, #1a1a1a);
  transform: translateY(-1px);
}

.woocommerce-pagination .page-numbers.dots {
  background: transparent;
  border: none;
  cursor: default;
}

.woocommerce-pagination .page-numbers.dots:hover {
  background: transparent;
  transform: none;
}

/*==============================================================================
  MOBILE RESPONSIVE
==============================================================================*/
@media (max-width: 768px) {
  :root {
    --archive-grid-gap: var(--archive-grid-gap-mobile);
  }

  .eo-archive-container {
    padding: 0 15px;
  }

  /* Mobile Hero */
  .eo-archive-hero {
    padding: 40px 20px;
  }

  .eo-archive-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 12px;
  }

  .eo-archive-description {
    font-size: 1rem;
  }

  /* Mobile Controls */
  .eo-archive-controls {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    text-align: center;
  }

  .eo-archive-controls-left,
  .eo-archive-controls-right {
    width: 100%;
    justify-content: center;
  }

  .woocommerce-ordering select {
    width: 100%;
    min-width: auto;
  }

  /* Mobile Grid - Make cards wider by reducing minimum width */
  .eo-products-grid .woocommerce ul.products {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 15px !important;
  }

  /* Mobile Brand Sections - Reduce margins and padding */
  .eo-brand-section {
    margin: 20px 0 !important;
  }

  .eo-brand-section .eo-section-header {
    padding: 20px 15px 15px !important;
  }

  .eo-brand-header-content {
    flex-direction: column !important;
    text-align: center !important;
    gap: 20px !important;
  }

  .eo-brand-logo-container {
    width: 80px !important;
    height: 80px !important;
  }

  .eo-brand-placeholder-section {
    width: 80px !important;
    height: 80px !important;
  }

  .eo-brand-initial-section {
    font-size: 2rem !important;
  }

  .eo-brand-info-section {
    text-align: center !important;
  }

  .eo-brand-section .eo-section-title {
    font-size: 1.6rem !important;
  }

  .eo-brand-section .eo-section-description {
    font-size: 1rem !important;
  }

  .eo-brand-section .eo-products-grid {
    padding: 15px !important;
  }

  /* Mobile Brands Grid (Legacy) - Make cards wider */
  .eo-brands-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 15px !important;
  }

  .eo-brand-link {
    padding: 15px !important;
  }

  .eo-brand-image {
    height: 100px !important;
    margin-bottom: 15px !important;
  }

  .eo-brand-name {
    font-size: 1.2rem !important;
  }

  /* Mobile Product Cards - Reduce padding for more space */
  .eo-products-grid .astra-shop-summary-wrap {
    padding: 15px 12px !important;
  }

  .eo-products-grid .woocommerce-loop-product__title {
    font-size: 16px !important;
    min-height: 40px !important;
  }

  /* Mobile Strength Sections - Reduce margins */
  .eo-strength-section {
    margin: 20px 0 !important;
  }

  .eo-section-header {
    padding: 20px 15px 15px !important;
  }

  .eo-section-title {
    font-size: 1.4rem !important;
  }

  .eo-section-description {
    font-size: 1rem !important;
  }

  .eo-strength-section .eo-products-grid {
    padding: 15px !important;
  }

  .eo-products-grid .price {
    font-size: 18px !important;
  }

  /* Mobile No Products */
  .eo-no-products {
    padding: 60px 20px;
  }

  .eo-no-products-content h2 {
    font-size: 1.6rem;
  }

  .eo-no-products-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile - Even better space utilization */
  .eo-archive-container {
    padding: 0 8px;
  }
  
  .eo-archive-title {
    font-size: 1.6rem;
  }

  /* Allow 2 cards on very small screens for better space use */
  .eo-products-grid .woocommerce ul.products {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  /* Extra Small Mobile Brand Sections - Further reduce spacing */
  .eo-brand-section {
    margin: 15px 0 !important;
  }

  .eo-brand-section .eo-section-header {
    padding: 15px 10px 10px !important;
  }

  .eo-brand-header-content {
    gap: 15px !important;
  }

  .eo-brand-logo-container {
    width: 60px !important;
    height: 60px !important;
  }

  .eo-brand-placeholder-section {
    width: 60px !important;
    height: 60px !important;
  }

  .eo-brand-initial-section {
    font-size: 1.5rem !important;
  }

  .eo-brand-section .eo-section-title {
    font-size: 1.3rem !important;
  }

  .eo-brand-section .eo-section-description {
    font-size: 0.9rem !important;
  }

  .eo-brand-section .eo-products-grid {
    padding: 10px !important;
  }

  /* Extra Small Mobile Brands Grid (Legacy) - Allow 2 columns for better space use */
  .eo-brands-container {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .eo-brand-link {
    padding: 12px !important;
  }

  .eo-brand-image {
    height: 80px !important;
    margin-bottom: 12px !important;
  }

  .eo-brand-placeholder {
    width: 60px !important;
    height: 60px !important;
  }

  .eo-brand-initial {
    font-size: 1.5rem !important;
  }

  .eo-archive-hero {
    padding: 20px 10px;
  }

  .eo-archive-controls {
    padding: 12px;
  }

  /* Product cards - smaller padding for more space */
  .eo-products-grid .astra-shop-summary-wrap {
    padding: 12px 8px !important;
  }
  
  /* Mobile strength sections */
  .eo-strength-section {
    padding: 30px 20px;
    margin-bottom: 40px;
  }
  
  .eo-section-title {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 10px;
  }
  
  .eo-section-title::before,
  .eo-section-title::after {
    width: 40px;
    height: 2px;
  }
  
  .eo-section-description {
    font-size: 1rem;
  }
}

/*==============================================================================
  LOADING STATES & ANIMATIONS
==============================================================================*/
.eo-products-grid.loading {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
}

.eo-products-grid.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid var(--border-light, #e8e8e8);
  border-top-color: var(--primary-color, #d7040f);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fade-in animation for products */
.eo-products-grid .woocommerce ul.products li.product {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.eo-products-grid .woocommerce ul.products li.product:nth-child(1) { animation-delay: 0.1s; }
.eo-products-grid .woocommerce ul.products li.product:nth-child(2) { animation-delay: 0.2s; }
.eo-products-grid .woocommerce ul.products li.product:nth-child(3) { animation-delay: 0.3s; }
.eo-products-grid .woocommerce ul.products li.product:nth-child(4) { animation-delay: 0.4s; }
.eo-products-grid .woocommerce ul.products li.product:nth-child(5) { animation-delay: 0.5s; }
.eo-products-grid .woocommerce ul.products li.product:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Archive header animations */
.eo-archive-header {
  animation: slideInDown 0.8s ease-out;
}

/* Strength section animations */
.eo-strength-section {
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.eo-strength-section:nth-child(1) { animation-delay: 0.1s; }
.eo-strength-section:nth-child(2) { animation-delay: 0.3s; }
.eo-strength-section:nth-child(3) { animation-delay: 0.5s; }

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

/*==============================================================================
  STRENGTH SECTIONS
==============================================================================*/
.eo-strength-section {
  margin-bottom: 60px;
  padding: 40px 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light, #e8e8e8);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.eo-strength-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color, #d7040f) 0%, var(--accent-black, #1a1a1a) 100%);
}

.eo-strength-section[data-strength="low"]::before {
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.eo-strength-section[data-strength="medium"]::before {
  background: linear-gradient(90deg, #ffc107 0%, #fd7e14 100%);
}

.eo-strength-section[data-strength="high"]::before {
  background: linear-gradient(90deg, #dc3545 0%, #e83e8c 100%);
}

.eo-section-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--border-light, #e8e8e8);
}

.eo-section-title {
  font-family: "Inter-Bold", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-black, #1a1a1a);
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.eo-section-title::before,
.eo-section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--primary-color, #d7040f);
  border-radius: 2px;
}

.eo-strength-section[data-strength="low"] .eo-section-title::before,
.eo-strength-section[data-strength="low"] .eo-section-title::after {
  background: #28a745;
}

.eo-strength-section[data-strength="medium"] .eo-section-title::before,
.eo-strength-section[data-strength="medium"] .eo-section-title::after {
  background: #ffc107;
}

.eo-strength-section[data-strength="high"] .eo-section-title::before,
.eo-strength-section[data-strength="high"] .eo-section-title::after {
  background: #dc3545;
}

.eo-section-description {
  font-size: 1.2rem;
  color: var(--text-secondary, #4a4a4a);
  line-height: 1.6;
  margin: 0 0 20px 0;
  font-style: italic;
}

.eo-section-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light, #f8f9fa);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  color: var(--accent-black, #1a1a1a);
  font-size: 14px;
  border: 2px solid var(--border-medium, #d0d0d0);
}

.eo-section-count::before {
  content: "📊";
  font-size: 16px;
}

/* Strength-specific styling */
.eo-strength-low .eo-section-count {
  background: rgba(40, 167, 69, 0.1);
  border-color: #28a745;
  color: #155724;
}

.eo-strength-low .eo-section-count::before {
  content: "🌱";
}

.eo-strength-medium .eo-section-count {
  background: rgba(255, 193, 7, 0.1);
  border-color: #ffc107;
  color: #856404;
}

.eo-strength-medium .eo-section-count::before {
  content: "⚡";
}

.eo-strength-high .eo-section-count {
  background: rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
  color: #721c24;
}

.eo-strength-high .eo-section-count::before {
  content: "🔥";
}

/*==============================================================================
  ENHANCED CATEGORY FEATURES
==============================================================================*/
/* Category badge styling */
.eo-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  backdrop-filter: blur(10px);
}

.eo-category-badge .badge-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color, #d7040f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Subcategory navigation */
.eo-subcategory-nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.eo-subcategory-nav a {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border-light, #e8e8e8);
  border-radius: 20px;
  color: var(--text-secondary, #4a4a4a);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.eo-subcategory-nav a:hover,
.eo-subcategory-nav a.current {
  background: var(--accent-black, #1a1a1a);
  color: white;
  border-color: var(--accent-black, #1a1a1a);
  transform: translateY(-2px);
}

/*==============================================================================
  BRAND SECTIONS FOR MANUFACTURERS PAGE  
==============================================================================*/
.eo-brand-section {
  margin: 50px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.eo-brand-section .eo-section-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
  padding: 40px 30px 30px;
  border-bottom: 1px solid var(--border-light, #e8e8e8);
}

.eo-brand-header-content {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}

.eo-brand-logo-section {
  flex-shrink: 0;
}

.eo-brand-logo-container {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.eo-brand-section-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.eo-brand-placeholder-section {
  width: 120px;
  height: 120px;
  background: var(--primary-color, #d7040f);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.eo-brand-initial-section {
  font-family: "Inter-Bold", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}

.eo-brand-info-section {
  flex-grow: 1;
  text-align: left;
}

.eo-brand-section .eo-section-title {
  font-family: "Inter-Bold", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-black, #1a1a1a);
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.eo-brand-section .eo-section-description {
  font-size: 1.1rem;
  color: var(--text-secondary, #4a4a4a);
  line-height: 1.6;
  margin: 0;
}

.eo-brand-section .eo-section-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.eo-brand-section .eo-products-grid {
  padding: 30px;
}

.eo-brand-section .eo-products-grid .products {
  margin: 0;
}

/* Brand-specific styling variations */
.eo-brand-section:nth-child(even) .eo-section-header {
  background: linear-gradient(135deg, #fff7e6 0%, #fef8f0 100%);
}

.eo-brand-section:nth-child(3n) .eo-section-header {
  background: linear-gradient(135deg, #f0f8ff 0%, #f8fcff 100%);
}

/*==============================================================================
  BRANDS LISTING PAGE (LEGACY - Keep for card layout if needed)
==============================================================================*/
.eo-brands-grid {
  margin: 40px 0;
}

.eo-brands-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
}

.eo-brand-card {
  background: #fff;
  border: 1px solid var(--border-light, #e8e8e8);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.eo-brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color, #d7040f);
}

.eo-brand-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  padding: 30px;
  position: relative;
}

.eo-brand-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin-bottom: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.eo-brand-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.eo-brand-card:hover .eo-brand-logo {
  transform: scale(1.05);
}

.eo-brand-placeholder {
  width: 80px;
  height: 80px;
  background: var(--primary-color, #d7040f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eo-brand-initial {
  font-family: "Inter-Bold", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}

.eo-brand-info {
  flex-grow: 1;
  text-align: center;
}

.eo-brand-name {
  font-family: "Inter-Bold", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-black, #1a1a1a);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.eo-brand-count {
  display: inline-block;
  font-size: 14px;
  color: var(--text-secondary, #4a4a4a);
  background: rgba(215, 4, 15, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 500;
}

.eo-brand-description {
  font-size: 14px;
  color: var(--text-muted, #6b6b6b);
  line-height: 1.5;
  margin: 0;
}

.eo-brand-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--text-muted, #6b6b6b);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.eo-brand-card:hover .eo-brand-arrow {
  color: var(--primary-color, #d7040f);
  transform: translateX(3px);
  opacity: 1;
}

.eo-no-brands {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 40px 0;
}

.eo-no-brands-content h2 {
  font-family: "Inter-Bold", sans-serif;
  font-size: 2rem;
  color: var(--accent-black, #1a1a1a);
  margin: 0 0 20px 0;
}

.eo-no-brands-content p {
  font-size: 1.1rem;
  color: var(--text-secondary, #4a4a4a);
  line-height: 1.6;
  margin: 0 0 16px 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/*==============================================================================
  STRENGTH SECTIONS FOR EPHEDRA PILLS
==============================================================================*/
.eo-strength-section {
  margin: 50px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.eo-section-header {
  background: linear-gradient(135deg, var(--bg-light, #f8f9fa) 0%, var(--bg-medium, #f1f3f4) 100%);
  padding: 40px 30px 30px;
  border-bottom: 1px solid var(--border-light, #e8e8e8);
  text-align: center;
}

.eo-section-title {
  font-family: "Inter-Bold", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-black, #1a1a1a);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.eo-section-description {
  font-size: 1.1rem;
  color: var(--text-secondary, #4a4a4a);
  line-height: 1.6;
  margin: 0 0 20px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.eo-section-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.eo-section-count {
  font-size: 14px;
  color: var(--text-secondary, #4a4a4a);
  background: rgba(215, 4, 15, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 500;
}

.eo-sales-badge {
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.eo-view-all {
  font-size: 14px;
  color: var(--primary-color, #d7040f);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 16px;
  border: 1px solid var(--primary-color, #d7040f);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.eo-view-all:hover {
  background: var(--primary-color, #d7040f);
  color: white;
  transform: translateY(-1px);
}

/* Strength-specific section styling */
.eo-strength-section[data-strength="low"] .eo-section-header {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
}

.eo-strength-section[data-strength="medium"] .eo-section-header {
  background: linear-gradient(135deg, #fff4e6 0%, #fef8f0 100%);
}

.eo-strength-section[data-strength="high"] .eo-section-header {
  background: linear-gradient(135deg, #ffeaea 0%, #fff5f5 100%);
}

.eo-strength-section .eo-products-grid {
  padding: 30px;
}

.eo-strength-section .eo-products-grid .products {
  margin: 0;
}

/*==============================================================================
  BRAND PAGE ENHANCEMENTS
==============================================================================*/
.eo-brand-page .eo-archive-hero {
  background: linear-gradient(135deg, var(--bg-light, #f8f9fa) 0%, var(--bg-medium, #f1f3f4) 100%);
}

.eo-brand-page .eo-archive-type {
  background: var(--accent-black, #1a1a1a);
}

.eo-brand-page .eo-archive-stats {
  background: rgba(26, 26, 26, 0.9);
  color: white;
}

.eo-brand-page .eo-product-count {
  color: white;
}

/* Brand logo integration */
.eo-brand-logo {
  max-width: 120px;
  max-height: 60px;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/*==============================================================================
  ACCESSIBILITY & PERFORMANCE
==============================================================================*/
/* Focus states */
.eo-products-grid .button:focus,
.eo-shop-button:focus,
.woocommerce-pagination .page-numbers:focus {
  outline: 2px solid var(--primary-color, #d7040f);
  outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
  .eo-archive-hero {
    background: #fff;
  }
  
  .eo-archive-title,
  .eo-products-grid .woocommerce-loop-product__title {
    color: #000 !important;
  }
  
  .eo-products-grid .button {
    border-color: #000 !important;
    color: #000 !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .eo-products-grid .woocommerce ul.products li.product,
  .eo-products-grid .astra-shop-thumbnail-wrap img,
  .eo-products-grid .button,
  .eo-shop-button,
  .woocommerce-pagination .page-numbers {
    transition: none !important;
    transform: none !important;
  }
}