/* ================================================================
   FY LASHES — Complete Stylesheet
   ================================================================
   Table of Contents
   ─────────────────
   01. Fonts
   02. Root Variables
   03. Reset & Base
   04. Utilities
   05. Typography
   06. Buttons
   07. Badges
   08. Toast
   09. Navigation
   10. Hero
   11. Features Strip
   12. Section
   13. Product Grid & Cards
   14. Shop Page
   15. Cart Page
   16. Order Summary Sidebar
   17. Admin — Login
   18. Admin — Dashboard
   19. Modal
   20. Settings
   21. Footer
   22. Responsive
   ================================================================ */


/* ── 01. Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');


/* ── 02. Root Variables ─────────────────────────────────────── */
:root {
  /* Brand / Primary */
  --primary:        #181217;
  --primary-dark:   #210824cc;
  --primary-light:  #e8f1ff;

  /* Text */
  --deep:           #1f2933;
  --muted:          #6b7280;
  --text-light:     #9ca3af;

  /* Backgrounds */
  --cream:          #f4f6f9;
  --white:          #ffffff;
  --light:          #f4f6f9;
  --bg:             #f4f6f9;

  /* Accent */
  --gold:           #f59e0b;

  /* Aliases — keep every existing class working */
  --rose:           #181217;
  --rose-dark:      #0d0910;
  --rose-light:     #e8f1ff;
  --light-rose:     #e8f1ff;
  --blush:          #c7d9ff;
  --soft-pink:      #e8f1ff;

  /* Status */
  --success:        #10b981;
  --danger:         #ef4444;
  --warning:        #f59e0b;
  --info:           #3b82f6;
  --price:          #ef4444;

  /* UI */
  --border:         #e5e7eb;

  /* Shadows */
  --shadow-sm:      0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md:      0 10px 30px rgba(0, 0, 0, 0.10);
  --shadow-lg:      0 25px 60px rgba(0, 0, 0, 0.15);

  /* Radius */
  --radius:         12px;
  --radius-lg:      16px;

  /* Transition */
  --tr:             all 0.3s ease;
}


/* ── 03. Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--deep);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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


/* ── 04. Utilities ──────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.hidden    { display: none !important; }


/* ── 05. Typography ─────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: .6rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
}
.section-title em { font-style: italic; color: var(--primary); }


/* ── 06. Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius);
  border: none;
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: var(--tr);
  white-space: nowrap;
}

.btn-primary       { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-dark          { background: var(--deep); color: #fff; }
.btn-dark:hover    { background: #141c23; }

.btn-outline       { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-ghost         { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover   { border-color: var(--primary); color: var(--primary); }

.btn-success       { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }

.btn-info          { background: var(--info); color: #fff; }
.btn-info:hover    { background: #2563eb; }

/* Sizes */
.btn-sm   { padding: .42rem .95rem; font-size: .75rem; }
.btn-lg   { padding: 1rem 2.2rem;   font-size: .88rem; }
.btn-full { width: 100%; }

.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }


/* ── 07. Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .22rem .65rem;
  border-radius: 30px;
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 500;
}

.badge-rose    { background: var(--primary); color: #fff; }
.badge-muted   { background: var(--muted);   color: #fff; }
.badge-success { background: #d1fae5;        color: #065f46; }
.badge-danger  { background: #fee2e2;        color: #991b1b; }
.badge-warning { background: #fef3c7;        color: #92400e; }
.badge-info    { background: #dbeafe;        color: #1e40af; }


/* ── 08. Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--deep);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 30px;
  font-size: .85rem;
  z-index: 9999;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  pointer-events: none;
}
.toast.show          { transform: translateX(-50%) translateY(0); }
.toast.toast-success { background: var(--success); }
.toast.toast-error   { background: var(--danger); }
.toast.toast-info    { background: var(--info); }
.toast.toast-warning { background: var(--warning); color: var(--deep); }


/* ── 09. Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  height: 68px;
  background: rgba(244, 246, 249, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.7rem;
  color: var(--primary);
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--deep);
  font-weight: 500;
  transition: color .2s;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); border-color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: .75rem; }

.nav-cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--deep);
  transition: color .2s;
  display: flex;
  align-items: center;
}
.nav-cart-btn:hover { color: var(--primary); }
.nav-cart-btn svg   { width: 22px; height: 22px; stroke-width: 1.8; fill: none; stroke: currentColor; }

.cart-count {
  position: absolute;
  top: 0; right: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 17px; height: 17px;
  font-size: .62rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  transition: var(--tr);
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--deep);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
/* Animate to X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu drawer ─────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(300px, 85vw);
  height: 100dvh;
  background: var(--white);
  z-index: 900;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(105%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--primary);
}
.mobile-menu-logo span { color: var(--gold); }

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  transition: var(--tr);
}
.mobile-menu-close:hover { background: var(--cream); color: var(--deep); }
.mobile-menu-close svg   { width: 20px; height: 20px; }

.mobile-menu-links {
  list-style: none;
  padding: 1rem 0;
  flex: 1;
}
.mobile-menu-links li a {
  display: block;
  padding: .9rem 1.5rem;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--deep);
  transition: var(--tr);
  border-left: 2.5px solid transparent;
}
.mobile-menu-links li a:hover,
.mobile-menu-links li a.active {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
}
.mobile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: .5rem 1.5rem;
}
.mobile-menu-admin {
  color: var(--muted) !important;
  font-size: .78rem !important;
}
.mobile-menu-admin:hover { color: var(--primary) !important; }

.mobile-menu-cart {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1rem 1.5rem 1.5rem;
  padding: .9rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: var(--tr);
}
.mobile-menu-cart:hover { background: var(--rose-dark); }
.mobile-menu-cart svg   { width: 18px; height: 18px; flex-shrink: 0; }
.mobile-cart-count {
  margin-left: auto;
  background: var(--price);
  width: 20px; height: 20px;
  font-size: .65rem;
}

/* Backdrop */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 51, 0.45);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  backdrop-filter: blur(2px);
}
.mobile-menu-backdrop.open {
  opacity: 1;
  pointer-events: all;
}


/* ── 10. Hero ───────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 68px);
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--cream) 0%, var(--primary-light) 60%, #dce8ff 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 550px; height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 18, 23, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Inner grid — sits inside .container */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: .38rem 1rem;
  border-radius: 30px;
  font-size: .72rem;
  color: var(--gold);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 1.06;
  font-weight: 300;
  color: var(--deep);
  margin-bottom: 1.3rem;
}
.hero-title em { font-style: italic; color: var(--primary); }

.hero-desc { font-size: 1rem; color: var(--muted); max-width: 420px; line-height: 1.9; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-img {
  width: 100%;
  max-width: 520px;
  height: 580px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}


/* ── 11. Image Slider ───────────────────────────────────────── */
.img-slider {
  position: relative;
  width: 100%;
  height: 70vh;
  max-height: 560px;
  min-height: 320px;
  overflow: hidden;
  background: var(--primary);
}

/* Track — all slides in a row */
.slider-track {
  display: flex;
  height: 100%;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

/* Each slide */
.slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center ;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* Prev / Next arrow buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--tr);
}
.slider-btn:hover    { background: var(--white); transform: translateY(-50%) scale(1.08); }
.slider-btn svg      { width: 18px; height: 18px; }
.slider-prev         { left: 1.25rem; }
.slider-next         { right: 1.25rem; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .45rem;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: var(--tr);
  padding: 0;
}
.slider-dot.active {
  background: var(--white);
  width: 22px;
  border-radius: 4px;
}


/* ── 12. Section ────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { color: var(--muted); font-size: .95rem; margin-top: .5rem; }


/* ── 13. Product Grid & Cards ───────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--tr);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.product-img {
  width: 100%; height: 240px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), var(--blush));
  display: flex; align-items: center; justify-content: center;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img-placeholder          { opacity: .3; }
.product-img-placeholder svg      { width: 90px; height: 55px; }
.product-badges {
  position: absolute;
  top: .75rem; left: .75rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.out-of-stock-overlay {
  position: absolute; inset: 0;
  background: rgba(31, 41, 51, 0.50);
  display: flex; align-items: center; justify-content: center;
}

.product-info        { padding: 1.25rem 1.4rem 1.5rem; }
.product-category    { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.product-name        { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--deep); margin-bottom: .35rem; line-height: 1.3; }
.product-description { font-size: .83rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.product-footer      { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.product-price       { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--price); }


/* ── 14. Shop Page ──────────────────────────────────────────── */
.shop-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2d1a3a 100%);
  padding: 5rem 0 3rem;
  text-align: center;
  color: #fff;
}
.shop-hero h1    { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; }
.shop-hero h1 em { color: var(--primary-light); font-style: italic; }
.shop-hero p     { color: rgba(255,255,255,.5); margin-top: .5rem; }

.filters-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  position: sticky;
  top: 68px;
  z-index: 100;
}
.filters-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.filter-label  { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.filter-btns   { display: flex; gap: .45rem; flex-wrap: wrap; }

.filter-btn {
  padding: .38rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: none;
  cursor: pointer;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--muted);
  transition: var(--tr);
  font-family: inherit;
}
.filter-btn:hover,
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.search-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: .35rem .9rem;
  background: var(--cream);
}
.search-box input { border: none; background: none; outline: none; font-size: .82rem; color: var(--deep); width: 180px; }
.search-box svg   { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; color: var(--muted); }


/* ── 15. Cart Page ──────────────────────────────────────────── */
.cart-page   { padding: 2.5rem 0 5rem; min-height: 80vh; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }

.cart-hdr   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.cart-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; }

.clear-btn       { font-size: .78rem; color: var(--muted); cursor: pointer; background: none; border: none; transition: color .2s; }
.clear-btn:hover { color: var(--danger); }

.cart-empty     { text-align: center; padding: 5rem 2rem; }
.cart-empty svg { width: 80px; height: 80px; opacity: .18; margin: 0 auto 1.5rem; fill: none; stroke: var(--deep); stroke-width: 1.2; }
.cart-empty h3  { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; margin-bottom: .5rem; }
.cart-empty p   { color: var(--muted); margin-bottom: 2rem; }

.cart-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  margin-bottom: .9rem;
  box-shadow: var(--shadow-sm);
}

.cart-item-img {
  width: 80px; height: 80px;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--blush));
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-img svg { width: 48px; height: 30px; opacity: .3; }

.cart-item-info     { flex: 1; min-width: 0; }
.cart-item-name     { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; margin-bottom: .15rem; }
.cart-item-cat      { font-size: .7rem; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem; }
.cart-item-price    { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--price); }

.cart-item-controls { display: flex; align-items: center; gap: .7rem; margin-top: .55rem; }

.qty-btn {
  width: 28px; height: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--primary-light);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--deep);
  transition: var(--tr);
}
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.qty-display { font-size: .9rem; color: var(--deep); min-width: 22px; text-align: center; }

.remove-btn        { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--muted); font-size: .78rem; transition: color .2s; }
.remove-btn:hover  { color: var(--danger); }


/* ── 16. Order Summary Sidebar ──────────────────────────────── */
.order-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 88px;
}
.order-summary h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; margin-bottom: 1.25rem; }

/* Step pills */
.step-pills       { display: flex; gap: .4rem; margin-bottom: 1.4rem; }
.step-pill        { flex: 1; height: 3.5px; border-radius: 2px; background: var(--border); transition: background .3s; }
.step-pill.done   { background: var(--success); }
.step-pill.active { background: var(--primary); }

/* Step forms */
.step-form        { display: none; }
.step-form.active { display: block; }
.step-heading     { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; margin-bottom: 1.1rem; }

/* Delivery options */
.delivery-options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.1rem; }
.delivery-option  {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  cursor: pointer;
  text-align: center;
  transition: var(--tr);
}
.delivery-option:hover  { border-color: var(--primary); }
.delivery-option.chosen { border-color: var(--primary); background: var(--primary-light); }
.delivery-option-icon   { font-size: 1.5rem; margin-bottom: .45rem; }
.delivery-option-name   { font-size: .88rem; font-weight: 500; color: var(--deep); margin-bottom: .15rem; }
.delivery-option-price  { font-size: .78rem; color: var(--price); }

/* Form fields */
.form-group   { margin-bottom: .9rem; }
.form-label   { display: block; font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .72rem .95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--deep);
  background: var(--cream);
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--primary); }
.form-textarea { resize: vertical; min-height: 70px; }
.form-error    { font-size: .78rem; color: var(--danger); margin-top: .3rem; display: none; }

/* Summary lines */
.summary-line         { display: flex; justify-content: space-between; font-size: .87rem; color: var(--muted); margin-bottom: .65rem; }
.summary-divider      { border: none; border-top: 1px solid var(--border); margin: .85rem 0; }
.summary-total        { display: flex; justify-content: space-between; align-items: baseline; }
.summary-total span   { font-size: .9rem; font-weight: 500; }
.summary-total strong { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--price); }

/* Review & info */
.review-block { background: var(--primary-light); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; font-size: .85rem; color: var(--deep); }
.review-row   { display: flex; justify-content: space-between; margin-bottom: .3rem; }
.review-meta  { font-size: .78rem; color: var(--muted); line-height: 1.8; margin-top: .75rem; }
.info-note    { background: #f0fdf4; border-radius: var(--radius); padding: .8rem; font-size: .78rem; color: #166534; line-height: 1.6; margin-bottom: 1rem; }

/* WhatsApp button */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: 1rem;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: var(--tr);
  font-family: inherit;
}
.whatsapp-btn:hover { background: #059669; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.whatsapp-btn svg   { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }


/* ── 17. Admin — Login ──────────────────────────────────────── */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #2d1a3a 100%);
  padding: 2rem;
}
.admin-login-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: min(420px, 100%);
  box-shadow: var(--shadow-lg);
}
.admin-login-logo  { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 2rem; color: var(--primary); text-align: center; margin-bottom: .2rem; }
.admin-login-sub   { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: .75rem; }

.login-hint        { background: var(--primary-light); border-radius: var(--radius); padding: .65rem 1rem; font-size: .8rem; color: var(--muted); text-align: center; margin-bottom: 1.75rem; }
.login-hint strong { color: var(--primary); }
.login-error       { background: #fee2e2; color: var(--danger); padding: .65rem 1rem; border-radius: var(--radius); font-size: .83rem; margin-bottom: .9rem; display: none; }


/* ── 18. Admin — Dashboard ──────────────────────────────────── */
.admin-layout  { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: 240px;
  background: var(--primary);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-logo       { padding: 1.75rem 1.5rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-logo .name { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.45rem; color: var(--gold); }
.sidebar-logo .tag  { font-size: .68rem; color: rgba(255,255,255,.35); letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }

.sidebar-nav  { padding: 1.25rem 0; flex: 1; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.48);
  cursor: pointer;
  transition: var(--tr);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  border-left: 2.5px solid transparent;
}
.sidebar-link svg    { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sidebar-link:hover  { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-link.active { color: #fff; background: rgba(232, 241, 255, 0.12); border-left-color: var(--gold); }

.sidebar-footer  { padding: 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-logout  {
  width: 100%;
  padding: .65rem;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.48);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .82rem;
  transition: var(--tr);
  font-family: inherit;
}
.sidebar-logout:hover { background: rgba(232, 241, 255, 0.14); color: #fff; }

/* Main area */
.admin-main   { flex: 1; background: var(--cream); overflow-y: auto; }
.admin-topbar {
  background: var(--white);
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-page-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--deep); font-weight: 400; }
.admin-page-sub   { font-size: .8rem; color: var(--muted); margin-top: 1px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; padding: 1.5rem 2rem 0; }
.stat-card  { background: var(--white); border-radius: var(--radius-lg); padding: 1.35rem; border: 1px solid var(--border); }
.stat-icon  { font-size: 1.5rem; margin-bottom: .55rem; }
.stat-value { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; color: var(--deep); line-height: 1; }
.stat-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: .22rem; }

/* Panels */
.admin-panel        { padding: 1.5rem 2rem; display: none; }
.admin-panel.active { display: block; }
.panel-header       { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.panel-title        { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--deep); }

/* Table */
.admin-table-wrap { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.admin-table      { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: var(--cream);
  padding: .85rem 1.1rem;
  text-align: left;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.admin-table td               { padding: .85rem 1.1rem; border-bottom: 1px solid #f0f2f5; font-size: .87rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td      { background: #f8f9fb; }

.table-thumb     { width: 46px; height: 46px; border-radius: var(--radius); overflow: hidden; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.table-thumb img { width: 100%; height: 100%; object-fit: cover; }
.table-thumb svg { width: 28px; height: 17px; opacity: .3; fill: none; stroke: var(--primary); stroke-width: 2; }

.table-name  { font-weight: 500; font-size: .9rem; color: var(--deep); }
.table-cat   { font-size: .8rem; color: var(--muted); text-transform: capitalize; }
.table-price { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--price); }

.table-actions  { display: flex; gap: .4rem; }
.tbl-edit, .tbl-del {
  padding: .32rem .88rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: .73rem;
  font-family: inherit;
  transition: var(--tr);
}
.tbl-edit       { background: var(--primary-light); color: var(--primary); }
.tbl-edit:hover { background: var(--primary); color: #fff; }
.tbl-del        { background: #fee2e2; color: var(--danger); }
.tbl-del:hover  { background: var(--danger); color: #fff; }

.no-products { padding: 3rem; text-align: center; color: var(--muted); font-size: .9rem; }


/* ── 19. Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 51, 0.55);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: min(560px, 100%);
  box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { transform: translateY(22px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.modal-header      { padding: 1.5rem 1.75rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h2   { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; }
.modal-close       { background: none; border: none; cursor: pointer; font-size: 1.3rem; color: var(--muted); line-height: 1; padding: .22rem; }
.modal-body        { padding: 1.75rem; }
.modal-footer      { padding: 1.2rem 1.75rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .7rem; }

.form-row       { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-check-row { display: flex; gap: 1.5rem; margin-bottom: .75rem; }
.form-check     { display: flex; align-items: center; gap: .5rem; font-size: .87rem; cursor: pointer; }
.form-check input { width: 15px; height: 15px; accent-color: var(--primary); }

.img-preview  { width: 78px; height: 78px; border-radius: var(--radius); object-fit: cover; margin-top: .5rem; border: 1px solid var(--border); display: none; }
.modal-error  { background: #fee2e2; color: var(--danger); padding: .65rem 1rem; border-radius: var(--radius); font-size: .82rem; margin-bottom: 1rem; display: none; }


/* ── 20. Settings ───────────────────────────────────────────── */
.settings-card    { background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem; border: 1px solid var(--border); max-width: 480px; margin-bottom: 1rem; }
.settings-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--deep); margin-bottom: 1.2rem; }
.pwd-msg          { font-size: .82rem; margin-top: .75rem; display: none; }

/* ── 21. Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,.55);
  padding: 3rem 0 2rem;
  text-align: center;
}

/* 🔥 CHANGED: flex → grid */
.containerr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: .5rem;
}

.footer-tagline {
  font-size: .84rem;
  margin-bottom: 1.5rem;
}

/* 🔥 stack links vertically */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-links a {
  color: rgba(255,255,255,.4);
  font-size: .77rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: .72rem;
  color: rgba(255,255,255,.22);
}

/* policies */
.footer-policies {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-policies a {
  color: rgba(255,255,255,.35);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-policies a:hover {
  color: var(--gold);
}

/* contact */
.footer-contact {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}

.footer-contact p {
  margin: 4px 0;
}

/* social */
.footer-social {
  display: flex;
  gap: .6rem;
  margin-top: .7rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: .2s;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--primary);
}

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .containerr {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contact {
    grid-column: span 1;
  }

  .footer-social {
    justify-content: center;
  }
}


/* ── 22. Responsive ─────────────────────────────────────────── */
/*
   Breakpoint scale
   ────────────────
   1280px  →  Large desktop
    960px  →  Tablet landscape / small desktop
    768px  →  Tablet portrait
    640px  →  Large phone
    400px  →  Small phone
*/

/* ── Large desktop (≤ 1280px) ───────────────────────────────── */
@media (max-width: 1280px) {
  .container   { padding: 0 2rem; }
  .hero-title  { font-size: clamp(2.4rem, 4.5vw, 4rem); }
  .stats-grid  { grid-template-columns: repeat(4, 1fr); }
  .hero-img    { max-width: 460px; height: 520px; }
  
}
/* ── Tablet landscape / small desktop (≤ 960px) ─────────────── */
@media (max-width: 960px) {
  .hero-inner         { grid-template-columns: 1fr; text-align: center; }
  .hero               { padding: 3rem 0; }
  .hero-visual        { display: flex; justify-content: center; }
  .hero-img           { max-width: 100%; height: 460px; }
  .hero-desc          { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-btns          { justify-content: center; }
  .hero-badge         { margin-left: auto; margin-right: auto; }

  .img-slider         { height: 50vh; max-height: 420px; }

  .products-grid      { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  

  .filters-inner      { gap: .75rem; }
  .search-box         { margin-left: 0; width: 100%; }
  .search-box input   { width: 100%; }

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

  .stats-grid         { grid-template-columns: repeat(2, 1fr); }
  .admin-topbar       { padding: 1rem 1.5rem; }
  .admin-panel        { padding: 1.25rem 1.5rem; }

  .delivery-options   { grid-template-columns: 1fr 1fr; }
}

/* ── Tablet portrait (≤ 768px) ──────────────────────────────── */
@media (max-width: 768px) {
  .nav-links          { display: none; }
  .nav-hamburger      { display: flex; }
  .nav-inner          { gap: 1rem; }

  /* Hero — image becomes full background, text overlays it */
  .hero               { padding: 0; min-height: 100svh; position: relative; }
  .hero-inner         { grid-template-columns: 1fr; position: relative; min-height: 100svh; }
  .hero-visual        { position: absolute; inset: 0; z-index: 0; }
  .hero-img           {
    width: 100%; height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
  }
  /* dark overlay so text stays readable */
  .hero-visual::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(24, 18, 23, 0.45) 0%,
      rgba(24, 18, 23, 0.65) 100%
    );
  }
  .hero-text          {
    position: relative;
    z-index: 2;
    padding: 5rem 0 4rem;
    text-align: center;
  }
  .hero-title         { font-size: clamp(2rem, 6vw, 3rem); color: #fff; }
  .hero-title em      { color: var(--blush); }
  .hero-desc          { color: rgba(255,255,255,.8); }
  .hero-badge         {
    background: rgba(245,158,11,.18);
    border-color: rgba(245,158,11,.45);
    color: #fcd34d;
  }
  .hero-btns          { justify-content: center; }
  .btn-outline        { border-color: rgba(255,255,255,.6); color: #fff; }
  .btn-outline:hover  { background: #fff; color: var(--primary); }

  .img-slider         { height: 45vh; max-height: 360px; }

  .products-grid      { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .product-img        { height: 200px; }

  .filters-section    { top: 68px; }
  .filters-inner      { flex-direction: column; align-items: flex-start; }
  .filter-btns        { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; }
  .search-box         { width: 100%; }

  .cart-page          { padding: 1.5rem 0 3rem; }
  .cart-item          { flex-wrap: wrap; }

  .delivery-options   { grid-template-columns: 1fr 1fr; }
  .step-pills         { gap: .3rem; }

  .admin-sidebar      { width: 60px; }
  .sidebar-link span,
  .sidebar-logo .tag,
  .sidebar-logo .name,
  .sidebar-footer     { display: none; }
  .sidebar-link       { justify-content: center; padding: .85rem; border-left: none; border-bottom: 2.5px solid transparent; }
  .sidebar-link.active { border-left: none; border-bottom-color: var(--gold); }

  .admin-topbar       { padding: 1rem; }
  .admin-panel        { padding: 1rem; }
  .stats-grid         { grid-template-columns: repeat(2, 1fr); gap: .75rem; padding: 1rem; }

  .modal-overlay      { padding: 1.5rem .75rem; }
  .modal              { width: 100%; }
  .form-row           { grid-template-columns: 1fr; }

  .settings-card      { max-width: 100%; }

  .footer             { padding: 2rem 0 1.5rem; }
  .footer-links       { gap: 1rem; }
}

/* ── Large phone (≤ 640px) ──────────────────────────────────── */
@media (max-width: 640px) {
  .container          { padding: 0 1rem; }

  .nav                { height: 58px; }
  .nav-logo           { font-size: 1.45rem; }
  .nav-actions        { gap: .5rem; }

  .hero               { padding: 0; }
  .hero-text          { padding: 4rem 0 3rem; }
  .hero-title         { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-desc          { font-size: .92rem; }
  .hero-btns          { flex-direction: column; align-items: center; }
  .hero-btns .btn     { width: 100%; justify-content: center; }

  .img-slider         { height: 55vw; max-height: 300px; }
  .slider-btn         { width: 36px; height: 36px; }
  .feature-item       { padding: .75rem 1rem; }
  .feature-label      { font-size: .95rem; }

  .section            { padding: 3rem 0; }
  .section-header     { margin-bottom: 2rem; }

  .products-grid      { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .product-img        { height: 170px; }
  .product-info       { padding: 1rem; }
  .product-name       { font-size: 1.1rem; }
  .product-footer     { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .product-footer .btn { width: 100%; }

  .shop-hero          { padding: 3rem 0 2rem; }

  .cart-hdr           { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .cart-item          { padding: 1rem; }
  .cart-item-img      { width: 65px; height: 65px; }
  .qty-btn            { width: 32px; height: 32px; }

  .order-summary      { padding: 1.25rem; }
  .delivery-options   { grid-template-columns: 1fr; }

  .admin-login-box    { padding: 2rem 1.5rem; }
  .admin-login-logo   { font-size: 1.7rem; }

  .stats-grid         { grid-template-columns: 1fr 1fr; gap: .6rem; padding: .75rem; }
  .stat-card          { padding: 1rem; }
  .stat-value         { font-size: 1.8rem; }
  .admin-table th,
  .admin-table td     { padding: .65rem .75rem; font-size: .8rem; }
  .table-thumb        { width: 36px; height: 36px; }
  .tbl-edit, .tbl-del { padding: .28rem .65rem; }

  .modal-header,
  .modal-body,
  .modal-footer       { padding: 1.1rem 1.25rem; }
  .modal-footer       { flex-direction: column-reverse; }
  .modal-footer .btn  { width: 100%; }

  .toast              { width: calc(100% - 2rem); text-align: center; white-space: normal; }

  .footer-links       { flex-direction: column; align-items: center; gap: .65rem; }
}

/* ── Small phone (≤ 400px) ──────────────────────────────────── */
@media (max-width: 400px) {
  .nav-logo           { font-size: 1.25rem; }
  .cart-count         { width: 14px; height: 14px; font-size: .55rem; }

  .hero-title         { font-size: clamp(1.7rem, 9vw, 2.2rem); }
  .hero-img           { width: 100%; height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none; margin-bottom: 4rem; }

  .products-grid      { grid-template-columns: 1fr 1fr; }
  .product-img        { height: 170px; }
  .product-info       { padding: 1rem; }

  .img-slider         { height: 220px; }
  .slider-btn         { display: none; }

  .stats-grid         { grid-template-columns: 1fr; }
  .stat-value         { font-size: 1.6rem; }

  .admin-table .col-category,
  .admin-table .col-stock     { display: none; }

  .btn-lg             { padding: .85rem 1.5rem; font-size: .82rem; }

  .step-pills         { gap: .2rem; }
  .delivery-options   { grid-template-columns: 1fr; }
  .form-check-row     { flex-direction: column; gap: .65rem; }
}
/* ================================================================
   ADMIN DASHBOARD — Mobile Responsive
   ================================================================ */

/* Table always scrolls horizontally */
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table      { min-width: 580px; }

/* ── Tablet landscape (≤ 960px) ─────────────────────────────── */
@media (max-width: 960px) {
  .admin-sidebar    { width: 200px; }
  .admin-topbar     { padding: 1rem 1.5rem; }
  .admin-panel      { padding: 1.25rem 1.5rem; }
  .stats-grid       { grid-template-columns: repeat(2,1fr); gap: .85rem; padding: 1.25rem 1.5rem 0; }
}

/* ── Tablet portrait (≤ 768px) — sidebar icon only ──────────── */
@media (max-width: 768px) {
  .admin-sidebar      { width: 60px; }
  .sidebar-link span,
  .sidebar-logo .tag,
  .sidebar-logo .name,
  .sidebar-footer     { display: none; }
  .sidebar-link       { justify-content: center; padding: .85rem; border-left: none; border-bottom: 2.5px solid transparent; }
  .sidebar-link.active { border-left: none; border-bottom-color: var(--gold); }
  .admin-topbar       { padding: 1rem; }
  .admin-panel        { padding: 1rem; }
  .stats-grid         { grid-template-columns: repeat(2,1fr); gap: .75rem; padding: 1rem 1rem 0; }
  .modal-overlay      { padding: 1rem .75rem; align-items: flex-end; }
  .modal              { width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92dvh; overflow-y: auto; }
  .modal-footer       { flex-direction: column-reverse; gap: .5rem; }
  .modal-footer .btn  { width: 100%; }
  .form-row           { grid-template-columns: 1fr; gap: .75rem; }
  .settings-card      { max-width: 100%; }
}

/* ── Phone (≤ 540px) — sidebar hides, hamburger shows ───────── */
@media (max-width: 540px) {
  .admin-sidebar      { display: none; }
  .admin-main         { width: 100%; }
  .admin-layout       { flex-direction: column; }
  .admin-page-title   { font-size: 1.1rem; }
  .admin-page-sub     { font-size: .68rem; }
  .admin-topbar .btn  { font-size: .7rem; padding: .35rem .7rem; }
  .stats-grid         { grid-template-columns: 1fr 1fr; gap: .55rem; padding: .75rem .75rem 0; }
  .stat-card          { padding: .85rem; }
  .stat-value         { font-size: 1.4rem; }
  .stat-label         { font-size: .62rem; }
  .stat-icon          { font-size: 1.1rem; }
  .admin-panel        { padding: .75rem; }
  .panel-title        { font-size: 1rem; }
  .admin-table        { min-width: 460px; }
  .admin-table th,
  .admin-table td     { padding: .55rem .65rem; font-size: .74rem; }
  .table-thumb        { width: 32px; height: 32px; }
  .tbl-edit,.tbl-del  { padding: .22rem .5rem; font-size: .68rem; }
  .hide-mobile        { display: none; }
}

/* ── Small phone (≤ 400px) ──────────────────────────────────── */
@media (max-width: 400px) {
  .stats-grid  { gap: .4rem; }
  .stat-value  { font-size: 1.25rem; }
  .admin-panel { padding: .6rem; }
  .admin-table { min-width: 400px; }
}