/* =================================================================
   MOOSERO ONLINE SHOPPING — Premium Stylesheet
   Design: Apple-inspired · Glassmorphism · Mobile-First
   Colors: Primary #1E3A8A · Accent #F59E0B
   Fonts:  Poppins (headings) · Inter (body)
================================================================= */

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

:root {
  --primary:       #1E3A8A;
  --primary-lt:    #2563EB;
  --primary-dk:    #1e40af;
  --accent:        #F59E0B;
  --accent-lt:     #FCD34D;
  --accent-dk:     #D97706;
  --dark:          #111827;
  --dark-2:        #1f2937;
  --dark-3:        #374151;
  --gray:          #6B7280;
  --gray-lt:       #9CA3AF;
  --light:         #F8FAFC;
  --light-2:       #F1F5F9;
  --light-3:       #E2E8F0;
  --white:         #FFFFFF;
  --success:       #10B981;
  --danger:        #EF4444;
  --warning:       #F59E0B;
  --info:          #3B82F6;

  --font-head:     'Poppins', sans-serif;
  --font-body:     'Inter', sans-serif;

  --sh-xs: 0 1px 2px rgba(0,0,0,.06);
  --sh-sm: 0 2px 8px rgba(0,0,0,.08);
  --sh:    0 4px 16px rgba(0,0,0,.10);
  --sh-md: 0 8px 24px rgba(0,0,0,.12);
  --sh-lg: 0 16px 48px rgba(0,0,0,.16);
  --sh-xl: 0 24px 64px rgba(0,0,0,.20);

  --r-sm: 8px;
  --r:    12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-f:  9999px;

  --tr:   all .3s cubic-bezier(.4,0,.2,1);
  --tr-f: all .15s cubic-bezier(.4,0,.2,1);

  --nav-h: 70px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--dark); background: var(--light); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container  { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.sr-only    { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Typography ──────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-f);
  font-family: var(--font-head); font-size: .875rem; font-weight: 600;
  transition: var(--tr); cursor: pointer; border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary  { background: var(--primary);     color: var(--white); }
.btn-primary:hover  { background: var(--primary-lt);  box-shadow: 0 8px 24px rgba(30,58,138,.3); transform: translateY(-2px); }
.btn-accent   { background: var(--accent);       color: var(--white); }
.btn-accent:hover   { background: var(--accent-dk);   box-shadow: 0 8px 24px rgba(245,158,11,.3); transform: translateY(-2px); }
.btn-outline  { border-color: var(--primary);    color: var(--primary); }
.btn-outline:hover  { background: var(--primary);     color: var(--white); }
.btn-ghost    { color: var(--primary); }
.btn-ghost:hover    { background: rgba(30,58,138,.08); }
.btn-sm { padding: 8px 16px; font-size: .8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-icon { padding: 10px; border-radius: 50%; width: 42px; height: 42px; justify-content: center; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; pointer-events: none; }

/* ── Navigation ──────────────────────────────────────────────── */
.shop-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(17,24,39,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--tr);
}
.shop-nav.scrolled { background: rgba(17,24,39,.98); box-shadow: var(--sh-md); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo  { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.nav-logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--white); }
.nav-logo-tag  { font-size: .65rem; color: var(--accent); font-weight: 500; display: block; margin-top: -4px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link  {
  color: rgba(255,255,255,.75); font-size: .875rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-f);
  transition: var(--tr-f);
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.1); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-cart-btn {
  position: relative; width: 44px; height: 44px;
  background: rgba(255,255,255,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1rem;
  transition: var(--tr-f);
}
.nav-cart-btn:hover { background: var(--accent); color: var(--white); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: var(--white);
  font-size: .65rem; font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--dark);
  display: none;
}
.cart-badge.visible { display: flex; }

.nav-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); color: var(--white);
  padding: 8px 16px; border-radius: var(--r-f);
  font-size: .8rem; font-weight: 500; transition: var(--tr-f);
}
.nav-user-btn:hover { background: rgba(255,255,255,.18); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; background: rgba(255,255,255,.1);
  border-radius: var(--r-sm);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--tr); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(17,24,39,.98); backdrop-filter: blur(20px);
    flex-direction: column; gap: 0; padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 16px; border-radius: var(--r-sm); }
}
@media (max-width: 480px) {
  .nav-logo-text { font-size: 1rem; }
  .nav-user-btn span { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; padding-top: var(--nav-h);
  background: linear-gradient(135deg, #0a0f1e 0%, #1E3A8A 50%, #0f2460 100%);
  display: flex; align-items: center; overflow: hidden;
  position: relative;
}
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.25) 0%, transparent 70%);
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 { width: 600px; height: 600px; top: -200px; right: -100px; animation-delay: 0s; }
.hero-orb-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; animation-delay: 4s; background: radial-gradient(circle, rgba(30,58,138,.4) 0%, transparent 70%); }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px,-30px) scale(1.05); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.3);
  color: var(--accent-lt); padding: 6px 16px; border-radius: var(--r-f);
  font-size: .8rem; font-weight: 600; margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-badge i { font-size: .7rem; }
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white); line-height: 1.1; margin-bottom: 20px;
}
.hero-title-accent { color: var(--accent); display: block; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.7); margin-bottom: 36px; max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stat-row {
  display: flex; gap: 32px; margin-top: 56px; flex-wrap: wrap;
}
.hero-stat { color: rgba(255,255,255,.8); }
.hero-stat-num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--white); }
.hero-stat-lbl { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 2px; }

/* ── Section Shared ──────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--light-2); }
.section-dark { background: var(--dark); color: var(--white); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
.section-desc  { color: var(--gray); max-width: 540px; margin: 0 auto; }

/* ── Category Cards ──────────────────────────────────────────── */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.cat-card {
  background: var(--white); border-radius: var(--r-md);
  padding: 28px 20px; text-align: center;
  box-shadow: var(--sh-sm); border: 1px solid var(--light-3);
  transition: var(--tr); cursor: pointer;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--primary); }
.cat-card.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.cat-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 1.4rem; color: var(--white);
}
.cat-card.active .cat-icon { background: rgba(255,255,255,.2); }
.cat-name { font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.cat-count { font-size: .75rem; color: var(--gray); }
.cat-card.active .cat-count { color: rgba(255,255,255,.7); }

/* ── Product Grid ────────────────────────────────────────────── */
.products-toolbar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px; margin-bottom: 28px;
}
.search-box {
  flex: 1; min-width: 240px; max-width: 380px;
  position: relative;
}
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray); }
.search-box input {
  width: 100%; padding: 10px 14px 10px 40px;
  border: 1.5px solid var(--light-3); border-radius: var(--r-f);
  font-size: .875rem; background: var(--white); outline: none;
  transition: var(--tr-f);
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,138,.1); }

.filter-select {
  padding: 10px 36px 10px 14px; border: 1.5px solid var(--light-3);
  border-radius: var(--r-f); font-size: .875rem; background: var(--white);
  outline: none; cursor: pointer; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: var(--tr-f);
}
.filter-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,138,.1); }

.products-count { margin-left: auto; font-size: .875rem; color: var(--gray); }

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

/* ── Product Card ────────────────────────────────────────────── */
.product-card {
  background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--sh-sm); border: 1px solid var(--light-3);
  overflow: hidden; transition: var(--tr);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }

.product-img-wrap {
  position: relative; padding-top: 75%; overflow: hidden;
  background: var(--light-2);
}
.product-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s ease, opacity .4s ease;
}
.product-card:hover .product-img { transform: scale(1.06); }
.product-img-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 3rem; color: var(--light-3);
}
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: var(--white);
  font-size: .68rem; font-weight: 700; padding: 3px 10px;
  border-radius: var(--r-f); letter-spacing: .04em;
}
.product-badge.out { background: var(--danger); }

.carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 3;
  pointer-events: none;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(0,0,0,.25);
  padding: 0; cursor: pointer;
  transition: background .3s ease, transform .3s ease;
  pointer-events: all;
}
.carousel-dot.active {
  background: var(--white);
  transform: scale(1.4);
}

.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat {
  font-size: .72rem; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px;
}
.product-name {
  font-family: var(--font-head); font-size: .95rem; font-weight: 600;
  color: var(--dark); margin-bottom: 10px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.product-price {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700;
  color: var(--dark);
}
.product-price-orig {
  font-size: .85rem; color: var(--gray); text-decoration: line-through;
}

.btn-cart {
  width: 100%; padding: 10px; border-radius: var(--r-sm);
  background: var(--primary); color: var(--white);
  font-family: var(--font-head); font-size: .85rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--tr-f);
}
.btn-cart:hover { background: var(--primary-lt); }
.btn-cart:active { transform: scale(.97); }
.btn-cart.added { background: var(--success); }
.btn-cart:disabled { background: var(--gray-lt); cursor: not-allowed; }

/* ── Loading Skeleton ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--light-2) 25%, var(--light-3) 50%, var(--light-2) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.skeleton-card { border-radius: var(--r-md); overflow: hidden; }
.skeleton-img  { height: 200px; }
.skeleton-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { height: 14px; border-radius: var(--r-f); }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }

/* ── Cart Page ────────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 48px) 0 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: var(--white);
}
.page-hero-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 8px; }
.page-hero-sub   { color: rgba(255,255,255,.7); }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-items-wrap { background: var(--white); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-sm); }
.cart-items-wrap h2 { font-size: 1.2rem; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--light-3); }

.cart-item {
  display: flex; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--light-3);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 80px; height: 80px; border-radius: var(--r-sm);
  object-fit: cover; background: var(--light-2); flex-shrink: 0;
}
.cart-item-img-ph { background: var(--light-2); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--light-3); }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: .95rem; margin-bottom: 12px; }

.qty-control { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--light-3); border-radius: var(--r-f); overflow: hidden; width: fit-content; }
.qty-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: .9rem; background: var(--light-2); color: var(--dark); transition: var(--tr-f); }
.qty-btn:hover { background: var(--primary); color: var(--white); }
.qty-num { width: 36px; text-align: center; font-weight: 600; font-size: .875rem; }

.cart-item-remove { align-self: flex-start; padding: 6px; border-radius: 50%; color: var(--gray); transition: var(--tr-f); }
.cart-item-remove:hover { background: rgba(239,68,68,.1); color: var(--danger); }

.cart-empty { text-align: center; padding: 64px 0; color: var(--gray); }
.cart-empty i { font-size: 4rem; margin-bottom: 16px; color: var(--light-3); }
.cart-empty h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--dark-3); }

.order-summary {
  background: var(--white); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--sh-sm); position: sticky; top: 90px;
}
.order-summary h3 { font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--light-3); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: .9rem; }
.summary-row.total { font-weight: 700; font-size: 1.1rem; padding-top: 14px; border-top: 1px solid var(--light-3); margin-top: 4px; }
.summary-row.total .summary-val { color: var(--primary); }

/* ── Auth Pages ───────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; padding-top: var(--nav-h);
  background: linear-gradient(135deg, #0a0f1e 0%, #1E3A8A 100%);
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 40px;
}
.auth-card {
  background: var(--white); border-radius: var(--r-xl);
  padding: 40px; width: 100%; max-width: 480px;
  box-shadow: var(--sh-xl); margin: 20px;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 10px; }
.auth-logo h1 { font-size: 1.6rem; }
.auth-logo p  { font-size: .85rem; color: var(--gray); }
.auth-title   { font-size: 1.3rem; margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--dark-2); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--light-3);
  border-radius: var(--r-sm); font-size: .9rem; outline: none;
  transition: var(--tr-f); background: var(--light);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,138,.1); background: var(--white); }
.form-control.is-invalid { border-color: var(--danger); }

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 40px; }
.input-icon-wrap .input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-lt); font-size: .9rem; }

.form-hint  { font-size: .75rem; color: var(--gray); margin-top: 4px; }
.form-error { font-size: .75rem; color: var(--danger); margin-top: 4px; display: none; }

.divider { text-align: center; color: var(--gray-lt); font-size: .8rem; margin: 18px 0; position: relative; }
.divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--light-3); }
.divider span { background: var(--white); padding: 0 12px; position: relative; }

.auth-footer { text-align: center; margin-top: 20px; font-size: .875rem; color: var(--gray); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.alert {
  padding: 12px 16px; border-radius: var(--r-sm); font-size: .875rem;
  margin-bottom: 16px; display: none;
}
.alert-danger  { background: rgba(239,68,68,.1);  color: var(--danger);  border: 1px solid rgba(239,68,68,.2); }
.alert-success { background: rgba(16,185,129,.1); color: var(--success); border: 1px solid rgba(16,185,129,.2); }
.alert.visible { display: block; }

/* ── Orders Page ──────────────────────────────────────────────── */
.orders-list { display: flex; flex-direction: column; gap: 16px; }

.order-card {
  background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--sh-sm); border: 1px solid var(--light-3);
  overflow: hidden; transition: var(--tr);
}
.order-card:hover { box-shadow: var(--sh); }

.order-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--light-3);
  flex-wrap: wrap; gap: 12px;
}
.order-no { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.order-date { font-size: .8rem; color: var(--gray); }

.order-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--r-f);
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
}
.status-pending    { background: rgba(245,158,11,.1); color: var(--warning); }
.status-processing { background: rgba(59,130,246,.1); color: var(--info); }
.status-ready      { background: rgba(139,92,246,.1); color: #7c3aed; }
.status-completed  { background: rgba(16,185,129,.1); color: var(--success); }
.status-cancelled  { background: rgba(239,68,68,.1);  color: var(--danger); }

.order-card-body { padding: 20px 24px; }
.order-items-preview { display: flex; gap: 8px; margin-bottom: 16px; }
.order-item-thumb {
  width: 48px; height: 48px; border-radius: var(--r-sm);
  object-fit: cover; background: var(--light-2);
}
.order-item-ph { display: flex; align-items: center; justify-content: center; color: var(--gray-lt); font-size: 1rem; }

.order-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: var(--light);
  border-top: 1px solid var(--light-3);
}
.order-total { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }

/* Order Timeline */
.order-timeline { padding: 24px 0; }
.timeline-step {
  display: flex; gap: 16px; position: relative;
}
.timeline-step:not(:last-child)::before {
  content: ''; position: absolute; left: 17px; top: 36px;
  width: 2px; height: calc(100% + 4px);
  background: var(--light-3);
}
.timeline-step.done::before { background: var(--success); }
.timeline-dot {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--light-3); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .85rem; color: var(--gray-lt);
  transition: var(--tr);
}
.timeline-step.done   .timeline-dot { border-color: var(--success); background: var(--success); color: var(--white); }
.timeline-step.active .timeline-dot { border-color: var(--primary); background: var(--primary); color: var(--white); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(30,58,138,.4); } 50% { box-shadow: 0 0 0 8px rgba(30,58,138,0); } }

.timeline-content { padding: 4px 0 24px; }
.timeline-title  { font-weight: 600; font-size: .9rem; margin-bottom: 2px; }
.timeline-sub    { font-size: .8rem; color: var(--gray); }

/* ── Checkout ─────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--sh-sm);
}
.checkout-card h2 { font-size: 1.2rem; margin-bottom: 20px; }

.order-success-wrap { text-align: center; padding: 56px 0; }
.success-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(16,185,129,.1); margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--success);
}
.success-order-no {
  display: inline-block; background: var(--light-2);
  padding: 6px 20px; border-radius: var(--r-f);
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.1rem; margin: 16px 0; letter-spacing: .04em;
}

/* ── Admin ────────────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--dark); color: var(--white); padding: 0;
  position: fixed; top: 0; bottom: 0; width: 240px; overflow-y: auto;
}
.admin-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-logo h2 { font-size: 1.1rem; color: var(--white); }
.admin-logo span { font-size: .75rem; color: var(--accent); }
.admin-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: rgba(255,255,255,.65); font-size: .875rem;
  transition: var(--tr-f); border-left: 3px solid transparent;
}
.admin-nav-link:hover, .admin-nav-link.active {
  color: var(--white); background: rgba(255,255,255,.06);
  border-left-color: var(--accent);
}
.admin-main { margin-left: 240px; padding: 32px; background: var(--light); min-height: 100vh; }
.admin-header { margin-bottom: 32px; }
.admin-header h1 { font-size: 1.6rem; }
.admin-header p  { color: var(--gray); margin-top: 4px; }

.admin-card { background: var(--white); border-radius: var(--r-md); padding: 24px; box-shadow: var(--sh-sm); margin-bottom: 24px; }
.admin-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--light-3); }

.toggle-switch { position: relative; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0; border-radius: var(--r-f);
  background: var(--light-3); cursor: pointer; transition: var(--tr-f);
}
.toggle-track::before {
  content: ''; position: absolute; width: 20px; height: 20px;
  left: 2px; top: 2px; border-radius: 50%;
  background: var(--white); transition: var(--tr-f);
  box-shadow: var(--sh-xs);
}
.toggle-switch input:checked + .toggle-track { background: var(--success); }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(20px); }

.cat-config-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--light-3);
}
.cat-config-row:last-child { border-bottom: none; }
.cat-config-name { font-weight: 500; font-size: .9rem; }

/* ── Toast ────────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--dark); color: var(--white);
  padding: 14px 20px; border-radius: var(--r-sm);
  font-size: .875rem; box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 10px;
  pointer-events: all; min-width: 280px;
  animation: toastIn .3s ease forwards;
}
.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-danger  { border-left: 4px solid var(--danger); }
.toast.toast-info    { border-left: 4px solid var(--info); }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn  { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* ── Footer ───────────────────────────────────────────────────── */
.shop-footer {
  background: var(--dark); color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { font-size: .875rem; line-height: 1.7; margin: 14px 0 20px; }
.footer-logo    { display: flex; align-items: center; gap: 10px; }
.footer-logo img { width: 40px; height: 40px; border-radius: 10px; }
.footer-logo-txt { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--white); }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: var(--tr-f);
}
.footer-social a:hover { background: var(--accent); color: var(--white); }

.footer-col h4 { font-family: var(--font-head); color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .875rem; transition: var(--tr-f); }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; display: flex;
  justify-content: space-between; align-items: center;
  font-size: .8rem; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: var(--accent); }

/* ── Misc ─────────────────────────────────────────────────────── */
.page-pad { padding-top: calc(var(--nav-h) + 40px); }
.sticky-top { position: sticky; top: calc(var(--nav-h) + 16px); }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-f);
  font-size: .72rem; font-weight: 700;
}

.price-tag { font-family: var(--font-head); font-weight: 700; color: var(--primary); }

.back-to-top {
  position: fixed; bottom: 24px; left: 24px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-md); opacity: 0; pointer-events: none;
  transition: var(--tr-f);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); }

/* ── Animations ─────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive Extras ───────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .cats-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
  .cart-item-img { width: 64px; height: 64px; }
  .admin-layout  { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; width: 100%; }
  .admin-main    { margin-left: 0; }
}
@media (max-width: 480px) {
  .products-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: unset; max-width: unset; }
  .auth-card { padding: 28px 20px; }
}
