/* ══════════════════════════════════════════════════
   MỘC VIỆT — Luxury Design System v2
   ══════════════════════════════════════════════════ */

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

/* ── Variables ──────────────────────────────────── */
:root {
  --primary:       #28481A;
  --primary-rgb:   40, 72, 26;
  --primary-light: #3A6625;
  --primary-dark:  #172C0E;
  --accent:        #B89050;
  --accent-light:  #CDAB6E;
  --secondary:     #78876E;

  --bg-main:   #FDFBF6;
  --bg-card:   #FFFFFF;
  --bg-subtle: #F4F2EC;

  --text-main:  #191917;
  --text-muted: #6A6A62;
  --text-light: #FFFFFF;

  --border-color: rgba(0,0,0,0.07);
  --border-light: rgba(255,255,255,0.12);

  --shadow-xs: 0 1px 4px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 14px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.09);
  --shadow-lg: 0 20px 64px rgba(0,0,0,0.13);

  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand-font { font-family: 'Playfair Display', serif; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; transition: var(--transition); }
input, select, textarea { font-family: inherit; outline: none; }

/* ── Layout ─────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section-padding { padding: 80px 0; }
.page-top { padding-top: 80px; }

/* ── Utilities ──────────────────────────────────── */
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.divider { border: none; border-top: 1px solid var(--border-color); margin: 20px 0; }
.req { color: #dc2626; margin-left: 3px; }
.img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ede8df, #d9c9a8);
}
.icon-img    { width: 20px; height: 20px; object-fit: contain; display: inline-block; vertical-align: middle; }
.icon-img-sm { width: 20px; height: 20px; object-fit: contain; display: inline-block; vertical-align: middle; }
.icon-img-lg { width: 28px; height: 28px; object-fit: contain; display: inline-block; vertical-align: middle; }
.stock-low { font-size: 11px; font-weight: 700; color: #b45309; background: #fef3c7; padding: 2px 9px; border-radius: var(--radius-full); }
.stock-out { font-size: 11px; font-weight: 700; color: #dc2626; background: #fee2e2; padding: 2px 9px; border-radius: var(--radius-full); }
.track-link { font-size: 14px; font-weight: 500; color: var(--text-muted); margin-left: 12px; }
.track-link:hover { color: var(--primary); }

/* ── Animations ─────────────────────────────────── */
@keyframes fadeInUp   { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn     { from { opacity:0; transform:translateY(3px);  } to { opacity:1; transform:translateY(0); } }
@keyframes slideUp    { from { opacity:0; transform:translateY(8px);  } to { opacity:1; transform:translateY(0); } }
@keyframes modalIn    { from { opacity:0; transform:scale(0.96) translateY(14px); } to { opacity:1; transform:scale(1) translateY(0); } }
@keyframes dropdownIn { from { opacity:0; transform:translateY(6px);  } to { opacity:1; transform:translateY(0); } }
@keyframes slowZoom   { from { transform:scale(1); }   to { transform:scale(1.08); } }
@keyframes spin       { to { transform:rotate(360deg); } }
@keyframes rotate     { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }

/* ══════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(253,251,246,0.96);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}
.navbar-inner {
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 0 32px; gap: 20px;
}
.navbar-brand {
  display: flex; align-items: center;
  flex-shrink: 0; gap: 8px;
}
.navbar-brand .brand-logo { height: 44px; width: auto; border-radius: 50%; }

.navbar-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 800;
  color: var(--primary); white-space: nowrap;
  letter-spacing: 0.5px; flex-shrink: 0;
}
.navbar-brand-text span { color: var(--accent); }

.navbar-hotline {
  display: flex; align-items: center;
  font-size: 14px; font-weight: 700;
  color: var(--primary); white-space: nowrap;
  padding: 7px 14px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}
.navbar-hotline:hover { background: var(--primary); color: #fff; }
.navbar-hotline:hover img { filter: brightness(10); }

.navbar-search { flex: 1; max-width: 420px; position: relative; }
.navbar-search input {
  width: 100%; padding: 10px 18px 10px 44px;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 14px; color: var(--text-main);
  transition: var(--transition);
}
.navbar-search input:focus {
  background: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,144,80,0.1);
}
.navbar-search .search-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%); opacity: 0.38;
}
.navbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.navbar-login-btn {
  background: var(--primary); color: white;
  padding: 9px 22px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 14px;
}
.navbar-login-btn:hover { background: var(--primary-light); transform: translateY(-1px); }

.navbar-icon-btn {
  position: relative; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: transparent;
  border: 1px solid var(--border-color);
}
.navbar-icon-btn:hover { background: var(--bg-subtle); }
.navbar-icon-btn img { width: 18px; height: 18px; object-fit: contain; }

.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  font-weight: 500; font-size: 14px;
  border: 1px solid var(--border-color);
}
.user-btn:hover { border-color: rgba(184,144,80,0.4); }
.user-btn .avatar {
  width: 30px; height: 30px;
  background: var(--accent); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}

.notif-btn, .cart-btn {
  position: relative; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 18px;
  border: 1px solid var(--border-color);
}
.notif-btn:hover, .cart-btn:hover { background: var(--bg-subtle); border-color: rgba(184,144,80,0.35); }

.notif-badge {
  position: absolute; top: 7px; right: 7px;
  width: 16px; height: 16px; background: #e74c3c;
  color: white; font-size: 9px; font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-main);
}

/* Dropdowns */
.user-dropdown, .notif-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: white; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: none; z-index: 1000;
  border: 1px solid var(--border-color);
  animation: dropdownIn 0.2s ease;
}
.user-dropdown.open, .notif-dropdown.open { display: block; }
.user-dropdown { min-width: 210px; }
.user-dropdown a, .user-dropdown button {
  display: block; width: 100%; padding: 11px 18px;
  text-align: left; font-size: 14px; font-weight: 500;
  color: var(--text-main); border: none; background: none;
}
.user-dropdown a:hover, .user-dropdown button:hover {
  background: var(--bg-subtle); color: var(--primary);
}

.notif-dropdown { width: 340px; }
.notif-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border-color);
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 14px; background: var(--bg-subtle);
}
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 10px; padding: 13px 18px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer; transition: var(--transition);
}
.notif-item:hover { background: var(--bg-subtle); }
.notif-item.unread { background: rgba(40,72,26,0.03); }
.notif-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 6px; }
.notif-msg { font-size: 13px; line-height: 1.5; color: var(--text-main); }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.notif-empty { padding: 36px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
  position: relative; height: 86vh; min-height: 580px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--text-light);
  overflow: hidden; background: var(--primary-dark);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1513519245088-0e12902e5a38?auto=format&fit=crop&q=80&w=2000');
  background-size: cover; background-position: center;
  animation: slowZoom 22s infinite alternate;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 720px; padding: 0 24px;
}
.hero-text-overlay {
  position: absolute; bottom: 0; left: 0; z-index: 2;
  padding: 0 0 56px 6%; max-width: 700px;
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1; margin: 0 0 16px 0;
  font-weight: 700; letter-spacing: -0.5px;
  text-align: left; padding: 0;
  animation: fadeInUp 0.9s ease-out;
}
.hero h1 span { color: var(--accent-light); font-style: italic; }
.hero p {
  font-size: 1.05rem; font-weight: 300; margin: 0 0 12px 0; padding: 0;
  opacity: 0.88; line-height: 1.7; text-align: left;
  animation: fadeInUp 0.9s ease-out 0.15s backwards;
}
/* 4-level banner hierarchy */
.hero .hero-subtitle {
  font-size: 1.25rem; font-weight: 400; opacity: 0.95; margin-bottom: 8px;
}
.hero .hero-content {
  font-size: 0.97rem; font-weight: 300; opacity: 0.78; margin-bottom: 16px; line-height: 1.65;
}
.hero-search-wrap { position: relative; max-width: 540px; width: 100%; margin: 0 auto; }
.hero-search {
  display: flex; background: white; padding: 6px;
  border-radius: var(--radius-full); box-shadow: var(--shadow-lg);
  width: 100%;
  animation: fadeInUp 0.9s ease-out 0.3s backwards;
}
.search-suggest-drop {
  display: none; position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  overflow: hidden; z-index: 1000;
}
.search-suggest-drop.open { display: block; }
.suggest-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s; text-align: left;
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: #f7f5f0; }
.suggest-item img { width:40px; height:40px; border-radius:8px; object-fit:cover; flex-shrink:0; }
.suggest-item-placeholder { width:40px; height:40px; border-radius:8px; background:linear-gradient(135deg,#ede8df,#d9c9a8); flex-shrink:0; }
.suggest-item-name { font-size:14px; font-weight:600; color:#1a1a1a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.suggest-item-price { font-size:12px; color:var(--primary); font-weight:700; margin-top:2px; }
.suggest-empty { padding:14px 16px; text-align:center; color:#9ca3af; font-size:13px; }
.hero-search input {
  flex: 1; border: none; padding: 0 20px;
  font-size: 15px; color: var(--text-main);
}
.hero-search button {
  background: var(--primary); color: white;
  padding: 13px 28px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 14px;
}
.hero-search button:hover { background: var(--primary-light); }

/* ══════════════════════════════════════════════════
   SECTION HEADER & PILLS
   ══════════════════════════════════════════════════ */
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 40px;
}
.section-title { font-size: 2rem; color: var(--primary); line-height: 1.15; }

.category-pills {
  display: flex; gap: 8px; margin-bottom: 32px;
  overflow-x: auto; padding-bottom: 6px; scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }
.pill {
  padding: 9px 22px;
  background: white; border: 1px solid var(--border-color);
  border-radius: var(--radius-full); font-size: 13.5px; font-weight: 500;
  white-space: nowrap; transition: var(--transition); color: var(--text-muted);
}
.pill.active, .pill:hover {
  background: var(--primary); color: white; border-color: var(--primary);
}

/* ══════════════════════════════════════════════════
   PRODUCT GRID & CARDS
   ══════════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}
.product-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(184,144,80,0.22);
}
.product-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-img { transform: scale(1.04); }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ede8df, #d9c9a8); font-size: 3rem;
}
.wishlist-btn {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xs); z-index: 2; font-size: 20px; line-height: 1;
}
.wishlist-btn:hover { transform: scale(1.1); background: white; }
.wishlist-btn.active { color: #e74c3c; }
.wishlist-btn img { width:20px;height:20px;object-fit:contain;opacity:.4;filter:grayscale(1); }
.wishlist-btn.active img { opacity:1;filter:none; }
.product-flash-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(90deg, #f53d2d, #ff7337);
  color: white; font-size: 10px; font-weight: 800;
  letter-spacing: 0.5px; padding: 5px 8px;
  text-align: center; text-transform: uppercase;
}
.product-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-shop {
  font-size: 11px; color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.product-name {
  font-size: 15.5px; font-weight: 600; margin-bottom: 12px; color: var(--text-main);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.8em; line-height: 1.45;
}
.product-price-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto; flex-wrap: nowrap;
}
.product-price-left { flex: 1; min-width: 0; }
.product-card-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Cart icon button */
.btn-cart-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.07);
  border: 1.5px solid rgba(var(--primary-rgb), 0.18);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.btn-cart-icon img { width: 16px; height: 16px; object-fit: contain; opacity: 0.65; transition: filter 0.2s; }
.btn-cart-icon:hover { background: var(--primary); border-color: var(--primary); }
.btn-cart-icon:hover img { filter: brightness(0) invert(1); opacity: 1; }
.btn-cart-icon:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* Buy now button */
.btn-buy-now {
  flex-shrink: 0;
  padding: 7px 13px; font-size: 12.5px; font-weight: 700;
  background: var(--primary); color: #fff;
  border: none; border-radius: 8px; cursor: pointer;
  white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: var(--transition); line-height: 1;
}
.btn-buy-now:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.28); }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.product-price-original { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }
.product-deal-badge, .flash-pct-badge {
  background: #f53d2d; color: white;
  padding: 2px 6px; border-radius: 2px;
  font-size: 11px; font-weight: 800;
}

/* ══════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════ */
.btn {
  padding: 11px 22px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; transition: var(--transition);
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(40,72,26,0.3); }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border-color); }
.btn-ghost:hover { background: var(--bg-subtle); color: var(--text-main); }
.btn-danger  { background: #dc2626; color: white; }
.btn-danger:hover  { background: #b91c1c; }
.btn-success { background: #16a34a; color: white; }
.btn-success:hover { background: #15803d; }
.btn-sm    { padding: 7px 15px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg    { padding: 14px 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ══════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-danger    { background: #fff5f5; color: #f53d2d; border: 1px solid #ffe3e3; }
.badge-success   { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }
.badge-warning   { background: #fffbeb; color: #b45309; border: 1px solid #fef3c7; }
.badge-info      { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.badge-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.badge-primary   { background: rgba(40,72,26,0.08); color: var(--primary); border: 1px solid rgba(40,72,26,0.14); }

/* ══════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13.5px; font-weight: 600;
  margin-bottom: 7px; color: var(--text-main);
}
.form-control {
  width: 100%; padding: 12px 15px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px; color: var(--text-main);
  transition: var(--transition);
}
.form-control:focus {
  background: white; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(40,72,26,0.06);
}
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }

/* ══════════════════════════════════════════════════
   ROLE TABS
   ══════════════════════════════════════════════════ */
.role-tabs {
  display: flex; background: var(--bg-subtle); padding: 4px;
  border-radius: var(--radius-md); margin-bottom: 28px;
  border: 1px solid var(--border-color);
}
.role-tab {
  flex: 1; padding: 10px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  transition: var(--transition);
}
.role-tab.active { background: white; color: var(--primary); box-shadow: var(--shadow-xs); }

/* ══════════════════════════════════════════════════
   ALERTS
   ══════════════════════════════════════════════════ */
.alert { padding: 13px 16px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.alert-info    { background: rgba(184,144,80,0.08); border: 1px solid rgba(184,144,80,0.2);  color: #7d6232; }
.alert-danger  { background: #fef2f2; border: 1px solid #fee2e2; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #dcfce7; color: #166534; }

/* ══════════════════════════════════════════════════
   AUTH PAGES
   ══════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(145deg, var(--primary-dark) 0%, #1d3812 55%, #264814 100%);
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: ''; position: absolute;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(184,144,80,0.14) 0%, transparent 70%);
  top: -160px; right: -120px;
  animation: rotate 28s linear infinite;
}
.auth-card {
  background: white; padding: 44px 48px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 460px; position: relative; z-index: 2;
}
.auth-logo {
  display: flex; justify-content: center;
  margin-bottom: 36px;
}
.auth-logo .auth-logo-img { height: 80px; width: auto; border-radius: 50%; }
.auth-title    { font-size: 21px; font-weight: 700; margin-bottom: 6px; text-align: center; color: var(--text-main); }
.auth-subtitle { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 28px; }
.auth-footer   { text-align: center; margin-top: 28px; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0; color: var(--text-muted); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-color);
}

/* ══════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 56px; }
.pagination button {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-color); border-radius: var(--radius-full);
  font-weight: 600; font-size: 14px; background: white; color: var(--text-muted);
}
.pagination button.active, .pagination button:hover {
  background: var(--primary); color: white; border-color: var(--primary);
}
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.5);
  padding: 72px 0 40px; margin-top: 100px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; margin-bottom: 52px;
  justify-items: center; text-align: center;
}
.footer-brand { margin-bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-brand .footer-logo-img { height: 52px; width: auto; border-radius: 50%; }
.footer-desc { font-size: 14px; line-height: 1.75; text-align: center; }
.footer h4   { color: rgba(255,255,255,0.85); font-size: 15px; margin-bottom: 18px; font-weight: 600; text-align: center; }
.footer a    { display: block; margin-bottom: 10px; font-size: 14px; text-align: center; }
.footer a:hover { color: var(--accent-light); }
.footer-col  { text-align: center; width: 100%; }
.footer-col p { text-align: center; font-size: 14px; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px; text-align: center; font-size: 13px;
}

/* ── Rich Text Editor (RTE) ─────────────────────── */
.rte-wrap {
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  overflow: hidden; background: white;
}
.rte-toolbar {
  display: flex; gap: 4px; padding: 8px 10px;
  background: var(--bg-subtle); border-bottom: 1px solid var(--border-color);
  align-items: center; flex-wrap: wrap;
}
.rte-toolbar button {
  width: 32px; height: 32px; border: 1px solid var(--border-color);
  border-radius: 6px; background: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-main); transition: var(--transition);
  flex-shrink: 0;
}
.rte-toolbar button:hover { background: var(--primary-pale, #eef4e8); border-color: var(--primary); color: var(--primary); }
.rte-toolbar select {
  height: 32px; border: 1px solid var(--border-color); border-radius: 6px;
  background: white; padding: 0 8px; font-size: 12px; cursor: pointer;
  color: var(--text-main); font-family: inherit;
}
.rte-editor {
  min-height: 56px; padding: 10px 14px; outline: none;
  font-size: 14px; line-height: 1.6; color: var(--text-main);
}
.rte-editor:empty::before {
  content: attr(data-placeholder); color: var(--text-muted); pointer-events: none;
}

/* ══════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ══════════════════════════════════════════════════ */
.breadcrumb { display: flex; gap: 6px; font-size: 13px; color: var(--text-muted); margin: 28px 0; }
.breadcrumb a:hover { color: var(--primary); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 80px; }
.product-detail-img {
  background: var(--bg-subtle); border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.product-detail-info { display: flex; flex-direction: column; gap: 20px; }
.product-detail-shop { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.product-detail-name { font-size: 2.5rem; line-height: 1.12; color: var(--primary); }
.product-detail-desc { font-size: 15px; color: var(--text-muted); line-height: 1.8; }

.price-box {
  background: var(--bg-subtle); padding: 26px;
  border-radius: var(--radius-md); border: 1px solid var(--border-color);
}
.price-current  { font-size: 2.1rem; font-weight: 800; color: var(--primary); }
.price-original { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; margin-left: 12px; }

/* ── Order Form ─────────────────────────────────── */
.order-form-card {
  background: white; padding: 26px; border-radius: var(--radius-md);
  border: 1px solid var(--border-color); box-shadow: var(--shadow-xs);
}
.order-form-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--primary); }
.qty-control {
  display: flex; align-items: center; background: var(--bg-subtle);
  padding: 3px; border-radius: var(--radius-full); width: fit-content;
  border: 1px solid var(--border-color);
}
.qty-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--primary); border-radius: var(--radius-full);
}
.qty-btn:hover { background: white; box-shadow: var(--shadow-xs); }
.qty-input { width: 50px; text-align: center; background: transparent; border: none; font-weight: 700; font-size: 15px; }
.order-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; border-top: 1px dashed var(--border-color); margin-top: 20px;
}
.order-total-label { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.order-total-value { font-size: 1.85rem; font-weight: 800; color: var(--primary); }

/* ── Variants ───────────────────────────────────── */
.variant-btn {
  padding: 9px 18px; background: white;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500;
  color: var(--text-main); transition: var(--transition); cursor: pointer; white-space: nowrap;
}
.variant-btn:hover { border-color: var(--primary); color: var(--primary); }
.variant-btn.active {
  border-color: var(--primary); background: rgba(40,72,26,0.04);
  color: var(--primary); font-weight: 700; box-shadow: 0 0 0 1px var(--primary);
}
.variant-btn-box {
  padding: 9px 20px; background: white; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600;
  color: var(--text-main); cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.variant-btn-box:hover { border-color: var(--primary); }
.variant-btn-box.active {
  border-color: var(--primary); background: rgba(40,72,26,0.04);
  color: var(--primary); box-shadow: 0 0 0 1px var(--primary);
}
.variant-bulk-list {
  display: flex; flex-direction: column; gap: 10px;
  background: white; border-radius: var(--radius-md);
  border: 1px solid var(--border-color); padding: 18px; box-shadow: var(--shadow-xs);
}
.variant-item-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,0.04);
  animation: fadeIn 0.25s ease;
}
.variant-item-row:last-child { border-bottom: none; padding-bottom: 0; }
.v-item-info  { flex: 1; }
.v-item-name  { font-weight: 600; font-size: 14px; color: var(--text-main); }
.v-item-stock { font-size: 11px; color: #c2410c; font-weight: 600; margin-top: 2px; }
.v-qty-ctrl {
  background: white; border: 1.5px solid var(--border-color);
  height: 32px; border-radius: var(--radius-sm);
}
.v-qty-ctrl .qty-btn { width: 28px; height: 28px; font-size: 13px; }
.v-qty-input { width: 36px !important; font-size: 13px; font-weight: 700; }

/* ══════════════════════════════════════════════════
   FLASH SALE
   ══════════════════════════════════════════════════ */
.flash-sale-banner {
  background: linear-gradient(90deg, #f53d2d 0%, #f6a000 100%);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.flash-sale-banner::after {
  content: ''; position: absolute; top: 0; right: 30%; bottom: 0; left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.flash-left { display: flex; flex-direction: column; gap: 2px; }
.flash-price-row { display: flex; align-items: baseline; gap: 10px; }
.flash-pct-box {
  background: white; color: #f53d2d;
  font-size: 13px; font-weight: 800;
  padding: 1px 6px; border-radius: 2px;
}
.flash-price-now { font-size: 28px; font-weight: 800; }
.flash-price-was { font-size: 14px; text-decoration: line-through; opacity: 0.7; }

.flash-right { text-align: right; z-index: 1; }
.flash-label {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px; font-weight: 900; font-size: 17px;
  text-transform: uppercase; font-style: italic;
}
.flash-timer-text { font-size: 12px; font-weight: 600; opacity: 0.9; margin-top: 2px; }
.flash-timer-nums {
  display: flex; gap: 4px; justify-content: flex-end; margin-top: 4px;
}
.timer-digit {
  background: #333; color: white;
  padding: 2px 4px; border-radius: 3px;
  font-size: 12px; font-weight: 700; min-width: 22px; text-align: center;
}

/* ══════════════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8,16,6,0.58);
  backdrop-filter: blur(5px);
  z-index: 2000; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white; border-radius: var(--radius-lg);
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 28px 80px rgba(0,0,0,0.22);
  animation: modalIn 0.28s cubic-bezier(0.4,0,0.2,1);
}
.modal-header {
  padding: 22px 28px; border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: var(--primary);
}
.modal-close {
  background: var(--bg-subtle); border: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; transition: var(--transition); color: var(--text-muted);
}
.modal-close:hover { background: #e0ddd6; transform: rotate(90deg); color: var(--text-main); }
.modal-body   { padding: 24px 28px; }
.modal-footer {
  padding: 18px 28px; border-top: 1px solid var(--border-color);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ══════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 9999; display: flex; flex-direction: column;
  gap: 10px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 20px; border-radius: var(--radius-md);
  background: white; box-shadow: 0 8px 36px rgba(0,0,0,0.14);
  font-size: 14px; font-weight: 500; border: 1px solid var(--border-color);
  opacity: 0; transform: translateX(22px);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  min-width: 250px; max-width: 360px; pointer-events: auto;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { border-left: 3px solid #16a34a; }
.toast-error   { border-left: 3px solid #dc2626; }
.toast-warning { border-left: 3px solid #b45309; }
.toast-info    { border-left: 3px solid var(--accent); }
.toast-icon    { font-size: 15px; flex-shrink: 0; }
.toast-success .toast-icon { color: #16a34a; }
.toast-error   .toast-icon { color: #dc2626; }
.toast-warning .toast-icon { color: #b45309; }
.toast-info    .toast-icon { color: var(--accent); }

/* ══════════════════════════════════════════════════
   LOADING & EMPTY
   ══════════════════════════════════════════════════ */
.loading { display: flex; justify-content: center; align-items: center; padding: 56px; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border-color); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.75s linear infinite;
}
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 24px; text-align: center;
}
.empty-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.28; }
.empty-state p { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }

/* ══════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ══════════════════════════════════════════════════ */
.dash-layout { display: flex; height: 100vh; overflow: hidden; background: #f0ede6; }

.dash-sidebar {
  width: 265px; flex-shrink: 0;
  background: var(--primary-dark);
  color: white; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 100;
}
.dash-logo { padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.dash-logo .dash-logo-img { height: 52px; width: auto; border-radius: 50%; }

.dash-user-info { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.dash-user-email {
  font-size: 13.5px; font-weight: 600; opacity: 0.9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-user-role {
  font-size: 11px; letter-spacing: 0.3px;
  color: var(--accent-light); margin-top: 3px; font-weight: 600;
}
.dash-nav { padding: 10px 12px; flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.dash-nav::-webkit-scrollbar { display: none; }
.dash-nav-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,0.32); margin: 12px 0 6px 10px; font-weight: 700;
}
.dash-nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 12px;
  color: rgba(255,255,255,0.62); border-radius: var(--radius-sm);
  transition: var(--transition); font-size: 14px; font-weight: 500; margin-bottom: 2px;
}
.dash-nav a:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.92); }
.dash-nav a.active { background: rgba(255,255,255,0.12); color: white; }
.nav-icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
.dash-nav .icon-img-sm { filter: brightness(0) invert(1) !important; opacity: .85; }
.dash-sidebar-footer { padding: 14px 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.dash-sidebar-footer .btn-ghost { border-color: rgba(255,255,255,0.15); }
.dash-sidebar-footer .btn-ghost:hover { background: rgba(255,255,255,0.12); color: white !important; }

.dash-content { flex: 1; padding: 40px 48px; min-width: 0; overflow-y: auto; }
.dash-header {
  display: flex !important; align-items: flex-start; justify-content: space-between;
  margin-bottom: 32px; gap: 16px;
}
.dash-title    { font-size: 1.9rem; color: var(--primary); line-height: 1.15; }
.dash-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ══════════════════════════════════════════════════
   STAT CARDS
   ══════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-bottom: 36px;
}
.stat-card {
  background: white; padding: 22px; border-radius: var(--radius-md);
  border: 1px solid var(--border-color); transition: var(--transition);
  position: relative; overflow: hidden;
  border-top: 3px solid var(--primary);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.stat-card.accent { border-top-color: var(--accent); }
.stat-card.green  { border-top-color: #16a34a; }
.stat-card.red    { border-top-color: #dc2626; }
.stat-card.info   { border-top-color: #2563eb; }
.stat-icon {
  width: 40px; height: 40px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 10px;
}
.stat-icon img { width: 34px !important; height: 34px !important; object-fit: contain; opacity: .82; }
.stat-label {
  font-size: 12px; color: var(--text-muted);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.stat-value { font-size: 26px; font-weight: 800; color: var(--primary); margin-top: 5px; line-height: 1.2; }

/* ══════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════ */
.table-wrap {
  background: white; border-radius: var(--radius-md);
  border: 1px solid var(--border-color); overflow: hidden; box-shadow: var(--shadow-xs);
}
table { width: 100%; border-collapse: collapse; }
thead { background: #f8f6f1; }
th {
  padding: 13px 20px; font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted);
  text-align: left; border-bottom: 1px solid var(--border-color);
}
td {
  padding: 15px 20px; border-bottom: 1px solid var(--border-color);
  font-size: 14px; color: var(--text-main); vertical-align: middle;
}
tbody tr:hover { background: #fdf9f4; }
tbody tr:last-child td { border-bottom: none; }
.td-product { display: flex; align-items: center; gap: 10px; }
.td-product img { width: 42px; height: 42px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.td-product-placeholder { width: 42px; height: 42px; border-radius: var(--radius-sm); background: linear-gradient(135deg, #ede8df, #d9c9a8); flex-shrink: 0; }
.td-product-text { flex: 1; min-width: 0; overflow: hidden; max-width: 160px; }
.td-product-name { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-product-text:hover .td-product-name { text-overflow: clip; display: inline-block; animation: td-marquee 4s ease-in-out infinite; }

.td-clip { overflow: hidden; white-space: nowrap; max-width: 150px; }
.td-clip-inner { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-clip:hover .td-clip-inner { text-overflow: clip; display: inline-block; animation: td-marquee 4s ease-in-out infinite; }

.td-name-scroll { overflow: hidden; white-space: nowrap; max-width: 140px; }
.scroll-text { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scroll-text.scrolling { display: inline-block; text-overflow: clip; animation: td-marquee 4s ease-in-out infinite; }

@keyframes td-marquee {
  0%, 15%   { transform: translateX(0); }
  85%, 100% { transform: translateX(-100%); }
}

/* ══════════════════════════════════════════════════
   FILTER BAR
   ══════════════════════════════════════════════════ */
.filter-bar {
  display: flex; gap: 10px; margin-bottom: 26px;
  align-items: center; flex-wrap: wrap;
}
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
  padding: 8px 18px; border-radius: var(--radius-full);
  font-size: 13.5px; font-weight: 500;
  background: white; border: 1px solid var(--border-color);
  color: var(--text-muted); transition: var(--transition);
}
.filter-tab.active, .filter-tab:hover { background: var(--primary); color: white; border-color: var(--primary); }
.filter-bar input, .filter-bar select {
  padding: 9px 14px; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); font-size: 14px;
  background: white; transition: var(--transition);
}
.filter-bar input:focus, .filter-bar select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(40,72,26,0.05);
}

/* ══════════════════════════════════════════════════
   CARD COMPONENT
   ══════════════════════════════════════════════════ */
.card {
  background: white; border-radius: var(--radius-md);
  border: 1px solid var(--border-color); overflow: hidden; box-shadow: var(--shadow-xs);
}
.card-header {
  padding: 16px 22px; border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 15px; font-weight: 700; color: var(--text-main); }
.card-body  { padding: 22px; }

/* ══════════════════════════════════════════════════
   CART
   ══════════════════════════════════════════════════ */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.cart-list {
  background: white; border-radius: var(--radius-lg);
  padding: 28px; border: 1px solid var(--border-color);
}
.cart-list-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; font-weight: 700; font-size: 17px;
}
.cart-item {
  display: flex; gap: 20px; padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 88px; height: 88px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name  { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.cart-item-shop  { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 13.5px; color: var(--text-muted); }
.cart-item-subtotal { font-weight: 700; font-size: 15.5px; color: var(--primary); }
.cart-summary {
  background: white; padding: 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  position: sticky; top: 88px;
}
.cart-summary h3 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.summary-row {
  display: grid; grid-template-columns: 1fr 36px auto;
  gap: 8px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border-color); font-size: 14px;
}
.summary-row-qty {
  text-align: center; font-weight: 700;
  color: var(--primary); white-space: nowrap;
}
.summary-row-price { font-weight: 600; white-space: nowrap; text-align: right; }
.summary-total {
  display: flex; justify-content: space-between; padding: 18px 0;
  font-size: 1.3rem; font-weight: 800; color: var(--primary);
}

/* ══════════════════════════════════════════════════
   ORDER & SHOP CARDS
   ══════════════════════════════════════════════════ */
.order-card {
  display: flex; gap: 16px; align-items: center;
  background: white; border-radius: var(--radius-md);
  padding: 16px 20px; margin-bottom: 10px;
  border: 1px solid var(--border-color);
  cursor: pointer; transition: var(--transition);
}
.order-card:hover {
  box-shadow: var(--shadow-sm); transform: translateY(-1px);
  border-color: rgba(184,144,80,0.2);
}
.order-card-img {
  width: 60px; height: 60px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
  background: linear-gradient(135deg, #ede8df, var(--accent-light));
}
.order-card-info { flex: 1; min-width: 0; }
.order-card-name {
  font-weight: 600; font-size: 14.5px; margin-bottom: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.order-card-meta { font-size: 12.5px; color: var(--text-muted); }
.order-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.order-price { font-weight: 700; color: var(--primary); font-size: 15px; }

.shop-card {
  background: white; padding: 22px; border-radius: var(--radius-md);
  border: 1px solid var(--border-color); display: flex; gap: 18px;
  margin-bottom: 14px; transition: var(--transition);
}
.shop-card:hover { box-shadow: var(--shadow-sm); }
.shop-icon {
  width: 52px; height: 52px; background: var(--bg-subtle);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0;
}
.shop-name    { font-size: 17px; font-weight: 700; color: var(--primary); }
.shop-email   { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.shop-desc    { font-size: 13.5px; color: #4a5568; margin: 10px 0; line-height: 1.55; }
.shop-date    { font-size: 12px; color: #94a3b8; font-weight: 500; }
.shop-actions { margin-top: 14px; display: flex; gap: 10px; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.mob-menu-btn { display: none; }

/* ── Tablet (≤ 1024px) ─────────────────────────── */
@media (max-width: 1024px) {
  .navbar-hotline   { display: none; }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 32px; }
  .dash-content     { padding: 32px 28px; }
  .stats-grid       { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

/* ── Tablet (≤ 900px) ───────────────────────────── */
@media (max-width: 900px) {
  .dash-sidebar     { width: 220px; }
  .dash-content     { padding: 28px 20px; }
  .stats-grid       { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
  /* Product modal — stack preview below form */
  .product-modal-grid    { grid-template-columns: 1fr !important; }
  .product-modal-preview { display: none !important; }
  .product-modal-form    { max-height: 65vh !important; }
  /* Variant table — hide SKU col, shrink price/qty */
  .variant-table-head,
  .variant-row           { grid-template-columns: 1fr 90px 70px 44px 34px !important; gap: 8px !important; }
  .v-sku-col             { display: none !important; }
  .variant-row .v-sku    { display: none !important; }
}

/* ── Mobile (≤ 768px) ──────────────────────────── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar-inner     { padding: 0 16px; gap: 8px; height: 58px; }
  .navbar-hotline   { display: none; }
  .navbar-brand-text { display: none; }
  .navbar-brand .brand-logo { height: 36px; }
  .navbar-login-btn { padding: 8px 14px; font-size: 13px; }
  .track-link       { display: none; }

  /* Hero */
  .hero             { height: 72vh; min-height: 360px; }
  .hero h1          { font-size: clamp(1.7rem, 6vw, 2.6rem); }
  .hero p           { font-size: 14px; }
  .hero-text-overlay { padding: 0 20px 28px; }

  /* Layout */
  .container        { padding: 0 16px; }
  .section-padding  { padding: 48px 0; }
  .section-header   { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Products */
  .product-grid     { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .product-detail   { grid-template-columns: 1fr; gap: 24px; }
  .product-detail-name { font-size: 1.8rem; }

  /* Footer */
  .footer           { padding: 48px 0 28px; margin-top: 60px; }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }

  /* Auth */
  .auth-page        { padding: 24px 16px; }
  .auth-card        { padding: 32px 24px; max-width: 100%; }

  /* Stats */
  .stats-grid       { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
  .stat-card        { padding: 16px; }

  /* Dashboard — sidebar becomes slide-in overlay */
  .dash-sidebar {
    position: fixed !important;
    left: -280px;
    top: 0; bottom: 0;
    height: 100% !important;
    z-index: 500;
    transition: left 0.28s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    box-shadow: none;
  }
  .dash-sidebar.mob-open {
    left: 0 !important;
    box-shadow: 4px 0 32px rgba(0,0,0,0.3);
  }
  .dash-layout      { height: auto; min-height: 100vh; overflow: visible; }
  .dash-content     { padding: 70px 18px 28px; overflow-y: visible; min-height: 100vh; }

  /* Hamburger button */
  .mob-menu-btn {
    display: flex !important;
    position: fixed; top: 12px; left: 12px; z-index: 600;
    width: 40px; height: 40px;
    background: var(--primary-dark); color: white;
    border-radius: 10px; border: none;
    align-items: center; justify-content: center;
    cursor: pointer; font-size: 20px; line-height: 1;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    transition: var(--transition);
  }
  .mob-menu-btn:hover { background: var(--primary-light); }

  /* Backdrop overlay */
  .mob-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.48);
    z-index: 499;
    backdrop-filter: blur(2px);
  }
  .mob-backdrop.open { display: block; }

  /* Dash header */
  .dash-header      { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
  .dash-title       { font-size: 1.5rem; }

  /* Filter */
  .filter-bar       { gap: 10px; flex-wrap: wrap; }
  .filter-tabs      { flex-wrap: wrap; gap: 6px; }
  .filter-tab       { padding: 6px 12px; font-size: 13px; }

  /* Cards */
  .shop-card        { flex-direction: column; align-items: flex-start; gap: 10px; }
  .shop-icon        { width: 44px; height: 44px; border-radius: 10px; font-size: 1.1rem; }
  .shop-actions     { flex-wrap: wrap; gap: 8px; }
  .order-card-img   { width: 64px; height: 64px; border-radius: 8px; }

  /* Cart */
  .cart-layout      { grid-template-columns: 1fr; }

  /* Modal */
  .modal-overlay    { padding: 12px; align-items: flex-end; }
  .modal            { max-width: 100% !important; border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin: 0; }

  /* Notification dropdown — fixed to viewport to prevent overflow */
  .notif-dropdown {
    position: fixed !important;
    top: 68px;
    left: 12px;
    right: 12px;
    width: auto !important;
    max-height: 75vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
  }
  .notif-list { max-height: none; }

  /* Tables */
  .admin-table-wrap,
  table             { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Toast */
  #toast-container  { left: 12px; right: 12px; bottom: 12px; }
  .toast            { min-width: unset; max-width: 100%; width: 100%; }

  /* Product card — wrap actions below price */
  .product-price-wrap   { flex-wrap: wrap; }
  .product-price-left   { width: 100%; }
  .product-card-actions { width: 100%; }
  .btn-buy-now          { flex: 1; justify-content: center; }
  .btn-cart-icon        { width: 36px; height: 36px; }

  /* Product modal */
  .product-modal-grid    { grid-template-columns: 1fr !important; }
  .product-modal-preview { display: none !important; }
  .product-modal-form    { max-height: 60vh !important; }
  .form-grid-2           { grid-template-columns: 1fr !important; }

  /* Variant table — hide SKU + image cols */
  .variant-table-head,
  .variant-row           { grid-template-columns: 1fr 90px 60px 34px !important; gap: 6px !important; }
  .v-sku-col             { display: none !important; }
  .variant-row .v-sku    { display: none !important; }
  .v-img-col             { display: none !important; }
  .variant-row .v-img-label { display: none !important; }
}

/* ── Small mobile (≤ 480px) ────────────────────── */
@media (max-width: 480px) {
  .navbar-inner     { height: 54px; }
  .navbar-brand .brand-logo { height: 30px; }

  .hero h1          { font-size: 1.7rem; }
  .hero p           { font-size: 13px; }
  .hero-text-overlay { padding: 0 16px 24px; }
  .navbar-search    { max-width: 180px; }

  .product-grid     { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card     { border-radius: 10px; }
  .product-card-name { font-size: 12.5px; }
  .product-price    { font-size: 14px; }
  .product-body        { padding: 12px 14px; }
  .product-card-actions { gap: 5px; }
  .btn-buy-now         { font-size: 11px; padding: 6px 10px; }
  .btn-cart-icon       { width: 32px; height: 32px; border-radius: 7px; }
  .btn-cart-icon img   { width: 14px; height: 14px; }

  .stats-grid       { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card        { padding: 12px 14px; }
  .stat-value       { font-size: 1.4rem; }
  .stat-label       { font-size: 12px; }

  .footer-grid      { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand .footer-logo-img { height: 40px; }

  .auth-card        { padding: 26px 18px; }

  .dash-title       { font-size: 1.25rem; }
  .dash-content     { padding: 66px 14px 20px; }
  .dash-subtitle    { font-size: 13px; }

  .filter-tab       { padding: 5px 10px; font-size: 12px; }

  .stat-card .stat-icon img { width: 20px; height: 20px; }
  .modal-body       { padding: 16px; }
  .modal-header, .modal-footer { padding: 14px 16px; }

  .section-title    { font-size: 1.4rem; }

  /* Notification on very small screens */
  .notif-dropdown   { top: 62px; left: 8px; right: 8px; }

  /* Variant table — tighter on small phones */
  .variant-table-head,
  .variant-row      { grid-template-columns: 1fr 80px 52px 30px !important; gap: 4px !important; }
  .variant-row .form-control { padding: 8px 8px; font-size: 13px; }
}
