/* ═══════════════════════════════════════════════════════════════════════
   toko-ecommerce.css — E-Commerce Template for Toko.ma
   Style: Vibrant & Block-Based  |  Palette: #7C3AED purple + #16A34A green
   Loaded conditionally when ACTIVE_THEME === 'ecommerce'
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Theme Variables ─────────────────────────────────────────────────── */
html[data-theme="ecommerce"] {
  --primary-color:  #7C3AED;
  --primary-hover:  #6D28D9;
  --primary-light:  #EDE9FE;
  --primary-mid:    #A78BFA;
  --accent-color:   #16A34A;
  --accent-hover:   #15803D;
  --danger-color:   #DC2626;
  --badge-bg:       #DC2626;
  --bg-body:        #F3F4F6;
  --bg-white:       #FFFFFF;
  --bg-light:       #F9FAFB;
  --text-dark:      #111827;
  --text-gray:      #374151;
  --text-light:     #6B7280;
  --border-color:   #E5E7EB;
  --border-mid:     #D1D5DB;
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --radius-xl:      16px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:      0 8px 24px rgba(0,0,0,0.12);
  --font-primary:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-secondary: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html[data-theme="ecommerce"] body,
html[data-theme="ecommerce"] button,
html[data-theme="ecommerce"] input {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
html[data-theme="ecommerce"] body { background: var(--bg-body); }

/* ── Announcement Bar ───────────────────────────────────────────────── */
.ec-announce-bar {
  background: var(--primary-color, #7C3AED);
  color: #fff;
  padding: 9px 48px 9px 16px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 200;
  letter-spacing: .01em;
}
.ec-announce-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ec-announce-sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.35);
  flex-shrink: 0;
}
.ec-announce-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.ec-announce-close:hover { color: #fff; background: rgba(255,255,255,.15); }
@media (max-width: 620px) {
  .ec-announce-bar { display: none; }
}

/* ── Promotional Carousel ───────────────────────────────────────────── */
.ec-slideshow {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  user-select: none;
  background: #fff;
  border-bottom: 1px solid var(--border-color, #E5E7EB);
}
@media (max-width: 768px) { .ec-slideshow { height: 380px; } }
@media (max-width: 480px) { .ec-slideshow { height: 320px; } }

.ec-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
  background: #fff;
}
.ec-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Two-column layout: text left, image right — kept on all screen sizes */
.ec-slide-inner {
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 52px;
  gap: 28px;
}
@media (max-width: 960px) {
  .ec-slide-inner { grid-template-columns: 1fr 200px; padding: 28px 28px; gap: 16px; }
}
@media (max-width: 540px) {
  .ec-slide-inner { grid-template-columns: 1fr 145px; padding: 20px 16px 50px; gap: 10px; }
}

/* "PROMO" capsule tag */
.ec-slide-promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--primary-light, #EDE9FE);
  border: 1px solid var(--primary-mid, #A78BFA);
  color: var(--primary-color, #7C3AED);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.ec-slide-promo-tag svg { width: 11px; height: 11px; }

/* Category label */
.ec-slide-category-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-color, #7C3AED);
  margin-bottom: 7px;
}

/* Product name */
.ec-slide-title {
  font-size: clamp(15px, 2.2vw, 26px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-dark, #111827);
  letter-spacing: -.03em;
  margin-bottom: 5px;
  max-width: 520px;
}

/* Brand */
.ec-slide-brand {
  font-size: 12px;
  color: var(--text-light, #6B7280);
  font-weight: 500;
  margin-bottom: 18px;
}

/* Price row */
.ec-slide-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ec-slide-badge-pct {
  background: var(--danger-color, #DC2626);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: .01em;
  align-self: center;
  flex-shrink: 0;
}
.ec-slide-price-now {
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 900;
  color: var(--primary-color, #7C3AED);
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.ec-slide-price-was {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light, #6B7280);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

/* Savings chip */
.ec-slide-saving {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-color, #16A34A);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.ec-slide-saving svg { color: var(--accent-color, #16A34A); width: 13px; height: 13px; }

/* Best store row */
.ec-slide-store-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ec-slide-store-label {
  font-size: 11px;
  color: var(--text-light, #6B7280);
  font-weight: 600;
  white-space: nowrap;
}
.ec-slide-store-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-gray, #374151);
  background: var(--bg-light, #F9FAFB);
  border: 1px solid var(--border-color, #E5E7EB);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.ec-slide-store-chip.best {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: var(--accent-color, #16A34A);
  font-weight: 700;
}

/* CTA — purple button */
.ec-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color, #7C3AED);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s, transform .12s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(124,58,237,.3);
}
.ec-slide-cta:hover {
  background: var(--primary-hover, #6D28D9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,.38);
  color: #fff;
}
.ec-slide-cta svg { width: 16px; height: 16px; }

/* Image panel */
.ec-slide-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.ec-slide-img-glow { display: none; }
.ec-slide-img {
  width: 220px;
  height: 220px;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
@media (max-width: 960px) {
  .ec-slide-img { width: 170px; height: 170px; }
}
@media (max-width: 540px) {
  .ec-slide-img { width: 130px; height: 130px; }
}

/* ── Carousel Navigation ─────────────────────────────────────────────── */
.ec-slide-nav {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.ec-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(124,58,237,.25);
  cursor: pointer;
  transition: background .2s, width .2s, border-radius .2s;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.ec-slide-dot.active {
  background: var(--primary-color, #7C3AED);
  width: 24px;
  border-radius: 4px;
}

.ec-slide-counter { display: none; }

.ec-slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light, #EDE9FE);
  border: 1.5px solid var(--primary-mid, #A78BFA);
  color: var(--primary-color, #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .15s, border-color .15s, color .15s;
}
.ec-slide-arrow:hover {
  background: var(--primary-color, #7C3AED);
  border-color: var(--primary-color, #7C3AED);
  color: #fff;
}
.ec-slide-arrow.prev { left: 14px; }
.ec-slide-arrow.next { right: 14px; }
.ec-slide-arrow i { font-size: 17px; }
@media (max-width: 540px) {
  .ec-slide-arrow { display: none; }
  .ec-slide-cta { padding: 8px 14px; font-size: 11px; gap: 5px; }
  .ec-slide-cta svg { width: 13px; height: 13px; }
}

/* ── Stores Trust Strip ─────────────────────────────────────────────── */
.ec-stores-strip {
  background: var(--bg-white, #fff);
  border-bottom: 1px solid var(--border-color, #E5E7EB);
  padding: 14px 0;
  overflow: hidden;
}
.ec-stores-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ec-stores-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-light, #6B7280);
  white-space: nowrap;
  padding-right: 10px;
  border-right: 1px solid var(--border-color, #E5E7EB);
  margin-right: 6px;
  flex-shrink: 0;
}
.ec-stores-logos {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  align-items: center;
  padding-bottom: 2px;
}
.ec-stores-logos::-webkit-scrollbar { display: none; }
.ec-store-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-light, #F9FAFB);
  border: 1px solid var(--border-color, #E5E7EB);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dark, #111827);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Flash Deals ────────────────────────────────────────────────────── */
.ec-flash-section {
  background: var(--bg-light, #F9FAFB);
  border-top: 1px solid var(--border-color, #E5E7EB);
  border-bottom: 1px solid var(--border-color, #E5E7EB);
  padding: 32px 0;
  position: relative;
}
.ec-flash-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.ec-flash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}
.ec-flash-title-group { display: flex; align-items: center; gap: 14px; }
.ec-flash-icon { font-size: 30px; line-height: 1; }
.ec-flash-title {
  font-size: 21px;
  font-weight: 900;
  color: var(--text-dark, #111827);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.ec-flash-subtitle {
  font-size: 11.5px;
  color: var(--text-light, #6B7280);
  margin-top: 3px;
  font-weight: 500;
}
.ec-flash-view-all {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-color, #7C3AED);
  text-decoration: none;
  padding: 8px 16px;
  border: 1.5px solid rgba(124,58,237,.3);
  border-radius: 8px;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.ec-flash-view-all:hover { border-color: var(--primary-color); background: var(--primary-light, #EDE9FE); }

/* Countdown */
.ec-flash-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ec-countdown-unit {
  background: var(--bg-white, #fff);
  border: 1px solid var(--border-color, #E5E7EB);
  border-radius: 8px;
  padding: 7px 10px;
  text-align: center;
  min-width: 50px;
}
.ec-countdown-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color, #7C3AED);
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}
.ec-countdown-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-light, #6B7280);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 3px;
  display: block;
}
.ec-countdown-sep {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light, #6B7280);
  margin-bottom: 6px;
  line-height: 1;
}

.ec-flash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .ec-flash-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ec-flash-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }

.ec-flash-card {
  background: var(--bg-white, #fff);
  border: 1.5px solid var(--border-color, #E5E7EB);
  border-radius: 14px;
  padding: 20px 16px 16px;
  text-align: center;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .15s;
}
.ec-flash-card:hover {
  border-color: var(--primary-color, #7C3AED);
  box-shadow: 0 6px 24px rgba(124,58,237,.12);
  transform: translateY(-3px);
}
.ec-flash-discount-pill {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--danger-color, #DC2626);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: .02em;
}
.ec-flash-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 14px;
  display: block;
  background: #fff;
}
.ec-flash-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dark, #111827);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.ec-flash-price-now {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-color, #7C3AED);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  display: block;
}
.ec-flash-price-was {
  font-size: 11px;
  color: var(--text-light, #6B7280);
  text-decoration: line-through;
  display: block;
  font-variant-numeric: tabular-nums;
}
.ec-flash-saving {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-color, #16A34A);
  margin-top: 5px;
  display: block;
}

/* ── Category Bento Grid ────────────────────────────────────────────── */
.ec-bento-section {
  padding: 32px 0;
  background: var(--bg-light, #F9FAFB);
}
.ec-bento-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.ec-bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.ec-bento-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark, #111827);
  letter-spacing: -.025em;
}
.ec-bento-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-color, #7C3AED);
  text-decoration: none;
}
.ec-bento-link:hover { text-decoration: underline; }

.ec-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.ec-bento-tile {
  background: var(--bg-white, #fff);
  border: 1.5px solid var(--border-color, #E5E7EB);
  border-radius: 14px;
  padding: 20px 10px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.ec-bento-tile:hover {
  border-color: var(--primary-color, #7C3AED);
  box-shadow: 0 4px 20px rgba(124,58,237,.12);
  transform: translateY(-3px);
}
.ec-bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light, #EDE9FE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary-color, #7C3AED);
  flex-shrink: 0;
}
.ec-bento-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dark, #111827);
  line-height: 1.3;
  letter-spacing: -.01em;
}
@media (max-width: 480px) {
  .ec-bento-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ec-bento-tile { padding: 14px 6px; }
  .ec-bento-icon { width: 40px; height: 40px; font-size: 18px; }
  .ec-bento-name { font-size: 10.5px; }
}

/* ── E-commerce Product Card Overrides ──────────────────────────────── */
html[data-theme="ecommerce"] .product-card-hunt {
  border: 1.5px solid var(--border-color, #E5E7EB);
  border-radius: 14px;
  background: var(--bg-white, #fff);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: border-color .18s, box-shadow .18s;
}
html[data-theme="ecommerce"] .product-card-hunt:hover {
  border-color: var(--primary-color, #7C3AED);
  box-shadow: 0 6px 24px rgba(124,58,237,.14);
}
html[data-theme="ecommerce"] .hunt-savings-badge {
  background: var(--danger-color, #DC2626) !important;
  box-shadow: none !important;
  font-weight: 800;
}
html[data-theme="ecommerce"] .current-price {
  color: var(--primary-color, #7C3AED);
  font-weight: 800;
}
html[data-theme="ecommerce"] .btn-buy-sm {
  background: var(--accent-color, #16A34A);
  color: #fff;
}
html[data-theme="ecommerce"] .btn-buy-sm:hover {
  background: var(--accent-hover, #15803D);
  color: #fff;
}
html[data-theme="ecommerce"] .hunt-details-btn {
  background: var(--primary-light, #EDE9FE);
  color: var(--primary-color, #7C3AED);
  border-color: transparent;
}
html[data-theme="ecommerce"] .hunt-details-btn:hover {
  background: var(--primary-color, #7C3AED);
  color: #fff;
}

/* ── Section Overrides ──────────────────────────────────────────────── */
html[data-theme="ecommerce"] .section-wrap { max-width: 1280px; }
html[data-theme="ecommerce"] .section-title {
  font-weight: 900;
  letter-spacing: -.025em;
}
html[data-theme="ecommerce"] .section-link {
  font-weight: 700;
  color: var(--primary-color, #7C3AED);
}
html[data-theme="ecommerce"] .trust-section {
  background: var(--bg-white, #fff);
  border-top: 1px solid var(--border-color, #E5E7EB);
  border-bottom: 1px solid var(--border-color, #E5E7EB);
}
html[data-theme="ecommerce"] .trust-card {
  border: 1.5px solid var(--border-color, #E5E7EB);
  border-radius: 14px;
  background: var(--bg-light, #F9FAFB);
}
html[data-theme="ecommerce"] .trust-icon {
  background: var(--primary-light, #EDE9FE);
  color: var(--primary-color, #7C3AED);
}
html[data-theme="ecommerce"] .brand-pill {
  border: 1.5px solid var(--border-color, #E5E7EB);
  background: var(--bg-white, #fff);
  transition: border-color .15s, background .15s;
}
html[data-theme="ecommerce"] .brand-pill:hover {
  border-color: var(--primary-color, #7C3AED);
  background: var(--primary-light, #EDE9FE);
}
html[data-theme="ecommerce"] .dod-header { background: transparent; }

/* Hero is replaced by ec-slideshow — PHP only renders one, but hide as safety net */
html[data-theme="ecommerce"] .hero { display: none !important; }

/* ── Flash Deals Pagination ─────────────────────────────────────────── */
.ec-flash-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.ec-flash-page-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary-light, #EDE9FE);
  border: 1.5px solid var(--primary-mid, #A78BFA);
  color: var(--primary-color, #7C3AED);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  font-size: 17px; line-height: 1;
}
.ec-flash-page-btn:hover {
  background: var(--primary-color, #7C3AED);
  border-color: var(--primary-color, #7C3AED);
  color: #fff;
}
.ec-flash-page-btn:disabled { opacity: .35; cursor: default; }
.ec-flash-page-dots {
  display: flex; gap: 6px; align-items: center;
}
.ec-flash-page-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(124,58,237,.2);
  transition: background .2s, width .2s, border-radius .2s;
  flex-shrink: 0;
}
.ec-flash-page-dot.active {
  background: var(--primary-color, #7C3AED); width: 20px; border-radius: 4px;
}

/* ── Meilleures Offres par Catégorie ────────────────────────────────── */
.ec-offers-section {
  padding: 36px 0 16px;
  background: var(--bg-body, #F3F4F6);
}
.ec-offers-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
}
.ec-offers-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.ec-offers-title {
  font-size: 22px; font-weight: 900;
  color: var(--text-dark, #111827);
  letter-spacing: -.03em;
}
.ec-offers-link {
  font-size: 12.5px; font-weight: 700;
  color: var(--primary-color, #7C3AED);
  text-decoration: none;
}
.ec-offers-link:hover { text-decoration: underline; }

.ec-cat-row { margin-bottom: 30px; }
.ec-cat-row-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 2.5px solid var(--primary-color, #7C3AED);
}
.ec-cat-row-title {
  font-size: 16px; font-weight: 800;
  color: var(--text-dark, #111827);
  letter-spacing: -.02em;
  display: flex; align-items: center; gap: 8px;
}
.ec-cat-row-title::before {
  content: '';
  width: 4px; height: 18px;
  background: var(--primary-color, #7C3AED);
  border-radius: 2px; flex-shrink: 0;
}
.ec-cat-row-link {
  font-size: 12px; font-weight: 700;
  color: var(--primary-color, #7C3AED);
  text-decoration: none; white-space: nowrap;
}
.ec-cat-row-link:hover { text-decoration: underline; }

.ec-cat-scroll {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.ec-cat-scroll::-webkit-scrollbar { display: none; }

.ec-offer-card {
  background: var(--bg-white, #fff);
  border: 1.5px solid var(--border-color, #E5E7EB);
  border-radius: 12px;
  padding: 14px 12px 12px;
  text-align: center; text-decoration: none;
  display: flex; flex-direction: column;
  align-items: center; gap: 7px;
  flex-shrink: 0; width: 158px;
  position: relative;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.ec-offer-card:hover {
  border-color: var(--primary-color, #7C3AED);
  box-shadow: 0 6px 20px rgba(124,58,237,.13);
  transform: translateY(-3px);
}
.ec-offer-img-wrap {
  width: 100px; height: 100px;
  background: #fff;
  border: 1px solid var(--border-color, #E5E7EB);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: visible; flex-shrink: 0;
}
.ec-offer-img {
  width: 80px; height: 80px; object-fit: contain;
}
.ec-offer-badge {
  position: absolute; top: -6px; left: -6px;
  background: var(--danger-color, #DC2626);
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 2px 6px; border-radius: 4px; letter-spacing: .02em;
  white-space: nowrap;
}
.ec-offer-name {
  font-size: 11px; font-weight: 600;
  color: var(--text-dark, #111827);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.7em; width: 100%;
}
.ec-offer-price {
  font-size: 14px; font-weight: 900;
  color: var(--primary-color, #7C3AED);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.ec-offer-price-was {
  font-size: 10px; color: var(--text-light, #6B7280);
  text-decoration: line-through; font-variant-numeric: tabular-nums;
}
.ec-offer-stores {
  font-size: 10px; color: var(--text-light, #6B7280); font-weight: 500;
}

/* Stores strip: "Boutiques suivies" label */
.ec-stores-label-text { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .ec-slide { transition: none; }
  .ec-bento-tile:hover, .ec-flash-card:hover, .ec-offer-card:hover { transform: none; }
  .ec-slide-cta:hover { transform: none; }
}
