/* ============================================================
   app.css — El Yapımı Bebekler
   Boutique redesign — blush / dusty rose / warm cream palette
   Mobile-first, plain CSS, no frameworks
   ============================================================ */

/* ── Design tokens ────────────────────────────────────────── */
:root {
  /* Brand palette — dusty rose / warm blush */
  --c-primary:        #c2728a;
  --c-primary-dark:   #a05570;
  --c-primary-light:  #e0a8b8;

  /* Surfaces */
  --c-bg:             #fdfaf8;
  --c-bg-alt:         #f7efec;
  --c-bg-card:        #ffffff;

  /* Text */
  --c-text:           #2a1a20;
  --c-text-muted:     #8a6875;

  /* Borders */
  --c-border:         #e8d4d8;

  /* Feedback */
  --c-success-bg:     #edf7f0;
  --c-success-text:   #2d6a48;
  --c-error-bg:       #fdf0f0;
  --c-error-text:     #b91c1c;
  --c-danger:         #c0392b;
  --c-danger-dark:    #a93226;

  /* Shape */
  --radius-sm:        8px;
  --radius:           14px;
  --radius-lg:        22px;

  /* Depth */
  --shadow-sm:        0 2px 8px rgba(160,80,100,.07);
  --shadow:           0 4px 18px rgba(160,80,100,.11);
  --shadow-lg:        0 8px 32px rgba(160,80,100,.16);

  /* Layout */
  --nav-h:            64px;
  --sidebar-w:        230px;
  --container:        1100px;
  --transition:       .18s ease;
}

/* ── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); text-decoration: underline; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }
textarea { resize: vertical; }

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
main { padding: 40px 20px; width: 100%; max-width: var(--container); margin: 0 auto; flex: 1; }

/* ── Typography ───────────────────────────────────────────── */
h1 { font-size: 1.85rem; font-weight: 700; line-height: 1.2; margin-bottom: .5em; letter-spacing: -.02em; }
h2 { font-size: 1.4rem;  font-weight: 600; margin-bottom: .4em; letter-spacing: -.01em; }
h3 { font-size: 1.1rem;  font-weight: 600; margin-bottom: .3em; }
p  { margin-bottom: .8em; }
p:last-child { margin-bottom: 0; }

/* ── Utility ──────────────────────────────────────────────── */
.text-muted  { color: var(--c-text-muted); font-size: .875em; }
.empty-state { color: var(--c-text-muted); font-style: italic; padding: 32px 0; text-align: center; }
.field-error { display: block; color: var(--c-error-text); font-size: .8em; margin-top: 4px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background var(--transition), box-shadow var(--transition),
              border-color var(--transition), color var(--transition),
              transform var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary-dark);
  box-shadow: 0 2px 12px rgba(194,114,138,.30);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
  box-shadow: 0 4px 18px rgba(194,114,138,.40);
}

.btn-secondary {
  background: #fff;
  color: var(--c-text);
  border-color: var(--c-border);
  box-shadow: 0 1px 4px rgba(160,80,100,.06);
}
.btn-secondary:hover {
  background: var(--c-bg-alt);
  border-color: var(--c-primary-light);
  color: var(--c-primary-dark);
  box-shadow: 0 2px 8px rgba(160,80,100,.10);
}

.btn-danger {
  background: var(--c-danger);
  color: #fff;
  border-color: var(--c-danger-dark);
  font-weight: 600;
}
.btn-danger:hover { background: var(--c-danger-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--c-text-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--c-bg-alt); color: var(--c-text); border-color: var(--c-border); }

.btn-sm  { padding: 6px 14px; font-size: .82rem; min-height: 32px; }
.btn-link {
  background: none; border: none;
  color: var(--c-primary); padding: 0;
  font-weight: 400; cursor: pointer;
  text-decoration: underline;
}
.btn-link:hover { color: var(--c-primary-dark); }
.btn-remove {
  background: none; border: none;
  color: var(--c-text-muted); font-size: 1.2rem;
  cursor: pointer; line-height: 1;
  padding: 4px 8px; border-radius: var(--radius-sm);
}
.btn-remove:hover { background: var(--c-error-bg); color: var(--c-error-text); }
.btn-whatsapp { background: #25d366; color: #fff; border-color: #1ebe5a; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: .9rem;
  border-left: 4px solid;
}
.alert ul { margin: 0; padding-left: 1.2em; list-style: disc; }
.alert li  { margin-bottom: 3px; }
.alert-success { background: var(--c-success-bg); color: var(--c-success-text); border-color: var(--c-success-text); }
.alert-error   { background: var(--c-error-bg);   color: var(--c-error-text);   border-color: var(--c-error-text); }
.alert-info    { background: #fdf6e8; color: #7a5200; border-color: #e6b84a; }
.reservation-sub { display: block; font-size: .82em; margin-top: 4px; opacity: .75; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .02em;
}
.badge-out { background: #fde8e8; color: #922b21; }
.badge-mto { background: #fff0db; color: #8a5200; }

/* Order status badges */
.badge-status.badge-pending_payment  { background: #fff0db; color: #8a5200; }
.badge-status.badge-receipt_uploaded { background: #e8f0fe; color: #1a56db; }
.badge-status.badge-payment_review   { background: #f3e8ff; color: #6d28d9; }
.badge-status.badge-paid             { background: #dcfce7; color: #166534; }
.badge-status.badge-preparing        { background: #e0f5f1; color: #0f766e; }
.badge-status.badge-shipped          { background: #dbeafe; color: #1e40af; }
.badge-status.badge-completed        { background: #d1fae5; color: #065f46; }
.badge-status.badge-cancelled        { background: #f3f4f6; color: #6b7280; }

/* Admin toggle badges */
.badge-toggle {
  cursor: pointer; border: none;
  font: inherit; font-size: .73rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; letter-spacing: .02em;
}
.badge-active   { background: #dcfce7; color: #166534; }
.badge-inactive { background: #f3f4f6; color: #6b7280; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--c-text);
  letter-spacing: .01em;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="file"],
.form-group select,
.form-group textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--c-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input[type="file"] { padding: 8px 12px; background: var(--c-bg-alt); cursor: pointer; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(194,114,138,.18);
}
select:disabled { opacity: 0.5; cursor: not-allowed; background: var(--c-bg-alt); }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 180px; }
.form-row-inline { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .875rem; font-weight: 600; }
.checkbox-label input[type="checkbox"] { width: auto; accent-color: var(--c-primary); }
.form-section {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.form-section h2 {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-bg-alt);
  font-size: .8rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

/* ── Tables ───────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; }
th {
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--c-text-muted);
  border-bottom: 2px solid var(--c-border);
  background: var(--c-bg-alt);
}
tbody tr { border-bottom: 1px solid var(--c-bg-alt); transition: background var(--transition); }
tbody tr:hover { background: #fdf5f6; }

.summary-table { width: auto; margin-left: auto; }
.summary-table th, .summary-table td { padding: 6px 12px; border: none; }
.summary-table th { text-transform: none; font-size: .9rem; font-weight: 400; color: var(--c-text-muted); border-bottom: none; background: none; }
.total-row th, .total-row td { font-weight: 700; font-size: 1.05rem; border-top: 2px solid var(--c-border); padding-top: 10px; }

.detail-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.detail-list dt { font-weight: 600; font-size: .875rem; color: var(--c-text-muted); }
.detail-list dd { font-size: .9rem; }

.option-list { padding-left: 1em; }
.option-list li { font-size: .8rem; color: var(--c-text-muted); margin-bottom: 2px; }
.option-list li::before { content: '•'; margin-right: 6px; }

/* ── Navbar ───────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(253,250,248,.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  padding: 0 32px;
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--c-border), var(--shadow-sm);
}
/* Thin brand-colour accent stripe at the very top */
nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary-dark) 0%, var(--c-primary) 55%, var(--c-primary-light) 100%);
  pointer-events: none;
}
nav a {
  color: var(--c-text-muted);
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  font-size: .86rem;
  letter-spacing: .01em;
  position: relative;
}
nav a:hover {
  color: var(--c-primary-dark);
  background: rgba(194,114,138,.07);
  text-decoration: none;
}
nav a.active {
  color: var(--c-primary-dark);
  font-weight: 600;
  background: rgba(194,114,138,.10);
  text-decoration: none;
}
nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--c-primary);
}
/* Two-line stacked brand */
.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  flex-shrink: 0;
  margin-right: 28px;
  text-decoration: none;
}
.nav-brand:hover { background: none !important; text-decoration: none; }
.nav-brand-eyebrow {
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--c-text-muted);
  line-height: 1;
  transition: color var(--transition);
}
.nav-brand-name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--c-primary);
  line-height: 1.15;
  transition: color var(--transition);
}
.nav-brand:hover .nav-brand-eyebrow { color: var(--c-primary-light); }
.nav-brand:hover .nav-brand-name    { color: var(--c-primary-dark); }
.nav-spacer { flex: 1; }
.cart-count {
  background: var(--c-primary);
  color: #fff;
  border-radius: 20px;
  font-size: .66rem;
  font-weight: 700;
  padding: 1px 7px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1.6;
}
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  font-size: 1.3rem; line-height: 1;
  color: var(--c-text-muted); margin-left: auto;
}
.nav-toggle:hover { color: var(--c-primary); }
.nav-links { display: flex; align-items: center; gap: 2px; }
/* Logout button styled like a nav link */
.nav-logout {
  color: var(--c-text-muted);
  font-weight: 500;
  font-size: .86rem;
  letter-spacing: .01em;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  line-height: inherit;
}
.nav-logout:hover { color: var(--c-primary-dark); background: rgba(194,114,138,.07); }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  margin-top: 72px;
  border-top: 1px solid var(--c-border);
  padding: 56px 32px 44px;
  text-align: center;
  color: var(--c-text-muted);
  font-size: .875rem;
  background: linear-gradient(180deg, var(--c-bg-alt) 0%, #f0e6ea 100%);
}
footer p { margin-bottom: 8px; }
footer a { color: var(--c-primary); font-weight: 500; }
footer a:hover { color: var(--c-primary-dark); text-decoration: none; }
.footer-brand { margin-bottom: 22px; }
.footer-logo {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.footer-tagline {
  color: var(--c-text-muted);
  font-size: .875rem;
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.65;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 16px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 24px;
}
.footer-nav a {
  color: var(--c-text-muted);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 0 22px;
  transition: color var(--transition);
}
.footer-nav a + a { border-left: 1px solid var(--c-border); }
.footer-nav a:hover { color: var(--c-primary); text-decoration: none; }
.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--c-text-muted);
  font-size: .85rem;
  font-weight: 500;
  padding: 7px 18px;
  border: 1px solid var(--c-border);
  border-radius: 50px;
  margin-bottom: 28px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.footer-instagram:hover {
  color: var(--c-primary);
  border-color: var(--c-primary-light);
  background: rgba(194,114,138,.05);
  text-decoration: none;
}
.footer-instagram svg { width: 15px; height: 15px; flex-shrink: 0; }
.footer-copy { color: var(--c-text-muted); font-size: .78rem; opacity: .7; margin-top: 4px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(155deg, #a85470 0%, #cc7d96 55%, #e8b8c8 100%);
  color: #fff;
  text-align: center;
  padding: 92px 24px 100px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 52px 52px;
  /* break out of main's max-width container */
  margin-top: -40px;
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(255,255,255,.13) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -60px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.hero-content { max-width: 560px; margin: 0 auto; position: relative; }
.hero-eyebrow {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 1em;
  font-weight: 500;
}
.hero h1 {
  color: #fff;
  font-size: 2.7rem;
  margin-bottom: .5em;
  text-shadow: 0 2px 16px rgba(0,0,0,.1);
  letter-spacing: -.03em;
  line-height: 1.2;
}
.hero p  { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2.4em; max-width: 400px; margin-left: auto; margin-right: auto; line-height: 1.65; }
.hero .btn-primary {
  background: #fff;
  color: var(--c-primary-dark);
  border-color: rgba(255,255,255,.85);
  box-shadow: 0 6px 24px rgba(0,0,0,.13);
  padding: 14px 40px;
  font-size: 1rem;
  border-radius: 50px;
  letter-spacing: .02em;
}
.hero .btn-primary:hover { background: var(--c-bg-alt); color: var(--c-primary-dark); box-shadow: 0 10px 36px rgba(0,0,0,.16); transform: translateY(-1px); }
.hero + section, .hero + * { margin-top: 0; }

/* ── Product grid & cards ─────────────────────────────────── */
.featured-products, .product-listing { padding: 64px 0; }
.featured-products h2, .product-listing h2 {
  margin-bottom: 36px;
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: -.02em;
  color: var(--c-text);
  position: relative;
  padding-bottom: 14px;
}
.featured-products h2::after, .product-listing h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c-primary-light), var(--c-primary));
}
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { margin-bottom: 10px; }
.section-subtitle { color: var(--c-text-muted); font-size: .92rem; letter-spacing: .01em; margin-top: 0; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--c-primary-light);
}
.product-card > a { display: block; overflow: hidden; }
.product-card-img { position: relative; }
.product-card > a img { width: 100%; height: 280px; object-fit: cover; transition: transform .38s ease; }
.product-card:hover > a img { transform: scale(1.04); }
.img-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: .72rem;
  padding: 4px 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.product-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card-body h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; line-height: 1.35; }
.product-card-body h3 a { color: var(--c-text); }
.product-card-body h3 a:hover { color: var(--c-primary); text-decoration: none; }
.product-price { margin-bottom: 14px; }
.price-original { text-decoration: line-through; color: var(--c-text-muted); margin-right: 6px; font-size: .88em; }
.price-sale { color: var(--c-primary); font-weight: 700; font-size: 1.08rem; }
.price-regular { font-size: 1.08rem; font-weight: 700; color: var(--c-primary-dark); }
.stock-qty-display { font-size: .88rem; color: var(--c-text-muted); margin-bottom: 12px; }
.product-card-body .btn { margin-top: auto; width: auto; align-self: center; padding-left: 28px; padding-right: 28px; border-radius: var(--radius); }
.card-cta { border-color: var(--c-primary-light); color: var(--c-primary-dark); }
.view-all { text-align: center; margin-top: 40px; }
.view-all a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-primary);
  font-weight: 600;
  font-size: .95rem;
  border-bottom: 2px solid var(--c-primary-light);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.view-all a:hover { color: var(--c-primary-dark); border-color: var(--c-primary); text-decoration: none; }

/* ── Product detail ───────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 36px; }
.product-detail-gallery img#main-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--c-bg-alt);
  box-shadow: var(--shadow-sm);
}
.product-thumbnails { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 76px; height: 76px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--c-border);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.thumb.active, .thumb:hover {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 2px rgba(194,114,138,.2);
}
.product-detail-info h1 { font-size: 1.7rem; }
.product-description { margin: 18px 0; color: var(--c-text-muted); font-size: .95rem; line-height: 1.75; }
.total-price-display { font-size: 1.05rem; margin: 14px 0; font-weight: 600; color: var(--c-primary-dark); }
.out-of-stock-message { color: var(--c-text-muted); font-style: italic; }
.add-to-cart-form .form-group { margin-bottom: 16px; }
.add-to-cart-form .form-group label { font-size: .875rem; }

/* ── Cart ─────────────────────────────────────────────────── */
.cart-table { margin-bottom: 24px; }
.cart-table td { vertical-align: middle; }
.option-tag {
  display: inline-block;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .75rem;
  margin: 2px;
  color: var(--c-text-muted);
}
.qty-form input[type="number"] { width: 64px; padding: 6px 8px; }
.cart-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  border-top: 2px solid var(--c-border);
  padding-top: 20px;
}

/* ── Form helpers ─────────────────────────────────────────── */
.field-hint { display: block; font-size: .78em; color: var(--c-text-muted); margin-top: 4px; }
.address-section { margin-bottom: 24px; }
.address-section-title { font-weight: 600; font-size: .875rem; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--c-border); }

/* ── Checkout ─────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
.checkout-section h2 { font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--c-border); }
.auth-checkpoint { background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.checkout-summary-col .summary-items { margin-bottom: 16px; }
.checkout-summary-col .summary-items li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--c-bg-alt); font-size: .875rem; }
.summary-totals { margin-top: 8px; }
.summary-totals tr.total-row th, .summary-totals tr.total-row td { font-size: 1rem; }

/* ── Confirmation ─────────────────────────────────────────── */
.confirmation-section {}
.confirmation-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.confirmation-block {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.confirmation-block h2 { font-size: .82rem; margin-bottom: 14px; color: var(--c-primary-dark); text-transform: uppercase; letter-spacing: .06em; }
.bank-transfer dl, .bank-details dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: .9rem; }
.bank-transfer dt, .bank-details dt { font-weight: 600; color: var(--c-text-muted); }
.whatsapp-cta { margin-top: 4px; }
.receipt-uploaded { background: var(--c-success-bg); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 8px; }
.receipt-uploaded-note { font-size: .85rem; color: var(--c-success-text); }

/* ── Payment block (bank transfer steps) ───────────────── */
.payment-block {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 24px 4px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.payment-block h2 { font-size: .82rem; margin-bottom: 20px; color: var(--c-primary-dark); text-transform: uppercase; letter-spacing: .06em; }
.payment-steps { display: flex; flex-direction: column; }
.payment-step { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--c-border); }
.payment-step:last-child { border-bottom: none; padding-bottom: 20px; }
.payment-step-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.payment-step-body { flex: 1; min-width: 0; }
.payment-step-title { font-size: .9rem; font-weight: 700; color: var(--c-text); margin: 0 0 12px; }
.payment-step-muted { font-size: .85rem; color: var(--c-text-muted); line-height: 1.65; margin: 0; }
.bank-fields { display: flex; flex-direction: column; gap: 12px; }
.bank-field { display: flex; flex-direction: column; gap: 3px; }
.bank-field-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); font-weight: 600; }
.bank-field-value { font-size: .95rem; color: var(--c-text); font-weight: 500; }
.copy-field { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.iban-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: .88rem; font-weight: 700; letter-spacing: .05em;
  background: #fdf4f7; border: 1px solid var(--c-border);
  border-radius: 6px; padding: 7px 12px;
  color: var(--c-primary-dark);
}
.amount-value { font-size: 1.45rem; font-weight: 800; color: var(--c-primary-dark); letter-spacing: -.01em; }
.order-num-value { font-size: 1rem; font-weight: 700; color: var(--c-text); letter-spacing: .02em; }
.copy-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 700;
  color: var(--c-primary-dark);
  background: #fdf4f7; border: 1px solid var(--c-primary-light);
  border-radius: 6px; padding: 5px 11px;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap; line-height: 1;
  font-family: inherit;
}
.copy-btn:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.copy-btn.copied { background: var(--c-success-bg); color: var(--c-success-text); border-color: #8ec9a8; }
.payment-warning {
  display: flex; align-items: flex-start; gap: 8px;
  background: #fff9ed; border: 1px solid #f5d87e; border-left: 3px solid #e6a800;
  border-radius: var(--radius-sm); padding: 10px 14px;
  margin-top: 16px; font-size: .84rem; color: #7a5900; line-height: 1.55;
}

/* ── Orders (storefront) ──────────────────────────────────── */
.orders-list-section table, .orders-table { margin-top: 8px; }
.order-detail-section {}
.order-detail-header { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.order-detail-block {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.order-detail-block h2 { font-size: .82rem; margin-bottom: 14px; color: var(--c-primary-dark); text-transform: uppercase; letter-spacing: .06em; }
.receipt-list { display: flex; flex-direction: column; gap: 16px; }
.receipt-item { border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 14px; }
.receipt-meta { font-size: .85rem; margin-bottom: 8px; }
.receipt-preview { max-width: 100%; max-height: 300px; object-fit: contain; border-radius: var(--radius-sm); cursor: pointer; margin-top: 8px; }

/* ── Order timeline (horizontal stepper) ──────────────────── */
.order-timeline-block {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px 8px 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.order-timeline {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  padding: 0; margin: 0;
}
.order-timeline li {
  flex: 1;
  min-width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
  padding-bottom: 0;
}
/* Horizontal connector — left half of each step */
.order-timeline li::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0; width: 50%;
  height: 2px;
  background: var(--c-border);
  z-index: 0;
}
/* Horizontal connector — right half of each step */
.order-timeline li::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 0; width: 50%;
  height: 2px;
  background: var(--c-border);
  z-index: 0;
}
/* No left line on first item, no right line on last */
.order-timeline li:first-child::before { content: none; }
.order-timeline li:last-child::after  { content: none; }
.tl-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  background: var(--c-bg-card);
  position: relative; z-index: 1;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  color: transparent;
  transition: box-shadow .2s;
  margin-bottom: 6px;
}
.tl-label {
  display: flex; flex-direction: column; gap: 1px;
  width: 100%; padding: 0 2px;
}
.tl-label-main {
  font-size: .68rem;
  color: #d4bec5;
  line-height: 1.3;
  font-weight: 500;
}
.tl-label-sub {
  font-size: .63rem;
  color: var(--c-text-muted);
  line-height: 1.35;
  display: none;
}
/* done — pink connectors + filled dot */
.order-timeline li.tl-done::before,
.order-timeline li.tl-done::after { background: var(--c-primary-light); }
.order-timeline li.tl-done .tl-dot { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.order-timeline li.tl-done .tl-label-main { color: var(--c-text-muted); font-weight: 400; }
/* current — left connector pink, dot glowing */
.order-timeline li.tl-current::before { background: var(--c-primary-light); }
.order-timeline li.tl-current .tl-dot {
  background: var(--c-primary); border-color: var(--c-primary); color: #fff;
  box-shadow: 0 0 0 4px rgba(194,114,138,.18), 0 0 0 8px rgba(194,114,138,.07);
}
.order-timeline li.tl-current .tl-label-main { color: var(--c-primary-dark); font-weight: 700; font-size: .74rem; }
.order-timeline li.tl-current .tl-label-sub { display: block; color: var(--c-primary); opacity: .85; }
/* cancelled */
.order-timeline li.tl-cancelled .tl-dot { background: var(--c-danger); border-color: var(--c-danger); color: #fff; }
.order-timeline li.tl-cancelled .tl-label-main { color: var(--c-danger); font-weight: 700; font-size: .7rem; }
.order-timeline li.tl-cancelled .tl-label-sub { display: block; color: var(--c-danger); opacity: .75; }
/* Mobile: allow wrap into 2 rows */
@media (max-width: 480px) {
  .order-timeline-block { padding: 14px 4px 12px; }
  .order-timeline li { min-width: 60px; }
  .tl-label-main { font-size: .62rem; }
  .order-timeline li.tl-current .tl-label-main { font-size: .68rem; }
}

/* ── Bank info grid (payment block step 1) ──────────────── */
.bank-info-wrapper {
  background: #fdf4f7;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.bank-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f8e5ee 0%, #fdf4f7 100%);
  border-bottom: 2px solid var(--c-border);
}
.bank-amount-row .bank-field-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); font-weight: 600; }
.bank-info {
  display: grid;
  grid-template-columns: auto 1fr;
  padding: 0 18px;
  margin: 0;
}
.bank-info dt {
  padding: 10px 20px 10px 0;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}
.bank-info dd {
  padding: 10px 0;
  font-size: .9rem;
  color: var(--c-text);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--c-border);
  margin: 0;
  min-width: 0;
}
.bank-info dt:last-of-type,
.bank-info dd:last-child { border-bottom: none; }
@media (max-width: 440px) {
  .bank-info { grid-template-columns: 1fr; padding: 0 14px; }
  .bank-info dt { padding-bottom: 2px; border-bottom: none; padding-top: 10px; }
  .bank-info dd { padding-top: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--c-border); }
  .bank-info dd:last-child { border-bottom: none; }
  .bank-amount-row { flex-direction: column; gap: 4px; padding: 12px 14px; }
}

/* ── Auth pages ───────────────────────────────────────────── */
.auth-section {
  max-width: 420px;
  margin: 56px auto;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.auth-section h1 { margin-bottom: 24px; }
.auth-section p  { margin-top: 12px; font-size: .875rem; color: var(--c-text-muted); }
.auth-section .g_id_signin { margin-top: 0; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  color: var(--c-text-muted);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

/* ── Static pages ─────────────────────────────────────────── */
.page-content { max-width: 700px; }
.page-content h1 { margin-bottom: 24px; }
.faq-list dt { font-weight: 600; margin-top: 22px; margin-bottom: 5px; color: var(--c-primary); }
.faq-list dd { color: var(--c-text-muted); padding-left: 14px; line-height: 1.75; }

/* ── Admin layout ─────────────────────────────────────────── */
.admin-body { background: #f2eaec; }
.admin-wrapper { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: var(--sidebar-w);
  background: #1f1318;
  color: #e0ccd0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 200;
  transition: transform var(--transition);
}
.admin-sidebar-brand {
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-sidebar-brand a {
  color: #f5dde2;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.01em;
  line-height: 1.3;
  display: block;
}
.admin-sidebar-brand a:hover { text-decoration: none; color: #fff; }
.admin-sidebar-brand small {
  display: block;
  color: rgba(255,255,255,.28);
  font-size: .68rem;
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-nav {
  flex: 1;
  padding: 16px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  height: auto;
  position: static;
  box-shadow: none;
}
.admin-nav-section {
  display: block;
  padding: 12px 18px 4px;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.22);
  font-weight: 700;
  width: 100%;
  box-sizing: border-box;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: #c0aab0;
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent;
  border-radius: 0;
  font-weight: 500;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}
.admin-nav a:hover,
.admin-nav a:hover.active {
  background: rgba(255,255,255,.06);
  color: #f0e0e4;
  text-decoration: none;
}
.admin-nav a.active {
  background: rgba(194,114,138,.16);
  color: #f5b8c4;
  border-left-color: #c2728a;
  font-weight: 600;
}

.admin-sidebar-footer {
  padding: 16px 18px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .85rem;
}
.admin-sidebar-footer p { color: #907880; margin-bottom: 8px; font-size: .82rem; }

.admin-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 28px 32px;
  min-width: 0;
}

/* ── Admin login ──────────────────────────────────────────── */
.admin-login-body { background: #1f1318; }
.admin-login-box {
  max-width: 380px;
  margin: 80px auto;
  background: var(--c-bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}
.admin-login-box h1 { margin-bottom: 24px; font-size: 1.4rem; }

/* ── Admin page header ────────────────────────────────────── */
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}
.admin-page-header h1 { font-size: 1.35rem; margin: 0; letter-spacing: -.02em; }

/* ── Admin stat cards ─────────────────────────────────────── */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card-alert { border-color: #f59e0b; background: #fffbeb; }
.stat-value { font-size: 2.2rem; font-weight: 700; color: var(--c-primary); line-height: 1; }
.stat-card-alert .stat-value { color: #92610c; }
.stat-label { font-size: .7rem; color: var(--c-text-muted); margin-top: 8px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* ── Admin section ────────────────────────────────────────── */
.admin-section {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.admin-section h2 {
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-bg-alt);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--c-primary-dark);
}

/* ── Admin table ──────────────────────────────────────────── */
.admin-table {
  background: var(--c-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.admin-table th { background: var(--c-bg-alt); }
.admin-actions { display: flex; gap: 8px; align-items: center; white-space: nowrap; flex-wrap: wrap; }
.admin-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--c-border); }
.admin-thumb-placeholder {
  display: inline-block;
  width: 52px; height: 52px;
  background: var(--c-bg-alt);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--c-border);
  line-height: 52px; text-align: center;
  color: var(--c-text-muted); font-size: .75rem;
}
.admin-preview { max-width: 200px; max-height: 200px; object-fit: contain; border: 1px solid var(--c-border); border-radius: var(--radius-sm); }
.admin-preview-sm { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--c-border); }

/* ── Admin tabs ───────────────────────────────────────────── */
.admin-tabs {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: flex-end;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--c-border);
  /* reset global nav{} bleed */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  height: auto;
  position: static;
  z-index: auto;
  box-shadow: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: .875rem;
  color: var(--c-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition);
}
.admin-tab:hover { color: var(--c-primary); text-decoration: none; }
.admin-tab.active { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 600; }
.tab-badge { background: var(--c-bg-alt); border-radius: 20px; padding: 1px 7px; font-size: .7rem; font-weight: 600; }
.admin-tab.active .tab-badge { background: var(--c-primary); color: #fff; }

/* ── Dashboard alert banner ───────────────────────────────── */
.admin-alert-banner {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 24px;
  font-size: .875rem;
  color: #78350f;
}
.admin-alert-banner a { color: #92610c; font-weight: 600; text-decoration: underline; }

/* ── Clickable stat cards ─────────────────────────────────── */
a.stat-card { text-decoration: none; color: inherit; display: block; }
a.stat-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow); }

/* ── Admin section variants ───────────────────────────────── */
.admin-section-warn { border-color: #f87171; }
.admin-section-warn h2 { color: #991b1b; }

/* ── Low stock badge ──────────────────────────────────────── */
.badge-stock-low {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 12px;
  padding: 2px 9px;
  font-size: .75rem;
  font-weight: 700;
}

/* ── Admin filter bar (product list) ──────────────────────── */
.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-search {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  background: var(--c-bg-card);
  color: var(--c-text);
}
.admin-search:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(194,114,138,.18);
}
.admin-filter-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-bg-card);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--c-text-muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.admin-filter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.admin-filter-btn.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ── Quick stock update form ──────────────────────────────── */
.quick-stock-form { display: flex; gap: 5px; align-items: center; margin-bottom: 4px; }
.quick-stock-input {
  width: 68px;
  padding: 4px 7px;
  font-size: .85rem;
  text-align: center;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--c-text);
}
.quick-stock-input:focus { outline: none; border-color: var(--c-primary); }

/* ── Revenue stat card ────────────────────────────────────── */
.stat-card-revenue { border-color: #86efac; background: #f0fdf4; }
.stat-value-revenue { font-size: 1.55rem; color: #166534; }
.stat-card-revenue .stat-label { color: #166534; }

/* ── Order filter panel ───────────────────────────────────── */
.order-filter-panel {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.order-quick-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.quick-filter-label {
  font-size: .72rem;
  color: var(--c-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}
.quick-filter-link {
  display: inline-block;
  padding: 3px 11px;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  font-size: .78rem;
  color: var(--c-text-muted);
  background: var(--c-bg-alt);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.quick-filter-link:hover,
.quick-filter-link.active {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: rgba(194,114,138,.06);
  text-decoration: none;
}
.order-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}
.order-filter-row input[type="search"],
.order-filter-row input[type="date"],
.order-filter-row select {
  height: 36px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  background: #fff;
  color: var(--c-text);
  -webkit-appearance: none;
  appearance: none;
}
.order-filter-row input[type="search"] { flex: 2; min-width: 200px; }
.order-filter-row input[type="date"]   { min-width: 138px; }
.order-filter-row select               { min-width: 158px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.order-filter-row button               { height: 36px; box-sizing: border-box; }
.order-filter-row input:focus,
.order-filter-row select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(194,114,138,.18);
}
.filter-date-sep { display: flex; align-items: center; }
.filter-date-sep { color: var(--c-text-muted); font-size: .85rem; padding: 0 2px; }
.filter-result-count {
  font-size: .875rem;
  color: var(--c-text-muted);
  margin-bottom: 16px;
}
.filter-result-count strong { color: var(--c-text); }
.filter-result-count a { color: var(--c-primary); font-weight: 600; margin-left: 8px; }

/* ── Admin sidebar sub-links ──────────────────────────────── */
.admin-nav a.admin-nav-sub {
  padding-left: 30px;
  font-size: .82rem;
  color: rgba(192,170,176,.6);
  border-left: 3px solid transparent;
}
.admin-nav a.admin-nav-sub:hover { color: #f0e0e4; }
.admin-nav a.admin-nav-sub.active {
  background: rgba(194,114,138,.10);
  color: #f5b8c4;
  border-left-color: rgba(194,114,138,.4);
}

/* ── Stock movement badges & delta colors ─────────────────── */
.badge-event-manual_update       { background: #dbeafe; color: #1e40af; }
.badge-event-sale_deduction      { background: #fee2e2; color: #991b1b; }
.badge-event-cancellation_return { background: #dcfce7; color: #166534; }
.stock-delta-pos { color: #166534; font-weight: 700; }
.stock-delta-neg { color: #991b1b; font-weight: 700; }

/* ── Admin detail grid ────────────────────────────────────── */
.admin-detail-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
.admin-form .form-section { box-shadow: none; }

/* ── Admin gallery / images ───────────────────────────────── */
.gallery-grid { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.gallery-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.current-image { margin-bottom: 14px; }
.current-image p { margin-top: 6px; }

/* ── Option groups (product form) ─────────────────────────── */
.option-group {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.option-group-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.option-group-name { flex: 1; min-width: 180px; font-weight: 600; }
.option-value { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.option-value input[type="text"]   { flex: 2; min-width: 120px; }
.option-value input[type="number"] { flex: 1; min-width: 90px; }
.option-values { margin-bottom: 10px; padding-left: 2px; }
.option-value-hint {
  font-size: .78rem;
  color: var(--c-text-muted);
  margin-bottom: 8px;
  padding: 0 2px;
}

/* ── Audit log detail ─────────────────────────────────────── */
.detail-json { font-size: .75rem; font-family: monospace; word-break: break-all; background: var(--c-bg-alt); padding: 2px 6px; border-radius: 3px; }

/* ── Mobile nav ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: var(--c-bg-card);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: 8px 0;
    box-shadow: var(--shadow);
    z-index: 99;
    width: 100%;
  }
  .nav-links.open { display: flex; }
  nav { flex-wrap: wrap; height: auto; padding: 0 16px; position: sticky; }
  nav > .nav-brand { height: var(--nav-h); display: flex; flex-direction: column; justify-content: center; margin-right: 0; }
  .nav-links a { padding: 10px 16px; width: 100%; border-radius: 0; }
  .nav-links a.active::after { display: none; }
  .nav-logout { padding: 10px 16px; width: 100%; border-radius: 0; text-align: left; }
  .nav-spacer { display: none; }
}

/* ── Responsive: medium ───────────────────────────────────── */
@media (min-width: 640px) {
  .product-detail { grid-template-columns: 1fr 1fr; }
  .checkout-layout { grid-template-columns: 1.4fr 1fr; }
  .admin-detail-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive: admin sidebar collapse ───────────────────── */
@media (max-width: 900px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 20px 16px; }
  .admin-body::before { content: ''; display: none; }
  .admin-body.sidebar-open::before {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 190;
  }
}

@media (min-width: 901px) {
  .admin-sidebar { transform: none !important; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  nav, .admin-sidebar, .form-actions, .btn { display: none !important; }
  .admin-main { margin-left: 0; }
}
