/* ============================================================
   MARJANE — Styles v2
   #004899 bleu principal · #F24391 rose fidélité
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #004899;
  --blue-dark:   #003370;
  --blue-light:  #e8f0fb;
  --blue-shadow: rgba(0,72,153,.16);
  --pink:        #F24391;
  --pink-light:  #fde8f2;
  --red:         #d32f2f;
  --green:       #2e7d32;
  --green-light: #e8f5e9;
  --gray:        #f5f6f8;
  --gray2:       #e0e4ec;
  --text:        #1a1a2e;
  --text-light:  #5f6680;
  --white:       #ffffff;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(0,72,153,.10);
  --shadow-md:   0 6px 28px rgba(0,72,153,.18);
  --nav-h:       60px;
  --header-h:    70px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #f4f6fb;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
svg { display: block; flex-shrink: 0; }

/* ── Utilities ─────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-gap { margin-bottom: 40px; }
.text-blue   { color: var(--blue); }
.text-pink   { color: var(--pink); }
.text-green  { color: var(--green); }
.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

/* ══════════════════ POPUP APP ════════════════════════════════ */
.app-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.58);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .25s ease;
}
.app-popup-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

.app-popup {
  background: var(--white);
  border-radius: 20px;
  max-width: 440px; width: 92%;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  animation: slideUp .35s cubic-bezier(.34,1.5,.64,1);
  position: relative;
}
@keyframes slideUp { from { opacity:0; transform:translateY(50px) } to { opacity:1; transform:translateY(0) } }

.popup-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 32px 28px 24px;
  text-align: center; color: white; position: relative;
}
.popup-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: white;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.popup-close:hover { background: rgba(255,255,255,.3); }
.popup-coupon {
  background: var(--pink);
  font-size: 2.8rem; font-weight: 900;
  padding: 10px 26px; border-radius: 14px;
  display: inline-block; margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(242,67,145,.45);
  line-height: 1.2;
}
.popup-coupon small { font-size: .65rem; font-weight: 700; display: block; opacity: .9; letter-spacing: 1px; text-transform: uppercase; }
.popup-header h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 5px; }
.popup-header p  { font-size: .88rem; opacity: .85; }

.popup-body { padding: 24px 28px 28px; }
.popup-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 22px;
}
.popup-step {
  background: var(--blue-light); border-radius: 10px;
  padding: 14px 8px; text-align: center;
  font-size: .75rem; font-weight: 700; color: var(--blue);
}
.popup-step svg { margin: 0 auto 6px; }
.btn-android {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #1a7340;
  color: white; border-radius: 12px;
  padding: 15px 24px; font-size: 1rem; font-weight: 700;
  width: 100%;
  box-shadow: 0 4px 18px rgba(26,115,64,.35);
  transition: background .2s, transform .15s, box-shadow .15s;
}
.btn-android:hover { background: #145c31; transform: translateY(-2px); box-shadow: 0 8px 26px rgba(26,115,64,.45); }
.popup-note { text-align: center; font-size: .73rem; color: var(--text-light); margin-top: 12px; }

/* ══════════════════ HEADER TOP BAR ═══════════════════════════ */
.topbar {
  background: var(--blue-dark);
  color: rgba(255,255,255,.8);
  font-size: .75rem; height: 34px;
  display: flex; align-items: center;
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
}
.topbar a { color: rgba(255,255,255,.75); transition: color .2s; }
.topbar a:hover { color: white; }
.topbar-links { display: flex; gap: 20px; align-items: center; }
.topbar-links .sep { opacity: .3; }
@media (max-width: 640px) { .topbar { display: none; } }

/* ══════════════════ HEADER MAIN ══════════════════════════════ */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px var(--blue-shadow);
  position: sticky; top: 0; z-index: 600;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo img { height: 48px; width: 48px; border-radius: 8px; object-fit: contain; }
.site-logo-text { line-height: 1.2; }
.site-logo-name { font-size: 1.28rem; font-weight: 900; color: var(--blue); letter-spacing: -.5px; }
.site-logo-sub  { font-size: .62rem; color: var(--text-light); display: block; }

/* Search */
.search-wrap {
  flex: 1;
  display: flex; align-items: center;
  background: var(--gray); border: 2px solid var(--gray2);
  border-radius: 10px; overflow: hidden;
  max-width: 620px;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap:focus-within {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(0,72,153,.1);
}
.search-input {
  flex: 1; border: none; background: transparent;
  padding: 11px 16px; font-size: .92rem; outline: none; color: var(--text);
}
.search-input::placeholder { color: #9aa5be; }
.search-btn {
  background: var(--blue); color: white;
  border: none; padding: 11px 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.search-btn:hover { background: var(--blue-dark); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.hdr-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 12px; border-radius: 8px;
  color: var(--blue); font-size: .68rem; font-weight: 700;
  position: relative; transition: background .2s; white-space: nowrap;
}
.hdr-btn:hover { background: var(--blue-light); }
.hdr-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: 2px; right: 6px;
  background: var(--pink); color: white;
  font-size: .6rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: none; align-items: center; justify-content: center;
  padding: 0 4px;
}
.cart-badge.show { display: flex; }

/* Mobile hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: 8px;
  color: var(--blue); transition: background .2s;
}
.hamburger:hover { background: var(--blue-light); }
.hamburger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .3s, opacity .3s; }
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .search-wrap { display: none; }
  .hdr-btn span { display: none; }
  .site-logo-text { display: none; }
}

/* ══════════════════ MAIN NAV ══════════════════════════════════ */
.main-nav {
  background: white;
  border-top: 1px solid var(--gray2);
  box-shadow: 0 2px 6px rgba(0,72,153,.06);
}
.main-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: stretch; overflow-x: auto;
  scrollbar-width: none;
}
.main-nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  display: flex; align-items: center; gap: 7px;
  padding: 0 18px; height: var(--nav-h);
  font-size: .87rem; font-weight: 600; color: var(--text-light);
  white-space: nowrap; flex-shrink: 0;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-link svg { width: 18px; height: 18px; }
.nav-link:hover, .nav-link.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-link.market:hover, .nav-link.market.active { color: var(--green); border-bottom-color: var(--green); }
.nav-badge {
  background: var(--red); color: white;
  font-size: .58rem; font-weight: 800; padding: 1px 5px;
  border-radius: 4px; text-transform: uppercase;
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; top: 0; left: -100%; bottom: 0; width: 280px;
  background: white; z-index: 700; box-shadow: 4px 0 24px rgba(0,0,0,.15);
  transition: left .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  padding-top: 0; overflow-y: auto;
}
.mobile-nav.open { left: 0; }
.mobile-nav-header {
  background: var(--blue); padding: 20px 20px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav-header img { height: 40px; width: 40px; border-radius: 8px; }
.mobile-nav-close { color: white; font-size: 1.4rem; padding: 4px 8px; }
.mobile-nav-links { padding: 12px 0; }
.mobile-nav-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px; font-size: .92rem; font-weight: 600;
  color: var(--text); transition: background .2s, color .2s;
}
.mobile-nav-link svg { width: 20px; height: 20px; color: var(--blue); }
.mobile-nav-link:hover, .mobile-nav-link.active { background: var(--blue-light); color: var(--blue); }
.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 699; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

/* ══════════════════ PAGES (SPA) ════════════════════════════════ */
.page { display: none; }
.page.active { display: block; }

/* ══════════════════ PAGE HERO (inner) ════════════════════════ */
.page-hero {
  padding: 42px 24px; text-align: center;
  color: white; margin-bottom: 36px;
}
.page-hero h1 { font-size: 2rem; font-weight: 900; margin-bottom: 8px; }
.page-hero p  { opacity: .85; font-size: .95rem; }

/* ══════════════════ HERO CAROUSEL ═══════════════════════════ */
.hero-wrap { position: relative; overflow: hidden; background: var(--blue); }
.hero-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); will-change: transform; }
.hero-slide {
  flex: 0 0 100%; min-height: 340px;
  display: flex; align-items: center;
  padding: 40px 60px;
  position: relative; overflow: hidden;
}
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.45);
}
.hero-slide-content { position: relative; z-index: 2; color: white; max-width: 560px; }
.hero-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: .8; margin-bottom: 10px; }
.hero-title { font-size: 2.4rem; font-weight: 900; line-height: 1.15; margin-bottom: 12px; }
.hero-sub   { font-size: 1rem; opacity: .88; margin-bottom: 22px; max-width: 400px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--blue);
  padding: 12px 26px; border-radius: 9px; font-weight: 800; font-size: .92rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: transform .15s, box-shadow .15s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.32); }
.hero-cta.pink { color: var(--pink); }
.hero-cta.green { color: var(--green); }

.hero-controls { position: absolute; bottom: 20px; right: 24px; display: flex; gap: 10px; align-items: center; z-index: 10; }
.hero-dots { display: flex; gap: 6px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: background .3s, transform .3s; }
.hero-dot.active { background: white; transform: scale(1.3); }
.hero-arrow-btn {
  background: rgba(255,255,255,.2); color: white;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.hero-arrow-btn:hover { background: rgba(255,255,255,.35); }

@media (max-width: 768px) {
  .hero-slide { padding: 32px 24px; min-height: 240px; }
  .hero-title  { font-size: 1.55rem; }
  .hero-sub    { font-size: .88rem; }
}

/* ══════════════════ APP BANNER ══════════════════════════════ */
.app-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 14px; padding: 30px 36px;
  display: flex; align-items: center; gap: 24px;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.app-banner::after {
  content: ''; position: absolute;
  right: -80px; top: -80px; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(255,255,255,.05);
  pointer-events: none;
}
.app-banner-text { flex: 1; color: white; }
.app-banner-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 6px; }
.app-banner-title { font-size: 1.65rem; font-weight: 900; margin-bottom: 6px; line-height: 1.25; }
.app-banner-desc  { font-size: .88rem; opacity: .82; }
.app-banner-badge {
  flex-shrink: 0; background: var(--pink);
  color: white; font-size: 2rem; font-weight: 900;
  padding: 14px 22px; border-radius: 14px;
  text-align: center; line-height: 1.1;
  box-shadow: 0 6px 22px rgba(242,67,145,.5);
}
.app-banner-badge small { font-size: .65rem; font-weight: 700; display: block; text-transform: uppercase; letter-spacing: 1px; }
.app-banner-btn {
  flex-shrink: 0; display: flex; align-items: center; gap: 10px;
  background: white; color: var(--blue);
  border-radius: 10px; padding: 14px 22px;
  font-size: .92rem; font-weight: 800;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .15s, box-shadow .15s;
}
.app-banner-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
@media (max-width: 900px) {
  .app-banner { flex-direction: column; padding: 24px; text-align: center; }
  .app-banner-btn { width: 100%; justify-content: center; }
  .app-banner-badge { width: 100%; }
}

/* ══════════════════ SECTION HEADER ══════════════════════════ */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title {
  font-size: 1.2rem; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; display: block; width: 5px; height: 22px;
  background: var(--blue); border-radius: 3px;
}
.section-title.pink::before  { background: var(--pink); }
.section-title.green::before { background: var(--green); }
.see-all {
  display: flex; align-items: center; gap: 5px;
  color: var(--blue); font-size: .82rem; font-weight: 700;
  padding: 7px 14px; border-radius: 8px;
  border: 1.5px solid var(--blue);
  transition: background .2s, color .2s;
}
.see-all:hover { background: var(--blue); color: white; }

/* ══════════════════ CATEGORIES ══════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.cat-card {
  background: white; border-radius: 12px;
  padding: 18px 10px; text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
}
.cat-icon svg { width: 26px; height: 26px; }
.cat-name { font-size: .73rem; font-weight: 700; color: var(--text); line-height: 1.3; }

/* ══════════════════ PRODUCT CARD ════════════════════════════ */
.products-scroll {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: var(--blue-light) transparent;
}
.products-scroll::-webkit-scrollbar { height: 3px; }
.products-scroll::-webkit-scrollbar-thumb { background: var(--blue-light); border-radius: 2px; }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
}
@media (max-width: 480px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card {
  background: white; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  flex-shrink: 0; width: 200px; display: flex; flex-direction: column;
}
.products-grid .product-card { width: auto; flex-shrink: unset; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-img-wrap {
  position: relative; height: 170px; background: var(--gray);
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-discount {
  position: absolute; top: 8px; left: 8px;
  background: var(--red); color: white;
  font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 5px;
}
.product-fav {
  position: absolute; top: 8px; right: 8px;
  background: white; border-radius: 50%; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12); cursor: pointer;
  transition: background .2s; color: #b0b8cc;
}
.product-fav:hover { background: var(--pink-light); color: var(--pink); }
.product-fav.active { background: var(--pink-light); color: var(--pink); }
.product-fav svg { width: 15px; height: 15px; }

.product-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: .67rem; font-weight: 700; color: var(--blue); text-transform: uppercase; margin-bottom: 3px; letter-spacing: .5px; }
.product-name  { font-size: .83rem; font-weight: 600; color: var(--text); line-height: 1.35; flex: 1; margin-bottom: 8px; }
.product-price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 10px; }
.price-now  { font-size: 1.1rem; font-weight: 900; color: var(--blue); }
.price-old  { font-size: .78rem; color: var(--text-light); text-decoration: line-through; }
.btn-cart {
  width: 100%; background: var(--blue); color: white;
  border-radius: 8px; padding: 9px 12px;
  font-size: .83rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s, transform .15s;
}
.btn-cart:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-cart.added { background: var(--green); }
.btn-cart svg { width: 15px; height: 15px; }

/* ══════════════════ PROMO BANNERS GRID ═══════════════════════ */
.promo-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .promo-banners { grid-template-columns: 1fr; } }
.promo-banner {
  border-radius: 12px; padding: 26px 22px; min-height: 150px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.promo-banner-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.45);
}
.promo-banner-content { position: relative; z-index: 2; }
.promo-banner h3 { font-size: 1.05rem; font-weight: 800; color: white; margin-bottom: 4px; }
.promo-banner p  { font-size: .78rem; color: rgba(255,255,255,.85); margin-bottom: 12px; }
.promo-banner-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: white; padding: 7px 16px; border-radius: 7px;
  font-size: .78rem; font-weight: 700; color: var(--blue);
  transition: transform .15s;
}
.promo-banner-link:hover { transform: translateY(-2px); }

/* ══════════════════ CARTE FIDELITE ══════════════════════════ */
.fidelite-band {
  background: linear-gradient(135deg, var(--pink) 0%, #b81262 100%);
  border-radius: 14px; padding: 34px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: 0 8px 32px rgba(242,67,145,.35);
}
.fidelite-band-text { color: white; flex: 1; }
.fidelite-band-text h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 6px; }
.fidelite-band-text p  { opacity: .9; font-size: .9rem; margin-bottom: 18px; }
.fidelite-band-icon { flex-shrink: 0; }
.fidelite-band-icon svg { width: 80px; height: 80px; opacity: .25; color: white; }
.btn-fidelite {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--pink);
  padding: 12px 24px; border-radius: 9px; font-weight: 800; font-size: .9rem;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn-fidelite:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
@media (max-width: 600px) { .fidelite-band { flex-direction: column; text-align: center; padding: 24px; } .fidelite-band-icon { display: none; } }

/* ══════════════════ CART SIDEBAR ════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 800; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed; right: 0; top: 0; bottom: 0; width: 380px;
  background: white; z-index: 801;
  box-shadow: -8px 0 40px rgba(0,72,153,.18);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.cart-sidebar.open { transform: translateX(0); }
@media (max-width: 420px) { .cart-sidebar { width: 100%; } }

.cart-head {
  background: var(--blue); color: white; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.cart-head h3 { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cart-head h3 svg { width: 20px; height: 20px; }
.cart-close-btn { color: white; display: flex; padding: 4px; }
.cart-close-btn svg { width: 20px; height: 20px; }

.cart-body { flex: 1; overflow-y: auto; padding: 14px; }
.cart-empty { text-align: center; padding: 56px 20px; color: var(--text-light); }
.cart-empty svg { width: 56px; height: 56px; margin: 0 auto 14px; opacity: .3; }
.cart-empty p { font-weight: 600; }

.cart-item { display: flex; gap: 12px; background: var(--gray); border-radius: 10px; padding: 12px; margin-bottom: 10px; align-items: center; }
.cart-item-img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name  { font-size: .82rem; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: .88rem; font-weight: 800; color: var(--blue); }
.cart-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn { width: 26px; height: 26px; background: white; border-radius: 6px; font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--gray2); transition: background .15s; }
.qty-btn:hover { background: var(--blue-light); color: var(--blue); }
.qty-num { font-size: .88rem; font-weight: 700; min-width: 20px; text-align: center; }
.cart-remove { color: #b0b8cc; padding: 4px; display: flex; transition: color .2s; }
.cart-remove:hover { color: var(--red); }
.cart-remove svg { width: 16px; height: 16px; }

.cart-foot { padding: 14px 20px; border-top: 1px solid var(--gray2); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.cart-total small { font-size: .78rem; font-weight: 400; color: var(--text-light); }
.btn-checkout {
  width: 100%; background: var(--blue); color: white;
  padding: 14px; border-radius: 10px; font-size: .97rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .15s;
}
.btn-checkout:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-checkout svg { width: 18px; height: 18px; }

/* ══════════════════ TOAST ═══════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9100;
  background: #1a7340; color: white; border-radius: 10px;
  padding: 13px 20px; font-size: .88rem; font-weight: 600;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  transform: translateY(80px); opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.4,.64,1), opacity .3s;
  display: flex; align-items: center; gap: 8px; max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ══════════════════ PROMOTIONS PAGE ═══════════════════════ */
.promo-filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-pill {
  padding: 8px 18px; border-radius: 20px; font-size: .82rem; font-weight: 700;
  border: 2px solid var(--gray2); color: var(--text-light);
  background: white; transition: all .2s; cursor: pointer;
}
.filter-pill:hover, .filter-pill.active { background: var(--blue); border-color: var(--blue); color: white; }

/* ══════════════════ CATALOGUES ══════════════════════════════ */
.catalogues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.catalogue-card {
  background: white; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s;
}
.catalogue-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.catalogue-thumb { height: 200px; overflow: hidden; }
.catalogue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.catalogue-thumb-fallback {
  height: 200px; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.catalogue-info { padding: 18px; }
.catalogue-info h3 { font-size: .98rem; font-weight: 800; margin-bottom: 4px; }
.catalogue-info .date { font-size: .76rem; color: var(--text-light); margin-bottom: 14px; }
.btn-catalogue {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue); color: white;
  padding: 9px 18px; border-radius: 8px; font-size: .82rem; font-weight: 700;
  transition: background .2s;
}
.btn-catalogue svg { width: 15px; height: 15px; }
.btn-catalogue:hover { background: var(--blue-dark); }

/* ══════════════════ SERVICES ════════════════════════════════ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.service-card {
  background: white; border-radius: 12px; padding: 26px 20px; text-align: center;
  box-shadow: var(--shadow); transition: transform .2s;
}
.service-card:hover { transform: translateY(-4px); }
.service-icon { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: .9rem; font-weight: 800; margin-bottom: 6px; }
.service-card p  { font-size: .78rem; color: var(--text-light); line-height: 1.5; }

/* ══════════════════ ACCOUNT ════════════════════════════════ */
.account-layout { display: grid; grid-template-columns: 280px 1fr; gap: 22px; }
@media (max-width: 768px) { .account-layout { grid-template-columns: 1fr; } }
.account-sidebar { background: white; border-radius: 12px; padding: 24px; box-shadow: var(--shadow); height: fit-content; }
.account-avatar { width: 72px; height: 72px; background: var(--blue-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.account-avatar svg { width: 38px; height: 38px; color: var(--blue); }
.account-name  { text-align: center; font-weight: 800; font-size: 1rem; margin-bottom: 3px; }
.account-email { text-align: center; font-size: .78rem; color: var(--text-light); margin-bottom: 22px; }
.account-menu { display: flex; flex-direction: column; gap: 3px; }
.account-menu-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: 9px; font-size: .86rem; font-weight: 600; color: var(--text);
  transition: background .2s, color .2s;
}
.account-menu-item svg { width: 18px; height: 18px; color: var(--text-light); }
.account-menu-item:hover, .account-menu-item.active { background: var(--blue-light); color: var(--blue); }
.account-menu-item:hover svg, .account-menu-item.active svg { color: var(--blue); }
.account-menu-item.danger { color: var(--red); }
.account-menu-item.danger svg { color: var(--red); }
.account-content { background: white; border-radius: 12px; padding: 26px; box-shadow: var(--shadow); }

/* ══════════════════ CONTACT FORM ══════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .83rem; font-weight: 700; margin-bottom: 5px; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray2);
  border-radius: 8px; font-size: .9rem; outline: none; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,72,153,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.btn-submit {
  background: var(--blue); color: white;
  padding: 13px 28px; border-radius: 9px; font-size: .95rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  transition: background .2s, transform .15s;
}
.btn-submit:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-submit svg { width: 18px; height: 18px; }

/* ══════════════════ FOOTER ══════════════════════════════════ */
footer {
  background: #111827; color: rgba(255,255,255,.75);
  margin-top: 56px; padding-top: 52px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 36px; padding-bottom: 40px;
}
.footer-col h4 { color: white; font-size: .9rem; font-weight: 800; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: .82rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col ul li a:hover { color: white; }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-wrap img { width: 44px; height: 44px; border-radius: 8px; }
.footer-brand-name { font-size: 1.2rem; font-weight: 900; color: white; }
.footer-desc { font-size: .81rem; line-height: 1.65; margin-bottom: 18px; }
.footer-socials { display: flex; gap: 9px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.social-link svg { width: 17px; height: 17px; }
.social-link:hover { background: var(--blue); color: white; transform: translateY(-2px); }
.footer-app-btn {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08); border-radius: 10px;
  padding: 11px 16px; color: white; font-size: .82rem; font-weight: 700;
  transition: background .2s; border: 1px solid rgba(255,255,255,.12);
  margin-bottom: 10px;
}
.footer-app-btn.android { background: rgba(26,115,64,.3); border-color: rgba(26,115,64,.4); }
.footer-app-btn:hover { background: rgba(255,255,255,.15); }
.footer-app-btn.android:hover { background: rgba(26,115,64,.5); }
.footer-app-btn svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center; padding: 16px 24px; font-size: .76rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(0,120,255,.7); }
