@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --background: #f4f4f4;
  --foreground: #222222;
  --card: #ffffff;
  --card-foreground: #222222;
  --primary: #ff6600; /* Alibaba Orange */
  --primary-foreground: #ffffff;
  --secondary: #ffffff;
  --secondary-foreground: #333333;
  --muted: #f7f7f7;
  --muted-foreground: #666666;
  --accent: #ff6600;
  --accent-foreground: #ffffff;
  --destructive: #ff4d4f;
  --border: #e8e8e8;
  --input: #d9d9d9;
  --radius: 4px; /* More standard professional radius */
  --ring: rgba(255, 102, 0, 0.2);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; }

main {
  flex: 1;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.navbar-brand { 
  font-size: 1.75rem; font-weight: 800; color: var(--primary); 
  letter-spacing: -0.5px;
}
.navbar-nav { display: flex; align-items: center; gap: 2rem; }
.navbar-nav a {
  font-size: .9375rem; font-weight: 600;
  color: #333;
  transition: color .2s;
  padding: 0.5rem 0;
}
.navbar-nav a:hover { color: var(--primary); }
.navbar-actions { display: flex; align-items: center; gap: 1.25rem; }
.navbar-actions a { color: #333; transition: transform .2s, color .2s; }
.navbar-actions a:hover { color: var(--primary); transform: translateY(-1px); }
.cart-icon { position: relative; }
.cart-badge {
  position: absolute; top: -8px; right: -8px;
  background: var(--accent); color: var(--accent-foreground);
  font-size: .625rem; font-weight: 700;
  border-radius: 50%; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-nav {
  display: none; border-top: 1px solid var(--border);
  background: var(--background);
}
.mobile-nav.open { display: block; }
.mobile-nav nav { display: flex; flex-direction: column; padding: 1rem; gap: .75rem; }
.mobile-nav a { font-size: .875rem; font-weight: 500; padding: .5rem 0; border-bottom: 1px solid var(--border); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: .875rem; font-weight: 600; border-radius: var(--radius);
  cursor: pointer; border: 2px solid transparent;
  transition: all .15s; white-space: nowrap;
  padding: 0 1.5rem; height: 44px;
}
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-accent:hover { background: #e05a00; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: #247a38; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--muted); }
.btn-ghost { background: transparent; color: var(--muted-foreground); border-color: transparent; }
.btn-ghost:hover { background: var(--muted); }
.btn-sm { height: 32px; padding: 0 .75rem; font-size: .75rem; }
.btn-lg { height: 52px; padding: 0 2rem; font-size: 1rem; }
.btn-icon { 
  width: 36px; height: 36px; padding: 0; border-radius: 50%; 
  background: #f9fafb; border: 1px solid #e5e7eb; color: #4b5563;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.btn-icon:hover { background: #f3f4f6; color: var(--primary); border-color: var(--primary); transform: scale(1.05); }
.btn-icon.btn-accent { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-icon.btn-accent:hover { background: #e65c00; border-color: #e65c00; }
.btn-danger { background: var(--destructive); color: #fff; }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}

/* ─── Product Card ───────────────────────────────────────── */
.product-card {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); 
  cursor: pointer;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.product-card:hover { 
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}
.product-card-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-card-body h3 { 
  font-size: .875rem; font-weight: 500; color: #333; 
  line-height: 1.4; margin-bottom: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; 
}
.product-card-body h3:hover { color: var(--primary); }

.stars { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.star { width: 12px; height: 12px; }
.star.filled { color: #ffb800; fill: #ffb800; }
.star.empty { color: #e5e7eb; }
.reviews-count { font-size: .75rem; color: #9ca3af; margin-left: 4px; }

.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary); color: #fff;
  font-size: .65rem; font-weight: 700; padding: 3px 10px;
  border-radius: 4px; z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { font-size: 1.125rem; font-weight: 700; color: #e62e04; }
.price::before { content: "$"; font-size: 0.8rem; margin-right: 1px; }
.price-original { font-size: .85rem; color: #9ca3af; text-decoration: line-through; margin-left: 6px; }

/* ─── Grid ───────────────────────────────────────────────── */
.products-grid { display: grid; gap: 20px; grid-template-columns: repeat(5, 1fr); }
.products-grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }

/* ─── Product Detail ─────────────────────────────────────── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.product-detail-img { 
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); 
  padding: 20px; position: sticky; top: 100px;
}
.product-detail-img img { width: 100%; height: auto; object-fit: contain; }

.product-detail-info { display: flex; flex-direction: column; gap: 15px; }
.category-tag { font-size: 0.85rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; }
.product-detail-title { font-size: 2rem; font-weight: 700; color: #222; line-height: 1.2; }

.product-price-large { display: flex; align-items: baseline; gap: 12px; font-size: 2.25rem; font-weight: 700; color: #e62e04; margin: 10px 0; }
.product-price-large::before { content: "$"; font-size: 1.25rem; margin-right: 2px; }

.discount-badge { 
  background: #fff1f0; color: #ff4d4f; border: 1px solid #ffccc7;
  font-size: 0.85rem; font-weight: 700; padding: 2px 8px; border-radius: 2px;
}

.purchase-box { 
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); 
  padding: 24px; display: flex; flex-direction: column; gap: 20px;
}

.trust-badges-inline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 10px; }
.trust-badge-mini { 
  display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: #666; 
}
.trust-badge-mini svg { color: var(--primary); flex-shrink: 0; }

/* ─── Account Dashboard ─────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
.account-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 0; }
.account-nav-item { 
  display: flex; align-items: center; gap: 12px; padding: 12px 20px; 
  font-size: 0.95rem; color: #444; font-weight: 500;
  transition: all 0.2s;
}
.account-nav-item:hover { background: #fafafa; color: var(--primary); }
.account-nav-item.active { background: #fff7f2; color: var(--primary); border-right: 3px solid var(--primary); }
.account-nav-item svg { width: 18px; height: 18px; opacity: 0.7; }

.account-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.account-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; color: #222; border-bottom: 1px solid #f0f0f0; padding-bottom: 12px; }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .375rem; }
.form-control {
  width: 100%; padding: .625rem .875rem; height: 44px;
  border: 2px solid var(--input); border-radius: var(--radius);
  background: var(--background); color: var(--foreground);
  font-size: .875rem; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,156,71,.15); }
.form-control::placeholder { color: var(--muted-foreground); opacity: .7; }
textarea.form-control { height: auto; min-height: 100px; resize: vertical; padding-top: .75rem; }
select.form-control { cursor: pointer; }

.input-group { position: relative; }
.input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }
.input-group .form-control { padding-left: 2.75rem; }
.input-clear { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted-foreground); }
.input-clear:hover { color: var(--foreground); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero { background: #ffffff; padding: 30px 0; border-bottom: 1px solid var(--border); }
.hero-layout {
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: 20px;
  align-items: start;
}
.hero-categories {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 0;
}
.hero-category-item {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 0.9rem;
  color: #333;
  transition: background 0.2s, color 0.2s;
}
.hero-category-item:hover {
  background: var(--muted);
  color: var(--primary);
}
.hero-banner {
  height: 400px;
  background: linear-gradient(135deg, #fff5f0 0%, #ffe8db 100%);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding: 40px;
}
.hero-content { max-width: 400px; z-index: 2; }
.hero-eyebrow { font-size: 1rem; font-weight: 700; color: var(--primary); text-transform: uppercase; margin-bottom: 10px; display: block; }
.hero-title { font-size: 2.5rem; font-weight: 800; line-height: 1.1; color: #222; }
.hero-desc { color: #666; font-size: 1.1rem; margin-top: 15px; }
.hero-actions { display: flex; gap: 12px; margin-top: 25px; }

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.hero-sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

/* ─── Category Cards ─────────────────────────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.category-card { position: relative; border-radius: var(--radius); overflow: hidden; height: 192px; display: block; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.category-card:hover img { transform: scale(1.05); }
.category-overlay {
  position: absolute; inset: 0;
  background: rgba(33,33,33,.4);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.category-card:hover .category-overlay { background: rgba(33,33,33,.55); }
.category-label { color: #fff; font-size: 1.25rem; font-weight: 700; }

/* ─── Section ────────────────────────────────────────────── */
.section { padding: 3rem 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.section-title { font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 700; }
.section-bg { background: var(--secondary); }

/* ─── Trust Bar ──────────────────────────────────────────── */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 1.5rem; }
.trust-icon { width: 40px; height: 40px; color: var(--primary); }
.trust-title { font-weight: 600; }
.trust-desc { font-size: .875rem; color: var(--muted-foreground); }

/* ─── Shop Page ──────────────────────────────────────────── */
.shop-layout { display: flex; gap: 2rem; }
.shop-sidebar { width: 220px; flex-shrink: 0; }
.shop-main { flex: 1; min-width: 0; }
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-title { font-size: .875rem; font-weight: 600; margin-bottom: .75rem; }
.sidebar-btn {
  display: block; width: 100%; text-align: left;
  font-size: .875rem; padding: .5rem .75rem;
  border-radius: var(--radius); border: none; background: none;
  cursor: pointer; color: var(--muted-foreground);
  transition: all .15s;
}
.sidebar-btn:hover { background: var(--muted); color: var(--foreground); }
.sidebar-btn.active { background: var(--primary); color: var(--primary-foreground); }
.filter-toggle { display: none; }

/* ─── Cart Page ──────────────────────────────────────────── */
/* ─── Cart & Checkout ────────────────────────────────────── */
.page-section { padding: 40px 0; }
.page-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 24px; color: #222; }

.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.cart-items-container { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.cart-item { 
  display: flex; gap: 20px; padding: 20px; 
  border-bottom: 1px solid var(--border); 
  background: #fff;
  transition: background 0.2s;
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: #fafafa; }
.cart-item-img { width: 100px; height: 100px; border-radius: 4px; object-fit: contain; background: #f9f9f9; border: 1px solid #eee; flex-shrink: 0; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; }
.cart-item-name { font-size: 1rem; font-weight: 500; color: #222; margin-bottom: 4px; }
.cart-item-price { font-size: 0.9rem; font-weight: 700; color: #e62e04; }

.cart-qty { display: flex; align-items: center; border: 1px solid var(--input); border-radius: 4px; width: fit-content; margin-top: auto; }
.qty-btn { 
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; 
  background: none; border: none; cursor: pointer; font-size: 1.1rem; color: #666;
  transition: background 0.2s;
}
.qty-btn:hover { background: #f0f0f0; }
.qty-val { width: 40px; text-align: center; font-size: 0.9rem; font-weight: 600; border-left: 1px solid var(--input); border-right: 1px solid var(--input); }

.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item-total { font-size: 1.1rem; font-weight: 700; color: #222; }
.remove-btn { 
  background: none; border: none; cursor: pointer; color: #999; padding: 5px;
  transition: color 0.2s;
}
.remove-btn:hover { color: var(--destructive); }

.order-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.order-summary-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; color: #222; }
.order-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.95rem; color: #666; }
.order-total { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 1.25rem; font-weight: 700; color: #e62e04; }

/* ─── Checkout ───────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.col-span-2 { grid-column: span 2; }
.section-heading { font-weight: 600; font-size: 1rem; margin-bottom: 1rem; }
.checkout-payments {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.checkout-payments-heading {
  font-size: .95rem;
  font-weight: 700;
}
.checkout-payments-copy {
  font-size: .875rem;
  line-height: 1.55;
}
.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.payment-logo-card {
  flex: 1 1 132px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: .95rem;
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-logo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.payment-logo {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 38px;
  object-fit: contain;


}

/* ─── Product Detail ─────────────────────────────────────── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.product-detail-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--muted); aspect-ratio: 1; }
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.category-tag { font-size: .75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .1em; }
.product-detail-title { font-size: 1.875rem; font-weight: 700; margin-top: .5rem; }
.product-price-large { font-size: 1.875rem; font-weight: 700; margin-top: 1.5rem; display: flex; align-items: center; gap: .75rem; }
.discount-badge { background: rgba(255,102,0,.1); color: var(--accent); font-size: .875rem; font-weight: 600; padding: .25rem .5rem; border-radius: var(--radius); }
.product-desc { color: var(--muted-foreground); margin-top: 1rem; line-height: 1.7; }

/* ─── Reviews ────────────────────────────────────────────── */
.review-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.reviewer-name { font-weight: 600; font-size: .875rem; }
.review-date { font-size: .75rem; color: var(--muted-foreground); }
.review-text { font-size: .875rem; color: var(--muted-foreground); }

/* ─── Account ────────────────────────────────────────────── */
.account-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.account-card { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: box-shadow .15s; }
.account-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.dashboard-page { display: grid; gap: 1.5rem; }
.dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 420px);
  gap: 1.5rem;
  padding: 1.75rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(45, 156, 71, .15), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 102, 0, .12), transparent 30%),
    linear-gradient(135deg, rgba(247, 247, 238, .96), rgba(255, 255, 255, .98));
}
.dashboard-hero::before,
.dashboard-hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.dashboard-hero::before {
  width: 240px;
  height: 240px;
  right: -120px;
  top: -100px;
  background: rgba(45, 156, 71, .08);
}
.dashboard-hero::after {
  width: 280px;
  height: 280px;
  left: -130px;
  bottom: -160px;
  background: rgba(255, 102, 0, .08);
}
.dashboard-hero-copy,
.dashboard-hero-snapshot {
  position: relative;
  z-index: 1;
}
.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
}
.dashboard-title {
  max-width: 12ch;
}
.dashboard-hero-text {
  max-width: 46rem;
  font-size: 1.05rem;
  line-height: 1.65;
}
.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}
.dashboard-hero-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-self: stretch;
}
.dashboard-hero-stat {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .06);
}
.dashboard-hero-stat span {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.dashboard-hero-stat strong {
  font-size: 1.35rem;
  line-height: 1.2;
}
.dashboard-hero-stat p {
  font-size: .875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}
.dashboard-hero-stat-accent {
  background: linear-gradient(135deg, rgba(45, 156, 71, .12), rgba(255, 255, 255, .96));
  border-color: rgba(45, 156, 71, .16);
}
.dashboard-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(45, 156, 71, .12);
  overflow: hidden;
  margin-top: .25rem;
}
.dashboard-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #6fcf6b);
}
.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.dashboard-stat {
  padding: 1.25rem;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dashboard-stat-label {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted-foreground);
}
.dashboard-stat-value {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  margin-top: .4rem;
}
.dashboard-stat-meta {
  display: block;
  font-size: .875rem;
  color: var(--muted-foreground);
  margin-top: .5rem;
}
.dashboard-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 420px);
  gap: 1rem;
  align-items: start;
}
.dashboard-chart-stack {
  display: grid;
  gap: 1rem;
}
.dashboard-chart-card,
.dashboard-queue-card {
  padding: 1.25rem;
}
.dashboard-chart-card--wide {
  min-height: 420px;
}
.dashboard-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.dashboard-chart-chip {
  display: inline-flex;
  align-items: center;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dashboard-chart-canvas {
  position: relative;
  height: 280px;
}
.dashboard-chart-canvas--tall {
  height: 360px;
}
.dashboard-queue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.dashboard-order-list,
.dashboard-chat-list {
  display: grid;
  gap: .9rem;
}
.dashboard-order-item,
.dashboard-chat-item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 247, 238, .7));
}
.dashboard-order-main,
.dashboard-chat-item-top {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.dashboard-order-title,
.dashboard-chat-title {
  font-weight: 700;
}
.dashboard-order-subtitle,
.dashboard-chat-meta {
  font-size: .875rem;
  color: var(--muted-foreground);
  margin-top: .25rem;
}
.dashboard-order-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .25rem;
  font-size: .75rem;
  color: var(--muted-foreground);
}
.dashboard-order-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .85rem;
}
.dashboard-chat-preview {
  font-size: .875rem;
  color: var(--muted-foreground);
  margin: .85rem 0 1rem;
  line-height: 1.65;
}
.support-page { display: grid; gap: 1.5rem; }
.support-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 360px);
  gap: 1.5rem;
  padding: 1.75rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(45, 156, 71, .12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 102, 0, .12), transparent 30%),
    linear-gradient(135deg, rgba(245, 245, 216, .95), rgba(255, 255, 255, .98) 45%, rgba(255, 246, 237, .9));
}
.support-hero::before,
.support-hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.support-hero::before {
  width: 220px;
  height: 220px;
  right: -90px;
  top: -70px;
  background: rgba(45, 156, 71, .08);
}
.support-hero::after {
  width: 260px;
  height: 260px;
  left: -120px;
  bottom: -140px;
  background: rgba(255, 102, 0, .08);
}
.support-hero-copy,
.support-hero-rail {
  position: relative;
  z-index: 1;
}
.support-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
}
.support-title {
  max-width: 13ch;
}
.support-hero-text {
  max-width: 48rem;
  font-size: 1.05rem;
  line-height: 1.65;
}
.support-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.support-pill {
  display: inline-flex;
  align-items: center;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
  font-size: .8rem;
  font-weight: 600;
  color: var(--foreground);
}
.support-hero-rail {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.support-hero-stat {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .06);
}
.support-hero-stat span {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted-foreground);
}
.support-hero-stat strong {
  display: block;
  font-size: 1.1rem;
  margin: .4rem 0 .35rem;
}
.support-hero-stat p {
  font-size: .9rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.support-hero-stat-accent {
  background: linear-gradient(135deg, rgba(45, 156, 71, .12), rgba(255, 255, 255, .96));
  border-color: rgba(45, 156, 71, .16);
}
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 360px);
  gap: 1.5rem;
  align-items: start;
}
.support-main-card {
  padding: 1.5rem;
}
.support-panel {
  padding: 1.5rem;
}
.support-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.support-thread-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--muted);
}
.support-thread-label {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted-foreground);
}
.support-thread-summary strong {
  display: block;
  margin-top: .25rem;
  font-size: .95rem;
}
.support-chat {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(247, 247, 238, .72), rgba(255, 255, 255, .92));
}
.support-message {
  max-width: 82%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}
.support-message p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--foreground);
}
.support-message.customer {
  background: linear-gradient(180deg, rgba(45, 156, 71, .08), rgba(255, 255, 255, .95));
  margin-right: auto;
  border-left: 4px solid var(--primary);
  border-bottom-left-radius: .45rem;
}
.support-message.admin {
  background: linear-gradient(180deg, rgba(255, 102, 0, .10), rgba(255, 255, 255, .96));
  margin-left: auto;
  border-right: 4px solid var(--accent);
  border-bottom-right-radius: .45rem;
}
.support-message-meta {
  font-size: .72rem;
  color: var(--muted-foreground);
  margin-bottom: .45rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.support-reply-box {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--background);
}
.support-sidebar {
  display: grid;
  gap: 1rem;
}
.support-side-card {
  padding: 1.25rem;
}
.support-thread-list {
  display: grid;
  gap: .85rem;
}
.support-thread-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--background);
  transition: transform .15s, box-shadow .15s;
}
.support-thread-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}
.support-thread-card-header {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.support-thread-card-title {
  font-weight: 700;
}
.support-thread-meta {
  font-size: .75rem;
  color: var(--muted-foreground);
}
.support-thread-preview {
  font-size: .875rem;
  color: var(--muted-foreground);
  margin: .75rem 0 1rem;
  line-height: 1.6;
}
.support-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.support-contact-grid--stacked { grid-template-columns: 1fr; }
.support-help-list {
  list-style: none;
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}
.support-help-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}
.support-help-dot {
  width: .65rem;
  height: .65rem;
  border-radius: 999px;
  background: var(--primary);
  margin-top: .4rem;
  flex-shrink: 0;
}
.support-empty {
  border: 1px dashed var(--border);
  border-radius: 1rem;
  padding: 1rem;
  color: var(--muted-foreground);
  font-size: .875rem;
  background: rgba(255, 255, 255, .7);
}
.support-status {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .25rem .6rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
}
.support-status.open { background: #fef3c7; color: #92400e; }
.support-status.waiting-customer { background: #dbeafe; color: #1d4ed8; }
.support-status.resolved { background: #dcfce7; color: #166534; }
.support-thread-header {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.auth-wrapper { max-width: 400px; margin: 0 auto; padding: 3rem 1rem; }
.auth-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }

/* ─── Alerts & Messages ──────────────────────────────────── */
.messages { list-style: none; }
.alert { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: .75rem; font-size: .875rem; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ─── Toast ──────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--foreground); color: var(--background); padding: .875rem 1.25rem; border-radius: var(--radius); font-size: .875rem; font-weight: 500; box-shadow: 0 4px 16px rgba(0,0,0,.15); opacity: 0; transform: translateX(20px); transition: all .3s; max-width: 320px; }
.toast.show { opacity: 1; transform: translateX(0); }

/* ─── Footer ─────────────────────────────────────────────── */
.footer { background: var(--foreground); color: var(--background); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 3rem 0; }
.footer-brand { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.footer-desc { font-size: .875rem; opacity: .7; }
.footer-heading { font-weight: 600; margin-bottom: .75rem; }
.footer-payments {
  padding: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.footer-payments-copy {
  font-size: .875rem;
  opacity: .7;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .875rem; opacity: .7; transition: opacity .15s; }
.footer-links a:hover { opacity: 1; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { opacity: .7; transition: opacity .15s; }
.footer-social a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1.5rem 0; text-align: center; font-size: .875rem; opacity: .5; }

/* ─── Page Header ────────────────────────────────────────── */
.page-title { font-size: 1.875rem; font-weight: 700; margin-bottom: 1.5rem; }
.page-section { padding: 2rem 0; }

/* ─── Misc ───────────────────────────────────────────────── */
.text-muted { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.font-bold { font-weight: 700; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.empty-state { text-align: center; padding: 80px 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.empty-state-icon { color: #e0e0e0; margin-bottom: 20px; }
.empty-state h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted-foreground); margin-bottom: 1.5rem; transition: color .15s; }
.back-link:hover { color: var(--foreground); }
.link-primary { color: var(--primary); }
.link-primary:hover { text-decoration: underline; }

/* ─── Responsive Design ──────────────────────────────────── */

/* ─── Tablet & Medium Devices (768px and below) ─────────── */
@media (max-width: 768px) {
  :root {
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }

  body {
    font-size: 14px;
  }

  .container {
    padding: 0 1rem;
  }

  /* ─── Navbar ─── */
  .navbar {
    border-bottom-width: 1px;
  }

  .navbar-nav { 
    display: none; 
  }

  .navbar-actions .hide-mobile { 
    display: none !important; 
  }

  .menu-toggle { 
    display: block; 
  }

  .navbar-inner { 
    height: 60px; 
  }

  .navbar-brand { 
    font-size: 1.3rem; 
  }

  .navbar-actions { 
    gap: 1rem; 
  }

  .mobile-nav {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 40;
    box-shadow: var(--shadow-md);
  }

  .mobile-nav nav { 
    padding: 1rem; 
    gap: 0.5rem; 
  }

  .mobile-nav a { 
    font-size: 1rem; 
    padding: 0.75rem 0; 
    display: block;
  }

  /* ─── Buttons ─── */
  .btn {
    height: 40px;
    padding: 0 1.25rem;
    font-size: 0.8125rem;
  }

  .btn-lg {
    height: 48px;
  }

  .btn-sm {
    height: 36px;
    padding: 0 0.625rem;
  }

  /* ─── Typography ─── */
  .page-title { 
    font-size: clamp(1.25rem, 5vw, 1.75rem); 
    margin-bottom: 1rem; 
  }

  .hero-title { 
    font-size: clamp(1.5rem, 5vw, 2.5rem); 
  }

  .section-title {
    font-size: clamp(1.125rem, 4vw, 1.875rem);
  }

  /* ─── Hero Section ─── */
  .hero-layout { 
    grid-template-columns: 1fr !important; 
    gap: 1.5rem; 
  }

  .hero-banner { 
    height: 280px; 
    padding: 1.5rem; 
  }

  .hero-content { 
    max-width: 100%; 
  }

  .hero-sidebar { 
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
  }

  .hero-sidebar-card { 
    flex-shrink: 0;
    min-width: 140px;
  }

  /* ─── Product Grids ─── */
  .products-grid,
  [style*="grid-template-columns: repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(5,1fr)"] { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 0.75rem !important; 
  }

  .products-grid-2 { 
    grid-template-columns: 1fr;
  }

  .product-card { 
    box-shadow: none; 
  }

  .product-card-img img { 
    padding: 8px; 
  }

  .product-card-body { 
    padding: 10px; 
  }

  .product-card-body h3 { 
    font-size: 0.8125rem; 
  }

  /* ─── Product Details ─── */
  .product-detail-grid { 
    grid-template-columns: 1fr !important; 
    gap: 1.5rem; 
    margin-bottom: 1.5rem;
  }

  .product-detail-title { 
    font-size: clamp(1.25rem, 5vw, 1.875rem); 
  }

  .product-price-large { 
    font-size: 1.5rem; 
  }

  .purchase-box { 
    padding: 1.5rem; 
  }

  /* ─── Category Grid ─── */
  .category-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.5rem; 
  }

  .category-card { 
    height: 140px; 
  }

  .category-label { 
    font-size: 1rem; 
  }

  /* ─── Trust Grid ─── */
  .trust-grid { 
    grid-template-columns: 1fr; 
    gap: 1rem; 
  }

  .trust-item { 
    padding: 1rem; 
  }

  /* ─── Shop Page ─── */
  .shop-layout { 
    flex-direction: column-reverse;
    gap: 1.5rem;
  }

  .shop-sidebar { 
    width: 100%; 
    flex-shrink: 0;
  }

  .sidebar-section { 
    margin-bottom: 1rem; 
  }

  .filter-toggle { 
    display: flex;
    width: 100%;
  }

  .sidebar-hidden { 
    display: none; 
  }

  .sidebar-hidden.open { 
    display: block;
    margin-bottom: 1rem;
  }

  /* ─── Cart Layout ─── */
  .cart-layout { 
    grid-template-columns: 1fr !important; 
    gap: 1.5rem;
  }

  .cart-item { 
    gap: 1rem; 
    padding: 1rem; 
    flex-direction: column;
  }

  .cart-item-img { 
    width: 80px; 
    height: 80px; 
  }

  .cart-item-info { 
    order: 1; 
  }

  .cart-item-actions { 
    order: 2; 
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .order-summary { 
    position: static;
    padding: 1.5rem; 
  }

  /* ─── Checkout ─── */
  .checkout-layout { 
    grid-template-columns: 1fr !important; 
    gap: 1.5rem;
  }

  .form-grid { 
    grid-template-columns: 1fr !important; 
  }

  .col-span-2 { 
    grid-column: span 1 !important; 
  }

  .payment-logo-card {
    flex: 1 1 100%;
    min-height: 60px;
  }

  /* ─── Account ─── */
  .account-layout { 
    grid-template-columns: 1fr !important; 
    gap: 1.5rem;
  }

  .account-sidebar {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    border: none;
    padding: 0.5rem 0;
  }

  .account-nav-item {
    padding: 0.75rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    border-right: none;
    border-bottom: 2px solid transparent;
  }

  .account-nav-item.active {
    border-right: none;
    border-bottom: 2px solid var(--primary);
    background: transparent;
  }

  .account-cards { 
    grid-template-columns: 1fr; 
  }

  /* ─── Dashboard ─── */
  .dashboard-hero {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 1rem;
  }

  .dashboard-hero::before,
  .dashboard-hero::after {
    display: none;
  }

  .dashboard-hero-snapshot {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .dashboard-hero-stat {
    padding: 0.75rem 1rem;
  }

  .dashboard-stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .dashboard-stat {
    padding: 1rem;
    min-height: auto;
  }

  .dashboard-chart-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }

  .dashboard-chart-canvas,
  .dashboard-chart-canvas--tall {
    height: 200px;
  }

  .dashboard-queue-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-order-meta {
    align-items: flex-start;
    font-size: 0.65rem;
  }

  /* ─── Support ─── */
  .support-hero { 
    grid-template-columns: 1fr !important; 
    padding: 1.25rem; 
    gap: 1rem;
  }

  .support-hero::before,
  .support-hero::after {
    display: none;
  }

  .support-layout { 
    grid-template-columns: 1fr !important; 
    gap: 1rem;
  }

  .support-hero-rail {
    grid-template-columns: 1fr;
  }

  .support-thread-summary { 
    grid-template-columns: 1fr !important; 
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .support-contact-grid { 
    grid-template-columns: 1fr !important; 
  }

  .support-message { 
    max-width: 100%; 
    padding: 0.75rem 1rem;
  }

  .support-thread-header { 
    flex-direction: column;
    gap: 1rem;
  }

  .support-main-card {
    padding: 1rem;
  }

  .support-panel {
    padding: 1rem;
  }

  /* ─── Footer ─── */
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
    padding: 1.5rem 0;
  }

  .footer-payments {
    padding: 0;
  }

  .footer-bottom {
    padding: 1rem 0;
  }

  /* ─── Forms ─── */
  .form-control {
    height: 40px;
    padding: 0.5rem 0.75rem;
  }

  textarea.form-control {
    min-height: 80px;
    padding: 0.625rem 0.75rem;
  }

  /* ─── Cards & Sections ─── */
  .page-section { 
    padding: 1.5rem 0; 
  }

  .section { 
    padding: 1.5rem 0; 
  }

  .account-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .account-card-title {
    margin-bottom: 1rem;
  }

  /* ─── Visibility ─── */
  .hide-mobile { 
    display: none !important; 
  }
}

/* ─── Small Mobile Devices (480px and below) ──────────── */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  /* ─── Navbar ─── */
  .navbar-brand { 
    font-size: 1.1rem; 
  }

  .navbar-actions { 
    gap: 0.75rem; 
  }

  .cart-badge {
    width: 16px;
    height: 16px;
    font-size: 0.5rem;
    top: -6px;
    right: -6px;
  }

  /* ─── Typography ─── */
  .page-title { 
    font-size: 1.25rem; 
    margin-bottom: 0.75rem; 
  }

  .hero-title { 
    font-size: 1.5rem; 
  }

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

  .product-detail-title { 
    font-size: 1.25rem; 
  }

  .product-price-large { 
    font-size: 1.25rem; 
  }

  /* ─── Buttons ─── */
  .btn {
    height: 36px;
    padding: 0 1rem;
    font-size: 0.75rem;
  }

  .btn-lg {
    height: 44px;
  }

  /* ─── Product Grid ─── */
  .products-grid,
  [style*="grid-template-columns: repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(5,1fr)"] { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 0.5rem !important; 
  }

  .product-card-body h3 { 
    font-size: 0.75rem; 
  }

  .product-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
  }

  /* ─── Category Grid ─── */
  .category-grid { 
    grid-template-columns: 1fr; 
    gap: 0.5rem; 
  }

  .category-card { 
    height: 120px; 
  }

  .category-label { 
    font-size: 0.9rem; 
  }

  /* ─── Forms ─── */
  .form-label { 
    font-size: 0.8125rem; 
  }

  .form-control {
    height: 36px;
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
  }

  textarea.form-control {
    min-height: 70px;
  }

  /* ─── Cart ─── */
  .cart-item-img { 
    width: 70px; 
    height: 70px; 
  }

  .cart-item-name { 
    font-size: 0.875rem; 
  }

  .qty-btn { 
    width: 28px; 
    height: 28px; 
  }

  .qty-val { 
    width: 36px; 
  }

  /* ─── Dashboard ─── */
  .dashboard-hero-stat {
    padding: 0.75rem;
  }

  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stat {
    padding: 0.75rem;
  }

  .dashboard-stat-label {
    font-size: 0.625rem;
  }

  .dashboard-stat-value {
    font-size: 1.5rem;
  }

  .dashboard-chart-canvas,
  .dashboard-chart-canvas--tall {
    height: 180px;
  }

  /* ─── Support ─── */
  .support-title {
    max-width: 10ch;
  }

  .support-hero-stat {
    padding: 0.75rem;
  }

  .support-message {
    padding: 0.625rem 0.875rem;
  }

  /* ─── Footer ─── */
  .footer-grid { 
    gap: 1rem; 
  }

  .footer-brand { 
    font-size: 1.1rem; 
  }

  .footer-heading { 
    font-size: 0.875rem; 
  }

  .footer-links a { 
    font-size: 0.8125rem; 
  }

  /* ─── Sections ─── */
  .page-section { 
    padding: 1rem 0; 
  }

  .section { 
    padding: 1rem 0; 
  }

  /* ─── Account ─── */
  .account-card {
    padding: 0.75rem;
  }

  .account-nav-item {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }

  /* ─── Trust Badge ─── */
  .trust-badges-inline {
    grid-template-columns: 1fr;
  }

  .trust-badge-mini {
    gap: 0.5rem;
    font-size: 0.7rem;
  }

  /* ─── Mobile Search ─── */
  .hero-search-bar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-search-input,
  .hero-search-btn {
    width: 100%;
    height: 40px;
  }
}

/* ─── Extra Small Devices (Under 360px) ─────────────────── */
@media (max-width: 360px) {
  .container {
    padding: 0 0.5rem;
  }

  .navbar-brand { 
    font-size: 1rem; 
  }

  .page-title { 
    font-size: 1.125rem; 
  }

  .hero-title { 
    font-size: 1.25rem; 
  }

  .products-grid,
  [style*="grid-template-columns: repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(5,1fr)"] { 
    gap: 0.25rem !important; 
  }

  .product-card-body h3 { 
    font-size: 0.7rem; 
  }

  .product-badge {
    font-size: 0.5rem;
    padding: 1px 4px;
  }

  .footer-grid {
    gap: 0.75rem;
  }

  .btn {
    height: 32px;
    padding: 0 0.75rem;
    font-size: 0.7rem;
  }
}

/* ─── Large Screens (1024px and above) ─────────────────── */
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .products-grid { 
    grid-template-columns: repeat(5, 1fr) !important; 
  }

  .category-grid { 
    grid-template-columns: repeat(4, 1fr); 
  }
}
