/* ═══════════════════════════════════════════════════════════════
   Amygold Shop — Premium Gold Jewelry TMAP Styles
   Gold × Dark × Cream palette
   ═══════════════════════════════════════════════════════════════ */

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

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --gold:       #D4AF37;
  --gold-light: #E8C84A;
  --gold-dark:  #B8960C;
  --dark:       #1A1A1A;
  --dark-2:     #2D2D2D;
  --surface:    #F5F5F0;
  --white:      #FFFFFF;
  --border:     #E0E0E0;
  --error:      #E53935;
  --success:    #43A047;
  --info:       #1976D2;
  --warning:    #F9A825;
  --text-muted: #757575;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.12);

  --transition: 200ms ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--dark);
  line-height: 1.5;
  min-height: 100dvh;
  padding-bottom: 80px; /* space for bottom nav */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: var(--radius-pill); }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
p  { font-size: 0.875rem; color: var(--text-muted); }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Header ─────────────────────────────────────────────────── */
.tmap-header {
  background: var(--dark);
  color: var(--white);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tmap-header .logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.tmap-header .tagline {
  font-size: 0.7rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── Bottom Navigation ──────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  z-index: 200;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.bottom-nav a:hover { color: var(--white); }
.bottom-nav a.active { color: var(--gold); }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav .cart-badge {
  background: var(--gold);
  color: var(--dark);
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 1px 5px;
  min-width: 18px;
  text-align: center;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  width: 100%;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-secondary {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-secondary:hover { background: var(--dark-2); }
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-ghost:hover { background: rgba(212,175,55,0.1); }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.card-body { padding: 16px; }

/* ── Product Grid ──────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card:active { transform: scale(0.98); }
.product-card .p-img {
  aspect-ratio: 1;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.product-card .p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .p-img .sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .p-img .sold-overlay span {
  background: var(--error);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.product-card .p-info { padding: 10px; }
.product-card .p-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-card .p-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.product-card .p-weight {
  background: rgba(212,175,55,0.15);
  color: var(--gold-dark);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.product-card .p-category {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.product-card .p-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-dark);
}
.product-card .p-price::before { content: 'RM '; font-size: 0.75rem; }

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
  padding: 32px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(212,175,55,0.15) 0%, transparent 60%);
}
.hero h1 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 8px;
  position: relative;
}
.hero h1 span { color: var(--gold); }
.hero p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 20px;
  position: relative;
}
.hero .btn { max-width: 240px; margin: 0 auto; position: relative; }

/* ── Section Titles ────────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--dark);
  padding: 16px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title a {
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 600;
  font-family: var(--font-body);
}

/* ── Category Pills ─────────────────────────────────────────── */
.category-scroll {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dark-2);
  transition: var(--transition);
  cursor: pointer;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  font-weight: 600;
}

/* ── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--dark);
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--gold); }

/* ── Product Detail ─────────────────────────────────────────── */
.product-detail .p-gallery {
  aspect-ratio: 1;
  background: var(--dark);
  position: relative;
}
.product-detail .p-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail .p-gallery .back-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.product-detail .p-body { padding: 20px; }
.product-detail .p-category-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 8px;
}
.product-detail .p-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.product-detail .p-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.product-detail .p-price::before { content: 'RM '; font-size: 1.1rem; }
.product-detail .p-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.product-detail .p-meta-item {
  background: var(--surface);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.product-detail .p-meta-item .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.product-detail .p-meta-item .value {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark);
}
.product-detail .p-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}
.product-detail .p-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px 20px;
}
.product-detail .stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
}
.product-detail .stock-badge.available {
  background: rgba(67,160,71,0.1);
  color: var(--success);
}
.product-detail .stock-badge.sold {
  background: rgba(229,57,53,0.1);
  color: var(--error);
}

/* ── Cart ───────────────────────────────────────────────────── */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.cart-item:last-child { border-bottom: none; }
.cart-item .ci-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface);
  flex-shrink: 0;
}
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.cart-item .ci-price {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.9rem;
}
.cart-item .ci-remove {
  color: var(--error);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: var(--transition);
}
.cart-item .ci-remove:hover { opacity: 1; }
.cart-summary {
  background: var(--white);
  border-top: 2px solid var(--gold);
  padding: 16px;
  position: sticky;
  bottom: 68px;
}
.cart-summary .total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.cart-summary .total-label { font-size: 0.875rem; color: var(--text-muted); }
.cart-summary .total-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-dark);
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
}
.cart-empty svg { width: 64px; height: 64px; color: var(--border); margin: 0 auto 16px; }
.cart-empty h3 { font-family: var(--font-display); margin-bottom: 8px; color: var(--dark); }

/* ── Checkout ───────────────────────────────────────────────── */
.checkout-section {
  padding: 16px;
  max-width: 480px;
  margin: 0 auto;
}
.checkout-section h2 {
  font-family: var(--font-display);
  margin-bottom: 16px;
  color: var(--dark);
}
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  transition: var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-error { font-size: 0.75rem; color: var(--error); margin-top: 4px; }

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}
.payment-option:hover { border-color: var(--gold); }
.payment-option.selected { border-color: var(--gold); background: rgba(212,175,55,0.05); }
.payment-option input[type="radio"] { display: none; }
.payment-option .p-icon {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.payment-option .p-text { flex: 1; }
.payment-option .p-title { font-weight: 600; font-size: 0.875rem; color: var(--dark); }
.payment-option .p-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

.order-summary-card {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}
.order-summary-card h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 12px;
}
.order-summary-card .osi {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.order-summary-card .osi:last-child {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 8px;
  margin-top: 8px;
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
}

/* ── Order Confirmation ─────────────────────────────────────── */
.order-success {
  text-align: center;
  padding: 40px 20px;
  max-width: 400px;
  margin: 0 auto;
}
.order-success .success-icon {
  width: 72px;
  height: 72px;
  background: rgba(67,160,71,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--success);
}
.order-success .success-icon svg { width: 36px; height: 36px; }
.order-success h1 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 8px; }
.order-success .order-num {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.order-num strong { color: var(--gold-dark); font-size: 1.1rem; }
.status-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  margin: 20px 0;
}
.tl-item {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 16px;
}
.tl-item:not(:last-child) .tl-line {
  position: absolute;
  left: 11px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.tl-item.done:not(:last-child) .tl-line { background: var(--gold); }
.tl-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  z-index: 1;
  color: white;
}
.tl-item.done .tl-dot { background: var(--gold); color: var(--dark); }
.tl-item.active .tl-dot { background: var(--gold); color: var(--dark); animation: pulse 2s infinite; }
.tl-content .tl-title { font-weight: 600; font-size: 0.8rem; color: var(--dark); }
.tl-content .tl-date { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(212,175,55,0); }
}

/* ── Order History ──────────────────────────────────────────── */
.order-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.order-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.order-card-header {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.order-card-header .oc-num { font-weight: 700; font-size: 0.8rem; color: var(--dark); }
.order-card-header .oc-date { font-size: 0.7rem; color: var(--text-muted); }
.order-card-body { padding: 10px 14px; }
.order-card-body .oc-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.order-card-footer {
  padding: 10px 14px;
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-card-footer .oc-total { font-weight: 700; color: var(--gold-dark); font-size: 0.9rem; }

/* ── Status Badges ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-baru     { background: rgba(249,168,37,0.15); color: #E65100; }
.badge-diproses { background: rgba(25,118,210,0.15); color: var(--info); }
.badge-hantar   { background: rgba(156,39,176,0.15); color: #7B1FA2; }
.badge-selesai  { background: rgba(67,160,71,0.15);  color: var(--success); }
.badge-batal    { background: rgba(229,57,53,0.15);   color: var(--error); }
.badge-active   { background: rgba(67,160,71,0.15);   color: var(--success); }
.badge-sold     { background: rgba(229,57,53,0.15);   color: var(--error); }

/* ── Dashboard Layout ────────────────────────────────────────── */
.dash-header {
  background: var(--dark);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.dash-header h1 { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); }
.dash-header a { color: rgba(255,255,255,0.6); font-size: 0.75rem; }
.dash-nav {
  background: var(--dark-2);
  display: flex;
  gap: 0;
  padding: 0 8px;
  overflow-x: auto;
}
.dash-nav a {
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}
.dash-nav a:hover { color: var(--white); }
.dash-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }
.dash-content { padding: 16px; }

/* ── Dashboard Stats ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border);
}
.stat-card .s-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 4px; }
.stat-card .s-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--dark); }
.stat-card.gold { background: var(--dark); }
.stat-card.gold .s-label { color: rgba(255,255,255,0.5); }
.stat-card.gold .s-value { color: var(--gold); }

/* ── Dashboard Table ────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.data-table th {
  text-align: left;
  padding: 8px 10px;
  background: var(--surface);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table .t-img { width: 36px; height: 36px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface); }
.data-table tr:hover td { background: rgba(212,175,55,0.03); }
.table-wrapper { background: var(--white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }

/* ── Toast Notifications ─────────────────────────────────────── */
.toast-container { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; width: 90%; max-width: 360px; }
.toast {
  background: var(--dark);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--error); }
.toast.info    { border-left: 3px solid var(--gold); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}
.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}
.modal-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-family: var(--font-display); font-size: 1rem; }
.modal-close { cursor: pointer; color: var(--text-muted); padding: 4px; }
.modal-body { padding: 16px; }
.modal-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.modal-footer .btn { flex: 1; }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── HX Indicators ──────────────────────────────────────────── */
.htmx-indicator { opacity: 0; transition: opacity 200ms; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.htmx-request ~ .btn-text { display: none; }
.btn-loading { display: none; }
.htmx-request .btn-loading { display: inline-flex; align-items: center; gap: 6px; }

/* ── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-gold   { color: var(--gold-dark); }
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: 0.75rem; }
.text-xs     { font-size: 0.65rem; }
.font-display { font-family: var(--font-display); }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.p-16  { padding: 16px; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Dashboard Login ────────────────────────────────────────── */
.login-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  padding: 20px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.login-card h1 { font-family: var(--font-display); color: var(--gold-dark); margin-bottom: 4px; }
.login-card p  { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 24px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (min-width: 600px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
