/* EP Smart Product Cards – style */
:root{
  --ep-green:#2f9d44;
  --ep-green-600:#1f7a32;
  --ep-pill:#2f9d44;
  --ep-badge:#e53935;
  --ep-shadow:0 8px 22px rgba(16,24,40,.06),0 2px 10px rgba(16,24,40,.04);
}
.products .product.ep-card-wrap{ list-style:none; }
.ep-card{
  position:relative;
  background:#fff;
  border-radius:18px;
  padding:16px 16px 14px;
  box-shadow:var(--ep-shadow);
  height:100%;
  transition:transform .12s ease, box-shadow .12s ease;
}
.ep-card:hover{ transform:translateY(-2px); box-shadow:0 14px 30px rgba(16,24,40,.12),0 4px 14px rgba(16,24,40,.06); }
.ep-card__badge{
  position:absolute; top:-10px; left:-10px; background:var(--ep-badge); color:#fff; font-weight:700;
  padding:6px 12px; border-radius:30px; font-size:14px; box-shadow:0 6px 16px rgba(229,57,53,.35); z-index:3;
}
.ep-card__pill{
  position:absolute; top:10px; right:12px; font-size:12px; color:#1a1a1a; background:#f4f8ff; border:1px solid #cdd7ff;
  border-radius:999px; padding:4px 8px; z-index:3;
}
.ep-card__image{ display:block; width:100%; text-align:center; }
.ep-card__img{ width:100%; height:auto; object-fit:contain; max-height:120px; }
.ep-card__content{ display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.ep-card__title{ margin:0; font-size:16px; line-height:1.2; height:40px; overflow:hidden; }
.ep-card__title a{ color:#1a1a1a; text-decoration:none; }
.ep-card__price{ font-weight:700; font-size:16px; }
.ep-card__add{
  margin-top:6px; margin-left:auto; padding:10px 22px; border:2px solid var(--ep-green); color:var(--ep-green);
  border-radius:28px; background:#fff; font-weight:800; letter-spacing:.5px; text-transform:uppercase; cursor:pointer; transition:all .15s ease;
}
.ep-card__add:hover{ border-color:var(--ep-green-600); color:#fff; background:var(--ep-green); }

/* Bottom sheet */
.ep-sc-overlay{ position:fixed; inset:0; background:rgba(15,23,42,.55); z-index:99998; }
.ep-sc-sheet{
  position:fixed; left:0; right:0; bottom:0; background:#fff; border-top-left-radius:20px; border-top-right-radius:20px;
  box-shadow:0 -10px 35px rgba(0,0,0,.15); z-index:99999; transform:translateY(100%); transition:transform .25s ease; max-height:80vh;
}
.ep-sc-sheet.is-open{ transform:translateY(0); }
.ep-sc-sheet__header{ display:flex; align-items:center; justify-content:space-between; padding:18px 18px 8px; border-bottom:1px solid #f0f0f0; }
.ep-sc-sheet__title{ font-size:20px; margin:0; }
.ep-sc-sheet__close{ width:36px; height:36px; border-radius:999px; border:1px solid #e6e6e6; background:#fff; font-size:22px; line-height:1; cursor:pointer; }
.ep-sc-sheet__list{ padding:6px 8px 20px; overflow:auto; }
.ep-sc-row{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 10px; border-bottom:1px solid #f3f4f6; }
.ep-sc-row__info{ display:flex; align-items:center; gap:12px; }
.ep-sc-row__img{ width:42px; height:42px; object-fit:cover; border-radius:10px; background:#f6f7fb; }
.ep-sc-row__meta{ display:flex; flex-direction:column; }
.ep-sc-row__label{ font-weight:600; }
.ep-sc-row__price{ font-weight:800; }
.ep-sc-row__btn{
  margin-left:auto; padding:8px 18px; border:2px solid var(--ep-green); color:var(--ep-green); border-radius:24px; background:#fff; font-weight:800;
  text-transform:uppercase; cursor:pointer; transition:all .15s ease;
}
.ep-sc-row__btn:hover{ border-color:var(--ep-green-600); color:#fff; background:var(--ep-green); }

/* Failsafe: wipe theme loop UI so only our card shows */
.products li.product .woocommerce-LoopProduct-link, 
.products li.product .price,
.products li.product .button.add_to_cart_button { visibility:hidden !important; height:0 !important; margin:0 !important; padding:0 !important; }

@media (min-width:768px){
  .ep-card__img{ max-height:140px; }
  .ep-card__title{ height:44px; }
  .ep-sc-sheet{ left:50%; right:auto; transform:translate(0,100%); width:520px; margin-left:-260px; border-radius:20px; }
  .ep-sc-sheet.is-open{ transform:translate(0,0); }
}
