/*
 * ============================================================
 * FICHIER : /asset/css/animations.css
 * Rôle    : Animations avancées — ticker, parallax, shimmer,
 *           floating, pulse, stagger, marquee, counters…
 *           Importé après style.css dans le header
 * ============================================================
 */

/* ══ KEYFRAMES GLOBALES ══════════════════════════════════════ */
@keyframes fadeInUp    { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:none} }
@keyframes fadeInLeft  { from{opacity:0;transform:translateX(-30px)} to{opacity:1;transform:none} }
@keyframes fadeInRight { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:none} }
@keyframes fadeInScale { from{opacity:0;transform:scale(.9)} to{opacity:1;transform:scale(1)} }
@keyframes float       { 0%,100%{transform:translateY(0) rotate(2deg)} 50%{transform:translateY(-14px) rotate(2deg)} }
@keyframes floatAlt    { 0%,100%{transform:translateY(-6px)} 50%{transform:translateY(6px)} }
@keyframes pulse-ring  { 0%{transform:scale(.9);opacity:1} 100%{transform:scale(1.4);opacity:0} }
@keyframes shimmer     { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes marqueeL    { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes ticker      { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }
@keyframes countUp     { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
@keyframes sparkle     { 0%,100%{opacity:0;transform:scale(0) rotate(0deg)} 50%{opacity:1;transform:scale(1) rotate(180deg)} }
@keyframes gradMove    { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
@keyframes slideInTop  { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:none} }
@keyframes popIn       { 0%{opacity:0;transform:scale(.5)} 70%{transform:scale(1.05)} 100%{opacity:1;transform:scale(1)} }
@keyframes wiggle      { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-4deg)} 75%{transform:rotate(4deg)} }
@keyframes heartbeat   { 0%,100%{transform:scale(1)} 14%{transform:scale(1.18)} 28%{transform:scale(1)} 42%{transform:scale(1.12)} 70%{transform:scale(1)} }
@keyframes progressBar { from{width:0} to{width:var(--w,100%)} }
@keyframes borderAnim  { 0%{border-color:rgba(227,38,46,0)} 100%{border-color:rgba(227,38,46,1)} }

/* ══ HERO AMÉLIORÉ ═══════════════════════════════════════════ */
.hero { overflow: hidden; }

/* Particules flottantes en arrière-plan */
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-particle  {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(227,38,46,.3), transparent);
  animation: floatAlt var(--dur,6s) ease-in-out infinite;
  animation-delay: var(--delay,0s);
}

/* Gradient animé sur le titre */
.hero h1 em {
  background: linear-gradient(90deg, var(--red), #ff6b6b, var(--red), #c0392b);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradMove 3s linear infinite;
}

/* Hero card flottante */
.hero-card { animation: float 5s ease-in-out infinite; }
.hero-card:hover { animation-play-state: paused; }

/* Hero copy stagger */
.hero-copy .eyebrow { animation: fadeInLeft .6s ease both; }
.hero-copy h1       { animation: fadeInLeft .7s .1s ease both; }
.hero-copy p        { animation: fadeInLeft .7s .2s ease both; }
.hero-copy .hero-buttons { animation: fadeInLeft .7s .3s ease both; }
.hero-copy .hero-points  { animation: fadeInLeft .7s .4s ease both; }
.hero-card { animation: float 5s .5s ease-in-out infinite, fadeInRight .8s .3s ease both; }

/* ══ TICKER BAR (défilé de promos) ══════════════════════════ */
.ticker-bar {
  background: var(--dark); color: #fff;
  overflow: hidden; padding: 0; height: 38px;
  display: flex; align-items: center;
  position: relative;
}
.ticker-bar::before,
.ticker-bar::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2;
}
.ticker-bar::before { left: 0;  background: linear-gradient(to right, var(--dark), transparent); }
.ticker-bar::after  { right: 0; background: linear-gradient(to left, var(--dark), transparent); }
.ticker-track { display: flex; white-space: nowrap; animation: marqueeL 28s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 12px; font-weight: 700; padding: 0 40px;
  display: flex; align-items: center; gap: 10px; letter-spacing: .04em;
}
.ticker-item .tk-dot { color: var(--red); font-size: 18px; }

/* ══ FLASH PROMO (bandeau clignotant) ════════════════════════ */
.flash-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800;
  padding: 5px 10px; border-radius: 5px; letter-spacing: .08em;
  animation: heartbeat 1.8s ease infinite;
}

/* ══ SKELETON LOADING ═══════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
.skeleton-card { height: 380px; border-radius: 16px; }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text.w60 { width: 60%; }
.skeleton-text.w80 { width: 80%; }

/* ══ STAGGER ANIMATIONS ══════════════════════════════════════ */
.stagger-grid > * { opacity: 0; animation: fadeInUp .6s ease both; }
.stagger-grid > *:nth-child(1) { animation-delay: .05s }
.stagger-grid > *:nth-child(2) { animation-delay: .12s }
.stagger-grid > *:nth-child(3) { animation-delay: .19s }
.stagger-grid > *:nth-child(4) { animation-delay: .26s }
.stagger-grid > *:nth-child(5) { animation-delay: .33s }
.stagger-grid > *:nth-child(6) { animation-delay: .40s }
.stagger-grid > *:nth-child(7) { animation-delay: .47s }
.stagger-grid > *:nth-child(8) { animation-delay: .54s }
.stagger-grid.visible > * { }

/* ══ COMPTEURS ANIMÉS ════════════════════════════════════════ */
.stats-bar { background: var(--dark); color: #fff; padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; text-align: center; }
.stat-item { padding: 20px; }
.stat-number {
  font: 800 56px/.9 'Barlow Condensed', sans-serif;
  color: var(--red); display: block;
  transition: all .5s ease;
}
.stat-label { font-size: 12px; color: #aaa; font-weight: 600; letter-spacing: .08em; margin-top: 6px; display: block; }
.stat-suffix { font-size: 28px; }

/* ══ MARQUEE PRODUITS (carrousel infini) ══════════════════════ */
.products-marquee { overflow: hidden; padding: 30px 0; position: relative; }
.products-marquee::before,
.products-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
}
.products-marquee::before { left: 0;  background: linear-gradient(to right, #fff, transparent); }
.products-marquee::after  { right: 0; background: linear-gradient(to left, #fff, transparent); }
.marquee-track { display: flex; gap: 20px; animation: marqueeL 35s linear infinite; width: max-content; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-card {
  width: 220px; flex-shrink: 0; background: #fff; border-radius: 14px;
  overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.06); transition: transform .3s;
}
.marquee-card:hover { transform: translateY(-6px); }
.marquee-card img { width: 100%; height: 160px; object-fit: cover; }
.marquee-card-body { padding: 14px; }
.marquee-card-body h4 { font: 700 16px 'Barlow Condensed'; margin-bottom: 4px; }
.marquee-card-body .price { color: var(--red); font-weight: 800; font-size: 15px; }

/* ══ COUNTDOWN TIMER ═════════════════════════════════════════ */
.countdown-wrap { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.countdown-unit {
  text-align: center; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px; padding: 10px 14px; min-width: 58px;
}
.countdown-num { font: 800 28px 'Barlow Condensed'; color: #fff; display: block; line-height: 1; }
.countdown-lbl { font-size: 9px; color: rgba(255,255,255,.6); letter-spacing: .08em; text-transform: uppercase; }
.countdown-sep { font: 800 24px 'Barlow Condensed'; color: var(--red); }

/* ══ PRODUCT CARD AMÉLIORÉ ═══════════════════════════════════ */
.product-card {
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
}
.product-card:hover { transform: translateY(-10px) scale(1.01); }

/* Badge animé */
.badge.pulse { animation: heartbeat 2s ease infinite; }

/* Bouton ajouter avec effet ripple */
.add, .quick-add, .btn-red {
  position: relative; overflow: hidden;
}
.ripple-effect {
  position: absolute; border-radius: 50%;
  transform: scale(0); animation: rippleAnim .6s linear;
  background: rgba(255,255,255,.35);
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* Wishlist heart button */
.wish-btn {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .3s; backdrop-filter: blur(4px);
  opacity: 0; transform: scale(.8);
}
.product-card:hover .wish-btn { opacity: 1; transform: scale(1); }
.wish-btn.active { background: #fff0f0; }
.wish-btn.active svg { fill: var(--red); }
.wish-btn svg { transition: fill .3s; }

/* ══ SECTION PROMO AMÉLIORÉE ══════════════════════════════════ */
.promo { position: relative; overflow: hidden; }
.promo-bg-text {
  position: absolute; top: 50%; transform: translateY(-50%);
  right: -20px; font: 800 200px/.8 'Barlow Condensed';
  text-transform: uppercase; color: rgba(255,255,255,.03);
  pointer-events: none; letter-spacing: -.05em;
  white-space: nowrap;
}

/* ══ TRUST ICONS ANIMATED ════════════════════════════════════ */
.trust-icon { transition: transform .3s; }
.trust-grid > div:hover .trust-icon { transform: scale(1.2) rotate(-5deg); animation: wiggle .4s ease; }

/* ══ CATEGORY CARD AMÉLIORÉE ══════════════════════════════════ */
.cat-card { transition: transform .4s cubic-bezier(.34,1.2,.64,1); }
.cat-card:hover { transform: scale(1.02); }
.cat-card div { transition: transform .4s ease; }
.cat-card:hover div { transform: translateY(-6px); }

/* ══ SCROLL PROGRESS BAR ═════════════════════════════════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 3px; background: transparent; pointer-events: none;
}
.scroll-progress-bar {
  height: 100%; width: 0; background: var(--red);
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(227,38,46,.6);
}

/* ══ PAGE PANIER ══════════════════════════════════════════════ */
.cart-page-hero { background: var(--cream); padding: 50px 0; border-bottom: 1px solid var(--line); }
.cart-page-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; padding: 60px 0; }
.cart-table-wrap { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 30px rgba(0,0,0,.05); }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead th { background: var(--cream); padding: 14px 20px; font: 700 11px/1 Inter; text-transform: uppercase; letter-spacing: .08em; color: #888; text-align: left; }
.cart-table tbody td { padding: 18px 20px; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.cart-table tbody tr:last-child td { border-bottom: 0; }
.cart-table tbody tr { transition: background .2s; }
.cart-table tbody tr:hover { background: #fafafa; }
.ct-product { display: flex; align-items: center; gap: 16px; }
.ct-product img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.ct-product-info h4 { font: 700 16px 'Barlow Condensed'; margin-bottom: 3px; }
.ct-product-info span { font-size: 11px; color: #999; }
.qty-control { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty-control button { width: 34px; height: 34px; border: 0; background: #f8f8f8; font-size: 18px; font-weight: 700; cursor: pointer; transition: background .2s; }
.qty-control button:hover { background: #eee; }
.qty-control input { width: 44px; height: 34px; border: 0; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); text-align: center; font-weight: 700; font-size: 14px; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ct-remove { border: 0; background: none; color: #ddd; font-size: 20px; cursor: pointer; transition: color .2s; }
.ct-remove:hover { color: var(--red); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--cream); }
.coupon-form { display: flex; gap: 10px; }
.coupon-form input { border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 13px; width: 180px; outline: none; }
.coupon-form button { border: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 12px; cursor: pointer; }

/* Summary panier */
.cart-summary { background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 4px 30px rgba(0,0,0,.05); position: sticky; top: 104px; }
.cart-summary h3 { font: 700 26px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 22px; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; }
.summary-line.total { font-size: 22px; font-weight: 800; border-top: 2px solid var(--line); padding-top: 14px; margin-top: 14px; }
.summary-line.total span:last-child { color: var(--red); }
.summary-tax { font-size: 10px; color: #aaa; text-align: right; margin-bottom: 20px; }
.cart-empty-state { text-align: center; padding: 100px 40px; }
.cart-empty-state .empty-icon { font-size: 80px; opacity: .2; margin-bottom: 20px; }
.cart-empty-state h2 { font: 700 36px 'Barlow Condensed'; margin-bottom: 12px; text-transform: uppercase; }
.cart-empty-state p { color: #888; margin-bottom: 28px; }

/* ══ PAGE CHECKOUT ════════════════════════════════════════════ */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 36px; align-items: start; padding: 60px 0; }
.checkout-block { background: #fff; border-radius: 18px; padding: 28px; margin-bottom: 20px; box-shadow: 0 4px 30px rgba(0,0,0,.05); }
.checkout-block h3 { font: 700 22px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.checkout-block h3 .step-badge { width: 28px; height: 28px; background: var(--red); color: #fff; border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checkout-step-header { cursor: pointer; user-select: none; }
.checkout-step-body { transition: max-height .4s ease, opacity .4s ease; }
.checkout-step-body.collapsed { max-height: 0; overflow: hidden; opacity: 0; }

/* Payment methods */
.payment-methods { display: flex; flex-direction: column; gap: 12px; }
.payment-method-item {
  border: 2px solid var(--line); border-radius: 12px; padding: 16px 18px;
  cursor: pointer; transition: border-color .25s, background .25s;
  display: flex; align-items: center; gap: 14px;
}
.payment-method-item:hover { border-color: #ccc; }
.payment-method-item.selected { border-color: var(--red); background: #fff5f5; }
.payment-method-item input[type="radio"] { display: none; }
.pm-icon { font-size: 26px; width: 44px; height: 44px; background: var(--cream); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pm-info label { font-weight: 700; font-size: 14px; display: block; cursor: pointer; }
.pm-info p { font-size: 12px; color: #888; margin: 3px 0 0; }

/* Order summary checkout */
.order-summary-box { background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 4px 30px rgba(0,0,0,.05); position: sticky; top: 104px; }
.order-summary-box h3 { font: 700 22px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 20px; }
.os-item { display: flex; gap: 14px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f5f5f5; }
.os-item:last-of-type { border-bottom: 0; }
.os-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.os-info { flex: 1; font-size: 12px; }
.os-info strong { display: block; font-size: 14px; margin-bottom: 3px; }
.os-info span { color: #999; }
.os-price { font-weight: 800; font-size: 14px; color: var(--ink); align-self: center; }

/* ══ PAGE COMPTE ══════════════════════════════════════════════ */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; padding: 60px 0; }
.account-sidebar { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 30px rgba(0,0,0,.05); position: sticky; top: 104px; }
.account-avatar { background: linear-gradient(135deg, var(--red), var(--dark)); padding: 30px; text-align: center; }
.account-avatar .av-initials { width: 70px; height: 70px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 28px 'Barlow Condensed'; color: #fff; margin: 0 auto 12px; }
.account-avatar h4 { color: #fff; font-size: 16px; font-weight: 700; }
.account-avatar p { color: rgba(255,255,255,.6); font-size: 11px; margin-top: 4px; }
.account-nav { padding: 12px 0; }
.account-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 22px; font-size: 13px; font-weight: 600; color: #666; transition: all .2s; }
.account-nav a:hover { background: var(--cream); color: var(--ink); }
.account-nav a.active { background: #fff5f5; color: var(--red); border-right: 3px solid var(--red); }
.account-nav a svg { flex-shrink: 0; }
.account-nav .nav-divider { height: 1px; background: var(--line); margin: 8px 0; }
.account-content { }
.account-block { background: #fff; border-radius: 18px; padding: 28px; margin-bottom: 20px; box-shadow: 0 4px 30px rgba(0,0,0,.05); }
.account-block h2 { font: 700 26px 'Barlow Condensed'; text-transform: uppercase; margin-bottom: 22px; display: flex; justify-content: space-between; align-items: center; }

/* Order cards */
.order-card { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 16px; transition: border-color .2s; }
.order-card:hover { border-color: var(--red); }
.order-card-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--cream); flex-wrap: wrap; gap: 10px; }
.order-number { font: 700 16px 'Barlow Condensed'; }
.order-date { font-size: 11px; color: #999; }
.order-badge { padding: 5px 10px; border-radius: 20px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.badge-pending   { background: #fff8e1; color: #f57c00; }
.badge-confirmed { background: #e3f2fd; color: #1565c0; }
.badge-processing{ background: #f3e5f5; color: #7b1fa2; }
.badge-shipped   { background: #e8f5e9; color: #2e7d32; }
.badge-delivered { background: #e0f2f1; color: #00695c; }
.badge-cancelled { background: #fce4ec; color: #c62828; }
.order-card-body { padding: 16px 20px; }
.order-items-preview { display: flex; gap: 10px; margin-bottom: 14px; }
.order-item-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.order-total-row { display: flex; justify-content: space-between; align-items: center; }
.order-total-row strong { font-size: 18px; color: var(--red); }

/* Auth forms */
.auth-wrap { min-height: 75vh; display: flex; align-items: center; justify-content: center; background: var(--cream); padding: 60px 20px; }
.auth-card { background: #fff; border-radius: 24px; padding: 48px 44px; width: 100%; max-width: 480px; box-shadow: 0 30px 80px rgba(0,0,0,.1); animation: fadeInScale .5s cubic-bezier(.34,1.4,.64,1) both; }
.auth-card .auth-logo { text-align: center; margin-bottom: 30px; }
.auth-card .auth-logo img { height: 56px; object-fit: contain; }
.auth-card h1 { font: 800 32px 'Barlow Condensed'; text-align: center; text-transform: uppercase; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: #888; font-size: 13px; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: #ccc; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: #888; }
.auth-footer a { color: var(--red); font-weight: 700; }

/* ══ NOTIFICATIONS COMMANDE ══════════════════════════════════ */
.order-success-wrap { text-align: center; padding: 80px 40px; }
.order-success-icon { width: 90px; height: 90px; background: #e8f5e9; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; animation: popIn .6s cubic-bezier(.34,1.4,.64,1) both; }
.order-success-icon svg { animation: popIn .5s .15s cubic-bezier(.34,1.4,.64,1) both; }

/* ══ MINI CART OVERLAY ═══════════════════════════════════════ */
.cart-notification {
  position: fixed; top: 100px; right: 24px; z-index: 150;
  background: #fff; border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15); max-width: 320px;
  animation: slideInTop .4s cubic-bezier(.34,1.3,.64,1) both;
  border-left: 4px solid var(--red);
}
.cart-notification.hiding { animation: fadeInUp .3s ease reverse both; }
.cn-product { display: flex; gap: 12px; align-items: center; }
.cn-img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.cn-info strong { font-size: 13px; display: block; }
.cn-info span { font-size: 12px; color: var(--red); font-weight: 700; }
.cn-actions { display: flex; gap: 8px; margin-top: 14px; }
.cn-actions a, .cn-actions button { flex: 1; padding: 10px; border-radius: 8px; font-size: 12px; font-weight: 700; text-align: center; border: 0; cursor: pointer; }
.cn-view { background: var(--cream); color: var(--ink); }
.cn-checkout { background: var(--red); color: #fff; }

/* ══ RESPONSIVE ANIMATIONS ════════════════════════════════════ */
@media (max-width: 980px) {
  .cart-page-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary-box { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .cart-summary { position: static; }
}
@media (max-width: 600px) {
  .auth-card { padding: 32px 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cart-table thead { display: none; }
  .cart-table tbody td { display: block; border-bottom: 0; }
  .cart-table tbody tr { display: block; border-bottom: 1px solid #f5f5f5; padding: 14px 0; }
  .cart-table tbody td::before { content: attr(data-label); font-size: 10px; color: #999; font-weight: 700; display: block; margin-bottom: 4px; text-transform: uppercase; }
  .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
}

/* ══ LOADING SPINNER ══════════════════════════════════════════ */
.spinner { width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══ TOOLTIPS ════════════════════════════════════════════════ */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) scale(.8); white-space: nowrap;
  background: #111; color: #fff; font-size: 11px; padding: 5px 10px; border-radius: 6px;
  pointer-events: none; opacity: 0; transition: all .2s; transform-origin: bottom center;
}
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }
