/* ========================================
   Akina Sumi — Theme
   ألوان: بيج + أبيض كريمي + ذهبي
   ======================================== */

:root {
  /* Brand Colors */
  --beige: #d4b896;
  --beige-light: #e8d4b8;
  --beige-dark: #a8916d;
  --cream: #fdf8f0;
  --cream-soft: #f7f0e1;
  --gold: #c9a961;
  --gold-light: #e0c989;
  --gold-dark: #a88840;

  /* Neutral */
  --ink: #2a2419;
  --ink-soft: #5a4f3f;
  --ink-muted: #8a7d6a;
  --line: #e8dcc4;
  --line-soft: #f0e6d2;

  /* Semantic */
  --success: #4a7c4e;
  --warning: #c9883e;
  --danger: #a8413b;
  --info: #6b8e9e;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(42, 36, 25, 0.06), 0 1px 2px rgba(42, 36, 25, 0.04);
  --shadow-md: 0 4px 12px rgba(42, 36, 25, 0.08), 0 2px 4px rgba(42, 36, 25, 0.04);
  --shadow-lg: 0 12px 32px rgba(42, 36, 25, 0.12), 0 4px 8px rgba(42, 36, 25, 0.06);
  --shadow-gold: 0 8px 24px rgba(201, 169, 97, 0.25);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Fonts */
  --font-sans: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
  --font-display: 'Reem Kufi', 'Tajawal', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.3; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p { color: var(--ink-soft); }

a { color: var(--gold-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }

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

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

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: .95rem;
  transition: all .25s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-ghost {
  background: var(--cream-soft);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--beige-light); }

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #8a3530; }

.btn-block { width: 100%; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ============== Header ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  display: grid; place-items: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.nav-main {
  display: flex; gap: 1.75rem; align-items: center;
}
.nav-main a {
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
  padding: .25rem 0;
}
.nav-main a:hover, .nav-main a.active { color: var(--ink); }
.nav-main a.active::after {
  content: '';
  position: absolute; bottom: -4px; right: 0; left: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.header-actions { display: flex; gap: .5rem; align-items: center; }
.icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--cream-soft);
  display: grid; place-items: center;
  color: var(--ink);
  transition: all .2s;
  position: relative;
}
.icon-btn:hover { background: var(--beige-light); }
.cart-badge {
  position: absolute;
  top: -2px; left: -2px;
  background: var(--gold);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  padding: 0 5px;
  border: 2px solid var(--cream);
}
.menu-toggle { display: none; }

/* ============== Hero ============== */
.hero {
  background:
    radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 184, 150, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, var(--cream) 0%, var(--cream-soft) 100%);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(201, 169, 97, 0.15);
  color: var(--gold-dark);
  padding: .4rem 1rem;
  border-radius: var(--r-full);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(201, 169, 97, 0.3);
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title .accent { color: var(--gold-dark); -webkit-text-fill-color: var(--gold-dark); }
.hero-desc {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--beige-light), var(--beige));
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--ink-muted);
  font-size: 5rem;
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige) 50%, var(--gold-light) 100%);
}
.hero-floating-card {
  position: absolute;
  background: var(--cream);
  padding: 1rem 1.25rem;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .75rem;
  font-size: .9rem;
}
.hero-floating-card.card-1 { bottom: 1.5rem; right: 1.5rem; }
.hero-floating-card .price-tag { color: var(--gold-dark); font-weight: 700; font-size: 1.05rem; }

/* ============== Sections ============== */
.section { padding: 4rem 0; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head .eyebrow {
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: 2px;
  font-size: .85rem;
  margin-bottom: .75rem;
  text-transform: uppercase;
}
.section-head h2 { margin-bottom: .75rem; }
.section-head p { max-width: 600px; margin: 0 auto; }

/* ============== Categories ============== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.cat-card {
  background: var(--cream-soft);
  border-radius: var(--r-lg);
  padding: 2rem 1rem;
  text-align: center;
  transition: all .3s;
  border: 1px solid transparent;
  cursor: pointer;
  display: block;
  color: var(--ink);
}
.cat-card:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}
.cat-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: grid; place-items: center;
  color: #fff;
  font-size: 1.5rem;
}
.cat-name { font-weight: 600; }
.cat-count { color: var(--ink-muted); font-size: .85rem; margin-top: .25rem; }

/* ============== Product Card ============== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .3s;
  border: 1px solid var(--line-soft);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-image {
  aspect-ratio: 1;
  background: var(--cream-soft);
  overflow: hidden;
  position: relative;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-image-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--ink-muted);
  font-size: 3rem;
  background: linear-gradient(135deg, var(--cream-soft) 0%, var(--beige-light) 100%);
}
.product-badge {
  position: absolute;
  top: .75rem; right: .75rem;
  background: var(--danger);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .65rem;
  border-radius: var(--r-full);
}
.product-info { padding: 1rem 1.1rem 1.2rem; }
.product-cat { color: var(--ink-muted); font-size: .8rem; font-weight: 500; }
.product-name { font-weight: 600; color: var(--ink); margin: .35rem 0; font-size: 1rem; }
.product-price-row { display: flex; align-items: baseline; gap: .5rem; margin-top: .5rem; }
.product-price { color: var(--gold-dark); font-weight: 700; font-size: 1.15rem; }
.product-old-price { color: var(--ink-muted); text-decoration: line-through; font-size: .85rem; }
.product-action {
  margin-top: .75rem;
  width: 100%;
  padding: .6rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: .85rem;
  transition: background .2s;
}
.product-action:hover { background: var(--gold-dark); }
.product-action.added { background: var(--success); }

/* ============== Filters ============== */
.filter-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
}
.filter-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  padding: .5rem 1.1rem;
  border-radius: var(--r-full);
  background: var(--cream-soft);
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s;
  border: 1px solid transparent;
}
.chip:hover, .chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.search-box {
  position: relative;
  flex: 0 0 280px;
  max-width: 100%;
}
.search-box input {
  width: 100%;
  padding: .55rem 1rem .55rem 2.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--cream);
}
.search-box::before {
  content: '🔍';
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .9rem;
  opacity: .6;
}

/* ============== Promo Banner ============== */
.promo-banner {
  background: linear-gradient(135deg, var(--ink) 0%, #1a1610 100%);
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.promo-banner::after {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 60%);
  opacity: .15;
}
.promo-banner h2 { color: var(--cream); }
.promo-banner h2 .accent { color: var(--gold-light); }
.promo-banner p { color: var(--beige-light); margin-top: .5rem; max-width: 500px; }
.promo-actions { display: flex; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* ============== Footer ============== */
.site-footer {
  background: var(--ink);
  color: var(--beige-light);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-col h4 { color: var(--cream); margin-bottom: 1rem; font-size: 1.05rem; }
.footer-col a, .footer-col p { color: var(--beige-light); display: block; padding: .25rem 0; font-size: .9rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(232, 220, 196, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
  color: var(--ink-muted);
}
.social-row { display: flex; gap: .5rem; margin-top: 1rem; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(232, 220, 196, 0.1);
  display: grid; place-items: center;
  color: var(--beige-light);
}
.social-row a:hover { background: var(--gold); color: #fff; }

/* ============== Cart Drawer ============== */
.overlay {
  position: fixed; inset: 0;
  background: rgba(42, 36, 25, 0.5);
  z-index: 999;
  opacity: 0; visibility: hidden;
  transition: all .3s;
}
.overlay.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--cream);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform .35s ease;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-header h3 { margin: 0; }
.drawer-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream-soft);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.cart-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-row:last-child { border-bottom: none; }
.cart-row .img-box {
  width: 70px; height: 70px;
  border-radius: var(--r-md);
  background: var(--cream-soft);
  overflow: hidden;
}
.cart-row .img-box img { width: 100%; height: 100%; object-fit: cover; }
.cart-row .name { font-weight: 600; font-size: .9rem; }
.cart-row .price { color: var(--gold-dark); font-weight: 700; font-size: .9rem; }
.qty-control { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; }
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cream-soft);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: .9rem;
}
.qty-btn:hover { background: var(--beige-light); }
.qty-num { min-width: 20px; text-align: center; font-weight: 600; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-muted); }
.cart-empty-icon { font-size: 3rem; margin-bottom: .5rem; }

.cart-summary-row {
  display: flex; justify-content: space-between;
  margin-bottom: .5rem;
  font-size: .95rem;
}
.cart-summary-row.total {
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
  border-top: 1px dashed var(--line);
  padding-top: .75rem; margin-top: .5rem;
}
.cart-summary-row .price { color: var(--gold-dark); font-weight: 700; }

/* ============== Modal ============== */
.modal {
  position: fixed; inset: 0;
  background: rgba(42, 36, 25, 0.55);
  z-index: 1100;
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal.open { display: flex; }
.modal-content {
  background: var(--cream);
  border-radius: var(--r-xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-content.large { max-width: 860px; }
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-body { padding: 1.5rem; overflow-y: auto; }
.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  background: #fff;
  display: flex; gap: .75rem; justify-content: flex-end;
}

/* ============== Forms ============== */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--ink);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: all .2s;
  font-size: .95rem;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: .8rem; color: var(--ink-muted); margin-top: .3rem; }
.form-error { color: var(--danger); font-size: .85rem; margin-top: .3rem; }
.form-checkbox {
  display: flex; align-items: center; gap: .5rem;
  cursor: pointer;
}
.form-checkbox input { width: 18px; height: 18px; accent-color: var(--gold); }

.payment-tabs {
  display: flex; gap: .5rem; margin-bottom: 1.25rem;
  background: var(--cream-soft);
  padding: .35rem;
  border-radius: var(--r-full);
}
.payment-tab {
  flex: 1;
  padding: .65rem 1rem;
  border-radius: var(--r-full);
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s;
  color: var(--ink-soft);
}
.payment-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.bank-info-card {
  background: linear-gradient(135deg, var(--cream-soft) 0%, var(--cream) 100%);
  border: 1.5px solid var(--gold-light);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.bank-info-row {
  display: flex; justify-content: space-between;
  padding: .4rem 0;
  font-size: .95rem;
  border-bottom: 1px dashed var(--line-soft);
}
.bank-info-row:last-child { border-bottom: none; }
.bank-info-row .label { color: var(--ink-muted); }
.bank-info-row .value { font-weight: 700; color: var(--ink); font-family: 'Courier New', monospace; }

.upload-zone {
  border: 2px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #fff;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--gold);
  background: var(--cream-soft);
}
.upload-zone.has-file {
  border-style: solid;
  border-color: var(--success);
}
.upload-icon { font-size: 2rem; margin-bottom: .5rem; }
.upload-preview { max-width: 100%; max-height: 200px; margin: 0 auto; border-radius: var(--r-md); }

/* ============== Admin Layout ============== */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--ink);
  color: var(--cream);
  padding: 1.5rem 1rem;
  display: flex; flex-direction: column;
  gap: .25rem;
}
.admin-sidebar .brand { color: var(--cream); margin-bottom: 1.5rem; }
.admin-sidebar .brand .brand-mark { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); color: var(--ink); }
.admin-nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--r-md);
  color: var(--beige-light);
  font-weight: 500;
  transition: all .2s;
  cursor: pointer;
}
.admin-nav-item:hover { background: rgba(232, 220, 196, 0.08); color: var(--cream); }
.admin-nav-item.active { background: var(--gold); color: #fff; }
.admin-nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.admin-main { padding: 2rem 2.5rem; background: var(--cream-soft); }
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap; gap: 1rem;
}
.admin-title { font-size: 1.6rem; font-weight: 700; }
.admin-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; right: 0; width: 4px; height: 100%;
  background: var(--gold);
}
.stat-card .label { color: var(--ink-muted); font-size: .85rem; font-weight: 500; }
.stat-card .value { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin-top: .3rem; }
.stat-card .delta { font-size: .8rem; color: var(--success); margin-top: .25rem; }

/* ============== Table ============== */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: .85rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--line-soft);
  font-size: .92rem;
}
.table th {
  background: var(--cream-soft);
  font-weight: 700;
  color: var(--ink);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.table tbody tr:hover { background: var(--cream-soft); }
.table .thumb {
  width: 50px; height: 50px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--cream-soft);
}

.status-pill {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: var(--r-full);
  font-size: .78rem;
  font-weight: 600;
}
.status-pill.pending { background: #fef3e0; color: var(--warning); }
.status-pill.confirmed { background: #e3f2e7; color: var(--success); }
.status-pill.rejected { background: #fce5e3; color: var(--danger); }
.status-pill.delivered { background: #d6e7f0; color: var(--info); }

.table-actions { display: flex; gap: .35rem; }
.table-actions button {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--cream-soft);
  color: var(--ink);
  display: grid; place-items: center;
  font-size: .9rem;
}
.table-actions button:hover { background: var(--beige-light); }
.table-actions button.danger:hover { background: var(--danger); color: #fff; }

/* ============== Auth ============== */
.auth-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-soft) 100%);
}
.auth-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  display: flex; align-items: center; gap: .75rem; justify-content: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.auth-title { text-align: center; margin-bottom: .25rem; }
.auth-sub { text-align: center; color: var(--ink-muted); margin-bottom: 1.5rem; font-size: .9rem; }

/* ============== Toast ============== */
.toast-wrap {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem;
  z-index: 1200;
  display: flex; flex-direction: column; gap: .5rem;
}
.toast {
  background: var(--ink);
  color: var(--cream);
  padding: .85rem 1.25rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  min-width: 260px;
  display: flex; align-items: center; gap: .75rem;
  animation: slideIn .3s ease;
  font-size: .9rem;
}
.toast.success { border-right: 4px solid var(--success); }
.toast.error { border-right: 4px solid var(--danger); }
.toast.info { border-right: 4px solid var(--info); }
@keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============== Empty State ============== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ink-muted);
}
.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--ink); margin-bottom: .5rem; }

/* ============== Responsive ============== */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 768px) {
  .hero { padding: 2.5rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .nav-main { display: none; }
  .menu-toggle { display: grid; }
  .nav-main.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; right: 0; left: 0;
    background: var(--cream);
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0; width: 240px;
    transform: translateX(100%); transition: transform .3s; z-index: 200;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { padding: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .promo-banner { padding: 2rem 1.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-box { flex: 1; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ============== Product Detail ============== */
.pd-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.pd-image {
  aspect-ratio: 1;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.pd-image img { width: 100%; height: 100%; object-fit: cover; }
.pd-cat { color: var(--gold-dark); font-weight: 600; font-size: .9rem; }
.pd-name { font-size: 1.8rem; margin: .5rem 0; }
.pd-price { color: var(--gold-dark); font-size: 1.6rem; font-weight: 700; }
.pd-desc { color: var(--ink-soft); margin: 1rem 0; line-height: 1.8; }
.pd-features { list-style: none; margin: 1.25rem 0; }
.pd-features li {
  padding: .35rem 0;
  display: flex; align-items: center; gap: .5rem;
  color: var(--ink-soft);
}
.pd-features li::before { content: '✓'; color: var(--gold); font-weight: 700; }
.pd-actions { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
@media (max-width: 768px) {
  .pd-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============== Helper ============== */
.text-gold { color: var(--gold-dark); }
.text-muted { color: var(--ink-muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.flex-row { display: flex; align-items: center; gap: .75rem; }
.justify-between { justify-content: space-between; }
