/* ============================================================
   NetShop — Tokyo Night Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;600;800&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg:        #080812;
  --surface:   #10101e;
  --card:      #161628;
  --card-h:    #1e1e36;
  --border:    #22223a;
  --border-h:  #3a3a60;

  --text:      #e8e8f5;
  --text-2:    #9090b8;
  --text-3:    #5a5a80;

  --red:       #ff3a5c;
  --red-d:     #cc2244;
  --red-glow:  rgba(255,58,92,0.25);
  --gold:      #d4a854;
  --gold-d:    #a87832;
  --blue:      #4a8eff;
  --cyan:      #00d4aa;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 32px rgba(0,0,0,0.6);
  --shadow-h:  0 8px 48px rgba(0,0,0,0.8);

  --font-jp:   'Shippori Mincho', serif;
  --font:      'Noto Sans JP', sans-serif;
  --trans:     all .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
input, select, textarea, button { font-family: var(--font); }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 3px; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page-wrap  { min-height: calc(100vh - 80px); }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,18,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex; align-items: center;
}
.header-inner {
  display: flex; align-items: center; gap: 32px; width: 100%;
}
.logo {
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.logo-mark {
  width: 34px; height: 34px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 20px var(--red-glow);
}
.logo span { color: var(--red); }

.header-search {
  flex: 1;
  position: relative;
}
.header-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px 10px 44px;
  color: var(--text);
  font-size: 14px;
  transition: var(--trans);
  outline: none;
}
.header-search input:focus {
  border-color: var(--red);
  background: var(--card);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.header-search input::placeholder { color: var(--text-3); }
.header-search .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 16px; pointer-events: none;
}

.header-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: var(--trans);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface); }

.cart-btn {
  position: relative;
  padding: 9px 18px;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--trans);
  display: flex; align-items: center; gap: 7px;
  border: none; cursor: pointer;
}
.cart-btn:hover { background: var(--red-d); transform: translateY(-1px); box-shadow: 0 4px 20px var(--red-glow); }
.cart-count {
  background: #fff;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg) 0%, #0e0820 50%, #080812 100%);
}
.hero::before {
  content: 'ネットワーク';
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-jp);
  font-size: 160px;
  font-weight: 800;
  color: rgba(255,58,92,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 { width: 400px; height: 400px; background: rgba(255,58,92,0.12); top: -100px; right: 200px; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(74,142,255,0.08); bottom: -50px; right: 0; }

.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--red);
  background: rgba(255,58,92,0.1);
  border: 1px solid rgba(255,58,92,0.25);
  border-radius: 100px; padding: 5px 14px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-jp);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--text-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title em { color: var(--red); -webkit-text-fill-color: var(--red); font-style: normal; }
.hero-sub { color: var(--text-2); font-size: 17px; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px; font-weight: 600;
  transition: var(--trans);
  cursor: pointer; border: none;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-d); transform: translateY(-2px); box-shadow: 0 8px 32px var(--red-glow); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-h); background: var(--surface); }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: var(--gold-d); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ── SECTION HEADER ─────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px; gap: 16px;
}
.section-title {
  font-family: var(--font-jp);
  font-size: 28px; font-weight: 800;
  position: relative; padding-left: 16px;
}
.section-title::before {
  content: '';
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px; background: var(--red); border-radius: 2px;
}
.section-title small {
  display: block; font-size: 13px; font-weight: 400;
  color: var(--text-3); font-family: var(--font); margin-top: 2px;
}

/* ── CATEGORIES ─────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--trans);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.cat-card:hover {
  border-color: var(--red);
  background: var(--card-h);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255,58,92,0.12);
}
.cat-icon { font-size: 22px; line-height: 1; }
.cat-name { font-size: 14px; font-weight: 600; color: var(--text); }
.cat-count { font-size: 12px; color: var(--text-3); }

/* ── PRODUCT GRID ────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans);
  display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-h);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
  transition: transform .4s ease;
  position: relative;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
  letter-spacing: .05em;
}
.product-badge.badge-sale { background: var(--gold); color: #000; }
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-brand {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red);
}
.product-name {
  font-size: 15px; font-weight: 600; color: var(--text);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-desc {
  font-size: 13px; color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.product-price { display: flex; flex-direction: column; }
.price-current { font-size: 20px; font-weight: 700; color: var(--text); }
.price-old { font-size: 13px; color: var(--text-3); text-decoration: line-through; }
.price-save { font-size: 11px; color: var(--red); font-weight: 600; }
.add-cart-btn {
  width: 40px; height: 40px;
  background: var(--red); color: #fff;
  border: none; border-radius: 10px;
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans); flex-shrink: 0;
}
.add-cart-btn:hover { background: var(--red-d); transform: scale(1.1); box-shadow: 0 4px 16px var(--red-glow); }

/* ── PRODUCT DETAIL ─────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 120px;
}
.detail-title { font-family: var(--font-jp); font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.detail-brand { font-size: 13px; font-weight: 600; color: var(--red); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.detail-price { font-size: 32px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.detail-price-old { font-size: 18px; color: var(--text-3); text-decoration: line-through; margin-bottom: 24px; }
.detail-desc { color: var(--text-2); line-height: 1.8; margin-bottom: 28px; }
.detail-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; margin-bottom: 24px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.detail-actions { display: flex; gap: 12px; margin-bottom: 32px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-btn { width: 40px; height: 46px; background: var(--card); border: none; color: var(--text); font-size: 18px; cursor: pointer; transition: var(--trans); }
.qty-btn:hover { background: var(--card-h); }
.qty-input { width: 50px; height: 46px; background: transparent; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); color: var(--text); text-align: center; font-size: 15px; font-weight: 600; }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 10px 0; font-size: 14px; }
.specs-table td:first-child { color: var(--text-3); width: 40%; }
.specs-table td:last-child { color: var(--text); font-weight: 500; }

/* ── CART ────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cart-item { background: var(--card); padding: 20px; display: flex; align-items: center; gap: 20px; }
.cart-item-img { width: 72px; height: 72px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 36px; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cart-item-brand { font-size: 12px; color: var(--red); text-transform: uppercase; font-weight: 600; }
.cart-item-price { font-size: 20px; font-weight: 700; color: var(--text); white-space: nowrap; }
.cart-remove { background: none; border: none; color: var(--text-3); font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: var(--trans); }
.cart-remove:hover { color: var(--red); background: var(--red-glow); }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty-icon { font-size: 80px; margin-bottom: 16px; }
.cart-empty h2 { font-family: var(--font-jp); font-size: 24px; margin-bottom: 8px; }
.cart-empty p { color: var(--text-2); margin-bottom: 24px; }

.cart-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky; top: 88px;
}
.summary-title { font-family: var(--font-jp); font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.summary-row:last-of-type { border-bottom: none; }
.summary-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 20px; font-size: 20px; font-weight: 700; border-top: 1px solid var(--border); margin-top: 8px; }

/* ── CHECKOUT FORM ───────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; letter-spacing: .04em; }
.form-control {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 15px;
  transition: var(--trans);
  outline: none;
}
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); background: var(--card); }
.form-control::placeholder { color: var(--text-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.section-card-title { font-family: var(--font-jp); font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }

/* ── FILTERS ─────────────────────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.filter-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 88px; }
.filter-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.filter-group { margin-bottom: 20px; }
.filter-group-label { font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.filter-link { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--text-2); transition: var(--trans); margin-bottom: 2px; }
.filter-link:hover, .filter-link.active { background: var(--red-glow); color: var(--red); }
.filter-link .badge { font-size: 11px; background: var(--surface); padding: 2px 7px; border-radius: 100px; }

/* ── BREADCRUMB ──────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 20px 0; font-size: 13px; color: var(--text-3); }
.breadcrumb a { color: var(--text-3); transition: var(--trans); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--text); }

/* ── BADGE / STATUS ─────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.status-new    { background: rgba(74,142,255,.15); color: var(--blue); }
.status-proc   { background: rgba(212,168,84,.15); color: var(--gold); }
.status-ship   { background: rgba(0,212,170,.15); color: var(--cyan); }
.status-done   { background: rgba(0,212,80,.15); color: #00d450; }
.status-cancel { background: rgba(255,58,92,.15); color: var(--red); }

/* ── SUCCESS PAGE ─────────────────────────────────────────────── */
.success-wrap { text-align: center; padding: 80px 24px; max-width: 480px; margin: 0 auto; }
.success-icon { font-size: 72px; margin-bottom: 24px; animation: pop .4s cubic-bezier(.4,0,.2,1); }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-num { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--red); text-transform: uppercase; margin-bottom: 8px; }
.success-title { font-family: var(--font-jp); font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.success-sub { color: var(--text-2); line-height: 1.8; margin-bottom: 32px; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-3); font-size: 14px; line-height: 1.8; margin-top: 12px; }
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-3); font-size: 14px; margin-bottom: 8px; transition: var(--trans); }
.footer-col a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-3); }
.footer-tag { color: var(--red); font-family: var(--font-jp); font-weight: 600; }

/* ── ALERT ───────────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(0,212,80,.1); border: 1px solid rgba(0,212,80,.25); color: #00d450; }
.alert-error { background: rgba(255,58,92,.1); border: 1px solid rgba(255,58,92,.25); color: var(--red); }
.alert-info { background: rgba(74,142,255,.1); border: 1px solid rgba(74,142,255,.25); color: var(--blue); }

/* ── TOAST NOTIFICATION ──────────────────────────────────────── */
#toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  box-shadow: var(--shadow);
  transform: translateY(20px); opacity: 0;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  max-width: 320px;
}
#toast.show { transform: translateY(0); opacity: 1; }

/* ── ADMIN ───────────────────────────────────────────────────── */
.admin-wrap { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-logo { font-family: var(--font-jp); font-size: 18px; font-weight: 800; padding: 8px 10px 24px; border-bottom: 1px solid var(--border); margin-bottom: 20px; color: var(--red); }
.admin-logo small { display: block; font-size: 11px; color: var(--text-3); font-family: var(--font); font-weight: 400; margin-top: 2px; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: var(--trans); margin-bottom: 2px; }
.admin-nav-item:hover { background: var(--card); color: var(--text); }
.admin-nav-item.active { background: rgba(255,58,92,0.12); color: var(--red); }
.admin-nav-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 16px 12px 8px; }
.admin-main { padding: 32px; background: var(--bg); }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.admin-page-title { font-family: var(--font-jp); font-size: 24px; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.stat-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.stat-val { font-size: 28px; font-weight: 800; font-family: var(--font-jp); }
.stat-sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--card-h); }
.table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }

.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.admin-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; }
.admin-card-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; left: -260px; top: 0; height: 100vh; z-index: 200; transition: var(--trans); }
  .admin-sidebar.open { left: 0; }
}
@media (max-width: 768px) {
  .product-detail, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.fade-up { animation: fadeUp .5s ease both; }
.fade-up:nth-child(2) { animation-delay: .1s; }
.fade-up:nth-child(3) { animation-delay: .2s; }
.fade-up:nth-child(4) { animation-delay: .3s; }

/* ── Decorative line ─────────────────────────────────────────── */
.torii-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent);
  margin: 48px 0;
  opacity: .3;
}
