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

:root {
  --bg: #FDF6EC;
  --bg-alt: #F5EAD8;
  --text: #2C2C2C;
  --text-light: #6B6B6B;
  --terra: #C46D3B;
  --terra-dark: #A85A2C;
  --gold: #D4A85C;
  --gold-light: #E8C98A;
  --white: #FFFFFF;
  --border: #E8D9C4;
  --shadow: 0 2px 12px rgba(44,44,44,0.08);
  --shadow-lg: 0 8px 32px rgba(44,44,44,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

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

/* ─── HEADER ─────────────────────────────────────────── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1rem;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terra);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo span { color: var(--gold); }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}
.nav a:hover { color: var(--terra); }
.nav a.active { color: var(--terra); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-actions a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text);
  transition: color var(--transition);
}
.header-actions a:hover { color: var(--terra); }

.cart-btn {
  background: var(--terra);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition);
}
.cart-btn:hover { background: var(--terra-dark) !important; color: var(--white) !important; }

.cart-badge {
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile nav */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 60%);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(212,168,92,0.12) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--terra-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero h1 span { color: var(--terra); }
.hero p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}
.btn-primary:hover { background: var(--terra-dark); border-color: var(--terra-dark); }
.btn-outline {
  background: transparent;
  color: var(--terra);
  border-color: var(--terra);
}
.btn-outline:hover { background: var(--terra); color: var(--white); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover { background: #BF8E3A; border-color: #BF8E3A; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── SECTION TITLE ──────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.5rem; }
.section-title p { color: var(--text-light); max-width: 500px; margin: 0 auto; }
.section-title .divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--terra), var(--gold));
  margin: 1rem auto 0;
  border-radius: 2px;
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--terra);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-badge.discount { background: var(--gold); }
.product-card-body { padding: 1rem; }
.product-card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.product-card-body .category {
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.price-current { font-weight: 700; font-size: 1.1rem; color: var(--terra); }
.price-old { color: var(--text-light); text-decoration: line-through; font-size: 0.9rem; }

/* ─── BADGES ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}
.badge-handmade { background: #FFF3E0; color: #E65100; }
.badge-shipping { background: #E8F5E9; color: #2E7D32; }
.badge-out { background: #FFEBEE; color: #C62828; }

/* ─── PRODUCT DETAIL ─────────────────────────────────── */
.product-detail { padding: 3rem 0; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.product-gallery { position: sticky; top: 5rem; }
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-alt);
  margin-bottom: 0.75rem;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.5rem; }
.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--terra); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.product-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.product-price-large {
  font-size: 2rem;
  font-weight: 700;
  color: var(--terra);
  margin: 1rem 0;
}
.product-price-large .old {
  font-size: 1.2rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 0.5rem;
}
.product-description { color: var(--text-light); line-height: 1.7; margin: 1.5rem 0; }
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}
.qty-btn:hover { border-color: var(--terra); color: var(--terra); }
.qty-input {
  width: 60px;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  font-weight: 600;
  font-size: 1rem;
}

/* ─── CART ───────────────────────────────────────────── */
.cart-page { padding: 3rem 0; }
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow);
}
.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 0.95rem; font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 0.25rem; }
.cart-item-price { color: var(--terra); font-weight: 700; }
.cart-item-actions { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.cart-item-qty { display: flex; align-items: center; gap: 0.4rem; }
.cart-item-qty button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.cart-item-qty button:hover { border-color: var(--terra); color: var(--terra); }
.cart-item-qty span { font-weight: 600; min-width: 24px; text-align: center; }
.btn-remove { color: var(--text-light); font-size: 0.8rem; transition: color var(--transition); }
.btn-remove:hover { color: #C62828; }

.cart-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 5rem;
}
.cart-summary h3 { font-size: 1.2rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.95rem; }
.summary-row.total { font-weight: 700; font-size: 1.1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); margin-top: 0.5rem; }
.free-shipping-bar { margin: 1rem 0; }
.free-shipping-bar p { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.4rem; }
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(to right, var(--terra), var(--gold)); border-radius: 3px; transition: width 0.4s ease; }

/* ─── CHECKOUT ───────────────────────────────────────── */
.checkout-page { padding: 3rem 0; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.form-card h3 { font-size: 1.1rem; margin-bottom: 1.25rem; color: var(--text); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--bg);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terra);
  background: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error { color: #C62828; font-size: 0.82rem; margin-top: 0.25rem; }
.form-hint { color: var(--text-light); font-size: 0.82rem; margin-top: 0.25rem; }

.payment-options { display: flex; flex-direction: column; gap: 0.75rem; }
.payment-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.payment-option:hover { border-color: var(--terra); }
.payment-option.selected { border-color: var(--terra); background: #FFF8F4; }
.payment-option input[type="radio"] { accent-color: var(--terra); }
.payment-option-info h4 { font-size: 0.95rem; font-weight: 600; }
.payment-option-info p { font-size: 0.82rem; color: var(--text-light); }

.bank-info-box {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1rem;
}
.bank-info-box h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--terra); }
.bank-info-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.875rem; }
.bank-info-row span:first-child { color: var(--text-light); }
.bank-info-row span:last-child { font-weight: 600; }

/* ─── ORDER SUCCESS ──────────────────────────────────── */
.success-page { padding: 5rem 0; text-align: center; }
.success-icon {
  width: 80px; height: 80px;
  background: #E8F5E9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.success-icon svg { color: #2E7D32; }
.success-page h1 { font-size: 2rem; margin-bottom: 0.75rem; }
.success-page p { color: var(--text-light); max-width: 500px; margin: 0 auto 2rem; }
.order-number-box {
  display: inline-block;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--terra);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

/* ─── AUTH FORMS ─────────────────────────────────────── */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
}
.auth-card h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.auth-card .subtitle { color: var(--text-light); margin-bottom: 2rem; font-size: 0.95rem; }
.divider-or {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-size: 0.85rem;
}
.divider-or::before, .divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-weight: 500;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
.btn-google:hover { border-color: var(--terra); background: var(--bg); }
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.alert-error { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }

/* ─── MY ORDERS ──────────────────────────────────────── */
.orders-page { padding: 3rem 0; }
.orders-page h1 { margin-bottom: 2rem; }
.order-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.order-number { font-weight: 700; color: var(--terra); font-size: 1rem; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}
.status-recibido { background: #E3F2FD; color: #1565C0; }
.status-preparando { background: #FFF8E1; color: #F57F17; }
.status-enviado { background: #E8EAF6; color: #283593; }
.status-entregado { background: #E8F5E9; color: #2E7D32; }
.status-cancelado { background: #FFEBEE; color: #C62828; }
.status-pendiente { background: #FFF3E0; color: #E65100; }
.status-pagado { background: #E8F5E9; color: #2E7D32; }
.status-fallido { background: #FFEBEE; color: #C62828; }

/* ─── ADMIN ──────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--text);
  color: var(--white);
  padding: 1.5rem 0;
  flex-shrink: 0;
  min-height: 100vh;
  position: sticky;
  top: 0;
}
.admin-sidebar .logo {
  color: var(--gold);
  padding: 0 1.5rem;
  margin-bottom: 2rem;
  display: block;
  font-size: 1.2rem;
}
.admin-nav { list-style: none; }
.admin-nav li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}
.admin-nav li a:hover, .admin-nav li a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.admin-main { flex: 1; padding: 2rem; min-width: 0; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.admin-header h1 { font-size: 1.8rem; }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.stat-card .stat-label { font-size: 0.82rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; font-family: 'Playfair Display', serif; color: var(--terra); }

.admin-table {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
}
.admin-table table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: var(--bg-alt);
  text-align: left;
  padding: 0.875rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}
.admin-table td {
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:hover td { background: #FAFAFA; }
.product-thumb {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-alt);
}

.admin-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 720px;
}
.admin-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
}
.admin-filters select, .admin-filters input {
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--white);
}

/* ─── FILTER SIDEBAR ─────────────────────────────────── */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.filter-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 5rem;
}
.filter-panel h3 { font-size: 1rem; margin-bottom: 1rem; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group label { display: block; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); margin-bottom: 0.5rem; }
.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--bg);
}
.filter-chips { display: flex; flex-direction: column; gap: 0.4rem; }
.filter-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  cursor: pointer;
  font-size: 0.875rem;
}
.filter-chip input { accent-color: var(--terra); }

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo { color: var(--gold-light); font-size: 1.3rem; display: block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
.footer h4 { color: var(--white); font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer ul a { font-size: 0.875rem; transition: color var(--transition); }
.footer ul a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--terra); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ─── UTILITIES ──────────────────────────────────────── */
.text-center { text-align: center; }
.text-terra { color: var(--terra); }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}
.empty-state p { font-size: 1.1rem; margin-bottom: 1.5rem; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 200px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }
  .nav.open { display: flex; }
  .nav li { width: 100%; }
  .nav a { display: block; padding: 0.6rem 0; }
  .menu-toggle { display: flex; }

  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }

  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }

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

  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }

  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }

  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; min-height: auto; position: static; }
  .admin-nav { display: flex; flex-wrap: wrap; padding: 0 1rem; }
  .admin-nav li a { padding: 0.5rem 0.75rem; }

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

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1rem; }
  .auth-card { padding: 1.75rem; }
}
