/* V17 storefront polish: header, sliders, product cards */
body.eps-theme {
  background: #f7f9fc;
}

.eps-commerce-topbar,
.eps-top-features {
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
}

.eps-commerce-topbar-inner,
.eps-top-features-inner {
  color: #64748b;
  font-size: 12px;
}

.eps-header {
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid #edf2f7;
  box-shadow: 0 10px 30px rgba(15,23,42,.05);
}

.eps-header-inner {
  min-height: 74px !important;
  padding: 8px 0 !important;
  grid-template-columns: minmax(210px, 300px) minmax(320px, 520px) auto !important;
}

.eps-header.is-compact .eps-header-inner {
  min-height: 58px !important;
}

.eps-logo {
  height: 58px !important;
  width: min(300px, var(--eps-logo-width, 300px)) !important;
  justify-content: flex-start !important;
}

.eps-logo img,
.eps-logo .custom-logo {
  max-height: 54px !important;
  object-fit: contain !important;
}

.eps-search form {
  height: 42px !important;
  border-radius: 999px !important;
  border-color: #d8e2ee !important;
  box-shadow: 0 8px 20px rgba(13,43,92,.04), inset 0 1px 0 rgba(255,255,255,.9);
}

.eps-search input[type=search] {
  height: 40px !important;
  font-size: 13px;
}

.eps-search button {
  width: 36px !important;
  height: 36px !important;
  margin: 3px !important;
  border-radius: 50% !important;
}

.eps-header-actions {
  gap: 10px !important;
}

.eps-action {
  min-width: 62px;
  min-height: 42px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px !important;
  border-radius: 14px !important;
  background: #f8fafc;
  border: 1px solid #e7edf5;
  color: var(--eps-primary);
}

.eps-wa {
  background: #f2fff7 !important;
  border-color: #98f0bd !important;
  color: #129447 !important;
}

.eps-cart {
  background: var(--eps-primary) !important;
  color: #fff !important;
}

.eps-cart span {
  width: 22px;
  height: 22px;
  background: var(--eps-accent);
}

.eps-nav {
  padding: 6px 0 0;
  background: #fff;
}

.eps-nav .eps-container {
  min-height: 46px !important;
  border-radius: 10px !important;
  background: var(--eps-primary);
}

.eps-nav ul {
  min-height: 46px !important;
  justify-content: center;
  gap: 2px !important;
}

.eps-nav a {
  min-height: 46px !important;
  padding: 0 18px !important;
  border-radius: 8px;
  font-size: 14px;
}

.eps-header-cats {
  background: #fff;
  border-bottom: 1px solid #e7edf5;
  padding: 8px 0;
}

.eps-header-cats .eps-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 !important;
}

.eps-header-cats a {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 13px !important;
  border: 1px solid #dfe8f3;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--eps-primary);
  font-size: 12px !important;
  font-weight: 900;
}

.eps-home-slider,
.eps-hero-grid {
  border-radius: 10px !important;
  border: 1px solid #e7edf5;
  box-shadow: 0 16px 42px rgba(13,43,92,.08);
}

.eps-home-slider {
  margin-top: 14px;
}

.eps-home-slide {
  min-height: 330px;
  padding: 28px 40px;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  background: radial-gradient(circle at 12% 20%, rgba(212,160,23,.12), transparent 32%), linear-gradient(135deg, #fff 0%, #f7fbff 100%);
}

.eps-home-slide img {
  height: 270px;
  border-radius: 10px;
  background: transparent;
}

.eps-home-slide h2 {
  font-size: clamp(30px, 3.6vw, 48px);
}

.eps-home-slider-prev,
.eps-home-slider-next {
  width: 34px;
  height: 34px;
  background: #fff;
  color: var(--eps-primary);
  box-shadow: 0 10px 24px rgba(13,43,92,.18);
}

.eps-service-icons {
  margin-top: 12px;
}

.eps-service-icons > div {
  border-radius: 8px;
  min-height: 76px;
  box-shadow: 0 8px 24px rgba(13,43,92,.04);
}

.eps-section {
  padding: 24px 0;
}

.eps-section-head {
  margin-bottom: 14px;
}

.eps-section-head h2 {
  font-size: 22px;
  position: relative;
}

.eps-section-head h2:after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--eps-accent);
}

.woocommerce ul.products {
  gap: 16px !important;
}

.woocommerce ul.products li.product {
  min-height: 0 !important;
  padding: 10px !important;
  border-radius: 10px !important;
  border-color: #e7edf5;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(13,43,92,.06);
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(13,43,92,.12);
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  gap: 7px;
}

.woocommerce ul.products li.product img,
.woocommerce ul.products li.product a img {
  height: 205px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  padding: 8px;
  border-radius: 8px !important;
  background: #f6f8fb;
}

.woocommerce-loop-product__title {
  min-height: 44px !important;
  margin: 6px 0 0 !important;
  color: var(--eps-primary);
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.woocommerce ul.products li.product .price {
  margin: 0 !important;
  color: var(--eps-accent) !important;
  font-size: 13px !important;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  width: 100%;
  min-height: 34px;
  margin-top: 8px !important;
  padding: 7px 10px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
}

.eps-customize-btn,
.eps-card-whatsapp {
  min-height: 34px;
  margin-top: 7px;
  padding: 7px 10px !important;
  border-radius: 7px !important;
  font-size: 12px;
}

.eps-customize-btn {
  background: #fff;
}

.eps-badge {
  top: 10px;
  right: 10px;
  border-radius: 8px;
}

.eps-flex-banner,
.eps-promo {
  border-radius: 10px !important;
}

.eps-footer {
  margin-top: 34px;
}

@media (max-width: 980px) {
  .eps-header-inner {
    grid-template-columns: 1fr !important;
  }

  .eps-logo {
    justify-self: center;
  }

  .eps-header-actions {
    justify-content: center !important;
  }

  .eps-home-slide {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .eps-home-slide img {
    height: 220px;
  }

  .woocommerce ul.products li.product img,
  .woocommerce ul.products li.product a img {
    height: 180px !important;
  }
}

@media (max-width: 560px) {
  .eps-nav .eps-container {
    border-radius: 0 !important;
  }

  .eps-home-slide {
    min-height: 0;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .woocommerce ul.products li.product img,
  .woocommerce ul.products li.product a img {
    height: 150px !important;
  }
}
