/* ===== PokéCardz — styles ===== */
/* Typographie : Noto Sans (corps) + Outfit (titres/prix) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Noto+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg: #f4f6fb;
  --bg-elev: #ffffff;
  --text: #14181f;
  --muted: #626a78;
  --border: #e4e8f0;
  --primary: #ee1515;
  --primary-dark: #c00d0d;
  --accent: #ffcb05;
  --accent-2: #2a75bb;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(20, 24, 31, .08);
  --shadow-lg: 0 20px 50px rgba(20, 24, 31, .16);
  --font: "Noto Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Outfit", "Noto Sans", "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0e1117;
  --bg-elev: #171b23;
  --text: #eef1f6;
  --muted: #9aa3b2;
  --border: #262c37;
  --shadow: 0 8px 30px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* L'attribut hidden doit TOUJOURS gagner (sinon display:flex des composants l'écrase) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }
.muted { color: var(--muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border: none; border-radius: 999px;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(238,21,21,.35); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn.full { width: 100%; }
.btn.small { padding: .55rem 1rem; font-size: .85rem; }

.icon-btn {
  background: transparent; border: none; cursor: pointer; font-size: 1.25rem;
  width: 42px; height: 42px; border-radius: 12px; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s;
}
.icon-btn:hover { background: var(--border); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; }
.logo-text em { color: var(--primary); font-style: normal; }
.pokeball {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background:
    linear-gradient(var(--text) 0 0) center/100% 4px no-repeat,
    radial-gradient(circle, var(--bg-elev) 0 5px, var(--text) 5px 8px, transparent 8px) center/100% 100% no-repeat,
    linear-gradient(#fff 0 0) bottom/100% 50% no-repeat,
    linear-gradient(var(--primary) 0 0) top/100% 50% no-repeat;
  border: 3px solid var(--text); box-shadow: inset 0 0 0 1px var(--bg-elev);
}
.main-nav { display: flex; gap: 1.5rem; margin-left: auto; font-weight: 600; }
.main-nav a { color: var(--muted); transition: color .2s; }
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.cart-btn {
  display: inline-flex; align-items: center; gap: .5rem; position: relative;
  background: var(--text); color: var(--bg-elev); border: none; cursor: pointer;
  padding: .55rem 1rem; border-radius: 999px; font-weight: 700; font-family: inherit; font-size: .95rem;
}
.cart-count {
  background: var(--primary); color: #fff; border-radius: 999px;
  min-width: 22px; height: 22px; padding: 0 6px; font-size: .78rem;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ===== Hero ===== */
.hero { padding: 4rem 0 3rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.badge {
  display: inline-block; background: color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  padding: .35rem .8rem; border-radius: 999px; font-weight: 700; font-size: .82rem; margin-bottom: 1.1rem;
}
:root[data-theme="dark"] .badge { color: var(--accent); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; font-weight: 800; letter-spacing: -1px; }
.grad { background: linear-gradient(120deg, var(--primary), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 1rem 0 1.6rem; max-width: 30rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.2rem; }
.hero-stats strong { font-size: 1.6rem; display: block; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

.hero-art { position: relative; height: 360px; }
.floating-card {
  position: absolute; width: 190px; height: 265px; border-radius: 18px;
  box-shadow: var(--shadow-lg); border: 4px solid #fff;
  background-size: cover; background-position: center;
}
.floating-card::after { content:""; position:absolute; inset:0; border-radius:14px; background: linear-gradient(160deg, rgba(255,255,255,.35), transparent 45%); }
.c1 { left: 8%; top: 30px; transform: rotate(-12deg); z-index: 1;
  background: linear-gradient(160deg,#ffe259,#ffa751); animation: float1 6s ease-in-out infinite; }
.c2 { left: 34%; top: 0; transform: rotate(3deg); z-index: 3;
  background: linear-gradient(160deg,#f857a6,#ff5858); animation: float2 7s ease-in-out infinite; }
.c3 { left: 60%; top: 50px; transform: rotate(13deg); z-index: 2;
  background: linear-gradient(160deg,#43cea2,#185a9d); animation: float1 8s ease-in-out infinite; }
.c1{background-image:url("https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/25.png");background-color:#ffe259}
.c2{background-image:url("https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/6.png");background-color:#ff5858}
.c3{background-image:url("https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/149.png");background-color:#185a9d}
@keyframes float1 { 0%,100%{ transform: translateY(0) rotate(-12deg);} 50%{ transform: translateY(-18px) rotate(-12deg);} }
@keyframes float2 { 0%,100%{ transform: translateY(0) rotate(3deg);} 50%{ transform: translateY(-14px) rotate(3deg);} }

/* ===== Bandeau annonce 30 ans ===== */
.nav-hot { color: var(--primary) !important; font-weight: 800 !important; }
.promo-strip {
  display: flex; align-items: center; justify-content: center; gap: .7rem; flex-wrap: wrap;
  padding: .6rem 1rem; text-align: center; font-size: .92rem; color: #1a1400;
  background: linear-gradient(90deg, #ffd200, #ff9d00, #ffd200);
  background-size: 200% 100%; animation: shimmer 6s linear infinite;
  border-bottom: 2px solid rgba(0,0,0,.15);
}
@keyframes shimmer { to { background-position: 200% 0; } }
.promo-strip strong { letter-spacing: 1px; }
.promo-sep { opacity: .5; }
.promo-cta { background: #1a1400; color: #ffd200; padding: .2rem .7rem; border-radius: 999px; font-weight: 800; font-size: .82rem; }
.promo-spark { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Section précommandes ===== */
.preorder-section { padding-top: 3rem; }
.preorder-banner {
  position: relative; overflow: hidden; border-radius: 22px; padding: 2.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem;
  background: linear-gradient(135deg, #14060b 0%, #3a0d2a 45%, #7a1533 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.pb-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,205,5,.35), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(43,117,187,.35), transparent 40%);
}
.pb-text { position: relative; max-width: 40rem; }
.pb-badge { display: inline-block; background: rgba(255,205,5,.2); border: 1px solid rgba(255,205,5,.5); color: #ffd200; padding: .3rem .8rem; border-radius: 999px; font-weight: 700; font-size: .82rem; }
.preorder-banner h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .8rem 0 .4rem; background: linear-gradient(90deg,#ffd200,#ff8a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.preorder-banner p { color: rgba(255,255,255,.8); font-size: 1.02rem; max-width: 34rem; }
.pb-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.3rem; }
.pb-chip { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: .5rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .88rem; font-family: inherit; transition: all .2s; }
.pb-chip:hover { background: rgba(255,255,255,.2); }
.pb-chip.active { background: #ffd200; color: #1a1400; border-color: #ffd200; }
.pb-emblem {
  position: relative; flex: none; width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-items: center; font-size: 3.6rem; font-weight: 900; color: #1a1400;
  background: radial-gradient(circle at 35% 30%, #fff6c2, #ffd200 60%, #ff9d00);
  box-shadow: 0 0 0 8px rgba(255,205,5,.15), 0 0 40px rgba(255,205,5,.4); line-height: 1;
}
.pb-emblem span { position: absolute; bottom: 30px; font-size: .9rem; letter-spacing: 3px; font-weight: 800; }

.preorder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.preorder-card {
  position: relative; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.preorder-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #ffd200, #ff8a00, #ff5858); z-index: 2; }
.preorder-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.po-ribbon { position: absolute; top: .9rem; left: .9rem; z-index: 3; background: rgba(20,6,11,.85); color: #ffd200; font-size: .75rem; font-weight: 800; padding: .3rem .7rem; border-radius: 999px; }
.po-media { position: relative; min-height: 230px; display: grid; place-items: center; padding: 1.5rem 1.2rem; background: radial-gradient(circle at 50% 40%, rgba(255,205,5,.14), transparent 70%); }
.po-media img { width: 100%; max-height: 210px; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0,0,0,.35)); position: relative; z-index: 1; transition: transform .3s; }
.preorder-card:hover .po-media img { transform: scale(1.07); }
.po-30 { position: absolute; font-size: 8rem; font-weight: 900; color: color-mix(in srgb, var(--text) 6%, transparent); z-index: 0; user-select: none; }
.po-body { padding: 0 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.po-name { font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.po-release { font-size: .82rem; color: var(--accent-2); font-weight: 700; }
:root[data-theme="dark"] .po-release { color: #6db3ff; }
.po-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .4rem; }
.po-btn { background: linear-gradient(90deg, #ff8a00, #ff5858); color: #fff; border: none; border-radius: 12px; cursor: pointer; padding: .6rem 1rem; font-weight: 800; font-family: inherit; transition: filter .2s, transform .1s; white-space: nowrap; }
.po-btn:hover { filter: brightness(1.08); }
.po-btn:active { transform: scale(.94); }
.po-btn:disabled { background: var(--muted); cursor: not-allowed; opacity: .6; }

/* ===== Section titles ===== */
.section-title { font-size: 1.8rem; font-weight: 800; margin: 0 0 1.4rem; }
section { padding: 2.5rem 0; }

/* ===== Collections ===== */
.collection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.collection-card {
  border-radius: var(--radius); padding: 1.4rem; color: #fff; cursor: pointer;
  min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .2s;
  border: none; font-family: inherit; text-align: left;
}
.collection-card:hover { transform: translateY(-4px); }
.collection-card h3 { font-size: 1.2rem; }
.collection-card span { opacity: .9; font-size: .85rem; }
.collection-card .emoji { position: absolute; top: -10px; right: -6px; font-size: 5rem; opacity: .35; }

/* ===== Toolbar ===== */
.toolbar { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.search { flex: 1 1 260px; }
.search, .select {
  padding: .7rem 1rem; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); font-size: .95rem; font-family: inherit;
}
.search:focus, .select:focus { outline: 2px solid var(--primary); border-color: transparent; }
.result-count { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }

/* ===== Card grid ===== */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.poke-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease; position: relative;
}
.poke-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media {
  position: relative; padding: 1.2rem; display: grid; place-items: center; min-height: 210px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.card-media img { width: 100%; max-height: 200px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.28)); transition: transform .3s; }
.cat-tag {
  position: absolute; top: .7rem; left: .7rem; z-index: 2; font-size: .72rem; font-weight: 800;
  padding: .28rem .65rem; border-radius: 999px; background: rgba(20,24,31,.82); color: #fff; letter-spacing: .3px;
}
.lang-tag {
  position: absolute; top: .7rem; right: .7rem; z-index: 2; font-size: 1.05rem;
  background: rgba(255,255,255,.85); border-radius: 999px; padding: .12rem .4rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
:root[data-theme="dark"] .lang-tag { background: rgba(23,27,35,.85); }
.card-ext { font-size: .78rem; font-weight: 700; color: var(--accent-2); }
:root[data-theme="dark"] .card-ext { color: #6db3ff; }
.poke-card:hover .card-media img { transform: scale(1.08) rotate(-2deg); }
.rarity-tag {
  position: absolute; top: .7rem; left: .7rem; font-size: .72rem; font-weight: 800;
  padding: .25rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(255,255,255,.85); color: #333;
}
.rarity-tag.rare { background: linear-gradient(90deg,#c471ed,#f64f59); color:#fff; }
.rarity-tag.holo { background: linear-gradient(90deg,#00c6ff,#7b2ff7,#f64f59); color:#fff; }
.rarity-tag.legend { background: linear-gradient(90deg,#f7971e,#ffd200); color:#222; }
.hp-tag { position:absolute; top:.7rem; right:.7rem; font-size:.75rem; font-weight:800; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.4); }
.card-body { padding: .3rem 1rem 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-name { font-weight: 800; font-size: 1.1rem; display:flex; align-items:center; justify-content:space-between; gap:.4rem; }
.type-chip { font-size: .7rem; font-weight: 700; color: #fff; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-size: 1.35rem; font-weight: 800; }
.add-btn {
  background: var(--primary); color:#fff; border:none; border-radius: 12px; cursor:pointer;
  padding: .55rem .9rem; font-weight: 700; font-family: inherit; transition: background .2s, transform .1s;
}
.add-btn:hover { background: var(--primary-dark); }
.add-btn:active { transform: scale(.94); }
.empty-state { text-align: center; padding: 3rem; color: var(--muted); font-size: 1.1rem; }
.empty-state code { background: var(--border); padding: .15rem .4rem; border-radius: 6px; }

/* Titres et prix en Outfit (police du style boutique) */
h1, h2, h3, .section-title, .price, .p-price, .logo-text, .card-name, .po-name, .hero h1 { font-family: var(--font-head); }

/* Cartes cliquables */
.card-link { display: block; color: inherit; }
.card-link:hover .card-name { color: var(--primary); }
.card-foot-pad { padding: 0 1rem 1rem; }
.preorder-card .card-foot-pad { padding: 0 1.1rem 1.2rem; }

/* ===== Page produit ===== */
.product-page { padding: 2rem 0 3rem; min-height: 60vh; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.product-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
.product-gallery {
  position: sticky; top: 90px; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; display: grid; place-items: center; min-height: 420px;
  box-shadow: var(--shadow); position: relative;
}
.product-gallery img { width: 100%; max-height: 480px; object-fit: contain; filter: drop-shadow(0 14px 20px rgba(0,0,0,.25)); }
.product-gallery .cat-tag { position: absolute; top: 1rem; left: 1rem; }
.product-gallery .lang-tag { position: absolute; top: 1rem; right: 1rem; }
.product-info h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; margin: .3rem 0 .6rem; }
.p-price-row { display: flex; align-items: center; gap: 1.2rem; margin: 1rem 0; flex-wrap: wrap; }
.p-price { font-size: 2.2rem; font-weight: 800; }
.p-stock { font-size: .95rem; font-weight: 700; }
.stock-ok { color: #0a7c3e; font-weight: 800; }
.p-desc { color: var(--muted); font-size: 1.02rem; margin: .8rem 0 1.2rem; max-width: 40rem; }
.p-details { margin: 0 0 1.6rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; color: var(--text); font-size: .95rem; }
.p-buy { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.qty.big { display: inline-flex; align-items: center; gap: .6rem; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: .35rem .6rem; }
.qty.big button { width: 34px; height: 34px; font-size: 1.1rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-weight: 800; color: var(--text); }
.qty.big span { min-width: 28px; text-align: center; font-weight: 800; font-size: 1.05rem; }
.p-buy .btn { padding: .95rem 1.8rem; font-size: 1.05rem; }
.p-trust { display: flex; flex-direction: column; gap: .4rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.similar { margin-top: 3.5rem; }
@media (max-width: 860px) {
  .product-wrap { grid-template-columns: 1fr; }
  .product-gallery { position: static; min-height: 300px; }
}
.stock-warn { font-size: .78rem; font-weight: 700; color: #e07b00; }
.stock-out { font-size: .78rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.add-btn:disabled { background: var(--muted); cursor: not-allowed; opacity: .6; }

/* ===== About ===== */
.about-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; }
.about-item { background: var(--bg-elev); border:1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.about-item span { font-size: 2rem; }
.about-item h3 { margin: .5rem 0 .3rem; font-size: 1.1rem; }
.about-item p { color: var(--muted); font-size: .92rem; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-elev); border-top: 1px solid var(--border); padding-top: 2.5rem; margin-top: 1rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-cols h4 { margin-bottom: .6rem; }
.footer-cols a { display: block; color: var(--muted); padding: .2rem 0; }
.footer-cols a:hover { color: var(--primary); }
.copyright { text-align: center; color: var(--muted); font-size: .82rem; padding: 1.2rem; border-top: 1px solid var(--border); }

/* ===== Cart drawer ===== */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 50; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--bg-elev); z-index: 60; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--border); }
.cart-head h3 { font-size: 1.3rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center; }
.cart-line img { width: 56px; height: 56px; object-fit: contain; background: var(--bg); border-radius: 10px; }
.cart-line .l-name { font-weight: 700; font-size: .95rem; }
.cart-line .l-price { color: var(--muted); font-size: .85rem; }
.qty { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; }
.qty button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-weight: 700; color: var(--text); }
.qty span { min-width: 20px; text-align: center; font-weight: 700; }
.l-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .8rem; text-decoration: underline; }
.cart-foot { padding: 1.2rem 1.4rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .6rem; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.cart-total strong { font-size: 1.4rem; }

/* ===== Modal ===== */
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--bg-elev); z-index: 60; width: min(460px, 92%); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-lg); animation: pop .2s ease;
}
@keyframes pop { from { transform: translate(-50%,-48%) scale(.96); opacity: 0; } }
.modal-close { position: absolute; top: .8rem; right: .8rem; }
.checkout-form { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.2rem; }
.checkout-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.checkout-form input {
  padding: .7rem .9rem; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: .95rem; font-family: inherit;
}
.checkout-form input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.checkout-form .row { display: grid; grid-template-columns: 1fr 1.4fr; gap: .8rem; }
.checkout-summary { display: flex; justify-content: space-between; padding: .8rem 0; font-size: 1.1rem; border-top: 1px dashed var(--border); margin-top: .3rem; }
.checkout-success { text-align: center; padding: 1rem 0; }
.success-ball { font-size: 3.5rem; }
.checkout-success h3 { margin: .5rem 0; font-size: 1.5rem; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg-elev); padding: .8rem 1.3rem; border-radius: 999px;
  font-weight: 700; z-index: 80; box-shadow: var(--shadow-lg); animation: toastIn .3s ease;
}
@keyframes toastIn { from { transform: translateX(-50%) translateY(20px); opacity: 0; } }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .card-grid, .collection-grid, .about-inner { grid-template-columns: repeat(2,1fr); }
  .preorder-grid { grid-template-columns: repeat(2,1fr); }
  .preorder-banner { flex-direction: column; text-align: center; }
  .pb-filters { justify-content: center; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .main-nav { display: none; }
  .cart-label { display: none; }
  .promo-strip { font-size: .82rem; padding: .5rem .8rem; }
  .promo-strip > span:nth-child(4) { display: none; }
}
@media (max-width: 560px) {
  .card-grid, .collection-grid, .about-inner { grid-template-columns: 1fr; }
  .preorder-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.2rem; }
  .footer-cols { gap: 1.5rem; }
  .preorder-banner { padding: 1.8rem 1.4rem; }
}
