/* ============================================================
   ANTIK SHOP — Premium Dark-Gold Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --bg-deep: #09080600;
  --bg-dark: #0d0b07;
  --bg-card: #13100a;
  --bg-card-hover: #1a140d;
  --bg-surface: #1e1710;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim: #7a6330;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --cream: #f0e6cc;
  --cream-dim: #a89070;
  --text: #e8dbc8;
  --text-muted: #7a6a52;
  --border: rgba(201, 168, 76, 0.18);
  --border-bright: rgba(201, 168, 76, 0.45);
  --red: #c94c4c;
  --shadow-gold: 0 4px 32px rgba(201, 168, 76, 0.12);
  --shadow-deep: 0 8px 48px rgba(0, 0, 0, 0.6);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

/* ── Utility ───────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold {
  color: var(--gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ── Scroll Animations ─────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 11, 7, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background var(--transition);
}

.navbar-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cream-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--cream);
  border: none;
  margin-left: 8px;
  transition: color var(--transition);
}

.menu-btn:hover {
  color: var(--gold);
}

@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(13, 11, 7, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    box-shadow: var(--shadow-deep);
  }
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--cream);
  background: var(--bg-surface);
  transition: all var(--transition);
  margin-left: 8px;
  flex-shrink: 0;
}

.cart-btn:hover {
  background: var(--gold-glow);
  border-color: var(--border-bright);
  color: var(--gold-light);
}

.cart-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-dark);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-badge.visible {
  transform: scale(1);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 68px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.45);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(9, 7, 4, 0.82) 0%,
      rgba(9, 7, 4, 0.4) 50%,
      rgba(9, 7, 4, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 0 48px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-label::before,
.hero-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  color: var(--gold-light);
  font-style: italic;
}

.hero p {
  font-size: 1.1rem;
  color: var(--cream-dim);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 500px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--cream);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1px solid var(--border-bright);
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
}

.hero-stats {

  position: absolute;
  bottom: 48px;
  right: 48px;
  display: flex;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-lbl {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 4px;
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section {
  padding: 80px 0;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--cream-dim);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   CATEGORY FILTERS
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--gold-light);
  border-color: var(--border-bright);
  background: var(--gold-glow);
}

.filter-btn.active {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
  font-weight: 600;
}

/* ============================================================
   KATALOG CONTROLS (SEARCH & SORT)
   ============================================================ */
.katalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.search-wrap {
  position: relative;
  max-width: 340px;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--cream);
  font-family: inherit;
  font-size: 0.85rem;
  transition: all var(--transition);
  outline: none;
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

.sort-wrap {
  position: relative;
}

.sort-select {
  padding: 12px 36px 12px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--cream);
  font-family: inherit;
  font-size: 0.85rem;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: all var(--transition);
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23c9a84c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px top 50%;
  background-size: 10px auto;
}

.sort-select:focus {
  border-color: var(--gold);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-slider {
  justify-content: ;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  min-height: 250px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.testimonial-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  z-index: 2;
}

.testimonial-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: 24px;
}

.testimonial-author {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .testimonial-text {
    font-size: 1.2rem;
  }
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  animation: fadeInUp 0.4s ease both;
}

body.light-theme {
  --bg-body: #f5f2eb;
  --bg-surface: #eae5d9;
  --bg-card: #fdfaf3;
  --bg-card-hover: #f1ebd8;
  --text-main: #3d352c;
  --cream: #1a1612;
  --cream-dim: #4a4238;
  --border: #d4cfc1;
  --border-bright: #c2bcad;
  --gold: #b08d3a;
  --gold-light: #d4ad52;
  --gold-glow: rgba(176, 141, 58, 0.4);
  --shadow-deep: rgba(0, 0, 0, 0.08) 0px 8px 24px;
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-gold), var(--shadow-deep);
  /* transform handled by JS tilt */
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-surface);
}

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

.product-card:hover .product-img-wrap img {
  transform: scale(1.07);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.badge-new {
  background: var(--gold);
  color: var(--bg-dark);
}

.badge-rare {
  background: #8b1a1a;
  color: #ffd4d4;
}

.badge-sold {
  background: #2a2a2a;
  color: #888;
}

.product-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(13, 11, 7, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-dim);
  font-size: 1rem;
  transition: all var(--transition);
  opacity: 0;
}

.product-card:hover .product-wishlist {
  opacity: 1;
}

.product-wishlist:hover {
  color: var(--red);
  border-color: var(--red);
}

.product-wishlist.active {
  color: var(--red);
  opacity: 1;
}

.product-body {
  padding: 20px;
}

.product-category {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 500;
  margin-bottom: 6px;
}

.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.stars {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.rating-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-before {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1;
}

.price-now {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}

.price-currency {
  font-size: 0.9em;
}

.add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-dark);
  font-size: 1.2rem;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.3);
  flex-shrink: 0;
}

.add-to-cart:hover {
  background: var(--gold-light);
  transform: scale(1.12);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.5);
}

.add-to-cart:active {
  transform: scale(0.95);
}

.add-to-cart.sold {
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: default;
  box-shadow: none;
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  z-index: 2001;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -8px 0 48px rgba(0, 0, 0, 0.5);
}

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

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

.cart-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-count-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--gold);
  color: var(--bg-dark);
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-dim);
  font-size: 1.3rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.cart-close:hover {
  color: var(--red);
  border-color: var(--red);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 40px;
}

.cart-empty-icon {
  font-size: 3rem;
  filter: grayscale(1);
  opacity: 0.4;
}

.cart-item {
  display: flex;
  gap: 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  animation: fadeInRight 0.25s ease;
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

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

.cart-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--cream);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.qty-btn:hover {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

.qty-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  min-width: 18px;
  text-align: center;
}

.cart-item-remove {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition);
  padding: 4px;
}

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

.cart-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.cart-subtotal-label {
  color: var(--cream-dim);
  font-size: 0.85rem;
}

.cart-subtotal-sum {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  font-weight: 700;
}

.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.btn-checkout:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.45);
}

.btn-continue {
  text-align: center;
  font-size: 0.82rem;
  color: var(--cream-dim);
  transition: color var(--transition);
  padding: 4px;
}

.btn-continue:hover {
  color: var(--gold);
}

/* ============================================================
   CHECKOUT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
  padding: 24px;
}

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: var(--shadow-gold), var(--shadow-deep);
}

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

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

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--cream);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-dim);
  font-size: 1.2rem;
  transition: all var(--transition);
}

.modal-close:hover {
  color: var(--red);
  border-color: var(--red);
}

.modal-body {
  padding: 28px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-weight: 500;
}

.form-input {
  padding: 12px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

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

.form-divider {
  margin: 22px 0 18px;
  border: none;
  border-top: 1px solid var(--border);
}

.modal-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--border);
}

.order-summary-mini {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.order-summary-mini span {
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.order-summary-mini strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
}

.success-screen {
  text-align: center;
  padding: 48px 28px;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.success-screen h3 {
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 10px;
}

.success-screen p {
  color: var(--cream-dim);
  font-size: 0.9rem;
}

.success-screen .order-number {
  display: inline-block;
  margin: 20px 0;
  padding: 8px 20px;
  border: 1px solid var(--gold);
  border-radius: 100px;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ============================================================
   PRODUCT DETAIL MODAL
   ============================================================ */
.product-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: var(--shadow-gold), var(--shadow-deep);
  position: relative;
}

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

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-modal-image {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
  position: relative;
}

.product-modal-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-deep);
  transition: transform 0.15s ease-out;
  pointer-events: none;
}

.product-modal-image:hover img {
  transform: scale(2);
}

.product-modal-image:hover {
  cursor: zoom-in;
}

.product-modal-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
}

.product-modal-info .product-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.2;
}

.product-modal-info .product-desc {
  color: var(--cream-dim);
  line-height: 1.8;
  margin-top: 16px;
  margin-bottom: 32px;
  flex: 1;
}

.product-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

@media (max-width: 768px) {
  .product-modal-grid {
    grid-template-columns: 1fr;
  }

  .product-modal-image {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px;
  }

  .product-modal-info {
    padding: 24px;
  }
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  padding: 40px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.feature-item:hover {
  background: var(--gold-glow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
}

.newsletter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-gold);
}

.newsletter-box h2 {
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 12px;
}

.newsletter-box p {
  color: var(--cream-dim);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 13px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-input:focus {
  border-color: var(--gold);
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

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

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--cream-dim);
  margin-bottom: 16px;
  font-style: italic;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  font-size: 0.88rem;
  color: var(--cream);
  animation: slideInToast 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) both,
    fadeOut 0.3s ease 2.5s both;
  max-width: 320px;
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateX(32px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(32px);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   3D EFFECTS
   ============================================================ */

/* ── Product Card Tilt ─────────────────────────────────────── */
.products-grid {
  perspective: 1400px;
}

.product-card {
  transform-style: preserve-3d;
  will-change: transform;
  /* override transition — JS controls transform */
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Gloss shimmer overlay */
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg,
      transparent 30%,
      rgba(255, 255, 255, 0.055) 50%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.product-card:hover::before {
  opacity: 1;
}

/* ── Feature Items 3D Lift ─────────────────────────────────── */
.feature-item {
  perspective: 700px;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), background var(--transition);
}

.feature-item:hover {
  transform: translateY(-12px) rotateX(7deg);
  background: var(--gold-glow);
}

.feature-icon {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: block;
}

.feature-item:hover .feature-icon {
  transform: translateZ(24px) scale(1.25) rotate(-5deg);
}

/* ── Stat Numbers 3D Glow ──────────────────────────────────── */
.hero-stats .stat {
  cursor: default;
}

.hero-stats .stat:hover .stat-num {
  transform: scale(1.12);
  text-shadow: 0 0 24px rgba(201, 168, 76, 0.7), 0 4px 16px rgba(201, 168, 76, 0.4);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

/* ── Hero background transition for parallax ───────────────── */
.hero-bg {
  transition: transform 0.12s ease-out;
}

/* ── Newsletter box 3D hover ───────────────────────────────── */
.newsletter-box {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s ease;
}

.newsletter-box:hover {
  transform: perspective(900px) rotateX(2.5deg) translateY(-6px);
  box-shadow: 0 28px 56px rgba(201, 168, 76, 0.2), var(--shadow-deep);
}

/* ── Cart drawer item entrance ─────────────────────────────── */
.cart-item {
  transform-origin: right center;
}

/* ── Section stat boxes 3D ─────────────────────────────────── */
[style*='background:var(--bg-surface)'] {
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s ease;
}

[style*='background:var(--bg-surface)']:hover {
  transform: perspective(600px) rotateY(-4deg) translateZ(8px);
  box-shadow: 6px 6px 24px rgba(0, 0, 0, 0.4), var(--shadow-gold);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-content {
    padding: 0 28px;
  }

  .hero-stats {
    display: none;
  }

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

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .newsletter-form {
    flex-direction: column;
  }

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

  .cart-drawer {
    width: 100vw;
  }

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

  .newsletter-box {
    padding: 36px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}