/* ==========================================================================
   MUSA RETRO PARTS (武佐 レトロパーツ) - CORE STYLESHEET
   Design Theme: Dark Luxury JDM Retro, Crimson & Gold Accents, Obsidian Glass
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=JetBrains+Mono:wght@400;500;700&family=Noto+Serif+JP:wght@600;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #090a0e;
  --bg-card: #12151e;
  --bg-card-hover: #191d29;
  --bg-glass: rgba(18, 21, 30, 0.75);
  --bg-sidebar: #0e1017;
  
  --accent-red: #e63946;
  --accent-red-glow: rgba(230, 57, 70, 0.35);
  --accent-gold: #d4af37;
  --accent-gold-glow: rgba(212, 175, 55, 0.3);
  --accent-cyan: #00f2fe;
  
  --text-main: #f8f9fa;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(230, 57, 70, 0.4);
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-kanji: 'Noto Serif JP', serif;
  --font-serif: 'Cinzel', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(230, 57, 70, 0.25);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(230, 57, 70, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* --------------------------------------------------------------------------
   HEADER & NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-kanji-badge {
  background: linear-gradient(135deg, var(--accent-red), #990011);
  color: #fff;
  font-family: var(--font-kanji);
  font-size: 1.6rem;
  font-weight: 900;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--accent-red-glow);
  letter-spacing: -1px;
  position: relative;
  overflow: hidden;
}

.brand-kanji-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.brand-container:hover .brand-kanji-badge::after {
  left: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-title span {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.kanji-meaning-tag {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.search-bar-wrap {
  position: relative;
  width: 240px;
}

.search-bar-wrap input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem 0.5rem 2.4rem;
  color: var(--text-main);
  font-size: 0.85rem;
  transition: var(--transition);
}

.search-bar-wrap input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent-red);
  box-shadow: 0 0 12px var(--accent-red-glow);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
  pointer-events: none;
}

.cart-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--accent-red-glow);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-gold);
  color: #000;
  font-weight: 800;
  font-size: 0.7rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-dark);
}

.admin-nav-btn {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.admin-nav-btn:hover {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

/* --------------------------------------------------------------------------
   HERO BANNER
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 480px;
  background: linear-gradient(180deg, rgba(9, 10, 14, 0.35) 0%, var(--bg-dark) 100%), 
              url('https://images.unsplash.com/photo-1617814076367-b759c7d7e738?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 4rem 3rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(9, 10, 14, 0.85) 0%, rgba(9, 10, 14, 0.95) 70%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-kanji-bg {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-kanji);
  font-size: 16rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--accent-gold);
  background: linear-gradient(90deg, var(--accent-gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), #b3001b);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 6px 20px var(--accent-red-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.5);
  background: linear-gradient(135deg, #ff2a4b, var(--accent-red));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   LAYOUT CONTAINER (SHOP & SIDEBAR)
   -------------------------------------------------------------------------- */
.app-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 80px);
}

.page-view {
  display: none;
  animation: fadeIn 0.35s ease;
}

.page-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.shop-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}

/* --------------------------------------------------------------------------
   LEFT-HAND MENU (CAR MAKES, MODELS & YEARS HIERARCHY)
   -------------------------------------------------------------------------- */
.sidebar-panel {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sidebar-title i {
  color: var(--accent-red);
}

.reset-filter-btn {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 600;
  text-decoration: underline;
  padding: 2px 6px;
  border-radius: 4px;
}

.reset-filter-btn:hover {
  color: #fff;
}

/* Hierarchy Tree */
.vehicle-tree {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.make-item {
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: var(--transition);
}

.make-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  user-select: none;
  transition: var(--transition);
}

.make-header:hover {
  background: rgba(230, 57, 70, 0.1);
  color: #fff;
}

.make-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.make-logo-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.make-count {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.chevron-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.make-item.open .chevron-icon {
  transform: rotate(180deg);
  color: var(--accent-red);
}

/* Models Sub-list */
.models-list {
  list-style: none;
  display: none;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0.5rem 0.5rem 1.2rem;
  border-top: 1px solid var(--border-subtle);
  flex-direction: column;
  gap: 0.4rem;
}

.make-item.open .models-list {
  display: flex;
}

.model-item {
  border-radius: var(--radius-sm);
}

.model-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
  font-weight: 500;
}

.model-header:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.model-item.open .model-header {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Years Sub-list */
.years-list {
  list-style: none;
  display: none;
  padding: 0.3rem 0 0.3rem 1rem;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.model-item.open .years-list {
  display: flex;
}

.year-chip {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.year-chip:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

.year-chip.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
  font-weight: 700;
}

/* Category Filter Section */
.sidebar-section {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
  width: 100%;
  text-align: left;
}

.category-btn:hover, .category-btn.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.category-btn.active {
  color: var(--accent-red);
  font-weight: 600;
  border-left: 3px solid var(--accent-red);
}

/* --------------------------------------------------------------------------
   MAIN CATALOG AREA
   -------------------------------------------------------------------------- */
.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.active-filter-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-badge-pill {
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid var(--accent-red);
  color: var(--text-main);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-badge-pill button {
  color: var(--accent-red);
  font-weight: bold;
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sort-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  outline: none;
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

/* Part Card */
.part-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.part-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--accent-red-glow);
}

.part-image-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  background: #000;
  overflow: hidden;
}

.part-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.part-card:hover .part-image-wrap img {
  transform: scale(1.06);
}

.part-condition-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--accent-gold);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.part-condition-badge.nos {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.part-stock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
}

.part-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.part-oem-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

.part-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.part-compatibility-tag {
  font-size: 0.78rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.part-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.part-price {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.part-card-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-add-cart {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  padding: 0 12px;
  width: auto;
  font-weight: 600;
  font-size: 0.82rem;
  gap: 0.4rem;
}

.btn-add-cart:hover {
  background: #ff2a4b;
  box-shadow: 0 4px 12px var(--accent-red-glow);
}

/* Empty State */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
}

.no-results i {
  font-size: 3rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   PRODUCT DETAIL MODAL & GALLERY
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 6, 9, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--accent-red);
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-gallery-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #000;
}

.gallery-thumbs {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
}

.gallery-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: var(--transition);
}

.gallery-thumb.active, .gallery-thumb:hover {
  opacity: 1;
  border-color: var(--accent-red);
}

.product-info-col h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.specs-table {
  width: 100%;
  margin: 1.2rem 0;
  border-collapse: collapse;
}

.specs-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.specs-table td:first-child {
  color: var(--text-muted);
  width: 40%;
}

.specs-table td:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   CART DRAWER & PAYPAL CHECKOUT INTEGRATION
   -------------------------------------------------------------------------- */
.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border-subtle);
  z-index: 1001;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.cart-item img {
  width: 70px; height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item-info {
  flex-grow: 1;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.cart-summary-row.total {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

.paypal-btn-wrap {
  margin-top: 1.2rem;
}

.btn-paypal {
  background: #ffc439;
  color: #003087;
  font-weight: 800;
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(255, 196, 57, 0.3);
  transition: var(--transition);
}

.btn-paypal:hover {
  background: #f2ba32;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   ADMIN PAGE / MANAGEMENT SUITE
   -------------------------------------------------------------------------- */
.admin-header-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: rgba(230, 57, 70, 0.15);
  color: var(--accent-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
}

.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.admin-tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.admin-tab-btn.active {
  background: var(--accent-red);
  color: #fff;
}

.admin-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-red);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.data-table th, .data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   ABOUT US & CONTACT PAGES
   -------------------------------------------------------------------------- */
.story-container {
  max-width: 900px;
  margin: 0 auto;
}

.story-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.story-kanji-big {
  font-family: var(--font-kanji);
  font-size: 5rem;
  color: var(--accent-gold);
  line-height: 1;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-panel {
    position: static;
    max-height: none;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-modal-grid {
    grid-template-columns: 1fr;
  }
  .contact-card-grid {
    grid-template-columns: 1fr;
  }
}
