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

:root {
  --ink: #1a1410;
  --parchment: #f5f0e8;
  --cream: #faf7f2;
  --earth: #8b5e3c;
  --earth-light: #c4956a;
  --terracotta: #d4622a;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --pine: #2d5a3d;
  --pine-light: #4a8a5d;
  --mountain: #3d4f6b;
  --sky: #6b93c4;
  --border: rgba(139, 94, 60, 0.25);
  --shadow-sm: 0 2px 8px rgba(26, 20, 16, 0.08);
  --shadow-md: 0 8px 32px rgba(26, 20, 16, 0.14);
  --shadow-lg: 0 20px 60px rgba(26, 20, 16, 0.2);
  --radius: 4px;
  --radius-lg: 12px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Pro', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--earth-light); border-radius: 3px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

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

/* ── NAVIGATION ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-logo img { height: 34px; width: auto; object-fit: contain; }
.nav-logo span { color: var(--terracotta); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.nav-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--parchment);
  font-family: 'Crimson Pro', serif;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav-search input:focus {
  outline: none;
  border-color: var(--earth);
  box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.12);
}
.nav-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--earth-light);
  pointer-events: none;
  font-size: 15px;
}
.nav-links { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.nav-btn:hover { background: var(--parchment); }
.nav-btn.primary {
  background: var(--ink);
  color: var(--cream);
}
.nav-btn.primary:hover { background: var(--earth); }
.cart-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: var(--terracotta);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-family: 'Space Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-badge.show { transform: scale(1); }

/* ── HERO ── */
.hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 0;
  position: relative;
  z-index: 2;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 24px;
}
.hero-tag::before { content: ''; width: 32px; height: 1px; background: var(--earth); }
.hero-title { margin-bottom: 24px; }
.hero-title em {
  font-style: italic;
  color: var(--terracotta);
}
.hero-desc {
  font-size: 1.15rem;
  color: rgba(26, 20, 16, 0.65);
  max-width: 420px;
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 16px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 4px 16px rgba(26, 20, 16, 0.25);
}
.btn-primary:hover {
  background: var(--earth);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 94, 60, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--earth);
  background: var(--parchment);
  transform: translateY(-2px);
}
.btn-terracotta {
  background: var(--terracotta);
  color: white;
  box-shadow: 0 4px 16px rgba(212, 98, 42, 0.3);
}
.btn-terracotta:hover {
  background: #c05520;
  transform: translateY(-2px);
}
.btn-pine {
  background: var(--pine);
  color: white;
}
.btn-pine:hover { background: var(--pine-light); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 12px; }
.btn-lg { padding: 18px 36px; font-size: 14px; }

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg-shape {
  position: absolute;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at 40% 50%, rgba(196, 149, 106, 0.18) 0%, transparent 70%);
}
.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 40px;
  position: relative;
  z-index: 2;
}
.hero-card {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: float 6s ease-in-out infinite;
}
.hero-card:nth-child(1) { animation-delay: 0s; }
.hero-card:nth-child(2) { animation-delay: 1.5s; margin-top: 32px; }
.hero-card:nth-child(3) { animation-delay: 3s; margin-top: -24px; }
.hero-card:nth-child(4) { animation-delay: 4.5s; }
.hero-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-md); }
.hero-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--parchment), var(--earth-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.hero-card-body { padding: 12px; }
.hero-card-name { font-size: 12px; font-family: 'Space Mono', monospace; font-weight: 700; margin-bottom: 4px; }
.hero-card-price { font-size: 13px; color: var(--terracotta); font-weight: 600; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ── CATEGORIES BAR ── */
.categories-bar {
  background: var(--ink);
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.categories-bar::-webkit-scrollbar { display: none; }
.categories-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}
.cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  color: rgba(250, 247, 242, 0.6);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  border: none;
  background: transparent;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.cat-btn:hover, .cat-btn.active {
  color: var(--cream);
  border-bottom-color: var(--gold);
}
.cat-btn .cat-icon { font-size: 16px; }

/* ── PRODUCT GRID ── */
.products-section { padding: 60px 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--earth); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }
.product-img {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f0ebe0, #e8ddd0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-sale { background: var(--terracotta); color: white; }
.badge-new { background: var(--pine); color: white; }
.badge-hot { background: var(--gold); color: var(--ink); }
.product-wish {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(250, 247, 242, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--earth-light);
  transition: all var(--transition);
  opacity: 0;
}
.product-card:hover .product-wish { opacity: 1; }
.product-wish:hover, .product-wish.active { color: var(--terracotta); background: white; }
.product-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(250,247,242,1), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
  display: flex;
  gap: 8px;
}
.product-body { padding: 16px; }
.product-category {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--earth-light);
  margin-bottom: 6px;
}
.product-name { font-size: 1rem; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.stars { color: var(--gold); font-size: 12px; }
.rating-count { font-size: 12px; color: rgba(26,20,16,0.5); }
.product-price { display: flex; align-items: baseline; gap: 10px; }
.price-current { font-size: 1.2rem; font-weight: 700; color: var(--ink); font-family: 'Playfair Display', serif; }
.price-original { font-size: 0.9rem; color: rgba(26,20,16,0.4); text-decoration: line-through; }
.price-discount { font-size: 11px; background: var(--terracotta); color: white; padding: 2px 6px; border-radius: 3px; font-family: 'Space Mono', monospace; }

/* ── SIDEBAR FILTERS ── */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.filter-sidebar {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.filter-title {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.filter-group { margin-bottom: 24px; }
.filter-group-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
  color: rgba(26,20,16,0.75);
  transition: color var(--transition);
}
.filter-option:hover { color: var(--ink); }
.filter-checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.filter-checkbox.checked { background: var(--ink); border-color: var(--ink); }
.filter-checkbox.checked::after { content: '✓'; color: white; font-size: 10px; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  background: var(--cream);
}
.price-range input:focus { outline: none; border-color: var(--earth); }

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--cream);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.96);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-wide { max-width: 820px; }
.modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--parchment);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--earth);
  transition: all var(--transition);
}
.modal-close:hover { background: rgba(0,0,0,0.06); color: var(--ink); }
.modal-body { padding: 28px 32px; }
.modal-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--parchment);
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--earth);
  box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--parchment);
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b5e3c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-select:focus { outline: none; border-color: var(--earth); }
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--parchment);
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  color: var(--ink);
  resize: vertical;
  min-height: 100px;
}
.form-textarea:focus { outline: none; border-color: var(--earth); box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.12); }
.form-hint { font-size: 13px; color: rgba(26,20,16,0.5); margin-top: 6px; }
.form-error { font-size: 13px; color: var(--terracotta); margin-top: 6px; }
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: rgba(26,20,16,0.4);
  font-size: 13px;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── TABS ── */
.tabs { display: flex; border-bottom: 1.5px solid var(--border); margin-bottom: 28px; }
.tab-btn {
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(26,20,16,0.5);
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--ink); border-bottom-color: var(--terracotta); }

/* ── CART SIDEBAR ── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  background: var(--cream);
  z-index: 200;
  box-shadow: -20px 0 60px rgba(26,20,16,0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,20,16,0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-drawer-overlay.open { opacity: 1; pointer-events: all; }
.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: rgba(26,20,16,0.5); margin-bottom: 10px; }
.cart-item-controls { display: flex; align-items: center; gap: 12px; }
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--parchment); }
.qty-val { padding: 0 10px; font-family: 'Space Mono', monospace; font-size: 13px; }
.cart-item-price { font-weight: 700; font-family: 'Playfair Display', serif; color: var(--terracotta); }
.cart-remove { margin-left: auto; background: none; border: none; color: rgba(26,20,16,0.3); font-size: 16px; transition: color var(--transition); }
.cart-remove:hover { color: var(--terracotta); }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-coupon { display: flex; gap: 8px; margin-bottom: 16px; }
.cart-coupon input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  background: var(--parchment);
}
.cart-coupon input:focus { outline: none; border-color: var(--earth); }
.cart-totals { margin-bottom: 16px; }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(26,20,16,0.7);
}
.cart-total-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  border-top: 1.5px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
  font-family: 'Playfair Display', serif;
}

/* ── TOAST NOTIFICATIONS ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--ink);
  color: var(--cream);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  transform: translateX(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 260px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { border-left: 3px solid var(--pine-light); }
.toast.error { border-left: 3px solid var(--terracotta); }
.toast.info { border-left: 3px solid var(--sky); }

/* ── PROFILE / DASHBOARD ── */
.profile-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.profile-sidebar {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 90px;
}
.profile-avatar-section {
  padding: 32px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--ink), var(--mountain));
  color: var(--cream);
}
.avatar-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--earth);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 12px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
.profile-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; }
.profile-email { font-size: 12px; opacity: 0.7; margin-top: 4px; }
.profile-nav { padding: 12px 0; }
.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(26,20,16,0.65);
  font-size: 14px;
  transition: all var(--transition);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  border-left: 3px solid transparent;
}
.profile-nav-item:hover { background: rgba(139,94,60,0.06); color: var(--ink); }
.profile-nav-item.active { background: rgba(139,94,60,0.08); color: var(--ink); border-left-color: var(--terracotta); font-weight: 600; }
.profile-nav-item .nav-icon { width: 20px; text-align: center; }

/* ── ADMIN PANEL ── */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.07;
}
.stat-card.s1::before { background: var(--terracotta); }
.stat-card.s2::before { background: var(--pine); }
.stat-card.s3::before { background: var(--gold); }
.stat-card.s4::before { background: var(--sky); }
.stat-value { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: rgba(26,20,16,0.5); font-family: 'Space Mono', monospace; }
.stat-change { font-size: 12px; margin-top: 8px; font-weight: 600; }
.stat-change.up { color: var(--pine); }
.stat-change.down { color: var(--terracotta); }

/* ── ORDER HISTORY ── */
.order-card {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
}
.order-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(139,94,60,0.05);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.order-id { font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700; }
.order-date { font-size: 13px; color: rgba(26,20,16,0.5); }
.order-status {
  padding: 4px 12px;
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.status-delivered { background: rgba(45,90,61,0.12); color: var(--pine); }
.status-processing { background: rgba(201, 168, 76, 0.15); color: #8a6a10; }
.status-shipped { background: rgba(107, 147, 196, 0.15); color: var(--mountain); }
.status-cancelled { background: rgba(212, 98, 42, 0.12); color: var(--terracotta); }
.order-body { padding: 16px 20px; }
.order-items-preview { display: flex; gap: 8px; margin-bottom: 12px; }
.order-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.order-total-row { display: flex; justify-content: space-between; font-size: 14px; color: rgba(26,20,16,0.6); }
.order-total-row strong { color: var(--ink); font-family: 'Playfair Display', serif; font-size: 1.1rem; }

/* ── BANNER ── */
.promo-banner {
  background: linear-gradient(135deg, var(--ink) 0%, var(--mountain) 100%);
  color: var(--cream);
  padding: 48px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
}
.promo-banner::before {
  content: '𐒐';
  position: absolute;
  right: 180px;
  font-size: 12rem;
  opacity: 0.04;
  pointer-events: none;
  font-family: serif;
}
.promo-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.promo-title { font-size: 2rem; margin-bottom: 8px; }
.promo-subtitle { opacity: 0.7; font-size: 1rem; }

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.footer-logo img { width: 36px; height: 36px; border-radius: 50%; }
.footer-desc { font-size: 14px; opacity: 0.6; line-height: 1.7; max-width: 280px; }
.footer-title { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--earth-light); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; opacity: 0.7; transition: opacity var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(250,247,242,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.5;
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(250,247,242,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0.6;
  transition: all var(--transition);
}
.social-link:hover { opacity: 1; border-color: var(--gold); color: var(--gold); }

/* ── PAGE TRANSITIONS ── */
.page { display: none; animation: pageIn 0.4s ease; }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── LOADING SPINNER ── */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(139,94,60,0.2);
  border-top-color: var(--earth);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── ADMIN TABLE ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--earth);
  border-bottom: 1.5px solid var(--border);
  background: var(--parchment);
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(139,94,60,0.03); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 48px 0 0; }
  .hero-right { display: none; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-drawer { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .nav-search { display: none; }
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: rgba(26,20,16,0.4);
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; display: block; }
.empty-title { font-size: 1.3rem; margin-bottom: 8px; color: var(--ink); }
.empty-desc { font-size: 14px; max-width: 320px; margin: 0 auto; }

/* ── WISHLIST HEART ANIMATION ── */
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}
.heart-beat { animation: heartBeat 0.4s ease; }

/* ── COUPON CARD ── */
.coupon-card {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--parchment);
  position: relative;
  overflow: hidden;
}
.coupon-card::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--cream);
  border-radius: 50%;
  border: 2px dashed var(--border);
  border-left: none;
}
.coupon-card::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--cream);
  border-radius: 50%;
  border: 2px dashed var(--border);
  border-right: none;
}
.coupon-pct { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 900; color: var(--terracotta); }
.coupon-code { font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink); }
.coupon-desc { font-size: 13px; color: rgba(26,20,16,0.6); }
.coupon-valid { font-size: 11px; font-family: 'Space Mono', monospace; color: rgba(26,20,16,0.4); margin-top: 4px; }

/* ── PRODUCT DETAIL ── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { display: flex; gap: 12px; }
.gallery-thumbnails { display: flex; flex-direction: column; gap: 8px; }
.gallery-thumb {
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: border-color var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--earth); }
.gallery-main {
  flex: 1;
  aspect-ratio: 1;
  background: var(--parchment);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  overflow: hidden;
}
.color-swatches { display: flex; gap: 8px; margin-top: 8px; }
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), border-color var(--transition);
}
.swatch:hover, .swatch.active { transform: scale(1.15); border-color: var(--ink); }
.size-options { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.size-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.size-btn:hover, .size-btn.active { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.quantity-selector { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.qty-large {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-large button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--parchment);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.qty-large button:hover { background: var(--border); }
.qty-large span { padding: 0 20px; font-family: 'Space Mono', monospace; font-size: 15px; }

/* ── STAR RATING ── */
.star-rating { display: flex; gap: 4px; }
.star { font-size: 20px; cursor: pointer; color: rgba(26,20,16,0.2); transition: color var(--transition); }
.star.filled, .star:hover { color: var(--gold); }

/* ── CHECKOUT STEPS ── */
.checkout-steps { display: flex; align-items: center; margin-bottom: 36px; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; }
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--parchment);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  transition: all var(--transition);
}
.step.active .step-num { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.step.done .step-num { background: var(--pine); color: white; border-color: var(--pine); }
.step-label { font-size: 13px; color: rgba(26,20,16,0.6); }
.step.active .step-label { color: var(--ink); font-weight: 600; }
.step-line { flex: 1; height: 1px; background: var(--border); }

/* ── IMAGE UPLOAD ── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--parchment);
}
.upload-area:hover { border-color: var(--earth); background: rgba(139,94,60,0.03); }
.upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.upload-text { font-size: 14px; color: rgba(26,20,16,0.6); }

/* ── ANIMATIONS ── */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.skeleton {
  background: linear-gradient(90deg, var(--parchment) 25%, #ede9df 50%, var(--parchment) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.page-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--earth); background: var(--parchment); }
.page-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ── SEARCH DROPDOWN ── */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: none;
  z-index: 50;
}
.search-dropdown.open { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.search-result-item:hover { background: var(--parchment); }
.search-result-icon { font-size: 1.5rem; }
.search-result-name { font-size: 14px; font-weight: 600; }
.search-result-price { font-size: 13px; color: var(--terracotta); font-family: 'Space Mono', monospace; }

/* ── MISC UTILITIES ── */
.text-center { text-align: center; }
.text-muted { color: rgba(26,20,16,0.5); }
.font-mono { font-family: 'Space Mono', monospace; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ══ FA ICON FIXES ══ */
.stars i { font-size: 0.85rem; color: var(--gold); }
.stars { display: inline-flex; gap: 2px; align-items: center; }

.product-img {
  background: var(--parchment);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  color: rgba(26,20,16,0.4);
  transition: all var(--transition);
  z-index: 2;
}
.product-wish:hover, .product-wish.active { color: var(--terracotta); transform: scale(1.1); }

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}
.badge-sale { background: var(--terracotta); color: white; }
.badge-new { background: var(--pine); color: white; }
.badge-hot { background: var(--gold); color: var(--ink); }

/* ── PRODUCT ACTIONS HOVER ── */
.product-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(26,20,16,0.85));
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }

/* ── CART ITEM IMG ── */
.cart-item-img {
  width: 52px; height: 52px;
  background: var(--parchment);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── EMPTY STATE ICONS ── */
.empty-icon {
  font-size: 3rem;
  color: var(--earth-light);
  margin-bottom: 12px;
  display: block;
  text-align: center;
}
.empty-icon i { font-size: 3rem; color: var(--earth-light); }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.empty-desc { font-size: 14px; color: rgba(26,20,16,0.55); }

/* ── PROFILE NAV ── */
.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  width: 100%;
}
.profile-nav-item:hover { background: var(--parchment); }
.profile-nav-item.active { background: var(--parchment); font-weight: 600; }
.profile-nav-item .nav-icon { width: 20px; text-align: center; }

/* ── ADMIN NAV ACTIVE ── */
.admin-nav-item:hover { color: var(--cream) !important; }

/* ── GALLERY THUMB ── */
.gallery-thumb {
  width: 60px; height: 60px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition);
  display: flex; align-items: center; justify-content: center;
  background: var(--parchment);
}
.gallery-thumb.active { border-color: var(--earth); }
.gallery-thumb:hover { border-color: var(--earth-light); }
.gallery-main {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  background: var(--parchment);
}

/* ── SOCIAL LINKS ── */
.social-link {
  width: 36px; height: 36px;
  background: rgba(250,247,242,0.08);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cream);
  margin-right: 8px;
  transition: background var(--transition);
  font-size: 14px;
}
.social-link:hover { background: var(--earth); }

/* ── SEARCH RESULT ICON ── */
.search-result-icon {
  width: 36px; height: 36px;
  background: var(--parchment);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.search-result-icon i { font-size: 1rem; color: var(--earth); }

/* ── FORM HINT ── */
.form-hint { font-size: 12px; color: rgba(26,20,16,0.5); margin-top: 4px; }

/* ── UPLOAD AREA ── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition);
  margin-top: 16px;
}
.upload-area:hover { border-color: var(--earth); }
.upload-icon i { font-size: 2.5rem; color: var(--earth-light); margin-bottom: 12px; }
.upload-text { font-size: 14px; color: rgba(26,20,16,0.6); }

/* ── COUPON CARD ── */
.coupon-card {
  display: flex; gap: 20px; align-items: center;
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.coupon-pct { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--terracotta); }
.coupon-code { font-family: 'Space Mono', monospace; font-size: 1.2rem; font-weight: 700; letter-spacing: 0.1em; }
.coupon-desc { font-size: 13px; color: rgba(26,20,16,0.6); margin-top: 4px; }
.coupon-valid { font-size: 12px; color: rgba(26,20,16,0.5); margin-top: 2px; }

/* ── ORDER STATUS ── */
.order-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
}
.status-delivered { background: rgba(45,90,61,0.12); color: var(--pine); }
.status-processing { background: rgba(201,168,76,0.15); color: #8a6f20; }
.status-shipped { background: rgba(61,79,107,0.12); color: var(--mountain); }
.status-cancelled { background: rgba(212,98,42,0.12); color: var(--terracotta); }

/* ── DATA TABLE ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; text-align: left; font-size: 11px; font-family: 'Space Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(26,20,16,0.5); border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid rgba(139,94,60,0.1); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(139,94,60,0.03); }

/* ── ADMIN GRID ── */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { border-radius: var(--radius-lg); padding: 24px; color: white; }
.stat-card.s1 { background: linear-gradient(135deg, var(--earth) 0%, var(--terracotta) 100%); }
.stat-card.s2 { background: linear-gradient(135deg, var(--pine) 0%, #4a8a5d 100%); }
.stat-card.s3 { background: linear-gradient(135deg, var(--mountain) 0%, var(--sky) 100%); }
.stat-card.s4 { background: linear-gradient(135deg, #5a3e28 0%, var(--earth) 100%); }
.stat-value { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; }
.stat-label { font-size: 10px; font-family: 'Space Mono', monospace; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; margin-top: 4px; }
.stat-change { font-size: 12px; margin-top: 8px; opacity: 0.85; }
.stat-change.up { }
.stat-change.down { }

/* ── FILTER SIDEBAR ── */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
.filter-sidebar { background: var(--parchment); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; align-self: start; position: sticky; top: 90px; }
.filter-title { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(26,20,16,0.5); margin-bottom: 20px; }
.filter-group { margin-bottom: 24px; }
.filter-group-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; font-family: 'Playfair Display', serif; }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.filter-option:hover { color: var(--earth); }
.filter-checkbox { width: 16px; height: 16px; border: 1.5px solid var(--border); border-radius: 3px; flex-shrink: 0; transition: all var(--transition); }
.filter-checkbox.checked { background: var(--earth); border-color: var(--earth); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { flex: 1; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--cream); font-family: 'Space Mono', monospace; font-size: 13px; width: 0; }
.price-range input:focus { outline: none; border-color: var(--earth); }
.cat-filter-btn { user-select: none; }

/* ── HERO ── */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 80px 0 60px; }
.hero-left { }
.hero-tag { display: inline-block; background: rgba(139,94,60,0.1); color: var(--earth); border: 1px solid rgba(139,94,60,0.2); border-radius: 100px; padding: 6px 16px; font-size: 12px; font-family: 'Space Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }
.hero-title { margin-bottom: 20px; }
.hero-title em { font-style: italic; color: var(--terracotta); }
.hero-desc { font-size: 1.1rem; color: rgba(26,20,16,0.7); margin-bottom: 32px; max-width: 460px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-right { position: relative; }
.hero-bg-shape { position: absolute; inset: -20%; background: radial-gradient(circle, rgba(139,94,60,0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-card { background: var(--parchment); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hero-card-body { margin-top: 10px; }
.hero-card-name { font-size: 13px; font-weight: 600; }
.hero-card-price { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--terracotta); margin-top: 4px; }

/* ── PROMO BANNER ── */
.promo-banner { background: linear-gradient(135deg, var(--earth) 0%, var(--ink) 60%); border-radius: var(--radius-lg); padding: 40px 48px; color: var(--cream); display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 72px; }
.promo-tag { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.7; margin-bottom: 8px; }
.promo-title { font-size: 1.8rem; font-weight: 700; font-family: 'Playfair Display', serif; margin-bottom: 8px; }
.promo-subtitle { font-size: 15px; opacity: 0.8; }

/* ── PRODUCTS SECTION ── */
.products-section { margin-bottom: 72px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-label { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--earth-light); margin-bottom: 8px; }

/* ── PRODUCT GRID ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: all var(--transition); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-body { padding: 16px; }
.product-category { font-family: 'Space Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--earth-light); margin-bottom: 6px; }
.product-name { font-size: 15px; font-weight: 600; font-family: 'Playfair Display', serif; margin-bottom: 8px; line-height: 1.3; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.rating-count { font-size: 12px; color: rgba(26,20,16,0.5); font-family: 'Space Mono', monospace; }
.product-price { display: flex; align-items: center; gap: 8px; }
.price-current { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; }
.price-original { font-size: 13px; color: rgba(26,20,16,0.4); text-decoration: line-through; }
.price-discount { font-size: 11px; font-family: 'Space Mono', monospace; color: var(--pine); font-weight: 700; background: rgba(45,90,61,0.1); padding: 2px 6px; border-radius: 100px; }

/* ── BTN ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius); font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 400; border: 1.5px solid transparent; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-primary:hover { background: var(--earth); border-color: var(--earth); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--earth); background: var(--parchment); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 14px; }
.w-full { width: 100%; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-size: 12px; font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(26,20,16,0.6); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--cream); font-family: 'Crimson Pro', serif; font-size: 15px; color: var(--ink); transition: border-color var(--transition), box-shadow var(--transition); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--earth); box-shadow: 0 0 0 3px rgba(139,94,60,0.1); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b5e3c' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-textarea { resize: vertical; min-height: 100px; }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(26,20,16,0.6); backdrop-filter: blur(4px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--cream); border-radius: var(--radius-lg); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
.modal-wide { max-width: 700px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { margin: 0; }
.modal-close { background: none; border: none; font-size: 16px; color: rgba(26,20,16,0.5); cursor: pointer; padding: 4px; transition: color var(--transition); }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 24px; }

/* ── TABS ── */
.tabs { display: flex; gap: 0; border-bottom: 1.5px solid var(--border); margin-bottom: 24px; }
.tab-btn { background: none; border: none; padding: 10px 20px; font-family: 'Space Mono', monospace; font-size: 13px; color: rgba(26,20,16,0.5); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1.5px; transition: all var(--transition); }
.tab-btn.active { color: var(--ink); border-bottom-color: var(--earth); }

/* ── DIVIDER ── */
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: rgba(26,20,16,0.4); font-size: 12px; font-family: 'Space Mono', monospace; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: var(--radius-lg); font-size: 14px; box-shadow: var(--shadow-md); transform: translateX(120%); transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1); min-width: 240px; max-width: 360px; }
.toast.show { transform: translateX(0); }
.toast.success { border-left: 4px solid var(--pine); }
.toast.error { border-left: 4px solid var(--terracotta); }
.toast.info { border-left: 4px solid var(--sky); }

/* ── CART DRAWER ── */
.cart-drawer-overlay { position: fixed; inset: 0; background: rgba(26,20,16,0.5); z-index: 150; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.cart-drawer-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 95vw; background: var(--cream); z-index: 160; transform: translateX(100%); transition: transform var(--transition); display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-header h3 { margin: 0; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: rgba(26,20,16,0.5); margin-bottom: 8px; }
.cart-item-controls { display: flex; align-items: center; gap: 12px; }
.cart-item-price { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--terracotta); }
.cart-remove { background: none; border: none; color: rgba(26,20,16,0.35); padding: 4px; cursor: pointer; flex-shrink: 0; transition: color var(--transition); }
.cart-remove:hover { color: var(--terracotta); }
.qty-control { display: flex; align-items: center; gap: 6px; background: var(--parchment); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.qty-btn { background: none; border: none; padding: 4px 10px; cursor: pointer; font-size: 16px; color: var(--ink); transition: background var(--transition); }
.qty-btn:hover { background: var(--border); }
.qty-val { font-family: 'Space Mono', monospace; font-size: 13px; min-width: 24px; text-align: center; }
.cart-footer { padding: 16px 24px; border-top: 1px solid var(--border); }
.cart-coupon { display: flex; gap: 8px; margin-bottom: 16px; }
.cart-coupon input { flex: 1; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 13px; }
.cart-coupon input:focus { outline: none; border-color: var(--earth); }
.cart-totals { margin-bottom: 16px; }
.cart-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.cart-total-row.total { font-size: 1.1rem; font-family: 'Playfair Display', serif; font-weight: 700; padding-top: 10px; border-top: 1.5px solid var(--border); margin-top: 6px; }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--terracotta); color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; font-family: 'Space Mono', monospace; display: none; align-items: center; justify-content: center; font-weight: 700; }
.cart-badge.show { display: flex; }

/* ── CATEGORIES BAR ── */
.categories-bar { background: var(--cream); border-bottom: 1px solid var(--border); overflow-x: auto; }
.categories-bar::-webkit-scrollbar { height: 0; }
.categories-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; gap: 4px; padding-top: 8px; padding-bottom: 8px; }
.cat-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border: none; background: transparent; border-radius: var(--radius); font-family: 'Space Mono', monospace; font-size: 12px; color: rgba(26,20,16,0.6); cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.cat-btn:hover { background: var(--parchment); color: var(--ink); }
.cat-btn.active { background: var(--ink); color: var(--cream); }

/* ── FOOTER ── */
.footer { background: var(--ink); color: var(--cream); padding: 64px 0 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 900; margin-bottom: 16px; }
.footer-logo img { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; }
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(250,247,242,0.6); }
.footer-title { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(250,247,242,0.5); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: rgba(250,247,242,0.7); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(250,247,242,0.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-family: 'Space Mono', monospace; color: rgba(250,247,242,0.4); }

/* ── CHECKOUT ── */
.checkout-steps { display: flex; align-items: center; }
.step { display: flex; align-items: center; gap: 10px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: 'Space Mono', monospace; font-size: 14px; font-weight: 700; color: rgba(26,20,16,0.4); transition: all var(--transition); }
.step-label { font-size: 13px; font-family: 'Space Mono', monospace; color: rgba(26,20,16,0.5); transition: color var(--transition); }
.step.active .step-num { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.step.active .step-label { color: var(--ink); font-weight: 700; }
.step.done .step-num { background: var(--pine); border-color: var(--pine); color: white; }
.step.done .step-label { color: var(--pine); }
.step-line { flex: 1; height: 1.5px; background: var(--border); margin: 0 12px; }

/* ── QTY LARGE ── */
.quantity-selector { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-large { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-large button { background: var(--parchment); border: none; padding: 10px 18px; font-size: 18px; cursor: pointer; transition: background var(--transition); }
.qty-large button:hover { background: var(--border); }
.qty-large span { padding: 10px 20px; font-family: 'Space Mono', monospace; font-size: 16px; font-weight: 700; min-width: 52px; text-align: center; }

/* ── PRODUCT DETAIL GRID ── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-gallery { }
.gallery-thumbnails { display: flex; gap: 8px; margin-bottom: 12px; }
.product-detail-info { }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 32px; }
.page-btn { width: 36px; height: 36px; border: 1.5px solid var(--border); background: var(--cream); border-radius: var(--radius); font-family: 'Space Mono', monospace; font-size: 13px; cursor: pointer; transition: all var(--transition); }
.page-btn:hover { border-color: var(--earth); background: var(--parchment); }
.page-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ── PAGE ── */
.page { display: none; position: relative; z-index: 1; }
.page.active { display: block; }

/* ── HEART BEAT ── */
@keyframes heartbeat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.3)} }
.heart-beat { animation: heartbeat 0.4s ease; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 200px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .product-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .nav-search { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 30px; }
  .promo-banner { flex-direction: column; padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .categories-inner { gap: 2px; }
  .page-admin .container > div { grid-template-columns: 1fr !important; }
  .page-profile .container > div { grid-template-columns: 1fr !important; }
  .checkout-grid { grid-template-columns: 1fr !important; }
}

/* ══ ADDITIONAL: MOBILE NAV & LANG TOGGLE ══ */
:root { --nav-h: 68px; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; background: transparent; border: none; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: var(--cream); z-index: 99; padding: 24px 20px; overflow-y: auto; transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1); border-right: 1px solid var(--border); max-width: 300px; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-link { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--radius); font-size: 15px; font-weight: 600; color: var(--ink); transition: background var(--transition); text-decoration: none; }
.mobile-nav-link:hover { background: var(--parchment); }
.mobile-nav-link i { width: 18px; text-align: center; color: var(--earth); }
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(26,20,16,.4); z-index: 98; }
.mobile-nav-overlay.open { display: block; }

.lang-toggle { display: flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1.5px solid var(--border); border-radius: 100px; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; background: transparent; cursor: pointer; color: var(--ink); transition: all var(--transition); }
.lang-toggle:hover { border-color: var(--earth); background: var(--parchment); }

/* Product image support */
.product-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--parchment); position: relative; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-img-icon { font-size: 3rem; color: var(--earth-light, #c9a577); opacity: .55; display:flex; align-items:center; justify-content:center; }
.product-badge { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 100px; font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; z-index: 2; }
.badge-sale { background: var(--terracotta); color: #fff; }
.badge-new  { background: var(--pine); color: #fff; }
.badge-hot  { background: var(--gold); color: var(--ink); }
.product-wish { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; background: rgba(250,247,242,.9); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--earth-light); transition: all var(--transition); opacity: 0; z-index: 2; cursor: pointer; }
.product-card:hover .product-wish { opacity: 1; }
.product-wish:hover, .product-wish.active { color: var(--terracotta); background: #fff; }
.product-actions { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px; background: linear-gradient(to top,rgba(245,240,232,1),transparent); opacity: 0; transform: translateY(6px); transition: all var(--transition); }
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }

/* Stars */
.stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }

/* Upload zone */
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; cursor: pointer; transition: all var(--transition); background: var(--parchment); position: relative; }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--earth); background: rgba(139,94,60,.04); }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.upload-preview-item { position: relative; width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border); }
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-item.is-main { border-color: var(--gold); }
.upload-preview-item .main-badge { position: absolute; bottom: 2px; left: 2px; background: var(--gold); color: var(--ink); font-size: 7px; font-family: 'Space Mono', monospace; font-weight: 700; padding: 1px 3px; border-radius: 2px; }
.upload-preview-remove { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; background: var(--terracotta); color: #fff; border: none; border-radius: 50%; font-size: 9px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.upload-preview-setmain { position: absolute; bottom: 2px; right: 2px; width: 16px; height: 16px; background: rgba(250,247,242,.9); border: none; border-radius: 50%; font-size: 9px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--gold); }

/* Gallery */
.gallery-main { width: 100%; aspect-ratio: 1; background: var(--parchment); border-radius: var(--radius-lg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb { width: 64px; height: 64px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--parchment); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--earth); }

/* Cart item image */
.cart-item-img { width: 64px; height: 64px; border-radius: var(--radius); background: var(--parchment); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

/* Search result image */
.search-result-img { width: 36px; height: 36px; border-radius: var(--radius); background: var(--parchment); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.search-result-img img { width: 100%; height: 100%; object-fit: cover; }

/* Search dropdown */
.search-dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: none; z-index: 50; overflow: hidden; max-height: 380px; overflow-y: auto; }
.search-dropdown.open { display: block; }
.search-result-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; transition: background var(--transition); }
.search-result-item:hover { background: var(--parchment); }
.search-result-name { font-size: 13px; font-weight: 600; }
.search-result-price { font-size: 12px; color: var(--terracotta); font-family: 'Space Mono', monospace; margin-left: auto; flex-shrink: 0; }

/* Profile nav items */
.profile-nav-item { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: rgba(26,20,16,.65); font-size: 14px; transition: all var(--transition); background: transparent; width: 100%; text-align: left; border: none; border-left: 3px solid transparent; cursor: pointer; font-family: 'Crimson Pro', serif; }
.profile-nav-item:hover { background: rgba(139,94,60,.06); color: var(--ink); }
.profile-nav-item.active { background: rgba(139,94,60,.08); color: var(--ink); border-left-color: var(--terracotta); font-weight: 600; }
.profile-nav-item .nav-icon { width: 18px; text-align: center; }

/* Admin nav items */
.admin-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 20px; border: none; background: transparent; color: rgba(250,247,242,.6); font-size: 14px; text-align: left; border-left: 3px solid transparent; cursor: pointer; transition: all var(--transition); font-family: 'Crimson Pro', serif; }
.admin-nav-item:hover { color: var(--cream); background: rgba(250,247,242,.05); }
.admin-nav-item.active { color: var(--cream) !important; border-left-color: var(--gold) !important; background: rgba(250,247,242,.07) !important; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 10px 14px; font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--earth); border-bottom: 1.5px solid var(--border); background: var(--parchment); white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(139,94,60,.025); }
.table-wrap { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; overflow-x: auto; }

/* Admin stat cards */
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card { background: var(--parchment); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 900; margin-bottom: 3px; }
.stat-label { font-size: 10px; color: rgba(26,20,16,.48); font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: .06em; }

/* Order status */
.order-status { padding: 3px 10px; border-radius: 100px; font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.status-delivered { background: rgba(45,90,61,.12); color: var(--pine); }
.status-processing { background: rgba(201,168,76,.15); color: #7a5e0e; }
.status-shipped    { background: rgba(107,147,196,.15); color: var(--mountain); }
.status-cancelled  { background: rgba(212,98,42,.12); color: var(--terracotta); }

/* Coupon card */
.coupon-card { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 16px 20px; display: flex; align-items: center; gap: 16px; background: var(--parchment); position: relative; }
.coupon-pct  { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--terracotta); flex-shrink: 0; }
.coupon-code { font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.coupon-desc { font-size: 12px; color: rgba(26,20,16,.58); }
.coupon-valid { font-size: 10px; font-family: 'Space Mono', monospace; color: rgba(26,20,16,.38); margin-top: 3px; }

/* Misc */
.spinner { width: 22px; height: 22px; border: 2px solid rgba(139,94,60,.2); border-top-color: var(--earth); border-radius: 50%; animation: spin .65s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 24px; color: rgba(26,20,16,.42); }
.empty-icon { font-size: 3rem; margin-bottom: 14px; color: var(--earth-light); }
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.filter-sidebar { background: var(--parchment); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; position: sticky; top: calc(var(--nav-h) + 12px); }
.filter-title { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--earth); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.filter-group { margin-bottom: 20px; }
.filter-group-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; font-family: 'Playfair Display', serif; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; font-size: 13px; color: rgba(26,20,16,.72); transition: color var(--transition); }
.filter-option:hover { color: var(--ink); }
.filter-checkbox { width: 15px; height: 15px; border: 1.5px solid var(--border); border-radius: 3px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); }
.filter-checkbox.checked { background: var(--ink); border-color: var(--ink); color: #fff; font-size: 9px; }
.price-range { display: flex; gap: 6px; align-items: center; }
.price-range input { flex: 1; padding: 7px 9px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 12px; background: var(--cream); font-family: inherit; }
.price-range input:focus { outline: none; border-color: var(--earth); }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-link { width: 32px; height: 32px; border: 1px solid rgba(250,247,242,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: .55; transition: all var(--transition); }
.social-link:hover { opacity: 1; border-color: var(--gold); color: var(--gold); }
.btn-terracotta { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.btn-terracotta:hover { background: #c05520; border-color: #c05520; }
.btn-pine { background: var(--pine); color: #fff; border-color: var(--pine); }
.btn-pine:hover { background: var(--pine-light); border-color: var(--pine-light); }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.flex { display: flex; } .items-center { align-items: center; } .flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.text-muted { color: rgba(26,20,16,.5); } .text-sm { font-size: 13px; } .text-xs { font-size: 11px; }
.font-mono { font-family: 'Space Mono', monospace; } .relative { position: relative; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
@keyframes heartbeat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.3)} }
.heart-beat { animation: heartbeat .4s ease; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 200px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .product-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-search { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; display: none; }
  .filter-sidebar.mobile-show { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 20px; }
  .promo-banner { flex-direction: column; padding: 24px; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .categories-inner { gap: 2px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; }
  .checkout-step-panel .form-row { grid-template-columns: 1fr; }
  .checkout-summary-wrap { position: static !important; margin-top: 20px; }
  h1 { font-size: 1.8rem; } h2 { font-size: 1.4rem; }
  .admin-nav-item span { display: none; }
  .admin-nav-item { justify-content: center; padding: 10px; }
  .profile-layout-grid { grid-template-columns: 1fr !important; }
  .profile-sidebar-wrap { position: static !important; }
  .checkout-grid { grid-template-columns: 1fr !important; }
  .data-table th, .data-table td { padding: 8px 10px; font-size: 12px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .nav-btn span { display: none; }
  .container { padding: 0 14px; }
}

/* ── Reviews, confirm dialog & order thumbnail fix ── */
.order-item-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.review-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; background: var(--parchment); }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--earth); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-weight: 700; flex-shrink: 0; }
.reviews-summary-box { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; background: var(--parchment); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 22px; }
.star-picker { display: flex; gap: 6px; font-size: 1.6rem; color: var(--gold); cursor: pointer; margin-bottom: 4px; }
.star-picker i { cursor: pointer; transition: transform .1s ease; }
.star-picker i:hover { transform: scale(1.15); }

/* ── Payment method cards (ACP) ── */
.payment-method-card { border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--parchment); margin-bottom:16px; overflow:hidden; }
.payment-method-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 18px; border-bottom:1px solid var(--border); }
.payment-method-icon { width:38px; height:38px; border-radius:50%; background:rgba(139,94,60,.1); color:var(--earth); display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0; }
.payment-method-body { padding:16px 18px; }
.switch { position:relative; display:inline-block; width:44px; height:24px; flex-shrink:0; }
.switch input { opacity:0; width:0; height:0; }
.switch-slider { position:absolute; cursor:pointer; inset:0; background:rgba(26,20,16,.2); transition:.25s; border-radius:24px; }
.switch-slider:before { content:""; position:absolute; height:18px; width:18px; left:3px; bottom:3px; background:#fff; transition:.25s; border-radius:50%; }
.switch input:checked + .switch-slider { background:var(--pine); }
.switch input:checked + .switch-slider:before { transform:translateX(20px); }

/* ── User cards (ACP) ── */
.user-card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; }
.user-card { background:var(--parchment); border:1px solid var(--border); border-radius:var(--radius-lg); padding:16px; display:flex; flex-direction:column; gap:12px; }
.user-card-top { display:flex; align-items:center; gap:12px; }
.user-avatar-lg { width:44px; height:44px; border-radius:50%; background:var(--earth); color:#fff; display:flex; align-items:center; justify-content:center; font-family:'Playfair Display',serif; font-weight:700; font-size:1.1rem; flex-shrink:0; }
.user-card-meta { display:flex; align-items:center; justify-content:space-between; font-size:12px; color:rgba(26,20,16,.6); }
.user-card-actions { display:flex; gap:8px; flex-wrap:wrap; }
.user-card-actions .btn { flex:1; }

/* ── Product description ── */
.product-description { color:rgba(26,20,16,.72); line-height:1.85; margin-bottom:22px; font-size:1.05rem; white-space:pre-line; word-break:break-word; }

/* ── Mobile responsiveness fixes ── */
@media (max-width: 768px) {
  .footer-bottom { flex-direction:column; align-items:center; text-align:center; gap:8px; }
  .footer .social-links { justify-content:center; }
  .product-gallery { flex-direction:column-reverse; gap:10px; }
  .product-gallery .gallery-thumbnails { flex-direction:row; flex-wrap:wrap; }
  .product-detail-grid { gap:24px; }
  .user-card-grid { grid-template-columns:1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns:1fr !important; gap:24px; }
}


/* ═══════════ msg10 enhancements ═══════════ */

/* Payment methods — side-by-side collapsible cards */
.payment-methods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-bottom: 22px; }
.payment-method-card { background: var(--parchment); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--transition), border-color var(--transition); }
.payment-method-card.expanded { border-color: var(--earth); box-shadow: var(--shadow-sm); }
.payment-method-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; user-select: none; }
.payment-method-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(139,94,60,.1); color: var(--earth); font-size: 1.15rem; }
.pm-titles { flex: 1; min-width: 0; }
.pm-titles strong { display: block; font-size: 14px; }
.pm-chevron { background: none; border: none; color: rgba(26,20,16,.55); cursor: pointer; font-size: 15px; padding: 6px; line-height: 1; transition: transform var(--transition); }
.payment-method-card.expanded .pm-chevron { transform: rotate(180deg); }
.payment-method-body { max-height: 0; overflow: hidden; transition: max-height .38s cubic-bezier(.4,0,.2,1); }
.payment-method-card.expanded .payment-method-body { max-height: 780px; }
.pm-body-inner { padding: 4px 18px 18px; border-top: 1px solid var(--border); }
@media (max-width: 720px) { .payment-methods-grid { grid-template-columns: 1fr; } }

/* Dashboard stat cards — readable gradient cards + light labels */
.stat-card.s1 { background: linear-gradient(135deg, var(--earth) 0%, var(--terracotta) 100%); border: none; }
.stat-card.s2 { background: linear-gradient(135deg, var(--pine) 0%, #4a8a5d 100%); border: none; }
.stat-card.s3 { background: linear-gradient(135deg, var(--mountain) 0%, var(--sky) 100%); border: none; }
.stat-card.s4 { background: linear-gradient(135deg, #6b4a2e 0%, var(--earth) 100%); border: none; }
.stat-card.s5 { background: linear-gradient(135deg, var(--gold) 0%, #b8892f 100%); border: none; }
.stat-card .stat-value { color: #fff; }
.stat-card .stat-label { color: rgba(255,255,255,.92); opacity: 1; }

/* Promo banner — dynamic, readable button on hover, optional image */
.promo-banner { background: linear-gradient(135deg, var(--earth) 0%, var(--ink) 60%); border-radius: var(--radius-lg); padding: 40px 48px; color: var(--cream); display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 72px; overflow: hidden; position: relative; }
.promo-content { flex: 1; min-width: 0; }
.promo-btn { background: var(--cream); color: var(--ink) !important; border: none; margin-top: 18px; font-weight: 700; }
.promo-btn:hover { background: #fff; color: var(--ink) !important; transform: translateY(-2px); }
.promo-btn:hover::after { opacity: 0 !important; }
.promo-media { flex-shrink: 0; max-width: 42%; }
.promo-media img { width: 100%; max-height: 190px; object-fit: cover; border-radius: var(--radius-lg); display: block; }
@media (max-width: 768px) { .promo-banner { flex-direction: column; align-items: flex-start; padding: 28px; } .promo-media { max-width: 100%; width: 100%; } .promo-media img { max-height: 220px; } }

/* ===== Round 3: payment collapse fix, banner admin, BB codes, file upload ===== */

/* Fix payment card collapse: remove leftover padding sliver from duplicate rule */
.payment-method-body { padding: 0 !important; }
.payment-method-card:not(.expanded) .payment-method-body { border-top: 0 !important; }

/* --- Promo banner admin page --- */
.promo-admin { max-width: 860px; }
.promo-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.pill-switch { flex-shrink: 0; margin-top: 4px; }
.settings-card { background: var(--parchment); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 20px; }
.settings-card-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.settings-card-title i { color: var(--earth); }

/* --- Color field --- */
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type=color] { width: 46px; height: 38px; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; }
.color-field span { font-size: 12px; font-family: monospace; color: var(--mountain); text-transform: uppercase; }

/* --- Custom file upload button --- */
.file-upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-upload { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--ink); color: var(--cream); border-radius: var(--radius); font-weight: 600; font-size: 13px; cursor: pointer; transition: background var(--transition), transform var(--transition); border: 1px solid var(--ink); }
.file-upload:hover { background: var(--earth); border-color: var(--earth); transform: translateY(-1px); }
.file-upload i { font-size: 15px; }
.file-upload input[type=file] { display: none; }

/* --- BB code legend --- */
.bbcode-legend { background: rgba(201,161,90,.08); border: 1px dashed var(--border); border-radius: var(--radius); padding: 12px 14px; margin-top: 4px; }
.bbcode-legend-title { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; color: var(--earth); margin-bottom: 8px; }
.bbcode-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.bbcode-tags code { background: var(--cream); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; font-size: 12px; color: var(--ink); font-family: monospace; }

/* --- BB code output inside product descriptions --- */
.product-description blockquote { border-left: 3px solid var(--earth); margin: 10px 0; padding: 4px 14px; color: var(--mountain); }
.product-description ul { margin: 8px 0; padding-left: 20px; }
.product-description img { max-width: 100%; border-radius: var(--radius); margin: 8px 0; }
.product-description a { color: var(--earth); text-decoration: underline; }

@media (max-width: 720px) {
  .promo-admin-head { flex-direction: column; }
  .settings-card { padding: 16px; }
}

/* ===== Round 4: CKEditor dark forum theme, autosave status ===== */

/* --- Autosave status pill (payment methods) --- */
.autosave-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--pine, #4a7c59); }
.autosave-status i { color: var(--pine, #4a7c59); }

/* --- CKEditor 5 : Invision-style dark theme --- */
:root {
  --ck-border-radius: 8px;
  --ck-color-focus-border: var(--gold, #c9a15a);
  --ck-color-shadow-drop: rgba(0,0,0,.35);
  --ck-color-shadow-inner: rgba(0,0,0,.25);
}
.ck.ck-editor { border-radius: 8px; overflow: hidden; border: 1px solid #3a332b; }
.ck.ck-toolbar {
  background: #262019 !important;
  border-color: #3a332b !important;
  border-radius: 8px 8px 0 0 !important;
}
.ck.ck-toolbar .ck-button,
.ck.ck-toolbar .ck-button .ck-button__label,
.ck.ck-toolbar .ck-dropdown__button { color: #e9e0d2 !important; }
.ck.ck-toolbar .ck-button:not(.ck-disabled):hover { background: #33291f !important; }
.ck.ck-toolbar .ck-button.ck-on {
  background: var(--gold, #c9a15a) !important;
  color: #1a1410 !important;
}
.ck.ck-toolbar .ck-button.ck-on .ck-button__label { color: #1a1410 !important; }
.ck.ck-toolbar .ck-icon { color: inherit; }
.ck.ck-toolbar__separator { background: #3a332b !important; }

.ck.ck-editor__main > .ck-editor__editable {
  background: #1e1b17 !important;
  color: #f0e9dd !important;
  border-color: #3a332b !important;
  border-radius: 0 0 8px 8px !important;
  min-height: 190px;
  line-height: 1.6;
}
.ck.ck-editor__main > .ck-editor__editable.ck-focused {
  border-color: var(--gold, #c9a15a) !important;
  box-shadow: 0 0 0 2px rgba(201,161,90,.30) !important;
}
.ck-content a { color: var(--gold, #c9a15a); }
.ck-content blockquote { border-left: 3px solid var(--gold, #c9a15a); color: #cfc4b4; }
.ck-content pre { background: #14110d; color: #f0e9dd; border-radius: 8px; }
.ck-content .ck-placeholder::before, .ck.ck-placeholder::before { color: #8c8172 !important; }

/* Dropdown panels (font family / size / heading) */
.ck.ck-dropdown__panel, .ck.ck-list, .ck.ck-reset_all {
  background: #262019 !important;
  color: #e9e0d2 !important;
  border-color: #3a332b !important;
}
.ck.ck-list__item .ck-button { color: #e9e0d2 !important; }
.ck.ck-list__item .ck-button:hover:not(.ck-disabled) { background: #33291f !important; }
.ck.ck-list__item .ck-button.ck-on { background: var(--gold, #c9a15a) !important; color: #1a1410 !important; }
.ck.ck-input, .ck.ck-input-text { background: #1e1b17 !important; color: #f0e9dd !important; border-color: #3a332b !important; }
.ck.ck-labeled-field-view .ck-label { color: #cfc4b4 !important; }

/* --- Rendering rich HTML output in product descriptions --- */
.product-description figure.image { margin: 12px 0; }
.product-description figure.image img { max-width: 100%; border-radius: 8px; }
.product-description figure.image.image-style-side { float: right; max-width: 50%; margin-left: 16px; }
.product-description pre { background: #1e1b17; color: #f0e9dd; padding: 12px 14px; border-radius: 8px; overflow: auto; font-size: 13px; }
.product-description h2, .product-description h3, .product-description h4 { margin: 14px 0 8px; }


/* ============================================================
   Message 18 — UI fixes & design polish
   (appended last so these rules win the cascade)
   ============================================================ */

/* ---- Hero buttons: equal size ---- */
.hero-actions { display:flex; flex-wrap:wrap; align-items:stretch; gap:14px; }
.hero-actions .btn { min-width:220px; justify-content:center; text-align:center; padding:15px 30px !important; font-size:15px !important; }
@media (max-width:560px){ .hero-actions .btn { width:100%; min-width:0; } }

/* ---- Checkout symmetry: align the two columns to the top ---- */
.checkout-grid { align-items:start !important; }

/* ---- Reviews section: clean separation & centering ---- */
.reviews-section { margin-top:56px !important; padding-top:34px; border-top:1px solid var(--border); clear:both; }
.reviews-section .review-card { transition:transform .18s ease, box-shadow .18s ease; }
.reviews-section .review-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }

/* ---- Edited tag on reviews ---- */
.edited-tag {
  font-size:10.5px; font-style:italic; color:rgba(26,20,16,.5);
  background:var(--parchment); border:1px solid var(--border);
  padding:1px 8px; border-radius:999px; cursor:default;
}

/* ---- Review previous-version history ---- */
.review-history-toggle {
  margin-top:10px; display:inline-flex; align-items:center; gap:6px;
  background:none; border:none; cursor:pointer; padding:4px 0;
  color:var(--terracotta); font-size:12.5px; font-weight:600;
  transition:opacity .15s ease;
}
.review-history-toggle:hover { opacity:.7; text-decoration:underline; }
.review-history {
  margin-top:10px; padding-left:14px; border-left:2px solid var(--border);
  animation:fadeIn .25s ease;
}
.review-history-item {
  padding:10px 0; border-bottom:1px dashed var(--border);
}
.review-history-item:last-child { border-bottom:none; }
@keyframes fadeIn { from{opacity:0; transform:translateY(-4px);} to{opacity:1; transform:none;} }

/* ---- Category reorder arrows ---- */
.cat-reorder { display:inline-flex; flex-direction:column; gap:3px; }
.reorder-btn {
  width:30px; height:24px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--border); background:var(--cream); color:var(--earth);
  border-radius:7px; cursor:pointer; font-size:11px;
  transition:transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.reorder-btn:hover:not(:disabled) {
  background:var(--terracotta); color:#fff; border-color:var(--terracotta);
  box-shadow:0 3px 8px rgba(181,85,31,.28);
}
.reorder-btn:hover:not(:disabled) .fa-chevron-up { transform:translateY(-1px); }
.reorder-btn:hover:not(:disabled) .fa-chevron-down { transform:translateY(1px); }
.reorder-btn:active:not(:disabled) { transform:scale(.9); }
.reorder-btn:disabled { opacity:.3; cursor:not-allowed; }
.reorder-btn i { transition:transform .15s ease; }
@keyframes catMoved {
  0% { background:rgba(181,85,31,.28); }
  100% { background:transparent; }
}
tr.cat-moved > td { animation:catMoved 1s ease; }

/* ---- Admin search bars ---- */
.admin-search {
  position:relative; display:flex; align-items:center; margin-bottom:16px; max-width:420px;
}
.admin-search i {
  position:absolute; left:14px; color:var(--earth); opacity:.55; font-size:13px; pointer-events:none;
}
.admin-search-input {
  width:100%; padding:10px 14px 10px 38px;
  border:1px solid var(--border); border-radius:var(--radius);
  background:var(--cream); color:var(--ink); font-size:14px;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.admin-search-input:focus {
  outline:none; border-color:var(--terracotta); background:#fff;
  box-shadow:0 0 0 3px rgba(181,85,31,.12);
}

/* ---- Audit log ---- */
.audit-summary { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.audit-pill {
  padding:6px 14px; border-radius:999px; font-size:12.5px; font-weight:600;
  border:1px solid var(--border);
}
.audit-pill.info { background:rgba(90,120,150,.12); color:var(--mountain); border-color:rgba(90,120,150,.3); }
.audit-pill.warning { background:rgba(200,150,40,.14); color:#a9791a; border-color:rgba(200,150,40,.35); }
.audit-pill.critical { background:rgba(181,85,31,.14); color:var(--terracotta); border-color:rgba(181,85,31,.4); }
.audit-badge {
  display:inline-block; padding:2px 9px; border-radius:6px;
  font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em;
}
.audit-badge.info { background:rgba(90,120,150,.15); color:var(--mountain); }
.audit-badge.warning { background:rgba(200,150,40,.18); color:#a9791a; }
.audit-badge.critical { background:rgba(181,85,31,.16); color:var(--terracotta); }
.audit-table td { vertical-align:top; }
.audit-table code { font-size:12px; background:var(--parchment); padding:1px 6px; border-radius:5px; }
.audit-table .font-mono { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; opacity:.75; }
.audit-row.sev-critical { background:rgba(181,85,31,.05); }
.audit-row.sev-warning { background:rgba(200,150,40,.05); }
.text-xs { font-size:11.5px; }

/* ---- Dashboard stat cards: new variants ---- */
.stat-card.s6 { --accent:#7a9b6b; }
.stat-card.s7 { --accent:#5a7896; }
.stat-card.s8 { --accent:#c08a3e; }
.stat-card.s9 { --accent:#9b6ba1; }
.stat-card.s6::before,.stat-card.s7::before,.stat-card.s8::before,.stat-card.s9::before,
.stat-card.s-live::before,.stat-card.s-warn::before {
  content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--accent,var(--terracotta));
}
.stat-card.s-live { --accent:#3aa76d; }
.stat-card.s-warn { --accent:#c0392b; }
.stat-card.s-warn .stat-value { color:#c0392b; }
.live-dot {
  display:inline-block; width:9px; height:9px; border-radius:50%;
  background:#3aa76d; margin-right:7px; vertical-align:middle;
  box-shadow:0 0 0 0 rgba(58,167,109,.6); animation:livePulse 1.8s infinite;
}
@keyframes livePulse {
  0% { box-shadow:0 0 0 0 rgba(58,167,109,.55); }
  70% { box-shadow:0 0 0 8px rgba(58,167,109,0); }
  100% { box-shadow:0 0 0 0 rgba(58,167,109,0); }
}

/* ---- General polish (subtle, tasteful) ---- */
.stat-card { position:relative; overflow:hidden; transition:transform .18s ease, box-shadow .18s ease; }
.stat-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); }
.data-table tbody tr { transition:background .12s ease; }
.data-table tbody tr:hover { background:rgba(181,85,31,.04); }
.btn { transition:transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease; }
.btn:active { transform:translateY(1px); }
.card, .product-card { transition:transform .2s ease, box-shadow .2s ease; }
.admin-nav-item { transition:background .14s ease, color .14s ease, padding-left .14s ease; }
.admin-nav-item:hover { padding-left:20px; }
::-webkit-scrollbar { width:11px; height:11px; }
::-webkit-scrollbar-track { background:var(--parchment); }
::-webkit-scrollbar-thumb { background:rgba(122,90,60,.35); border-radius:999px; border:2px solid var(--parchment); }
::-webkit-scrollbar-thumb:hover { background:rgba(122,90,60,.55); }


/* ============================================================
   Message 19 — Analytics dashboard
   ============================================================ */
.dash-charts {
  display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:10px 0 28px;
}
.dash-card {
  background:var(--cream); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:18px 18px 16px;
  box-shadow:var(--shadow-sm); transition:box-shadow .2s ease, transform .2s ease;
}
.dash-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.dash-card-wide { grid-column:1 / -1; }
.dash-card-title {
  display:flex; align-items:center; gap:8px;
  font-size:14px; font-weight:700; color:var(--ink);
  margin-bottom:4px;
}
.dash-card-title i { color:var(--terracotta); }
.dash-canvas-wrap { position:relative; height:270px; margin-top:12px; }
.dash-card:not(.dash-card-wide) .dash-canvas-wrap { height:280px; }
@media (max-width:900px) {
  .dash-charts { grid-template-columns:1fr; }
  .dash-canvas-wrap, .dash-card:not(.dash-card-wide) .dash-canvas-wrap { height:240px; }
}


/* ============================================================
   MESSAGE 20 — Premium minimalist 3D-hybrid overhaul
   Appended last so it wins the cascade. Non-invasive: no markup
   or JS bindings changed, purely a re-skin + progressive 3D layer.
   ============================================================ */

/* ---- Refined design tokens ---- */
:root {
  --cream:      #f9f6f0;   /* premium off-white page bg */
  --parchment:  #f2ede3;   /* warm card surface */
  --ink:        #1a1512;   /* espresso / charcoal */
  --espresso:   #1c1611;
  --terracotta: #b5551f;   /* deep, non-saturated burnt rust */
  --terracotta-soft:#c4682f;
  --border:     rgba(28,22,17,.10);
  --border-strong: rgba(28,22,17,.16);
  --shadow-sm:  0 1px 2px rgba(28,22,17,.05), 0 2px 8px rgba(28,22,17,.05);
  --shadow-md:  0 6px 20px rgba(28,22,17,.09), 0 2px 6px rgba(28,22,17,.06);
  --shadow-lg:  0 24px 60px rgba(28,22,17,.16), 0 8px 24px rgba(28,22,17,.09);
  --radius:     6px;
  --radius-lg:  16px;
  --font-display:'Playfair Display','Noto Serif Georgian',Georgia,serif;
  --font-body:  'Manrope','Noto Sans Georgian',system-ui,-apple-system,'Segoe UI',sans-serif;
}

/* ---- Base typography & background ---- */
body {
  background: var(--cream) !important;
  color: var(--ink);
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.006em;
}
h1, h2, h3, .hero-title, .stat-value, .section-header h2,
.settings-card-title, .modal-title {
  font-family: var(--font-display) !important;
  letter-spacing: -0.02em;
}

/* ---- Navbar: frosted glass, editorial ---- */
.navbar {
  background: rgba(249,246,240,.72) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border) !important;
  transition: box-shadow .3s ease, background .3s ease;
}
.navbar.scrolled {
  background: rgba(249,246,240,.9) !important;
  box-shadow: 0 6px 24px rgba(28,22,17,.07);
}
.nav-btn {
  border-radius: 100px !important;
  color: var(--ink) !important;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.nav-btn:hover { background: rgba(28,22,17,.05) !important; }
.nav-btn.primary, #nav-admin-btn {
  background: var(--ink) !important; color: var(--cream) !important;
}
.nav-btn.primary:hover, #nav-admin-btn:hover {
  background: var(--terracotta) !important; color: #fff !important; transform: translateY(-1px);
}
.lang-toggle { border-radius: 100px !important; border:1px solid var(--border) !important; }
#search-input {
  background: #fff !important;
  border: 1.5px solid var(--border) !important;
}
#search-input:focus {
  border-color: var(--terracotta) !important;
  box-shadow: 0 0 0 4px rgba(181,85,31,.10) !important;
  outline: none;
}
.cart-badge { background: var(--terracotta) !important; }

/* ---- Category sub-navbar ---- */
.categories-bar {
  background: rgba(249,246,240,.7) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border) !important;
}
.cat-btn {
  border: 1px solid transparent !important;
  border-radius: 100px !important;
  color: rgba(28,22,17,.66) !important;
  font-weight: 500;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.cat-btn:hover { background: rgba(28,22,17,.05) !important; color: var(--ink) !important; transform: translateY(-1px); }
.cat-btn.active { background: var(--ink) !important; color: var(--cream) !important; border-color: var(--ink) !important; }
.cat-btn.active .cat-icon i, .cat-btn.active i { color: var(--terracotta) !important; }

/* ---- Hero: editorial layout & generous whitespace ---- */
.hero { padding-top: clamp(36px, 5vw, 72px) !important; padding-bottom: clamp(40px,6vw,88px); align-items: center; }
.hero-tag {
  display:inline-block; font-family: var(--font-body) !important;
  text-transform: uppercase; letter-spacing: .2em; font-size: 11px;
  font-weight: 600; color: var(--terracotta) !important;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.7rem) !important;
  line-height: 1.02 !important; font-weight: 800 !important;
  margin: 18px 0 22px !important;
}
.hero-title em { font-style: italic; color: var(--terracotta) !important; }
.hero-desc {
  font-size: 1.03rem !important; line-height: 1.75 !important;
  color: rgba(28,22,17,.66) !important; max-width: 46ch;
}
.hero-actions { margin-top: 30px !important; }

/* ---- Hero right: floating glassmorphism “clay” card (3D stage) ---- */
.hero-right { position: relative; perspective: 1200px; }
.hero-bg-shape {
  position:absolute; inset: 6% -4% -6% 8%;
  background: linear-gradient(160deg, rgba(181,85,31,.12), rgba(28,22,17,.05));
  border-radius: 30px; z-index:0; filter: none;
}
.hero-mosaic {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.55) !important;
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255,255,255,.65) !important;
  border-radius: 24px !important;
  box-shadow: var(--shadow-lg);
  padding: 20px !important;
  transform-style: preserve-3d;
  transition: transform .12s ease-out;
  will-change: transform;
}
.hero-mosaic > * { transform: translateZ(28px); }

/* ---- Buttons: tactile depth + magnetic-ready ---- */
.btn {
  border-radius: 100px !important;
  font-family: var(--font-body) !important; font-weight: 600 !important;
  transition: transform .14s cubic-bezier(.4,0,.2,1), box-shadow .22s ease, background .22s ease, color .22s ease, border-color .2s ease;
}
.btn-primary, .btn.btn-primary {
  background: var(--ink) !important; color: var(--cream) !important; border: none !important;
  box-shadow: 0 6px 18px rgba(28,22,17,.16);
}
.btn-primary:hover, .btn.btn-primary:hover {
  background: var(--terracotta) !important; color:#fff !important;
  box-shadow: 0 14px 30px rgba(181,85,31,.28);
}
.btn-primary:active, .btn.btn-primary:active { transform: translateY(1px) scale(.985); box-shadow: 0 3px 10px rgba(28,22,17,.22); }
.btn-outline, .btn.btn-outline {
  background: transparent !important; border: 1.5px solid var(--ink) !important; color: var(--ink) !important;
}
.btn-outline:hover, .btn.btn-outline:hover { background: var(--ink) !important; color: var(--cream) !important; }
.btn-outline:active { transform: translateY(1px) scale(.985); }
.btn-lg { padding: 15px 30px !important; font-size: 15px !important; }
.magnetic { will-change: transform; }

/* ---- Section headers: editorial ---- */
.section-label {
  text-transform: uppercase; letter-spacing: .2em; font-size: 11px;
  font-weight: 600; color: var(--terracotta) !important; font-family: var(--font-body) !important;
}
.section-header h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem) !important; }

/* ---- Product cards: crisp, layered depth ---- */
.product-card {
  background: #fff !important; border: 1px solid var(--border) !important;
  border-radius: 16px !important; box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong) !important; }

/* ---- Cards / panels shared polish ---- */
.card, .settings-card, .modal, .review-card, .dash-card, .cat-card, #category-cards > * {
  border-radius: var(--radius-lg) !important;
}

/* ---- Scroll-driven micro-depth (progressive; only applied by JS) ---- */
.reveal-up { opacity: 0; transform: translateY(26px) translateZ(0); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal-up.in-view { opacity: 1; transform: none; }

/* ============================================================
   STAT CARDS — fix washed-out coloring (white text on pale bg)
   Reworked into clean premium cards: espresso text on white,
   with a slim colored accent bar. Readable + on-brand.
   ============================================================ */
.admin-stat-grid .stat-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: 18px 18px 16px 20px !important;
  color: var(--ink) !important;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.admin-stat-grid .stat-card .stat-value { color: var(--ink) !important; font-size: 1.95rem !important; opacity: 1 !important; }
.admin-stat-grid .stat-card .stat-label { color: rgba(28,22,17,.5) !important; opacity: 1 !important; }
.admin-stat-grid .stat-card::before {
  content: '' !important; display: block !important;
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent, var(--terracotta)) !important;
}
.admin-stat-grid .stat-card.s1 { --accent: var(--terracotta); }
.admin-stat-grid .stat-card.s2 { --accent: var(--pine); }
.admin-stat-grid .stat-card.s3 { --accent: var(--gold); }
.admin-stat-grid .stat-card.s4 { --accent: var(--mountain); }
.admin-stat-grid .stat-card.s5 { --accent: #b8892f; }
.admin-stat-grid .stat-card.s6 { --accent: var(--terracotta); }
.admin-stat-grid .stat-card.s7 { --accent: var(--sky); }
.admin-stat-grid .stat-card.s8 { --accent: var(--earth); }
.admin-stat-grid .stat-card.s9 { --accent: #8a5fa0; }
.admin-stat-grid .stat-card.s-live { --accent: #2e9d5f; }
.admin-stat-grid .stat-card.s-warn { --accent: #c0392b; }
.admin-stat-grid .stat-card.s-warn .stat-value { color: #c0392b !important; }
.admin-stat-grid .stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.admin-stat-grid .stat-card .live-dot { background: #2e9d5f !important; }

/* ---- Respect reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-mosaic { transition: none !important; }
  * { scroll-behavior: auto !important; }
}


/* ============================================================
   Message 21 — polish fixes + full mobile/ACP responsiveness
   ============================================================ */

/* ---- 1) Quantity steppers: clean pill, no blocky fills ---- */
.qty-large {
  border: 1px solid var(--border) !important;
  border-radius: 100px !important;
  overflow: visible !important;
  gap: 2px; padding: 4px;
  background: transparent !important;
}
.qty-large button {
  background: transparent !important;
  width: 36px; height: 36px;
  border: none !important; border-radius: 50% !important;
  color: var(--ink); font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s ease, color .18s ease, transform .12s ease;
}
.qty-large button:hover { background: var(--ink) !important; color: var(--cream) !important; }
.qty-large button:active { transform: scale(.9); }
.qty-large span { min-width: 44px; text-align: center; }

.qty-control {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  border-radius: 100px !important;
  gap: 0 !important; padding: 2px; overflow: visible !important;
}
.qty-btn {
  background: transparent !important; border: none !important;
  width: 28px; height: 28px; padding: 0 !important;
  border-radius: 50% !important;
  display: flex; align-items: center; justify-content: center;
  transition: background .16s ease, color .16s ease;
}
.qty-btn:hover { background: var(--ink) !important; color: var(--cream) !important; }

/* ---- 2) ACP “Back to Shop” button: visible on dark sidebar ---- */
.admin-back, .btn.admin-back {
  color: var(--cream) !important;
  background: transparent !important;
  border: 1.5px solid rgba(250,247,242,.22) !important;
}
.admin-back:hover, .btn.admin-back:hover {
  background: rgba(250,247,242,.12) !important;
  color: #fff !important;
  border-color: rgba(250,247,242,.42) !important;
}

/* ---- 3) Kill the dark rounded-corner artifact on glass/cards ---- */
/* (Chromium renders black corners when backdrop-filter meets border-radius
    without clipping) */
.hero-mosaic {
  overflow: hidden !important;
  isolation: isolate;
  transform-style: flat !important;
}
/* transform lock removed in msg22 so hero float animation can run */
.hero-card, .product-card, .card, .review-card, .dash-card {
  overflow: hidden !important;
}
.hero-card { background: #fff !important; }
.hero-card-img { background: #f2ede3 !important; }

/* product/hero cards are now real links → keep them looking like cards */
a.product-card, a.hero-card, a.search-result-item {
  text-decoration: none !important; color: inherit !important; display: block;
}
a.product-card:visited, a.hero-card:visited { color: inherit !important; }

/* avoid stray horizontal scroll on small screens */
body { overflow-x: hidden; }

/* ============================================================
   RESPONSIVE — storefront
   ============================================================ */
@media (max-width: 768px) {
  .categories-inner {
    overflow-x: auto; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .categories-inner::-webkit-scrollbar { display: none; }
  .cat-btn { flex: 0 0 auto; }
  .hero-title { font-size: clamp(2rem, 9vw, 3rem) !important; }
  .section-header h2 { font-size: clamp(1.5rem, 6vw, 2rem) !important; }
  .dash-charts { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .modal { max-width: 94vw !important; width: 94vw !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .product-detail-grid { gap: 20px; }
  .container { padding: 0 14px; }
}

/* ============================================================
   RESPONSIVE — Admin Control Panel (ACP)
   Sidebar collapses into a horizontal, scrollable tab bar.
   ============================================================ */
@media (max-width: 900px) {
  #page-admin .container > div {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* un-stick + un-sticky the sidebar shell */
  #page-admin .container > div > div:first-child > div { position: static !important; }
  /* nav row becomes horizontal scroller */
  #page-admin nav {
    display: flex !important; flex-direction: row !important;
    overflow-x: auto; gap: 4px; padding: 8px !important;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  #page-admin nav::-webkit-scrollbar { display: none; }
  #page-admin .admin-nav-item {
    width: auto !important; flex: 0 0 auto;
    padding: 8px 14px !important;
    border-left: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 8px 8px 0 0;
    white-space: nowrap;
  }
  #page-admin .admin-nav-item:hover { padding-left: 14px !important; }
  #page-admin .admin-nav-item span { display: inline !important; }
  #page-admin .admin-nav-item.active {
    border-left: none !important;
    border-bottom-color: var(--gold) !important;
  }
  /* tables scroll horizontally instead of overflowing the viewport */
  #admin-content .data-table,
  #admin-content table {
    display: block; width: 100%;
    overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 600px) {
  .admin-stat-grid { grid-template-columns: 1fr 1fr !important; }
  .admin-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 380px) {
  .admin-stat-grid { grid-template-columns: 1fr !important; }
}


/* =======================================================================
   MESSAGE 22  — hero fix, responsiveness, gallery arrows, visitor mod UI
   ======================================================================= */

/* ---- Hero: restore float animation + fully kill dark corners ---- */
.hero-right { perspective: 1200px; }
/* Make the glass panel opaque enough that the shape behind never bleeds
   through the rounded corners as a dark artifact */
.hero-mosaic {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  overflow: hidden !important;
  isolation: isolate;
}
/* Soften the offset backdrop shape — no dark stop, no hard corner */
.hero-bg-shape {
  background: linear-gradient(160deg, rgba(181, 85, 31, 0.10), rgba(196, 149, 106, 0.04)) !important;
  border-radius: 32px !important;
}
/* Re-enable the gentle float (msg21 froze it) */
.hero-mosaic > * { animation: heroFloat 7s ease-in-out infinite; }
.hero-mosaic > *:nth-child(2) { animation-delay: -2.3s; }
.hero-mosaic > *:nth-child(3) { animation-delay: -4.1s; }
.hero-mosaic > *:nth-child(4) { animation-delay: -1.2s; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mosaic > * { animation: none !important; }
}

/* ---- Product gallery: arrows + slide animation + video ---- */
.gallery-stage { position: relative; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.86); color: var(--ink);
  border: 1px solid var(--border); cursor: pointer; z-index: 4;
  box-shadow: var(--shadow-md); opacity: 0; transition: opacity .25s ease, transform .25s ease, background .2s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.gallery-stage:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: var(--ink); color: #fff; }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-arrow.prev:hover { transform: translateY(-50%) translateX(-2px); }
.gallery-arrow.next:hover { transform: translateY(-50%) translateX(2px); }
@media (hover: none) { .gallery-arrow { opacity: .92; } }
.gallery-main { position: relative; }
.gallery-slide { width: 100%; height: 100%; }
.gallery-slide.anim-in { animation: gallerySlideIn .38s cubic-bezier(.22,.61,.36,1); }
.gallery-slide.dir-prev.anim-in { animation-name: gallerySlideInPrev; }
@keyframes gallerySlideIn { from { opacity: 0; transform: translateX(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes gallerySlideInPrev { from { opacity: 0; transform: translateX(-24px) scale(.98); } to { opacity: 1; transform: none; } }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-video { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; background: #000; object-fit: contain; }
.gallery-thumb.thumb-video { position: relative; color: var(--ink); background: var(--ink); }
.gallery-thumb.thumb-video i { color: #fff; font-size: 15px; }
.gallery-counter {
  position: absolute; bottom: 12px; right: 12px; z-index: 4;
  background: rgba(26, 20, 16, 0.72); color: #fff; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px; letter-spacing: .3px;
}

/* ---- Responsiveness: declutter the mobile navbar ---- */
@media (max-width: 860px) {
  /* Hide the desktop nav-label text so buttons are compact icons */
  .nav-links .nav-label { display: none; }
  .nav-btn { padding: 8px 10px; }
}
@media (max-width: 720px) {
  /* Search collapses into the mobile menu; keep the bar clean */
  .navbar .nav-search { display: none !important; }
  /* Only keep the essentials on the bar: cart, admin bolt, bell, lang, menu */
  .nav-links > .nav-btn:nth-child(1),   /* Shop  */
  .nav-links > .nav-btn:nth-child(2),   /* Saved */
  #nav-auth-btn, #nav-profile-btn { display: none !important; }
  .nav-links { gap: 2px; }
  .nav-inner { gap: 8px; }
  .hamburger { display: inline-flex !important; }
}
@media (max-width: 420px) {
  .nav-logo img { height: 28px !important; }
  .nav-btn { padding: 7px 8px; font-size: 15px; }
}

/* ---- Responsiveness: keep ACP content inside the viewport ---- */
@media (max-width: 900px) {
  #page-admin .container { overflow-x: hidden; }
  #page-admin .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #page-admin table { min-width: 640px; }
  .vis-grid { grid-template-columns: 1fr !important; }
  .vis-map { height: 320px !important; }
}
@media (max-width: 600px) {
  .user-card-grid { grid-template-columns: 1fr !important; }
}

/* ---- Visitor moderation UI ---- */
.vis-live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(58, 125, 93, 0.12); color: var(--pine);
  font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 100px;
}
.vis-live-pill .live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--pine);
  box-shadow: 0 0 0 0 rgba(58, 125, 93, 0.5); animation: visPulse 1.8s infinite;
}
@keyframes visPulse {
  0%   { box-shadow: 0 0 0 0 rgba(58, 125, 93, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(58, 125, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(58, 125, 93, 0); }
}
.vis-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 640px) { .vis-stats { grid-template-columns: repeat(2, 1fr); } }
.vis-stat {
  background: var(--parchment); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px;
}
.vis-stat .n { font-size: 1.7rem; font-weight: 800; font-family: 'Playfair Display', serif; color: var(--ink); line-height: 1; }
.vis-stat .l { font-size: 12px; color: rgba(26, 20, 16, 0.55); margin-top: 6px; text-transform: uppercase; letter-spacing: .5px; }
.vis-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
.vis-map {
  height: 460px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: #14100d; z-index: 0;
}
.vis-list { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.vis-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 11px 13px; transition: border-color .2s, box-shadow .2s;
}
.vis-row:hover { border-color: var(--earth-light); box-shadow: var(--shadow-sm); }
.vis-flag {
  width: 42px; height: 30px; border-radius: 5px; object-fit: cover; flex: 0 0 auto;
  border: 1px solid var(--border); background: var(--parchment);
}
.vis-flag-none {
  width: 42px; height: 30px; border-radius: 5px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--parchment); border: 1px solid var(--border); color: rgba(26,20,16,.4);
}
.vis-main { min-width: 0; flex: 1; }
.vis-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.vis-name .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.vis-name .dot.on { background: var(--pine); }
.vis-name .dot.off { background: rgba(26,20,16,.25); }
.vis-guest { color: rgba(26,20,16,.6); font-weight: 600; }
.vis-sub { font-size: 12px; color: rgba(26,20,16,.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis-sub .ip { font-family: 'Manrope', monospace; }
.vis-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.vis-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 100px;
  background: var(--parchment); border: 1px solid var(--border); color: rgba(26,20,16,.7);
}
.vis-tag.page { background: rgba(181,85,31,.1); border-color: rgba(181,85,31,.2); color: var(--terracotta); font-weight: 600; }
.vis-dur { font-size: 12px; color: rgba(26,20,16,.5); white-space: nowrap; text-align: right; flex: 0 0 auto; }
.vis-badge-admin { font-size: 10px; font-weight: 700; color: #7a5e0e; background: rgba(201,168,76,.18); padding: 1px 7px; border-radius: 100px; }

/* Leaflet custom pin + popup */
.leaflet-container { background: #14100d !important; font-family: inherit; }
.vis-pin { position: relative; }
.vis-pin .vis-pin-dot {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: var(--terracotta); border: 2px solid #fff; border-radius: 50%; z-index: 2;
  box-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.vis-pin .vis-pin-pulse {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: rgba(181,85,31,.5); border-radius: 50%; animation: visPinPulse 1.9s infinite ease-out;
}
@keyframes visPinPulse {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(3.6); opacity: 0; }
}
.leaflet-popup-content-wrapper {
  background: var(--ink); color: #f4ede2; border-radius: 12px; box-shadow: 0 10px 34px rgba(0,0,0,.5);
}
.leaflet-popup-tip { background: var(--ink); }
.leaflet-popup-content { margin: 0; }
.vis-pop { display: flex; gap: 0; width: 220px; overflow: hidden; border-radius: 12px; }
.vis-pop-flag { width: 78px; height: auto; object-fit: cover; flex: 0 0 auto; align-self: stretch; }
.vis-pop-body { padding: 10px 12px; min-width: 0; }
.vis-pop-body strong { display: block; font-size: 14px; margin-bottom: 2px; }
.vis-pop-body .loc { font-size: 12px; color: rgba(244,237,226,.7); }
.vis-pop-path { font-size: 11px; margin-top: 6px; color: var(--earth-light); font-weight: 600; }


/* =======================================================================
   MESSAGE 23  — hero stage rewrite, cart X, coupon, audit filters,
                 account-deactivated overlay
   ======================================================================= */

/* ---- Hero right: framed 3D gallery stage (kills corner bleed for good) ---- */
.hero-right { position: relative; perspective: 1200px; display: block !important; }
.hero-stage {
  position: relative;
  overflow: hidden;                 /* clip everything to the rounded frame */
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(158deg, #ffffff 0%, #F9F6F0 100%);
  border: 1px solid rgba(26, 20, 16, 0.06);
  box-shadow: 0 30px 60px -24px rgba(26, 20, 16, 0.28), 0 2px 8px rgba(26, 20, 16, 0.04);
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
  will-change: transform;
}
/* organic glow fills the frame exactly — inset:0 + inherit radius = no peeking corners */
.hero-stage .hero-bg-shape {
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 120% at 18% 12%, rgba(181, 85, 31, 0.12), transparent 58%),
    radial-gradient(120% 120% at 88% 92%, rgba(201, 161, 90, 0.12), transparent 55%) !important;
  z-index: 0; pointer-events: none; filter: none;
}
/* mosaic is now just a transparent grid inside the frame (no glass box, no border) */
.hero-stage .hero-mosaic {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  transform: none !important;   /* tilt lives on the stage now */
}
/* product cards breathe like gallery pieces */
.hero-stage .hero-card {
  background: #fff !important;
  border: 1px solid rgba(26, 20, 16, 0.06) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  box-shadow: 0 8px 22px -14px rgba(26, 20, 16, 0.35) !important;
  transform: translateZ(30px);
}
/* Ambient float (6-8px, soft ease) */
.hero-stage .hero-mosaic > * { animation: heroFloat23 7s ease-in-out infinite; }
.hero-stage .hero-mosaic > *:nth-child(2) { animation-delay: -2.3s; }
.hero-stage .hero-mosaic > *:nth-child(3) { animation-delay: -4.1s; }
.hero-stage .hero-mosaic > *:nth-child(4) { animation-delay: -1.2s; }
@keyframes heroFloat23 {
  0%, 100% { transform: translateZ(30px) translateY(0); }
  50%      { transform: translateZ(30px) translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stage .hero-mosaic > * { animation: none !important; }
  .hero-stage { transition: none !important; }
}

/* ---- Cart remove (X): keep it visible on hover ---- */
.cart-remove, .cart-remove i { color: rgba(26, 20, 16, 0.4) !important; background: none !important; }
.cart-remove:hover, .cart-remove:hover i { color: var(--terracotta) !important; background: none !important; }

/* ---- Upload preview: force side-by-side thumbnails ---- */
.upload-preview { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; align-items: flex-start; }
.upload-preview-item { flex: 0 0 auto; }

/* ---- Audit log filters row ---- */
.audit-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.audit-filter-select {
  height: 42px; padding: 0 34px 0 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--parchment) url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b5551f' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.audit-filter-select:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(181, 85, 31, 0.12); }

/* ---- Account deactivated overlay ---- */
#account-disabled-overlay {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(26, 20, 16, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: accFade .3s ease both;
}
@keyframes accFade { from { opacity: 0; } to { opacity: 1; } }
.acc-disabled-card {
  max-width: 460px; width: 100%; text-align: center;
  background: var(--parchment, #F9F6F0);
  border: 1px solid rgba(26, 20, 16, 0.08);
  border-radius: 24px; padding: 40px 32px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
  animation: accPop .38s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes accPop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.acc-disabled-icon {
  width: 76px; height: 76px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 30px; color: #fff;
  background: linear-gradient(150deg, var(--terracotta, #b5551f), #8a3d14);
  box-shadow: 0 12px 30px -10px rgba(181, 85, 31, 0.7);
}
.acc-disabled-card h2 { font-family: var(--font-display, 'Playfair Display', serif); font-size: 26px; margin-bottom: 12px; color: var(--ink, #1a1410); }
.acc-disabled-card p { color: rgba(26, 20, 16, 0.68); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.acc-disabled-card .btn { display: inline-flex; align-items: center; }

/* MSG26 — verify modal + resend cooldown */
.verify-code-input { text-align:center; font-size:26px; letter-spacing:12px; font-weight:700; padding:14px 10px 14px 22px; }
.verify-resend-btn { background:none; border:none; color:#b5551f; font-size:13px; cursor:pointer; padding:6px 8px; font-family:inherit; }
.verify-resend-btn:hover { text-decoration:underline; }
.verify-resend-btn:disabled, .verify-resend-btn.is-cooling { color:#b0a89c; cursor:not-allowed; text-decoration:none; }

/* ── Audit filters alignment + pagination (msg26) ── */
.audit-filters { align-items: center; }
.audit-filters .admin-search { margin-bottom: 0; }
.audit-filters .admin-search-input,
.audit-filters .audit-filter-select { height: 42px; box-sizing: border-box; }
.audit-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.audit-page-info { color: var(--earth); font-size: 13px; }
.audit-page-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.audit-page-btn { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--border); background: var(--cream); color: var(--ink); border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all .15s ease; }
.audit-page-btn:hover:not(:disabled):not(.active) { border-color: var(--terracotta); color: var(--terracotta); }
.audit-page-btn.active { background: var(--terracotta); color: #fff; border-color: var(--terracotta); cursor: default; }
.audit-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.audit-page-ellipsis { color: var(--earth); padding: 0 2px; }
.vis-tag.product { background: rgba(181,85,31,.12); color: var(--terracotta); }

/* ── Bulk selection (msg27) ── */
.bulk-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 12px; background: var(--parchment); border: 1px solid var(--border); border-radius: var(--radius); }
.bulk-selectall { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; user-select: none; }
.bulk-count-wrap { font-size: 13px; color: var(--earth); }
.bulk-count { font-weight: 700; color: var(--terracotta); }
.bulk-th { width: 34px; text-align: center; }
.bulk-td { width: 34px; text-align: center; }
.bulk-cb { width: 16px; height: 16px; accent-color: var(--terracotta); cursor: pointer; vertical-align: middle; }
input.bulk-cb, .bulk-selectall input { accent-color: var(--terracotta); }
.bulk-card-check { position: absolute; top: 12px; left: 12px; z-index: 3; background: rgba(255,255,255,.9); border-radius: 6px; padding: 3px 4px 1px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.user-card { position: relative; }
