/* ============================================================
   Eunidrip Shop — Modern E-commerce Styles
   Topbar, shop landing (hero / categories / trust / deals /
   promo), modern product cards, category chips.
   Loaded after main.css; consumes the same CSS variables so
   every Customizer brand-color change applies here too.
   ============================================================ */

/* ══════════════════════════════════════════════
   ANNOUNCEMENT TOPBAR
══════════════════════════════════════════════ */
:root { --ei-topbar-h: 0px; }
body.ei-has-topbar {
  --ei-topbar-h: 38px;
  --ei-hdr-h: calc(var(--ei-logo-h) + 24px + var(--ei-topbar-h));
}
@media (max-width: 768px) {
  body.ei-has-topbar { --ei-hdr-h: calc(64px + var(--ei-topbar-h)); }
}

.ei-topbar {
  height: var(--ei-topbar-h);
  background: var(--ei-dark);
  color: rgba(255, 255, 255, .92);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 500;
}
.ei-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}
.ei-topbar-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ei-topbar-text svg { color: var(--ei-accent); flex-shrink: 0; }
.ei-topbar-link {
  color: var(--ei-accent);
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.ei-topbar-link:hover { border-bottom-color: var(--ei-accent); }
.ei-topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: rgba(255,255,255,.85);
  margin-left: auto;
}
.ei-topbar-phone:hover { color: var(--ei-accent); }
@media (max-width: 640px) {
  .ei-topbar-phone { display: none; }
  .ei-topbar-inner { justify-content: flex-start; }
}

/* Header sits below the topbar inside the fixed block */
.ei-header .ei-header-inner { height: calc(100% - var(--ei-topbar-h, 0px)); }

/* ══════════════════════════════════════════════
   SHOP LANDING — SHARED SECTION PIECES
══════════════════════════════════════════════ */
.ei-shop-landing { padding-top: var(--ei-hdr-h); }

.ei-shop-sec-head { margin-bottom: 28px; }
.ei-shop-sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ei-shop-sec-title {
  font-size: clamp(22px, 3vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ei-shop-sec-sub {
  color: var(--ei-muted);
  margin-top: 6px;
  font-size: 15px;
  max-width: 560px;
}
.ei-shop-sec-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ei-primary);
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: gap .2s var(--ei-ease), color .2s;
}
.ei-shop-sec-link:hover { gap: 10px; color: var(--ei-secondary); }

/* ══════════════════════════════════════════════
   SHOP HERO
══════════════════════════════════════════════ */
.ei-shop-hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--ei-pale) 0%, transparent 60%),
    linear-gradient(180deg, var(--ei-bg) 0%, var(--ei-white) 100%);
  border-bottom: 1px solid var(--ei-border);
  overflow: hidden;
}
.ei-shop-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 64px;
}
.ei-shop-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ei-pale);
  color: var(--ei-secondary);
  border: 1px solid var(--ei-border);
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.ei-shop-hero-title {
  font-size: clamp(30px, 4.6vw, 52px);
  margin-bottom: 16px;
}
.ei-shop-hero-accent {
  display: block;
  color: var(--ei-primary);
}
.ei-shop-hero-sub {
  font-size: 16.5px;
  color: var(--ei-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 26px;
}
.ei-shop-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.ei-shop-hero-usps {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.ei-shop-hero-usps li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ei-muted);
}
.ei-shop-hero-usps li svg { color: var(--ei-primary); flex-shrink: 0; }

.ei-shop-hero-media { position: relative; }
.ei-shop-hero-imgwrap {
  border-radius: calc(var(--ei-radius) + 8px);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(17, 35, 11, .35);
}
.ei-shop-hero-imgwrap img {
  width: 100%;
  height: auto;
  display: block;
}
.ei-shop-hero-card {
  position: absolute;
  left: -18px;
  bottom: 26px;
  background: var(--ei-white);
  border-radius: var(--ei-radius);
  box-shadow: 0 16px 40px rgba(17, 35, 11, .18);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--ei-accent);
}
.ei-shop-hero-card-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 19px;
  color: var(--ei-primary);
}
.ei-shop-hero-card-label {
  font-size: 12px;
  color: var(--ei-muted);
  font-weight: 600;
}

@media (max-width: 900px) {
  .ei-shop-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 36px;
    padding-bottom: 44px;
  }
  .ei-shop-hero-card { left: 12px; bottom: 12px; }
}

/* ══════════════════════════════════════════════
   TRUST STRIP
══════════════════════════════════════════════ */
.ei-shop-trust {
  background: var(--ei-white);
  border-bottom: 1px solid var(--ei-border);
  padding: 22px 0;
}
.ei-shop-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ei-shop-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ei-shop-trust-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ei-pale);
  color: var(--ei-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ei-shop-trust-item strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--ei-dark);
}
.ei-shop-trust-item span {
  display: block;
  font-size: 12px;
  color: var(--ei-muted);
  line-height: 1.45;
}
@media (max-width: 900px) {
  .ei-shop-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .ei-shop-trust-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ══════════════════════════════════════════════
   CATEGORY GRID
══════════════════════════════════════════════ */
.ei-shop-cats { padding: 56px 0 24px; }
.ei-shop-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ei-shop-cat-card {
  background: var(--ei-white);
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius);
  padding: 18px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform .25s var(--ei-ease), box-shadow .25s var(--ei-ease), border-color .25s;
}
.ei-shop-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -14px rgba(17, 35, 11, .22);
  border-color: var(--ei-primary);
}
.ei-shop-cat-imgwrap {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ei-pale);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ei-shop-cat-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ei-ease);
}
.ei-shop-cat-card:hover .ei-shop-cat-imgwrap img { transform: scale(1.08); }
.ei-shop-cat-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ei-dark);
  line-height: 1.3;
}
.ei-shop-cat-count {
  font-size: 12px;
  color: var(--ei-muted);
  font-weight: 600;
}
@media (max-width: 900px) {
  .ei-shop-cats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .ei-shop-cats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ei-shop-cat-imgwrap { width: 72px; height: 72px; }
}

/* ══════════════════════════════════════════════
   HOT DEALS
══════════════════════════════════════════════ */
.ei-shop-deals {
  padding: 40px 0 56px;
  background:
    linear-gradient(180deg, var(--ei-bg2) 0%, var(--ei-white) 100%);
  border-block: 1px solid var(--ei-border);
  margin-top: 32px;
}
.ei-shop-deals-flame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ei-dark);
  color: var(--ei-accent);
}
.ei-shop-deals .woocommerce-result-count,
.ei-shop-deals .woocommerce-ordering { display: none; }

/* ══════════════════════════════════════════════
   CATALOG SECTION
══════════════════════════════════════════════ */
.ei-shop-catalog { padding: 56px 0 24px; }

/* ══════════════════════════════════════════════
   PROMO BANNER
══════════════════════════════════════════════ */
.ei-shop-promo { padding: 40px 0 72px; }
.ei-shop-promo-card {
  border-radius: calc(var(--ei-radius) + 8px);
  background-size: cover;
  background-position: center;
  padding: clamp(32px, 6vw, 64px);
  color: var(--ei-white);
  max-width: 100%;
  overflow: hidden;
}
.ei-shop-promo-card h2 {
  color: var(--ei-white);
  font-size: clamp(24px, 3.4vw, 38px);
  max-width: 560px;
  margin: 10px 0 14px;
}
.ei-shop-promo-card p {
  color: rgba(255, 255, 255, .82);
  max-width: 520px;
  margin-bottom: 24px;
  font-size: 15.5px;
  line-height: 1.7;
}
.ei-shop-promo-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   CATEGORY PAGE CHIPS
══════════════════════════════════════════════ */
.ei-shop-cat-section { padding-top: 40px; }
.ei-shop-cat-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.ei-shop-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--ei-border);
  background: var(--ei-white);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ei-text);
  transition: all .2s var(--ei-ease);
}
.ei-shop-chip:hover {
  border-color: var(--ei-primary);
  color: var(--ei-primary);
  background: var(--ei-pale);
}
.ei-shop-chip.is-active {
  background: var(--ei-primary);
  border-color: var(--ei-primary);
  color: var(--ei-white);
}

/* ══════════════════════════════════════════════
   MODERN PRODUCT CARDS (upgrades over main.css)
══════════════════════════════════════════════ */
/* WooCommerce core adds clearfix ::before/::after to ul.products;
   in a CSS-grid layout they become phantom grid items that steal
   the first cell and leave a gap in row one — remove them. */
ul.products::before,
ul.products::after {
  display: none !important;
  content: none !important;
}
ul.products li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ei-border);
  transition: transform .25s var(--ei-ease), box-shadow .25s var(--ei-ease), border-color .25s;
}
ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -16px rgba(17, 35, 11, .22);
  border-color: rgba(54, 126, 14, .35);
}
.ei-card-cat {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ei-primary);
  padding: 12px 16px 0;
}
ul.products li.product .ei-custom-rating-wrap { padding: 0 16px; }
ul.products li.product .button { margin-top: auto; }

/* Sale badge — bolder, pill-shaped */
ul.products li.product .onsale {
  background: #e11d48 !important;
  color: #fff !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 12px;
  min-height: 0;
  min-width: 0;
  line-height: 1.6;
  top: 12px;
  left: 12px;
  right: auto;
  position: absolute;
  z-index: 3;
  box-shadow: 0 6px 16px rgba(225, 29, 72, .4);
}

/* Pagination — modern pills */
.woocommerce nav.woocommerce-pagination { text-align: center; margin-top: 40px; }
.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex;
  gap: 8px;
  border: none;
  margin: 0;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: none;
  overflow: visible;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1.5px solid var(--ei-border);
  background: var(--ei-white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ei-text);
  transition: all .2s var(--ei-ease);
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
  border-color: var(--ei-primary);
  color: var(--ei-primary);
  background: var(--ei-pale);
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--ei-primary);
  border-color: var(--ei-primary);
  color: var(--ei-white);
}

/* Result count + ordering toolbar */
.ei-woocommerce-wrapper .woocommerce-result-count {
  font-size: 13.5px;
  color: var(--ei-muted);
  font-weight: 600;
}

/* Deals grid: hide add-to-cart notices duplication inside shortcode wrapper */
.ei-shop-deals-grid .woocommerce > .woocommerce-info { display: none; }
