/* EmberGoods Store — shared styles for shop, product, cart pages */
/* Design tokens match landing page exactly */

:root {
  --ember: #E8563A;
  --ember-dark: #C4402A;
  --warm-cream: #FFF8F2;
  --rich-black: #1A1210;
  --warm-gray: #3D3432;
  --muted: #9B8A84;
  --blush: #F5E6DD;
  --glow: linear-gradient(135deg, #E8563A 0%, #D4A574 50%, #E8563A 100%);
  --border: rgba(232, 86, 58, 0.12);
  --shadow: 0 8px 32px rgba(26, 18, 16, 0.08);
  --shadow-hover: 0 20px 48px rgba(232, 86, 58, 0.12);
  --radius: 16px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--rich-black);
  background: var(--warm-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 200;
  background: rgba(255, 248, 242, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--rich-black);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo span { color: var(--ember); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--warm-gray);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--ember); }

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rich-black);
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s;
}
.nav-cart:hover { border-color: var(--ember); color: var(--ember); }

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--ember);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: none;
}
.cart-count.visible { display: inline-flex; }

/* ── PAGE WRAPPER ── */
.page { padding-top: 5rem; min-height: 100vh; }

/* ── SECTION HEADERS ── */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  color: var(--rich-black);
}

/* ── SHOP HERO ── */
.shop-hero {
  padding: 4rem 3rem 3rem;
  border-bottom: 1px solid var(--border);
}

.shop-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.shop-hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
}
.shop-hero h1 em {
  font-style: italic;
  background: var(--glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.shop-hero p {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 0.75rem;
  max-width: 420px;
  line-height: 1.6;
}

/* ── CATEGORY FILTER ── */
.category-bar {
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
  background: white;
  position: sticky;
  top: 64px;
  z-index: 100;
}
.category-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.cat-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--warm-gray);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cat-btn:hover { border-color: var(--ember); color: var(--ember); }
.cat-btn.active {
  background: var(--ember);
  border-color: var(--ember);
  color: white;
}

/* ── PRODUCT GRID ── */
.shop-body {
  padding: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.product-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(232, 86, 58, 0.25);
}

.product-image {
  height: 200px;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(232, 86, 58, 0.06) 0%, transparent 60%);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.2rem 0.6rem;
  background: var(--ember);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 100px;
  z-index: 1;
}

.product-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.product-category {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.product-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--rich-black);
}

.product-tagline {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--rich-black);
}

.price-compare {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: line-through;
}

/* ── PRODUCT DETAIL ── */
.product-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.product-detail-visual {
  background: var(--blush);
  border-radius: 24px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  position: sticky;
  top: 7rem;
  overflow: hidden;
}
.product-detail-visual::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 86, 58, 0.1) 0%, transparent 70%);
}

.product-detail-info { padding-top: 0.5rem; }

.product-detail-category {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.75rem;
}

.product-detail-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.product-detail-tagline {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.product-detail-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-price {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--rich-black);
}

.detail-compare {
  font-size: 1.1rem;
  color: var(--muted);
  text-decoration: line-through;
}

.detail-savings {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ember);
  background: rgba(232, 86, 58, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.product-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--warm-gray);
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

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

.qty-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--warm-gray);
  letter-spacing: 0.5px;
}

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

.qty-btn {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.qty-btn:hover { color: var(--ember); }

#qty-display {
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  pointer-events: none;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--ember);
  color: white;
  border: none;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  text-align: center;
}
.btn-primary:hover {
  background: var(--ember-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 86, 58, 0.3);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--rich-black);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--ember); color: var(--ember); }

.trust-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.trust-pill {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--blush);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

/* ── CART PAGE ── */
.cart-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.cart-page h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

.cart-empty {
  text-align: center;
  padding: 5rem 2rem;
}
.cart-empty .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.cart-empty h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.cart-empty p { color: var(--muted); margin-bottom: 2rem; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.cart-items { display: flex; flex-direction: column; gap: 1px; }

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}

.cart-item-thumb {
  width: 80px;
  height: 80px;
  background: var(--blush);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.cart-item-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.cart-item-cat {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.qty-small-btn {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-gray);
  transition: all 0.2s;
}
.qty-small-btn:hover { border-color: var(--ember); color: var(--ember); }

.cart-item-right { text-align: right; }
.cart-item-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.cart-remove {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  margin-top: 0.5rem;
  display: block;
  transition: color 0.2s;
}
.cart-remove:hover { color: var(--ember); }

/* Cart summary */
.cart-summary {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.75rem;
  position: sticky;
  top: 7rem;
}

.cart-summary h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin-bottom: 0.75rem;
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.discreet-note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

/* ── ORDER SUCCESS ── */
.success-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 6rem 3rem;
  text-align: center;
}
.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(232, 86, 58, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 2rem;
}
.success-page h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.success-page p {
  color: var(--warm-gray);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.success-details {
  background: var(--blush);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 2.5rem;
}
.success-details h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 1rem;
}
.success-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--warm-gray);
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--rich-black);
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.toast.show { transform: translateY(0); }
.toast-icon { font-size: 1rem; }

/* ── LOADING ── */
.loading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.skeleton {
  background: linear-gradient(90deg, var(--blush) 25%, rgba(245, 230, 221, 0.5) 50%, var(--blush) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
.skeleton-card { height: 340px; }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── FOOTER ── */
.store-footer {
  padding: 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  margin-top: 4rem;
}
.store-footer .logo-small {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--rich-black);
  margin-bottom: 0.5rem;
}
.store-footer p {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-right { gap: 1rem; }
  .nav-link { display: none; }

  .shop-hero { padding: 2rem 1.25rem 2rem; }
  .shop-body { padding: 1.5rem 1.25rem; }
  .category-bar { padding: 1rem 1.25rem; top: 56px; }

  .product-detail {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem;
    gap: 2rem;
  }
  .product-detail-visual { height: 280px; position: relative; top: 0; font-size: 5rem; }

  .cart-page { padding: 2rem 1.25rem; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: relative; top: 0; }

  .cart-item { grid-template-columns: 60px 1fr auto; gap: 0.75rem; padding: 1rem; }
  .cart-item-thumb { width: 60px; height: 60px; font-size: 1.5rem; }

  .success-page { padding: 4rem 1.25rem; }
}
