/* ============================================
   SMITTEN KITTEN VINTAGE & CURIOSITIES
   Gothcore / Dark Academia Theme
   ============================================ */

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

/* ===== VARIABLES ===== */
:root {
  --bg:           #dcc8b0;
  --bg-warm:      #e8d9c5;
  --bg-card:      #c9baa8;
  --bg-card-hover:#bfaea0;
  --bg-elevated:  #d6c8b8;
  --burgundy:     #7a2332;
  --burgundy-lt:  #9a3349;
  --burgundy-dk:  #5a1522;
  --gold:         #8b6f1f;
  --gold-muted:   #6b5918;
  --gold-bright:  #a68a2a;
  --cream:        #4a3f2f;
  --cream-soft:   #5a5042;
  --text:         #3a3530;
  --text-muted:   #6a6055;
  --text-dim:     #8a7a70;
  --border:       #c9b8a8;
  --border-lt:    #b9a898;
  --border-gold:  rgba(139,111,31,0.15);
  --shadow:       0 4px 24px rgba(0,0,0,0.1);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.15);
  --radius:       4px;
  --radius-lg:    8px;
  --max-w:        1200px;
  --nav-h:        72px;
  --font-head:    'Cinzel', serif;
  --font-body:    'Crimson Pro', Georgia, serif;
  --transition:   0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-bright); }

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--cream);
  line-height: 1.25;
  letter-spacing: 0.04em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

/* ===== ORNAMENTAL DIVIDER ===== */
.ornament {
  text-align: center;
  margin: 2rem 0;
  color: var(--gold-muted);
  font-size: 1.5rem;
  letter-spacing: 0.5em;
  opacity: 0.5;
}

.ornament::before { content: '\2022 \2014\2014 \2726 \2014\2014 \2022'; }

.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
  margin: 3rem 0;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(220,200,176,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-brand img {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.nav-brand span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.cart-icon {
  position: relative;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}

.cart-icon:hover { color: var(--gold); }

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--burgundy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Footer logo */
.footer-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.7;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 20% 50%, rgba(122,35,50,0.08), transparent),
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(201,162,39,0.05), transparent);
  pointer-events: none;
}

.hero-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 0.4rem 1.5rem;
  display: inline-block;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  max-width: 800px;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

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

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  font-style: italic;
}

.hero-tagline {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 3rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--burgundy);
  color: #f5ebe0;
  border: 1px solid var(--burgundy-lt);
}

.btn-primary:hover {
  background: var(--burgundy-lt);
  color: #fff;
  box-shadow: 0 4px 20px rgba(122,35,50,0.3);
}

.btn-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-muted);
}

.btn-gold:hover {
  background: rgba(201,162,39,0.1);
  border-color: var(--gold);
  color: var(--gold-bright);
}

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

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--cream);
}

.btn-sm {
  font-size: 0.7rem;
  padding: 0.5rem 1.5rem;
}

.btn-lg {
  font-size: 0.85rem;
  padding: 1rem 3rem;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== SECTION ===== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 { margin-bottom: 0.75rem; }

.section-header p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  font-style: italic;
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.product-card:hover {
  border-color: var(--border-lt);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.product-card.sold { opacity: 0.6; }

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

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

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

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 3rem;
}

.badge-sold {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--burgundy-dk);
  color: #f5ebe0;
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}

.badge-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(201,162,39,0.9);
  color: var(--bg);
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
}

.product-card-body {
  padding: 1.25rem;
}

.product-card-category {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 0.4rem;
}

.product-card-name {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product-card-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
}

.product-card-price.sold-price {
  text-decoration: line-through;
  color: var(--text-dim);
}

.product-card-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.product-gallery-main {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}

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

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

.product-gallery-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition);
}

.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active { border-color: var(--gold); }

.product-info h1 {
  margin-bottom: 0.5rem;
}

.product-info .category-breadcrumb {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 1.5rem;
}

.product-price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-family: var(--font-head);
}

.product-meta-table {
  width: 100%;
  margin-bottom: 2rem;
}

.product-meta-table tr {
  border-bottom: 1px solid var(--border);
}

.product-meta-table td {
  padding: 0.75rem 0;
}

.product-meta-table td:first-child {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  width: 120px;
}

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

/* ===== CATEGORIES ===== */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.category-pill {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  text-decoration: none;
}

.category-pill:hover,
.category-pill.active {
  border-color: var(--gold-muted);
  color: var(--gold);
  background: rgba(201,162,39,0.05);
}

/* ===== CART ===== */
.cart-page { padding: calc(var(--nav-h) + 3rem) 0 5rem; }

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-table td {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.cart-item-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.cart-item-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--cream);
}

.cart-item-category {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.cart-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.cart-remove:hover { color: var(--burgundy-lt); }

.cart-summary {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

.cart-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  min-width: 320px;
  border-radius: var(--radius-lg);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 1rem;
}

.cart-summary-total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--gold);
}

/* ===== CHECKOUT FORM ===== */
.checkout-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-muted);
}

.form-group textarea { min-height: 100px; resize: vertical; }

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

/* ===== ABOUT ===== */
.about-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  text-align: center;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.9;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-content strong { color: var(--cream); }

.about-quote {
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-muted);
  text-align: center;
  padding: 2rem;
  border-left: 3px solid var(--gold-muted);
  margin: 2rem 0;
}

/* ===== CATEGORY CARDS ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.category-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition);
}

.category-card:hover {
  border-color: var(--gold-muted);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.category-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--cream);
}

.category-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--cream);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-dim);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state h3 {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.search-bar input {
  flex: 1;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.search-bar input:focus { outline: none; border-color: var(--gold-muted); }

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

.sort-select {
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}

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

/* ===== CHECKOUT SUCCESS ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

/* ===== ADMIN ===== */
.admin-page {
  padding: calc(var(--nav-h) + 2rem) 0 3rem;
}

.admin-login {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  padding: calc(var(--nav-h) + 5rem) 2rem;
}

.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.admin-tab {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.stat-card .stat-value {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--gold);
  display: block;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.admin-table tr:hover { background: var(--bg-card); }

.admin-table img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius);
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-actions button {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.admin-actions button:hover {
  border-color: var(--text-muted);
  color: var(--cream);
}

.admin-actions .btn-danger:hover {
  border-color: var(--burgundy);
  color: var(--burgundy-lt);
}

/* Image upload in admin */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition);
  margin-bottom: 1rem;
}

.image-upload-area:hover { border-color: var(--gold-muted); }

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.image-preview {
  position: relative;
  width: 100px;
  height: 100px;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.image-preview .remove-img {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--burgundy);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 { margin-bottom: 1.5rem; font-size: 1.4rem; }

.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  margin-top: -0.5rem;
}

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

/* Notification */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--gold-muted);
  color: var(--cream);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  z-index: 3000;
  animation: slideIn 0.3s ease;
  box-shadow: var(--shadow);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== LOADING ===== */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-dim);
}

.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  nav { padding: 0 1.25rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1rem;
  }
  .nav-toggle { display: block; }

  .hero { padding: calc(var(--nav-h) + 2rem) 1.25rem 3rem; min-height: auto; }
  .hero h1 { font-size: 2.2rem; }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-gallery { position: static; }

  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: none; }

  .cart-summary { justify-content: stretch; }
  .cart-summary-box { min-width: auto; width: 100%; }

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

  .category-pills { gap: 0.4rem; }

  .search-bar { flex-direction: column; }

  .admin-stats { grid-template-columns: 1fr 1fr; }

  footer { padding: 2rem 1.25rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}
