/* =========================================================
   Ecommerce-1 Theme — Bootstrap 5 Companion CSS
   ========================================================= */

/* ===================== Design Tokens ==================== */
:root {
  --ec1-primary:       #1b4332;
  --ec1-primary-light: #2d6a4f;
  --ec1-accent:        #c9a84c;
  --ec1-accent-hover:  #a8893a;
  --ec1-gold:          #d4af37;
  --ec1-black:         #0a0f1a;
  --ec1-white:         #ffffff;
  --ec1-bg:            #faf8f4;
  --ec1-surface:       #ffffff;
  --ec1-text:          #111827;
  --ec1-text-2:        #374151;
  --ec1-muted:         #6b7280;
  --ec1-light:         #9ca3af;
  --ec1-border:        #e5e7eb;
  --ec1-border-light:  #f3f4f6;
  --ec1-success:       #16a34a;
  --ec1-danger:        #dc2626;
  --ec1-warning:       #d97706;
  --ec1-font-body:     'Inter', sans-serif;
  --ec1-font-heading:  'Outfit', sans-serif;
  --ec1-radius-xs:     4px;
  --ec1-radius-sm:     8px;
  --ec1-radius:        12px;
  --ec1-radius-lg:     16px;
  --ec1-radius-xl:     24px;
  --ec1-radius-full:   9999px;
  --ec1-shadow-sm:     0 2px 8px rgba(0,0,0,.08);
  --ec1-shadow:        0 4px 20px rgba(0,0,0,.10);
  --ec1-shadow-lg:     0 12px 40px rgba(0,0,0,.14);
  --ec1-shadow-hover:  0 24px 64px rgba(0,0,0,.18);
  --ec1-ease:          cubic-bezier(.4,0,.2,1);
  --ec1-fast:          .18s;
  --ec1-normal:        .28s;
  --ec1-slow:          .45s;
  --ec1-header-h:      70px;
}

/* ===================== Section Spacing ================== */
.ec1-section    { padding-top: 72px; padding-bottom: 72px; }
.ec1-section-sm { padding-top: 48px; padding-bottom: 48px; }
.ec1-section-lg { padding-top: 96px; padding-bottom: 96px; }

@media (max-width: 767px) {
  .ec1-section    { padding-top: 48px; padding-bottom: 48px; }
  .ec1-section-sm { padding-top: 32px; padding-bottom: 32px; }
  .ec1-section-lg { padding-top: 64px; padding-bottom: 64px; }
}

/* ===================== Override Bootstrap Defaults ====== */
body {
  font-family: var(--ec1-font-body);
  font-size: 15px;
  color: var(--ec1-text);
  background-color: var(--ec1-bg);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--ec1-font-heading); font-weight: 700; }
a { text-decoration: none; }

/* Bootstrap color overrides */
.btn-primary   { --bs-btn-bg: var(--ec1-accent); --bs-btn-border-color: var(--ec1-accent); --bs-btn-hover-bg: var(--ec1-accent-hover); --bs-btn-hover-border-color: var(--ec1-accent-hover); }
.btn-secondary { --bs-btn-bg: var(--ec1-primary); --bs-btn-border-color: var(--ec1-primary); --bs-btn-hover-bg: var(--ec1-primary-light); --bs-btn-hover-border-color: var(--ec1-primary-light); }
.text-accent   { color: var(--ec1-accent) !important; }
.text-muted    { color: var(--ec1-muted)  !important; }

/* ===================== Custom Buttons ================== */
.ec1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--ec1-radius-full);
  font-family: var(--ec1-font-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all var(--ec1-normal) var(--ec1-ease);
  cursor: pointer;
  white-space: nowrap;
}
.ec1-btn-accent {
  background: var(--ec1-accent); color: #fff; border-color: var(--ec1-accent);
}
.ec1-btn-accent:hover {
  background: var(--ec1-accent-hover); border-color: var(--ec1-accent-hover);
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,.35);
}
.ec1-btn-dark {
  background: var(--ec1-primary); color: #fff; border-color: var(--ec1-primary);
}
.ec1-btn-dark:hover {
  background: var(--ec1-primary-light); border-color: var(--ec1-primary-light);
  color: #fff; transform: translateY(-2px);
}
.ec1-btn-outline-dark {
  background: transparent; color: var(--ec1-primary); border-color: var(--ec1-primary);
}
.ec1-btn-outline-dark:hover { background: var(--ec1-primary); color: #fff; }
.ec1-btn-outline-white {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.6);
}
.ec1-btn-outline-white:hover { background: #fff; color: var(--ec1-primary); }
.ec1-btn-sm  { padding: 9px 20px; font-size: .8125rem; }
.ec1-btn-lg  { padding: 16px 40px; font-size: 1rem; }

/* ===================== Badges ========================== */
.ec1-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: var(--ec1-radius-full);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.ec1-badge-sale { background: var(--ec1-danger);   color: #fff; }
.ec1-badge-new  { background: var(--ec1-success);  color: #fff; }
.ec1-badge-hot  { background: var(--ec1-accent);   color: #fff; }
.ec1-badge-dark { background: var(--ec1-primary);  color: #fff; }

/* ===================== Announcement Bar ================ */
.ec1-announce {
  background: var(--ec1-gold);
  color: var(--ec1-black);
  font-size: .8125rem; font-weight: 500;
  text-align: center;
  padding: 10px 50px;
  position: relative;
}
.ec1-announce a { color: var(--ec1-black); text-decoration: underline; }
.ec1-announce-close {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  background: transparent; border: none;
  color: rgba(10,15,26,.5); font-size: 1rem; cursor: pointer; line-height: 1;
}
.ec1-announce-close:hover { color: var(--ec1-black); }

/* ===================== Header ========================== */
.ec1-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--ec1-primary);
  border-bottom: 1px solid var(--ec1-primary-light);
  height: var(--ec1-header-h);
  transition: box-shadow var(--ec1-normal) var(--ec1-ease);
}
.ec1-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25); }
.ec1-header .container-xl,
.ec1-header .ec1-header-fluid { height: 100%; display: flex; align-items: center; gap: 20px; }
/* Full-width header: edge padding grows with the screen instead of a fixed max width. */
.ec1-header .ec1-header-fluid { padding-inline: clamp(16px, 3vw, 56px); }

/* Logo */
.ec1-logo-text {
  font-family: var(--ec1-font-heading);
  font-size: 1.5rem; font-weight: 800;
  color: #fff;
  letter-spacing: -.02em; white-space: nowrap;
}
.ec1-logo-text span { color: var(--ec1-gold); }
.ec1-logo-img { height: 38px; width: auto; }

/* Header search */
.ec1-header-search {
  flex: 1; max-width: 480px; position: relative;
}
.ec1-header-search input {
  width: 100%; padding: 9px 42px 9px 16px;
  border: 1.5px solid var(--ec1-primary-light);
  border-radius: var(--ec1-radius-full);
  font-size: .875rem; background: var(--ec1-primary-light);
  outline: none; font-family: var(--ec1-font-body);
  color: #fff;
  transition: border-color var(--ec1-fast), background var(--ec1-fast);
}
.ec1-header-search input:focus { border-color: var(--ec1-gold); background: var(--ec1-primary-light); }
.ec1-header-search input::placeholder { color: rgba(255,255,255,.65); }
.ec1-header-search-btn {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: rgba(255,255,255,.8); font-size: 1rem; cursor: pointer;
}

/* Search typeahead results */
.ec1-shop-search-results {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--ec1-border);
  border-radius: var(--ec1-radius-md, 10px);
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
  max-height: 340px; overflow-y: auto;
  z-index: 1050;
}
.ec1-shop-search-results.show { display: block; }
.ec1-shop-search-result-item {
  color: var(--ec1-text); font-size: .875rem;
  border-bottom: 1px solid var(--ec1-border-light);
  transition: background var(--ec1-fast);
}
.ec1-shop-search-result-item:last-child { border-bottom: none; }
.ec1-shop-search-result-item:hover { background: var(--ec1-bg); }
.ec1-shop-search-result-item .ec1-search-cat { color: var(--ec1-muted); }

/* Nav */
.ec1-nav { display: flex; align-items: center; gap: 2px; }
.ec1-nav-link {
  padding: 8px 13px; font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.85); border-radius: var(--ec1-radius-sm);
  transition: all var(--ec1-fast) var(--ec1-ease); white-space: nowrap;
}
.ec1-nav-link:hover, .ec1-nav-link.active {
  color: var(--ec1-gold); background: rgba(255,255,255,.08);
}

/* Nav dropdown (second menu level) */
.ec1-nav-item { position: relative; }
.ec1-nav-item > .ec1-nav-link { display: inline-flex; align-items: center; gap: 5px; }
.ec1-nav-caret { font-size: .65rem; opacity: .7; transition: transform var(--ec1-fast) var(--ec1-ease); }
.ec1-nav-item:hover .ec1-nav-caret,
.ec1-nav-item:focus-within .ec1-nav-caret { transform: rotate(180deg); }
.ec1-nav-sub {
  position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px;
  background: #fff; border: 1px solid var(--ec1-border); border-radius: var(--ec1-radius);
  box-shadow: var(--ec1-shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--ec1-fast) var(--ec1-ease), transform var(--ec1-fast) var(--ec1-ease), visibility var(--ec1-fast);
  z-index: 1100;
}
.ec1-nav-item:hover .ec1-nav-sub,
.ec1-nav-item:focus-within .ec1-nav-sub { opacity: 1; visibility: visible; transform: none; }
.ec1-nav-sub-link {
  display: block; padding: 9px 12px; font-size: .875rem; font-weight: 500;
  color: var(--ec1-text); border-radius: var(--ec1-radius-sm); white-space: nowrap;
  text-decoration: none; transition: background var(--ec1-fast), color var(--ec1-fast);
}
.ec1-nav-sub-link:hover, .ec1-nav-sub-link.active { background: var(--ec1-bg); color: var(--ec1-primary); }

/* Header action icons */
.ec1-header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; }
.ec1-header-action {
  position: relative;
  width: 42px; height: 42px;
  border-radius: var(--ec1-radius-sm);
  background: none; border: none;
  color: #fff; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--ec1-fast) var(--ec1-ease);
}
.ec1-header-action:hover { background: rgba(255,255,255,.1); color: var(--ec1-gold); }
.ec1-header-badge {
  position: absolute; top: 5px; right: 5px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--ec1-accent); color: #fff;
  font-size: .6rem; font-weight: 700;
  border-radius: var(--ec1-radius-full);
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* ===================== Hero ============================= */
.ec1-hero { overflow: hidden; background: var(--ec1-primary); }
.ec1-hero-slide {
  position: relative;
  height: 560px;
  display: flex; align-items: center;
}
@media (min-width: 768px)  { .ec1-hero-slide { height: 660px; } }
@media (min-width: 1200px) { .ec1-hero-slide { height: 740px; } }

.ec1-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.ec1-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,15,26,.75) 0%, rgba(10,15,26,.3) 55%, transparent 100%);
}
.ec1-hero-content { position: relative; z-index: 1; max-width: 600px; }
.ec1-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: rgba(79,70,229,.2); border: 1px solid rgba(79,70,229,.45);
  border-radius: var(--ec1-radius-full); color: #fff;
  font-size: .8rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 18px;
}
.ec1-hero-tag::before {
  content: ''; width: 7px; height: 7px;
  border-radius: 50%; background: var(--ec1-accent);
}
.ec1-hero-title { color: #fff; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.ec1-hero-desc {
  color: rgba(255,255,255,.78); font-size: 1.0625rem;
  line-height: 1.75; margin-bottom: 32px; max-width: 460px;
}
/* Split hero: slider 2/3, product card-stack 1/3, full width, 350px tall */
.ec1-hero-split { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 12px; max-width: none; }
@media (min-width: 992px) { .ec1-hero-split { grid-template-columns: 2fr 1fr; } }
.ec1-hero-main { min-width: 0; border-radius: var(--ec1-radius-lg, 16px); overflow: hidden; background: var(--ec1-primary); }
.ec1-hero-inner { position: relative; z-index: 1; width: 100%; padding: 0 28px; }
@media (min-width: 768px) { .ec1-hero-inner { padding: 0 48px; } }
.ec1-hero-split .ec1-hero-slide { height: 300px; }
.ec1-hero-split .ec1-hero-title { font-size: clamp(1.15rem, 2vw, 1.75rem); margin-bottom: 8px; }
.ec1-hero-split .ec1-hero-desc { margin-bottom: 14px; font-size: .85rem; line-height: 1.45; max-width: 400px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ec1-hero-split .ec1-hero-tag { margin-bottom: 8px; font-size: .68rem; padding: 4px 12px; }
.ec1-hero-split .ec1-btn { font-size: .8rem; padding: 8px 18px; }
.ec1-hero-split .ec1-hero .swiper-pagination, .ec1-hero-split .swiper-pagination { bottom: 12px !important; }

.ec1-hero-side {
  min-width: 0; background: #fff; border-radius: var(--ec1-radius-lg, 16px);
  padding: 12px; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--ec1-border, #e5e7eb); height: 300px;
}
.ec1-hero-side__tabs { display: flex; gap: 6px; background: var(--ec1-bg, #f3f4f6); padding: 4px; border-radius: 999px; margin-bottom: 10px; }
.ec1-hero-side__tab {
  flex: 1; border: 0; background: transparent; padding: 7px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; color: #555; cursor: pointer; transition: all .2s;
}
.ec1-hero-side__tab.active { background: var(--ec1-primary); color: #fff; }
.ec1-hero-side__pane { display: none; flex: 1; flex-direction: column; min-height: 0; }
.ec1-hero-side__pane.active { display: flex; }
.ec1-hero-side .ec1-hero-cards { width: 88%; margin: 0 auto; flex: 1; min-height: 0; padding: 4px 0; overflow: visible; }
.ec1-hero-cards .swiper-slide { border-radius: 14px; height: 150px; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.14); overflow: hidden; }
.ec1-hero-card { display: flex; text-decoration: none; color: inherit; height: 100%; }
.ec1-hero-card__img { position: relative; flex: 0 0 42%; background: #f3f4f6; }
.ec1-hero-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ec1-hero-card__img .ec1-badge { position: absolute; top: 8px; left: 8px; }
.ec1-hero-card__body { padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ec1-hero-card__name {
  font-weight: 700; font-size: .85rem; line-height: 1.35; margin: 2px 0 6px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ec1-hero-side__nav { display: flex; justify-content: center; gap: 10px; padding-top: 6px; }
.ec1-hero-side__nav .ec1-grid-btn { border-radius: 50%; width: 32px; height: 32px; }

.ec1-hero .swiper-pagination { bottom: 28px !important; }
.ec1-hero .swiper-pagination-bullet {
  width: 10px; height: 10px;
  background: rgba(255,255,255,.4); opacity: 1;
  transition: all var(--ec1-fast);
}
.ec1-hero .swiper-pagination-bullet-active {
  background: var(--ec1-accent); width: 28px; border-radius: var(--ec1-radius-full);
}

/* ===================== Section Label ==================== */
.ec1-section-tag {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ec1-accent); margin-bottom: 10px;
}

/* ===================== Feature Bar ====================== */
.ec1-features { background: #fff; border-bottom: 1px solid var(--ec1-border); }
.ec1-feature-item {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 16px;
  border-right: 1px solid var(--ec1-border-light);
}
.ec1-feature-item:last-child { border-right: none; }
.ec1-feature-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: var(--ec1-radius);
  background: rgba(79,70,229,.09);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--ec1-accent);
}
.ec1-feature-title { font-size: .875rem; font-weight: 700; color: var(--ec1-text); margin-bottom: 2px; }
.ec1-feature-desc  { font-size: .8rem; color: var(--ec1-muted); }

/* ===================== Category Card =================== */
.ec1-category-card {
  position: relative; border-radius: var(--ec1-radius-lg);
  overflow: hidden; cursor: pointer; display: block;
  transition: transform var(--ec1-normal) var(--ec1-ease), box-shadow var(--ec1-normal) var(--ec1-ease);
}
.ec1-category-card:hover { transform: translateY(-6px); box-shadow: var(--ec1-shadow-lg); }

/* Fixed wrapper — equal size for all category images */
.ec1-category-card__img {
  position: relative; width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden; background: var(--ec1-primary);
}
.ec1-category-card__img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform var(--ec1-slow) var(--ec1-ease);
}
.ec1-category-card:hover .ec1-category-card__img img { transform: scale(1.08); }
.ec1-category-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,15,26,.78) 30%, transparent 70%);
}
.ec1-category-card__body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px; text-align: center;
}
.ec1-category-card__name {
  font-family: var(--ec1-font-heading);
  font-size: .9375rem; font-weight: 700; color: #fff; margin-bottom: 3px;
}
.ec1-category-card__count { font-size: .75rem; color: rgba(255,255,255,.6); }

/* ===================== Product Card ==================== */

/* *** CORE: Fixed-size image wrapper — works for ANY image dimension *** */
.ec1-product-card {
  background: var(--ec1-surface);
  border-radius: var(--ec1-radius-lg);
  border: 1px solid var(--ec1-border-light);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow var(--ec1-normal) var(--ec1-ease), transform var(--ec1-normal) var(--ec1-ease), border-color var(--ec1-normal);
  position: relative; height: 100%;
}
.ec1-product-card:hover {
  box-shadow: var(--ec1-shadow-lg); transform: translateY(-4px);
  border-color: var(--ec1-border);
}

.ec1-product-card__img {
  position: relative; width: 100%;
  aspect-ratio: 3 / 4;          /* Portrait ratio — consistent for all products */
  overflow: hidden;
  background: var(--ec1-bg);
  flex-shrink: 0;
}
/* The <img> is wrapped in a <a> (link to the product) - the anchor takes over
   the fill-the-container positioning so the whole image area is clickable,
   not just the pixels the browser happens to paint. Sits below the badges/
   wishlist/actions overlays (z-index 2) so those stay independently clickable. */
.ec1-product-card__img > a {
  position: absolute; inset: 0; display: block; z-index: 1;
}
.ec1-product-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;             /* Crops & fills — works regardless of source size */
  object-position: center top;
  transition: transform var(--ec1-slow) var(--ec1-ease), opacity var(--ec1-normal) var(--ec1-ease);
}
.ec1-product-card__img .img-hover { opacity: 0; }
.ec1-product-card:hover .ec1-product-card__img .img-primary { opacity: 0; transform: scale(1.06); }
.ec1-product-card:hover .ec1-product-card__img .img-hover   { opacity: 1; transform: scale(1.06); }
.ec1-product-card:hover .ec1-product-card__img img:only-child { transform: scale(1.06); }

/* Badges */
.ec1-product-card__badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
}

/* Wishlist button */
.ec1-product-card__wishlist {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: var(--ec1-radius-full);
  background: rgba(255,255,255,.9); border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: .9375rem; color: var(--ec1-muted);
  cursor: pointer; opacity: 0; transform: scale(.8);
  transition: all var(--ec1-fast) var(--ec1-ease);
}
.ec1-product-card:hover .ec1-product-card__wishlist { opacity: 1; transform: scale(1); }
.ec1-product-card__wishlist:hover { color: var(--ec1-danger); background: #fff; }

/* Hover action bar */
.ec1-product-card__actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; gap: 8px; padding: 12px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  transform: translateY(100%);
  transition: transform var(--ec1-normal) var(--ec1-ease); z-index: 3;
}
.ec1-product-card:hover .ec1-product-card__actions { transform: translateY(0); }

/* Loading dots — shown inside a button while an add-to-cart request is in flight */
.ec1-loading-dots {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.ec1-loading-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: .3;
  animation: ec1-loading-dots-bounce 1s infinite ease-in-out both;
}
.ec1-loading-dots span:nth-child(1) { animation-delay: -0.28s; }
.ec1-loading-dots span:nth-child(2) { animation-delay: -0.14s; }
.ec1-loading-dots span:nth-child(3) { animation-delay: 0s; }
@keyframes ec1-loading-dots-bounce {
  0%, 80%, 100% { opacity: .3; transform: scale(.75); }
  40% { opacity: 1; transform: scale(1); }
}

.ec1-card-add-btn {
  flex: 1; padding: 10px; background: var(--ec1-primary); color: #fff;
  border: none; border-radius: var(--ec1-radius-sm);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; transition: background var(--ec1-fast);
  display: flex; align-items: center; justify-content: center; text-align: center;
  white-space: nowrap;
}
.ec1-card-add-btn--icon {
  flex: 0 0 38px; width: 38px; height: 38px; padding: 0; font-size: 1rem;
}
.ec1-card-add-btn:hover { background: var(--ec1-accent); }

.ec1-card-icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--ec1-radius-sm);
  border: 1.5px solid var(--ec1-border);
  background: var(--ec1-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--ec1-muted);
  cursor: pointer; transition: all var(--ec1-fast);
  flex-shrink: 0;
}
.ec1-card-icon-btn:hover { background: var(--ec1-primary); border-color: var(--ec1-primary); color: #fff; }

/* Card body */
.ec1-product-card__body {
  padding: 14px 16px 18px;
  display: flex; flex-direction: column; gap: 5px; flex: 1;
}
.ec1-product-card__cat {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ec1-muted);
}
.ec1-product-card__name {
  font-family: var(--ec1-font-heading);
  font-size: .9375rem; font-weight: 600; color: var(--ec1-text);
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--ec1-fast);
}
.ec1-product-card__name:hover { color: var(--ec1-accent); }
.ec1-product-card__rating { display: flex; align-items: center; gap: 5px; }
.ec1-stars { color: var(--ec1-gold); font-size: .8rem; letter-spacing: 1px; }
.ec1-rating-count { font-size: .75rem; color: var(--ec1-muted); }
.ec1-product-card__price {
  display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap;
  margin-top: auto; padding-top: 6px;
}
.ec1-price-now  { font-family: var(--ec1-font-heading); font-size: 1.0625rem; font-weight: 700; color: var(--ec1-text); }
.ec1-price-old  { font-size: .875rem; color: var(--ec1-light); text-decoration: line-through; }
.ec1-price-sale { color: var(--ec1-danger); }
.ec1-price-off {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  background: var(--ec1-danger); color: #fff;
  font-size: .72rem; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.ec1-price-off--lg { font-size: .85rem; padding: 3px 10px; border-radius: 6px; }

/* ===================== Promo Banner ==================== */
.ec1-promo-banner {
  border-radius: var(--ec1-radius-xl); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; min-height: 400px;
  background: var(--ec1-primary);
}
@media (max-width: 767px) { .ec1-promo-banner { grid-template-columns: 1fr; } }
.ec1-promo-banner__content {
  padding: 56px 48px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.ec1-promo-banner__tag  { color: var(--ec1-gold); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ec1-promo-banner__title { color: #fff; }
.ec1-promo-banner__desc  { color: rgba(255,255,255,.7); line-height: 1.75; max-width: 360px; }
.ec1-promo-banner__img   { position: relative; overflow: hidden; }
.ec1-promo-banner__img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform var(--ec1-slow) var(--ec1-ease);
}
.ec1-promo-banner:hover .ec1-promo-banner__img img { transform: scale(1.04); }
@media (max-width: 767px) { .ec1-promo-banner__img { height: 260px; position: relative; } }

/* ===================== Page Banner ===================== */
.ec1-page-banner {
  background: linear-gradient(135deg, var(--ec1-primary) 0%, var(--ec1-primary-light) 100%);
  padding: 52px 0; text-align: center;
}
.ec1-page-banner__title { color: #fff; margin-bottom: 12px; }
.ec1-breadcrumb { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.ec1-breadcrumb li { font-size: .875rem; color: rgba(255,255,255,.55); }
.ec1-breadcrumb li a { color: rgba(255,255,255,.75); transition: color var(--ec1-fast); }
.ec1-breadcrumb li a:hover { color: var(--ec1-gold); }
.ec1-breadcrumb-sep { color: rgba(255,255,255,.35); }

/* ===================== Shop Sidebar ==================== */
.ec1-sidebar {
  background: var(--ec1-surface); border-radius: var(--ec1-radius-lg);
  border: 1px solid var(--ec1-border); padding: 24px;
}
.ec1-sidebar-section {
  padding-bottom: 22px; margin-bottom: 22px;
  border-bottom: 1px solid var(--ec1-border-light);
}
.ec1-sidebar-section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.ec1-sidebar-title {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--ec1-text); margin-bottom: 14px;
}
/* Collapsible sidebar section title (button variant) */
button.ec1-sidebar-title {
  cursor: pointer; outline: none; text-align: left;
}
button.ec1-sidebar-title:focus { box-shadow: none; }
.ec1-filter-chevron { font-size: .75rem; transition: transform var(--ec1-fast); flex-shrink: 0; }
button.ec1-sidebar-title[aria-expanded="false"] .ec1-filter-chevron { transform: rotate(-90deg); }
/* Category dropdown */
.ec1-filter-dropdown { margin-top: 6px; position: relative; }
.ec1-filter-dropdown__toggle {
  background: var(--ec1-bg);
  border: 1px solid var(--ec1-border);
  border-radius: var(--ec1-radius-sm);
  padding: 9px 14px;
  font-size: .875rem; font-family: var(--ec1-font); color: var(--ec1-text);
  cursor: pointer; transition: border-color var(--ec1-fast), box-shadow var(--ec1-fast);
}
.ec1-filter-dropdown__toggle:hover,
.ec1-filter-dropdown__toggle[aria-expanded="true"] {
  border-color: var(--ec1-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.08);
}
.ec1-filter-dropdown__toggle[aria-expanded="true"] .ec1-filter-chevron { transform: rotate(-180deg); }
.ec1-filter-dropdown__menu {
  padding: 6px 0;
  border: 1px solid var(--ec1-border);
  border-radius: var(--ec1-radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  margin-top: 4px !important;
  max-height: 280px; overflow-y: auto;
}
.ec1-filter-dropdown__item {
  font-size: .875rem; color: var(--ec1-text-2);
  padding: 8px 14px; transition: background var(--ec1-fast);
}
.ec1-filter-dropdown__item:hover { background: var(--ec1-bg); color: var(--ec1-text); }
.ec1-filter-dropdown__item.active { color: var(--ec1-primary); font-weight: 600; background: rgba(79,70,229,.06); }
.ec1-filter-dropdown__item .ec1-filter-count { color: var(--ec1-light); font-size: .75rem; }
/* Plain list filters */
.ec1-filter-list { display: flex; flex-direction: column; gap: 9px; }
.ec1-filter-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ec1-filter-check input { width: 16px; height: 16px; accent-color: var(--ec1-accent); cursor: pointer; }
.ec1-filter-check label { font-size: .875rem; color: var(--ec1-text-2); cursor: pointer; flex: 1; }
.ec1-filter-count { font-size: .75rem; color: var(--ec1-light); }
.ec1-color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ec1-swatch {
  width: 28px; height: 28px; border-radius: var(--ec1-radius-full);
  border: 2px solid transparent; outline: 2px solid transparent; outline-offset: 2px;
  cursor: pointer; transition: all var(--ec1-fast);
}
.ec1-swatch:hover { transform: scale(1.12); }
.ec1-swatch.active { outline-color: var(--ec1-primary); }

/* Shop product grid */
.ec1-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 767px) {
  .ec1-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Shop controls bar */
.ec1-shop-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 14px 18px;
  background: var(--ec1-surface); border: 1px solid var(--ec1-border);
  border-radius: var(--ec1-radius-lg); margin-bottom: 20px;
}
.ec1-grid-toggle { display: flex; gap: 4px; }
.ec1-grid-btn {
  width: 32px; height: 32px;
  border-radius: var(--ec1-radius-sm); border: 1.5px solid var(--ec1-border);
  background: transparent; color: var(--ec1-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .9rem; transition: all var(--ec1-fast);
}
.ec1-grid-btn.active, .ec1-grid-btn:hover {
  background: var(--ec1-primary); border-color: var(--ec1-primary); color: #fff;
}
.ec1-sort-select {
  padding: 8px 36px 8px 14px; border: 1.5px solid var(--ec1-border);
  border-radius: var(--ec1-radius-sm); font-size: .875rem;
  font-family: var(--ec1-font-body); outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  appearance: none; cursor: pointer;
}
.ec1-sort-select:focus { border-color: var(--ec1-accent); }

/* ===================== Product Gallery ================= */
.ec1-gallery-grid { display: grid; grid-template-columns: 80px 1fr; gap: 14px; }
.ec1-gallery-grid--single { grid-template-columns: 1fr; }
@media (max-width: 575px) { .ec1-gallery-grid { grid-template-columns: 1fr; } }
.ec1-gallery-thumbs { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 575px) { .ec1-gallery-thumbs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; } }
.ec1-gallery-thumb {
  width: 80px; height: 96px; flex-shrink: 0;
  border-radius: var(--ec1-radius-sm); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; transition: border-color var(--ec1-fast);
}
.ec1-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ec1-gallery-thumb.active, .ec1-gallery-thumb:hover { border-color: var(--ec1-accent); }
.ec1-gallery-main {
  position: relative; height: 70vh; max-height: 560px; min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--ec1-radius-lg); overflow: hidden; background: var(--ec1-bg);
}
@media (max-width: 575px) { .ec1-gallery-main { height: 50vh; min-height: 260px; } }
.ec1-gallery-main img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }

/* ===================== Product Info ==================== */
.ec1-product-cat { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ec1-accent); }
.ec1-price-large { font-family: var(--ec1-font-heading); font-size: 1.75rem; font-weight: 800; }
.ec1-price-large-old { font-size: 1rem; color: var(--ec1-light); text-decoration: line-through; }
.ec1-discount-badge { background: rgba(220,38,38,.1); color: var(--ec1-danger); font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: var(--ec1-radius-full); }

/* Size buttons */
.ec1-size-btn {
  min-width: 46px; height: 46px; padding: 0 14px;
  border-radius: var(--ec1-radius-sm); border: 1.5px solid var(--ec1-border);
  background: var(--ec1-surface); font-size: .875rem; font-weight: 500;
  color: var(--ec1-text); cursor: pointer; transition: all var(--ec1-fast);
}
.ec1-size-btn:hover { border-color: var(--ec1-primary); color: var(--ec1-primary); }
.ec1-size-btn.active { background: var(--ec1-primary); border-color: var(--ec1-primary); color: #fff; }

/* Quantity */
.ec1-qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--ec1-border); border-radius: var(--ec1-radius-sm); overflow: hidden;
}
.ec1-qty-btn {
  width: 44px; height: 50px; background: var(--ec1-bg); border: none;
  font-size: 1.125rem; color: var(--ec1-muted); cursor: pointer; transition: all var(--ec1-fast);
}
.ec1-qty-btn:hover { background: var(--ec1-primary); color: #fff; }
.ec1-qty-input {
  width: 54px; height: 50px; border: none; text-align: center;
  font-size: 1rem; font-weight: 600; color: var(--ec1-text); background: #fff; outline: none;
}

/* Tabs */
.ec1-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--ec1-border); margin-bottom: 28px; }
.ec1-tab-btn {
  padding: 13px 22px; font-size: .9375rem; font-weight: 600;
  color: var(--ec1-muted); background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: all var(--ec1-fast);
}
.ec1-tab-btn:hover { color: var(--ec1-text); }
.ec1-tab-btn.active { color: var(--ec1-accent); border-bottom-color: var(--ec1-accent); }
.ec1-tab-content { display: none; }
.ec1-tab-content.active { display: block; }

/* ===================== Cart Page ======================= */
.ec1-cart-item-img { width: 80px; height: 100px; border-radius: var(--ec1-radius-sm); overflow: hidden; flex-shrink: 0; }
.ec1-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.ec1-cart-summary {
  background: var(--ec1-surface); border: 1px solid var(--ec1-border);
  border-radius: var(--ec1-radius-lg); padding: 28px;
}
.ec1-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--ec1-border-light);
  font-size: .9375rem;
}
.ec1-summary-row:last-of-type { border-bottom: none; }
.ec1-summary-total { font-size: 1.125rem; font-weight: 700; }

/* Cart drawer */
.ec1-drawer-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ec1-border-light); }
.ec1-drawer-item-img { width: 70px; height: 86px; border-radius: var(--ec1-radius-sm); overflow: hidden; flex-shrink: 0; }
.ec1-drawer-item-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===================== Newsletter Section =============== */
.ec1-newsletter-section {
  background: linear-gradient(135deg, var(--ec1-primary) 0%, var(--ec1-primary-light) 100%);
  padding: 80px 0; text-align: center;
}
.ec1-newsletter-form {
  display: flex; gap: 10px; max-width: 460px; margin: 28px auto 0;
}
.ec1-newsletter-form input {
  flex: 1; padding: 14px 20px; border: none;
  border-radius: var(--ec1-radius-full); font-size: .9375rem; outline: none;
}
.ec1-newsletter-form button { padding: 14px 26px; border-radius: var(--ec1-radius-full); flex-shrink: 0; }
@media (max-width: 575px) { .ec1-newsletter-form { flex-direction: column; } }

/* ===================== Footer ========================== */
.ec1-footer { background: var(--ec1-primary); }
.ec1-footer-logo-text {
  font-family: var(--ec1-font-heading); font-size: 1.5rem;
  font-weight: 800; color: #fff;
}
.ec1-footer-logo-text span { color: var(--ec1-accent); }
.ec1-footer-link {
  font-size: .9rem; color: rgba(255,255,255,.62);
  transition: color var(--ec1-fast), padding-left var(--ec1-fast);
  display: block; padding: 3px 0;
}
.ec1-footer-link:hover { color: var(--ec1-gold); padding-left: 4px; }
.ec1-footer-heading { font-family: var(--ec1-font-heading); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #fff; margin-bottom: 18px; }
.ec1-social-btn {
  width: 36px; height: 36px; border-radius: var(--ec1-radius-full);
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: .9375rem;
  transition: all var(--ec1-fast);
}
.ec1-social-btn:hover { background: var(--ec1-accent); border-color: var(--ec1-accent); color: #fff; transform: translateY(-2px); }
.ec1-newsletter-input {
  flex: 1; padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--ec1-radius-sm);
  background: rgba(255,255,255,.08); color: #fff; font-size: .875rem; outline: none;
}
.ec1-newsletter-input::placeholder { color: rgba(255,255,255,.38); }
.ec1-newsletter-input:focus { border-color: var(--ec1-gold); }
.ec1-newsletter-btn {
  padding: 11px 18px; background: var(--ec1-accent);
  border: none; border-radius: var(--ec1-radius-sm);
  color: #fff; font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: background var(--ec1-fast); white-space: nowrap;
}
.ec1-newsletter-btn:hover { background: var(--ec1-accent-hover); }
.ec1-footer-divider { border-top: 1px solid rgba(255,255,255,.09); }
.ec1-footer-copy { font-size: .8125rem; color: rgba(255,255,255,.4); }
.ec1-footer-bottom-link { font-size: .8125rem; color: rgba(255,255,255,.5); transition: color var(--ec1-fast); }
.ec1-footer-bottom-link:hover { color: var(--ec1-gold); }

/* ===================== Mobile Toolbar ================== */
.ec1-toolbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1020;
  background: #fff; border-top: 1px solid var(--ec1-border);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
@media (max-width: 991px) { .ec1-toolbar { display: flex; } }
.ec1-toolbar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; padding: 10px 4px;
  color: var(--ec1-muted); font-size: .66rem; font-weight: 500;
  text-decoration: none; transition: color var(--ec1-fast); position: relative;
}
.ec1-toolbar-item:hover, .ec1-toolbar-item.active { color: var(--ec1-accent); }
.ec1-toolbar-icon { font-size: 1.15rem; position: relative; }
.ec1-toolbar-badge {
  position: absolute; top: -4px; right: -8px;
  background: var(--ec1-accent); color: #fff;
  font-size: .6rem; font-weight: 700; min-width: 14px; height: 14px;
  border-radius: var(--ec1-radius-full);
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
@media (max-width: 991px) { body { padding-bottom: 68px; } }

/* ===================== Scroll to Top =================== */
#ec1ScrollTop {
  position: fixed; bottom: 90px; right: 20px; z-index: 800;
  width: 42px; height: 42px; border-radius: var(--ec1-radius-full);
  background: var(--ec1-primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; box-shadow: var(--ec1-shadow);
  opacity: 0; transform: translateY(10px);
  transition: all var(--ec1-normal) var(--ec1-ease); pointer-events: none;
}
#ec1ScrollTop.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#ec1ScrollTop:hover { background: var(--ec1-accent); }

/* ===================== Preloader ======================= */
.ec1-preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff; display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.ec1-preloader.done { opacity: 0; visibility: hidden; }
.ec1-spinner {
  width: 38px; height: 38px; border: 3px solid var(--ec1-border);
  border-top-color: var(--ec1-accent); border-radius: 50%;
  animation: ec1spin .7s linear infinite;
}
@keyframes ec1spin { to { transform: rotate(360deg); } }

/* ===================== Pagination ====================== */
.ec1-page-btn {
  width: 40px; height: 40px; border-radius: var(--ec1-radius-sm);
  border: 1.5px solid var(--ec1-border); font-size: .875rem; font-weight: 500;
  color: var(--ec1-text); background: var(--ec1-surface);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ec1-fast); cursor: pointer; text-decoration: none;
}
.ec1-page-btn:hover, .ec1-page-btn.active {
  background: var(--ec1-accent); border-color: var(--ec1-accent); color: #fff;
}

/* ===================== Utilities ======================= */
.ec1-divider { height: 1px; background: var(--ec1-border); margin: 24px 0; }
@keyframes ec1fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ec1-fade-up   { animation: ec1fadeUp .55s var(--ec1-ease) both; }
.ec1-delay-1   { animation-delay: .1s; }
.ec1-delay-2   { animation-delay: .2s; }
.ec1-delay-3   { animation-delay: .3s; }
.ec1-delay-4   { animation-delay: .4s; }

/* Responsive tweaks */
@media (max-width: 991px) {
  .ec1-header-search { display: none; }
  .ec1-nav { display: none; }
}
@media (max-width: 575px) {
  .ec1-promo-banner__content { padding: 36px 24px; }
  .ec1-page-banner { padding: 36px 0; }
}

.ec1-hero-card__body .ec1-product-card__cat { font-size: .65rem; }
.ec1-hero-card__body .ec1-price-now { font-size: .9rem; }
.ec1-hero-card__body .ec1-price-old { font-size: .75rem; }
.ec1-hero-card .ec1-badge { font-size: .62rem; padding: 3px 8px; }


/* Home category strip (compact tiles, scrolling) */
.ec1-cat-strip { position: relative; }
.ec1-cat-swiper { padding: 2px 0 4px; }
.ec1-cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.ec1-cat-tile__img { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--qm-brand-50); transition: transform .2s, box-shadow .2s; }
.ec1-cat-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.ec1-cat-tile:hover .ec1-cat-tile__img { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.ec1-cat-tile__name { font-size: .85rem; font-weight: 600; text-align: center; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ec1-cat-nav { position: absolute; top: 38%; transform: translateY(-50%); z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ec1-border, #e5e7eb); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ec1-cat-prev { left: -8px; } .ec1-cat-next { right: -8px; }
.ec1-cat-nav.swiper-button-disabled { opacity: 0; pointer-events: none; }


/* Category strip: centered when all tiles fit, scrolls from the left otherwise */
.ec1-cat-swiper.is-centered .swiper-wrapper { justify-content: safe center; }
.ec1-cat-tile__name { text-align: center; }

/* Promo split banner: smaller type */
.ec1-promo-banner { min-height: 320px; }
.ec1-promo-banner__content { gap: 12px; padding: 40px 40px; }
.ec1-promo-banner__tag { font-size: .68rem; }
.ec1-promo-banner__title { font-size: clamp(1.3rem, 2.2vw, 1.9rem); margin-bottom: 0; }
.ec1-promo-banner__desc { font-size: .85rem; line-height: 1.6; max-width: 340px; margin-bottom: 4px; }
.ec1-promo-banner .ec1-btn { font-size: .78rem; padding: 8px 18px; }

/* Promo grid tiles: smaller type */
.ec1-promo-tile .position-absolute.p-4 { padding: 20px !important; }
.ec1-promo-tile h4 { font-size: 1.1rem; margin-bottom: 8px !important; }
.ec1-promo-tile .ec1-badge { font-size: .62rem; padding: 3px 10px; margin-bottom: 6px !important; }
.ec1-promo-tile .ec1-btn { font-size: .72rem; padding: 6px 14px; }

/* Footer: compact height */
.ec1-footer .row.py-5 { padding-top: 24px !important; padding-bottom: 16px !important; --bs-gutter-y: .75rem; }
.ec1-footer .ec1-footer-logo-text { margin-bottom: 8px !important; }
.ec1-footer .ec1-footer-logo-text img { height: 32px; width: auto; }
.ec1-footer .ec1-footer-heading { margin-bottom: 8px; }
.ec1-footer .ec1-footer-link { padding: 1px 0; font-size: .85rem; }
.ec1-footer .row p { font-size: .85rem; line-height: 1.5; }
.ec1-footer .ec1-social-btn { width: 30px; height: 30px; font-size: .8rem; }
.ec1-footer .ec1-newsletter-input, .ec1-footer .ec1-newsletter-btn { padding-top: 8px; padding-bottom: 8px; }
.ec1-footer-divider .py-4 { padding-top: 10px !important; padding-bottom: 10px !important; }
.ec1-footer .row p { font-size: .85rem !important; line-height: 1.5 !important; }
.ec1-footer .row p.mb-4 { margin-bottom: 10px !important; }

/* Newsletter section: compact */
.ec1-newsletter-section { padding: 32px 0 !important; }
.ec1-newsletter-section .ec1-section-tag { font-size: .68rem; margin-bottom: 4px; }
.ec1-newsletter-section h2 { font-size: 1.35rem; margin: 0 0 6px !important; }
.ec1-newsletter-section p { font-size: .85rem !important; margin-bottom: 0; }
.ec1-newsletter-section .ec1-newsletter-form { margin-top: 14px; max-width: 400px; }
.ec1-newsletter-section .ec1-newsletter-form input { padding: 9px 16px; font-size: .85rem; }
.ec1-newsletter-section .ec1-newsletter-form button { padding: 9px 20px; font-size: .78rem; }
.ec1-newsletter-section p:last-child { font-size: .72rem !important; margin-top: 8px !important; }

/* ===================== Product variant picker ===================== */
.ec1-vp { display: flex; flex-direction: column; gap: 18px; padding: 18px; background: #fff; border: 1px solid var(--ec1-border); border-radius: 14px; }
.ec1-vp-label { font-size: .8125rem; font-weight: 600; color: var(--ec1-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.ec1-vp-label strong { color: var(--ec1-primary, var(--qm-ink)); text-transform: none; letter-spacing: 0; font-size: .875rem; }
.ec1-vp-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ec1-vp-chip, .ec1-vp-card {
  appearance: none; cursor: pointer; font: inherit; color: inherit; text-align: left;
  background: #fff; border: 1.5px solid var(--ec1-border); border-radius: 999px;
  padding: 8px 18px; font-size: .875rem; font-weight: 600; line-height: 1.2;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s, transform .15s;
}
.ec1-vp-chip:hover, .ec1-vp-card:hover { border-color: var(--ec1-primary, var(--qm-ink)); transform: translateY(-1px); }
.ec1-vp-chip.active, .ec1-vp-card.active {
  background: var(--ec1-primary, var(--qm-ink)); border-color: var(--ec1-primary, var(--qm-ink)); color: #fff;
  box-shadow: 0 4px 12px rgba(79,70,229,.25);
}
.ec1-vp-chip.is-unavailable:not(.active) { opacity: .45; border-style: dashed; }
.ec1-vp-chip:focus-visible, .ec1-vp-card:focus-visible { outline: 2px solid var(--ec1-gold, var(--qm-brand)); outline-offset: 2px; }
.ec1-vp-options--cards { flex-direction: column; }
.ec1-vp-card { border-radius: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; }
.ec1-vp-card__diff { font-size: .8125rem; opacity: .85; white-space: nowrap; }

/* Price swaps on selection */
.ec1-price-flash { animation: ec1PriceFlash .35s ease; }
@keyframes ec1PriceFlash { 0% { opacity: .2; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }

/* ===================== Product page info column ===================== */
.ec1-sku { font-size: .78rem; color: var(--ec1-muted); margin-top: 2px; }
.ec1-spec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ec1-spec-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  background: var(--qm-brand-50); border: 1px solid var(--qm-brand-100); border-radius: 999px;
  font-size: .76rem; font-weight: 600; color: #3b3b3b;
}
.ec1-spec-chip i { color: var(--ec1-gold, var(--qm-brand)); font-size: .85rem; }
.ec1-price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--ec1-border-light, #eee); border-bottom: 1px solid var(--ec1-border-light, #eee);
}
.ec1-price-row .ec1-price-large { font-size: 2rem; }
.ec1-save-badge {
  background: #9b1c1c; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 8px; box-shadow: 0 4px 10px rgba(155,28,28,.25);
}
.ec1-stock-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: 999px; background: #e8f4ec; color: #17653a; font-size: .8rem; font-weight: 600;
}
.ec1-stock-pill--low { background: #fff4e0; color: #9a5b00; }
.ec1-stock-pill--out { background: #fde8e8; color: #9b1c1c; }
.ec1-trust-box {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 12px 14px;
  padding: 16px 18px; background: var(--qm-brand-50); border: 1px solid var(--qm-brand-100); border-radius: 14px;
}
.ec1-trust-item { display: flex; align-items: flex-start; gap: 12px; }
.ec1-trust-item > i { font-size: 1.35rem; line-height: 1; color: var(--ec1-primary, var(--qm-ink)); }
.ec1-trust-item__title { font-size: .82rem; font-weight: 700; }
.ec1-trust-item__sub { font-size: .73rem; color: var(--ec1-muted); margin-top: 1px; }

/* Smaller variant options */
.ec1-vp { gap: 12px; padding: 14px 16px; border-radius: 12px; }
.ec1-vp-label { font-size: .7rem; margin-bottom: 6px; }
.ec1-vp-label strong { font-size: .78rem; }
.ec1-vp-options { gap: 6px; }
.ec1-vp-chip, .ec1-vp-card { padding: 5px 13px; font-size: .78rem; border-width: 1px; }
.ec1-vp-card { padding: 9px 12px; }
.ec1-vp-chip.active, .ec1-vp-card.active { box-shadow: 0 2px 8px rgba(79,70,229,.22); }

/* Product page: compact spacing */
.ec1-pdp > .container-xl > .row { --bs-gutter-y: 1rem; --bs-gutter-x: 2rem; }
.ec1-pdp .ec1-add-to-cart-form > .d-flex.flex-column { gap: 12px !important; }
.ec1-pdp .ec1-price-row { padding: 10px 0; }
.ec1-pdp .ec1-price-row .ec1-price-large { font-size: 1.75rem; }
.ec1-pdp .ec1-vp { padding: 12px 14px; gap: 10px; }
.ec1-pdp .ec1-trust-box { padding: 12px 14px; }
.ec1-pdp .ec1-tab-content { padding-top: 14px; }
.ec1-pdp .ec1-tabs { margin-bottom: 0; }

/* ===================== Product gallery: frame, sticky, zoom ===================== */
@media (min-width: 768px) {
  .ec1-gallery-col { position: sticky; top: 96px; align-self: flex-start; }
}
.ec1-gallery-main {
  background: #fff; padding: 16px; cursor: zoom-in;
  border: 1px solid var(--ec1-border); border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .08), inset 0 0 0 5px #fff, inset 0 0 0 6px var(--qm-line-soft);
}
.ec1-gallery-main img { border-radius: 8px; }
.ec1-zoom-btn {
  position: absolute; top: 14px; right: 14px; z-index: 2; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #1f2937; font-size: .78rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .15s, background .15s;
}
.ec1-zoom-btn:hover { background: #fff; transform: translateY(-1px); }
.ec1-gallery-thumb { background: #fff; }

.ec1-lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(8, 12, 20, .92);
  display: flex; align-items: center; justify-content: center;
}
.ec1-lightbox[hidden] { display: none; }
.ec1-lightbox__stage { max-width: 92vw; max-height: 86vh; overflow: hidden; border-radius: 10px; display: flex; }
.ec1-lightbox__stage img {
  height: 86vh; width: auto; max-width: 92vw; object-fit: contain; background: #fff; cursor: zoom-in;
  transition: transform .2s ease; transform: scale(1); user-select: none;
}
.ec1-lightbox__stage.is-zoomed img { transform: scale(2.4); cursor: zoom-out; }
.ec1-lightbox__close, .ec1-lightbox__nav {
  position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.14);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.ec1-lightbox__close:hover, .ec1-lightbox__nav:hover { background: rgba(255,255,255,.3); }
.ec1-lightbox__close { top: 18px; right: 18px; }
.ec1-lightbox__nav { top: 50%; transform: translateY(-50%); }
.ec1-lightbox__nav--prev { left: 18px; } .ec1-lightbox__nav--next { right: 18px; }
.ec1-lightbox__hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: .8rem; }

/* Lightbox: clear, easy-to-hit close button (mobile friendly) */
.ec1-lightbox__close {
  top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 5;
  width: 48px; height: 48px; font-size: 1.25rem;
  background: #fff; color: #111; box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.ec1-lightbox__close:hover, .ec1-lightbox__close:active { background: #f1f1f1; }
.ec1-lightbox__nav { z-index: 4; }
.ec1-lightbox__stage { max-height: 86dvh; }
.ec1-lightbox__stage img { height: 86dvh; }
.ec1-lightbox__hint { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); padding: 0 16px; }
@media (max-width: 575px) {
  .ec1-lightbox__nav { width: 40px; height: 40px; }
  .ec1-lightbox__nav--prev { left: 8px; } .ec1-lightbox__nav--next { right: 8px; }
}

/* Lightbox: no white bars around the image; fit phones properly */
.ec1-lightbox__stage { background: transparent; max-width: 96vw; }
.ec1-lightbox__stage img { background: transparent; height: auto; width: 96vw; max-width: 96vw; max-height: 84dvh; object-fit: contain; }
@media (min-width: 768px) {
  .ec1-lightbox__stage img { height: 86dvh; max-width: 92vw; max-height: 86dvh; }
}
.ec1-lightbox__close { border: 2px solid rgba(0,0,0,.25); }

/* ===== Ratings & reviews ===== */
.ec1-stars { display: inline-flex; gap: 1px; color: #f5a623; font-size: .8rem; line-height: 1; vertical-align: middle; }
.ec1-stars .bi-star { color: #d1d5db; }
.ec1-stars--lg { font-size: 1.15rem; gap: 2px; }
.ec1-product-card__rating { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: .75rem; color: var(--ec1-muted); }
.ec1-rating-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .875rem; color: var(--ec1-muted); text-decoration: none; }
.ec1-rating-link:hover { color: var(--ec1-primary); }
.ec1-rating-link strong { color: var(--ec1-text); }
.ec1-shop-sort { width: auto; min-width: 170px; margin-left: auto; }
.ec1-filter-check .ec1-stars { font-size: .85rem; }

.ec1-reviews__summary { background: var(--ec1-bg); border: 1px solid var(--ec1-border); border-radius: var(--ec1-radius-lg); padding: 24px; text-align: center; }
.ec1-reviews__score { font-family: var(--ec1-font-heading); font-size: 3rem; font-weight: 700; line-height: 1; color: var(--ec1-text); margin-bottom: 8px; }
.ec1-reviews__based { font-size: .875rem; color: var(--ec1-muted); margin-top: 8px; }
.ec1-reviews__bars { margin: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.ec1-reviews__bar-row { display: flex; align-items: center; gap: 10px; font-size: .8125rem; color: var(--ec1-text-2); }
.ec1-reviews__bar-label { width: 34px; text-align: left; white-space: nowrap; }
.ec1-reviews__bar-label i { color: #f5a623; font-size: .7rem; }
.ec1-reviews__bar { flex: 1; height: 8px; background: var(--ec1-border); border-radius: var(--ec1-radius-full); overflow: hidden; }
.ec1-reviews__bar span { display: block; height: 100%; background: #f5a623; border-radius: inherit; }
.ec1-reviews__bar-count { width: 28px; text-align: right; color: var(--ec1-muted); }
.ec1-reviews__note { font-size: .8125rem; color: var(--ec1-muted); }
.ec1-reviews__heading { font-family: var(--ec1-font-heading); font-size: 1.125rem; font-weight: 700; }
.ec1-reviews__empty { text-align: center; padding: 48px 16px; color: var(--ec1-muted); border: 1px dashed var(--ec1-border); border-radius: var(--ec1-radius-lg); }
.ec1-reviews__empty i { font-size: 2rem; display: block; margin-bottom: 8px; color: var(--ec1-light); }

.ec1-review-form { border: 1px solid var(--ec1-border); border-radius: var(--ec1-radius-lg); padding: 20px; margin-bottom: 24px; background: var(--ec1-surface); }
.ec1-review-form__title { font-family: var(--ec1-font-heading); font-size: 1.125rem; font-weight: 700; margin-bottom: 16px; }
.ec1-star-input { display: inline-flex; gap: 4px; }
.ec1-star-input button { border: 0; background: none; padding: 2px; font-size: 1.75rem; line-height: 1; color: #d1d5db; cursor: pointer; transition: color .15s, transform .15s; }
.ec1-star-input button.is-on { color: #f5a623; }
.ec1-star-input button:hover { transform: scale(1.1); }

.ec1-review-list { display: flex; flex-direction: column; }
.ec1-review { padding: 20px 0; border-bottom: 1px solid var(--ec1-border-light); }
.ec1-review:first-child { padding-top: 0; }
.ec1-review__head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.ec1-review__avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--ec1-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ec1-review__author { font-weight: 600; color: var(--ec1-text); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.ec1-review__verified { font-size: .75rem; font-weight: 500; color: var(--ec1-success); }
.ec1-review__meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ec1-muted); margin-top: 2px; }
.ec1-review__title { font-weight: 700; color: var(--ec1-text); margin-bottom: 4px; }
.ec1-review__body { color: var(--ec1-text-2); line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.ec1-review__reply { margin-top: 12px; padding: 12px 14px; background: var(--ec1-bg); border-left: 3px solid var(--ec1-accent); border-radius: var(--ec1-radius-sm); font-size: .875rem; color: var(--ec1-text-2); }
.ec1-review__reply-label { font-weight: 600; color: var(--ec1-primary); margin-bottom: 4px; font-size: .8125rem; }
.ec1-order-rate { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: .8125rem; font-weight: 600; color: var(--ec1-primary); text-decoration: none; }
.ec1-order-rate:hover { color: var(--ec1-accent-hover); }
/* ===== Product page: in-cart counter ===== */
.ec1-qty--cart .ec1-qty-input { display: inline-flex; align-items: center; justify-content: center; }
.ec1-qty--cart .ec1-qty-btn.is-remove { color: #dc3545; }
.ec1-qty--cart .ec1-qty-btn.is-remove:hover { background: #dc3545; color: #fff; }
.ec1-qty--cart .ec1-qty-btn:disabled { opacity: .4; cursor: not-allowed; background: var(--ec1-bg); color: var(--ec1-muted); }
#ec1InCartRow.is-busy .ec1-qty { opacity: .6; pointer-events: none; }
#ec1BuyRow[hidden], #ec1InCartRow[hidden] { display: none !important; }

/* ===== Product card: in-cart stepper (QuickMart full-width CTA) ===== */
.ec1-card-cart .ec1-card-stepper { display: none; }
.ec1-card-cart.is-in-cart .ec1-add-to-cart-form { display: none; }
.ec1-card-cart.is-in-cart .ec1-card-stepper {
  display: flex; align-items: stretch; width: 100%; height: 40px;
  border: 1.5px solid var(--qm-brand); border-radius: 10px; overflow: hidden; background: #fff;
}
.ec1-card-step {
  flex: 0 0 44px; border: none; background: transparent; color: var(--qm-brand);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  cursor: pointer; transition: background .2s, color .2s;
}
.ec1-card-step:hover { background: var(--qm-brand); color: #fff; }
.ec1-card-step.is-remove { background: transparent; color: #dc3545; }
.ec1-card-step.is-remove:hover { background: #dc3545; color: #fff; }
.ec1-card-step:disabled { opacity: .35; cursor: not-allowed; background: transparent; color: var(--qm-brand); }
.ec1-card-step-qty { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--qm-ink); }
.ec1-card-cart.is-busy .ec1-card-stepper { opacity: .6; pointer-events: none; }