/* =========================================================
   Totale Card Market — Design System
   Boutique de cartas Pokémon TCG — não é varejão, é curadoria.
   ========================================================= */
:root {
  --red: #EE1515;
  --red-dark: #B80F0F;
  --blue: #2451B0;
  --purple: #6C4AB6;
  --yellow: #FFCB05;
  --yellow-dark: #E0AE00;
  --bg: #F7F7FA;
  --surface: #FFFFFF;
  --surface-2: #FBFAF6;
  --border: #E6E6EC;
  --text: #1A1A2E;
  --text-muted: #6B6B7B;
  --text-faint: #9797A6;
  --available: #15803D;
  --available-bg: #DCFCE7;
  --reserved: #B45309;
  --reserved-bg: #FEF3C7;
  --sold: #6B7280;
  --sold-bg: #E5E7EB;
  --info: #1D4ED8;
  --info-bg: #DBEAFE;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20,20,40,.06), 0 1px 1px rgba(20,20,40,.04);
  --shadow: 0 4px 14px rgba(20,20,40,.08);
  --shadow-lg: 0 16px 40px rgba(20,20,40,.14);
  --header-h: 68px;
  --announce-h: 38px;
  --max: 1320px;
  --font-head: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--text); padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: .95rem;
  min-height: 44px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); box-shadow: var(--shadow); }
.btn-accent { background: var(--yellow); color: #3a2c00; }
.btn-accent:hover { background: var(--yellow-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; min-height: 36px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-icon { padding: 10px; min-width: 44px; border-radius: 50%; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.badge-available { background: var(--available-bg); color: var(--available); }
.badge-reserved { background: var(--reserved-bg); color: var(--reserved); }
.badge-sold { background: var(--sold-bg); color: var(--sold); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-grading { background: #0B1220; color: var(--yellow); font-family: var(--font-head); }
.badge-rare { background: linear-gradient(120deg, var(--purple), var(--blue)); color: #fff; }
.badge-vintage { background: #3A2C00; color: var(--yellow); }
.badge-new { background: var(--red); color: #fff; }
.badge-outline { background: #fff; border: 1px solid var(--border); color: var(--text-muted); }

/* ---------- Top announcement bar ---------- */
.announce {
  background: var(--text); color: #fff; text-align: center; font-size: .82rem; font-weight: 600;
  height: var(--announce-h); display: flex; align-items: center; justify-content: center; padding: 0 16px;
  gap: 8px;
}
.announce strong { color: var(--yellow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; flex-shrink: 0; }
.logo .logo-mark {
  width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--red), var(--red-dark));
  border: 3px solid #fff; box-shadow: 0 0 0 2px var(--text); position: relative; flex-shrink: 0;
}
.logo .logo-mark::after { content: ''; position: absolute; inset: 40%; background: #fff; border-radius: 50%; border: 2px solid var(--text); }
.logo .logo-mark-img { object-fit: cover; box-shadow: 0 0 0 2px var(--text); border: 3px solid #fff; }
.logo .logo-mark-img::after { content: none; }
.logo small { display: block; font-size: .6rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--text-muted);
  transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav a.active { background: var(--bg); color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--text); background: transparent; border: none;
}
.icon-btn:hover { background: var(--bg); }
.icon-btn svg { width: 22px; height: 22px; }
.count-pill {
  position: absolute; top: -2px; right: -2px; background: var(--red); color: #fff; font-size: .65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.search-box { position: relative; flex: 1; max-width: 340px; }
.search-box input {
  width: 100%; padding: 10px 40px 10px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg);
}
.search-box input:focus { background: #fff; border-color: var(--blue); }
.search-box svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-faint); }
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); overflow: hidden; z-index: 80; display: none;
}
.search-suggest.open { display: block; }
.search-suggest a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: .88rem; }
.search-suggest a:hover { background: var(--bg); }
.search-suggest .ss-name { font-weight: 600; }
.search-suggest .ss-meta { color: var(--text-faint); font-size: .78rem; }
.hamburger { display: none; width: 44px; height: 44px; border: none; background: none; flex-direction: column; align-items: center; justify-content: center; padding: 0; }
.hamburger span, .hamburger::before, .hamburger::after { content:''; display:block; width: 22px; height: 2px; background: var(--text); margin: 3px 0; transition: .2s; }

/* ---------- Mobile drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(20,20,30,.5); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: -420px; width: min(92vw, 400px); height: 100%; background: #fff; z-index: 95;
  box-shadow: var(--shadow-lg); transition: right .25s ease; display: flex; flex-direction: column;
}
.drawer.open { right: 0; }
.drawer.drawer-left { right: auto; left: -420px; }
.drawer.drawer-left.open { left: 0; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--border); }

/* ---------- Mobile nav list ---------- */
.mobile-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--border); font-weight: 600; }

/* ---------- Hero / Homepage ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); margin: 20px 0; background: var(--text); color: #fff; }
.hero-slide { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 420px; }
.hero-slide .hero-copy { padding: 48px; z-index: 2; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,203,5,.15); color: var(--yellow); padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; margin-bottom: 16px; }
.hero-slide h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); margin-bottom: .4em; }
.hero-slide p { color: rgba(255,255,255,.8); max-width: 460px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-media { position: relative; height: 100%; min-height: 420px; background: radial-gradient(circle at 70% 30%, rgba(255,203,5,.25), transparent 60%); display: flex; align-items: center; justify-content: center; }
.hero-media img { max-height: 380px; border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.4); transform: rotate(-4deg); }
.hero-dots { position: absolute; bottom: 20px; left: 48px; display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); border: none; padding: 0; }
.hero-dots button.active { background: var(--yellow); width: 26px; border-radius: 6px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.15); border: none; color: #fff; display: flex; align-items: center; justify-content: center; z-index: 3; }
.hero-arrow:hover { background: rgba(255,255,255,.3); }
.hero-arrow.prev { left: 16px; } .hero-arrow.next { right: 16px; }

/* ---------- Section headers ---------- */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.section-head p { color: var(--text-muted); margin: 4px 0 0; }
.section-link { font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ---------- Carousel ---------- */
.carousel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.carousel > * { scroll-snap-align: start; flex: 0 0 auto; }

/* ---------- Product Card ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column;
  width: 100%; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card.w-fixed { width: 220px; }
.pc-media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--surface-2); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .pc-media img { transform: scale(1.06); }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.pc-badges-right { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; z-index: 2; }
.pc-wish {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; display: flex;
  align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.pc-wish svg { width: 18px; height: 18px; }
.pc-wish.active svg { fill: var(--red); color: var(--red); }
.pc-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-set { font-size: .72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.pc-name { font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.3; min-height: 2.4em; }
.pc-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-price-row { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 8px; }
.pc-price { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--text); }
.pc-compare { text-decoration: line-through; color: var(--text-faint); font-size: .82rem; margin-right: 6px; }
.pc-add { width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: #fff; border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pc-add:hover { background: var(--red); }
.pc-add svg { width: 18px; height: 18px; }
.pc-sold-strip { position: absolute; inset: 0; background: rgba(20,20,30,.55); display: flex; align-items: center; justify-content: center; z-index: 3; }
.pc-sold-strip span { background: var(--sold); color: #fff; padding: 6px 20px; font-weight: 800; transform: rotate(-8deg); border-radius: 6px; letter-spacing: .05em; }

/* list view */
.card-list .product-card { flex-direction: row; }
.card-list .pc-media { width: 160px; aspect-ratio: auto; flex-shrink: 0; }
.card-list .pc-body { flex-direction: row; align-items: center; flex-wrap: wrap; }
.card-list .pc-name { min-height: 0; flex: 1 1 240px; }
.card-list .pc-price-row { margin-top: 0; padding-top: 0; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.cat-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px;
  display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, transform .2s;
}
.cat-tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-tile .cat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.cat-tile .cat-icon svg { width: 24px; height: 24px; color: var(--red); }
.cat-tile strong { font-family: var(--font-head); }
.cat-tile span { color: var(--text-muted); font-size: .85rem; }

/* ---------- Trust / About ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.trust-item { display: flex; gap: 14px; }
.trust-item .ti-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--available-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-item .ti-icon svg { width: 24px; height: 24px; color: var(--available); }
.about-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.about-split img { border-radius: var(--radius-lg); }
.stat-row { display: flex; gap: 28px; margin-top: 20px; flex-wrap: wrap; }
.stat-row .stat b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--red); }
.stat-row .stat span { color: var(--text-muted); font-size: .85rem; }

/* ---------- Newsletter / promo bands ---------- */
.promo-band { background: linear-gradient(120deg, var(--red), #c40e0e); color: #fff; border-radius: var(--radius-lg); padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.promo-band h3 { margin-bottom: 4px; }
.newsletter-box { background: var(--text); color: #fff; border-radius: var(--radius-lg); padding: 40px; text-align: center; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 20px auto 0; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 220px; padding: 13px 18px; border-radius: 999px; border: none; }

/* ---------- Footer ---------- */
.site-footer { background: #14141F; color: #C9C9D6; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0 32px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid a, .footer-grid p { color: #A6A6BB; font-size: .88rem; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 18px; height: 18px; }
.footer-payments { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.footer-payments span { background: rgba(255,255,255,.08); padding: 5px 10px; border-radius: 6px; font-size: .72rem; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #8888A0; }
.footer-badges { display: flex; gap: 14px; align-items: center; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; gap: 6px; flex-wrap: wrap; font-size: .84rem; color: var(--text-muted); margin: 18px 0; align-items: center; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb .sep { color: var(--text-faint); }

/* ---------- Catalog layout ---------- */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: flex-start; }
.filters-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
.filter-group { border-bottom: 1px solid var(--border); padding: 14px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: none; }
.filter-group summary { font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; font-size: .92rem; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: '+'; font-size: 1.1rem; color: var(--text-faint); }
.filter-group[open] summary::after { content: '−'; }
.filter-opts { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.filter-opt { display: flex; align-items: center; gap: 8px; font-size: .87rem; color: var(--text-muted); }
.filter-opt input { width: 16px; height: 16px; accent-color: var(--red); }
.filter-opt:hover { color: var(--text); }
.price-range-inputs { display: flex; gap: 8px; align-items: center; }
.price-range-inputs input { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: .82rem; }
.chip button { border: none; background: none; color: var(--text-faint); font-size: 1rem; line-height: 1; padding: 0; }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.results-count { font-size: .9rem; color: var(--text-muted); }
.toolbar-right { display: flex; gap: 10px; align-items: center; }
select.select-sort { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: .87rem; }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.view-toggle button { padding: 8px 12px; background: #fff; border: none; }
.view-toggle button.active { background: var(--text); color: #fff; }
.mobile-filter-btn { display: none; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; }
.pagination button.active { background: var(--text); color: #fff; border-color: var(--text); }
.load-more-wrap { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- Skeletons ---------- */
.skeleton { background: linear-gradient(90deg, #eceef1 25%, #f5f6f8 37%, #eceef1 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: var(--radius); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { height: 340px; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: 48px; align-items: flex-start; }
.gallery-main { aspect-ratio: 3/4; max-width: 400px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); position: relative; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-main.zoomed img { transform: scale(1.8); cursor: zoom-out; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery-thumbs img { width: 72px; height: 96px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.gallery-thumbs img.active { border-color: var(--red); }
.product-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.product-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.product-sub { color: var(--text-muted); font-size: .95rem; margin-bottom: 14px; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.grading-panel { background: #0B1220; color: #fff; border-radius: var(--radius); padding: 20px; display: flex; gap: 20px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.grading-score { text-align: center; }
.grading-score b { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--yellow); }
.grading-subgrades { display: flex; gap: 16px; flex-wrap: wrap; }
.grading-subgrades div { text-align: center; }
.grading-subgrades b { display: block; font-size: 1.1rem; color: var(--yellow); }
.grading-subgrades span { font-size: .72rem; color: #A6A6BB; text-transform: uppercase; }
.grading-cert-link { margin-left: auto; }
.price-block { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.price-block .price-now { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; }
.price-block .price-was { text-decoration: line-through; color: var(--text-faint); font-size: 1.1rem; }
.price-block .price-off { color: var(--available); font-weight: 700; font-size: .9rem; }
.stock-status { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-weight: 600; font-size: .92rem; }
.stock-dot { width: 9px; height: 9px; border-radius: 50%; }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty-input button { width: 40px; height: 44px; background: #fff; border: none; font-size: 1.1rem; }
.qty-input input { width: 46px; text-align: center; border: none; height: 44px; }
.action-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.action-row-2 { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.trust-mini { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.trust-mini .badge-outline { padding: 8px 14px; }

.tabs { border-bottom: 1px solid var(--border); display: flex; gap: 4px; margin: 48px 0 0; overflow-x: auto; }
.tab-btn { padding: 14px 18px; font-weight: 700; color: var(--text-muted); border-bottom: 3px solid transparent; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none; }
.tab-btn.active { color: var(--text); border-color: var(--red); }
.tab-panel { display: none; padding: 28px 0; }
.tab-panel.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 10px 4px; font-size: .92rem; }
.spec-table td:first-child { color: var(--text-muted); width: 40%; }
.spec-table td:last-child { font-weight: 600; }

.review-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.review-stars { color: var(--yellow-dark); letter-spacing: 2px; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-reply { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-top: 10px; font-size: .9rem; }
.qa-item { border-bottom: 1px solid var(--border); padding: 16px 0; }

/* ---------- Cart / Checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: flex-start; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); }
.cart-line img { width: 84px; height: 112px; object-fit: cover; border-radius: 10px; }
.cart-line .cl-name { font-weight: 700; }
.cart-line .cl-remove { color: var(--red); font-size: .82rem; font-weight: 700; background: none; border: none; padding: 4px 0; }
.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: .93rem; }
.summary-row.total { font-size: 1.15rem; font-weight: 800; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.coupon-row { display: flex; gap: 8px; margin: 14px 0; }
.coupon-row input { flex: 1; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state svg { width: 84px; height: 84px; color: var(--text-faint); margin: 0 auto 16px; }

.checkout-steps { display: flex; gap: 8px; margin-bottom: 32px; }
.checkout-steps div { flex: 1; text-align: center; padding: 10px; border-radius: 999px; background: var(--bg); font-size: .82rem; font-weight: 700; color: var(--text-faint); }
.checkout-steps div.active { background: var(--text); color: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field.full { grid-column: 1/-1; }
.form-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); }
.form-error { color: var(--red); font-size: .8rem; margin-top: 4px; display: none; }
.form-field.invalid input, .form-field.invalid select { border-color: var(--red); }
.form-field.invalid .form-error { display: block; }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: 10px; padding: 14px; cursor: pointer; }
.pay-option.selected { border-color: var(--red); background: #FFF5F5; }
.ship-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1.5px solid var(--border); border-radius: 10px; padding: 14px; cursor: pointer; margin-bottom: 10px; }
.ship-option.selected { border-color: var(--red); background: #FFF5F5; }
.security-strip { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 20px; color: var(--text-muted); font-size: .8rem; flex-wrap: wrap; }

/* ---------- Toasts / Mini cart ---------- */
.toast-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--text); color: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-size: .9rem; min-width: 260px; animation: toastIn .2s ease; }
.toast.success { background: var(--available); } .toast.error { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.back-to-top { position: fixed; bottom: 24px; left: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--text); color: #fff; border: none; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); z-index: 150; }
.back-to-top.show { display: flex; }

/* ---------- Generic content pages ---------- */
.content-page { max-width: 820px; margin: 0 auto; }
.content-page h2 { margin-top: 2em; }
.content-page section { margin-bottom: 2em; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--text-faint); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 10px; color: var(--text-muted); }
.condition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 20px 0; }
.condition-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.condition-card img { border-radius: 10px; margin-bottom: 10px; aspect-ratio: 3/4; object-fit: cover; }
.condition-card b { display: block; margin-bottom: 4px; }
.condition-card span { color: var(--text-muted); font-size: .85rem; }
.timeline { border-left: 3px solid var(--border); padding-left: 20px; }
.timeline li { margin-bottom: 20px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -26px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

/* ---------- Auth / Account ---------- */
.auth-wrap { max-width: 420px; margin: 40px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 24px; background: var(--bg); border-radius: 999px; padding: 4px; }
.auth-tabs button { flex: 1; padding: 10px; border-radius: 999px; border: none; background: none; font-weight: 700; color: var(--text-muted); }
.auth-tabs button.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: flex-start; }
.account-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.account-nav button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 10px; border: none; background: none; font-weight: 600; color: var(--text-muted); }
.account-nav button.active { background: var(--bg); color: var(--text); }
.order-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.order-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.order-track { display: flex; gap: 6px; margin-top: 12px; }
.order-track div { flex: 1; height: 6px; border-radius: 999px; background: var(--border); }
.order-track div.done { background: var(--available); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0{margin-top:0} .mb-0{margin-bottom:0} .mt-2{margin-top:16px} .mb-2{margin-bottom:16px}
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 12px; }
.stars { color: var(--yellow-dark); }
.hide { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-panel { display: none; }
  .mobile-filter-btn { display: inline-flex; }
  .product-layout { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav, .search-box { display: none; }
  .hamburger { display: flex; }
  .hero-slide { grid-template-columns: 1fr; }
  .hero-media { display: none; }
  .hero-slide .hero-copy { padding: 32px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .card-list .product-card { flex-direction: column; }
  .card-list .pc-media { width: 100%; aspect-ratio: 3/4; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 40px 0 20px; }
  .promo-band { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
