/* ════════════════════════════════════════════════════════════
   WinStore — full powerful design
   ════════════════════════════════════════════════════════════ */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }
a, button, input, select, textarea, [role="button"]{ -webkit-tap-highlight-color:transparent; }
button:focus, a:focus{ outline:none; }
button:focus-visible, a:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
:root{
  --bg:#fafaf7;
  --surface:#fff;
  --line:#ececec;
  --line-soft:#f4f4f1;
  --text:#0b1220;
  --muted:#64748b;
  --muted-2:#94a3b8;
  --brand:#0b1220;
  --brand-2:#1e293b;
  --accent:#f59e0b;
  --accent-hover:#fbbf24;
  --accent-soft:#fef3c7;
  --good:#10b981;
  --bad:#ef4444;
  --info:#0ea5e9;
  --shadow-xs:0 1px 2px rgba(15,23,42,.05);
  --shadow-sm:0 2px 8px rgba(15,23,42,.06);
  --shadow:0 8px 28px rgba(15,23,42,.08);
  --shadow-lg:0 16px 48px rgba(15,23,42,.14);
  --radius:14px;
  --radius-lg:20px;
  --radius-sm:10px;
  --max:1340px;
  --header-h:128px;
  --ease:cubic-bezier(.22,.61,.36,1);
}
html,body{
  background:var(--bg); color:var(--text);
  font-family:'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden; width:100%;
}
body{ min-height:100vh; display:flex; flex-direction:column; max-width:100vw; }
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; cursor:pointer; border:0; background:none; color:inherit; }
input,select,textarea{ font:inherit; color:inherit; }
ul{ list-style:none; }
::selection{ background:var(--accent); color:#000; }

/* ════════ Top promo strip ════════ */
.topbar{ background:#0b1220; color:#cbd5e1; font-size:13px; }
.topbar-inner{ max-width:var(--max); margin:0 auto; padding:8px 18px; display:flex; gap:14px; align-items:center; justify-content:center; flex-wrap:wrap; }
.topbar i{ color:var(--accent); margin-right:5px; }
.topbar .dot{ color:#475569; }

/* ════════ Header ════════ */
#header{ position:sticky; top:0; z-index:60; background:rgba(255,255,255,.95); backdrop-filter:saturate(180%) blur(10px); border-bottom:1px solid var(--line); }
.bar{ display:flex; align-items:center; gap:18px; padding:14px 22px; max-width:var(--max); margin:0 auto; }
.logo{ font-weight:800; font-size:23px; letter-spacing:-.02em; color:var(--brand); display:inline-flex; align-items:center; gap:9px; white-space:nowrap; }
.logo .logo-text{ color:var(--brand); }
.logo .logo-text > span{ color:var(--accent); }
.logo-mark{ color:var(--accent); font-size:22px; transform:rotate(-12deg); }
.icon-btn{ display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:11px; color:var(--text); transition:background .18s var(--ease); }
.icon-btn:hover{ background:#f1f5f9; }
.menu-btn{ display:none; }
.search{ flex:1; display:flex; align-items:center; gap:6px; background:#f4f4f1; border:1.5px solid transparent; border-radius:999px; padding:0 6px 0 18px; max-width:600px; transition:all .2s var(--ease); position:relative; }
.search:focus-within{ background:#fff; border-color:var(--accent); box-shadow:0 0 0 4px rgba(245,158,11,.12); }
.search-ico{ color:var(--muted); font-size:14px; }
.search input{ flex:1; background:transparent; border:0; outline:none; padding:13px 4px; font-size:15px; min-width:0; }
.search-btn{ background:var(--brand); color:#fff; padding:10px 22px; border-radius:999px; font-weight:700; font-size:14px; transition:background .15s var(--ease); }
.search-btn:hover{ background:var(--accent); color:#000; }

/* ════════ Live search suggestions ════════ */
.search-suggest{ position:absolute !important; top:calc(100% + 8px); left:0; right:0; width:auto; min-width:320px; max-width:640px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 18px 50px rgba(15,23,42,.15); max-height:480px; overflow-y:auto; z-index:200; opacity:0; transform:translateY(-6px); pointer-events:none; transition:opacity .18s var(--ease), transform .18s var(--ease); display:block; flex:0 0 auto; }
.search-suggest.open{ opacity:1; transform:none; pointer-events:auto; }
.search-suggest .ss-item{ display:flex; flex-direction:row; align-items:center; gap:12px; padding:10px 14px; color:var(--text); border-bottom:1px solid #f3f4f6; transition:background .15s var(--ease); width:100%; box-sizing:border-box; text-decoration:none; }
.search-suggest .ss-item:last-of-type{ border-bottom:0; }
.search-suggest .ss-item:hover, .search-suggest .ss-item.active{ background:#fff7ed; }
.search-suggest .ss-item img{ width:48px; height:48px; object-fit:cover; border-radius:8px; background:#f4f4f1; flex-shrink:0; flex-grow:0; }
.search-suggest .ss-info{ flex:1 1 auto; min-width:0; }
.search-suggest .ss-title{ font-size:13px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.3; }
.search-suggest .ss-brand{ font-size:11px; color:var(--muted); margin-top:2px; }
.search-suggest .ss-price{ font-size:13px; font-weight:700; color:var(--brand); white-space:nowrap; flex-shrink:0; display:flex; align-items:center; gap:6px; }
.search-suggest .ss-price .p-old{ font-size:11px; color:var(--muted); text-decoration:line-through; font-weight:500; }
.search-suggest .ss-price .p-promo{ color:var(--accent); }
.search-suggest .ss-price .p-badge{ display:none; }
.search-suggest .ss-all{ display:flex; align-items:center; gap:8px; padding:12px 14px; background:#f8fafc; color:var(--brand); font-size:13px; font-weight:600; border-top:1px solid var(--line); transition:background .15s var(--ease); text-decoration:none; }
.search-suggest .ss-all:hover, .search-suggest .ss-all.active{ background:#fef3c7; color:#000; }
.search-suggest .ss-empty{ padding:18px 14px; text-align:center; color:var(--muted); font-size:13px; }
@media (max-width: 720px){
  .search-suggest{ min-width:0; max-width:none; left:8px; right:8px; }
}

.actions{ display:flex; align-items:center; gap:4px; }
.action-link{ display:flex; flex-direction:column; align-items:center; gap:2px; padding:6px 12px; border-radius:11px; color:var(--text); transition:background .15s var(--ease); position:relative; min-width:62px; }
.action-link i{ font-size:18px; }
.action-link:hover{ background:#f1f5f9; color:var(--brand); }
.action-label{ font-size:11px; font-weight:600; }
.action-link.cart-btn .badge{ position:absolute; top:2px; right:6px; background:var(--accent); color:#000; font-size:11px; font-weight:800; min-width:19px; height:19px; padding:0 5px; border-radius:10px; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 6px rgba(245,158,11,.45); }
.search-mobile{ display:none; padding:0 14px 12px; }

/* ════════ Nav strip ════════ */
.nav-strip{ border-top:1px solid var(--line-soft); background:#fff; }
.nav-strip-inner{ max-width:var(--max); margin:0 auto; padding:0 18px; display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; }
.nav-strip-inner::-webkit-scrollbar{ display:none; }
.nav-strip a{ display:inline-flex; align-items:center; gap:8px; padding:14px 18px; font-weight:600; font-size:14px; white-space:nowrap; color:var(--brand); border-bottom:2px solid transparent; transition:color .15s var(--ease), border-color .15s var(--ease); }
.nav-strip a i{ color:var(--accent); font-size:14px; }
.nav-strip a:hover{ color:var(--accent); border-bottom-color:var(--accent); }
.nav-strip a.active{ color:var(--brand); border-bottom-color:var(--brand); }
.nav-strip a.nav-promo{ color:#dc2626; }
.nav-strip a.nav-promo i{ color:#dc2626; }

/* ════════ Drawer ════════ */
.drawer{ position:fixed; top:0; left:-360px; width:340px; height:100%; background:#fff; z-index:90; transition:left .3s var(--ease); overflow-y:auto; box-shadow:var(--shadow-lg); }
.drawer.open{ left:0; }
.drawer-head{ display:flex; align-items:center; justify-content:space-between; padding:16px 18px; border-bottom:1px solid var(--line); }
.drawer-nav{ padding:8px 0 24px; }
.drawer-nav a{ display:flex; align-items:center; gap:12px; justify-content:flex-start; padding:14px 20px; border-bottom:1px solid var(--line-soft); font-weight:600; }
.drawer-nav a i{ color:var(--accent); width:20px; text-align:center; }
.drawer-nav a .count{ margin-left:auto; color:var(--muted); font-weight:500; font-size:13px; }
.drawer-nav a:hover{ background:#fafaf7; }
.drawer-nav .group{ padding:16px 20px 6px; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); font-weight:700; }
.overlay{ position:fixed; inset:0; background:rgba(11,18,32,.45); opacity:0; pointer-events:none; transition:opacity .25s; z-index:80; backdrop-filter:blur(2px); }
.overlay.show{ opacity:1; pointer-events:auto; }

/* ════════ Layout ════════ */
#app{ flex:1; max-width:var(--max); width:100%; margin:0 auto; padding:24px 22px 70px; }
.page-title{ font-size:30px; font-weight:800; margin:6px 0 12px; letter-spacing:-.025em; }
.page-sub{ color:var(--muted); margin-bottom:16px; font-size:14px; }
.section{ margin:38px 0; }
.section h2{ font-size:22px; font-weight:800; margin-bottom:14px; letter-spacing:-.015em; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:14px; gap:14px; }
.section-head h2{ margin:0; }
.see-all{ color:var(--brand); font-weight:700; font-size:14px; display:inline-flex; align-items:center; gap:6px; }
.see-all:hover{ color:var(--accent); }
.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.muted{ color:var(--muted); }

/* ════════ Hero ════════ */
.hero{ background:linear-gradient(135deg,#0b1220 0%, #111827 45%, #1e293b 100%); border-radius:24px; color:#fff; padding:64px 40px; box-shadow:var(--shadow); position:relative; overflow:hidden; isolation:isolate; }
.hero::before{ content:""; position:absolute; inset:0; z-index:-1; background:
  radial-gradient(circle at 80% 20%, rgba(245,158,11,.4), transparent 45%),
  radial-gradient(circle at 5% 90%, rgba(244,114,182,.18), transparent 50%),
  radial-gradient(circle at 50% 50%, rgba(99,102,241,.18), transparent 60%);
}
.hero::after{ content:""; position:absolute; right:-100px; top:-100px; width:380px; height:380px; border:40px solid rgba(245,158,11,.08); border-radius:50%; z-index:-1; }
.hero-inner{ max-width:680px; }
.hero-badge{ display:inline-flex; align-items:center; gap:8px; background:rgba(245,158,11,.18); color:var(--accent); border:1px solid rgba(245,158,11,.4); padding:7px 16px; border-radius:999px; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; margin-bottom:22px; }
.hero h1{ font-size:48px; line-height:1.05; letter-spacing:-.03em; font-weight:800; }
.hero h1 em{ background:linear-gradient(135deg,var(--accent),#fbbf24); -webkit-background-clip:text; background-clip:text; color:transparent; font-style:normal; }
.hero p{ margin-top:16px; opacity:.85; font-size:18px; line-height:1.55; max-width:560px; }
.hero-cta{ display:flex; gap:12px; margin-top:28px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:32px; margin-top:34px; flex-wrap:wrap; }
.hero-stats > div{ display:flex; flex-direction:column; }
.hero-stats strong{ font-size:24px; font-weight:800; color:var(--accent); }
.hero-stats span{ font-size:13px; opacity:.7; }

/* ════════ Buttons ════════ */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:13px 24px; border-radius:11px; font-weight:700; font-size:15px; transition:transform .12s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease); cursor:pointer; border:0; }
.btn-primary{ background:var(--brand); color:#fff; }
.btn-primary:hover{ background:var(--brand-2); transform:translateY(-1px); }
.btn-accent{ background:var(--accent); color:#000; box-shadow:0 8px 22px rgba(245,158,11,.32); }
.btn-accent:hover{ background:var(--accent-hover); transform:translateY(-1px); }
.btn-ghost{ border:1.5px solid var(--line); background:#fff; }
.btn-ghost:hover{ border-color:var(--brand); }
.btn-ghost-light{ background:rgba(255,255,255,.1); color:#fff; border:1.5px solid rgba(255,255,255,.18); }
.btn-ghost-light:hover{ background:rgba(255,255,255,.18); }
.btn-block{ width:100%; }
.btn-lg{ padding:15px 28px; font-size:16px; }
.btn:disabled{ opacity:.5; cursor:not-allowed; transform:none; }

/* ════════ Category cards (home) ════════ */
.cat-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }
.cat-card{ display:flex; flex-direction:column; gap:6px; padding:28px 24px; border-radius:20px; background:#fff; border:1px solid var(--line); transition:transform .25s var(--ease), box-shadow .25s var(--ease); position:relative; overflow:hidden; min-height:170px; justify-content:flex-end; isolation:isolate; }
.cat-card::before{ content:""; position:absolute; inset:0; opacity:.7; z-index:-1; transition:opacity .25s var(--ease); }
.cat-card.cat-beaute::before{ background:linear-gradient(135deg,#fce7f3,#fbcfe8 80%); }
.cat-card.cat-sante::before{ background:linear-gradient(135deg,#dcfce7,#bbf7d0 80%); }
.cat-card.cat-femmes::before{ background:linear-gradient(135deg,#fef3c7,#fde68a 80%); }
.cat-card.cat-hommes::before{ background:linear-gradient(135deg,#dbeafe,#bfdbfe 80%); }
.cat-card.cat-promos::before{ background:linear-gradient(135deg,#fee2e2,#fecaca 80%); }
.cat-card.cat-autre::before{ background:linear-gradient(135deg,#f1f5f9,#e2e8f0 80%); }
.cat-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.cat-card:hover::before{ opacity:1; }
.cat-icon{ font-size:34px; line-height:1; margin-bottom:auto; color:#0b1220; opacity:.85; }
.cat-name{ font-size:22px; font-weight:800; color:#0b1220; letter-spacing:-.015em; }
.cat-count{ font-size:13px; color:#475569; font-weight:600; }

/* ════════ Listing toolbar / sidebar ════════ */
.layout{ display:grid; grid-template-columns:260px 1fr; gap:28px; }
.sidebar{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:18px; height:max-content; position:sticky; top:calc(var(--header-h) + 18px); }
.sidebar h3{ font-size:12px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); margin:6px 6px 10px; font-weight:700; }
.sidebar a{ display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-radius:9px; font-size:14px; font-weight:500; transition:background .15s var(--ease); }
.sidebar a:hover{ background:#fafaf7; }
.sidebar a.active{ background:var(--brand); color:#fff; }
.sidebar a .count{ color:var(--muted-2); font-size:12px; font-weight:600; }
.sidebar a.active .count{ color:#cbd5e1; }
.toolbar{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:16px; flex-wrap:wrap; padding:14px 18px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); }
.toolbar select{ background:#fff; border:1.5px solid var(--line); border-radius:10px; padding:9px 14px; font-weight:600; font-size:14px; cursor:pointer; transition:border-color .15s var(--ease); }
.toolbar select:hover{ border-color:var(--brand); }
.result-count{ color:var(--text); font-size:14px; font-weight:600; }
.result-count em{ color:var(--accent); font-style:normal; font-weight:800; }

/* ════════ Product grid ════════ */
.grid{ display:grid; gap:18px; grid-template-columns:repeat(auto-fill, minmax(225px, 1fr)); }
.card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; transition:transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); display:flex; flex-direction:column; position:relative; }
.card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lg); border-color:#dcd9d3; }
.card .thumb{ aspect-ratio:1/1; background:linear-gradient(135deg,#f8fafc,#eef2f7); overflow:hidden; display:block; }
.card .thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.card:hover .thumb img{ transform:scale(1.07); }
.card .meta{ padding:14px 14px 8px; display:flex; flex-direction:column; gap:6px; flex:1; }
.card .brand{ font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:700; }
.card h3{ font-size:14px; font-weight:600; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.7em; }
.card h3 a:hover{ color:var(--accent); }
.card .price{ margin-top:auto; font-size:18px; font-weight:800; color:var(--brand); padding-bottom:6px; display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.card .price .p-now{ color:var(--brand); }
.card .price .p-now.p-promo{ color:#dc2626; }
.card .price .p-old{ font-size:13px; font-weight:600; color:var(--muted); text-decoration:line-through; }
.card .price .p-badge{ background:#dc2626; color:#fff; font-size:11px; font-weight:800; padding:2px 7px; border-radius:6px; letter-spacing:.02em; }
.card.has-promo{ border-color:#fecaca; }
.card .thumb{ position:relative; }
.card-badge{ position:absolute; top:10px; left:10px; background:linear-gradient(135deg,#dc2626,#ea580c); color:#fff; font-size:12px; font-weight:800; padding:5px 10px; border-radius:8px; box-shadow:0 4px 10px rgba(220,38,38,.35); z-index:2; display:inline-flex; align-items:center; gap:5px; }
.card .add{ width:100%; padding:12px; background:#0b1220; color:#fff; border-radius:0; margin:0; font-weight:700; font-size:13px; transition:background .15s var(--ease), color .15s var(--ease); display:flex; align-items:center; justify-content:center; gap:7px; }
.card .add i{ font-size:13px; }
.card .add:hover{ background:var(--accent); color:#000; }
.card .add.added{ background:var(--good); color:#fff; }

/* ════════ Pagination ════════ */
.pagination{ display:flex; gap:6px; justify-content:center; margin-top:30px; flex-wrap:wrap; }
.pagination button{ padding:9px 13px; border-radius:9px; border:1.5px solid var(--line); background:#fff; font-weight:600; min-width:40px; transition:all .12s var(--ease); }
.pagination button:hover:not(:disabled):not(.active){ border-color:var(--brand); }
.pagination button.active{ background:var(--brand); color:#fff; border-color:var(--brand); }
.pagination button:disabled{ opacity:.4; cursor:not-allowed; }

/* ════════ Product detail ════════ */
.product{ display:grid; grid-template-columns:1.1fr 1fr; gap:36px; }
.product .images img{ border-radius:var(--radius-lg); border:1px solid var(--line); background:#fff; aspect-ratio:1/1; object-fit:cover; box-shadow:var(--shadow-sm); }
.product .pinfo .brand{ font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); font-weight:700; }
.product .pinfo h1{ font-size:28px; line-height:1.2; margin:8px 0 14px; letter-spacing:-.015em; }
.product .pinfo .price{ font-size:34px; font-weight:800; color:var(--brand); display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; }
.product .pinfo .price .p-now.p-promo{ color:#dc2626; }
.product .pinfo .price .p-old{ font-size:20px; font-weight:600; color:var(--muted); text-decoration:line-through; }
.product .pinfo .price .p-badge{ background:#dc2626; color:#fff; font-size:14px; font-weight:800; padding:4px 10px; border-radius:8px; }
.product .pinfo .desc{ color:var(--muted); margin:18px 0; line-height:1.65; padding:14px 16px; background:#fafaf7; border-radius:var(--radius); border:1px solid var(--line); }
.product .perks{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:18px; }
.product .perks > div{ display:flex; gap:10px; align-items:center; padding:10px 14px; background:#fafaf7; border-radius:10px; font-size:13px; }
.product .perks i{ color:var(--good); font-size:16px; }
.qty{ display:inline-flex; align-items:center; border:1.5px solid var(--line); border-radius:11px; overflow:hidden; }
.qty button{ width:42px; height:44px; font-weight:700; transition:background .12s var(--ease); }
.qty button:hover{ background:#f1f5f9; }
.qty input{ width:54px; height:44px; text-align:center; border:0; outline:none; font-weight:700; }

/* ════════ Cart ════════ */
.cart-list{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden; }
.cart-item{ display:grid; grid-template-columns:90px minmax(0,1fr) auto; gap:16px; padding:16px; border-bottom:1px solid var(--line-soft); align-items:center; }
.cart-item:last-child{ border-bottom:0; }
.cart-item img{ width:90px; height:90px; object-fit:cover; border-radius:11px; background:#f1f5f9; }
.cart-item .ci-info{ min-width:0; }
.cart-item h4{ font-size:14px; font-weight:600; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.cart-item .ci-brand{ font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; font-weight:700; margin-bottom:4px; }
.cart-item .ci-price{ font-weight:800; margin-top:4px; color:var(--brand); }
.cart-item .ci-actions{ display:flex; align-items:center; gap:14px; }
.cart-item .ci-remove{ color:var(--bad); font-size:13px; font-weight:600; display:inline-flex; align-items:center; gap:5px; }
.cart-item .ci-remove:hover{ text-decoration:underline; }
.cart-summary{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:22px; }
.cart-summary h3{ font-size:18px; margin-bottom:14px; }
.cart-summary .line{ display:flex; justify-content:space-between; padding:7px 0; font-size:14px; }
.cart-summary .total{ font-size:22px; font-weight:800; border-top:1px solid var(--line); margin-top:12px; padding-top:14px; }
.cart-empty{ text-align:center; padding:80px 20px; }
.cart-empty .icon-circle{ width:90px; height:90px; border-radius:50%; background:var(--accent-soft); color:var(--accent); display:inline-flex; align-items:center; justify-content:center; font-size:36px; margin-bottom:18px; }
.shipping-progress{ margin-top:14px; padding:12px 14px; background:linear-gradient(135deg, #fef3c7, #fde68a); border-radius:10px; font-size:13px; font-weight:600; color:#78350f; display:flex; gap:8px; align-items:center; }
.shipping-progress.done{ background:linear-gradient(135deg, #dcfce7, #bbf7d0); color:#14532d; }

/* ════════ Auth & Forms ════════ */
.auth-card{ max-width:440px; margin:30px auto; background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:30px; box-shadow:var(--shadow-sm); }
.field{ margin-bottom:14px; }
.field label{ display:block; font-size:13px; font-weight:600; margin-bottom:7px; }
.field input, .field select, .field textarea{ width:100%; padding:13px 16px; border:1.5px solid var(--line); border-radius:11px; font-size:15px; outline:none; transition:border-color .15s var(--ease), box-shadow .15s var(--ease); background:#fff; }
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--accent); box-shadow:0 0 0 4px rgba(245,158,11,.12); }
.field-row{ display:flex; gap:10px; }
.field-row .field{ flex:1; }
.form-msg{ font-size:13px; padding:11px 14px; border-radius:9px; margin:6px 0 12px; display:flex; align-items:center; gap:8px; }
.form-msg.error{ background:#fee2e2; color:#991b1b; }
.form-msg.success{ background:#dcfce7; color:#14532d; }
.form-link{ text-align:center; margin-top:16px; color:var(--muted); font-size:14px; }
.form-link a{ color:var(--brand); font-weight:700; }
.form-link a:hover{ color:var(--accent); }

/* ════════ Checkout — payment ════════ */
.checkout-grid{ display:grid; grid-template-columns:1fr 380px; gap:24px; }
.checkout-grid > *{ min-width:0; }
.checkout-section{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:24px; margin-bottom:18px; }
.checkout-section h3{ font-size:17px; margin-bottom:16px; display:flex; align-items:center; gap:10px; }
.checkout-section h3 .step{ width:28px; height:28px; border-radius:50%; background:var(--brand); color:#fff; font-size:13px; display:inline-flex; align-items:center; justify-content:center; font-weight:800; }
.pay-methods{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-bottom:20px; }
.pay-method{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; border:1.5px solid var(--line); border-radius:12px; padding:18px 12px; text-align:center; cursor:pointer; transition:all .15s var(--ease); background:#fff; position:relative; min-height:110px; }
.pay-method:hover{ border-color:var(--brand); }
.pay-method.active{ border-color:var(--accent); background:#fffbeb; box-shadow:0 0 0 3px rgba(245,158,11,.15); }
.pay-method i{ font-size:26px; color:var(--brand); margin-bottom:4px; }
.pay-method.active i{ color:var(--accent); }
.pay-method strong{ font-size:13px; font-weight:700; }
.pay-method span{ font-size:11px; color:var(--muted); }
.card-input{ position:relative; }
.card-input .card-icons{ position:absolute; right:14px; top:50%; transform:translateY(-50%); display:flex; gap:6px; color:var(--muted-2); font-size:22px; pointer-events:none; }
.secured-line{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); margin-top:8px; padding:10px 12px; background:#f0fdf4; border-radius:9px; color:#14532d; }
.secured-line i{ color:var(--good); }
.order-success{ text-align:center; padding:60px 20px; }
.order-success .check{ width:90px; height:90px; border-radius:50%; background:var(--good); color:#fff; font-size:44px; display:inline-flex; align-items:center; justify-content:center; margin-bottom:20px; box-shadow:0 8px 28px rgba(16,185,129,.4); }

/* ════════ Loading / empty ════════ */
.loading{ display:flex; justify-content:center; padding:80px 20px; }
.spinner{ width:42px; height:42px; border:3.5px solid #e5e5e5; border-top-color:var(--accent); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg);}}
@keyframes shimmer{ 0%{ background-position:-400px 0; } 100%{ background-position:400px 0; }}
.skeleton-page{ padding:0 0 40px; }
.skel-hero{ height:340px; border-radius:var(--radius-lg); margin:0 0 28px; background:linear-gradient(90deg,#f1f5f9 0%,#e5edf5 50%,#f1f5f9 100%); background-size:800px 100%; animation:shimmer 1.4s infinite linear; }
.skel-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:18px; }
.skel-card{ aspect-ratio:1/1.4; border-radius:var(--radius); background:linear-gradient(90deg,#f1f5f9 0%,#e5edf5 50%,#f1f5f9 100%); background-size:800px 100%; animation:shimmer 1.4s infinite linear; }

/* ════════ Page transitions ════════ */
@keyframes appFadeIn{
  from{ opacity:0; transform:translateY(10px); filter:blur(2px); }
  to{ opacity:1; transform:none; filter:none; }
}
@keyframes cardPop{
  from{ opacity:0; transform:translateY(16px) scale(.97); }
  to{ opacity:1; transform:none; }
}
@keyframes softFade{
  from{ opacity:0; }
  to{ opacity:1; }
}
@keyframes slideUp{
  from{ opacity:0; transform:translateY(24px); }
  to{ opacity:1; transform:none; }
}
#app{ animation:appFadeIn .45s var(--ease) both; will-change:opacity, transform; transform-origin:center top; }
#app.app-leaving{ opacity:0; transform:translateY(-6px) scale(.995); transition:opacity .2s var(--ease), transform .2s var(--ease); animation:none; }
#app.app-entering{ opacity:0; transform:translateY(8px); animation:none; }
#app.app-loading{ opacity:.6; transition:opacity .25s var(--ease); cursor:progress; }
.grid > .card{ animation:cardPop .55s var(--ease) both; }
.grid > .card:nth-child(1){ animation-delay:.02s; }
.grid > .card:nth-child(2){ animation-delay:.06s; }
.grid > .card:nth-child(3){ animation-delay:.10s; }
.grid > .card:nth-child(4){ animation-delay:.14s; }
.grid > .card:nth-child(5){ animation-delay:.18s; }
.grid > .card:nth-child(6){ animation-delay:.22s; }
.grid > .card:nth-child(7){ animation-delay:.26s; }
.grid > .card:nth-child(8){ animation-delay:.30s; }
.grid > .card:nth-child(9){ animation-delay:.34s; }
.grid > .card:nth-child(10){ animation-delay:.38s; }
.grid > .card:nth-child(11){ animation-delay:.42s; }
.grid > .card:nth-child(12){ animation-delay:.46s; }
.grid > .card:nth-child(n+13){ animation-delay:.50s; }

.section{ animation:slideUp .65s var(--ease) both; }
.section:nth-of-type(1){ animation-delay:.05s; }
.section:nth-of-type(2){ animation-delay:.14s; }
.section:nth-of-type(3){ animation-delay:.24s; }
.section:nth-of-type(4){ animation-delay:.34s; }
.hero{ animation:appFadeIn .7s var(--ease) both; }
.hero-inner > *{ animation:slideUp .7s var(--ease) both; }
.hero-inner > *:nth-child(1){ animation-delay:.10s; }
.hero-inner > *:nth-child(2){ animation-delay:.20s; }
.hero-inner > *:nth-child(3){ animation-delay:.30s; }
.hero-inner > *:nth-child(4){ animation-delay:.40s; }
.section-head{ animation:slideUp .55s var(--ease) both; }
.cat-card{ animation:cardPop .55s var(--ease) both; transition:transform .28s var(--ease), box-shadow .28s var(--ease); }
.cat-card:nth-child(1){ animation-delay:.05s; }
.cat-card:nth-child(2){ animation-delay:.10s; }
.cat-card:nth-child(3){ animation-delay:.15s; }
.cat-card:nth-child(4){ animation-delay:.20s; }
.cat-card:nth-child(5){ animation-delay:.25s; }
.cat-card:nth-child(6){ animation-delay:.30s; }
.cat-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); }

.card{ transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s var(--ease); }
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:transparent; }
.card .add{ transition:background .25s var(--ease), color .25s var(--ease), letter-spacing .25s var(--ease); }
.card:hover .add{ letter-spacing:.04em; }

.btn{ transition:transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease), opacity .2s var(--ease); }
.btn:hover{ transform:translateY(-1px); }
.btn:active{ transform:translateY(0) scale(.97); }

a, .nav-strip a, .action-link, .icon-btn{ transition:color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease); }

/* Smooth scroll */
html{ scroll-behavior:smooth; }

/* Cart drawer + auth-card fade */
.auth-card, .checkout-grid, .cart-list, .cart-summary, .product, .toolbar, .pagination, .filter-tabs{ animation:softFade .5s var(--ease) both; }
.cart-item{ animation:slideUp .45s var(--ease) both; }
.cart-item:nth-child(1){ animation-delay:.04s; }
.cart-item:nth-child(2){ animation-delay:.08s; }
.cart-item:nth-child(3){ animation-delay:.12s; }
.cart-item:nth-child(4){ animation-delay:.16s; }
.cart-item:nth-child(5){ animation-delay:.20s; }
.cart-item:nth-child(n+6){ animation-delay:.24s; }

.page-title, .page-sub{ animation:slideUp .5s var(--ease) both; }

/* Toast smoother */
.toast{ animation:slideUp .35s var(--ease) both !important; }

/* Modal / drawer smoother backdrop */
.overlay, #drawer{ transition:opacity .35s var(--ease), transform .35s var(--ease) !important; }

/* Image hover zoom on cards already exists — gentler */
.card:hover .thumb img{ transform:scale(1.05); }
.card .thumb img{ transition:transform .7s var(--ease); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  #app, .grid > .card, .section, .hero, .hero-inner > *, .section-head, .cat-card, .auth-card, .cart-item, .page-title, .page-sub, .toast{ animation:none !important; }
  *{ transition-duration:.01ms !important; }
  html{ scroll-behavior:auto; }
}
.empty{ text-align:center; padding:60px 20px; color:var(--muted); }
.empty .icon-circle{ width:90px; height:90px; border-radius:50%; background:#f1f5f9; color:var(--muted); display:inline-flex; align-items:center; justify-content:center; font-size:36px; margin-bottom:18px; }
.empty h3{ color:var(--text); margin-bottom:6px; font-size:20px; }

/* ════════ Admin ════════ */
.admin-header{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:14px; }
.admin-badge{ background:#fffbeb; color:#92400e; border:1px solid var(--accent); padding:6px 14px; border-radius:999px; font-size:12px; font-weight:700; display:inline-flex; align-items:center; gap:7px; }
.admin-badge i{ color:var(--good); font-size:8px; }
.admin-nav{ display:flex; gap:6px; padding:6px; background:#fff; border:1px solid var(--line); border-radius:14px; margin-bottom:22px; overflow-x:auto; scrollbar-width:none; }
.admin-nav::-webkit-scrollbar{ display:none; }
.admin-nav a{ padding:10px 16px; border-radius:9px; font-weight:600; font-size:14px; white-space:nowrap; display:inline-flex; align-items:center; gap:8px; transition:all .15s var(--ease); color:var(--text); }
.admin-nav a:hover{ background:#fafaf7; }
.admin-nav a.active{ background:var(--brand); color:#fff; }
.admin-nav a.active i{ color:var(--accent); }
.stat-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:14px; }
.stat-card{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px; display:flex; gap:14px; align-items:center; box-shadow:var(--shadow-xs); }
.stat-card:hover{ box-shadow:var(--shadow); }
.stat-ico{ width:50px; height:50px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.stat-card strong{ display:block; font-size:24px; font-weight:800; letter-spacing:-.02em; }
.stat-card span{ font-size:12px; color:var(--muted); font-weight:600; }
.admin-list{ display:flex; flex-direction:column; gap:10px; }
.admin-row{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px; display:grid; grid-template-columns:1fr 200px; gap:14px; }
.ar-main{ min-width:0; }
.ar-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:8px; flex-wrap:wrap; }
.ar-head strong{ font-size:14px; font-family:'Plus Jakarta Sans',monospace; }
.ar-date{ font-size:12px; color:var(--muted); }
.ar-body{ display:flex; gap:18px; flex-wrap:wrap; font-size:13px; color:var(--text); margin-bottom:8px; }
.ar-body i{ color:var(--muted-2); margin-right:4px; }
.admin-row details{ font-size:13px; }
.admin-row details summary{ cursor:pointer; color:var(--brand); font-weight:600; padding:6px 0; }
.ar-items{ list-style:disc; margin-left:22px; padding:8px 0; color:var(--muted); }
.ar-items li{ margin-bottom:4px; }
.ar-side{ display:flex; flex-direction:column; gap:8px; align-items:stretch; }
.ar-total{ font-size:20px; font-weight:800; color:var(--brand); text-align:right; }
.ar-status{ padding:9px 12px; border:1.5px solid var(--line); border-radius:9px; font-weight:600; font-size:13px; cursor:pointer; }
.ar-status:focus{ border-color:var(--accent); outline:none; }
.filter-tabs{ display:flex; gap:4px; flex-wrap:wrap; }
.filter-tabs a{ padding:8px 14px; border-radius:9px; font-size:13px; font-weight:600; background:#fafaf7; border:1px solid var(--line); }
.filter-tabs a.active{ background:var(--brand); color:#fff; border-color:var(--brand); }
.prod-table{ background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.pt-head, .pt-row{ display:grid; grid-template-columns:60px 1fr 130px 100px 120px; gap:14px; padding:14px 16px; align-items:center; }
.pt-head{ background:#fafaf7; font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); font-weight:700; border-bottom:1px solid var(--line); }
.pt-row{ border-bottom:1px solid var(--line-soft); }
.pt-row:last-child{ border-bottom:0; }
.pt-row img{ width:60px; height:60px; object-fit:cover; border-radius:10px; background:#f1f5f9; }
.pt-info{ min-width:0; }
.pt-info strong{ display:block; font-size:14px; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pt-info span{ font-size:11px; }
.pt-cat{ font-size:13px; display:inline-flex; align-items:center; gap:6px; }
.pt-cat i{ color:var(--accent); }
.pt-price{ color:var(--brand); font-size:15px; }
.pt-actions{ display:flex; gap:6px; justify-content:flex-end; }
@media (max-width: 900px){
  .admin-row{ grid-template-columns:1fr; }
  .ar-side{ flex-direction:row; align-items:center; justify-content:space-between; }
  .pt-head{ display:none; }
  .pt-row{ grid-template-columns:60px 1fr; gap:10px; padding:12px; }
  .pt-cat, .pt-price{ grid-column:2; font-size:12px; }
  .pt-actions{ grid-column:1/-1; justify-content:flex-end; }
}

/* ════════ Toasts ════════ */
.toasts{ position:fixed; bottom:24px; right:24px; z-index:200; display:flex; flex-direction:column; gap:10px; }
.toast{ background:#0b1220; color:#fff; padding:14px 20px; border-radius:11px; box-shadow:var(--shadow-lg); font-size:14px; font-weight:600; animation:tin .3s var(--ease); display:flex; align-items:center; gap:10px; min-width:240px; }
.toast i{ font-size:16px; }
.toast.success{ background:var(--good); }
.toast.error{ background:var(--bad); }
@keyframes tin{ from{ transform:translateY(20px); opacity:0; } to{ transform:none; opacity:1; }}

/* ════════ Footer ════════ */
#footer{ background:#0b1220; color:#cbd5e1; padding:0 22px 28px; margin-top:50px; }
.ft-features{ max-width:var(--max); margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); gap:18px; padding:30px 0; border-bottom:1px solid #1e293b; }
.ft-features > div{ display:flex; align-items:center; gap:14px; }
.ft-features i{ font-size:28px; color:var(--accent); }
.ft-features strong{ color:#fff; font-size:14px; display:block; }
.ft-features span{ font-size:12px; color:#94a3b8; }
.ft-grid{ max-width:var(--max); margin:0 auto; display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:32px; padding:36px 0 24px; }
#footer h4{ color:#fff; margin-bottom:14px; font-size:14px; letter-spacing:.04em; text-transform:uppercase; }
#footer ul li{ margin-bottom:8px; font-size:14px; }
#footer a:hover{ color:var(--accent); }
#footer .muted{ color:#94a3b8; font-size:14px; margin-top:10px; line-height:1.55; }
#footer .logo .logo-text{ color:#fff; }
#footer .logo .logo-text > span{ color:var(--accent); }
.ft-social{ display:flex; gap:8px; margin-top:14px; }
.ft-social a{ width:38px; height:38px; border-radius:10px; background:#1e293b; display:inline-flex; align-items:center; justify-content:center; transition:background .15s var(--ease); }
.ft-social a:hover{ background:var(--accent); color:#000; }
.ft-bottom{ max-width:var(--max); margin:0 auto; display:flex; justify-content:space-between; align-items:center; border-top:1px solid #1e293b; padding-top:18px; font-size:13px; color:#64748b; flex-wrap:wrap; gap:14px; }
.ft-pay{ display:flex; gap:10px; font-size:26px; color:#94a3b8; }
.ft-pay i{ transition:color .15s var(--ease); }
.ft-pay i:hover{ color:#fff; }

/* ════════ Responsive ════════ */
@media (max-width: 1100px){
  .hero h1{ font-size:38px; }
  .checkout-grid{ grid-template-columns:1fr; }
  .ft-features{ grid-template-columns:repeat(2,1fr); }
  .ft-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 980px){
  :root{ --header-h:152px; }
  .product{ grid-template-columns:1fr; }
  .layout{ grid-template-columns:1fr; }
  .sidebar{ position:static; }
  .hero{ padding:46px 28px; }
  .hero h1{ font-size:32px; }
  .cat-grid{ grid-template-columns:repeat(2, 1fr); }
  .action-link.action-orders{ display:none; }
}
@media (max-width: 640px){
  :root{ --header-h:158px; }
  .menu-btn{ display:inline-flex; }
  .bar{ padding:12px 14px; gap:10px; }
  .bar .search{ display:none; }
  .search-mobile{ display:block; }
  .action-link{ min-width:48px; padding:6px 8px; }
  .action-link .action-label{ display:none; }
  .action-link.action-orders, .action-link[aria-label="Compte"]{ display:none; }
  .topbar-inner > *:nth-child(n+3){ display:none; }
  .nav-strip a{ padding:12px 14px; font-size:13px; }
  #app{ padding:16px 12px 80px; }
  .grid{ grid-template-columns:repeat(2, 1fr); gap:12px; }
  .card h3{ font-size:13px; }
  .card .price{ font-size:16px; }
  .card .meta{ padding:12px 12px 6px; }
  .card .add{ padding:11px; font-size:12px; }
  .page-title{ font-size:22px; }
  .hero{ padding:34px 22px; border-radius:18px; }
  .hero h1{ font-size:26px; }
  .hero p{ font-size:15px; }
  .hero-cta{ flex-direction:column; }
  .hero-cta .btn{ width:100%; }
  .hero-stats{ gap:18px; }
  .hero-stats strong{ font-size:20px; }
  .cat-grid{ grid-template-columns:repeat(2, 1fr); gap:10px; }
  .cat-card{ padding:20px 18px; min-height:130px; }
  .cat-name{ font-size:18px; }
  .toolbar{ flex-direction:column; align-items:stretch; padding:12px 14px; }
  .pay-methods{ grid-template-columns:1fr 1fr 1fr !important; gap:8px; }
  .pay-method{ padding:14px 6px; min-height:96px; }
  .pay-method i{ font-size:22px; }
  .pay-method strong{ font-size:12px; }
  .pay-method span{ font-size:10px; line-height:1.2; }
  .checkout-grid{ gap:14px; }
  .cart-list{ border-radius:12px; }
  .cart-item{ grid-template-columns:72px 1fr; gap:12px; padding:12px; }
  .cart-item img{ width:72px; height:72px; }
  .cart-item .ci-info h4{ font-size:13px; }
  .cart-item .ci-info .ci-price{ font-size:13px; }
  .cart-item .ci-actions{ grid-column:1/-1; justify-content:space-between; flex-wrap:wrap; gap:10px; }
  .cart-item .qty button{ width:36px; height:38px; }
  .cart-item .qty input{ width:42px; height:38px; }
  .cart-summary{ position:static !important; padding:18px; }
  .checkout-section{ padding:18px; }
  .checkout-section h3{ font-size:15px; }
  .field-row{ flex-direction:column; gap:0; }
  .auth-card{ margin:10px auto; padding:22px; }
  .product .perks{ grid-template-columns:1fr; }
  .toasts{ left:16px; right:16px; bottom:16px; }
  .toast{ width:100%; }
  .ft-features{ grid-template-columns:1fr; }
  .ft-grid{ grid-template-columns:1fr 1fr; gap:22px; }
  .ft-bottom{ flex-direction:column; text-align:center; }
}
