/* ============================================
   SHOUYIXIN - Dark Showcase E-Commerce Styles
   ============================================ */

/* === CSS Variables === */
:root {
  /* Surface System */
  --canvas: #0d0d0d;
  --surface-1: #161616;
  --surface-2: #1e1e1e;
  --surface-3: #2a2a2a;
  --border: #333333;

  /* Text */
  --text-primary: #f5f5f5;
  --text-secondary: #999999;
  --text-tertiary: #666666;
  --text-placeholder: #444444;

  /* CTA */
  --cta-bg: #e8e8e8;
  --cta-text: #1a1a1a;
  --accent: #e8e8e8;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-card-press: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-drawer: -4px 0 24px rgba(0,0,0,0.5);

  /* Layout */
  --nav-height: 64px;
  --max-width: 1400px;
  --max-width-text: 1200px;
  --cart-width: 380px;

  /* Radius */
  --radius-btn: 6px;
  --radius-card: 12px;
  --radius-chip: 20px;
  --radius-series-card: 16px;
  --radius-input: 8px;
  --radius-modal: 16px;
  --radius-section: 20px;

  /* Transitions */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--canvas);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* === Typography === */
.font-display { font-family: 'Space Grotesk', 'Inter', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* === Focus Visible === */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-2);
  z-index: 1000;
  transition: background 400ms ease, border-color 400ms ease;
}

.navbar.scrolled {
  background: rgba(13,13,13,0.98);
  border-bottom-color: var(--surface-3);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.navbar-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 200ms ease;
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 200ms ease;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--text-primary);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: opacity 200ms ease;
}

.cart-btn:hover { opacity: 0.8; }

.cart-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--text-placeholder);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transition: transform 300ms var(--ease-out);
}

.cart-badge.bounce {
  animation: badgeBounce 300ms ease;
}

@keyframes badgeBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.cart-badge:empty,
.cart-badge[data-count="0"] { display: none; }

/* Mobile menu button */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* ============================================
   HERO CAROUSEL
   ============================================ */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 70vh;
  margin-top: var(--nav-height);
  background: var(--surface-2);
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 600ms ease, transform 600ms ease;
  transform: scale(1);
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.carousel-slide.exiting {
  opacity: 0;
  transform: scale(1.02);
}

.carousel-content {
  width: 40%;
  padding: 0 80px;
  z-index: 2;
}

.carousel-series-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.carousel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.carousel-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 400px;
}

.carousel-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-image img,
.carousel-image svg {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Carousel Controls */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  z-index: 10;
  transition: background 200ms ease, color 200ms ease;
}

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

.carousel-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }

.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-placeholder);
  transition: background 300ms ease, transform 300ms ease;
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ============================================
   CHIP NAVIGATION
   ============================================ */
.chip-bar {
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  border-bottom: 1px solid var(--surface-2);
}

.chip-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chip-bar-inner::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 400;
  color: #888888;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  cursor: pointer;
  transition: all 200ms ease;
  position: relative;
  white-space: nowrap;
}

.chip::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--text-secondary);
  transition: width 200ms ease, left 200ms ease;
}

.chip:hover {
  border-color: #555555;
  color: #cccccc;
}

.chip:hover::after {
  width: 60%;
  left: 20%;
}

.chip.active {
  background: var(--surface-3);
  color: var(--text-primary);
  border-color: var(--text-placeholder);
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.section {
  padding: 80px 0;
}

.section-lg { padding: 120px 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-text {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
  background: var(--surface-1);
  border-radius: var(--radius-card);
  border: 1px solid var(--surface-2);
  overflow: hidden;
  cursor: pointer;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease;
  box-shadow: var(--shadow-card);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 500ms ease, box-shadow 200ms ease-out, border-color 200ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border);
}

.product-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-card-press);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img,
.product-card-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.product-card:hover .product-card-image img,
.product-card:hover .product-card-image svg {
  transform: scale(1.03);
}

.product-card-info {
  padding: 20px;
}

.product-card-category {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.product-card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.product-card-cart-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 200ms ease, transform 200ms ease, background 200ms ease;
  color: var(--text-primary);
}

.product-card:hover .product-card-cart-btn {
  opacity: 1;
  transform: scale(1);
}

.product-card-cart-btn:hover {
  background: var(--border);
}

.product-card-cart-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* ============================================
   SERIES SECTION
   ============================================ */
.series-section {
  background: var(--surface-2);
  padding: 80px 0;
}

.series-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.series-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.series-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.series-view-all {
  font-size: 14px;
  color: var(--accent);
  transition: opacity 200ms ease;
  flex-shrink: 0;
}

.series-view-all:hover { opacity: 0.7; }

.series-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

.series-scroll::-webkit-scrollbar { height: 4px; }
.series-scroll::-webkit-scrollbar-track { background: transparent; }
.series-scroll::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 2px; }

.series-card {
  flex-shrink: 0;
  width: 280px;
  background: var(--surface-1);
  border-radius: var(--radius-series-card);
  border: 1px solid var(--surface-2);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
  box-shadow: var(--shadow-card);
}

.series-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.series-card-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.series-card-image img,
.series-card-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-card-info {
  padding: 20px;
}

.series-card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.series-card-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   BRAND STORY
   ============================================ */
.brand-story {
  background: var(--canvas);
  padding: 120px 0;
  text-align: center;
}

.brand-story-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.brand-story-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--surface-1);
  border-top: 1px solid var(--surface-2);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 300px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 200ms ease;
}

.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--surface-2);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 200ms ease;
}

.footer-social a:hover { color: var(--text-primary); }

.footer-social svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* ============================================
   CART DRAWER
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms var(--ease-out);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--cart-width);
  height: 100vh;
  background: var(--surface-2);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 350ms var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-drawer);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--surface-3);
  flex-shrink: 0;
}

.cart-drawer-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
}

.cart-drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 200ms ease;
}

.cart-drawer-close:hover { color: var(--text-primary); }

.cart-drawer-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--surface-3);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image img,
.cart-item-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  background: var(--surface-3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 14px;
  transition: background 200ms ease;
}

.cart-item-qty button:hover { background: var(--border); }

.cart-item-qty span {
  width: 36px;
  text-align: center;
  font-size: 14px;
  color: var(--text-primary);
}

.cart-item-remove {
  align-self: flex-start;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: color 200ms ease;
  flex-shrink: 0;
}

.cart-item-remove:hover { color: var(--text-primary); }

.cart-item-remove svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-tertiary);
  font-size: 14px;
  gap: 16px;
}

.cart-empty svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
  opacity: 0.5;
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--surface-3);
  flex-shrink: 0;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cart-subtotal-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.cart-subtotal-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-primary);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-total-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.cart-total-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  transition: background 200ms ease, transform 200ms ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #ffffff;
  transform: scale(1.02);
}

.btn-primary:active { transform: scale(0.98); }

.btn-primary:disabled {
  background: var(--border);
  color: var(--text-tertiary);
  cursor: not-allowed;
  transform: none;
}

.btn-primary.full-width { width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  border: 1px solid var(--text-placeholder);
  transition: border-color 200ms ease, color 200ms ease;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: #888888;
  color: var(--text-primary);
}

/* ============================================
   INPUTS
   ============================================ */
.input-field {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.input-field::placeholder { color: var(--text-placeholder); }

.input-field:focus {
  outline: none;
  border-color: #888888;
  box-shadow: 0 0 0 3px rgba(232,232,232,0.1);
}

textarea.input-field {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.input-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

/* ============================================
   PAGE HERO (Subpages)
   ============================================ */
.page-hero {
  margin-top: var(--nav-height);
  padding: 80px 0;
  background: var(--surface-2);
  text-align: center;
}

.page-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.page-hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 200ms ease;
}

.breadcrumb a:hover { color: var(--text-primary); }

.breadcrumb-sep { color: var(--text-placeholder); }

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail {
  padding: 60px 0 120px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-detail-gallery {
  aspect-ratio: 1/1;
  background: var(--surface-2);
  border-radius: var(--radius-section);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-gallery img,
.product-detail-gallery svg {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.product-detail-info {
  padding-top: 20px;
}

.product-detail-series {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.product-detail-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.product-detail-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.product-detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.product-detail-specs {
  margin-bottom: 32px;
  border-top: 1px solid var(--surface-3);
  padding-top: 24px;
}

.spec-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-2);
}

.spec-label {
  width: 120px;
  font-size: 13px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.spec-value {
  font-size: 13px;
  color: var(--text-primary);
}

.product-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

/* ============================================
   SERIES DETAIL PAGE
   ============================================ */
.series-hero {
  margin-top: var(--nav-height);
  padding: 100px 0;
  background: var(--surface-2);
  text-align: center;
}

.series-hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.series-hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-page {
  padding: 60px 0 120px;
}

.cart-page-empty {
  text-align: center;
  padding: 80px 0;
}

.cart-page-empty svg {
  width: 64px;
  height: 64px;
  stroke: var(--text-placeholder);
  stroke-width: 1;
  fill: none;
  margin: 0 auto 24px;
}

.cart-page-empty p {
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.cart-table {
  width: 100%;
}

.cart-table-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--surface-2);
}

.cart-table-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-table-image img,
.cart-table-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-table-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.cart-table-name small {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-top: 4px;
}

.cart-table-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-secondary);
  min-width: 80px;
  text-align: right;
}

.cart-table-qty {
  display: flex;
  align-items: center;
}

.cart-table-qty button {
  width: 32px;
  height: 32px;
  background: var(--surface-3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 16px;
  transition: background 200ms ease;
}

.cart-table-qty button:hover { background: var(--border); }

.cart-table-qty span {
  width: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--text-primary);
}

.cart-table-remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: color 200ms ease;
}

.cart-table-remove:hover { color: var(--text-primary); }

.cart-table-remove svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.cart-summary {
  margin-top: 40px;
  display: flex;
  justify-content: flex-end;
}

.cart-summary-box {
  background: var(--surface-1);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-card);
  padding: 32px;
  min-width: 320px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cart-summary-row span:first-child {
  font-size: 14px;
  color: var(--text-secondary);
}

.cart-summary-row span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-primary);
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--surface-3);
  margin-top: 16px;
  margin-bottom: 24px;
}

.cart-summary-total span:first-child {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
}

.cart-summary-total span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
  padding: 80px 0 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.about-text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.about-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-image {
  aspect-ratio: 4/3;
  background: var(--surface-2);
  border-radius: var(--radius-section);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image svg {
  width: 60%;
  height: 60%;
  opacity: 0.5;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.value-card {
  background: var(--surface-1);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-card);
  padding: 32px;
}

.value-card-icon {
  width: 48px;
  height: 48px;
  background: var(--surface-3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.value-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.value-card h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-content {
  padding: 80px 0 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--surface-2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.contact-info-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 14px;
  color: var(--text-primary);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ============================================
   PRODUCT LIST PAGE FILTER
   ============================================ */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.filter-count {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-3);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  z-index: 3000;
  transition: transform 350ms var(--ease-out);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1279px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-carousel { height: 60vh; }
  .carousel-title { font-size: 36px; }
  .cart-drawer { width: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid { gap: 40px; }
}

@media (max-width: 767px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-carousel { height: 50vh; }
  .carousel-content { width: 60%; padding: 0 24px; }
  .carousel-title { font-size: 28px; }
  .carousel-desc { font-size: 14px; }
  .carousel-image { width: 40%; }
  .carousel-arrow { display: none; }

  .navbar-nav { display: none; }
  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(13,13,13,0.98);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid var(--surface-2);
  }
  .navbar-nav.open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--surface-2);
  }
  .navbar-nav.open a:last-child { border-bottom: none; }
  .menu-toggle { display: flex; }

  .cart-drawer { width: 100vw; }
  .series-hero-name { font-size: 36px; }
  .page-hero-title { font-size: 32px; }

  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .cart-table-item {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }
  .cart-table-price,
  .cart-table-qty,
  .cart-table-remove {
    grid-column: 2;
  }
  .cart-summary { justify-content: stretch; }
  .cart-summary-box { min-width: auto; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .product-grid { gap: 12px; }
  .product-card-info { padding: 14px; }
  .product-card-name { font-size: 13px; }
  .product-card-price { font-size: 14px; }
  .carousel-content { width: 70%; }
  .carousel-image { width: 30%; }
}
