/* ============================================================
   SOARISE — WORLD-CLASS PREMIUM MARKETPLACE
   Design System 2026 · Consolidated Stylesheet
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Brand — Soarise palette */
  --primary:           #2376b7;
  --primary-soft:      #1a5f96;
  --primary-deep:      #144a75;
  --accent:            #9e4f5f;
  --accent-hover:      #8a4453;
  --accent-soft:       rgba(158, 79, 95, 0.12);
  --light:             #e8c4c2;
  --dark:              #455a80;

  /* Neutrals */
  --white:             #FFFFFF;
  --off-white:         #FAFAF9;
  --gray-50:           #F8F7F4;
  --gray-100:          #F1F0EC;
  --gray-200:          #E7E5E0;
  --gray-300:          #D6D3CD;
  --gray-400:          #A8A29E;
  --gray-500:          #78716C;
  --gray-600:          #57534E;
  --gray-700:          #44403C;
  --gray-800:          #292524;
  --gray-900:          #1C1917;

  /* Semantic */
  --success:           #059669;
  --danger:            #DC2626;
  --warning:           #D97706;
  --info:              #0284C7;

  /* Typography */
  --font-sans:         'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display:      'Playfair Display', Georgia, serif;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:  0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:  0 4px 12px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg:  0 12px 32px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.04);
  --shadow-xl:  0 24px 48px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06);
  --shadow-glow-primary: 0 0 0 4px rgba(35, 118, 183, 0.12);
  --shadow-glow-accent:  0 0 0 4px rgba(158, 79, 95, 0.14);

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:    0.25s;
  --duration-lg: 0.4s;

  /* Layout */
  --container: 1280px;
  --header-height: 72px;
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--off-white);
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: var(--accent-soft);
  color: var(--primary-deep);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-100);
}
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 1.5rem 0;
}

/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

.lead { font-size: 1.15rem; color: var(--gray-600); line-height: 1.7; }

.text-accent { color: var(--accent) !important; }
.text-muted  { color: var(--gray-500) !important; }
.text-white  { color: var(--white) !important; }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.text-lg     { font-size: 1.125rem; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.font-sans   { font-family: var(--font-sans) !important; }
.font-display{ font-family: var(--font-display) !important; }
.fw-bold     { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }

/* ------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container-fluid { width: 100%; padding-inline: 1.25rem; }

.section    { padding-block: 4rem; }
.section-sm { padding-block: 2.5rem; }
.section-lg { padding-block: 6rem; }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: 0.75rem; }
.section-title p {
  max-width: 560px;
  margin-inline: auto;
  color: var(--gray-500);
  font-size: 1rem;
}

.page-shell { padding: 2rem 0 3.5rem; }

/* ------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  line-height: 1.2;
  overflow: hidden;
  isolation: isolate;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.btn:hover::after { transform: translateX(100%); }

.btn:disabled,
.btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 1px 2px rgba(35, 118, 183, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-deep) 100%);
  border-color: var(--primary-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(35, 118, 183, 0.28);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--white);
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(158, 79, 95, 0.3);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #7a3a48 100%);
  border-color: #7a3a48;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(158, 79, 95, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--gray-300);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(35, 118, 183, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--gray-100); color: var(--primary); }

.btn-light {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-light:hover {
  background: var(--gray-50);
  border-color: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-block, .w-100 { width: 100%; }

.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: var(--radius-full); }

/* ------------------------------------------------------------
   6. FORMS
   ------------------------------------------------------------ */
.form-control,
.form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--gray-800);
  transition: all var(--duration) var(--ease);
  outline: none;
  font-size: 0.95rem;
}

.form-control:hover,
.form-select:hover { border-color: var(--gray-300); }

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow-accent);
  background: var(--white);
}

.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.form-group { margin-bottom: 1.25rem; }

.form-check { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; }
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-check label { cursor: pointer; font-size: 0.9rem; color: var(--gray-700); }

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.input-group { display: flex; align-items: stretch; gap: 0.5rem; }
.input-group .form-control { flex: 1; }

/* ------------------------------------------------------------
   7. CARDS
   ------------------------------------------------------------ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--duration-lg) var(--ease);
  position: relative;
}
.card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--gray-100);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card-img img { transform: scale(1.06); }

.card-body { padding: 1.25rem; }

.card-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.card-price .old {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-left: 0.4rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  flex-wrap: wrap;
}

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 0.35rem 0.75rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(158, 79, 95, 0.3);
}
.card-badge.sale { background: var(--danger); color: var(--white); }
.card-badge.new  { background: var(--success); color: var(--white); }

/* ------------------------------------------------------------
   8. HEADER / NAVBAR
   ------------------------------------------------------------ */
.top-bar {
  background: var(--primary);
  color: var(--gray-300);
  font-size: 0.8rem;
  padding: 0.5rem 0;
}
.top-bar a { color: var(--gray-300); }
.top-bar a:hover { color: var(--accent); }

.main-header {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  backdrop-filter: saturate(180%) blur(12px);
}
.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.logo img { height: 38px; width: auto; }
.logo span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-700);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
}
.main-nav a:hover,
.main-nav a.active { color: var(--primary); background: var(--gray-100); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-actions .btn-icon {
  background: var(--gray-50);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.header-actions .btn-icon:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.cart-btn { position: relative; }
/*.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(158, 79, 95, 0.4);
}*/

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* ------------------------------------------------------------
   9. HERO (homepage)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: var(--white);
  padding: 5rem 0 6rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(158, 79, 95, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(232, 196, 194, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--off-white), transparent);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--light);
  backdrop-filter: blur(8px);
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-search {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0.4rem;
  box-shadow: var(--shadow-xl);
  max-width: 520px;
}
.hero-search input {
  flex: 1;
  border: none;
  padding: 0.85rem 1.1rem;
  background: transparent;
  outline: none;
  color: var(--gray-800);
  font-size: 0.95rem;
}
.hero-search .btn { border-radius: var(--radius-md); padding-inline: 1.5rem; }

/* ------------------------------------------------------------
   10. PRODUCT GRID
   ------------------------------------------------------------ */
.product-grid {
  display: grid;
  /* 2-col by default (Takealot-style on 6.1" phones); expands on larger screens */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 480px)  { .product-grid { gap: 1rem; } }
@media (min-width: 768px)  { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

/* ------------------------------------------------------------
   11. CATEGORY PILLS
   ------------------------------------------------------------ */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.category-pill {
  padding: 0.55rem 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}
.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(35, 118, 183, 0.22);
}

/* ------------------------------------------------------------
   12. STORE BADGE
   ------------------------------------------------------------ */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}
.store-badge.verified::after {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 700;
}

/* ------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background: var(--primary);
  color: var(--gray-400);
  padding-top: 4rem;
  margin-top: auto;
}
.site-footer h5 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.site-footer a { color: var(--gray-400); font-size: 0.9rem; display: block; padding: 0.3rem 0; }
.site-footer a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.social-links { display: flex; gap: 0.6rem; }
.social-links a {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  color: var(--gray-400);
  transition: all var(--duration) var(--ease);
}
.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   14. BADGES
   ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger  { background: #FEE2E2; color: #991B1B; }
.badge-info    { background: #DBEAFE; color: #1E40AF; }
.badge-neutral { background: var(--gray-100); color: var(--gray-600); }
.badge-gold    { background: var(--accent-soft); color: var(--accent-hover); }
.badge-primary { background: rgba(35, 118, 183, 0.12); color: var(--primary); }

/* ------------------------------------------------------------
   15. ALERTS
   ------------------------------------------------------------ */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.5;
}
.alert-success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.alert-danger  { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert-warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.alert-info    { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }

/* ------------------------------------------------------------
   16. TABLES
   ------------------------------------------------------------ */
.table-premium {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.table-premium th {
  text-align: left;
  padding: 0.9rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.table-premium td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
  color: var(--gray-700);
}
.table-premium tr:last-child td { border-bottom: none; }
.table-premium tr:hover td { background: var(--gray-50); }

/* ------------------------------------------------------------
   17. DROPDOWNS & CART
   ------------------------------------------------------------ */
.dropdown-menu {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  min-width: 200px;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--gray-700);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}
.dropdown-item:hover { background: var(--gray-50); color: var(--primary); }

.cart-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 340px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration) var(--ease);
  z-index: 1100;
}
.cart-btn:hover .cart-dropdown,
.cart-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cart-dropdown ul { margin: 0; padding: 0; }
.cart-dropdown li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.85rem;
}
.cart-dropdown li:last-child { border-bottom: none; }
.cart-dropdown img { border-radius: var(--radius-sm); }
.cart-dropdown strong { flex: 1; font-weight: 500; }
.cart-dropdown em { color: var(--primary); font-style: normal; font-weight: 600; }
.cart-content-count { font-size: 0.75rem; color: var(--gray-500); }
.del-goods { color: var(--gray-400); }
.del-goods:hover { color: var(--danger); }

/* ------------------------------------------------------------
   18. PAGINATION (legacy <ul>)
   ------------------------------------------------------------ */
.pagination {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.pagination li { list-style: none; }
.pagination a,
.pagination span,
.pagination .page-link {
  min-width: 40px; height: 40px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}
.pagination a:hover,
.pagination .active .page-link,
.pagination .current-page.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.pagination .page-item.disabled .page-link { opacity: 0.5; cursor: not-allowed; }

/* ------------------------------------------------------------
   19. BACK TO TOP
   ------------------------------------------------------------ */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
  z-index: 999;
  border: none;
  cursor: pointer;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

/* ------------------------------------------------------------
   20. UTILITIES
   ------------------------------------------------------------ */
.bg-white   { background: var(--white) !important; }
.bg-off     { background: var(--off-white) !important; }
.bg-gray    { background: var(--gray-50) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-accent  { background: var(--accent) !important; }

.d-flex     { display: flex; }
.d-grid     { display: grid; }
.d-block    { display: block; }
.d-none     { display: none; }
.flex-wrap  { flex-wrap: wrap; }
.flex-column{ flex-direction: column; }
.align-center { align-items: center; }
.align-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-2 { padding-block: 0.5rem; }
.py-3 { padding-block: 0.75rem; }
.px-3 { padding-inline: 0.75rem; }
.px-4 { padding-inline: 1rem; }

.rounded     { border-radius: var(--radius-md); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-full{ border-radius: var(--radius-full); }
.shadow-sm   { box-shadow: var(--shadow-sm); }
.shadow-md   { box-shadow: var(--shadow-md); }
.shadow-lg   { box-shadow: var(--shadow-lg); }
.border      { border: 1px solid var(--gray-200); }
.border-top  { border-top: 1px solid var(--gray-200); }

.h-100 { height: 100%; }
.mw-100 { max-width: 100%; }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }

/* ------------------------------------------------------------
   21. ANIMATIONS
   ------------------------------------------------------------ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes redirectProgress {
  0%   { width: 0; }
  60%  { width: 65%; }
  100% { width: 100%; }
}

.animate-up { animation: fadeInUp 0.5s var(--ease-out) both; }
.animate-fade { animation: fadeIn 0.5s var(--ease) both; }
.animate-slide-down { animation: slideInDown 0.4s var(--ease-out) both; }
.animate-pulse { animation: pulse 1.8s var(--ease) infinite; }

.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.30s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.40s; }

.wow { visibility: hidden; }
.wow.fadeIn { visibility: visible; animation: fadeIn 0.6s var(--ease) both; }

/* ------------------------------------------------------------
   22. RESPONSIVE — global
   ------------------------------------------------------------ */
@media (max-width: 991px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 3.5rem 0 4rem; }
  .hero-search { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 576px) {
  .product-grid,
  .mp-layout .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem;
  }
  .card-body { padding: 0.9rem; }
  .header-actions .btn:not(.btn-icon) { display: none; }
  .container { padding-inline: 1rem; }
}

@media print {
  .main-header, .site-footer, .back-to-top, .nav-toggle { display: none !important; }
  body { background: #fff; }
}

/* ============================================================
   23. PAGE HEADER (mp-)
   ============================================================ */
.mp-page-header {
  background: var(--dark) url('../images/hero.jpg') center / cover no-repeat;
  color: #fff;
  padding: 2.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

/* Tint: your original gradient, laid over the image */
.mp-page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  opacity: 0.65;            /* lower = more image, higher = more colour */
  z-index: 0;
  pointer-events: none;
}

/* Existing glow, now explicitly above the tint */
.mp-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(158, 79, 95, 0.20) 0%, transparent 55%);
  z-index: 1;
  pointer-events: none;
}
.mp-page-header .container { position: relative; z-index: 2; }
.mp-page-header h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.35rem;
}
.mp-page-header .breadcrumb {
  display: flex;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  padding: 0;
  background: none;
  align-items: center;
  flex-wrap: wrap;
}
.mp-page-header .breadcrumb a { color: rgba(255,255,255,0.78); }
.mp-page-header .breadcrumb a:hover { color: var(--light); }
.mp-page-header .breadcrumb span { color: rgba(255,255,255,0.6); }

/* ============================================================
   24. HERO BAND (mp-)
   ============================================================ */
.mp-hero {
  background: var(--dark) url('../images/hero.jpg') center / cover no-repeat;
  color: #fff;
  padding: 2.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

/* Tint: your original gradient, laid over the image */
.mp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  opacity: 0.45;            /* lower = more image, higher = more colour */
  z-index: 0;
  pointer-events: none;
}

/* Existing glows, now explicitly above the tint */
.mp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(158,79,95,.28) 0%, transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(232,196,194,.14) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}
.mp-hero .container { position: relative; z-index: 2; }

.mp-hero-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 0.75rem;
}
.mp-hero-top a { color: rgba(255,255,255,.8); }
.mp-hero-top a:hover { color: var(--light); }
.mp-hero-top span { color: rgba(255,255,255,.55); }

.mp-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin-bottom: 0.4rem;
}
.mp-hero p {
  color: rgba(255,255,255,.78);
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
}

.mp-hero--slim { padding: 2rem 0 2.25rem; }

/* ============================================================
   25. SEARCH BAND (sticky)
   ============================================================ */
.mp-search-band {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
  position: sticky;
  top: var(--header-height);
  z-index: 900;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.mp-search-band-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.mp-search-band .search-field {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.mp-search-band .search-field i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.9rem;
  pointer-events: none;
}
.mp-search-band .search-field input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--duration) var(--ease);
  background: var(--gray-50);
}
.mp-search-band .search-field input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: var(--shadow-glow-accent);
}

.mp-search-band .sort-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.85rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.mp-search-band .sort-inline:hover { border-color: var(--gray-300); }
.mp-search-band .sort-inline i { color: var(--gray-400); font-size: 0.75rem; }
.mp-search-band .sort-inline select {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--gray-700);
  font-weight: 500;
  cursor: pointer;
  padding-right: 0.25rem;
}

.mp-search-band .counter {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  color: var(--gray-500);
  white-space: nowrap;
}
.mp-search-band .counter strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 700;
}

.mp-search-band .mp-view-toggle button { width: 36px; height: 36px; }

/* Mobile / tablet: clean 2-row search toolbar
   Row 1: [search ..............] [Search]
   Row 2: [Sort] [N results] ........ [List|Grid]
*/
@media (max-width: 768px) {
  .mp-search-band { padding: 0.75rem 0; }
  .mp-search-band-inner {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 0.5rem 0.45rem;
    align-items: center;
  }
  .mp-search-band .search-field {
    grid-column: 1 / 4;
    grid-row: 1;
    min-width: 0;
    width: 100%;
  }
  .mp-search-band-inner > .btn {
    grid-column: 4;
    grid-row: 1;
    padding: 0.55rem 0.75rem;
    min-height: 42px;
    white-space: nowrap;
  }
  .mp-search-band .sort-inline {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    padding: 0.4rem 0.55rem;
  }
  .mp-search-band .sort-inline select {
    max-width: 100px;
    font-size: 0.8rem;
  }
  .mp-search-band .counter {
    grid-column: 2;
    grid-row: 2;
    width: auto;
    padding: 0.3rem 0.2rem;
    font-size: 0.78rem;
  }
  .mp-search-band .counter strong { font-size: 0.95rem; }
  .mp-search-band .mp-view-toggle {
    grid-column: 3 / 5;
    grid-row: 2;
    justify-self: end;
  }
  .mp-search-band .mp-view-toggle button {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 420px) {
  .mp-search-band .sort-inline i { display: none; }
}

/* ============================================================
   26. MARKETPLACE LAYOUT + FILTERS
   ============================================================ */
.mp-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  padding: 1.75rem 0 3rem;
  align-items: start;
}
.mp-layout main { min-width: 0; overflow: hidden; }
.mp-layout .product-grid {
  /* Inherit 2-col mobile default; don't force a wide minmax that collapses to 1 col */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .mp-layout .product-grid { gap: 1rem; }
}
@media (min-width: 768px) {
  .mp-layout .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
@media (min-width: 1100px) {
  .mp-layout .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.mp-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height) + 70px);
  box-shadow: var(--shadow-sm);
}
.mp-filter-block { border-bottom: 1px solid var(--gray-100); }
.mp-filter-block:last-child { border-bottom: none; }
.mp-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  background: var(--gray-50);
  transition: background var(--duration) var(--ease);
}
.mp-filter-header:hover { background: var(--gray-100); }
.mp-filter-header i {
  font-size: 0.75rem;
  color: var(--gray-400);
  transition: transform 0.2s var(--ease);
}
.mp-filter-block.open .mp-filter-header i { transform: rotate(180deg); }
.mp-filter-body { display: none; padding: 0.75rem 1.15rem 1.15rem; }
.mp-filter-block.open .mp-filter-body { display: block; }

.mp-filter-list { max-height: 260px; overflow-y: auto; }
.mp-filter-list label,
.cat-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.25rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  margin-bottom: 0;
}
.mp-filter-list label:hover,
.cat-item:hover { background: var(--gray-50); }
.mp-filter-list input[type="checkbox"],
.mp-filter-list input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.mp-filter-list .count { margin-left: auto; font-size: 0.75rem; color: var(--gray-400); }

.mp-clear-filters {
  display: block;
  text-align: center;
  padding: 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--danger);
  border-top: 1px solid var(--gray-100);
}
.mp-clear-filters:hover { background: #FEF2F2; }

.mp-filter-toggle { display: none; width: 100%; margin-bottom: 1rem; }

/* Toolbar */
.mp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.mp-results-count { font-size: 0.9rem; color: var(--gray-600); }
.mp-results-count strong { color: var(--primary); }

.mp-view-toggle { display: flex; gap: 0.35rem; }
.mp-view-toggle button {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-md);
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.mp-view-toggle button.active,
.mp-view-toggle button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

@media (max-width: 991px) {
  .mp-layout { grid-template-columns: 1fr; }
  .mp-sidebar {
    display: none;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 320px;
    max-width: 90vw;
    z-index: 1200;
    border-radius: 0;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideInLeft 0.3s var(--ease-out);
  }
  .mp-sidebar.open { display: block; }
  .mp-filter-toggle { display: flex; }
}

/* ============================================================
   27. FILTER CHIPS + CATEGORY STRIP + PRICE RANGE
   ============================================================ */
.mp-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  background: var(--accent-soft);
  border: 1px solid rgba(158,79,95,.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-hover);
}
.filter-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  padding: 0;
}
.filter-chip button:hover { color: var(--accent-hover); }

.mp-clear-all {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.mp-clear-all:hover { border-color: var(--danger); color: var(--danger); }

.mp-cat-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.mp-cat-strip::-webkit-scrollbar { display: none; }
.mp-cat-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.mp-cat-chip:hover { border-color: var(--primary); color: var(--primary); }
.mp-cat-chip.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(35,118,183,.22);
}
.mp-cat-chip .count { font-size: 0.72rem; opacity: 0.7; padding-left: 0.15rem; }

/* Price range */
.price-range-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.6rem;
  width: 100%;
  min-width: 0;
}
.price-range-row input {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  outline: none;
  box-sizing: border-box;
  background: var(--white);
  color: var(--gray-800);
  text-align: center;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.price-range-row input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow-accent);
}
.price-range-row input::-webkit-outer-spin-button,
.price-range-row input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.price-range-row input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.price-range-row .sep {
  flex: 0 0 auto;
  color: var(--gray-400);
  font-size: 0.85rem;
  line-height: 1;
  user-select: none;
}
@media (max-width: 360px) {
  .price-range-row { flex-wrap: wrap; }
  .price-range-row input { flex: 1 1 100%; }
  .price-range-row .sep { display: none; }
}

.price-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.price-quick button {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.price-quick button:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   28. LIST + GRID CARDS (marketplace & shop)
   ============================================================ */
.mp-list { display: flex; flex-direction: column; gap: 0.85rem; }
.mp-list-card {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 1.15rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  transition: all 0.25s var(--ease);
  align-items: center;
}
.mp-list-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.mp-list-card .thumb {
  width: 160px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
  position: relative;
}
.mp-list-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mp-list-card .info h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--primary);
}
.mp-list-card .info .desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.mp-list-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  align-items: center;
}
.mp-list-card .price-col { text-align: right; min-width: 110px; }
.mp-list-card .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
}

@media (max-width: 991px) {
  .mp-list-card { grid-template-columns: 100px 1fr; }
  .mp-list-card .price-col { grid-column: 2; text-align: left; margin-top: 0.35rem; }
  .mp-list-card .thumb { width: 100px; height: 80px; }
}

/* Grid card */
.mp-grid-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-lg) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
}
.mp-grid-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.mp-grid-card .img {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}
.mp-grid-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.mp-grid-card:hover .img img { transform: scale(1.06); }
.mp-grid-card .body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.mp-grid-card h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.mp-grid-card .price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}
.mp-grid-card .meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}
.mp-grid-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

/* Compact dual-column grid cards on phones (6.1" and smaller) */
@media (max-width: 575.98px) {
  .product-grid,
  .mp-layout .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.6rem;
  }
  .mp-grid-card {
    border-radius: var(--radius-md);
  }
  .mp-grid-card .body {
    padding: 0.65rem 0.7rem 0.75rem;
  }
  .mp-grid-card h3 {
    font-size: 0.8rem;
    min-height: 2.4em;
    margin-bottom: 0.25rem;
    line-height: 1.3;
  }
  .mp-grid-card .price {
    font-size: 0.95rem;
  }
  .mp-grid-card .meta {
    font-size: 0.68rem;
    gap: 0.3rem;
    margin-top: 0.35rem;
  }
  .mp-grid-card .store-badge {
    font-size: 0.65rem;
    padding: 0.12rem 0.35rem;
  }
  /* Soften hover lift on touch devices */
  .mp-grid-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
}

/* ============================================================
   29. FEATURED BANNER + PAGINATION (premium)
   ============================================================ */
.mp-featured {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.mp-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 20%, rgba(255,255,255,.15) 0%, transparent 60%);
  pointer-events: none;
}
.mp-featured > * { position: relative; z-index: 2; }
.mp-featured h3 { color: #fff; margin: 0 0 0.25rem; font-size: 1.15rem; }
.mp-featured p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,.85); }
.mp-featured .btn {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  font-weight: 600;
}
.mp-featured .btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.mp-pagination {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.mp-pagination a,
.mp-pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  transition: all var(--duration) var(--ease);
}
.mp-pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.mp-pagination .active {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(35,118,183,.25);
}
.mp-pagination .disabled { opacity: 0.45; pointer-events: none; }

/* ============================================================
   30. SHOP VARIANTS
   ============================================================ */
.mp-grid-card .badge-platform,
.mp-list-card .badge-platform {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
}
.mp-grid-card .badge-partner,
.mp-list-card .badge-partner {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
}

.card-sale {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 0.25rem 0.6rem;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}

.price-with-old {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.price-with-old .old {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-decoration: line-through;
  font-weight: 400;
}

.shop-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
}
.shop-trust .trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  color: var(--gray-700);
  transition: all var(--duration) var(--ease);
}
.shop-trust .trust-item:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.shop-trust .trust-item i {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.shop-trust .trust-item strong {
  display: block;
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

/* ============================================================
   31. AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(158, 79, 95, 0.08) 0%, transparent 55%),
    linear-gradient(160deg, var(--gray-50) 0%, var(--light) 100%);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
  padding: 2.25rem;
  position: relative;
  animation: fadeInUp 0.6s var(--ease-out) both;
}
.auth-card h1 {
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
  text-align: center;
}
.auth-card .subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}
.auth-card .form-group { margin-bottom: 1.1rem; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--gray-400);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ============================================================
   32. CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
.contact-info-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(158, 79, 95, 0.25) 0%, transparent 55%);
  pointer-events: none;
}
.contact-info-card > * { position: relative; z-index: 2; }
.contact-info-card h3 { color: #fff; margin-bottom: 1rem; }
.contact-info-card a { color: rgba(255,255,255,0.92); }
.contact-info-card a:hover { color: var(--light); }
.contact-info-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  align-items: flex-start;
}
.contact-info-item i {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 991px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   33. CHECKOUT
   ============================================================ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.75rem;
  align-items: start;
}
.checkout-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.checkout-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-100);
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.order-summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid var(--gray-200);
  margin-top: 0.75rem;
  padding-top: 0.85rem;
}
@media (max-width: 991px) { .checkout-grid { grid-template-columns: 1fr; } }

/* ============================================================
   34. PROFILE / DUAL-COLUMN LAYOUTS
   ============================================================ */
.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.75rem;
  align-items: start;
  padding: 2rem 0 3.5rem;
}
@media (max-width: 991px) { .profile-layout { grid-template-columns: 1fr; } }

.profile-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}
@media (max-width: 991px) { .profile-card { position: static; } }

.profile-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: #fff;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.profile-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(158,79,95,.28) 0%, transparent 55%);
  pointer-events: none;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 4px solid rgba(255,255,255,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 0.85rem;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(6px);
}
.profile-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 2;
}
.profile-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,.8);
  position: relative;
  z-index: 2;
}
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  position: relative;
  z-index: 2;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
}
.profile-stats > div {
  padding: 1rem 0.75rem;
  text-align: center;
  border-right: 1px solid var(--gray-100);
}
.profile-stats > div:last-child { border-right: none; }
.profile-stats .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1.1;
}
.profile-stats .lbl {
  font-size: 0.68rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
  display: block;
}

.profile-body { padding: 1.25rem 1.5rem; }
.profile-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--gray-100);
}
.profile-info-row:last-child { border-bottom: none; }
.profile-info-row .lbl { color: var(--gray-500); }
.profile-info-row .val {
  color: var(--gray-800);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

.profile-actions {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.profile-content { min-width: 0; }

.content-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-xs);
}
.content-card:last-child { margin-bottom: 0; }

.content-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.content-card-header h2,
.content-card-header h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}
.content-card-header p { font-size: 0.85rem; color: var(--gray-500); margin: 0.15rem 0 0; }

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--duration) var(--ease);
}
.side-nav a i { width: 18px; text-align: center; font-size: 0.9rem; color: var(--gray-400); }
.side-nav a:hover { background: var(--gray-50); color: var(--primary); }
.side-nav a:hover i { color: var(--primary); }
.side-nav a.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(35,118,183,.25);
}
.side-nav a.active i { color: #fff; }
.side-nav a .badge { margin-left: auto; }

/* Dashboard hero banner */
.dash-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.dash-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(158,79,95,.25) 0%, transparent 55%);
  pointer-events: none;
}
.dash-hero > * { position: relative; z-index: 2; }
.dash-hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.35rem;
}
.dash-hero p { color: rgba(255,255,255,.8); margin: 0; font-size: 0.95rem; }
.dash-hero-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
@media (max-width: 768px) { .dash-hero { grid-template-columns: 1fr; } }

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card:hover::before { opacity: 1; }

.stat-grid .stat-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}
.stat-grid .stat-card .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}
.stat-grid .stat-card .label {
  font-size: 0.72rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.stat-grid .stat-card .value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

/* Listing management row */
.listing-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1rem;
  padding: 0.85rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  align-items: center;
  transition: all var(--duration) var(--ease);
  margin-bottom: 0.75rem;
}
.listing-row:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.listing-row .thumb {
  width: 90px;
  height: 70px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
}
.listing-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-row h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.listing-row .listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}
.listing-row .listing-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}
@media (max-width: 640px) {
  .listing-row { grid-template-columns: 70px 1fr; }
  .listing-row .listing-price { grid-column: 2; text-align: left; margin-top: 0.4rem; }
  .listing-row .thumb { width: 70px; height: 60px; }
}

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state .empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}
.empty-state h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.empty-state p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 1.25rem; }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.verified-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: #065F46;
  margin-bottom: 1rem;
}
.verified-strip i { color: var(--success); }

/* ============================================================
   35. INBOX / MESSAGING
   ============================================================ */
.inbox-shell {
  display: grid;
  grid-template-columns: 340px 1fr;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 620px;
  height: calc(100vh - var(--header-height) - 130px);
  max-height: calc(100vh - var(--header-height) - 130px);
  box-shadow: var(--shadow-sm);
}

.inbox-side {
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  background: var(--white);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.inbox-side-head {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
}
.inbox-side-head h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}
.inbox-side-head .count {
  font-size: 0.75rem;
  color: var(--gray-500);
  padding: 0.2rem 0.55rem;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-weight: 600;
}

.inbox-search { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--gray-100); flex-shrink: 0; }
.inbox-search .field { position: relative; }
.inbox-search i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.8rem;
  pointer-events: none;
}
.inbox-search input {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 2.2rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  outline: none;
  background: var(--gray-50);
  transition: all var(--duration) var(--ease);
}
.inbox-search input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: var(--shadow-glow-accent);
}

.inbox-list { flex: 1; overflow-y: auto; min-height: 0; }

.inbox-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: inherit;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden; /* clip only name/preview ellipsis, not meta */
}
.inbox-item:hover { background: var(--gray-50); }
.inbox-item.active {
  background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 100%);
  border-left: 3px solid var(--accent);
  padding-left: calc(1rem - 3px);
}
.inbox-item .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  position: relative;
  font-family: var(--font-display);
}
.inbox-item .avatar.buyer {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}
.inbox-item .avatar .dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--white);
}
.inbox-item .avatar .dot.off { background: var(--gray-300); }

.inbox-item .info {
  min-width: 0; /* allow ellipsis */
  overflow: hidden;
}
.inbox-item .info .name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-item .info .preview {
  font-size: 0.78rem;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Time + unread: fixed right column — never clipped */
.inbox-item .meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.3rem;
  flex-shrink: 0;
  min-width: 4.25rem; /* fits "Yesterday" */
  max-width: 5.5rem;
  overflow: visible;
}
.inbox-item .meta .time {
  font-size: 0.7rem;
  color: var(--gray-400);
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.inbox-item .meta .unread {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(158,79,95,.4);
}

.inbox-empty { padding: 3rem 1.5rem; text-align: center; color: var(--gray-500); }
.inbox-empty i { font-size: 2.25rem; color: var(--gray-300); margin-bottom: 0.85rem; display: block; }
.inbox-empty p { font-size: 0.85rem; margin: 0 0 1rem; }

.inbox-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden; /* head + compose fixed; messages scroll */
  background: var(--gray-50);
}
.inbox-chat-head {
  padding: 1rem 1.35rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.inbox-chat-head .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.inbox-chat-head .avatar.buyer {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}
.inbox-chat-head .who { flex: 1; min-width: 0; }
.inbox-chat-head .who strong { display: block; color: var(--primary); font-size: 0.95rem; margin-bottom: 0.1rem; }
.inbox-chat-head .who span { font-size: 0.78rem; color: var(--gray-500); }
.inbox-chat-head .actions { display: flex; gap: 0.35rem; }
.inbox-chat-head .actions a,
.inbox-chat-head .actions button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.inbox-chat-head .actions a:hover,
.inbox-chat-head .actions button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.inbox-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0; /* critical: allow flex child to scroll */
  height: 100%;
}


.msg-day {
  align-self: center;
  font-size: 0.7rem;
  color: var(--gray-500);
  background: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  margin: 0.5rem 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.msg {
  max-width: 75%;
  padding: 0.7rem 1rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: var(--shadow-xs);
  animation: fadeInUp 0.3s var(--ease-out) both;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.msg.me {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg.them {
  align-self: flex-start;
  background: #fff;
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
  border-bottom-left-radius: 6px;
}
.msg .time { display: block; font-size: 0.68rem; opacity: 0.75; margin-top: 0.35rem; text-align: right; }
.msg.them .time { color: var(--gray-400); }

.inbox-compose {
  padding: 1rem 1.25rem;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  flex-shrink: 0;
}
.inbox-compose .field { flex: 1; position: relative; }
.inbox-compose input[type="text"] {
  width: 100%;
  padding: 0.8rem 3rem 0.8rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  outline: none;
  background: var(--gray-50);
  transition: all var(--duration) var(--ease);
}
.inbox-compose input[type="text"]:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: var(--shadow-glow-accent);
}
.inbox-compose .send-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inbox-no-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  color: var(--gray-500);
  text-align: center;
}
.inbox-no-chat .icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.inbox-no-chat h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.inbox-no-chat p { font-size: 0.88rem; margin: 0 0 1.25rem; }

/* ---------- Inbox — tablet & mobile ---------- */
@media (max-width: 991px) {
  .inbox-shell {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: 0;
    border-radius: var(--radius-lg);
  }
  .inbox-side {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    max-height: min(42vh, 360px);
  }
  .inbox-chat {
    min-height: min(58vh, 520px);
  }
  .msg { max-width: 88%; }

  .inbox-chat-head {
    padding: 0.75rem 0.85rem;
    gap: 0.55rem;
    flex-wrap: nowrap;
  }
  .inbox-chat-head .who strong {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .inbox-chat-head .who span {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
  .inbox-chat-head .actions {
    flex-shrink: 0;
    gap: 0.25rem;
  }
  .inbox-chat-head .actions a,
  .inbox-chat-head .actions button {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }
  /* Hide button labels on small screens if present */
  .inbox-chat-head .actions .btn-label,
  .inbox-chat-head .actions span:not(.badge) {
    display: none;
  }

  .inbox-messages {
    padding: 1rem 0.85rem;
    gap: 0.5rem;
  }
  .msg {
    padding: 0.6rem 0.85rem;
    font-size: 0.86rem;
  }

  .inbox-compose {
    padding: 0.75rem 0.85rem;
    gap: 0.45rem;
    align-items: flex-end;
  }
  .inbox-compose .field { min-width: 0; }
  .inbox-compose input[type="text"],
  .inbox-compose textarea {
    font-size: 16px !important; /* prevent iOS zoom */
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
  }
  .inbox-compose .send-btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }
}

/* Phone: single-pane inbox (list OR chat) */
@media (max-width: 767.98px) {
  .inbox-shell {
    height: calc(100vh - var(--header-height) - 90px);
    min-height: 480px;
    max-height: calc(100vh - var(--header-height) - 70px);
    border-radius: var(--radius-md);
  }

  /* Default: show conversation list */
  .inbox-side {
    max-height: none;
    height: 100%;
    flex: 1;
    min-height: 0;
    border-bottom: none;
  }
  .inbox-chat {
    display: none;
    min-height: 0;
    height: 100%;
  }

  /* When a thread is open (add class="chat-open" on .inbox-shell via PHP/JS) */
  .inbox-shell.chat-open .inbox-side {
    display: none;
  }
  .inbox-shell.chat-open .inbox-chat {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
  .inbox-shell.chat-open .inbox-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .inbox-shell.chat-open .inbox-compose {
    flex-shrink: 0;
  }

  .inbox-side-head {
    padding: 0.85rem 1rem;
    gap: 0.5rem;
  }
  .inbox-side-head h2 {
    font-size: 0.95rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .inbox-side-head .count {
    flex-shrink: 0;
  }
  .inbox-search { padding: 0.65rem 0.85rem; }
  .inbox-item {
    grid-template-columns: 40px minmax(0, 1fr) minmax(3.75rem, auto);
    padding: 0.75rem 0.85rem;
    gap: 0.55rem;
  }
  .inbox-item .avatar {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }
  .inbox-item .info .name { font-size: 0.84rem; }
  .inbox-item .info .preview { font-size: 0.74rem; }
  .inbox-item .meta {
    min-width: 3.75rem;
  }
  .inbox-item .meta .time {
    font-size: 0.68rem;
  }

  .inbox-chat-head {
    padding: 0.65rem 0.75rem;
    position: sticky;
    top: 0;
    z-index: 5;
  }
  /* Back control in chat head (optional .inbox-back button) */
  .inbox-chat-head .inbox-back {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
  }
  .inbox-chat-head .avatar {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .inbox-messages {
    padding: 0.85rem 0.75rem;
  }
  .msg {
    max-width: 92%;
    font-size: 0.85rem;
    padding: 0.55rem 0.75rem;
  }

  .inbox-compose {
    padding: 0.6rem 0.7rem;
    padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
  }
  .inbox-compose .send-btn {
    width: 40px;
    height: 40px;
  }
  .inbox-no-chat {
    padding: 2rem 1rem;
  }
  .inbox-no-chat .icon {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }
  .inbox-no-chat h3 { font-size: 0.95rem; }
  .inbox-no-chat p { font-size: 0.82rem; }
}

/* Very small phones */
@media (max-width: 380px) {
  .inbox-chat-head .actions a:nth-child(n+4),
  .inbox-chat-head .actions button:nth-child(n+4) {
    display: none; /* keep primary actions only */
  }
  .inbox-item {
    grid-template-columns: 36px minmax(0, 1fr) minmax(3.5rem, auto);
    gap: 0.45rem;
    padding: 0.7rem 0.7rem;
  }
  .inbox-item .avatar {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
  .inbox-item .meta {
    min-width: 3.5rem;
  }
  .inbox-item .meta .time {
    font-size: 0.66rem;
  }
}

/* ============================================================
   36. PRODUCT DETAIL (Gumtree-style)
   ============================================================ */
.gt-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.75rem;
  align-items: start;
  padding: 1.5rem 0 3rem;
}
.gt-gallery {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gt-gallery-main {
  aspect-ratio: 4/3;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
}
.gt-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gt-gallery-main .zoom-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--gray-700);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--duration) var(--ease);
}
.gt-gallery-main .zoom-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.gt-img-count {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.3rem 0.7rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 0.72rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.gt-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  overflow-x: auto;
}
.gt-thumbs button {
  width: 64px;
  height: 64px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--gray-100);
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
}
.gt-thumbs button.active,
.gt-thumbs button:hover { border-color: var(--primary); }
.gt-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.gt-detail-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1rem;
}
.gt-detail-card h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.5rem;
}
.gt-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.gt-price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.gt-detail-card .gt-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.4rem 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}
.gt-price-row .gt-price { margin: 0; }
.gt-price-row .gt-old {
  font-size: 1rem;
  color: var(--gray-400);
  text-decoration: line-through;
}
.gt-price-row .gt-save {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: #FEE2E2;
  color: #991B1B;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.gt-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
}
.gt-description {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--gray-700);
  white-space: pre-wrap;
}
.gt-trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}
.gt-trust-row .t {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--gray-600);
  padding: 0.5rem 0.7rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}
.gt-trust-row .t i { color: var(--success); font-size: 0.75rem; }

.gt-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-100);
}
.gt-actions .btn { flex: 1; min-width: 120px; }

.gt-sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  box-shadow: var(--shadow-sm);
}
.gt-seller-head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
}
.gt-seller-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.gt-seller-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1rem 0;
}
.gt-seller-stats div {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  text-align: center;
}
.gt-seller-stats .num { font-weight: 700; color: var(--primary); display: block; }
.gt-seller-stats .lbl { font-size: 0.7rem; color: var(--gray-500); }

.gt-safety {
  margin-top: 1rem;
  padding: 1rem;
  background: #FFF8E6;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--gray-700);
}
.gt-safety strong { display: block; margin-bottom: 0.35rem; color: var(--gray-900); }

@media (max-width: 991px) {
  .gt-layout { grid-template-columns: 1fr; }
  .gt-sidebar-card { position: static; }
}

.gt-sticky-cta { display: none; }
@media (max-width: 991px) {
  .gt-sticky-cta {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -8px 24px rgba(15,23,42,.08);
    gap: 0.6rem;
    z-index: 800;
  }
  .gt-sticky-cta .btn { flex: 1; }
  body { padding-bottom: 80px; }
}

/* Related strip */
.related-strip {
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 3rem;
}
.related-strip h2 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* ============================================================
   37. REDIRECT / LOADING PAGE
   ============================================================ */
.redirect-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(158,79,95,.10) 0%, transparent 55%),
    linear-gradient(160deg, var(--gray-50) 0%, var(--light) 100%);
}
.redirect-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 0.5s var(--ease-out) both;
}
.redirect-spinner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  position: relative;
}
.redirect-spinner::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.redirect-card h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.redirect-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}
.redirect-card .progress {
  height: 4px;
  width: 100%;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.redirect-card .progress::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: inherit;
  animation: redirectProgress 2.4s var(--ease) forwards;
}
.redirect-card.error .redirect-spinner { background: #FEE2E2; color: var(--danger); }
.redirect-card.error .redirect-spinner::before {
  border-top-color: var(--danger);
  animation: none;
  border-color: #FECACA;
}
.redirect-card.error h1 { color: var(--danger); }

/* ============================================================
   38. NEW LISTING FORM
   ============================================================ */
.form-section {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}
.form-section-title .step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(35,118,183,.25);
}
.form-section-title h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.photo-drop {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--gray-50);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
}
.photo-drop:hover,
.photo-drop.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.photo-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.photo-drop .drop-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 0.85rem;
  box-shadow: var(--shadow-sm);
}
.photo-drop strong { display: block; color: var(--gray-800); font-size: 0.95rem; margin-bottom: 0.25rem; }
.photo-drop span { color: var(--gray-500); font-size: 0.82rem; }

.photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}
.photo-previews .preview {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}
.photo-previews .preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-previews .preview .remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-previews .preview .cover-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  padding: 0.15rem 0.45rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.radio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
}
.radio-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  background: var(--white);
  font-size: 0.88rem;
  color: var(--gray-700);
}
.radio-card:hover { border-color: var(--gray-300); background: var(--gray-50); }
.radio-card input { display: none; }
.radio-card .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  flex-shrink: 0;
  position: relative;
  transition: all var(--duration) var(--ease);
}
.radio-card input:checked ~ .dot { border-color: var(--accent); }
.radio-card input:checked ~ .dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.radio-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 500;
}

.shop-callout {
  display: flex;
  gap: 1rem;
  padding: 1.15rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FAF7F7 0%, #F5EFEF 100%);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  align-items: flex-start;
}
.shop-callout:hover { border-color: var(--accent); }
.shop-callout:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(158,79,95,.08) 0%, rgba(158,79,95,.14) 100%);
  box-shadow: 0 8px 24px rgba(158,79,95,.12);
}
.shop-callout input { margin-top: 0.2rem; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.shop-callout .title {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.shop-callout .title i { color: var(--accent); }
.shop-callout p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--gray-100);
}

.side-tip-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.side-tip-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(158,79,95,.25) 0%, transparent 55%);
  pointer-events: none;
}
.side-tip-card > * { position: relative; z-index: 2; }
.side-tip-card h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.side-tip-card ul {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.9;
  color: rgba(255,255,255,.85);
}
.side-tip-card ul li::marker { color: var(--light); }

/* ============================================================
   39. STATIC CONTENT PAGES (FAQ, Policy, Terms)
   ============================================================ */
.policy-page { padding: 3rem 0 4rem; }

.policy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
.policy-toc {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
}
.policy-toc h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.policy-toc a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--gray-600);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
}
.policy-toc a:hover,
.policy-toc a.active { background: var(--gray-50); color: var(--primary); }

.policy-content {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xs);
}
.policy-content h1 {
  font-size: clamp(1.75rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent-soft);
}
.policy-content h2 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent);
}
.policy-content h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.policy-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.policy-content ul,
.policy-content ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.policy-content ul li,
.policy-content ol li {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 0.35rem;
  list-style: disc;
}
.policy-content ol li { list-style: decimal; }
.policy-content a { color: var(--accent); font-weight: 500; }
.policy-content a:hover { text-decoration: underline; }
.policy-content section { scroll-margin-top: calc(var(--header-height) + 1rem); }

@media (max-width: 991px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; }
  .policy-content { padding: 1.5rem; }
}

/* FAQ accordion */
.faq-accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}
.faq-item:hover { border-color: var(--gray-300); }
.faq-item.open {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(158,79,95,.10);
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--duration) var(--ease);
}
.faq-trigger:hover { color: var(--accent); }
.faq-trigger i {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--gray-400);
  transition: transform 0.25s var(--ease);
}
.faq-item.open .faq-trigger i { transform: rotate(180deg); color: var(--accent); }
.faq-body {
  display: none;
  padding: 0 1.35rem 1.35rem;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.75;
}
.faq-item.open .faq-body {
  display: block;
  animation: fadeInUp 0.3s var(--ease-out);
}
.faq-body a { color: var(--accent); font-weight: 500; }

/* ============================================================
   40. ORDER TRACKING
   ============================================================ */
.track-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}
.track-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--duration) var(--ease);
}
.track-form input:focus { border-color: var(--accent); box-shadow: var(--shadow-glow-accent); }

.track-order-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-xs);
}
.track-order-card .order-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}
.track-order-card .meta-cell .lbl {
  font-size: 0.7rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  font-weight: 700;
}
.track-order-card .meta-cell .val {
  font-size: 0.95rem;
  color: var(--gray-800);
  font-weight: 500;
}
.track-order-card .meta-cell .val.accent { color: var(--primary); font-weight: 700; }

.track-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.track-step { text-align: center; }
.track-step .circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin: 0 auto 0.85rem;
  transition: all var(--duration) var(--ease);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--gray-200);
}
.track-step.done .circle {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  box-shadow: 0 6px 16px rgba(35,118,183,.3);
}
.track-step.current .circle {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  animation: pulse 2s infinite;
  box-shadow: 0 6px 16px rgba(158,79,95,.35);
}
.track-step h4 {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.track-step p { font-size: 0.75rem; color: var(--gray-500); margin: 0; }
.track-step .date { font-size: 0.7rem; color: var(--gray-400); margin-top: 0.3rem; display: block; }

/* ============================================================
   41. ORDER SUCCESS PAGE
   ============================================================ */
.success-page { padding: 3rem 0 4rem; min-height: 60vh; }
.success-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.success-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.success-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #ECFDF5;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  margin: 0 auto 1.5rem;
  animation: fadeInUp 0.5s var(--ease-out) both;
}
.success-card h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.success-card .order-num {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 600;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
}
.success-card p {
  color: var(--gray-500);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
}
.success-details {
  text-align: left;
  padding: 1.15rem 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
}
.success-details .row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  color: var(--gray-600);
}
.success-details .row:last-child {
  border-top: 1px solid var(--gray-200);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}
.success-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   42. HOMEPAGE SECTIONS
   ============================================================ */
.home-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.home-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease);
}
.home-cat:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.home-cat .ic {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}
.home-cat strong { color: var(--primary); font-size: 0.95rem; }
.home-cat span { color: var(--gray-500); font-size: 0.75rem; margin-top: 0.15rem; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: all var(--duration) var(--ease);
}
.why-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.why-card .ic {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1.15rem;
}
.why-card h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.why-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.65; margin: 0; }

.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: 3rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(158,79,95,.28) 0%, transparent 55%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p {
  color: rgba(255,255,255,.8);
  max-width: 500px;
  margin: 0 auto 1.75rem;
  font-size: 1rem;
}
.cta-band .actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 640px) { .cta-band { padding: 2rem 1.5rem; } }

/* ============================================================
   43. AVATAR UPLOAD + PASSWORD GENERATOR
   ============================================================ */

/* Avatar uploader */
.avatar-upload {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.15rem;
  background: var(--gray-50);
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease);
}
.avatar-upload.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.avatar-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
}
.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-preview .avatar-cam {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.avatar-preview .avatar-cam:hover { transform: scale(1.08); }

.avatar-upload-info { flex: 1; min-width: 200px; }
.avatar-upload-info strong {
  display: block;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.avatar-upload-info span {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}
.avatar-upload-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Password field with generator button */
.password-field {
  position: relative;
}
.password-field .form-control {
  padding-right: 3.25rem;
}
.password-field .pw-toggle {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.password-field .pw-toggle:hover { background: var(--gray-100); color: var(--primary); }

.password-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.password-actions .btn-sm { font-size: 0.78rem; padding: 0.4rem 0.85rem; }

/* Password strength meter */
.pw-strength {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.6rem;
  height: 4px;
}
.pw-strength .bar {
  flex: 1;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  transition: background 0.3s var(--ease);
}
.pw-strength.s1 .bar:nth-child(-n+1) { background: #DC2626; }
.pw-strength.s2 .bar:nth-child(-n+2) { background: #F59E0B; }
.pw-strength.s3 .bar:nth-child(-n+3) { background: #10B981; }
.pw-strength.s4 .bar:nth-child(-n+4) { background: #059669; }

.pw-strength-label {
  font-size: 0.72rem;
  color: var(--gray-500);
  margin-top: 0.4rem;
  display: block;
}
.pw-strength-label.strong { color: var(--success); font-weight: 600; }
.pw-strength-label.weak   { color: var(--danger); }

/* Small layout tweak so the generator button lines up */
.pw-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.pw-row > .form-group { flex: 1; min-width: 200px; margin-bottom: 0; }


/* ============================================================
   SOARISE ADMIN — Premium Dashboard Theme 2026
   Extends: bootstrap.min.css + style.css
   Sidebar: WHITE background (original preserved)
   ============================================================ */

:root {
  --admin-sidebar-w: 270px;
  --admin-header-h:  72px;
}


body {
  background:
    radial-gradient(1200px 500px at 100% 0%, rgba(35, 118, 183, 0.05) 0%, transparent 55%),
    var(--off-white);
  font-family: var(--font-sans);
  color: var(--gray-800);
}

#main-wrapper { min-height: 100vh; }

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.body-wrapper {
  flex: 1;
  padding: 1.75rem 0 3rem;
}
.body-wrapper > .container-fluid {
  max-width: 1440px;
  padding: 0 1.75rem;
  margin-inline: auto;
}
@media (max-width: 767.98px) {
  .body-wrapper > .container-fluid { padding: 0 1rem; }
}

/* ------------------------------------------------------------
   1. SIDEBAR — WHITE (original preserved, refined spacing)
   ------------------------------------------------------------ */
.left-sidebar {
  width: var(--admin-sidebar-w);
  background-color: #fff;                                  /* ← unchanged */
  border-right: 1px solid rgb(229, 234, 239);              /* ← unchanged */
  box-shadow: 1px 0 3px rgba(15, 23, 42, 0.02);
  transition: left 0.3s var(--ease-out);
}

.left-sidebar .scroll-sidebar {
  height: calc(100vh - 84px);
  padding: 0 18px 18px;
}

/* Brand logo */
.brand-logo {
  min-height: 76px;
  padding: 0 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo .logo-img img {
  transition: opacity var(--duration) var(--ease);
}
.brand-logo .logo-img:hover img { opacity: 0.85; }

.brand-logo .close-btn {
  color: var(--gray-500);
  width: 34px; height: 34px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--duration) var(--ease);
}
.brand-logo .close-btn:hover {
  background: var(--gray-100);
  color: var(--primary);
}

/* Section caps */
.nav-small-cap {
  margin: 22px 0 6px;
  padding: 0 12px;
  color: var(--gray-400);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-small-cap .nav-small-cap-icon { display: none; }

/* Nav list */
.sidebar-nav ul.main-navbar { padding: 0; margin: 0; }
.sidebar-nav ul.main-navbar li { list-style: none; }
.sidebar-item { margin-bottom: 2px; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 10px;
  transition: all 0.22s var(--ease);
  position: relative;
  line-height: 1.3;
}

.sidebar-link > span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  font-size: 0.95rem;
  color: var(--gray-500);
  transition: color var(--duration) var(--ease);
}

.sidebar-link:hover {
  background: var(--gray-50);
  color: var(--primary);
  transform: translateX(2px);
}
.sidebar-link:hover > span:first-child { color: var(--primary); }

/* Active pill — subtle, rose-tinted to match brand, no dark fill */
.sidebar-link.active {
  background: linear-gradient(135deg, rgba(158, 79, 95, 0.10) 0%, rgba(158, 79, 95, 0.06) 100%);
  color: var(--accent-hover);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(158, 79, 95, 0.14);
}
.sidebar-link.active > span:first-child { color: var(--accent); }
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
}

/* Pending badge in sidebar */
.sidebar-link .badge {
  margin-left: auto;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.65rem;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
}

/* "Dashboard by Trifold" card — light version */
.unlimited-access {
  background: linear-gradient(135deg, #f8fafc 0%, #eff4fb 100%);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 14px 16px !important;
  margin: 22px 0 12px !important;
  position: relative;
  overflow: hidden;
}
.unlimited-access::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(158, 79, 95, 0.10) 0%, transparent 55%);
  pointer-events: none;
}
.unlimited-access .unlimited-access-title { position: relative; z-index: 2; }
.unlimited-access .text-muted,
.unlimited-access small { color: var(--gray-500) !important; }
.unlimited-access .btn.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  border-color: transparent;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 6px 14px -4px rgba(35, 118, 183, 0.4);
  transition: all var(--duration) var(--ease);
}
.unlimited-access .btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -6px rgba(35, 118, 183, 0.5);
}

/* ------------------------------------------------------------
   2. APP HEADER (top bar)
   ------------------------------------------------------------ */
.app-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  height: var(--admin-header-h);
}
.app-header .navbar {
  min-height: var(--admin-header-h);
  padding: 0 22px;
}
.app-header .navbar-nav .nav-link {
  height: var(--admin-header-h);
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: var(--gray-700);
  font-size: 1rem;
}

.app-header .sidebartoggler {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--duration) var(--ease);
}
.app-header .sidebartoggler:hover {
  background: var(--gray-100);
  color: var(--accent);
}

/* Theme switcher */
.theme-switcher.trifold-switch-btn {
  width: 42px; height: 42px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: all var(--duration) var(--ease);
}
.theme-switcher.trifold-switch-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(35, 118, 183, 0.25);
}
.theme-switcher .sun-icon  { display: inline-block; }
.theme-switcher .moon-icon { display: none; }
[data-bs-theme="dark"] .theme-switcher .sun-icon  { display: none; }
[data-bs-theme="dark"] .theme-switcher .moon-icon { display: inline-block; }

/* Avatar */
.app-header img.rounded-circle {
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--gray-200), var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}
.nav-link:hover img.rounded-circle {
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-md);
}

/* Dropdown */
.app-header .dropdown-menu {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  padding: 8px;
  min-width: 220px;
  margin-top: 8px;
}
.app-header .dropdown-menu .dropdown-item {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--duration) var(--ease);
}
.app-header .dropdown-menu .dropdown-item:hover {
  background: var(--gray-50);
  color: var(--primary);
}
.app-header .dropdown-menu .btn.btn-outline-primary {
  border-radius: 10px;
  font-weight: 600;
  padding: 9px 14px;
}

/* ------------------------------------------------------------
   3. PAGE HEADER
   ------------------------------------------------------------ */
.page-header {
  background:
    radial-gradient(900px 260px at 90% -10%, rgba(158, 79, 95, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  margin: 0 0 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px -10px rgba(35, 118, 183, 0.35);
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.page-header .page-header-title h5 {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}
.page-header .page-block .row { margin: 0; }
.page-header .page-block .row > div { padding: 0; }

.breadcrumb-title {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}
.breadcrumb-title .breadcrumb-item { list-style: none; }
.breadcrumb-title .breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: rgba(255, 255, 255, 0.45);
  padding: 0 6px;
}
.breadcrumb-title a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.breadcrumb-title a:hover { color: var(--light); }

@media (max-width: 767.98px) {
  .breadcrumb-title { justify-content: flex-start; margin-top: 8px; }
}

/* ------------------------------------------------------------
   4. CARDS
   ------------------------------------------------------------ */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
  transition: all 0.3s var(--ease);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  background: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header i { color: var(--accent); }

.card-body { padding: 22px; }

/* Stat cards */
.row > [class*="col-"] > .card:not(:has(.card-header)) {
  position: relative;
  overflow: hidden;
}
.row > [class*="col-"] > .card:not(:has(.card-header))::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.9;
}
.row > [class*="col-"] > .card:not(:has(.card-header)) .card-body {
  padding: 22px 18px;
  text-align: center;
}
.row > [class*="col-"] > .card:not(:has(.card-header)) h6 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.row > [class*="col-"] > .card:not(:has(.card-header)) h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.row > [class*="col-"] > .card.border-warning {
  border-color: #fde68a !important;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 60%);
}
.row > [class*="col-"] > .card.border-warning::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}
.row > [class*="col-"] > .card.border-warning h2 { color: #b45309; }

/* Recent list */
.card .list-group-item {
  border: none;
  border-bottom: 1px dashed var(--gray-200);
  padding: 12px 0;
  background: transparent;
}
.card .list-group-item:last-child { border-bottom: none; }
.card .list-group-item strong {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}
.card .list-group-item small { color: var(--gray-500); }

.card-body .text-muted.mb-0 { padding: 20px 0; text-align: center; }
#revenueChart { max-height: 340px; }

/* ------------------------------------------------------------
   5. TABLES
   ------------------------------------------------------------ */
.table-responsive {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.table {
  margin-bottom: 0;
  color: var(--gray-700);
  font-size: 0.9rem;
  border-collapse: separate;
  border-spacing: 0;
  vertical-align: middle;
}
.table thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--gray-600);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
.table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
  color: var(--gray-700);
}
.table tbody tr { transition: background var(--duration) var(--ease); }
.table tbody tr:hover td { background: var(--accent-soft); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody td:first-child {
  font-weight: 600;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
  width: 64px;
}
.table .btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 8px;
  font-weight: 600;
}
.table .btn-outline-primary {
  color: var(--primary);
  border-color: var(--gray-300);
  background: #fff;
}
.table .btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.table form.d-inline { display: inline-flex; gap: 6px; }

/* DataTables overrides */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
  outline: none;
  transition: all var(--duration) var(--ease);
}
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow-accent);
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  color: var(--gray-500);
  font-size: 0.85rem;
  padding: 12px 4px;
}
.dataTables_wrapper .pagination .page-link {
  border-radius: 8px !important;
  margin: 0 2px;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 0.85rem;
}
.dataTables_wrapper .pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(35, 118, 183, 0.25);
}

/* ------------------------------------------------------------
   6. BADGES
   ------------------------------------------------------------ */
.badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  text-transform: capitalize;
}
.badge.bg-success  { background: #d1fae5 !important; color: #065f46 !important; }
.badge.bg-warning  { background: #fef3c7 !important; color: #92400e !important; }
.badge.bg-danger   { background: #fee2e2 !important; color: #991b1b !important; }
.badge.bg-secondary{ background: var(--gray-100) !important; color: var(--gray-600) !important; }
.badge.bg-info     { background: #dbeafe !important; color: #1e40af !important; }
.badge.bg-primary  { background: rgba(35,118,183,0.12) !important; color: var(--primary) !important; }

/* ------------------------------------------------------------
   7. BUTTONS
   ------------------------------------------------------------ */
.btn {
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 16px;
  transition: all var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:focus { box-shadow: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  border-color: transparent;
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-deep) 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(35, 118, 183, 0.4);
}
.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: transparent;
  color: #fff;
}
.btn-warning:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(217, 119, 6, 0.4);
}
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: transparent;
  color: #fff;
}
.btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(5, 150, 105, 0.4);
}
.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: transparent;
  color: #fff;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(220, 38, 38, 0.4);
}
.btn-outline-primary {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -4px rgba(35, 118, 183, 0.35);
}
.btn-outline-secondary {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
}
.btn-outline-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--gray-800);
}

/* ------------------------------------------------------------
   8. ALERTS
   ------------------------------------------------------------ */
.alert {
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 14px 18px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-xs);
}
.alert h5 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-danger {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fecaca;
  color: #991b1b;
}
.alert-success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #a7f3d0;
  color: #065f46;
}
.alert-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
  color: #92400e;
}
.alert-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
  color: #1e40af;
}

/* ------------------------------------------------------------
   9. FORMS
   ------------------------------------------------------------ */
.form-control, .form-select {
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  background: #fff;
  transition: all var(--duration) var(--ease);
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow-accent);
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

/* ------------------------------------------------------------
   10. ANIMATIONS + UTILITIES
   ------------------------------------------------------------ */
.fs-8 { font-size: 1.05rem !important; }

.card { animation: adminFadeUp 0.4s var(--ease-out) both; }
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.10s; }
.card:nth-child(4) { animation-delay: 0.15s; }

@keyframes adminFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   11. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1199.98px) {
  .left-sidebar {
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.12);
  }
}
@media (max-width: 767.98px) {
  .page-header { padding: 1.25rem 1.25rem; border-radius: 14px; }
  .card-header { padding: 14px 16px; }
  .card-body { padding: 16px; }
  .row > [class*="col-"] > .card:not(:has(.card-header)) h2 { font-size: 1.5rem; }
  .table thead th,
  .table tbody td { padding: 12px 14px; font-size: 0.83rem; }
  .app-header .navbar { padding: 0 14px; }
}

/* ------------------------------------------------------------
   12. DARK MODE (sidebar auto-inverts via bootstrap theme vars)
   ------------------------------------------------------------ */
[data-bs-theme="dark"] body {
  background:
    radial-gradient(1200px 500px at 100% 0%, rgba(35, 118, 183, 0.10) 0%, transparent 55%),
    #0f172a;
  color: #e2e8f0;
}
[data-bs-theme="dark"] .left-sidebar {
  background-color: #1e293b;
  border-right-color: rgba(255, 255, 255, 0.06);
}
[data-bs-theme="dark"] .brand-logo { border-bottom-color: rgba(255, 255, 255, 0.06); }
[data-bs-theme="dark"] .sidebar-link { color: #cbd5e1; }
[data-bs-theme="dark"] .sidebar-link > span:first-child { color: #94a3b8; }
[data-bs-theme="dark"] .sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
[data-bs-theme="dark"] .sidebar-link.active {
  background: rgba(158, 79, 95, 0.18);
  color: #f8c7ce;
  box-shadow: inset 0 0 0 1px rgba(158, 79, 95, 0.35);
}
[data-bs-theme="dark"] .nav-small-cap { color: #64748b; }
[data-bs-theme="dark"] .unlimited-access {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .app-header {
  background: rgba(15, 23, 42, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .card-header {
  background: linear-gradient(180deg, #1e293b 0%, #172033 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}
[data-bs-theme="dark"] .table thead th {
  background: linear-gradient(180deg, #1e293b 0%, #172033 100%);
  color: #94a3b8;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .table tbody td {
  border-bottom-color: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}
[data-bs-theme="dark"] .table tbody tr:hover td { background: rgba(158, 79, 95, 0.10); }
[data-bs-theme="dark"] .btn-outline-primary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: #93c5fd;
}

/* ============================================================
   ADMIN LAYOUT — single source of padding (no double gap)
   ============================================================ */

/* ---------- Desktop (≥1200px) ---------- */
@media (min-width: 1200px) {

  /* 1. Fixed sidebar */
  .left-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--admin-sidebar-w);
    z-index: 1001;
  }

  /* 2. Fixed header offset by full sidebar width */
  .app-header {
    position: fixed;
    top: 0;
    left: var(--admin-sidebar-w);
    right: 0;
    width: auto;              /* kill bootstrap's calc(100% - 270px) */
    height: 72px;
    z-index: 1000;
  }

  /* 3. Push body content clear of the sidebar (+ small breathing gap) */
  #main-wrapper[data-layout="vertical"][data-sidebartype="full"] .body-wrapper,
  .body-wrapper {
    margin-left: calc(var(--admin-sidebar-w) + 12px);
    padding-top: 0;           /* ← critical: reset any inherited padding */
  }

  /* 4. Single source of the top gap — override bootstrap's default */
  .body-wrapper > .container-fluid,
  .body-wrapper > .container {
    padding-top: 88px !important;   /* 72px header + 16px gap */
    padding-bottom: 32px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ---------- Tablet / Mobile (<1200px) ---------- */
@media (max-width: 1199.98px) {

  /* Header spans full width */
  .app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 72px;
    z-index: 1000;
  }

  /* Drawer-style sidebar */
  .left-sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    bottom: 0;
    width: 270px;
    z-index: 1200;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
  }
  #main-wrapper.show-sidebar .left-sidebar {
    left: 0;
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.20);
  }
  #main-wrapper.show-sidebar::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1100;
  }

  /* Content: no left offset, single padding-top */
  .body-wrapper {
    margin-left: 0;
    padding-top: 0;
  }
  .body-wrapper > .container-fluid,
  .body-wrapper > .container {
    padding-top: 88px !important;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 32px;
  }
}
/* ---------- Modal polish (uses existing tokens) ---------- */
.modal-content {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: #fff;
  border-bottom: none;
  padding: 1.1rem 1.5rem;
}
.modal-header .modal-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.modal-header .btn-close { filter: invert(1) brightness(2); opacity: .8; }
.modal-body { padding: 1.5rem; }
.modal-footer { border-top: 1px solid var(--gray-100); padding: 1rem 1.5rem; }

/* ============================================================
   46. SIDE NAV — mobile dropdown
   ============================================================ */

/* Mobile toggle button (hidden on desktop) */
.side-nav-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(35,118,183,.25);
  transition: all var(--duration) var(--ease);
  margin: 0.75rem;
  width: calc(100% - 1.5rem);
}
.side-nav-toggle:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(35,118,183,.3); }
.side-nav-toggle .label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.side-nav-toggle .label span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-nav-toggle .chev {
  flex-shrink: 0;
  font-size: 0.75rem;
  transition: transform 0.25s var(--ease);
}
.side-nav-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Badge on the toggle itself */
.side-nav-toggle .toggle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-left: 0.35rem;
}

@media (max-width: 991px) {
  /* Hide the standard vertical nav on mobile */
  .side-nav { display: none; }
  .side-nav.open { display: flex; }

  /* Show the toggle */
  .side-nav-toggle { display: flex; }

  /* Animate slide-down */
  .side-nav.open {
    animation: sideNavSlide 0.28s var(--ease-out);
  }
}

@keyframes sideNavSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Desktop: toggle hidden, nav always visible (already default) */
@media (min-width: 992px) {
  .side-nav-toggle { display: none !important; }
  .side-nav { display: flex !important; }
}

/* ------------------------------------------------------------
   Header icon buttons — allow badges to overflow the circle
   ------------------------------------------------------------ */
.header-actions .btn-icon {
  overflow: visible;        /* unclips .cart-count / .wish-count */
}
.header-actions .btn-icon::after {
  display: none;            /* kill the shine sweep on round icons */
}

/* ------------------------------------------------------------
   Wishlist button (mirrors .cart-btn)
   ------------------------------------------------------------ */
.wishlist-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.wishlist-btn .btn-icon:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

/* Empty wishlist → hide the "0" badge for a cleaner look */
.cart-count.is-empty,
.wish-count.is-empty { display: none; }

/* ------------------------------------------------------------
   Badge (shared) — a touch more breathing room
   ------------------------------------------------------------ */
.cart-count,
.wish-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;              /* was 18 — 2-digit numbers fit better */
  height: 20px;
  padding: 0 6px;               /* was 5 */
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(158, 79, 95, 0.4), 0 0 0 2px var(--white);
  z-index: 3;
  pointer-events: none;
}

/* ------------------------------------------------------------
   Account dropdown (mobile user menu — replaces side-nav-toggle)
   ------------------------------------------------------------ */
.account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.45rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s var(--ease-out);
  z-index: 1100;
  pointer-events: none;
}
.account-menu.open .account-menu-panel,
.account-menu:focus-within .account-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.account-menu-panel a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
}
.account-menu-panel a i {
  width: 1.1rem;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.85rem;
}
.account-menu-panel a:hover {
  background: var(--gray-50);
  color: var(--primary);
}
.account-menu-panel a:hover i { color: var(--primary); }
.account-menu-panel a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
}
.account-menu-panel a.active i { color: #fff; }
.account-menu-panel .menu-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 0.35rem 0.4rem;
}
.account-menu-panel .badge {
  margin-left: auto;
  font-size: 0.65rem;
}

/* On desktop, keep account as a simple link (panel optional / hover) */
@media (min-width: 992px) {
  .account-menu-panel {
    /* still available on hover for convenience */
  }
}

/* When mobile main-nav or account menu is open — lock page scroll */
body.nav-open,
body.account-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Hide dashboard side-nav-toggle when account menu is used in header */
@media (max-width: 991px) {
  body.has-account-menu .side-nav-toggle {
    display: none !important;
  }
  body.has-account-menu .side-nav {
    display: none !important;
  }
}

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
@media (max-width: 991px) {

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;

    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;

    width: 100%;
    box-sizing: border-box;

    background: var(--white);
    border-bottom: 1px solid var(--gray-200);

    padding: 0.85rem 1rem 1.15rem;

    box-shadow: var(--shadow-lg);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);

    transition: all 0.25s var(--ease-out);

    z-index: 990;

    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  /* OPEN */
  .main-nav.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* NAV LINKS */
  .main-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;

    padding: 0.85rem 1rem;

    font-size: 0.95rem;
    line-height: 1.2;

    text-align: left;
    text-decoration: none;

    border-radius: var(--radius-md);
  }

  /* ACTIVE */
  .main-nav a.active {
    background: linear-gradient(
      135deg,
      var(--primary),
      var(--primary-soft)
    );
    color: #fff;
  }
}

@media (max-width: 767.98px) {
    .side-nav {
        display: none;
    }

    .side-nav.show {
        display: block;
    }
}

/* ── Star rating input ───────────────────────────────── */
.star-input {
  display: flex;
  gap: .25rem;
}
.star-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: #d1d5db;
  transition: color .15s ease, transform .12s ease;
}
.star-btn:hover { transform: scale(1.1); }
.star-btn.active { color: #f59e0b; }

/* ── Review list ─────────────────────────────────────── */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.review-item {
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: .75rem;
  padding: 1rem;
  background: #fff;
}
.review-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary, #4f46e5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.review-author {
  font-weight: 600;
  color: var(--gray-800, #1f2937);
  font-size: .9rem;
}
.review-date {
  font-size: .75rem;
  color: var(--gray-500, #6b7280);
}
.review-stars {
  margin-left: auto;
  color: #f59e0b;
  font-size: .85rem;
  white-space: nowrap;
}
.review-text {
  color: var(--gray-700, #374151);
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Review form ─────────────────────────────────────── */
.review-form {
  background: var(--gray-50, #f9fafb);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: .75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
/* Textarea composer */
.inbox-compose .field textarea {
  width: 100%;
  min-height: 42px;
  max-height: 160px;
  padding: .6rem .75rem;
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: .75rem;
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.45;
  resize: none;              /* we auto-grow via JS */
  overflow-y: auto;
  background: #fff;
  color: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.inbox-compose .field textarea:focus {
  border-color: var(--primary, #4f46e5);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

/* ============================================================
   47. HEADER — keep popup buttons visible on mobile
   ------------------------------------------------------------
   The 576px rule above hides ALL .btn inside .header-actions
   that aren't .btn-icon — which accidentally kills the Clear
   and Checkout buttons inside the cart dropdown. Scope it back.
   ============================================================ */

@media (max-width: 576px) {

  /* Hide header-level CTA buttons only — never anything inside a popup */
  .header-actions .btn:not(.btn-icon):not(.cart-dropdown .btn):not(.dropdown-menu .btn) {
    display: none;
  }

  /* Belt-and-suspenders: buttons inside the cart popover stay visible */
  .header-actions .cart-dropdown .btn,
  .header-actions .dropdown-menu .btn {
    display: inline-flex !important;
  }

  /* Cart popover: fit inside the viewport on small screens */
  .cart-dropdown {
    width: min(340px, calc(100vw - 24px));
    right: -8px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
  }

  /* Touch devices can't hover → open the dropdown on tap instead */
  .cart-btn.open .cart-dropdown,
  .cart-btn:focus-within .cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ============================================================
   48. CHECKOUT — mobile-first responsiveness
   ============================================================ */

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.checkout-card { min-width: 0; }
.checkout-card h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checkout-card h3 i { color: var(--accent); }

.checkout-summary-sticky {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

/* Order line items */
.order-line {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.order-line:last-child { border-bottom: none; }
.order-line .line-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
}
.order-line .line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-line .line-info { min-width: 0; }
.order-line .line-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-line .line-info span {
  font-size: 0.74rem;
  color: var(--gray-500);
}
.order-line .line-price {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
  white-space: nowrap;
  text-align: right;
}

/* Order summary rows */
.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  gap: 1rem;
}
.order-summary-row > span:first-child { flex-shrink: 0; }
.order-summary-row > span:last-child  { text-align: right; }
.order-summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid var(--gray-200);
  margin-top: 0.75rem;
  padding-top: 0.85rem;
}

/* Payment method cards (radio tiles) */
.payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--white);
  transition: all var(--duration) var(--ease);
}
.payment-option:hover { border-color: var(--gray-300); }
.payment-option input { accent-color: var(--accent); }
.payment-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(158,79,95,.10);
}
.payment-option .pm-body { min-width: 0; }
.payment-option .pm-body strong {
  display: block;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}
.payment-option .pm-body span {
  font-size: 0.76rem;
  color: var(--gray-500);
}

/* ---- Tablet (≤991px) ---- */
@media (max-width: 991px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .checkout-summary-sticky { position: static; }
}

/* ---- Mobile (≤767px) ---- */
@media (max-width: 767.98px) {

  .checkout-card {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
  }
  .checkout-card h3 {
    font-size: 1rem;
    padding-bottom: 0.65rem;
    margin-bottom: 1rem;
  }

  .checkout-card .form-control,
  .checkout-card .form-select,
  .checkout-card textarea.form-control,
  .checkout-card input[type="text"],
  .checkout-card input[type="email"],
  .checkout-card input[type="tel"],
  .checkout-card input[type="number"] {
    font-size: 16px !important;
    padding: 0.85rem 0.95rem;
    min-height: 48px;
    border-radius: 12px;
  }
  .checkout-card textarea.form-control { min-height: 100px; }
  .checkout-card .form-label { font-size: 0.82rem; }

  .checkout-card .form-row,
  .checkout-card .row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .checkout-card .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .checkout-card .d-flex.gap-3 {
    flex-wrap: wrap !important;
    gap: 0.6rem !important;
  }

  .payment-options { grid-template-columns: 1fr; }
  .payment-option {
    padding: 0.85rem 0.9rem;
    min-height: 56px;
  }
  .payment-option .pm-body strong { font-size: 0.88rem; }
  .payment-option .pm-body span   { font-size: 0.72rem; }

  /* Order line items — smaller thumbnails */
  .order-line {
    grid-template-columns: 40px 1fr auto;
    gap: 0.55rem;
    padding: 0.55rem 0;
  }
  .order-line .line-thumb {
    width: 40px;
    height: 40px;
  }
  .order-line .line-info strong { font-size: 0.82rem; }
  .order-line .line-info span   { font-size: 0.72rem; }
  .order-line .line-price       { font-size: 0.85rem; }

  .order-summary-row {
    font-size: 0.85rem;
    padding: 0.45rem 0;
  }
  .order-summary-row.total { font-size: 1.05rem; }

  .checkout-card .btn.btn-lg,
  .checkout-card .btn-primary.btn-lg,
  .checkout-card .btn-accent.btn-lg,
  .checkout-place-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    min-height: 54px;
    border-radius: 14px;
  }
  .checkout-card .btn.btn-outline.btn-lg {
    width: 100%;
    padding: 0.9rem 1.25rem;
    min-height: 50px;
  }

  .checkout-card .text-xs,
  .checkout-card .text-sm { font-size: 0.75rem; }

  .checkout-summary-sticky { position: static; }
}

/* ---- Small phones (≤420px) ---- */
@media (max-width: 420px) {

  .checkout-card { padding: 1rem 0.85rem; }

  .order-line {
    grid-template-columns: 36px 1fr auto;
    gap: 0.45rem;
  }
  .order-line .line-thumb { width: 36px; height: 36px; }

  .mp-page-header { padding: 1.5rem 0 1.25rem; }
  .mp-page-header h1 { font-size: 1.35rem; }

  .container { padding-inline: 1rem; }

  .order-summary-row.total { font-size: 1rem; }
}

/* ---- Landscape phones ---- */
@media (max-width: 991px) and (orientation: landscape) {
  .checkout-summary-sticky { position: static; }
}
@media (max-width: 767.98px) {
  .stat-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.6rem;
  }

  .stat-grid .stat-card {
    min-width: 0;
    padding: 0.85rem 0.75rem;
  }

  .stat-grid .stat-card .icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .stat-grid .stat-card .label {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .stat-grid .stat-card .value {
    font-size: 1.15rem;
    line-height: 1.15;
  }
}
