/* ============================
   JINGZHI MALL - Global Styles
   ============================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --black: #1a1a1a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f3;
  --gray-200: #ebebeb;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --accent: #c9a96e;
  --accent-dark: #a8884e;
  --accent-light: #f0e6d3;
  --red: #e05252;
  --green: #52a870;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --nav-h: 72px;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* Selection */
::selection { background: var(--accent-light); color: var(--black); }

/* ============================
   NAVIGATION
   ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--black);
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--gray-500);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}
.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-600);
  letter-spacing: 0.02em;
  transition: var(--transition);
  padding: 4px 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--black);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--black);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.highlight {
  color: var(--accent-dark);
  font-weight: 500;
}
.nav-link.highlight::after { background: var(--accent); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: var(--transition);
  position: relative;
}
.icon-btn:hover { background: var(--gray-100); color: var(--black); }
.cart-count {
  position: absolute;
  top: 4px; right: 4px;
  width: 16px; height: 16px;
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  transition: var(--transition);
}
.cart-count.visible { opacity: 1; }

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-inner {
  width: 640px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 12px;
}
.search-input {
  flex: 1;
  font-size: 20px;
  font-family: var(--font-display);
  border: none; outline: none;
  background: transparent;
  color: var(--black);
  letter-spacing: 0.02em;
}
.search-input::placeholder { color: var(--gray-400); }
.search-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  transition: var(--transition);
  border-radius: 50%;
}
.search-close:hover { background: var(--gray-100); color: var(--black); }
.search-hints { margin-top: 32px; width: 640px; }
.hint-label { font-size: 11px; font-weight: 500; color: var(--gray-400); letter-spacing: 0.15em; text-transform: uppercase; display: block; margin-bottom: 12px; }
.hint-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hint-tag {
  padding: 6px 16px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 13px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}
.hint-tag:hover { background: var(--gray-200); color: var(--black); }

/* ============================
   BUTTONS
   ============================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--gray-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 32px;
  background: transparent;
  color: var(--black);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--black); background: var(--gray-50); }

.btn-full { width: 100%; }

/* ============================
   PAGE SYSTEM
   ============================ */
.page { display: none; }
.page.active { display: block; }
main { padding-top: var(--nav-h); }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 20px;
}
.breadcrumb a { transition: var(--transition); }
.breadcrumb a:hover { color: var(--black); }
.page-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

/* ============================
   HERO
   ============================ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-gradient {
  position: absolute;
  top: -20%;
  right: 35%;
  width: 70vw; height: 70vw;
  background: radial-gradient(ellipse, rgba(201,169,110,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px 80px calc(max(40px, calc((100vw - 1280px) / 2 + 40px)));
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent-dark);
}
.hero-desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 380px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.hero-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.hero-img-wrap:hover img { transform: scale(1.04); }

/* ============================
   SECTIONS
   ============================ */
.section-categories,
.section-products {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 40px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.section-sub {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 4px;
}
.section-more {
  font-size: 13px;
  color: var(--gray-500);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.section-more:hover { color: var(--black); border-bottom-color: var(--black); }

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-50);
  transition: var(--transition);
  position: relative;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.cat-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.category-card:hover .cat-img img { transform: scale(1.06); }
.cat-info {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cat-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
}
.cat-count {
  font-size: 12px;
  color: var(--gray-400);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.products-grid-large {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.product-card:hover { transform: translateY(-2px); }
.product-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.95);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-dark);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.04em;
}
.product-actions {
  position: absolute;
  bottom: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-action-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  backdrop-filter: blur(8px);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.product-action-btn:hover { background: var(--black); color: var(--white); }
.product-info {
  padding: 14px 4px 8px;
}
.product-brand {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.product-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}
.product-price-original {
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-left: 6px;
}
.product-sales {
  font-size: 12px;
  color: var(--gray-400);
}

/* Join Section */
.section-join { padding: 0 40px 100px; }
.join-card {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--black);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
}
.join-content { padding: 64px 60px; }
.join-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.join-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}
.join-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.join-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 36px;
}
.join-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}
.join-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.join-benefits svg { color: var(--accent); flex-shrink: 0; }
.join-visual {
  background: rgba(255,255,255,0.03);
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.join-num-list { display: flex; flex-direction: column; gap: 48px; }
.join-num-item { text-align: center; }
.join-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  display: block;
}
.join-num span { font-size: 32px; }
.join-num-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
  display: block;
}

/* ============================
   PRODUCTS PAGE
   ============================ */
.products-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 40px 0;
}
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 40px;
}
.filter-tabs { display: flex; gap: 4px; }
.filter-tab {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-500);
  border-radius: 100px;
  transition: var(--transition);
}
.filter-tab:hover { color: var(--black); background: var(--gray-100); }
.filter-tab.active { background: var(--black); color: var(--white); }
.sort-select {
  padding: 8px 32px 8px 14px;
  font-size: 13px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-600);
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23a3a3a3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.sort-select:focus { border-color: var(--black); }

/* ============================
   MERCHANT PAGE
   ============================ */
.merchant-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 40px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.merchant-info-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.merchant-info-tag::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
}
.merchant-info-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.merchant-info-desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 48px;
}
.merchant-steps {
  display: grid;
  grid-template-columns: auto 32px auto 32px auto 32px auto;
  align-items: center;
  gap: 0;
}
.step-item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.step-num {
  width: 48px; height: 48px;
  border: 1.5px solid var(--gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.step-item:hover .step-num { border-color: var(--accent); color: var(--accent); }
.step-title { font-size: 13px; font-weight: 500; color: var(--black); }
.step-desc { font-size: 12px; color: var(--gray-400); }
.step-arrow { font-size: 16px; color: var(--gray-300); text-align: center; }

/* Form Card */
.merchant-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.form-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
}
.form-step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: var(--transition);
  position: relative;
}
.form-step-dot.active { background: var(--black); transform: scale(1.2); }
.form-step-line {
  width: 60px; height: 1px;
  background: var(--gray-200);
  transition: var(--transition);
}
.form-step { display: none; }
.form-step.active { display: block; }
.form-step-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.required { color: var(--red); }
.form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  outline: none;
  background: var(--gray-50);
  color: var(--black);
  transition: var(--transition);
}
.form-input:focus { border-color: var(--black); background: var(--white); box-shadow: 0 0 0 3px rgba(0,0,0,0.04); }
.form-input::placeholder { color: var(--gray-400); }
.form-textarea { resize: vertical; min-height: 100px; }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.radio-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--gray-600);
  cursor: pointer;
}
.radio-item input { accent-color: var(--black); }

/* Upload */
.upload-area {
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: var(--gray-50);
  margin-bottom: 12px;
}
.upload-area:hover { border-color: var(--accent); background: var(--accent-light); }
.upload-icon { color: var(--gray-400); margin-bottom: 8px; display: flex; justify-content: center; }
.upload-text { font-size: 14px; color: var(--gray-600); margin-bottom: 4px; }
.upload-hint { font-size: 12px; color: var(--gray-400); }
.upload-input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
}
.upload-preview {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.preview-item {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--gray-200);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 10px;
  cursor: pointer;
}

/* Agreement */
.agreement-check { margin-bottom: 24px; }
.check-label {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--gray-500);
  cursor: pointer;
}
.check-label input { accent-color: var(--black); }
.check-label a { color: var(--accent-dark); text-decoration: underline; }
.form-btn-row { display: flex; gap: 12px; margin-top: 8px; }

/* Success */
.form-success { text-align: center; padding: 20px 0; }
.success-icon { color: var(--green); margin-bottom: 16px; display: flex; justify-content: center; }
.success-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
}
.success-desc { font-size: 14px; color: var(--gray-500); line-height: 1.7; margin-bottom: 8px; }
.success-order {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 28px;
  background: var(--gray-50);
  padding: 10px 16px;
  border-radius: var(--radius);
  display: inline-block;
}
.success-order span { font-weight: 600; color: var(--black); }

/* ============================
   CART PAGE
   ============================ */
.cart-header { max-width: 1280px; margin: 0 auto; padding: 60px 40px 0; }
.cart-layout { max-width: 1280px; margin: 0 auto; padding: 0 40px 80px; display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.cart-items {}
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-100);
}
.cart-item-img {
  width: 100px; height: 130px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info {}
.cart-item-brand { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 4px; }
.cart-item-name { font-size: 15px; font-weight: 400; margin-bottom: 8px; }
.cart-item-price { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 32px; height: 32px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}
.qty-btn:hover { border-color: var(--black); color: var(--black); }
.qty-num { font-size: 14px; font-weight: 500; min-width: 24px; text-align: center; }
.cart-item-subtotal { text-align: right; }
.cart-item-remove {
  font-size: 12px; color: var(--gray-400);
  cursor: pointer; margin-top: 8px;
  transition: var(--transition);
}
.cart-item-remove:hover { color: var(--red); }

/* Cart Summary */
.cart-summary {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 14px; color: var(--gray-600);
  margin-bottom: 12px;
}
.summary-row.total {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  margin-bottom: 24px;
}
.summary-row.total .summary-val { font-family: var(--font-display); }
.summary-row .summary-val { font-weight: 500; color: var(--black); }
.checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.04em;
}
.checkout-btn:hover { background: var(--gray-700); }
.cart-empty { display: none; text-align: center; padding: 80px 40px; }
.cart-empty.show { display: block; }
.empty-icon { color: var(--gray-300); margin-bottom: 16px; display: flex; justify-content: center; }
.empty-text { font-size: 16px; color: var(--gray-400); margin-bottom: 24px; }

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  margin-top: 0;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 40px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
}
.footer-tagline { font-size: 13px; color: var(--gray-400); margin-top: 8px; }
.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--black); margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--gray-500); transition: var(--transition); }
.footer-col a:hover { color: var(--black); }
.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding: 20px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-400);
  max-width: 1280px;
  margin: 0 auto;
}

/* ============================
   TOAST
   ============================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--black);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  z-index: 3000;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.page.active .hero-content { animation: fadeUp 0.7s ease both; }
.page.active .hero-image { animation: fadeUp 0.7s 0.1s ease both; }
.page.active .category-card:nth-child(1) { animation: fadeUp 0.5s 0.1s ease both; }
.page.active .category-card:nth-child(2) { animation: fadeUp 0.5s 0.18s ease both; }
.page.active .category-card:nth-child(3) { animation: fadeUp 0.5s 0.26s ease both; }
.page.active .category-card:nth-child(4) { animation: fadeUp 0.5s 0.34s ease both; }
.page.active .product-card { animation: fadeUp 0.5s ease both; }
.page.active .product-card:nth-child(1) { animation-delay: 0.05s; }
.page.active .product-card:nth-child(2) { animation-delay: 0.1s; }
.page.active .product-card:nth-child(3) { animation-delay: 0.15s; }
.page.active .product-card:nth-child(4) { animation-delay: 0.2s; }
.page.active .product-card:nth-child(5) { animation-delay: 0.25s; }
.page.active .product-card:nth-child(6) { animation-delay: 0.3s; }
.page.active .product-card:nth-child(7) { animation-delay: 0.35s; }
.page.active .product-card:nth-child(8) { animation-delay: 0.4s; }
