/* ========================================
   ESHOP — HELPCALL (WooCommerce)
   ======================================== */

/* ===== HERO ===== */
.es-hero {
  padding: clamp(6rem, 10vw, 8rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--primary-darkest) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  color: var(--white);
}

.es-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.es-hero-content .eyebrow {
  color: var(--primary-lighter);
}

.es-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0.5rem 0 0.75rem;
}

.es-hero-content h1 em {
  color: var(--primary-lightest);
  font-style: normal;
}

.es-hero-content > p {
  font-size: 0.95rem;
  opacity: 0.85;
  max-width: 560px;
  line-height: 1.7;
}

.es-hero-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  max-width: 520px;
  transition: all var(--duration) var(--ease);
}

.es-hero-search:focus-within {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.es-hero-search > i {
  font-size: 1.2rem;
  opacity: 0.6;
}

.es-hero-search form {
  flex: 1;
  display: flex;
}

.es-hero-search input {
  flex: 1;
  background: none;
  border: none;
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}

.es-hero-search input::placeholder {
  color: rgba(255,255,255,0.5);
}

.es-hero-stats {
  display: flex;
  gap: 2.5rem;
}

.es-hero-stat {
  text-align: center;
}

.es-hero-stat span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-lightest);
}

.es-hero-stat small {
  font-size: 0.78rem;
  opacity: 0.7;
}

/* ===== CATEGORIES ===== */
.es-categories {
  padding: 2rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.es-cat-grid {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.es-cat-grid::-webkit-scrollbar { display: none; }

.es-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  min-width: 90px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  text-align: center;
}

.es-cat-card:hover {
  border-color: var(--primary-pale);
  color: var(--primary);
  transform: translateY(-2px);
}

.es-cat-card.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.es-cat-icon {
  font-size: 1.4rem;
}

.es-cat-card.active .es-cat-icon {
  color: var(--white);
}

/* ===== SHOP LAYOUT ===== */
.es-shop {
  padding: 2rem 0 4rem;
}

.es-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ===== FILTER SIDEBAR ===== */
.es-filter {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}

.es-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.es-filter-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.es-filter-close-mobile {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
}

.es-filter-group {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--bg-alt);
}

.es-filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.es-filter-group h4,
.es-filter .widget-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.es-checkbox-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color var(--duration) var(--ease);
}

.es-checkbox-link:hover,
.es-checkbox-link.active { color: var(--primary); font-weight: 600; }

.es-checkbox-link span {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* WC Widget overrides in filter */
.es-filter .widget {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--bg-alt);
}

.es-filter .widget:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.es-filter .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.es-filter .widget ul li {
  padding: 0.3rem 0;
}

.es-filter .widget ul li a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.es-filter .widget ul li a:hover { color: var(--primary); }

.es-filter .widget ul li .count {
  font-size: 0.72rem;
  color: var(--text-light);
}

.es-filter-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}

/* ===== PRODUCT TOOLBAR ===== */
.es-products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.es-products-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.es-products-count span {
  font-weight: 700;
  color: var(--text);
}

.es-products-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.es-products-sort .woocommerce-ordering select {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 0.82rem;
  background: var(--white);
  cursor: pointer;
}

/* ===== PRODUCT GRID ===== */
.es-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ===== PRODUCT CARD ===== */
.es-product-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  list-style: none;
}

.es-product-card:hover {
  border-color: var(--primary-pale);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.es-product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.es-product-card-img {
  position: relative;
  height: 265px;
  overflow: hidden;
  background: var(--bg-alt);
}

.es-product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.es-product-card:hover .es-product-card-img img {
  transform: scale(1.05);
}

.es-product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--white);
  z-index: 2;
}

.es-product-badge.sale {
  background: #f39c12;
}

.es-product-card-body {
  padding: 1rem 1.1rem 1.25rem;
}

.es-product-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.es-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.es-product-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.es-product-price del {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}

.es-product-price ins {
  text-decoration: none;
}

.es-product-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

.es-product-rating .stars {
  display: flex;
  gap: 1px;
  color: #f59e0b;
  font-size: 0.8rem;
}

.es-product-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.5rem;
}

.es-product-stock.out {
  color: #e74c3c;
}

/* ===== NO PRODUCTS ===== */
.es-no-products {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.es-no-products i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.es-no-products p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===== PAGINATION ===== */
.es-pagination {
  margin-top: 2rem;
}

.es-pagination .woocommerce-pagination {
  display: flex;
  justify-content: center;
}

.es-pagination .woocommerce-pagination ul {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.es-pagination .woocommerce-pagination ul li a,
.es-pagination .woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}

.es-pagination .woocommerce-pagination ul li a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.es-pagination .woocommerce-pagination ul li span.current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .es-shop-layout {
    grid-template-columns: 1fr;
  }

  .es-filter {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    z-index: 1100;
    border-radius: 0;
    overflow-y: auto;
  }

  .es-filter.active {
    display: block;
  }

  .es-filter-toggle {
    display: flex;
  }

  .es-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .es-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .es-product-card-img {
    height: 180px;
  }

  .es-product-card-body {
    padding: 0.75rem;
  }

  .es-product-name {
    font-size: 0.8rem;
  }

  .es-hero-stats {
    gap: 1.5rem;
  }
}
