/* ============================================================================
   SORA CardShop — B2C storefront theme (shop.css)
   Loaded AFTER style.css; overrides the wholesale look with a clean,
   product-forward consumer storefront (fandom.tokyo-style).
   ========================================================================== */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f6f5f1;
  --bg-ink:    #15130f;
  --ink:       #16140f;
  --muted:     #6c685f;
  --dim:       #9a958b;
  --line:      #e8e4db;
  --line-2:    #d8d3c8;
  --sale:      #d62828;
  --sale-soft: #fdecec;
  --gold:      #b8893b;
  --ok:        #1f8a4c;
  --shadow:    0 1px 2px rgba(20,18,12,.04), 0 8px 24px rgba(20,18,12,.06);
  --shadow-lg: 0 18px 50px rgba(20,18,12,.14);
  --maxw:      1320px;
  --font-body: 'Hanken Grotesk', 'Zen Kaku Gothic New', system-ui, sans-serif;
  --font-disp: 'Bricolage Grotesque', 'Zen Kaku Gothic New', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
a { color: inherit; }
::selection { background: var(--ink); color: #fff; }

/* ── Top announcement bar ─────────────────────────────────────────────── */
.topbar {
  background: var(--bg-ink);
  color: #f3efe6;
  font-size: 12px;
  letter-spacing: .02em;
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-msg { font-weight: 500; color: #e9e3d6; }
.topbar-msg strong { color: #fff; font-weight: 700; }
.topbar-tools { display: flex; align-items: center; gap: 14px; }
.topbar-tools .currency-select {
  background: transparent; border: 1px solid rgba(255,255,255,.25);
  color: #f3efe6; font-size: 12px; padding: 3px 8px; border-radius: 0;
  font-family: inherit; cursor: pointer;
}
.topbar-tools .currency-select option { color: #15130f; }

/* ── Header / brand ───────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(20,18,12,.05); }
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px 24px 14px;
  display: flex; align-items: center; gap: 28px;
}
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.header-logo span {
  font-family: var(--font-disp); font-weight: 800; font-size: 20px;
  letter-spacing: -0.03em; color: var(--ink);
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-icon-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none;
  letter-spacing: -0.01em;
}
.header-icon-link:hover { color: var(--sale); }
.header-icon-link svg, .header-icon-link i { width: 19px; height: 19px; }

/* Search pill */
.header-search {
  flex: 1; max-width: 460px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 9px 14px; border-radius: 999px;
}
.header-search input {
  border: 0; background: transparent; outline: none; width: 100%;
  font-family: inherit; font-size: 13.5px; color: var(--ink);
}
.header-search input::placeholder { color: var(--dim); }
.header-search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }

/* Cart button */
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700;
  padding: 9px 16px; border-radius: 999px; letter-spacing: -0.01em;
}
.cart-btn:hover { background: #2a261d; }
.cart-btn .cart-badge {
  background: var(--sale); color: #fff; font-size: 11px; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ── Category nav row ─────────────────────────────────────────────────── */
.cat-nav { border-bottom: 1px solid var(--line); background: #fff; }
.cat-nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: stretch; gap: 4px; overflow-x: auto;
}
.cat-nav-inner::-webkit-scrollbar { height: 0; }
.cat-link {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 13px 14px; font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.cat-link:hover { color: var(--ink); }
.cat-link.active { color: var(--ink); border-bottom-color: var(--sale); }
.cat-link.accent { color: var(--sale); }

/* ── Buttons (storefront) ─────────────────────────────────────────────── */
.btn { border-radius: 999px; font-family: inherit; letter-spacing: -0.01em; transition: transform .08s, background .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn-shop {
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font-weight: 700; font-size: 14px; padding: 12px 22px; display: inline-block; text-align: center;
}
.btn-shop:hover { background: #2a261d; }
.btn-outline2 {
  background: transparent; color: var(--ink); border: 1px solid var(--line-2);
  font-weight: 700; font-size: 14px; padding: 12px 22px; display: inline-block; text-align: center;
}
.btn-outline2:hover { border-color: var(--ink); }
.btn-sale { background: var(--sale); color: #fff; border: 1px solid var(--sale); font-weight: 700; }
.btn-sale:hover { background: #b91f1f; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.shop-hero {
  position: relative; background: var(--bg-ink); color: #fff; overflow: hidden;
}
.shop-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(214,40,40,.32), transparent 60%),
    radial-gradient(700px 500px at 10% 120%, rgba(184,137,59,.22), transparent 60%);
}
.shop-hero-inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: 92px 24px 96px; display: grid; gap: 22px; max-width: 760px;
}
.shop-hero .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.shop-hero h1 {
  font-family: var(--font-disp); font-weight: 800; line-height: .98;
  font-size: clamp(40px, 7vw, 78px); letter-spacing: -0.045em; color: #fff; margin: 0;
}
.shop-hero h1 em { font-style: normal; color: #ff6b6b; }
.shop-hero p { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.72); max-width: 540px; margin: 0; }
.shop-hero .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.shop-hero .btn-outline2 { color: #fff; border-color: rgba(255,255,255,.35); }
.shop-hero .btn-outline2:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.hero-anim { opacity: 0; transform: translateY(14px); animation: heroIn .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-anim.d1 { animation-delay: .05s; }
.hero-anim.d2 { animation-delay: .15s; }
.hero-anim.d3 { animation-delay: .25s; }
.hero-anim.d4 { animation-delay: .35s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* trust strip */
.trust-strip {
  border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.trust-strip-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; gap: 34px; justify-content: center; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.trust-item svg, .trust-item i { width: 16px; height: 16px; color: var(--ink); }

/* ── Section heading ──────────────────────────────────────────────────── */
.shop-section { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; }
.shop-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.shop-section-head h2 {
  font-family: var(--font-disp); font-weight: 800; font-size: clamp(24px, 3.4vw, 36px);
  letter-spacing: -0.04em; margin: 0; line-height: 1;
}
.shop-section-head .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sale); display: block; margin-bottom: 8px; }
.see-all { font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; white-space: nowrap; }
.see-all:hover { color: var(--sale); border-color: var(--sale); }

/* ── Product grid + card ──────────────────────────────────────────────── */
.product-grid2 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 20px;
}
.pcard {
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; background: #fff;
}
.pcard-imgwrap {
  position: relative; aspect-ratio: 1/1; background: var(--bg-soft);
  border: 1px solid var(--line); overflow: hidden; border-radius: 4px;
}
.pcard-imgwrap img {
  width: 100%; height: 100%; object-fit: contain; padding: 12px;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.pcard:hover .pcard-imgwrap img { transform: scale(1.05); }
.pcard-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 12px; }
.pcard-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.pbadge { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; }
.pbadge.sale { background: var(--sale); color: #fff; }
.pbadge.new  { background: var(--ink); color: #fff; }
.pbadge.pre  { background: var(--gold); color: #fff; }
.pbadge.made { position: absolute; top: 10px; right: 10px; left: auto; background: rgba(21,19,15,.78); color: #fff; }
.pcard-body { padding: 13px 2px 4px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-cat { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.pcard-name {
  font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.5em;
}
.pcard-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.pcard-price .now { font-family: var(--font-disp); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }
.pcard-price .now.is-sale { color: var(--sale); }
.pcard-price .was { font-size: 13px; color: var(--dim); text-decoration: line-through; }
.pcard-price .conv { font-size: 11px; color: var(--dim); width: 100%; }
.pcard-add {
  margin-top: 10px; display: flex; gap: 6px;
}
.pcard-add .btn-shop { flex: 1; padding: 9px 12px; font-size: 12.5px; }
.pcard-add .btn-outline2 { padding: 9px 12px; font-size: 12.5px; }
.pcard-add .qtybox { width: 50px; text-align: center; border: 1px solid var(--line-2); border-radius: 999px; font-family: inherit; font-size: 12.5px; background: #fff; }

/* ── Collection (catalog) layout ──────────────────────────────────────── */
.collection { max-width: var(--maxw); margin: 0 auto; padding: 24px 24px 72px; }
.breadcrumb { font-size: 12px; color: var(--muted); margin: 6px 0 14px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--ink); font-weight: 600; }
.collection-title { font-family: var(--font-disp); font-weight: 800; font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.04em; margin: 0 0 4px; }
.collection-count { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.collection-layout { display: grid; grid-template-columns: 232px 1fr; gap: 34px; align-items: start; }

.filter-panel { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 22px; }
.filter-block { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.filter-block:last-child { border-bottom: 0; }
.filter-title { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.filter-opt { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); padding: 4px 0; cursor: pointer; }
.filter-opt input { accent-color: var(--sale); width: 15px; height: 15px; }
.filter-opt:hover { color: var(--ink); }
.filter-opt .cnt { color: var(--dim); font-size: 12px; margin-left: auto; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; border: 1px solid var(--line-2); padding: 8px 10px; font-family: inherit; font-size: 13px; border-radius: 6px; background: #fff; }
.filter-actions { display: flex; gap: 8px; margin-top: 12px; }
.filter-sort-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.sort-select, .filter-sort-row select {
  border: 1px solid var(--line-2); padding: 9px 14px; border-radius: 999px;
  font-family: inherit; font-size: 13px; background: #fff; color: var(--ink); cursor: pointer;
}
.mobile-filter-toggle { display: none; }

.collection-group { margin-bottom: 44px; }
.collection-group-title { font-family: var(--font-disp); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 600;
  text-decoration: none; color: var(--ink);
}
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ── Category rail (home) ─────────────────────────────────────────────── */
.cat-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile {
  position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  aspect-ratio: 4/3; display: flex; align-items: flex-end; text-decoration: none;
  background: var(--bg-soft); transition: box-shadow .2s, transform .2s;
}
.cat-tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(21,19,15,.82), transparent 62%); }
.cat-tile-label { position: relative; z-index: 1; padding: 16px; color: #fff; font-family: var(--font-disp); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }

/* ── Footer (storefront) ──────────────────────────────────────────────── */
.shop-footer { background: var(--bg-ink); color: #cfc9bd; margin-top: 40px; }
.shop-footer-top { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 36px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.shop-footer h4 { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.shop-footer a { color: #cfc9bd; text-decoration: none; font-size: 13px; display: block; padding: 4px 0; }
.shop-footer a:hover { color: #fff; }
.shop-footer-brand .bname { font-family: var(--font-disp); font-weight: 800; font-size: 20px; color: #fff; letter-spacing: -0.03em; margin-bottom: 10px; }
.shop-footer-brand p { font-size: 13px; line-height: 1.7; color: #a8a298; max-width: 280px; }
.newsletter { display: flex; gap: 8px; margin-top: 8px; }
.newsletter input { flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: #fff; padding: 10px 12px; font-family: inherit; font-size: 13px; border-radius: 6px; }
.newsletter button { background: #fff; color: #15130f; border: 0; font-weight: 700; padding: 0 16px; border-radius: 6px; cursor: pointer; font-family: inherit; }
.pay-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pay-icons span { background: #fff; color: #15130f; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 4px; letter-spacing: .02em; }
.shop-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: #8b867c;
}
.license-note { font-size: 11.5px; color: #8b867c; line-height: 1.6; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .product-grid2 { grid-template-columns: repeat(3, 1fr); }
  .cat-rail { grid-template-columns: repeat(2, 1fr); }
  .shop-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .header-search { display: none; }
  .collection-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; display: none; }
  .filter-panel.open { display: flex; }
  .mobile-filter-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 9px 16px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
}
@media (max-width: 620px) {
  .product-grid2 { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .cat-rail { grid-template-columns: repeat(2, 1fr); }
  .shop-footer-top { grid-template-columns: 1fr; gap: 26px; }
  .shop-hero-inner { padding: 64px 22px 68px; }
  .header-actions { gap: 12px; }
}
