/* =====================================================================
   QuickMart — multipurpose storefront design layer
   Loaded after theme.css. Re-maps the shared --ec1-* tokens (so every
   legacy page inherits the new look) and styles the redesigned
   components (qm-*): header, hero, cards, sections, footer.
   ===================================================================== */

:root {
  /* Brand */
  --qm-brand:        #4f46e5;
  --qm-brand-600:    #4338ca;
  --qm-brand-700:    #3730a3;
  --qm-brand-50:     #eef2ff;
  --qm-brand-100:    #e0e7ff;
  --qm-accent:       #f97316;   /* deals, urgency */
  --qm-accent-600:   #ea580c;
  --qm-sale:         #e11d48;
  --qm-success:      #16a34a;

  /* Neutrals */
  --qm-ink:          #0f172a;
  --qm-ink-2:        #1e293b;
  --qm-text:         #1e293b;
  --qm-text-2:       #475569;
  --qm-muted:        #64748b;
  --qm-line:         #e2e8f0;
  --qm-line-soft:    #eef1f6;
  --qm-bg:           #f5f6fa;
  --qm-surface:      #ffffff;

  --qm-font-head:    'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --qm-font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --qm-r-sm: 10px;
  --qm-r:    14px;
  --qm-r-lg: 20px;
  --qm-r-xl: 28px;

  --qm-shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --qm-shadow:    0 8px 24px -8px rgba(15,23,42,.14);
  --qm-shadow-lg: 0 24px 48px -16px rgba(15,23,42,.22);
  --qm-ease: cubic-bezier(.2,.7,.2,1);

  /* Legacy token re-map (theme.css + every page template) */
  --ec1-primary:       var(--qm-ink);
  --ec1-primary-light: var(--qm-ink-2);
  --ec1-accent:        var(--qm-brand);
  --ec1-accent-hover:  var(--qm-brand-600);
  --ec1-gold:          var(--qm-accent);
  --ec1-black:         var(--qm-ink);
  --ec1-bg:            var(--qm-bg);
  --ec1-text:          var(--qm-text);
  --ec1-text-2:        var(--qm-text-2);
  --ec1-muted:         var(--qm-muted);
  --ec1-border:        var(--qm-line);
  --ec1-border-light:  var(--qm-line-soft);
  --ec1-danger:        var(--qm-sale);
  --ec1-font-body:     var(--qm-font-body);
  --ec1-font-heading:  var(--qm-font-head);
  --ec1-radius:        var(--qm-r);
  --ec1-radius-lg:     var(--qm-r-lg);
  --ec1-shadow-lg:     var(--qm-shadow-lg);
  --ec1-header-h:      auto;
}

body { background: var(--qm-bg); color: var(--qm-text); font-family: var(--qm-font-body); }
h1, h2, h3, h4, h5, h6 { font-family: var(--qm-font-head); letter-spacing: -.02em; color: var(--qm-ink); }
::selection { background: var(--qm-brand-100); color: var(--qm-brand-700); }
:focus-visible { outline: 2px solid var(--qm-brand); outline-offset: 2px; }

/* Legacy buttons pick up the new look */
.ec1-btn { border-radius: var(--qm-r-sm); text-transform: none; letter-spacing: 0; font-weight: 600; }
.ec1-btn-accent:hover { box-shadow: 0 10px 24px -8px rgba(79,70,229,.55); }
.btn-primary { --bs-btn-bg: var(--qm-brand); --bs-btn-border-color: var(--qm-brand); --bs-btn-hover-bg: var(--qm-brand-600); --bs-btn-hover-border-color: var(--qm-brand-600); --bs-btn-active-bg: var(--qm-brand-700); }
.form-control:focus, .form-select:focus { border-color: var(--qm-brand); box-shadow: 0 0 0 .2rem rgba(79,70,229,.15); }
.form-check-input:checked { background-color: var(--qm-brand); border-color: var(--qm-brand); }
.ec1-section-tag { color: var(--qm-brand); }
.ec1-page-banner { background: linear-gradient(120deg, var(--qm-ink) 0%, #312e81 100%); }

/* .g-lg-5 rows (3rem gutter) overflow .container-xl's 0.75rem padding by 12px,
   causing a horizontal page scroll — cap the horizontal gutter at 1.5rem. */
@media (min-width: 992px) { .row.g-lg-5 { --bs-gutter-x: 1.5rem; } }
/* theme.css gives the product-page row a 2rem gutter; pad its container to match. */
.ec1-pdp > .container-xl { padding-inline: 1rem; }

/* ===================== Buttons ===================== */
.qm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--qm-r-sm); border: 1.5px solid transparent;
  font-weight: 600; font-size: .925rem; line-height: 1.2; white-space: nowrap;
  transition: transform .2s var(--qm-ease), box-shadow .2s var(--qm-ease), background .2s, color .2s;
}
.qm-btn:hover { transform: translateY(-1px); }
.qm-btn i { transition: transform .2s var(--qm-ease); }
.qm-btn:hover i.bi-arrow-right { transform: translateX(3px); }
.qm-btn--white { background: #fff; color: var(--qm-ink); }
.qm-btn--white:hover { color: var(--qm-brand); box-shadow: 0 12px 28px -10px rgba(0,0,0,.35); }
.qm-btn--ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.qm-btn--ghost-light:hover { background: rgba(255,255,255,.22); color: #fff; }
.qm-btn--accent { background: var(--qm-accent); color: #fff; }
.qm-btn--accent:hover { background: var(--qm-accent-600); color: #fff; box-shadow: 0 12px 28px -10px rgba(249,115,22,.6); }
.qm-btn--brand { background: var(--qm-brand); color: #fff; }
.qm-btn--brand:hover { background: var(--qm-brand-600); color: #fff; }

.qm-link { display: inline-flex; align-items: center; gap: 6px; color: var(--qm-brand); font-weight: 600; font-size: .9rem; }
.qm-link:hover { color: var(--qm-brand-700); }
.qm-link:hover i { transform: translateX(3px); }
.qm-link i { transition: transform .2s var(--qm-ease); }

.qm-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--qm-brand);
}
.qm-eyebrow--light { color: rgba(255,255,255,.85); }
.qm-eyebrow--deal { color: #fdba74; }

.qm-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--qm-line); color: var(--qm-ink);
  transition: all .2s var(--qm-ease);
}
.qm-arrow:hover { background: var(--qm-ink); border-color: var(--qm-ink); color: #fff; }
.qm-arrow.swiper-button-disabled { opacity: .35; pointer-events: none; }

/* ===================== Announcement / utility ===================== */
.ec1-announce {
  background: linear-gradient(90deg, var(--qm-brand-700), var(--qm-brand) 50%, #7c3aed);
  color: #fff; font-weight: 500; font-size: .8rem; padding: 8px 48px;
}
.ec1-announce-close { color: rgba(255,255,255,.8); }

.qm-utility { background: #fff; border-bottom: 1px solid var(--qm-line-soft); font-size: .78rem; }
.qm-utility .container-xl { min-height: 36px; }
.qm-utility a { color: var(--qm-muted); display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.qm-utility a:hover { color: var(--qm-brand); }
.qm-utility__left, .qm-utility__right { display: flex; gap: 20px; }

/* ===================== Header ===================== */
.ec1-header.qm-header {
  height: auto; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--qm-line);
}
.ec1-header.qm-header.scrolled { box-shadow: 0 8px 24px -12px rgba(15,23,42,.18); }
.ec1-header.qm-header .container-xl { height: auto; display: block; }
.qm-header__main { display: flex; align-items: center; gap: 16px; min-height: 76px; }

.qm-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.qm-logo__img { height: 40px; width: auto; }
.qm-logo__mark {
  width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--qm-brand) 0%, #7c3aed 100%); color: #fff; font-size: 1.15rem;
  box-shadow: 0 8px 18px -6px rgba(79,70,229,.6);
}
.qm-logo__text { font-family: var(--qm-font-head); font-weight: 800; font-size: 1.45rem; color: var(--qm-ink); letter-spacing: -.03em; }
.qm-logo__text span { color: var(--qm-brand); }

/* Logo lockup (partials/logo.blade.php). Sized in em off .qm-lockup's font-size.
   Metrics measured from Plus Jakarta Sans 800: the wordmark's ink starts .15em below
   its line box and its descender hangs .11em under it; it is 4.66em wide, so the
   tagline (600x29 viewBox) is .225em tall and the mark = .96 + .12 + .225 = 1.305em. */
.qm-lockup { display: inline-flex; align-items: center; gap: .22em; font-size: 34px; font-family: var(--qm-font-head); font-weight: 800; line-height: 1; }
.qm-lockup__mark { width: 1.305em; height: 1.305em; flex-shrink: 0; display: block; }
.qm-lockup__words { width: min-content; display: flex; flex-direction: column; gap: .12em; }
.qm-lockup__name { display: block; line-height: 1; letter-spacing: -.045em; white-space: nowrap; color: var(--qm-ink); margin: -.15em 0 .11em; }
.qm-lockup__name span { color: var(--qm-brand); }
.qm-lockup__tag { display: block; width: 100%; height: auto; overflow: visible; color: #475569; }
.qm-lockup--dark .qm-lockup__name { color: #fff; }
.qm-lockup--dark .qm-lockup__name span { color: #a5b4fc; }
.qm-lockup--dark .qm-lockup__tag { color: #cbd5e1; }
.qm-logo--menu .qm-lockup { font-size: 28px; }
@media (max-width: 575.98px) { .qm-header .qm-lockup { font-size: 28px; } }

.qm-search {
  flex: 1; max-width: 680px; margin-inline: auto; align-items: stretch;
  background: var(--qm-bg); border: 1.5px solid transparent; border-radius: 14px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.qm-search:focus-within { background: #fff; border-color: var(--qm-brand); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.qm-search__scope {
  border: 0; background: transparent; padding: 0 30px 0 16px; font-size: .85rem; font-weight: 600; color: var(--qm-text);
  border-right: 1px solid var(--qm-line); max-width: 160px; outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.ec1-header-search.qm-search input.qm-search__input {
  flex: 1; border: 0; background: transparent; color: var(--qm-text); padding: 13px 16px; font-size: .925rem; border-radius: 0;
}
.ec1-header-search.qm-search input.qm-search__input::placeholder { color: #94a3b8; }
.ec1-header-search-btn.qm-search__btn {
  position: static; transform: none; margin: 5px; width: 46px; height: auto; border-radius: 10px; flex-shrink: 0;
  background: var(--qm-brand); color: #fff; border: 0; display: inline-flex; align-items: center; justify-content: center;
}
.ec1-header-search-btn.qm-search__btn:hover { background: var(--qm-brand-600); }
.qm-search .ec1-shop-search-results { top: calc(100% + 8px); border-radius: var(--qm-r); box-shadow: var(--qm-shadow-lg); border: 1px solid var(--qm-line); }

.qm-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.qm-search + .qm-actions { margin-left: 0; }
.qm-action {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px;
  color: var(--qm-ink); text-decoration: none; transition: background .15s;
}
.qm-action:hover { background: var(--qm-bg); color: var(--qm-ink); }
.qm-action > i, .qm-action .bi-bag { font-size: 1.4rem; line-height: 1; }
.qm-action__text { display: flex; flex-direction: column; font-size: .875rem; font-weight: 700; line-height: 1.15; }
.qm-action__text small { font-size: .72rem; font-weight: 500; color: var(--qm-muted); }
.qm-action--cart { background: var(--qm-brand-50); }
.qm-action--cart:hover { background: var(--qm-brand-100); }
.ec1-header-badge.qm-badge {
  top: -6px; right: -9px; min-width: 19px; height: 19px; font-size: .68rem;
  background: var(--qm-accent); border: 2px solid #fff;
}
.qm-icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: var(--qm-ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0;
}
.qm-icon-btn:hover { background: var(--qm-bg); }

/* Department / menu row */
.qm-nav { border-top: 1px solid var(--qm-line-soft); }
.qm-nav .container-xl { display: flex !important; min-height: 50px; }
.qm-dept__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; border: 0;
  background: var(--qm-ink); color: #fff; font-weight: 600; font-size: .875rem;
}
.qm-dept__btn .ec1-nav-caret { font-size: .7rem; transition: transform .2s; }
.qm-dept__menu { min-width: 280px; padding: 8px; border-radius: var(--qm-r); box-shadow: var(--qm-shadow-lg); }
.qm-dept__link { display: flex !important; align-items: center; gap: 12px; padding: 8px 10px !important; border-radius: 10px; font-weight: 500; }
.qm-dept__link img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.qm-dept__link:hover { background: var(--qm-brand-50); color: var(--qm-brand-700) !important; }

.qm-menu { display: flex; gap: 2px; }
.qm-header .ec1-nav-link { color: var(--qm-text); font-weight: 600; font-size: .875rem; padding: 8px 12px; }
.qm-header .ec1-nav-link:hover, .qm-header .ec1-nav-link.active { color: var(--qm-brand); background: var(--qm-brand-50); }
.qm-header .ec1-nav-sub-link { color: var(--qm-text); }

.qm-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--qm-text); background: var(--qm-bg);
}
.qm-pill:hover { color: var(--qm-brand); background: var(--qm-brand-50); }
.qm-pill--deal { background: #fff7ed; color: var(--qm-accent-600); }
.qm-pill--deal:hover { background: #ffedd5; color: var(--qm-accent-600); }

/* ===================== Sections ===================== */
.qm-section { padding: 28px 0; }
.qm-section--tight { padding: 16px 0; }
.qm-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.qm-section__title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); font-weight: 800; margin: 4px 0 0; }
.qm-section__head--light .qm-section__title { color: #fff; }

/* ===================== Hero ===================== */
.ec1-hero.qm-hero { background: transparent; overflow: visible; padding: 20px 0 8px; }
.qm-hero__grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 16px; }
.qm-hero__grid--solo { grid-template-columns: 1fr; }
.qm-hero__main { min-width: 0; border-radius: var(--qm-r-xl); overflow: hidden; background: var(--qm-ink); }
.qm-hero__main .swiper, .qm-hero__main .swiper-slide { height: 100%; }
.qm-slide { position: relative; min-height: 440px; height: 100%; display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(120deg, var(--qm-brand-700), #7c3aed); }
.qm-slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qm-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.15) 55%, transparent 80%); }
.qm-slide__content { position: relative; z-index: 2; padding: 48px clamp(24px, 5vw, 64px); max-width: 620px; color: #fff; }
.qm-slide__title { color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); font-weight: 800; line-height: 1.05; margin: 12px 0 14px; letter-spacing: -.035em; }
.qm-slide__desc { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 440px; margin-bottom: 26px; }
.qm-hero .swiper-pagination { bottom: 20px !important; left: clamp(24px, 5vw, 64px) !important; width: auto !important; text-align: left; }
.qm-hero .swiper-pagination-bullet { background: rgba(255,255,255,.5); }
.qm-hero .swiper-pagination-bullet-active { background: #fff; width: 26px; }

.qm-hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.qm-side-promo {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--qm-r-xl);
  min-height: 212px; background: var(--qm-ink); color: #fff; text-decoration: none; isolation: isolate;
}
.qm-side-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--qm-ease); }
.qm-side-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(15,23,42,.55), transparent 65%); }
.qm-side-promo:hover img { transform: scale(1.05); }
.qm-side-promo__body { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; }
.qm-side-promo__title { font-family: var(--qm-font-head); font-weight: 800; font-size: 1.35rem; line-height: 1.15; max-width: 240px; }
.qm-side-promo__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .875rem; margin-top: 4px; }
.qm-side-promo:hover .qm-side-promo__cta i { transform: translateX(3px); }
.qm-side-promo__cta i { transition: transform .2s; }

/* ===================== Trust strip ===================== */
.qm-trust { padding: 8px 0; }
.qm-trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--qm-line-soft);
  border-radius: var(--qm-r-lg); box-shadow: var(--qm-shadow-sm);
}
.qm-trust__item { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.qm-trust__item + .qm-trust__item { border-left: 1px solid var(--qm-line-soft); }
.qm-trust__icon { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--qm-brand-50); color: var(--qm-brand); font-size: 1.3rem; }
.qm-trust__title { font-weight: 700; font-size: .925rem; color: var(--qm-ink); }
.qm-trust__desc { font-size: .8rem; color: var(--qm-muted); }

/* ===================== Departments ===================== */
.qm-dept-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.qm-dept-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px 14px;
  background: #fff; border: 1px solid var(--qm-line-soft); border-radius: var(--qm-r-lg); text-decoration: none;
  transition: transform .25s var(--qm-ease), box-shadow .25s var(--qm-ease), border-color .25s;
}
.qm-dept-card:hover { transform: translateY(-4px); box-shadow: var(--qm-shadow); border-color: var(--qm-brand-100); }
.qm-dept-card__img { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; background: var(--qm-bg); }
.qm-dept-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--qm-ease); }
.qm-dept-card:hover .qm-dept-card__img img { transform: scale(1.08); }
.qm-dept-card__name { font-weight: 700; font-size: .875rem; color: var(--qm-ink); line-height: 1.25; }
.qm-dept-card__count { font-size: .75rem; color: var(--qm-muted); }

/* ===================== Deals band ===================== */
.qm-deals {
  position: relative; padding: 26px; border-radius: var(--qm-r-xl); overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #312e81 0%, var(--qm-ink) 55%);
}
.qm-deals::before { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: rgba(249,115,22,.22); filter: blur(60px); }
.qm-deals > * { position: relative; }
.qm-deals .qm-arrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.qm-deals .qm-arrow:hover { background: #fff; color: var(--qm-ink); }
.qm-countdown { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 700; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.08); }
.qm-countdown__label { font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.7); margin-right: 6px; }
.qm-countdown__box { min-width: 34px; padding: 5px 6px; border-radius: 8px; background: var(--qm-accent); text-align: center; font-variant-numeric: tabular-nums; }

/* ===================== Product card ===================== */
.ec1-product-card.qm-card {
  border-radius: var(--qm-r-lg); border: 1px solid var(--qm-line-soft); background: #fff; padding: 0;
  box-shadow: var(--qm-shadow-sm);
}
.ec1-product-card.qm-card:hover { transform: translateY(-4px); box-shadow: var(--qm-shadow-lg); border-color: transparent; }
.qm-card__media { position: relative; width: auto; aspect-ratio: 1 / 1; margin: 8px 8px 0; border-radius: calc(var(--qm-r-lg) - 6px); overflow: hidden; background: var(--qm-bg); }
.qm-card__media > a:not(.qm-card__quick), .qm-card__media img { display: block; width: 100%; height: 100%; }
/* The quick-view link also sits directly in the media box; undo the base theme's
   full-bleed `.ec1-product-card__img > a { inset: 0 }` so it stays a small round button. */
.qm-card__media > a.qm-card__quick { inset: 54px 10px auto auto; width: 36px; height: 36px; display: flex; }
.qm-card__media img { object-fit: cover; transition: transform .5s var(--qm-ease); }
.qm-card:hover .qm-card__media img { transform: scale(1.05); }
.qm-card.is-out .qm-card__media img { filter: grayscale(.7); opacity: .7; }

.qm-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.qm-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 8px; font-size: .72rem; font-weight: 700; line-height: 1; color: #fff; }
.qm-tag--sale { background: var(--qm-sale); }
.qm-tag--hot { background: var(--qm-accent); }
.qm-tag--new { background: var(--qm-brand); }
.qm-tag--muted { background: #64748b; }

.ec1-product-card__wishlist.qm-card__wish, .qm-card__quick {
  position: absolute; right: 10px; width: 36px; height: 36px; border-radius: 50%; z-index: 2;
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.95); border: 0;
  color: var(--qm-ink); box-shadow: var(--qm-shadow-sm); font-size: .95rem;
  opacity: 1; transform: none; transition: transform .2s var(--qm-ease), color .2s, opacity .2s;
}
.qm-card__wish { top: 10px; }
.qm-card__quick { top: 54px; opacity: 0; transform: translateX(8px); }
.qm-card:hover .qm-card__quick { opacity: 1; transform: none; }
.qm-card__wish:hover, .qm-card__quick:hover { color: var(--qm-sale); transform: scale(1.08); }
.qm-card__quick:hover { color: var(--qm-brand); }
.qm-card__wish.active { color: var(--qm-sale); }

.qm-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.qm-card__cat { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--qm-muted); }
.qm-card__name {
  font-family: var(--qm-font-body); font-weight: 600; font-size: .925rem; line-height: 1.35; color: var(--qm-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.qm-card__name:hover { color: var(--qm-brand); }
.qm-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.qm-card__price .ec1-price-now { font-family: var(--qm-font-head); font-weight: 800; font-size: 1.1rem; color: var(--qm-ink); }
.qm-card__price .ec1-price-sale { color: var(--qm-sale); }
.qm-card__price .ec1-price-old { font-size: .82rem; color: #94a3b8; text-decoration: line-through; }
.qm-card__cta { margin-top: auto; padding-top: 10px; }
.qm-card__cta form { margin: 0; }
.qm-card__btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--qm-line); background: #fff;
  color: var(--qm-ink); font-weight: 600; font-size: .85rem; transition: all .2s var(--qm-ease); text-decoration: none;
}
.qm-card__btn:hover, .qm-card:hover .qm-card__btn:not(.is-disabled) { background: var(--qm-brand); border-color: var(--qm-brand); color: #fff; }
.qm-card__btn.is-disabled { color: var(--qm-muted); background: var(--qm-bg); border-color: transparent; cursor: not-allowed; }
.qm-card__btn .ec1-loading-dots span { background: currentColor; }

/* Product grid (home trending) and shop listing grid harmonised */
.qm-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ec1-product-swiper .swiper-slide { padding-bottom: 6px; }

/* ===================== Promo banner ===================== */
.qm-promo { position: relative; overflow: hidden; border-radius: var(--qm-r-xl); min-height: 300px; display: flex; align-items: center;
  background: linear-gradient(120deg, #f59e0b, #f97316); isolation: isolate; }
.qm-promo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.qm-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,23,42,.35), transparent 60%); }
.qm-promo__content { padding: 40px clamp(24px, 5vw, 64px); max-width: 560px; color: #fff; }
.qm-promo__title { color: #fff; font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.08; margin: 10px 0 12px; }
.qm-promo__desc { color: rgba(255,255,255,.9); margin-bottom: 22px; }

/* ===================== Brands ===================== */
.qm-brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.qm-brand {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-radius: var(--qm-r);
  border: 1px solid var(--qm-line-soft); text-decoration: none; transition: all .2s var(--qm-ease);
}
.qm-brand:hover { border-color: var(--qm-brand-100); box-shadow: var(--qm-shadow); transform: translateY(-2px); }
.qm-brand__mark { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--qm-font-head); font-weight: 800; color: var(--qm-brand); background: var(--qm-brand-50); }
.qm-brand__name { font-weight: 700; color: var(--qm-ink); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===================== Newsletter ===================== */
.qm-newsletter {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 48px);
  border-radius: var(--qm-r-xl); color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--qm-brand-700) 0%, var(--qm-brand) 55%, #7c3aed 100%);
}
.qm-newsletter::after { content: ""; position: absolute; width: 280px; height: 280px; right: -80px; bottom: -140px; border-radius: 50%; background: rgba(255,255,255,.1); }
.qm-newsletter__title { color: #fff; font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem); margin: 8px 0; }
.qm-newsletter__desc { color: rgba(255,255,255,.85); margin: 0; }
.qm-newsletter__form { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.qm-newsletter__form input { flex: 1 1 220px; min-width: 0; padding: 13px 16px; border-radius: var(--qm-r-sm); border: 0; outline: none; font-size: .95rem; }
.qm-newsletter__form small { flex-basis: 100%; color: rgba(255,255,255,.7); font-size: .75rem; }
.qm-newsletter__form small a { color: #fff; text-decoration: underline; }

/* ===================== Footer ===================== */
.ec1-footer.qm-footer { background: var(--qm-ink); color: rgba(255,255,255,.7); margin-top: 40px; }
.qm-footer__top { padding: 56px 0 40px; }
.qm-logo--footer .qm-logo__text { color: #fff; }
.qm-logo--footer .qm-logo__text span { color: #a5b4fc; }
.qm-footer__about { color: rgba(255,255,255,.62); font-size: .9rem; line-height: 1.7; max-width: 360px; }
.qm-footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .875rem; }
.qm-footer__contact i { color: #a5b4fc; margin-right: 6px; }
.qm-footer__contact a { color: rgba(255,255,255,.8); }
.qm-footer__contact a:hover { color: #fff; }
.ec1-footer-heading.qm-footer__heading { color: #fff; font-family: var(--qm-font-head); font-weight: 700; font-size: .95rem; margin-bottom: 14px; text-transform: none; letter-spacing: 0; }
.qm-footer__links, .qm-footer__badges { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.qm-footer .ec1-footer-link { color: rgba(255,255,255,.62); font-size: .875rem; padding: 0; transition: color .15s, padding .15s; }
.qm-footer .ec1-footer-link:hover { color: #fff; padding-left: 4px; }
.qm-footer__badges li { font-size: .85rem; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 8px; }
.qm-footer__badges i { color: #4ade80; }
.qm-social { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); border: 0; color: #fff; }
.qm-social:hover { background: var(--qm-brand); color: #fff; }
.qm-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.qm-footer .ec1-footer-copy { color: rgba(255,255,255,.5); font-size: .825rem; }
.qm-pay { display: flex; gap: 8px; flex-wrap: wrap; }
.qm-pay span { padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }

/* ===================== Mobile toolbar & menu ===================== */
.ec1-toolbar { border-top: 1px solid var(--qm-line); box-shadow: 0 -8px 24px -12px rgba(15,23,42,.18); }
.ec1-toolbar-item.active, .ec1-toolbar-item:hover { color: var(--qm-brand); }
.ec1-toolbar-badge { background: var(--qm-accent); }
#ec1ScrollTop { background: var(--qm-ink); border-radius: 12px; }

.qm-mobile-depts { padding: 16px 20px; border-bottom: 1px solid var(--qm-line-soft); background: var(--qm-bg); }
.qm-mobile-depts__label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--qm-muted); margin-bottom: 10px; }
.qm-mobile-depts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qm-mobile-dept { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; background: #fff;
  text-decoration: none; color: var(--qm-ink); font-size: .72rem; font-weight: 600; text-align: center; line-height: 1.2; }
.qm-mobile-dept img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* ===================== Responsive ===================== */
@media (max-width: 1199.98px) {
  .qm-dept-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .qm-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .qm-hero__grid { grid-template-columns: 1fr; }
  .qm-hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .qm-side-promo { min-height: 180px; }
}
@media (max-width: 991.98px) {
  .qm-header__main { min-height: 64px; gap: 8px; }
  .qm-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .qm-trust__item:nth-child(3) { border-left: 0; }
  .qm-trust__item:nth-child(n+3) { border-top: 1px solid var(--qm-line-soft); }
  .qm-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qm-newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .qm-section { padding: 20px 0; }
  .qm-slide { min-height: 360px; }
  .qm-slide::after { background: linear-gradient(0deg, rgba(15,23,42,.7) 0%, rgba(15,23,42,.2) 70%); }
  .qm-slide { align-items: flex-end; }
  .qm-slide__content { padding: 28px 22px 52px; }
  .qm-slide__desc { font-size: .95rem; margin-bottom: 18px; }
  .qm-hero .swiper-pagination { left: 22px !important; bottom: 18px !important; }
  .qm-hero__main, .qm-side-promo, .qm-deals, .qm-promo, .qm-newsletter { border-radius: var(--qm-r-lg); }
  .qm-hero__side { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qm-side-promo { min-height: 150px; }
  .qm-side-promo__body { padding: 14px; }
  .qm-side-promo__title { font-size: 1rem; }
  .qm-side-promo .qm-eyebrow { display: none; }
  .qm-dept-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 112px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -12px; padding: 4px 12px 8px; scrollbar-width: none; }
  .qm-dept-grid::-webkit-scrollbar { display: none; }
  .qm-dept-card { scroll-snap-align: start; }
  .qm-dept-card__img { width: 68px; height: 68px; }
  .qm-trust__item { padding: 14px; gap: 10px; }
  .qm-trust__icon { width: 38px; height: 38px; font-size: 1.1rem; border-radius: 11px; }
  .qm-trust__title { font-size: .825rem; }
  .qm-trust__desc { font-size: .72rem; }
  .qm-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .qm-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qm-deals { padding: 18px 14px; }
  .qm-card__body { padding: 10px 10px 12px; }
  .qm-card__btn { font-size: .78rem; padding: 9px 8px; }
  .qm-card__quick { display: none; }
  .qm-promo { min-height: 240px; }
  .qm-footer__top { padding: 40px 0 24px; }
  .qm-logo__text { font-size: 1.25rem; }
  .qm-logo__mark { width: 34px; height: 34px; }
}
