/* ==========================================================================
   CARDS & PRODUCT GRID
   ========================================================================== */
.ep-section-title {
  max-width: 1280px;
  margin: 40px auto 12px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ep-section-title h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--ep-text);
}

.ep-link-inline {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ep-primary);
  text-decoration: none;
  letter-spacing: .5px;
}

.ep-link-inline:hover {
  text-decoration: underline;
}

.ep-product-grid {
  max-width: 100%;
  margin: 0;
  padding: 0 0 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  overflow-x: hidden;
}

.ep-product-card {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: .2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  color: var(--ep-text);
  text-decoration: none;
  min-width: 0;
}

.ep-product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(var(--ep-primary-rgb), .08), transparent 70%);
  opacity: 0;
  transition: .3s;
}

.ep-product-card:hover::before {
  opacity: 1;
}

.ep-product-card:hover {
  border-color: var(--ep-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  transform: translateY(-2px);
}

.ep-product-card h3 {
  font-size: .88rem;
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ep-text);
  word-break: break-word;
  overflow-wrap: break-word;
}

.ep-product-card .ep-sku {
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
  color: var(--ep-text-soft);
  word-break: break-all;
}

.ep-price {
  font-weight: 600;
  color: var(--ep-primary);
  font-size: 1rem;
}

.ep-add-btn {
  margin-top: auto;
  background: var(--ep-gradient-primary);
  border: none;
  color: #fff;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.ep-add-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

/* Product card variants */
.ep-product-card[data-variant='compact'] {
  padding: 10px 12px;
}

.ep-product-card figure {
  margin: 0;
  background: var(--ep-primary-soft);
  border: 1px solid #adc5e5;
  border-radius: 12px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ep-product-card figure img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ep-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.ep-badges span {
  background: #eef4fa;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--ep-text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.ep-home-category {
  min-height: 180px;
  gap: 14px;
  text-decoration: none;
}

.ep-home-category figure {
  margin: 0;
  background: var(--ep-primary-soft);
  border: 1px solid rgba(var(--ep-primary-rgb), .25);
  border-radius: 14px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ep-home-category__cta {
  font-size: .72rem;
  font-weight: 600;
  color: var(--ep-primary);
  margin-top: auto;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ep-home-category:hover .ep-home-category__cta {
  color: var(--ep-primary-accent);
}

/* Card Media / Clickable */
.ep-card-clickable {
  cursor: pointer;
}

.ep-card-clickable [data-card-ignore] {
  cursor: default;
}

.ep-card-media {
  background: white;
  border: 1px solid rgba(var(--ep-primary-rgb), .25);
  border-radius: 14px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ep-card-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: .3s;
}

.ep-card-media__placeholder {
  opacity: .65;
  filter: saturate(.2);
}

/* Brand logo fallback - centered with nice background */
.ep-card-media__brand {
  width: 100%;
  height: 100%;
  padding: 20%;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.ep-card-media__brand img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: .85;
}

.ep-card-clickable:hover .ep-card-media img {
  transform: scale(1.1);
}

.ep-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.ep-card-meta h3 {
  font-size: .9rem;
  margin: 0;
  color: var(--ep-text);
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
  word-break: break-word;
}

.ep-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  cursor: default;
  min-width: 0;
  flex-wrap: wrap;
}

.ep-card-actions form {
  margin: 0;
}

.ep-price-hint {
  font-size: .68rem;
  color: var(--ep-text-soft);
}

/* Show More Button */
.ep-show-more-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 0 16px;
}

.ep-show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--ep-gradient-primary);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  transition: .25s ease;
  box-shadow: 0 6px 16px rgba(var(--ep-primary-rgb), .25);
}

.ep-show-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--ep-primary-rgb), .35);
  filter: brightness(1.08);
}

.ep-show-more-btn:active {
  transform: translateY(0);
}

.ep-show-more-btn svg {
  transition: .25s ease;
}

.ep-show-more-btn:hover svg {
  transform: rotate(90deg);
}

/* Fade-in animation */
@keyframes epFadeIn{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* Responsive Grid */
@media (min-width: 1400px) {
  .ep-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

@media (max-width: 1200px) {
  .ep-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (max-width: 900px) {
  .ep-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .ep-stats-section{
    padding:0 24px;
  }
  .ep-stats-row{
    gap:16px;
  }
  .ep-stat-card{
    flex:1 1 calc(50% - 16px);
  }
  .ep-benefit-card{
    padding:22px 24px;
    gap:16px;
  }
  .ep-trust-inner{
    padding:0 24px;
  }
}

@media (max-width: 720px) {
  .ep-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .ep-product-card {
    padding: 12px !important;
    border-radius: 14px !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .ep-product-card .ep-card-media {
    height: 120px;
  }

  .ep-product-card .ep-card-media img {
    object-fit: contain;
  }

  .ep-product-card h3 {
    font-size: .78rem;
  }

  .ep-product-card .ep-sku {
    font-size: .52rem;
    word-break: break-all;
  }

  .ep-product-card .ep-price {
    font-size: .9rem;
  }

  .ep-product-card .ep-add-btn {
    padding: 8px 10px;
    font-size: .65rem;
  }

  .ep-benefits-header h2{
    font-size:1.6rem;
  }
  .ep-benefits-grid{
    grid-template-columns:1fr;
  }
  .ep-benefit-card{
    flex-direction:row;
  }
  .ep-trust-metrics{
    gap:20px;
  }
  .ep-trust-metric{
    min-width:150px;
  }
  .ep-active-filters{
    gap:6px;
  }
}

@media (max-width: 560px) {
  .ep-stats-section{
    padding:0 20px;
  }
  .ep-stats-row{
    flex-direction:column;
  }
  .ep-stat-card{
    min-width:100%;
  }
  .ep-trust-grid{
    gap:12px;
  }
  .ep-trust-bubble{
    font-size:.7rem;
    padding:10px 18px;
  }
}

/* Card clickable focus styles */
.ep-card-clickable[role="link"]{cursor:pointer}
.ep-card-clickable:focus{outline:2px solid var(--ep-primary-soft);outline-offset:2px}
