/* =============================================================
   M_AGROMART — Master Design System CSS
   Brand: #0b6140 (Green) | #fd972a (Orange)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Anek+Bangla:wght@400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&family=Noto+Sans+Bengali:wght@400;500;600;700;800&display=swap');

/* ---------------------------------------------------------------
   CSS Custom Properties
--------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --primary: #0b6140;
  --primary-light: #0d7a50;
  --primary-dark: #074d32;
  --primary-xlight: #e8f5ee;
  --secondary: #fd972a;
  --secondary-dark: #e8831a;
  --secondary-light: #fff3e8;
  --accent: #f5c842;

  /* Neutral */
  --white: #ffffff;
  --black: #0a0a0a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic */
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
  --info: #0284c7;

  /* Typography */
  --font-bn: 'Noto Sans Bengali', 'Hind Siliguri', 'Anek Bangla', 'Kalpurush', 'SolaimanLipi', sans-serif;
  --font-en: 'Inter', 'Noto Sans Bengali', sans-serif;
  --font-main: var(--font-bn);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .14);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, .18);
  --shadow-primary: 0 8px 24px rgba(11, 97, 64, .25);
  --shadow-secondary: 0 8px 24px rgba(253, 151, 42, .35);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(.4, 0, .2, 1);
  --transition-slow: all 0.4s cubic-bezier(.4, 0, .2, 1);

  /* Layout */
  --container-max: 1320px;
  --header-height: 70px;
  --sidebar-width: 280px;

  /* Z-index */
  --z-header: 100;
  --z-modal: 200;
  --z-tooltip: 300;
  --z-toast: 400;

  /* Surface (Light Mode) */
  --bg-body: var(--gray-50);
  --bg-card: var(--white);
  --bg-header: var(--white);
  --bg-navbar: var(--primary);
  --text-heading: var(--gray-900);
  --text-main: var(--gray-800);
  --text-muted: var(--gray-500);
  --text-light: var(--gray-400);
  --border: var(--gray-200);
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-body: #0d1117;
  --bg-card: #161b22;
  --bg-header: #161b22;
  --bg-navbar: #0d1f17;
  --text-heading: #f0f6fc;
  --text-main: #e6edf3;
  --text-muted: #8b949e;
  --text-light: #6e7681;
  --border: #30363d;
  --gray-50: #161b22;
  --gray-100: #21262d;
  --gray-200: #30363d;
  --primary-xlight: #0d2c1e;
  --secondary-light: #2a1a08;
}

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

/* Typography */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  font-family: var(--font-main);
}

html[lang="bn"] {
  --font-main: var(--font-bn);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
}

html[lang="bn"] body {
  letter-spacing: 0;
  word-spacing: 0;
  font-weight: 400;
}

html[lang="bn"] h1,
html[lang="bn"] h2,
html[lang="bn"] h3,
html[lang="bn"] h4,
html[lang="bn"] h5,
html[lang="bn"] h6 {
  letter-spacing: 0;
  line-height: 1.3;
  font-weight: 700;
}

html[lang="bn"] body,
html[lang="bn"] button,
html[lang="bn"] input,
html[lang="bn"] select,
html[lang="bn"] textarea,
html[lang="bn"] .btn,
html[lang="bn"] .form-control,
html[lang="bn"] .form-label,
html[lang="bn"] .topbar,
html[lang="bn"] .header,
html[lang="bn"] .navbar,
html[lang="bn"] .mobile-nav,
html[lang="bn"] .card,
html[lang="bn"] .breadcrumb,
html[lang="bn"] .section-title,
html[lang="bn"] .section-subtitle,
html[lang="bn"] .review-card,
html[lang="bn"] .faq-q,
html[lang="bn"] .admin-layout,
html[lang="bn"] .admin-sidebar,
html[lang="bn"] .admin-topbar,
html[lang="bn"] .admin-card,
html[lang="bn"] table,
html[lang="bn"] th,
html[lang="bn"] td {
  font-family: var(--font-bn);
}

html[lang="bn"] p,
html[lang="bn"] span,
html[lang="bn"] a,
html[lang="bn"] li,
html[lang="bn"] label,
html[lang="bn"] small,
html[lang="bn"] strong,
html[lang="bn"] em,
html[lang="bn"] blockquote,
html[lang="bn"] figcaption,
html[lang="bn"] summary,
html[lang="bn"] .topbar-link,
html[lang="bn"] .header-action-btn .label,
html[lang="bn"] .mobile-nav-link,
html[lang="bn"] .logo-tagline,
html[lang="bn"] .cart-drawer,
html[lang="bn"] .checkout-order-row__name,
html[lang="bn"] .admin-nav-link,
html[lang="bn"] .admin-nav-section,
html[lang="bn"] .admin-topbar-title,
html[lang="bn"] .nav-dropdown-item {
  font-family: var(--font-bn);
  letter-spacing: 0;
}

html[lang="bn"] input::placeholder,
html[lang="bn"] textarea::placeholder {
  font-family: var(--font-bn);
}

html[lang="bn"] .section-title,
html[lang="bn"] .hero-title,
html[lang="bn"] .product-card__name,
html[lang="bn"] .offer-title,
html[lang="bn"] .legal-hero__title,
html[lang="bn"] .legal-card__title {
  letter-spacing: 0;
}

/* Standard Icon Style (Used in Header, Footer, Account) */
.icon-wrap-premium {
  width: 40px;
  height: 40px;
  background: var(--primary-xlight);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.2rem;
  transition: var(--transition);
}

.icon-wrap-premium:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

[data-theme="dark"] .icon-wrap-premium {
  background: rgba(255, 255, 255, .05);
  color: var(--secondary);
}

[data-theme="dark"] .icon-wrap-premium:hover {
  background: var(--secondary);
  color: #fff;
}

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
  top: 0 !important;
}

html {
  margin-top: 0 !important;
}

/* Keep browser/google translation limited to text without injected bars shifting the page */
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-yAWNEb-L7lbkb,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-ORHb {
  display: none !important;
  visibility: hidden !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

ul,
ol {
  list-style: none;
}

/* ---------------------------------------------------------------
   Typography
--------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-success {
  color: var(--success);
}

.text-error {
  color: var(--error);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

/* ---------------------------------------------------------------
   Layout
--------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-sm {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-8) 0;
}

.section-compact {
  padding: var(--space-8) 0;
}

/* Auth Layout Utilities */
.auth-section {
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, var(--primary-xlight), var(--secondary-light));
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
}

.auth-card-header {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  padding: var(--space-8);
  text-align: center;
  color: white;
}

.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

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

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

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

/* Product layout — 2 columns, 5 rows (10 products) */
.product-grid-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

/* New Arrivals — 5 items side by side, 2 rows (10 products) */
.product-grid-5col {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-6);
}

.product-grid-3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.infinite-products-grid .infinite-product-card {
  opacity: 0;
  transform: translateY(28px);
  animation: infiniteProductReveal 0.6s ease forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes infiniteProductReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Category grid — 6 per row for 12 categories */
.category-grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-4);
}

/* Product Slider */
.product-slider {
  position: relative;
  overflow: visible;
  /* Allow card shadows to breathe */
  margin: 0 -10px;
  padding: 10px;
}

.product-slider-track {
  display: flex;
  gap: var(--space-6);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.product-slider-item {
  flex: 0 0 calc(20% - (var(--space-6) * 4 / 5));
  /* 5 items per row */
  min-width: 0;
}

/* Slider Navigation Buttons */
.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.slider-btn:active {
  transform: translateY(0);
}

/* Responsive Slider */
@media (max-width: 1199px) {
  .product-slider-item {
    flex: 0 0 calc(25% - (var(--space-6) * 3 / 4));
  }

  /* 4 items */
}

@media (max-width: 991px) {
  .product-slider-item {
    flex: 0 0 calc(33.333% - (var(--space-6) * 2 / 3));
  }

  /* 3 items */
}

@media (max-width: 767px) {
  .product-slider-item {
    flex: 0 0 calc(50% - (var(--space-6) * 1 / 2));
  }

  /* 2 items */
  .slider-nav {
    display: none !important;
  }

  /* Hide arrows on mobile, use swipe */
  .product-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .product-slider-track {
    transition: none;
  }

  .product-slider-item {
    scroll-snap-align: start;
  }
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  box-shadow: var(--shadow-secondary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(253, 151, 42, .45);
  color: var(--white);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-green {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(11, 97, 64, .4);
  color: var(--white);
}

.btn-ghost {
  color: var(--text-main);
  background: var(--gray-100);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--gray-200);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  padding: 0.6rem;
  border-radius: var(--radius-sm);
}

.btn-danger {
  background: var(--error);
  color: var(--white);
}

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

.btn-loading {
  pointer-events: none;
  opacity: 0.75;
}

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

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: var(--space-6);
}

.card-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
}

/* ---------------------------------------------------------------
   Product Card
--------------------------------------------------------------- */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--gray-100);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.08);
}

.product-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-sale {
  background: var(--secondary);
  color: var(--white);
}

.badge-new {
  background: var(--primary);
  color: var(--white);
}

.badge-organic {
  background: #86efac;
  color: #14532d;
}

.badge-hot {
  background: #ef4444;
  color: var(--white);
}

.badge-out {
  background: var(--gray-400);
  color: var(--white);
}

.product-card__actions {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 2;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}

.product-card:hover .product-card__actions {
  opacity: 1;
  transform: translateX(0);
}

.product-card__action-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-card__action-btn:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  transform: scale(1.1);
}

.product-card__action-btn.active {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.product-card__body {
  padding: var(--space-4);
}

.product-card__category {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.product-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: var(--space-2);
}

.product-card__name a {
  color: inherit;
}

.product-card__name a:hover {
  color: var(--primary);
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.stars {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.star.empty {
  color: var(--gray-300);
}

.rating-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-card__price {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
}

.price-original {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-discount {
  font-size: 0.75rem;
  background: #fef2f2;
  color: #dc2626;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.product-card__footer {
  padding: 0 var(--space-4) var(--space-4);
}

.product-card__footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

/* ---------------------------------------------------------------
   Top Notification Bar (Marquee)
--------------------------------------------------------------- */
.top-notif-bar {
  background: var(--primary);
  /* সবুজ কালার */
  color: #fff;
  overflow: hidden;
  height: 30px;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  position: relative;
}

.top-notif-bar__track {
  display: flex;
  white-space: nowrap;
  animation: notifScroll 30s linear infinite;
}

.top-notif-bar__track span {
  color: #fff;
  padding-right: 40px;
}

.top-notif-bar__track span strong {
  color: #fffde7;
}

.top-notif-bar:hover .top-notif-bar__track {
  animation-play-state: paused;
  /* মাউস নিলে স্ক্রলিং থামবে */
}

.top-notif-close {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 12px;
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: -10px 0 15px var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-notif-close:hover {
  color: var(--secondary);
}

@keyframes notifScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .top-notif-bar {
    height: 26px;
    font-size: 0.7rem;
  }

  .top-notif-close {
    padding: 0 8px;
    font-size: 1rem;
  }
}

html[lang="bn"] .top-notif-bar {
  font-family: var(--font-bn);
}

/* ---------------------------------------------------------------
   Header / Topbar
--------------------------------------------------------------- */
.topbar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .85);
  font-size: 0.8125rem;
  padding: 7px 0;
}

.topbar a {
  color: rgba(255, 255, 255, .85);
}

.topbar a:hover {
  color: var(--secondary);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topbar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
}

.topbar-link:hover {
  color: var(--secondary);
}

.topbar-link-icon {
  width: 1.15rem;
  color: #ffd089;
  font-size: 0.86rem;
  text-align: center;
  flex-shrink: 0;
}

.topbar-currency {
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topbar-currency.active {
  background: #ffd089;
  color: #0b3527;
}

[data-theme="dark"] .topbar-link {
  color: rgba(255, 255, 255, .86);
}

[data-theme="dark"] .topbar-link-icon {
  color: #ffbf66;
}

[data-theme="dark"] .topbar-currency.active {
  background: #ffbf66;
  color: #0f241b;
}

/* Main Header */
.header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 8px 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-tagline {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Search */
.search-bar {
  flex: 1;
  max-width: 620px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar form {
  display: flex;
  width: 100%;
  border-radius: 50px;
  border: 1.5px solid var(--primary);
  overflow: hidden;
  height: 44px;
}

/* Smoother, compact search input */
.search-input {
  flex: 1;
  height: 100%;
  padding: 0 16px;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  color: var(--text-main);
  outline: none;
  font-family: var(--font-main);
}

.search-input:focus {
  outline: none;
}

.search-input::placeholder {
  color: #9facba;
  font-weight: 500;
}

.search-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.search-btn i {
  font-size: 1.1rem !important;
}

.search-btn:hover {
  opacity: 0.9;
}

/* Language switcher spacing: default small gap, in dark mode increase spacing */
.lang-switcher {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  height: 30px;
  overflow: hidden;
  align-items: stretch;
}

.header-actions .lang-switcher {
  margin-right: 12px;
}

.lang-btn {
  padding: 0 12px;
  font-weight: 700;
  font-size: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn.active {
  background: var(--primary);
  color: var(--white);
}

.lang-btn:hover:not(.active) {
  color: var(--primary);
  background: var(--gray-100);
}

/* Make cart badge smaller & lighter */
.cart-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  font-size: 0.75rem;
  line-height: 18px;
  border-radius: 999px;
}

/* Ensure styles apply in dark mode similarly */
html[data-theme="dark"] #cartBtn:hover {
  background: transparent;
}

html[data-theme="dark"] .search-btn {
  box-shadow: none;
}


.home-features-sec {
  padding: 18px 0;
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.home-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--bg-card) 50%, var(--bg-body) 50%);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.home-feature-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.home-feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(11, 97, 64, .12);
  background: var(--bg-card);
  border-color: var(--primary);
}

.home-feature-item:hover::before {
  transform: scaleX(1);
}

[data-theme="dark"] .home-feature-item {
  background: rgba(255, 255, 255, .01);
}

[data-theme="dark"] .home-feature-item:hover {
  background: rgba(255, 255, 255, .02);
}

.home-feature-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-xlight);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: all .3s ease;
  border: 1px solid transparent;
}

.home-feature-item:hover .home-feature-icon {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.home-feature-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.3;
}

.home-feature-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Mobile smart layout for home features */
@media (max-width: 900px) {
  .home-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .home-features-sec {
    padding: 16px 0;
    /* মোবাইলের হোভার ইফেক্টের জন্য স্পেস */
  }

  .home-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .home-feature-item {
    flex-direction: column;
    text-align: center;
    padding: 12px 8px;
    gap: 8px;
    border-radius: 12px;
  }

  .home-feature-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    margin: 0 auto;
    border-radius: 8px;
  }

  .home-feature-title {
    font-size: 0.78rem;
    margin-bottom: 1px;
  }

  .home-feature-subtitle {
    font-size: 0.65rem;
  }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 16px;
  font-size: 0.75rem;
  color: var(--text-main);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  border: 1px solid transparent;
}

.header-action-btn:hover {
  color: var(--primary);
}

.header-action-btn:hover .icon {
  background: transparent;
  color: var(--secondary);
  transform: none;
  box-shadow: none;
}

.header-action-btn .icon {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-size: 1rem;
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  /* ট্রানজিশন আগে থেকেই আছে, তাই এটি মসৃণ হবে */
  transition: var(--transition);
}

.header-action-btn .label {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .header-action-btn .icon {
  background: transparent;
  color: #fff;
  box-shadow: none;
}

[data-theme="dark"] .header-action-btn:hover {
  border-color: transparent;
  box-shadow: none;
}

[data-theme="dark"] .header-action-btn:hover .icon {
  background: transparent;
  color: var(--secondary);
  box-shadow: none;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Navigation */
.navbar {
  background: var(--primary);
  position: relative;
}

.nav-inner {
  display: flex;
  align-items: stretch;
}

.nav-list {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  color: rgba(255, 255, 255, .9);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
  background: rgba(255, 255, 255, .08);
}

.nav-link .arrow {
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

/* Mega Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  padding: var(--space-2) 0;
  animation: fadeInDown 0.2s ease;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--primary-xlight);
  color: var(--primary);
  padding-left: 24px;
}

/* ---------------------------------------------------------------
   Hero Section
--------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0d8a56 100%);
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-16) 0;
  position: relative;
  z-index: 1;
}

.hero-content {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: var(--space-5);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--space-5);
  color: var(--white);
}

.hero-title span {
  color: var(--secondary);
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, .8);
  margin-bottom: var(--space-8);
  max-width: 500px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, .7);
  margin-top: 4px;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 4s ease-in-out infinite;
}

.hero-image-circle {
  width: 420px;
  height: 420px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(253, 151, 42, .3);
  position: relative;
}

.hero-image-circle img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .3));
}

/* Hero floating badges */
.hero-float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 3s ease-in-out infinite alternate;
}

.hero-float-badge.badge-delivery {
  bottom: 30px;
  left: -20px;
  animation-delay: 0.5s;
}

.hero-float-badge.badge-rating {
  top: 30px;
  right: -20px;
  animation-delay: 1s;
}

/* ---------------------------------------------------------------
   Section Headings
--------------------------------------------------------------- */
.section-head {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section-compact .section-head {
  margin-bottom: var(--space-6);
}

.section-subtitle {
  display: inline-block;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
  position: relative;
  padding: 0 var(--space-4);
}

.section-subtitle::before,
.section-subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: var(--secondary);
}

.section-subtitle::before {
  right: 100%;
}

.section-subtitle::after {
  left: 100%;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: var(--space-3);
}

.section-compact .section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.section-compact .section-subtitle {
  font-size: 0.75rem;
  margin-bottom: var(--space-2);
}

.section-title span {
  color: var(--primary);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-legal {
  background:
    radial-gradient(circle at top left, rgba(11, 97, 64, 0.12), transparent 24rem),
    radial-gradient(circle at top right, rgba(253, 151, 42, 0.12), transparent 22rem),
    linear-gradient(180deg, #f7fbf8 0%, var(--bg-body) 22%, var(--bg-body) 100%);
}

.legal-shell {
  padding: var(--space-8) 0 var(--space-16);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(7, 77, 50, 0.96), rgba(11, 97, 64, 0.93));
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-xl);
}

.legal-hero::before,
.legal-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.legal-hero::before {
  width: 18rem;
  height: 18rem;
  right: -4rem;
  top: -5rem;
  background: rgba(255, 255, 255, 0.08);
}

.legal-hero::after {
  width: 12rem;
  height: 12rem;
  left: -2rem;
  bottom: -3rem;
  background: rgba(253, 151, 42, 0.16);
}

.legal-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-5);
}

.legal-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.875rem;
  font-weight: 700;
}

.legal-hero__title {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.2;
  font-weight: 800;
  margin: 0;
}

.legal-hero__title span {
  color: #ffd38b;
}

.legal-hero__lead {
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
}

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.legal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

.legal-grid {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.legal-sidebar,
.legal-content {
  display: grid;
  gap: var(--space-5);
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid rgba(11, 97, 64, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.legal-card__body {
  padding: clamp(1.2rem, 2vw, 1.6rem);
}

.legal-card__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.9rem;
}

.legal-card__title i {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary-xlight);
  color: var(--primary);
}

.legal-card__body p,
.legal-card__body li {
  color: var(--text-main);
  line-height: 1.9;
}

.legal-card__body p+p,
.legal-card__body ul,
.legal-card__body ol {
  margin-top: 0.85rem;
}

.legal-card__body ul,
.legal-card__body ol {
  padding-left: 1.25rem;
}

.legal-nav {
  display: grid;
  gap: 0.65rem;
}

.legal-nav a {
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 0.95rem;
  transition: var(--transition);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96));
  font-weight: 600;
}

.legal-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 97, 64, 0.25);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.legal-note {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(253, 151, 42, 0.12), rgba(11, 97, 64, 0.08));
  border: 1px solid rgba(253, 151, 42, 0.18);
  color: var(--text-main);
}

.legal-note strong {
  color: var(--primary-dark);
}

[data-theme="dark"] .page-legal {
  background:
    radial-gradient(circle at top left, rgba(11, 97, 64, 0.18), transparent 22rem),
    radial-gradient(circle at top right, rgba(253, 151, 42, 0.12), transparent 21rem),
    linear-gradient(180deg, #0d1117 0%, var(--bg-body) 22%, var(--bg-body) 100%);
}

[data-theme="dark"] .legal-card {
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .legal-nav a {
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.94), rgba(13, 17, 23, 0.96));
}

/* ---------------------------------------------------------------
   Category Section
--------------------------------------------------------------- */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.9rem 0.6rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
  display: block;
  height: 100%;
}

.category-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(11, 97, 64, .12);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  border-radius: 14px;
  transition: all .3s ease;
  background: var(--primary-xlight);
  border: 1px solid transparent;
}

.category-card:hover .category-icon {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.category-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
  border: 3px solid var(--primary-xlight);
  transition: var(--transition);
}

.category-card:hover .category-image {
  border-color: var(--primary);
}

.category-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 1px;
}

.category-count {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Category Carousel */
.cat-carousel-container {
  position: relative;
  padding: 0 40px;
}

.cat-carousel-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding: 10px 4px;
  margin: -10px -4px;
}

.cat-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.cat-carousel-track {
  display: flex;
  gap: 16px;
}

.cat-carousel-item {
  flex: 0 0 calc(16.666% - 13.33px);
  scroll-snap-align: start;
}

.cat-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.cat-nav-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.cat-prev {
  left: -10px;
}

.cat-next {
  right: -10px;
}

@media (max-width: 1024px) {
  .cat-carousel-item {
    flex: 0 0 calc(20% - 12.8px);
  }
}

@media (max-width: 768px) {
  .cat-carousel-container {
    padding: 0;
  }

  .cat-nav-btn {
    display: none;
  }

  .cat-carousel-track {
    gap: 12px;
  }

  .cat-carousel-item {
    flex: 0 0 calc(33.333% - 8px);
  }
}

@media (max-width: 480px) {
  .cat-carousel-track {
    gap: 10px;
  }

  .cat-carousel-item {
    flex: 0 0 calc(33.333% - 6.66px);
  }

  .category-card {
    padding: 0.6rem 0.4rem;
  }

  .category-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .category-name {
    font-size: 0.72rem;
  }
}

/* ---------------------------------------------------------------
   Features / Why Us
--------------------------------------------------------------- */
.feature-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--primary-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto var(--space-4);
  transition: var(--transition);
}

.feature-card:hover .feature-icon-wrap {
  background: var(--primary);
  transform: scale(1.1) rotate(5deg);
}

.feature-icon-wrap:hover {
  color: var(--white);
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------------------------------------------------------------
   Offer Banner
--------------------------------------------------------------- */
.offer-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0a5235 50%, var(--primary-dark) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-10);
  color: var(--white);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.offer-banner::before {
  content: '🌿';
  position: absolute;
  font-size: 10rem;
  opacity: 0.06;
  right: -2rem;
  top: -1rem;
}

.offer-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  padding: 4px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  animation: pulse 2s infinite;
}

.offer-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  margin-bottom: var(--space-3);
}

.offer-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, .8);
  margin-bottom: var(--space-6);
}

.offer-title {
  color: #ffffff;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.24);
  letter-spacing: -0.02em;
}

.offer-desc {
  color: rgba(255, 255, 255, .92);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.offer-badge {
  box-shadow: 0 10px 24px rgba(253, 151, 42, .28);
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.countdown-item {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  text-align: center;
  min-width: 70px;
}

.countdown-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, .7);
  margin-top: 4px;
}

/* ---------------------------------------------------------------
   Testimonials
--------------------------------------------------------------- */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary);
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.testimonial-location {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.home-testimonials {
  background:
    radial-gradient(circle at top center, rgba(52, 211, 153, 0.16), transparent 20rem),
    linear-gradient(135deg, var(--primary) 0%, #065f46 100%);
  color: #fff;
  overflow: hidden;
}

.home-testimonials__subtitle {
  color: rgba(255, 255, 255, 0.76) !important;
}

.home-testimonials__title {
  color: #fff !important;
}

.home-testimonials__title span {
  color: #6ee7b7 !important;
}

.home-testimonials__carousel {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
}

.home-testimonials__viewport {
  overflow: hidden;
  padding: 0.5rem 0;
}

.home-testimonials__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.home-testimonials__slide {
  flex: 0 0 100%;
  padding: 0 0.75rem;
  box-sizing: border-box;
}

.home-testimonial-card {
  min-height: 26rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .08));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.home-testimonial-card__visual {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.home-testimonial-card__avatar-wrap {
  width: 13rem;
  height: 13rem;
  border-radius: 1.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

.home-testimonial-card__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-testimonial-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.16);
  color: #d1fae5;
  font-size: 0.85rem;
  font-weight: 700;
}

.home-testimonial-card__content {
  display: grid;
  gap: 1rem;
}

.home-testimonial-card__stars {
  color: #fbbf24;
  font-size: 1.15rem;
}

.home-testimonial-card__text {
  font-size: clamp(1rem, 2.4vw, 1.32rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, .96);
  font-style: italic;
  font-weight: 600;
}

.home-testimonial-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
}

.home-testimonial-card__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.home-testimonial-card__role {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, .75);
}

.home-testimonial-card__product {
  flex-shrink: 0;
}

.home-testimonial-card__product-image {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .14);
}

.home-testimonials__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 10;
  backdrop-filter: blur(5px);
}

.home-testimonials__nav:hover {
  background: rgba(110, 231, 183, 0.2);
  border-color: rgba(110, 231, 183, 0.45);
}

.home-testimonials__nav--prev {
  left: -1.25rem;
}

.home-testimonials__nav--next {
  right: -1.25rem;
}

.home-testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.home-testimonials__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.home-testimonials__dot.is-active {
  width: 1.8rem;
  background: #34d399;
}

/* ---------------------------------------------------------------
   Newsletter
--------------------------------------------------------------- */
.newsletter {
  background: linear-gradient(135deg, var(--secondary-light), #fff9f0);
  border: 1px solid rgba(253, 151, 42, .2);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
}

[data-theme="dark"] .newsletter {
  background: linear-gradient(135deg, #2a1a08, #1a1208);
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 13px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  background: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-main);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--secondary);
}

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, .75);
  padding-top: var(--space-16);
}

[data-theme="dark"] .footer {
  background: #0a0f0d;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand {}

.footer-logo {
  filter: brightness(10);
  margin-bottom: var(--space-4);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-5);
  position: relative;
  padding-bottom: var(--space-3);
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  color: rgba(255, 255, 255, .65);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--secondary);
  padding-left: 6px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 0.9rem;
}

.footer-contact-icon {
  background: rgba(255, 255, 255, .05);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--secondary);
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .08);
}

[data-theme="light"] .footer-contact-icon {
  background: #f1f5f9;
  color: var(--primary);
  border-color: #e2e8f0;
}

.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

.trust-badge {
  background: rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .85);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  font-weight: 600;
}

.trust-badge i {
  color: var(--secondary);
  font-size: .9rem;
}

[data-theme="light"] .trust-badge {
  background: #f8fafc;
  color: #1e293b;
  border-color: #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

[data-theme="light"] .trust-badge i {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, .1);
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 20px rgba(11, 97, 64, .3);
}

[data-theme="light"] .social-btn {
  background: rgba(11, 97, 64, .05);
  color: var(--primary);
  border-color: rgba(11, 97, 64, .1);
}

[data-theme="light"] .social-btn:hover {
  background: var(--primary);
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  font-size: 0.8625rem;
  color: rgba(255, 255, 255, .45);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-icon {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  display: flex;
  align-items: center;
  height: auto;
}

.icon-bkash {
  background: #e2136e;
  color: #fff;
}

.icon-nagad {
  background: #f7941d;
  color: #fff;
}

.icon-cod {
  background: #334155;
  color: #fff;
}

.icon-visa {
  background: #1a1f71;
  color: #fff;
}

.icon-mastercard {
  background: #eb001b;
  color: #fff;
}

.footer-link i {
  margin-right: 8px;
  font-size: .8rem;
  opacity: .8;
}

/* ---------------------------------------------------------------
   Breadcrumb
--------------------------------------------------------------- */
.breadcrumb {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.breadcrumb-item {
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--primary);
}

.breadcrumb-item a:hover {
  color: var(--secondary);
}

.breadcrumb-sep {
  color: var(--text-light);
  font-size: 0.75rem;
}

/* ---------------------------------------------------------------
   Forms
--------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--error);
  margin-left: 3px;
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  background: var(--bg-card);
  color: var(--text-main);
  transition: var(--transition);
  font-family: var(--font-main);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 97, 64, .1);
}

.form-control.error {
  border-color: var(--error);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--error);
  margin-top: var(--space-1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border-right: none;
}

.input-group-btn {
  padding: 0 var(--space-4);
  background: var(--primary);
  color: var(--white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.input-group-btn:hover {
  background: var(--primary-light);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.form-check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-check-label {
  cursor: pointer;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------
   Tables
--------------------------------------------------------------- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  background: var(--gray-50);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

[data-theme="dark"] .table th {
  background: var(--gray-100);
}

.table tbody tr:hover {
  background: var(--primary-xlight);
}

/* ---------------------------------------------------------------
   Tabs
--------------------------------------------------------------- */
.tabs {
  border-bottom: 2px solid var(--border);
  display: flex;
  gap: 0;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  cursor: pointer;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel {
  display: none;
  padding-top: var(--space-6);
}

.tab-panel.active {
  display: block;
}

/* ---------------------------------------------------------------
   Modal
--------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s;
  box-shadow: var(--shadow-xl);
}

/* Search Autocomplete */
.search-autocomplete::-webkit-scrollbar {
  width: 6px;
}

.search-autocomplete::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.search-autocomplete::-webkit-scrollbar-track {
  background: transparent;
}

/* WhatsApp & Cookie Float */
#whatsappFloat {
  display: none !important;
}

#whatsappFloat:hover {
  transform: scale(1.1) rotate(-10deg) !important;
}

#cookieConsent {
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Recently Viewed Strip */
.recently-viewed-strip {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.recently-viewed-strip::-webkit-scrollbar {
  height: 6px;
}

.recently-viewed-strip::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.recently-viewed-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

.modal-overlay.show .modal-box {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: #fecaca;
  color: var(--error);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

.quick-checkout-modal {
  max-width: 520px;
  border-radius: 18px;
  margin-inline: auto;
}

.quick-checkout__header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.quick-checkout__title {
  font-size: 1.08rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
}

.quick-checkout__close {
  font-size: 2rem;
  line-height: 1;
  color: var(--text-main);
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.quick-checkout__body {
  padding: 16px 18px 18px;
}

.quick-checkout__items {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  max-height: 232px;
  overflow: auto;
}

.quick-checkout__item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.quick-checkout__item-remove {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--error);
  font-size: .95rem;
  font-weight: 700;
}

.quick-checkout__item-image {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid var(--border);
}

.quick-checkout__item-name {
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  font-size: .96rem;
}

.quick-checkout__item-content {
  min-width: 0;
}

.quick-checkout__item-meta {
  margin-top: 4px;
  font-size: .78rem;
  color: var(--text-muted);
}

.quick-checkout__item-total {
  font-weight: 800;
  white-space: nowrap;
  font-size: .95rem;
}

.quick-checkout__item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quick-checkout__qty {
  display: inline-grid;
  grid-template-columns: 22px 26px 22px;
  align-items: center;
  height: 24px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: color-mix(in srgb, white 88%, var(--gray-100) 12%);
}

.quick-checkout__qty button {
  color: var(--text-main);
  height: 100%;
  font-size: .86rem;
  font-weight: 800;
}

.quick-checkout__qty input {
  width: 100%;
  height: 100%;
  border: 0;
  text-align: center;
  font-weight: 700;
  font-size: .82rem;
  color: var(--text-main);
  background: transparent;
}

.quick-checkout__summary {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.quick-checkout__summary div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.quick-checkout__summary-total {
  border-top: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 800;
}

.quick-checkout__form {
  display: grid;
  gap: 10px;
}

.quick-checkout__field {
  display: grid;
  gap: 7px;
  font-weight: 700;
  color: var(--text-main);
}

.quick-checkout__field input,
.quick-checkout__field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-main);
  padding: 11px 13px;
}

.quick-checkout__field textarea {
  min-height: 64px;
  resize: vertical;
}

.quick-checkout__shipping-title {
  font-weight: 800;
  margin-bottom: 8px;
}

.quick-checkout__shipping-option {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 6px;
}

.quick-checkout__payment-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-checkout__payment {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, white 88%, var(--gray-100) 12%);
  color: var(--text-main);
  font-size: .8rem;
  font-weight: 700;
}

.quick-checkout__payment.is-active {
  background: var(--primary-xlight);
  border-color: rgba(11, 97, 64, .25);
  color: var(--primary);
}

.quick-checkout__submit {
  background: var(--primary);
  border-color: var(--primary);
  min-height: 42px;
  font-weight: 800;
  font-size: .92rem;
}

.quick-checkout__full-link {
  text-align: center;
  font-size: .8rem;
  color: var(--primary);
}

@media (max-width: 767px) {
  .quick-checkout__item {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
  }

  .quick-checkout__item-total {
    order: 3;
    margin-top: 4px;
  }

  .quick-checkout__item-actions {
    order: 4;
    margin-top: 6px;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .quick-checkout-modal {
    max-width: min(94vw, 560px);
    border-radius: 16px;
  }

  .quick-checkout__body,
  .quick-checkout__header {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ---------------------------------------------------------------
   Toast Notifications
--------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 16px);
  right: 16px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 280px;
  max-width: 380px;
  animation: slideInRight 0.3s ease;
  border-left: 4px solid var(--primary);
}

[data-theme="dark"] .toast {
  background: var(--bg-card);
}

.toast-success {
  border-left-color: var(--success);
}

.toast-error {
  border-left-color: var(--error);
}

.toast-warning {
  border-left-color: var(--warning);
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-text {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.toast-close {
  cursor: pointer;
  color: var(--text-muted);
}

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 30, 20, .28);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 180;
}

.cart-drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100%);
  height: 100vh;
  background: linear-gradient(180deg, var(--bg-card) 0%, color-mix(in srgb, var(--bg-card) 88%, var(--primary-xlight) 12%) 100%);
  border-left: 1px solid rgba(11, 97, 64, .14);
  box-shadow: -18px 0 50px rgba(11, 97, 64, .14);
  transform: translateX(100%);
  transition: transform .32s ease;
  z-index: 190;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer__header,
.cart-drawer__footer {
  padding: 18px;
  border-bottom: 1px solid rgba(11, 97, 64, .08);
}

.cart-drawer__footer {
  border-bottom: 0;
  border-top: 1px solid rgba(11, 97, 64, .08);
  margin-top: auto;
}

.cart-drawer__eyebrow {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 4px;
}

.cart-drawer__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(11, 97, 64, .12);
  background: rgba(255, 255, 255, .88);
  margin-left: auto;
  color: var(--text-main);
}

.cart-drawer__header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cart-drawer__body {
  padding: 14px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-drawer__item {
  display: grid;
  grid-template-columns: 24px 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-card) 94%, white 6%);
  border: 1px solid rgba(11, 97, 64, .08);
}

.cart-drawer__remove {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--error);
  font-size: .88rem;
  background: transparent;
}

.cart-drawer__item-image {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--white);
}

.cart-drawer__item-name {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

.cart-drawer__item-meta {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.cart-drawer__item-total {
  font-size: .85rem;
  font-weight: 800;
  color: var(--primary);
}

.cart-drawer__progress {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary-xlight) 60%, var(--bg-card) 40%);
  border: 1px solid rgba(11, 97, 64, .12);
}

.cart-drawer__progress-copy {
  font-size: .8rem;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 8px;
}

.cart-drawer__progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .2);
  overflow: hidden;
}

.cart-drawer__progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: inherit;
  transition: width .35s ease;
}

.cart-drawer__summary {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.cart-drawer__summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .9rem;
}

.cart-drawer__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cart-drawer__empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-muted);
}

.cart-drawer__empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  background: rgba(11, 97, 64, .1);
  color: var(--primary);
  font-weight: 800;
}

[data-theme="dark"] .cart-drawer {
  background: linear-gradient(180deg, #161b22 0%, #10161d 100%);
  border-left-color: rgba(255, 255, 255, .08);
}

[data-theme="dark"] .cart-drawer__item {
  background: rgba(22, 27, 34, .96);
  border-color: rgba(255, 255, 255, .06);
}

[data-theme="dark"] .cart-drawer__close {
  background: rgba(255, 255, 255, .04);
}

[data-theme="dark"] .cart-drawer__progress {
  background: rgba(13, 44, 30, .82);
  border-color: rgba(255, 255, 255, .06);
}

/* ---------------------------------------------------------------
   Filter Sidebar
--------------------------------------------------------------- */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-8);
  align-items: start;
}

/* Adjust top padding for shop page to match home page */
.breadcrumb+.section,
.breadcrumb+.section-sm,
.section:has(.shop-layout) {
  padding-top: var(--space-4) !important;
}

.filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.filter-header {
  background: var(--primary);
  color: var(--white);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-section {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}

.filter-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-3);
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-list-scroll {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 5px;
  gap: 4px;
  /* More compact spacing */
}

.filter-list-scroll .filter-item {
  margin-bottom: 2px;
  font-size: 0.9rem;
  /* Slightly smaller text for compact look */
}

/* Scrollbar styling for filter list */
.filter-list-scroll::-webkit-scrollbar {
  width: 4px;
}

.filter-list-scroll::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

.filter-list-scroll::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

.filter-list-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

[data-theme="dark"] .filter-list-scroll::-webkit-scrollbar-track {
  background: var(--gray-200);
}

[data-theme="dark"] .filter-list-scroll::-webkit-scrollbar-thumb {
  background: var(--gray-600);
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.filter-item:hover {
  color: var(--primary);
}

.filter-count {
  font-size: 0.75rem;
  background: var(--gray-100);
  color: var(--text-muted);
  padding: 1px 8px;
  border-radius: var(--radius-full);
}

/* Price Range */
.range-input {
  width: 100%;
  accent-color: var(--primary);
}

.range-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* ---------------------------------------------------------------
   Cart Page
--------------------------------------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-8);
  align-items: start;
}

.cart-empty {
  text-align: center;
  padding: var(--space-20) 0;
}

.cart-empty-icon {
  font-size: 5rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.cart-table th:last-child,
.cart-table td:last-child {
  text-align: right;
}

.cart-item-image {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.qty-control {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-btn {
  padding: 6px 12px;
  background: var(--gray-100);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  display: flex;
  align-items: center;
}

.qty-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.qty-input {
  width: 48px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--bg-card);
  color: var(--text-main);
  padding: 0;
}

/* Order Summary */
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.summary-title {
  background: var(--primary);
  color: var(--white);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1rem;
}

.summary-list {
  padding: var(--space-5);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  font-size: 0.9375rem;
}

.summary-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 2px solid var(--border);
  padding-top: var(--space-3);
  margin-top: var(--space-2);
  display: flex;
  justify-content: space-between;
}

.coupon-section {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
}

/* ---------------------------------------------------------------
   Checkout
--------------------------------------------------------------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-8);
  align-items: start;
}

.checkout-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  overflow: hidden;
}

.checkout-step-header {
  background: var(--primary-xlight);
  padding: 14px 20px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.step-num {
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.checkout-step-body {
  padding: var(--space-6);
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ---------------------------------------------------------------
   Product Detail
--------------------------------------------------------------- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.gallery-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--border);
  aspect-ratio: 1;
  background: var(--gray-100);
  position: relative;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {}

.product-title {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.product-sku {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.product-price-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--secondary-light);
  border-radius: var(--radius-md);
}

.product-current-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--secondary);
}

.product-original-price {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-badge-discount {
  background: var(--error);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.product-stock {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: 0.9rem;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.stock-in {
  background: var(--success);
}

.stock-low {
  background: var(--warning);
}

.stock-out {
  background: var(--error);
}

.product-add-to-cart {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-6);
}

.product-specs {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

[data-theme="dark"] .product-specs {
  background: var(--gray-100);
}

.spec-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-key {
  width: 140px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.spec-val {
  flex: 1;
  color: var(--text-main);
}

/* ---------------------------------------------------------------
   Review Section
--------------------------------------------------------------- */
.review-summary {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-6);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  border: 1px solid var(--border);
}

[data-theme="dark"] .review-summary {
  background: var(--gray-100);
}

.review-big-rating {
  text-align: center;
}

.review-big-num {
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.review-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8125rem;
}

.review-bar-track {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.review-author-name {
  font-weight: 700;
}

.review-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.review-title {
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.review-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-main);
}

.verified-badge {
  font-size: 0.75rem;
  background: #dcfce7;
  color: #166534;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

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

.admin-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 20;
  transition: transform 0.3s;
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .2);
  border-radius: 2px;
}

.admin-logo {
  padding: var(--space-6) var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.admin-logo img {
  height: 40px;
}

.admin-nav {
  padding: var(--space-4) 0;
}

.admin-nav-section {
  padding: var(--space-2) var(--space-5);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-4);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 11px var(--space-5);
  color: rgba(255, 255, 255, .75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  border-left-color: var(--secondary);
}

.admin-nav-link .nav-icon {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.admin-nav-badge {
  margin-left: auto;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.admin-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-body);
}

.admin-topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 14px var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-topbar-title {
  font-size: 1.1875rem;
  font-weight: 700;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.admin-content {
  padding: var(--space-8);
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.stat-card.green::before {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.stat-card.orange::before {
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.stat-card.blue::before {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.stat-card.red::before {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.stat-icon.green {
  background: #dcfce7;
}

.stat-icon.orange {
  background: #ffedd5;
}

.stat-icon.blue {
  background: #dbeafe;
}

.stat-icon.red {
  background: #fee2e2;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 0.8625rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-change {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.stat-change.up {
  background: #dcfce7;
  color: #166534;
}

.stat-change.down {
  background: #fee2e2;
  color: #991b1b;
}

/* Chart */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* ---------------------------------------------------------------
   Utilities
--------------------------------------------------------------- */
.hidden {
  display: none !important;
}

.show {
  display: block !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.mt-0 {
  margin-top: 0;
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.p-4 {
  padding: var(--space-4);
}

.p-6 {
  padding: var(--space-6);
}

.p-8 {
  padding: var(--space-8);
}

.rounded {
  border-radius: var(--radius-md);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.bg-card {
  background: var(--bg-card);
}

.bg-primary-light {
  background: var(--primary-xlight);
}

.border {
  border: 1px solid var(--border);
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.overflow-hidden {
  overflow: hidden;
}

.position-relative {
  position: relative;
}

/* ---------------------------------------------------------------
   Flash Messages
--------------------------------------------------------------- */
.flash-message {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-weight: 500;
  font-size: 0.9375rem;
}

.flash-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.flash-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.flash-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.flash-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* ---------------------------------------------------------------
   Loading Skeleton
--------------------------------------------------------------- */
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------
   Dark Mode Toggle
--------------------------------------------------------------- */
.theme-toggle {
  width: 48px;
  height: 26px;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.theme-toggle.dark {
  background: var(--primary);
}

.theme-toggle::before {
  content: '☀️';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--white);
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.theme-toggle.dark::before {
  content: '🌙';
  transform: translateX(22px);
}


/* ---------------------------------------------------------------
   Mobile Navigation
--------------------------------------------------------------- */
.mobile-menu-btn {
  display: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-main);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 150;
}

.mobile-nav {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 320px;
  height: 100dvh;
  background: var(--bg-card);
  z-index: 160;
  overflow-y: auto;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateX(-100%);
  left: 0;
  box-shadow: var(--shadow-xl);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-overlay.show {
  display: block;
}

.mobile-nav-header {
  background: var(--primary);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
}

.mobile-nav-logo {
  height: 36px;
  filter: brightness(10);
}

.mobile-nav-close {
  font-size: 1.4rem;
  color: var(--white);
  cursor: pointer;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.05rem;
}

.mobile-nav-link i,
.mobile-nav-link span {
  font-size: 1.3rem;
}

.mobile-nav-link:hover {
  background: var(--primary-xlight);
  color: var(--primary);
}

/* Sticky Mobile Bottom Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 8px 0;
  z-index: 90;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, .1);
}

.mobile-bottom-items {
  display: flex;
  justify-content: space-around;
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 12px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-bottom-item .icon {
  font-size: 1.4rem;
}

.mobile-bottom-item:hover,
.mobile-bottom-item.active {
  color: var(--primary);
}

/* Floating Chat Widget */
.floating-chat-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 199;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.floating-chat-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom right;
}

.floating-chat-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-menu-item {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
  position: relative;
}

.chat-menu-item:hover {
  transform: scale(1.1);
  color: #fff;
}

/* Custom Hover Tooltip */
.chat-menu-item::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  transform-origin: right center;
  background: transparent;
  color: var(--text-main);
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  pointer-events: none;
  text-shadow: 0 1px 3px var(--bg-card), 0 0 2px var(--bg-card);
}

.chat-menu-item::before {
  display: none;
}

.chat-menu-item:hover::after,
.chat-menu-item:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.chat-whatsapp {
  background: #25D366;
}

.chat-messenger {
  background: #0084FF;
}

.chat-call {
  background: var(--primary);
}

.chat-phone {
  background: var(--secondary);
}

@keyframes chatBgPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(11, 97, 64, 0.4);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(11, 97, 64, 0.6);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(11, 97, 64, 0.4);
  }
}

@keyframes chatIconJump {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-5px);
  }

  60% {
    transform: translateY(-2px);
  }
}

.floating-chat-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  /* লোগোর সবুজ কালার */
  color: #fff;
  /* সাদা আইকন */
  border: none;
  box-shadow: 0 6px 20px rgba(11, 97, 64, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
  position: relative;
  animation: chatBgPulse 2.5s infinite ease-in-out;
}

.floating-chat-btn:hover {
  background: var(--primary-light);
  animation: none;
}

.chat-icon-main {
  transition: transform 0.3s, opacity 0.3s;
  animation: chatIconJump 2.5s infinite ease-in-out;
}

.chat-icon-close {
  position: absolute;
  opacity: 0;
  font-size: 1.8rem;
  transform: rotate(-90deg) scale(0.5);
  transition: transform 0.3s, opacity 0.3s;
}

.floating-chat-btn.active .chat-icon-main {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
  animation: none;
}

.floating-chat-btn.active .chat-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.floating-chat-btn.active {
  animation: none;
}

[data-theme="dark"] #backToTop {
  color: #fff !important;
}

/* ---------------------------------------------------------------
   Animations
--------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(253, 151, 42, 0);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(253, 151, 42, .15);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease;
}

.animate-fade-in-down {
  animation: fadeInDown 0.3s ease;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 1199px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 1023px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image-wrap {
    justify-content: center;
  }

  .hero-image-circle {
    width: 300px;
    height: 300px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
    display: none;
  }

  .filter-sidebar.mobile-open {
    display: block;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 60px;
  }

  .topbar {
    display: none;
  }

  .search-bar {
    display: none;
  }

  .search-bar.mobile-search {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-bottom-bar {
    display: flex;
  }

  .floating-chat-container {
    bottom: 80px;
    /* Above the mobile bottom bar */
    right: 20px;
  }

  .floating-chat-btn {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  .chat-menu-item {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  #backToTop {
    display: none !important;
  }

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

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

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

  .section {
    padding: var(--space-10) 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  body {
    padding-bottom: 70px;
  }

  .hero-image-circle {
    width: 240px;
    height: 240px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .cart-drawer {
    width: 100%;
  }

  .cart-drawer__actions {
    grid-template-columns: 1fr;
  }

  .tabs {
    overflow-x: auto;
  }

  .tab-btn {
    white-space: nowrap;
  }

  .admin-content {
    padding: var(--space-4);
  }

  .admin-topbar {
    padding: 12px var(--space-4);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-add-to-cart {
    flex-direction: column;
    align-items: stretch;
  }

  .countdown {
    gap: var(--space-2);
  }

  .countdown-num {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .hero-float-badge {
    display: none;
  }

  .cart-drawer__header,
  .cart-drawer__body,
  .cart-drawer__footer {
    padding-inline: 14px;
  }
}

/* ---------------------------------------------------------------
   Print
--------------------------------------------------------------- */
@media print {

  .header,
  .footer,
  .admin-sidebar,
  .admin-topbar,
  .no-print {
    display: none !important;
  }

  .admin-main {
    margin-left: 0;
  }

  body {
    background: white;
    color: black;
  }
}

/* =================================================================
   SHOP PAGE LAYOUT
================================================================= */
.shop-layout {
  display: grid;
  grid-template-columns: 236px 1fr;
  gap: 12px;
  align-items: start;
}

.filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
  max-height: none;
  overflow: visible;
}

.filter-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.8rem;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 2;
  border-radius: 17px 17px 0 0;
}

.filter-sidebar form {
  display: flex;
  flex-direction: column;
}

.filter-sidebar .filter-section:nth-of-type(1) {
  order: 1;
}

.filter-sidebar .filter-section:nth-of-type(3) {
  order: 2;
}

.filter-sidebar .filter-section:nth-of-type(2) {
  order: 3;
}

.filter-sidebar .filter-section:nth-of-type(4) {
  order: 4;
}

.filter-section {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-section-search {
  padding-top: 10px;
}

.filter-section-search .filter-section-title {
  display: none;
}

.filter-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.filter-list-scroll {
  gap: 2px;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 6px;
  padding: 5px 0;
  transition: var(--transition);
}


.filter-item .form-check-input {
  margin: 0;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border: 1.5px solid #c7d0db;
  background: #fff;
  border-radius: 50%;
  position: relative;
  transition: all 0.18s ease;
}

.filter-list-scroll .form-check-input {
  position: static;
  opacity: 1;
  pointer-events: auto;
}

.filter-item input[type="checkbox"].form-check-input {
  border-radius: 5px;
}

.filter-item .form-check-input:hover {
  border-color: var(--primary);
}

.filter-item .form-check-input:checked {
  border-color: var(--primary);
  background: var(--primary);
}

.filter-item .form-check-input:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-item:has(.form-check-input:checked) .form-check-label,
.filter-item:has(.form-check-input:checked) .filter-item-icon {
  color: var(--primary);
}

.filter-item-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.filter-item-icon {
  width: 14px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.78rem;
}

.filter-item .form-check-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.18;
  color: var(--text-main);
  gap: 5px;
}

.filter-item .form-check-label i {
  width: 20px !important;
  height: 20px;
  margin-right: 0;
  text-align: center;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary) !important;
  background: rgba(11, 97, 64, 0.08);
  border-radius: 5px;
  flex-shrink: 0;
}

.filter-item:has(.form-check-input:checked) .form-check-label i {
  background: rgba(11, 97, 64, 0.14);
  color: var(--primary);
}

.filter-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(11, 97, 64, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  font-weight: 700;
}

.filter-selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 97, 64, .08), rgba(11, 97, 64, .03));
  border: 1px solid rgba(11, 97, 64, .08);
}

.filter-selection-summary__text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-selection-summary__badge {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.filter-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.filter-search-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-body);
  color: var(--text-main);
  font-size: 0.95rem;
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-search-btn {
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.filter-list-scroll--categories {
  max-height: 248px;
  overflow-y: auto;
  padding-right: 2px;
}

.filter-list-scroll--categories::-webkit-scrollbar {
  width: 4px;
}

.filter-list-scroll--categories::-webkit-scrollbar-thumb {
  background: rgba(11, 97, 64, .22);
  border-radius: 999px;
}

.range-input {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.range-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.shop-products-grid {
  gap: 8px;
  padding-inline: 0;
}

.shop-products-panel {
  min-width: 0;
}

.shop-page-nav {
  margin-top: 28px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .82));
  border: 1px solid rgba(11, 97, 64, .08);
  box-shadow: 0 18px 40px rgba(10, 43, 29, .08);
  backdrop-filter: blur(14px);
}

.shop-page-nav__link {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11, 97, 64, .14);
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(10, 43, 29, .08);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, background-color .2s ease;
  font-size: 0.9rem;
}

.shop-page-nav__link--prev {
  order: 1;
}

.shop-page-nav__link--next {
  order: 3;
}

.shop-page-nav__center {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.shop-page-nav__pages {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-page-nav__page,
.shop-page-nav__dots {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.shop-page-nav__page {
  border: 1px solid rgba(11, 97, 64, .12);
  background: #fff;
  color: var(--text-main);
  box-shadow: 0 10px 22px rgba(10, 43, 29, .06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, color .22s ease, background-color .22s ease;
}

.shop-page-nav__page:hover {
  color: var(--primary);
  border-color: rgba(11, 97, 64, .28);
  background: var(--primary-xlight);
  transform: translateY(-2px);
}

.shop-page-nav__page--active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 14px 28px rgba(11, 97, 64, .24);
}

.shop-page-nav__dots {
  min-width: auto;
  padding: 0 2px;
  color: var(--text-light);
}

.shop-page-nav__link:hover {
  color: var(--primary);
  background: var(--primary-xlight);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(11, 97, 64, .12);
}

.shop-page-nav__link--disabled {
  background: var(--gray-200);
  color: var(--text-light);
  border-color: transparent;
  box-shadow: none;
  pointer-events: none;
}

.shop-page-nav__meta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 97, 64, .06);
}

@media (max-width: 767px) {
  .shop-page-nav {
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
  }

  .shop-page-nav__link {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .shop-page-nav__pages {
    gap: 5px;
  }

  .shop-page-nav__page,
  .shop-page-nav__dots {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 0.8rem;
    border-radius: 9px;
  }
}

body.shop-page-leaving .shop-layout,
body.shop-page-leaving .shop-page-nav,
body.shop-page-leaving #shop-sentinel {
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .18s ease, transform .18s ease;
}

/* Auto-fill grid */
.grid-auto-fill {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.product-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-4);
}

.product-grid-5>* {
  min-width: 0;
}

.section-toggle-btn {
  min-width: 112px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid rgba(11, 97, 64, .14);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(10px);
}

/* =================================================================
   PRODUCT CARD (complete)
================================================================= */
.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(11, 97, 64, .12);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100%;
  box-shadow: 0 16px 40px rgba(11, 97, 64, .08);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(11, 97, 64, .16);
  border-color: var(--primary);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(11, 97, 64, .14), transparent 42%),
    radial-gradient(circle at bottom right, rgba(253, 151, 42, .18), transparent 38%),
    linear-gradient(180deg, #f7fcf9 0%, #eef8f2 100%);
  padding: 0;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  border-radius: 0;
  background: transparent;
}

.product-card:hover .product-card__image {
  transform: scale(1.08);
}

/* Badges */
.product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .06);
}

.badge-sale {
  background: var(--error);
  color: #fff;
}

.badge-organic {
  background: #dcfce7;
  color: #166534;
}

.badge-hot {
  background: var(--secondary);
  color: #fff;
}

.badge-out {
  background: var(--gray-400);
  color: #fff;
}

.badge-new {
  background: var(--primary);
  color: #fff;
}

/* Action Buttons */
.product-card__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 1;
  transform: none;
  transition: all 0.3s ease;
  z-index: 2;
}

.product-card__action-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(11, 97, 64, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-card__action-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.product-card__action-btn:hover,
.product-card__action-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* Body */
.product-card__body {
  padding: 12px 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.product-card__category {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0;
  min-height: 0;
}

.product-card__name {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
  margin-top: 4px;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.product-card__name a {
  color: var(--text-main);
}

.product-card__name a:hover {
  color: var(--primary);
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 0;
  margin-bottom: 0;
  min-height: 9px;
  font-size: 0.65rem;
}

.product-card__rating .stars {
  font-size: 0.75rem;
  letter-spacing: 0;
}

.rating-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Price */
.product-card__price {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 0;
  min-height: 0;
}

.price-current {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--secondary);
}

.price-original {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--text-light);
}

.price-discount {
  font-size: 0.8rem;
  background: #fee2e2;
  color: var(--error);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Footer */
.product-card__footer {
  padding: 0 12px 10px;
}

.product-card__footer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr);
  gap: 4px;
}

.product-card__footer .btn {
  border-radius: 10px;
  min-height: 34px;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 0.6rem;
  white-space: nowrap;
}

.product-card__buy-now {
  position: relative;
  animation: productBuyNowPulse 1.45s ease-in-out infinite;
  transform-origin: center;
}

.product-card__buy-now:hover {
  animation-play-state: paused;
}

.product-card__buy-now::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(11, 97, 64, .28);
  opacity: 0;
  animation: productBuyNowRing 1.45s ease-out infinite;
}

@keyframes productBuyNowPulse {

  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: var(--shadow-primary);
  }

  50% {
    transform: translateY(-1px) scale(1.055);
    box-shadow: 0 16px 30px rgba(11, 97, 64, .30);
  }
}

@keyframes productBuyNowRing {
  0% {
    opacity: .35;
    transform: scale(.96);
  }

  70% {
    opacity: 0;
    transform: scale(1.08);
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.section-bestseller {
  background:
    radial-gradient(circle at top left, rgba(255, 248, 232, .95), rgba(252, 244, 225, .88) 38%, transparent 64%),
    linear-gradient(180deg, #fffaf0 0%, #f8f1df 100%);
}

[data-theme="dark"] .section-bestseller {
  background:
    radial-gradient(circle at top left, rgba(253, 151, 42, .12), rgba(253, 151, 42, .04) 34%, transparent 62%),
    linear-gradient(180deg, #111a16 0%, #18241f 100%);
}

[data-theme="dark"] .section-bestseller .section-subtitle {
  color: #ffd089;
  background: rgba(253, 151, 42, .12);
}

[data-theme="dark"] .section-bestseller .section-title {
  color: #f7fbf8;
}

[data-theme="dark"] .section-bestseller .section-title span {
  color: #ffb554;
}

/* =================================================================
   PRODUCT DETAIL PAGE
================================================================= */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
  margin-bottom: var(--space-8);
}

/* Gallery */
.product-gallery {}

.gallery-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gray-50);
  border: 1px solid var(--border);
  aspect-ratio: 1;
  cursor: zoom-in;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.gallery-thumbs {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-info {}

.product-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.product-sku {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Price */
.product-price-wrap {
  display: flex;
  align-items: flex-end;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--primary-xlight);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  border: 1px solid rgba(11, 97, 64, .1);
}

.product-current-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--secondary);
}

.product-original-price {
  font-size: 1rem;
  text-decoration: line-through;
  color: var(--text-light);
}

.product-badge-discount {
  background: #fee2e2;
  color: var(--error);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
}

/* Stock */
.product-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  margin-bottom: var(--space-5);
}

.stock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stock-in {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .2);
}

.stock-low {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .2);
}

.stock-out {
  background: var(--error);
}

/* Add to Cart Row */
.product-add-to-cart {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  align-items: center;
}

/* Specifications */
.product-specs {
  margin-bottom: var(--space-5);
}

.spec-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.spec-key {
  color: var(--text-muted);
  width: 40%;
  flex-shrink: 0;
}

.spec-val {
  color: var(--text-main);
  font-weight: 600;
}

/* Reviews */
.review-summary {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6);
}

.review-big-rating {
  text-align: center;
}

.review-big-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.review-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-bar-track {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background: var(--secondary);
  border-radius: 4px;
  transition: width 1s;
}

.review-card {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  background: var(--bg-card);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.review-author-name {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-top: 4px;
}

.review-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.review-title {
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.verified-badge {
  font-size: 0.72rem;
  background: #dcfce7;
  color: #166534;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Stars */
.stars {
  display: inline-flex;
  gap: 2px;
}

.star {
  font-size: 1rem;
}

.star.full {
  color: var(--accent);
}

.star.half {
  color: var(--accent);
  opacity: 0.6;
}

.star.empty {
  color: var(--gray-300);
}

/* =================================================================
   CART PAGE
================================================================= */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-8);
  align-items: start;
}

.cart-item-image {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.cart-empty {
  text-align: center;
  padding: var(--space-20) 0;
}

.cart-empty-icon {
  font-size: 5rem;
  margin-bottom: var(--space-5);
  display: block;
}

/* Quantity Controls */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-main);
  font-weight: 700;
}

.qty-btn:hover {
  background: var(--primary-xlight);
  color: var(--primary);
}

.qty-input {
  width: 52px;
  text-align: center;
  border: none;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  background: transparent;
  outline: none;
  font-family: var(--font-main);
  padding: 0;
}

/* Order Summary */
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.summary-title {
  padding: var(--space-5);
  font-size: 1.0625rem;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}

.summary-list {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--primary);
  padding-top: var(--space-4);
  border-top: 2px solid var(--primary);
  margin-top: var(--space-2);
}

.coupon-section {
  padding: 0 var(--space-5) var(--space-4);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}

/* =================================================================
   CHECKOUT PAGE
================================================================= */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-8);
  align-items: start;
}

.checkout-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-5);
  overflow: hidden;
}

.checkout-step-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  font-size: 1.0625rem;
  font-weight: 800;
  background: var(--primary-xlight);
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.checkout-step-body {
  padding: var(--space-6);
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card);
}

.payment-method:hover {
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.payment-method.is-selected {
  border-color: var(--primary);
  background: var(--primary-xlight);
  box-shadow: 0 10px 25px rgba(11, 97, 64, 0.08);
}

.payment-method input[type=radio] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
}

.payment-method-icon {
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.payment-method.is-selected .payment-method-icon {
  background: var(--primary);
  color: white;
}

.payment-method-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.payment-method-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* =================================================================
   ACCOUNT DASHBOARD
================================================================= */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-8);
  align-items: start;
}

.account-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.account-main {}

/* =================================================================
   ADMIN PANEL COMPLETE STYLES
================================================================= */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0a3d27 0%, #062418 100%);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s;
}

.admin-logo {
  padding: var(--space-6) var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.admin-nav {
  flex: 1;
  padding: var(--space-3);
  overflow-y: auto;
}

.admin-nav-section {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, .3);
  padding: var(--space-4) var(--space-3) var(--space-2);
  margin-top: var(--space-2);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-4);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, .7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
  position: relative;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
}

.admin-nav-link.active {
  background: rgba(11, 97, 64, .6);
  color: var(--secondary);
}

.nav-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.admin-nav-badge {
  margin-left: auto;
  background: var(--secondary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-body);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--space-6);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: var(--space-4);
}

.admin-topbar-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.admin-content {
  padding: var(--space-8);
  flex: 1;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card.green {
  border-top: 4px solid var(--primary);
}

.stat-card.orange {
  border-top: 4px solid var(--secondary);
}

.stat-card.blue {
  border-top: 4px solid #3b82f6;
}

.stat-card.red {
  border-top: 4px solid var(--error);
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.green {
  background: var(--primary-xlight);
}

.stat-icon.orange {
  background: var(--secondary-light);
}

.stat-icon.blue {
  background: #eff6ff;
}

.stat-icon.red {
  background: #fef2f2;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-main);
  margin-top: var(--space-3);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.stat-change {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.stat-change.up {
  background: #dcfce7;
  color: #166534;
}

.stat-change.down {
  background: #fee2e2;
  color: #991b1b;
}

/* Chart Container */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

/* Flash Messages */
.flash-message {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.flash-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.flash-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.flash-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fef08a;
}

.flash-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* =================================================================
   DASHBOARD — COMPACT 6AMMART STYLE
================================================================= */

/* Section Header */
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.dash-section-header h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dash-section-icon {
  font-size: 1.1rem;
}

.dash-section-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Business Analytics Grid */
.biz-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.biz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: var(--transition);
}

.biz-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.biz-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.biz-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.biz-card-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
}

/* Order Status Grid */
.order-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.order-status-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: var(--transition);
}

.order-status-pill:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.order-status-pill-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.order-status-pill-label {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.order-status-pill-count {
  font-size: 1.1rem;
  font-weight: 800;
  min-width: 28px;
  text-align: right;
}

/* Admin Wallet Grid */
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.wallet-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.wallet-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.wallet-card-main {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-color: var(--primary);
  color: white;
}

.wallet-card-main .wallet-card-label {
  color: rgba(255, 255, 255, .7);
}

.wallet-card-main .wallet-card-amount {
  color: white;
}

.wallet-card-emoji {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

.wallet-card-amount {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.2;
}

.wallet-card-amount-sm {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.2;
}

.wallet-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.wallet-card-icon-right {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: 1.3rem;
  opacity: 0.5;
}

/* Dash Card */
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.dash-card:hover {
  box-shadow: var(--shadow-md);
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}

.dash-card-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}

.dash-card-body {
  padding: var(--space-5);
}

/* Chart Filter Tabs */
.chart-filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 3px;
}

.chart-tab {
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.chart-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 6px rgba(11, 97, 64, .3);
}

.chart-tab:hover:not(.active) {
  color: var(--text-main);
}

/* Chart Legend */
.chart-legend {
  display: flex;
  gap: var(--space-5);
  justify-content: flex-end;
  margin-bottom: var(--space-4);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

/* 3 Column Layout */
.dash-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

/* Top Customer Grid */
.top-customer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.top-customer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.top-customer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border: 2px solid var(--border);
}

.top-customer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-customer-avatar span {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.top-customer-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.top-customer-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--primary);
  color: white;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

/* Dash List */
.dash-list {}

.dash-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.dash-list-item:last-child {
  border-bottom: none;
}

.dash-list-item:hover {
  background: var(--gray-50);
}

.dash-list-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-xlight);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.dash-list-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dash-list-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-list-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.dash-list-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.dash-list-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sold-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--error);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Rated Products Grid */
.rated-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.rated-product-item {
  text-align: center;
  padding: var(--space-2);
}

.rated-product-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0 auto var(--space-2);
  background: var(--gray-100);
}

.rated-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rated-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.rated-product-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rated-product-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rated-product-rating .stars {
  font-size: 0.7rem;
}

.rated-product-count {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* District Delivery List */
.delivery-district-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.district-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.district-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.district-info {
  flex: 1;
}

.district-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.district-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.district-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--primary);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Dashboard dark mode tweaks */
[data-theme="dark"] .wallet-card-main {
  background: linear-gradient(135deg, #0d3326, #0b6140);
}

[data-theme="dark"] .dash-section-meta {
  background: var(--gray-100);
}

[data-theme="dark"] .chart-filter-tabs {
  background: var(--gray-200);
}

[data-theme="dark"] .chart-tab.active {
  background: var(--primary);
}

/* =================================================================
   MOBILE & RESPONSIVE — ADDITIONS
================================================================= */
@media (max-width: 1200px) {
  .product-grid-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .product-grid-5col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-grid-3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 1023px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

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

  .checkout-layout {
    grid-template-columns: 1fr;
  }

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

  .account-sidebar {
    position: static;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .product-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid-5col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid-3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Dashboard responsive */
  .biz-analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wallet-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dash-3col {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 767px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

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

  .review-summary {
    grid-template-columns: 1fr;
  }

  .product-add-to-cart {
    flex-wrap: wrap;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .cart-item-image {
    width: 52px;
    height: 52px;
  }

  .product-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-grid-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-grid-5col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-grid-3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  /* Dashboard responsive */
  .biz-analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wallet-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-content {
    padding: var(--space-4);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: none;
  }

  .product-price-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid-3col {
    grid-template-columns: 1fr;
  }

  .product-grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Dashboard responsive */
  .biz-analytics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wallet-grid {
    grid-template-columns: 1fr;
  }

  .order-status-grid {
    grid-template-columns: 1fr 1fr;
  }

  .top-customer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rated-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chart-filter-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .home-testimonial-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-testimonial-card__meta {
    flex-direction: column;
  }

  .home-testimonials__nav--prev {
    left: 0.25rem;
  }

  .home-testimonials__nav--next {
    right: 0.25rem;
  }
}

@media (max-width: 640px) {
  .home-testimonial-card {
    min-height: auto;
    padding: 1.2rem;
    border-radius: 1.5rem;
  }

  .home-testimonial-card__avatar-wrap {
    width: 9rem;
    height: 9rem;
    border-radius: 1.25rem;
  }

  .home-testimonials__nav {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 991px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

/* Category Sidebar Scroll */
.filter-list-scroll {
  max-height: 280px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-list-scroll::-webkit-scrollbar {
  display: none;
}