/* ============================================
   LUMA Store — Modern E-Commerce Stylesheet
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-bg-alt: #f7f6f3;
  --color-bg-dark: #1a1a1a;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-text-light: #9a9a9a;
  --color-border: #e8e6e1;
  --color-accent: #1a1a1a;
  --color-accent-hover: #333333;
  --color-sale: #c0392b;
  --color-success: #2d7a5f;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Layout */
  --container-max: 1280px;
  --radius: 4px;
  --radius-lg: 12px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--color-text-muted); }

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--space-lg) 0; }

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn-outline:hover {
  background: var(--color-text);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--color-text);
}
.btn-light:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.btn-full { width: 100%; }
.btn-lg { padding: 1.125rem 3rem; font-size: 0.9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
}
.logo span { font-style: italic; }

.nav-main {
  display: flex;
  gap: 2rem;
}

.nav-main a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  padding: 0.5rem 0;
}

.nav-main a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-text);
  transition: width var(--transition);
}
.nav-main a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background var(--transition);
}
.icon-btn:hover { background: var(--color-bg-alt); }

.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-text);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-text);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

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

.menu-toggle { display: none; }

/* ---------- Announcement Bar ---------- */
.announcement {
  background: var(--color-bg-dark);
  color: #fff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.hero-content {
  max-width: 560px;
  padding: 3rem 0;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-serif);
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  background-size: cover;
  background-position: center;
}
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-bg-alt) 0%, transparent 30%);
}

/* ---------- Section Header ---------- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.section-header h2 {
  font-family: var(--font-serif);
}

.section-header a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
}

/* ---------- Product Grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.25rem;
}

.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Product Card ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  margin-bottom: 0.875rem;
}

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

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #fff;
  color: var(--color-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
}

.product-badge.sale {
  background: var(--color-sale);
  color: #fff;
}

.product-badge.new {
  background: var(--color-success);
  color: #fff;
}

.quick-add {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
  text-align: center;
}

.product-card:hover .quick-add {
  opacity: 1;
  transform: translateY(0);
}

.product-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-card-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.product-card-price {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.product-card-price .original {
  text-decoration: line-through;
  margin-right: 0.4rem;
  color: var(--color-text-light);
}

.product-card-price .sale-price {
  color: var(--color-sale);
  font-weight: 600;
}

.product-colors {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
}

/* ---------- Category Banners ---------- */
.category-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.category-banner {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.category-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-banner:hover img { transform: scale(1.08); }

.category-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
}

.category-banner-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: #fff;
  z-index: 2;
}

.category-banner-label h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.category-banner-label span {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 2px;
}

/* ---------- Feature Strip ---------- */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-item svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  stroke: var(--color-text);
}

.feature-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

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

/* ---------- Shop Page ---------- */
.shop-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.shop-header h1 {
  font-family: var(--font-serif);
  margin-bottom: 0.75rem;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: all var(--transition);
  color: var(--color-text-muted);
}

.filter-chip:hover { border-color: var(--color-text); color: var(--color-text); }
.filter-chip.active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.sort-select {
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem 2rem 0.5rem 1rem;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

/* ---------- Product Detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem 0 4rem;
}

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

.product-main-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbs {
  display: flex;
  gap: 0.75rem;
}

.product-thumb {
  width: 80px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--color-bg-alt);
}

.product-thumb.active { border-color: var(--color-text); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info {
  padding-top: 1rem;
}

.product-info h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.product-price {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-price .original {
  text-decoration: line-through;
  color: var(--color-text-light);
  font-weight: 400;
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

.product-price .sale-price { color: var(--color-sale); }

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.stars { color: #e0a800; letter-spacing: 1px; }

.product-description {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.option-group {
  margin-bottom: 1.5rem;
}

.option-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.option-label .selected-val {
  color: var(--color-text-muted);
  font-weight: 400;
}

.size-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.size-option {
  min-width: 48px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  padding: 0 0.75rem;
}

.size-option:hover { border-color: var(--color-text); }
.size-option.selected {
  border-color: var(--color-text);
  background: var(--color-text);
  color: #fff;
}

.size-option.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.color-options {
  display: flex;
  gap: 0.6rem;
}

.color-option {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.color-option.selected {
  border-color: var(--color-text);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-text);
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--color-bg-alt); }

.qty-input {
  width: 50px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--color-border);
  border-right: 1.5px solid var(--color-border);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.product-meta {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.meta-row {
  display: flex;
  font-size: 0.85rem;
}

.meta-row .label {
  width: 120px;
  font-weight: 600;
  color: var(--color-text);
}

.meta-row .value { color: var(--color-text-muted); }

/* ---------- Cart Drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #fff;
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

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

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

.cart-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}
.cart-close:hover { background: var(--color-bg-alt); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

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

.cart-empty svg {
  width: 64px;
  height: 64px;
  stroke: var(--color-border);
}

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

.cart-item-image {
  width: 80px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  flex-shrink: 0;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.cart-item-variant {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.cart-item-price {
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: auto;
}

.cart-item-controls {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-direction: column;
}

.cart-item-remove {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-decoration: underline;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--color-sale); }

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.cart-item-qty button:hover { background: var(--color-bg-alt); }

.cart-item-qty span {
  width: 32px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.cart-subtotal .amount { font-weight: 700; font-size: 1.15rem; }

.cart-shipping-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  text-align: center;
}

/* ---------- Checkout Page ---------- */
.checkout-page {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  padding: 2rem 0 4rem;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.checkout-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checkout-section h3 .step-num {
  width: 26px;
  height: 26px;
  background: var(--color-text);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

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

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.form-field input,
.form-field select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
  background: #fff;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--color-text);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.payment-option:hover { border-color: var(--color-text); }

.payment-option.selected {
  border-color: var(--color-text);
  background: var(--color-bg-alt);
}

.payment-option input[type="radio"] {
  accent-color: var(--color-text);
  width: 18px;
  height: 18px;
}

.payment-option .pay-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.payment-option .pay-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.payment-option .pay-icon {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* Order Summary */
.order-summary {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  align-self: start;
  position: sticky;
  top: 90px;
}

.order-summary h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  max-height: 300px;
  overflow-y: auto;
}

.summary-item {
  display: flex;
  gap: 0.75rem;
}

.summary-item-image {
  width: 56px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
}
.summary-item-image img { width: 100%; height: 100%; object-fit: cover; }

.summary-item-info {
  flex: 1;
  font-size: 0.8rem;
}

.summary-item-info .name { font-weight: 500; }
.summary-item-info .variant { color: var(--color-text-muted); font-size: 0.75rem; }

.summary-item-price {
  font-size: 0.8rem;
  font-weight: 600;
}

.summary-totals {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
}

.summary-total-row span:first-child { color: var(--color-text-muted); font-size: 0.875rem; }
.summary-total-row span:last-child { font-weight: 500; font-size: 0.875rem; }

.summary-total-row.grand {
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}
.summary-total-row.grand span:first-child { font-weight: 700; font-size: 1rem; color: var(--color-text); }
.summary-total-row.grand span:last-child { font-weight: 700; font-size: 1.25rem; }

/* ---------- Order Confirmation ---------- */
.order-confirmation {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 560px;
  margin: 0 auto;
}

.order-confirmation .check-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-confirmation .check-icon svg {
  width: 36px;
  height: 36px;
  stroke: #fff;
}

.order-confirmation h1 {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
}

.order-confirmation p {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.order-number {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--color-bg-dark);
  color: #fff;
  text-align: center;
  padding: var(--space-lg) 1.5rem;
}

.newsletter h2 {
  font-family: var(--font-serif);
  margin-bottom: 0.75rem;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  outline: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-lg) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.footer-payments {
  display: flex;
  gap: 0.75rem;
}

.footer-payments .pay-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-text);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: all 0.35s ease;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

/* ---------- Page Transition ---------- */
.view {
  animation: fadeIn 0.3s ease;
}

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

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-alt) 25%, #efedea 50%, var(--color-bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

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

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 1.5rem 0 0;
}

.breadcrumbs a:hover { color: var(--color-text); }
.breadcrumbs .sep { color: var(--color-text-light); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
  .checkout-page { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

@media (max-width: 768px) {
  .nav-main { display: none; }
  .menu-toggle { display: flex; }
  
  .hero { min-height: auto; padding: 2rem 0; }
  .hero-image { display: none; }
  .hero-content { max-width: 100%; padding: 1rem 0; }
  
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-banners { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  
  .section-header { flex-direction: column; align-items: flex-start; }
  
  .form-row { grid-template-columns: 1fr; }
  
  .newsletter-form { flex-direction: column; }
  
  .cart-drawer { width: 100vw; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1rem 0.75rem; }
  .feature-strip { grid-template-columns: 1fr; }
  .container { padding: 0 1rem; }
  .quick-add { font-size: 0.7rem; padding: 0.6rem; }
}
