/* ── SHOP LAYOUT TOKENS (extends theme.css) ── */
:root {
  --shop-plum:      #5C2040;
  --shop-plum-deep:  #3D1530;
  --shop-rose-gold:  #C9A87C;
  --shop-cream:      #F8F4F0;
  --shop-cream-dark: #EDE5DC;
  --shop-espresso:   #1A0F1A;
}

/* ── SHARED BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--shop-plum);
  color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--shop-plum-deep); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--shop-plum);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--shop-plum);
  cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(92,32,64,0.05); }

.full-width { width: 100%; text-align: center; }

/* ── SHOP HERO ── */
.shop-hero {
  padding: 6rem 3rem 4rem;
  background: var(--shop-cream);
}
.shop-hero-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.shop-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--shop-plum-deep);
  line-height: 1;
  margin: 0.5rem 0 1rem;
}
.shop-headline em { color: var(--shop-rose-gold); font-style: italic; }
.shop-sub {
  font-size: 1rem;
  color: var(--shop-espresso);
  opacity: 0.7;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ── SHOP PRODUCTS GRID ── */
.shop-products { padding: 4rem 3rem 6rem; background: var(--shop-cream); }
.shop-products-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.product-image-wrap { height: 220px; background: var(--shop-cream-dark); display: flex; align-items: center; justify-content: center; }
.product-image-placeholder {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--shop-plum) 0%, var(--shop-rose-gold) 100%);
  display: flex; align-items: center; justify-content: center;
}
.product-initial { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: white; font-weight: 300; }
.product-info { padding: 1.5rem; }
.product-tagline { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--shop-rose-gold); margin-bottom: 0.4rem; }
.product-name { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 500; color: var(--shop-plum-deep); margin-bottom: 0.5rem; }
.product-price { display: flex; align-items: center; gap: 0.5rem; }
.price-current { font-size: 1rem; font-weight: 500; color: var(--shop-plum); }
.price-compare { font-size: 0.85rem; color: var(--shop-espresso); opacity: 0.45; text-decoration: line-through; }

/* ── PRODUCT DETAIL PAGE ── */
.product-page { padding: 4rem 3rem 6rem; background: var(--shop-cream); min-height: 60vh; }
.product-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Gallery */
.product-gallery { display: flex; flex-direction: column; gap: 0.75rem; }
.gallery-main { border-radius: 16px; overflow: hidden; }
.gallery-placeholder {
  width: 100%; aspect-ratio: 1; max-height: 480px;
  background: var(--shop-cream-dark);
  display: flex; align-items: center; justify-content: center;
}
.product-initial-lg { font-family: 'Cormorant Garamond', serif; font-size: 6rem; color: var(--shop-plum); opacity: 0.4; font-weight: 300; }
.gallery-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }

/* Details */
.product-details { padding-top: 0.5rem; }
.product-title { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 400; color: var(--shop-plum-deep); margin: 0.5rem 0 0.3rem; }
.product-tagline-text { font-size: 0.95rem; color: var(--shop-espresso); opacity: 0.7; margin-bottom: 1.5rem; font-style: italic; }
.product-price-row { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.5rem; }
.price-lg { font-size: 1.8rem; font-weight: 500; color: var(--shop-plum); font-family: 'Cormorant Garamond', serif; }
.price-compare-lg { font-size: 1.1rem; color: var(--shop-espresso); opacity: 0.4; text-decoration: line-through; }
.price-save { font-size: 0.75rem; font-weight: 500; color: #2d7a4f; background: #e8f5ee; padding: 0.2rem 0.5rem; border-radius: 4px; }
.product-description { font-size: 0.95rem; color: var(--shop-espresso); opacity: 0.75; line-height: 1.8; margin-bottom: 2rem; }

/* Variants */
.variant-group { margin-bottom: 1.5rem; }
.variant-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--shop-espresso); margin-bottom: 0.6rem; font-weight: 500; }
.variant-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.variant-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1.5px solid var(--shop-cream-dark);
  background: white;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--shop-espresso);
  transition: border-color 0.15s, color 0.15s;
}
.variant-btn:hover { border-color: var(--shop-plum); }
.variant-btn.selected { border-color: var(--shop-plum); background: var(--shop-plum); color: white; }
.variant-btn.sold-out { opacity: 0.4; cursor: not-allowed; }

/* Quantity */
.quantity-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.qty-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--shop-espresso); font-weight: 500; }
.qty-controls { display: flex; align-items: center; border: 1.5px solid var(--shop-cream-dark); border-radius: 8px; overflow: hidden; }
.qty-btn { background: none; border: none; font-size: 1.2rem; width: 36px; height: 36px; cursor: pointer; color: var(--shop-espresso); }
.qty-btn:hover { background: var(--shop-cream-dark); }
.qty-input { width: 48px; text-align: center; border: none; font-size: 0.9rem; outline: none; font-family: 'DM Sans', sans-serif; }

/* Checkout */
.btn-checkout { width: 100%; margin-bottom: 0.5rem; }
.checkout-error { font-size: 0.82rem; color: #c0392b; margin-top: 0.5rem; text-align: center; }

/* Detail sections */
.product-detail-section { margin-top: 1.5rem; border-top: 1px solid var(--shop-cream-dark); padding-top: 1rem; }
.detail-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--shop-espresso); font-weight: 500; margin-bottom: 0.4rem; }
.detail-text { font-size: 0.85rem; color: var(--shop-espresso); opacity: 0.65; line-height: 1.7; }

/* Badges */
.product-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.badge { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.3rem 0.7rem; border-radius: 20px; border: 1px solid var(--shop-rose-gold); color: var(--shop-rose-gold); }

/* ── CART ── */
.cart-page { padding: 5rem 3rem; background: var(--shop-cream); min-height: 60vh; }
.cart-inner { max-width: 640px; margin: 0 auto; }
.cart-title { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 400; color: var(--shop-plum-deep); margin-bottom: 2rem; }
.cart-empty { text-align: center; padding: 3rem; }
.cart-empty p { font-size: 1rem; opacity: 0.6; margin-bottom: 1.5rem; }
.cart-items { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  background: white; border-radius: 12px; padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cart-item-name { font-size: 0.95rem; font-weight: 500; color: var(--shop-plum-deep); margin-bottom: 0.2rem; }
.cart-item-price { font-size: 0.85rem; opacity: 0.6; }
.cart-remove { background: none; border: none; font-size: 0.75rem; color: #c0392b; cursor: pointer; text-decoration: underline; }

/* Summary */
.cart-summary { background: white; border-radius: 16px; padding: 1.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.summary-row { display: flex; justify-content: space-between; font-size: 0.95rem; color: var(--shop-espresso); padding: 0.5rem 0; }
.summary-row.summary-shipping { opacity: 0.5; font-size: 0.85rem; border-bottom: 1px solid var(--shop-cream-dark); }
.summary-row.summary-total { font-weight: 500; font-size: 1.1rem; color: var(--shop-plum); padding-top: 0.75rem; }

/* ── SUCCESS ── */
.success-page { padding: 5rem 3rem; background: var(--shop-cream); min-height: 60vh; display: flex; align-items: center; }
.success-inner { max-width: 500px; margin: 0 auto; text-align: center; }
.success-icon { margin-bottom: 1.5rem; }
.success-title { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 400; color: var(--shop-plum-deep); margin-bottom: 0.75rem; }
.success-body { font-size: 0.95rem; color: var(--shop-espresso); opacity: 0.65; line-height: 1.7; margin-bottom: 0.5rem; }
.success-order-id { font-size: 0.75rem; color: var(--shop-rose-gold); letter-spacing: 0.1em; margin-bottom: 2rem; }
.success-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ── 404 ── */
.not-found-page { padding: 5rem 3rem; background: var(--shop-cream); min-height: 60vh; display: flex; align-items: center; }
.not-found-inner { max-width: 400px; margin: 0 auto; text-align: center; }
.not-found-code { font-family: 'Cormorant Garamond', serif; font-size: 5rem; font-weight: 300; color: var(--shop-rose-gold); opacity: 0.4; display: block; margin-bottom: 0.5rem; }
.not-found-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--shop-plum-deep); margin-bottom: 0.75rem; }
.not-found-body { font-size: 0.9rem; opacity: 0.6; margin-bottom: 2rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .shop-products-inner { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 600px) {
  .shop-hero { padding: 4rem 1.5rem 3rem; }
  .shop-products { padding: 3rem 1.5rem; }
  .product-page { padding: 3rem 1.5rem; }
  .cart-page { padding: 3rem 1.5rem; }
  .success-page { padding: 3rem 1.5rem; }
  .not-found-page { padding: 3rem 1.5rem; }
  .success-actions { flex-direction: column; align-items: center; }
}