/* ========================================
   LUXORA E-Commerce - 主样式表
   ======================================== */

/* === CSS Variables === */
:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #e94560;
  --accent-hover: #c73350;
  --gold: #d4a574;
  --gold-light: #f0d9b5;
  --bg: #fafafa;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #eeeeee;
  --border-light: #f5f5f5;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --navbar-height: 72px;
  --container-max: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* === Announcement Bar === */
.announcement-bar {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.announcement-bar i { margin-right: 6px; }

/* === Navbar === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--navbar-height);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-icon {
  color: var(--accent);
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--border-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  gap: 8px;
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}

.search-bar i { color: var(--text-muted); font-size: 14px; }

.search-bar input {
  border: none;
  background: none;
  width: 180px;
  font-size: 14px;
}

.search-bar input::placeholder { color: var(--text-muted); }

.nav-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  color: var(--text);
  transition: var(--transition);
}

.nav-btn:hover {
  background: var(--bg);
  color: var(--accent);
}

.nav-btn .badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: var(--transition);
}

.nav-btn .badge.show {
  transform: scale(1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Mobile Menu === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: white;
  z-index: 2000;
  transform: translateX(-100%);
  transition: var(--transition-slow);
  padding: 24px;
  box-shadow: var(--shadow-xl);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
}

.close-btn {
  font-size: 28px;
  color: var(--text-light);
  line-height: 1;
}

.mobile-link {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

/* === Hero Section === */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 800px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(233,69,96,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212,165,116,0.12) 0%, transparent 40%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(233,69,96,0.3);
  border-radius: 50%;
  animation: float-particle 15s infinite;
}

@keyframes float-particle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text {
  color: white;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,165,116,0.15);
  border: 1px solid rgba(212,165,116,0.3);
  color: var(--gold-light);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text h1 .highlight {
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-product-showcase {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
}

.hero-product-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  animation: pulse-ring 4s ease-in-out infinite;
}

.hero-product-circle:nth-child(1) { inset: 0; }
.hero-product-circle:nth-child(2) { inset: 10%; animation-delay: 1s; }
.hero-product-circle:nth-child(3) { inset: 20%; animation-delay: 2s; }

.hero-product-img {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.hero-product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 10s ease;
}

.hero-product-img:hover img {
  transform: scale(1.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-value {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: white;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.6; }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(233,69,96,0.4);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
  background: white;
  color: var(--primary);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary);
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,165,116,0.4);
}

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-icon {
  width: 44px; height: 44px;
  padding: 0; border-radius: 50%;
}

/* === Section Title === */
.section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-tag::before, .section-tag::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* === Categories === */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-card-bg {
  transform: scale(1.1);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
  transition: var(--transition);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%);
}

.category-card-content {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 32px;
  color: white;
}

.category-card-content h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 8px;
}

.category-card-content p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 16px;
}

/* === Products Grid === */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 14px;
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}

.products-count {
  font-size: 14px;
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* === Product Card === */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #f0f0f0;
}

.product-card-image .img-slider {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-image .img-slider img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image .img-slider img:not(.no-zoom) {
  transform: scale(1.08);
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.product-badge {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new { background: var(--primary); color: white; }
.badge-sale { background: var(--accent); color: white; }
.badge-oos { background: var(--warning); color: white; }
.badge-hot { background: #ef4444; color: white; }

.product-card-actions {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-card-actions button {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.product-card-actions button:hover {
  background: var(--accent);
  color: white;
}

.product-card-actions button.wishlisted {
  color: var(--accent);
}

.product-card-actions button.wishlisted i {
  font-weight: 900;
}

/* Swipe indicators for mobile */
.swipe-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.swipe-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.swipe-dot.active {
  background: white;
  width: 18px;
  border-radius: 3px;
}

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

.product-card-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.product-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.product-card-rating .stars {
  color: #f59e0b;
  font-size: 13px;
}

.product-card-rating .count {
  font-size: 12px;
  color: var(--text-muted);
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.price-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.price-original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-discount {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(233,69,96,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.product-card-add {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-card-add.available {
  background: var(--primary);
  color: white;
}

.product-card-add.available:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}

.product-card-add.oos {
  background: var(--bg);
  color: var(--text-muted);
  cursor: not-allowed;
  border: 1px dashed var(--border);
}

.product-card-stock {
  font-size: 11px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stock-low { color: var(--warning); }
.stock-ok { color: var(--success); }
.stock-out { color: var(--error); }

/* === Features Banner === */
.features-banner {
  padding: 60px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.feature-item {
  text-align: center;
  padding: 24px;
}

.feature-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.feature-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* === Cart Sidebar === */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

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

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  z-index: 1600;
  transform: translateX(100%);
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

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

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

.cart-header h2 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  animation: slideInRight 0.3s ease;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}

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

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

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 700;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.quantity-control button {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition-fast);
}

.quantity-control button:hover {
  background: var(--bg);
}

.quantity-control span {
  width: 36px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
  padding: 4px;
}

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

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.cart-summary { margin-bottom: 20px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-light);
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  border-top: 2px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 16px;
}

.cart-empty i { font-size: 48px; }
.cart-empty p { font-size: 16px; }

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

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

.modal {
  background: white;
  border-radius: var(--radius-xl);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  width: 100%;
  transform: scale(0.95) translateY(10px);
  transition: var(--transition-slow);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-sm { max-width: 480px; }
.modal-lg { max-width: 900px; }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text);
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--accent);
  color: white;
}

/* === Quick View === */
.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.quick-view-gallery {
  position: relative;
  background: #f5f5f5;
  overflow: hidden;
}

.quick-view-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-view-gallery .gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.quick-view-gallery .gallery-nav.prev { left: 12px; }
.quick-view-gallery .gallery-nav.next { right: 12px; }

.quick-view-gallery .gallery-nav button {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.quick-view-gallery .gallery-nav button:hover {
  background: white;
  box-shadow: var(--shadow-lg);
}

.quick-view-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.quick-view-info .product-card-category {
  margin-bottom: 8px;
}

.quick-view-info h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.quick-view-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.quick-view-rating .stars { color: #f59e0b; }
.quick-view-rating span { font-size: 14px; color: var(--text-light); }

.quick-view-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.quick-view-price .price-current { font-size: 28px; }
.quick-view-price .price-original { font-size: 16px; }

.quick-view-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 24px;
}

.quick-view-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

/* === Checkout Page === */
.checkout-page {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  padding: 48px 0;
}

.checkout-form-section h2,
.checkout-summary-section h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--accent);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}

.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

.form-error.show { display: block; }

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

/* Stripe-like card element */
.stripe-card-element {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-height: 44px;
  cursor: text;
  transition: var(--transition);
  position: relative;
}

.stripe-card-element.focused {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}

.stripe-card-element .fake-input {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.stripe-card-element input {
  border: none;
  background: none;
  font-size: 14px;
}

.stripe-card-element .card-icons {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.stripe-card-element .card-icons i {
  color: var(--text-muted);
  font-size: 22px;
}

.stripe-card-element .card-icons i.active { color: #1a1f71; }

.checkout-line-items {
  margin-bottom: 24px;
}

.checkout-line-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.checkout-line-item-info {
  flex: 1;
}

.checkout-line-item-name {
  font-size: 14px;
  font-weight: 600;
}

.checkout-line-item-qty {
  font-size: 12px;
  color: var(--text-muted);
}

.checkout-line-item-price {
  font-size: 14px;
  font-weight: 700;
}

.checkout-totals {
  padding-top: 16px;
}

.checkout-totals .summary-row {
  padding: 8px 0;
}

.checkout-totals .summary-row.total {
  font-size: 20px;
}

.checkout-actions {
  margin-top: 24px;
}

.checkout-actions .btn {
  padding: 16px;
  font-size: 16px;
}

/* === Wishlist Page === */
.wishlist-page {
  padding: 48px 0;
}

.wishlist-page h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  margin-bottom: 32px;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.wishlist-empty {
  text-align: center;
  padding: 80px 24px;
}

.wishlist-empty i {
  font-size: 64px;
  color: var(--border);
  margin-bottom: 24px;
}

.wishlist-empty h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.wishlist-empty p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* === Product Detail Page === */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 40px 0;
}

.product-gallery {
  position: sticky;
  top: calc(var(--navbar-height) + 24px);
  height: fit-content;
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 16px;
  position: relative;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-gallery-main .gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.product-gallery-main .gallery-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  border: 2px solid transparent;
  transition: var(--transition);
}

.product-gallery-main .gallery-dots button.active {
  background: white;
  border-color: rgba(0,0,0,0.2);
}

.product-gallery-thumbs {
  display: flex;
  gap: 12px;
}

.product-gallery-thumbs button {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
}

.product-gallery-thumbs button.active {
  border-color: var(--primary);
}

.product-gallery-thumbs button img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.product-detail-info h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.product-detail-rating .stars { color: #f59e0b; font-size: 16px; }
.product-detail-rating span { color: var(--text-light); font-size: 14px; }

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.product-detail-price .price-current { font-size: 32px; }

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

.product-detail-features {
  list-style: none;
  margin-bottom: 32px;
}

.product-detail-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
}

.product-detail-features li i {
  color: var(--success);
  margin-top: 3px;
}

.product-detail-actions {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* === Order Success === */
.order-success {
  text-align: center;
  padding: 80px 24px;
  max-width: 500px;
  margin: 0 auto;
}

.order-success-icon {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  background: rgba(16,185,129,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--success);
  animation: scaleIn 0.5s ease;
}

.order-success h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin-bottom: 12px;
}

.order-success p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.order-success .order-number {
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* === Toast === */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  min-width: 280px;
  max-width: 400px;
  pointer-events: auto;
  animation: toastIn 0.4s ease;
}

.toast.removing {
  animation: toastOut 0.3s ease forwards;
}

.toast-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.toast-success .toast-icon { background: rgba(16,185,129,0.1); color: var(--success); }
.toast-error .toast-icon { background: rgba(239,68,68,0.1); color: var(--error); }
.toast-warning .toast-icon { background: rgba(245,158,11,0.1); color: var(--warning); }
.toast-info .toast-icon { background: rgba(59,130,246,0.1); color: #3b82f6; }

.toast-close {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 16px;
  padding: 4px;
}

/* === Loading Skeleton === */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Scroll indicator for swipe === */
.scroll-hint {
  display: none;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  z-index: 3;
  animation: fadeInOut 2s ease infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* === Footer === */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h3 {
  font-family: var(--font-serif);
  color: white;
  font-size: 22px;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  transition: var(--transition);
  padding: 0 !important;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* === No Results === */
.no-results {
  text-align: center;
  padding: 80px 24px;
}

.no-results i {
  font-size: 48px;
  color: var(--border);
  margin-bottom: 16px;
}

.no-results h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.no-results p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text p { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  .hero-stats { justify-items: center; }
  .quick-view-grid { grid-template-columns: 1fr; }
  .product-gallery-main { max-height: 400px; }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; }
  .checkout-page { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .search-bar { display: none; }

  .hero {
    height: 70vh;
    min-height: 400px;
  }

  .hero-text h1 { font-size: 32px; }
  .hero-text p { font-size: 15px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero-stat-value { font-size: 22px; }

  .section { padding: 48px 0; }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card { height: 200px; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card-image { height: 220px; }
  .product-card-info { padding: 14px; }
  .product-card-name { font-size: 14px; }
  .price-current { font-size: 16px; }
  .product-card-add { padding: 10px; font-size: 13px; }
  .product-card-actions { opacity: 1; transform: none; }

  .form-row { grid-template-columns: 1fr; }

  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .toast { min-width: 260px; font-size: 13px; }
  .toast-container { left: 16px; right: 16px; bottom: 16px; }

  .mobile-menu-background {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card-image { height: 180px; }

  .scroll-hint { display: block; }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .quick-view-info { padding: 24px; }
}

/* === Page transition overlay === */
.page-transition {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

.page-transition.active {
  transform: translateY(0);
}

/* mobile search */
.mobile-search {
  display: none;
  padding: 0 24px 16px;
}

@media (max-width: 768px) {
  .mobile-search { display: block; }
}
