/* ================================================
   GLOBAL.CSS — Fresh Cart
   All Reusable Styles | Do NOT Duplicate in custom.css
   ================================================ */

@import "auth.css";
@import "user-profile.css";

/* --- CSS Variables --- */
:root {
  --primary: #0D7C66;
  --primary-dark: #095C4B;
  --primary-light: #11A085;
  --primary-lighter: #D1FAE5;
  --primary-50: #ECFDF5;

  --accent: #F28C38;
  --accent-dark: #D97726;
  --accent-light: #FDBA74;
  --accent-50: #FFF7ED;

  --bg: #F8FAF9;
  --card: #FFFFFF;

  --text-primary: #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-light: #D1D5DB;

  --border: #E5E7EB;
  --border-light: #F3F4F6;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font: 'Poppins', sans-serif;

  --header-h: 64px;
  --topbar-h: 40px;
  --bottomnav-h: 64px;

  --transition: 300ms ease;
  --transition-fast: 200ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1320px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
button { font-family: var(--font); cursor: pointer; border: none; background: none; font-size: inherit; }
input, select, textarea { font-family: var(--font); font-size: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 600; color: var(--text-primary); }

/* --- Typography --- */
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-base { font-size: 15px; }
.text-lg { font-size: 17px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Grid System --- */
.grid { display: grid; gap: 16px; }
.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-6 { grid-template-columns: repeat(6, 1fr); }

/* --- Flex Utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.flex-1 { flex: 1; }

/* --- Spacing Utilities --- */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.p-8 { padding: 8px; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.p-32 { padding: 32px; }

/* --- Text Utilities --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: #fff; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Background Utilities --- */
.bg-primary { background-color: var(--primary); }
.bg-white { background-color: var(--card); }
.bg-light { background-color: var(--bg); }
.bg-accent { background-color: var(--accent); }
.bg-primary-50 { background-color: var(--primary-50); }
.bg-accent-50 { background-color: var(--accent-50); }

/* --- Border Radius --- */
.rounded-xs { border-radius: var(--radius-xs); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* --- Display Utilities --- */
.hidden { display: none !important; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }

/* --- Section Header --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-header__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header__title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
}
.section-header__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}
.section-header__link:hover { gap: 8px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 12px rgba(13,124,102,0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,124,102,0.4);
}
.btn--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(242,140,56,0.3);
}
.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242,140,56,0.4);
}
.btn--outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn--ghost {
  color: var(--text-secondary);
  background: transparent;
}
.btn--ghost:hover { background: var(--border-light); color: var(--text-primary); }
.btn--white {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--sm { padding: 8px 16px; font-size: 12px; border-radius: var(--radius-sm); }
.btn--lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-md); }
.btn--full { width: 100%; }
.btn--icon { padding: 10px; border-radius: var(--radius); }
.btn:active { transform: scale(0.97); }

/* --- Product Card --- */
.product-card {
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  border: 1px solid var(--border-light);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f9fafb;
}
.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card__image {
  transform: scale(1.08);
}
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: #fff;
  z-index: 2;
}
.product-card__badge--discount { background: var(--danger); }
.product-card__badge--new { background: var(--info); }
.product-card__badge--hot { background: var(--accent); }
.product-card__badge--trending { background: linear-gradient(135deg, #8B5CF6, #EC4899); }
.product-card__badge--bestseller { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.product-card__badge--limited { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.product-card__wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--transition-fast);
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
}
.product-card__wishlist:hover,
.product-card__wishlist.active {
  color: var(--danger);
  background: #fff;
  transform: scale(1.1);
}
.product-card__wishlist svg { width: 16px; height: 16px; }

/* Mobile & Touch Quick View Trigger */
.product-card__quick-view-trigger-mobile {
  position: absolute;
  top: 10px;
  right: 46px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-light, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  transition: all var(--transition, 0.25s ease);
  z-index: 3;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,0.05));
}
.product-card__quick-view-trigger-mobile:hover {
  background: #ffffff;
  color: var(--primary, #059669);
  transform: scale(1.1);
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.1));
}
.product-card__quick-view-trigger-mobile svg {
  width: 15px;
  height: 15px;
}

.product-card__quick-view {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 2;
}
.product-card:hover .product-card__quick-view {
  opacity: 1;
  transform: translateY(0);
}
.product-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-card__stars {
  font-size: 12px;
  color: var(--warning);
  letter-spacing: -1px;
}
.product-card__reviews {
  font-size: 11px;
  color: var(--text-muted);
}
.product-card__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__weight {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}
.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card__price {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}
.product-card__old-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-card__add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid var(--primary-lighter);
  transition: all var(--transition-fast);
  margin-top: 4px;
}
.product-card__add-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.product-card__add-btn svg { width: 14px; height: 14px; }

/* Quantity Selector inside card */
.product-card__qty {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 4px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--primary);
}
.product-card__qty-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: background var(--transition-fast);
}
.product-card__qty-btn:hover { background: var(--primary-dark); }
.product-card__qty-btn svg { width: 14px; height: 14px; }
.product-card__qty-value {
  width: 36px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-50);
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.header__topbar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  height: var(--topbar-h);
  font-size: 12px;
  display: flex;
  align-items: center;
}
.header__topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}
.header__location:hover {
  background: rgba(255, 255, 255, 0.15);
}
.header__location svg { width: 14px; height: 14px; }

.header__topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__topbar-link {
  color: rgba(255,255,255,0.9);
  font-weight: 400;
  transition: color var(--transition-fast);
}
.header__topbar-link:hover { color: #fff; }

.header__main {
  height: var(--header-h);
  border-bottom: 1px solid var(--border-light);
}
.header__main .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.header__logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}
.header__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.header__logo-icon svg { width: 20px; height: 20px; }

.header__search {
  flex: 1;
  max-width: 560px;
  position: relative;
}
.header__search-input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg);
  transition: all var(--transition-fast);
  outline: none;
}
.header__search-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13,124,102,0.1);
}
.header__search-input::placeholder { color: var(--text-muted); }
.header__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.header__search-icon svg { width: 18px; height: 18px; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.header__action-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-secondary);
  position: relative;
  transition: all var(--transition-fast);
}
.header__action-btn:hover {
  background: var(--primary-50);
  color: var(--primary);
}
.header__action-btn svg { width: 22px; height: 22px; }
.header__action-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.header__action-badge--cart {
  background: var(--primary, #0D7C66);
  box-shadow: 0 2px 6px rgba(13, 124, 102, 0.35);
}
.header__hamburger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.header__hamburger:hover { background: var(--primary-50); color: var(--primary); }
.header__hamburger svg { width: 24px; height: 24px; }

/* Category Nav */
.header__nav {
  border-bottom: 1px solid var(--border-light);
  background: var(--card);
}
.header__nav .container {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: 4px;
  padding-bottom: 4px;
}
.header__nav::-webkit-scrollbar { display: none; }
.header__nav-link {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.header__nav-link:hover,
.header__nav-link.active {
  color: var(--primary);
  background: var(--primary-50);
}

/* --- Mobile Menu Drawer --- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.drawer-overlay.active { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--card);
  z-index: 1200;
  transition: transform var(--transition-slow);
  overflow-y: auto;
}
.drawer--left { left: 0; transform: translateX(-100%); }
.drawer--left.active { transform: translateX(0); }
.drawer--right { right: 0; transform: translateX(100%); }
.drawer--right.active { transform: translateX(0); }

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
}
.drawer__title {
  font-size: 18px;
  font-weight: 700;
}
.drawer__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.drawer__close:hover { background: var(--border-light); color: var(--text-primary); }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__body { padding: 16px 0; }
.drawer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.drawer__link:hover { background: var(--primary-50); color: var(--primary); }
.drawer__link svg { width: 20px; height: 20px; flex-shrink: 0; }
.drawer__divider { height: 1px; background: var(--border-light); margin: 8px 20px; }

/* --- Cart Drawer --- */
.cart-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  gap: 12px;
}
.cart-drawer__empty svg { width: 64px; height: 64px; color: var(--text-light); }
.cart-drawer__empty p { color: var(--text-muted); font-size: 14px; }

.cart-drawer__item {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}
.cart-drawer__item:hover { background: var(--bg); }
.cart-drawer__item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}
.cart-drawer__item-details { flex: 1; min-width: 0; }
.cart-drawer__item-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-drawer__item-weight { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.cart-drawer__item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer__item-price { font-size: 14px; font-weight: 700; color: var(--primary); }
.cart-drawer__item-remove {
  color: var(--text-muted);
  transition: color var(--transition-fast);
  padding: 4px;
}
.cart-drawer__item-remove:hover { color: var(--danger); }
.cart-drawer__item-remove svg { width: 16px; height: 16px; }

.cart-drawer__footer {
  padding: 20px;
  border-top: 1px solid var(--border-light);
  background: var(--card);
  position: sticky;
  bottom: 0;
}
.cart-drawer__total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
}
.cart-drawer__total-row--final {
  font-size: 17px;
  font-weight: 700;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

/* --- Search Overlay (Mobile) --- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: var(--card);
  z-index: 1300;
  transform: translateY(-100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}
.search-overlay.active { transform: translateY(0); }
.search-overlay__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}
.search-overlay__input-wrap {
  flex: 1;
  position: relative;
}
.search-overlay__input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 15px;
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition-fast);
}
.search-overlay__input:focus { border-color: var(--primary); background: #fff; }
.search-overlay__input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.search-overlay__input-icon svg { width: 18px; height: 18px; }
.search-overlay__body { padding: 16px; }
.search-overlay__section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.search-overlay__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.search-overlay__tag {
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.search-overlay__tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

/* --- Bottom Navigation (Mobile) --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottomnav-h);
  background: var(--card);
  border-top: 1px solid var(--border-light);
  display: none;
  z-index: 900;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.bottom-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  padding: 0;
}
.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}
.bottom-nav__item.active,
.bottom-nav__item:hover { color: var(--primary); }
.bottom-nav__item svg { width: 22px; height: 22px; }
.bottom-nav__badge {
  position: absolute;
  top: 0;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Footer --- */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding-top: 56px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer__brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.footer__brand-icon svg { width: 18px; height: 18px; }
.footer__desc {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}
.footer__social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer__social-link svg { width: 16px; height: 16px; }
.footer__heading {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer__link:hover { color: var(--primary-light); transform: translateX(4px); }
.footer__link svg { width: 14px; height: 14px; opacity: 0; transition: opacity var(--transition-fast); }
.footer__link:hover svg { opacity: 1; }

.footer__newsletter-input-wrap {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
}
.footer__newsletter-input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast);
}
.footer__newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.footer__newsletter-input:focus { border-color: var(--primary); }
.footer__newsletter-btn {
  height: 42px;
  padding: 0 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition-fast);
}
.footer__newsletter-btn:hover { background: var(--primary-light); }

.footer__payment-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.footer__payment-icon {
  height: 28px;
  padding: 0 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* --- Forms --- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--card);
  outline: none;
  transition: all var(--transition-fast);
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,124,102,0.1);
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.anim-fade-in { animation: fadeIn var(--transition) ease both; }
.anim-fade-up { animation: fadeInUp var(--transition-slow) ease both; }
.anim-fade-down { animation: fadeInDown var(--transition-slow) ease both; }
.anim-fade-left { animation: fadeInLeft var(--transition-slow) ease both; }
.anim-fade-right { animation: fadeInRight var(--transition-slow) ease both; }
.anim-scale-in { animation: scaleIn var(--transition) ease both; }
.anim-float { animation: float 3s ease-in-out infinite; }

/* Stagger delays */
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }
.delay-6 { animation-delay: 600ms; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all var(--transition-slow);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Toast --- */
.toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.toast {
  padding: 12px 24px;
  background: var(--text-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp var(--transition) ease, fadeIn var(--transition) ease 2.5s reverse forwards;
  white-space: nowrap;
}

/* --- Responsive Breakpoints --- */

/* Laptop: 1200px */
@media (max-width: 1200px) {
  .grid-6 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .footer__grid > :last-child { grid-column: 1 / -1; }
}

/* Tablet: 992px */
@media (max-width: 992px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .text-4xl { font-size: 30px; }
  .text-3xl { font-size: 26px; }
  .section-header__title { font-size: 19px; }
  .header__search { max-width: 400px; }
}

/* Mobile: 768px */
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .container { padding: 0 16px; }
  .grid-6, .grid-5, .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }

  .header__topbar { display: none; }
  .header__hamburger { display: flex; }
  .header__search { display: none; }
  .header__action-btn.hide-mobile { display: none; }
  .header__logo { font-size: 20px; }
  .header__logo-icon { width: 32px; height: 32px; }
  .header__logo-icon svg { width: 18px; height: 18px; }

  .bottom-nav { display: block; }
  body { padding-bottom: var(--bottomnav-h); }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .text-4xl { font-size: 26px; }
  .text-3xl { font-size: 22px; }
  .text-2xl { font-size: 20px; }
  .section-header__title { font-size: 17px; }
  .section-header__title::before { height: 20px; }

  .product-card__quick-view { display: none; }
  .product-card__body { padding: 10px; gap: 4px; }
  .product-card__name { font-size: 13px; }
  .product-card__price { font-size: 15px; }
  .product-card__add-btn { padding: 6px 12px; font-size: 12px; }

  .btn--lg { padding: 12px 24px; font-size: 15px; }
}

/* Small Mobile: 576px */
@media (max-width: 576px) {
  .container { padding: 0 12px; }
  .grid-6, .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .text-4xl { font-size: 22px; }
  .text-3xl { font-size: 19px; }
  .section-header { margin-bottom: 16px; }
  .section-header__title { font-size: 15px; }
  .product-card__badge { font-size: 9px; padding: 2px 7px; top: 6px; left: 6px; }
  .product-card__wishlist { width: 28px; height: 28px; top: 6px; right: 6px; }
  .product-card__wishlist svg { width: 13px; height: 13px; }
  .product-card__quick-view-trigger-mobile { width: 28px; height: 28px; top: 6px; right: 38px; }
  .product-card__quick-view-trigger-mobile svg { width: 13px; height: 13px; }
  .product-card__body { padding: 8px; }
  .product-card__name { font-size: 12px; -webkit-line-clamp: 1; }
  .product-card__weight { font-size: 11px; }
  .product-card__price { font-size: 14px; }
  .product-card__old-price { font-size: 11px; }
  .product-card__add-btn { padding: 5px 10px; font-size: 11px; border-radius: var(--radius-sm); }
  .product-card__qty-btn { width: 28px; height: 28px; }
  .product-card__qty-value { width: 30px; height: 28px; font-size: 12px; }
}

/* Hide default Commerce text wishlist buttons across all product cards */
.product-card .form-actions input[data-drupal-selector*="wishlist"],
.product-card .form-actions input[name="op"][value*="WishList"],
.product-card .form-actions input[name="op"][value*="Wishlist"],
.commerce-order-item-add-to-cart-form input[data-drupal-selector*="wishlist"],
.commerce-order-item-add-to-cart-form input[value*="WishList"],
.commerce-order-item-add-to-cart-form input[value*="Wishlist"] {
  display: none !important;
}

/* ==========================================================================
   LOCATION SELECTION MODAL & DRAWER STYLES
   ========================================================================== */
.location-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.location-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: 92%;
  max-width: 520px;
  max-height: 88vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.location-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.location-modal__header {
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.location-modal__title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.location-modal__subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.location-modal__close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-modal__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.location-modal__body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* GPS Live Location Card */
.location-modal__gps-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-modal__gps-card:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.location-modal__gps-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0D7C66;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-modal__gps-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.location-modal__gps-info strong {
  font-size: 14px;
  font-weight: 700;
  color: #065f46;
}

.location-modal__gps-info span {
  font-size: 12px;
  color: #047857;
}

.location-modal__gps-btn {
  padding: 7px 16px;
  background: #0D7C66;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.location-modal__gps-btn:hover {
  background: #095c4b;
}

/* Search wrap */
.location-modal__search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.location-modal__search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.location-modal__search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13px;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.location-modal__search-input:focus {
  background: #ffffff;
  border-color: #0D7C66;
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.12);
}

/* Saved Addresses */
.location-modal__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.location-modal__section-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  margin: 0;
}

.location-modal__badge {
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 8px;
  border-radius: 10px;
}

.location-modal__address-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.location-address-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-address-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.location-address-card.active {
  border-color: #0D7C66;
  background: #f0fdf4;
}

.location-address-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  flex-shrink: 0;
}

.location-address-card.active .location-address-card__icon {
  background: #0D7C66;
  color: #ffffff;
}

.location-address-card__info {
  flex: 1;
  min-width: 0;
}

.location-address-card__tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.location-address-card__tag {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.location-address-card__default-badge {
  font-size: 10px;
  font-weight: 700;
  color: #0D7C66;
  background: #d1fae5;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.location-address-card__text {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
}

.location-address-card__delete {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.location-address-card__delete:hover {
  color: #ef4444;
}

/* Add Address Toggle Button */
.location-modal__toggle-add-btn {
  width: 100%;
  padding: 12px;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #0D7C66;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.location-modal__toggle-add-btn:hover {
  background: #f0fdf4;
  border-color: #0D7C66;
}

/* Address Form */
.location-modal__form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-modal__tag-group {
  display: flex;
  gap: 8px;
}

.location-tag-label {
  flex: 1;
  cursor: pointer;
}

.location-tag-label input {
  display: none;
}

.location-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s ease;
}

.location-tag-label input:checked + .location-tag {
  background: #0D7C66;
  border-color: #0D7C66;
  color: #ffffff;
}

.location-modal__grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.location-modal__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-modal__field label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.location-modal__field input {
  padding: 9px 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease;
}

.location-modal__field input:focus {
  border-color: #0D7C66;
}

.location-modal__checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.location-modal__form-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.location-modal__form-actions button {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
}

/* Spinner */
.location-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.6s linear infinite;
}

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

/* Mobile adjustments */
@media (max-width: 576px) {
  .location-modal {
    top: auto;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
  }
  .location-modal.active {
    transform: translateY(0);
  }
  .location-modal__grid-2 {
    grid-template-columns: 1fr;
  }
}

ul.pager__items.js-pager__items {
    display: flex;
    align-items: center;
    gap: 35px;
}

/* ===================================================
   QUICK VIEW MODAL & PWA BOTTOM SHEET
   =================================================== */
body.quickview-open {
  overflow: hidden !important;
  touch-action: none;
}

.quickview-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.quickview-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.quickview-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: 92%;
  max-width: 900px;
  max-height: 88vh;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0.28s ease;
}

.quickview-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.quickview-modal__drag-handle {
  display: none;
  width: 44px;
  height: 5px;
  border-radius: 4px;
  background: #cbd5e1;
  margin: 10px auto 4px auto;
  flex-shrink: 0;
}

.quickview-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.quickview-modal__close:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg) scale(1.05);
}

.quickview-modal__content {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: calc(88vh);
}

.quickview-modal__content::-webkit-scrollbar {
  width: 6px;
}
.quickview-modal__content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* GALLERY COLUMN */
.quickview-gallery {
  padding: 24px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid #f1f5f9;
}

.quickview-gallery__main-wrap {
  position: relative;
  width: 100%;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.quickview-gallery__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.quickview-gallery__wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
}

.quickview-gallery__wishlist-btn:hover,
.quickview-gallery__wishlist-btn.active {
  color: #ef4444;
  fill: #ef4444;
  transform: scale(1.1);
  background: #ffffff;
}

.quickview-gallery__img-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  touch-action: pan-y pinch-zoom;
}

.quickview-gallery__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.22s ease, transform 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.quickview-gallery__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.quickview-gallery__nav-btn:hover {
  background: var(--primary, #059669);
  color: #ffffff;
  border-color: var(--primary, #059669);
  transform: translateY(-50%) scale(1.08);
}

.quickview-gallery__nav-btn--prev { left: 10px; }
.quickview-gallery__nav-btn--next { right: 10px; }

.quickview-gallery__counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(15, 23, 42, 0.6);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

/* THUMBNAILS */
.quickview-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  overscroll-behavior-x: contain;
}

.quickview-gallery__thumbs::-webkit-scrollbar {
  height: 4px;
}
.quickview-gallery__thumbs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.quickview-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  padding: 3px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  overflow: hidden;
}

.quickview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.quickview-thumb:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.quickview-thumb.active {
  border-color: var(--primary, #059669);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25);
  transform: translateY(-2px);
}

/* INFO COLUMN */
.quickview-info {
  padding: 28px 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quickview-info__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quickview-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
}

.quickview-tag--brand {
  background: rgba(5, 150, 105, 0.1);
  color: var(--primary, #059669);
}

.quickview-tag--stock {
  background: #ecfdf5;
  color: #047857;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.quickview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.quickview-info__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  line-height: 1.35;
  margin: 0;
}

.quickview-info__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.quickview-info__stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.quickview-info__score {
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.quickview-info__reviews {
  color: var(--text-secondary, #64748b);
}

.quickview-info__price-block {
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.quickview-info__price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.quickview-info__price {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary, #059669);
}

.quickview-info__old-price {
  font-size: 16px;
  color: #94a3b8;
  text-decoration: line-through;
}

.quickview-info__savings-pill {
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  padding: 3px 8px;
  border-radius: 6px;
}

.quickview-info__tax-note {
  font-size: 12px;
  color: #64748b;
  margin: 6px 0 0 0;
}

.quickview-info__desc-wrap {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.quickview-info__desc {
  margin: 0;
}

/* VARIATION PILLS */
.quickview-info__variants {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quickview-info__variants-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quickview-info__variants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quickview-variant-pill {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quickview-variant-pill:hover {
  border-color: var(--primary, #059669);
  color: var(--primary, #059669);
}

.quickview-variant-pill.active {
  background: var(--primary, #059669);
  border-color: var(--primary, #059669);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

/* ACTIONS ROW */
.quickview-info__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.quickview-info__qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  height: 46px;
}

.quickview-qty-btn {
  width: 38px;
  height: 100%;
  background: #f8fafc;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quickview-qty-btn:hover {
  background: #e2e8f0;
}

.quickview-qty-value {
  width: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.quickview-add-cart-btn {
  flex: 1;
  height: 46px;
  background: linear-gradient(135deg, var(--primary, #059669), #047857);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  transition: all 0.22s ease;
}

.quickview-add-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.45);
}

.quickview-add-cart-btn:active {
  transform: translateY(1px);
}

.quickview-add-cart-btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.quickview-add-cart-btn.is-success {
  background: #10b981;
}

.quickview-info__footer {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.quickview-full-details-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary, #059669);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.quickview-full-details-link:hover {
  text-decoration: underline;
  gap: 9px;
}

/* ===================================================
   RESPONSIVE PWA BOTTOM-SHEET STYLES
   =================================================== */
@media (max-width: 768px) {
  .quickview-modal {
    top: auto;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }

  .quickview-modal.active {
    transform: translateY(0);
  }

  .quickview-modal__drag-handle {
    display: block;
  }

  .quickview-modal__content {
    grid-template-columns: 1fr;
    max-height: calc(88vh - 40px);
  }

  .quickview-gallery {
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
  }

  .quickview-gallery__main-wrap {
    aspect-ratio: 4 / 3;
  }

  .quickview-info {
    padding: 16px;
    gap: 12px;
  }

  .quickview-info__title {
    font-size: 18px;
  }

  .quickview-info__price {
    font-size: 22px;
  }
}

@media (max-width: 576px) {
  .quickview-gallery__main-wrap {
    aspect-ratio: 1 / 1;
  }

  .quickview-thumb {
    width: 54px;
    height: 54px;
  }

  .quickview-info__actions {
    flex-direction: row;
    gap: 8px;
  }

  .quickview-info__qty-stepper {
    height: 42px;
  }

  .quickview-add-cart-btn {
    height: 42px;
    font-size: 13px;
  }
}

/* =========================================================
   GLOBAL SEARCH & AUTOCOMPLETE DROPDOWN STYLES
   ========================================================= */

.header__search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.header__search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transition: all 0.15s ease;
  z-index: 2;
  padding: 0;
}

.header__search-clear:hover {
  background: #f1f5f9;
  color: var(--text-primary, #0f172a);
}

.header__search-clear svg {
  width: 15px;
  height: 15px;
}

.header__search-spinner {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--primary, #059669);
  border-radius: 50%;
  animation: searchSpin 0.6s linear infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes searchSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Autocomplete Dropdown */
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 440px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 35px -6px rgba(15, 23, 42, 0.15), 0 10px 15px -3px rgba(15, 23, 42, 0.08);
  z-index: 1050;
  max-height: 520px;
  overflow-y: auto;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  animation: searchDropdownFadeIn 0.18s ease-out;
}

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

.search-autocomplete-dropdown.hidden {
  display: none !important;
}

/* Keyword Highlighting */
mark.search-highlight {
  background: #fef08a !important;
  color: #854d0e !important;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 3px;
}

.search-auto__section {
  margin-bottom: 14px;
}

.search-auto__section:last-child {
  margin-bottom: 0;
}

.search-auto__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px 4px;
}

.search-auto__section-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-auto__section-title svg {
  width: 14px;
  height: 14px;
  color: var(--primary, #059669);
}

.search-auto__header-count {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.search-auto__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-auto__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.search-auto__pill:hover,
.search-auto__pill.is-active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  transform: translateY(-1px);
}

.search-trend-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.search-trend-chip:hover {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

.search-auto__badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.search-auto__badge--cat {
  background: #e0f2fe;
  color: #0284c7;
}

.search-auto__badge--sub {
  background: #fef3c7;
  color: #b45309;
}

.search-auto__badge--brand {
  background: #f3e8ff;
  color: #7e22ce;
}

/* Products in Autocomplete */
.search-auto__products {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-auto__product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.search-auto__product-item:hover,
.search-auto__product-item.is-active {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.search-auto__product-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.search-auto__product-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
}

.search-auto__product-info {
  flex: 1;
  min-width: 0;
}

.search-auto__product-brand {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  display: block;
  letter-spacing: 0.3px;
}

.search-auto__product-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 3px 0 4px 0;
}

.search-auto__product-price-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-auto__product-price {
  font-size: 13.5px;
  font-weight: 700;
  color: #059669;
}

.search-auto__product-mrp {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: line-through;
}

.search-auto__product-discount {
  font-size: 10.5px;
  font-weight: 700;
  color: #e11d48;
  background: #ffe4e6;
  padding: 1px 6px;
  border-radius: 4px;
}

.search-auto__product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-auto__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: #ecfdf5;
  color: #059669;
  border: 1.5px solid #10b981;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-auto__add-btn:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  transform: scale(1.03);
}

.search-auto__add-btn:active {
  transform: scale(0.97);
}

.search-auto__arrow {
  color: #94a3b8;
  opacity: 0.6;
  transition: transform 0.15s ease, opacity 0.15s ease;
  display: flex;
  align-items: center;
}

.search-auto__product-item:hover .search-auto__arrow,
.search-auto__product-item.is-active .search-auto__arrow {
  opacity: 1;
  transform: translateX(2px);
  color: var(--primary, #059669);
}

.search-auto__footer {
  border-top: 1px solid #e2e8f0;
  margin-top: 12px;
  padding-top: 10px;
  text-align: center;
}

.search-auto__view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #059669;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.search-auto__view-all-btn:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

/* Mobile Live Search Results */
.mobile-search-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-search-results.hidden {
  display: none !important;
}

.mobile-search-results .search-auto__product-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
}

/* ==========================================================================
   APP ENTRANCE & PAGE PRELOADER (VIDHYANT MART ECOMMERCE & PWA)
   ========================================================================== */
.app-preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  background: radial-gradient(circle at 50% 38%, rgba(13, 124, 102, 0.08) 0%, #ffffff 72%);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.38s ease;
  will-change: opacity, transform;
}

.app-preloader.preloader--fade-out {
  opacity: 0;
  transform: scale(1.035);
  pointer-events: none;
  visibility: hidden;
}

.app-preloader.preloader--hidden {
  display: none !important;
}

.app-preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  max-width: 360px;
  width: 90%;
  animation: vmPreloaderEntry 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes vmPreloaderEntry {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-preloader__logo-container {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-preloader__glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 124, 102, 0.28) 0%, rgba(13, 124, 102, 0) 70%);
  animation: vmGlowPulse 2.4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes vmGlowPulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.9;
  }
}

.app-preloader__icon-box {
  position: relative;
  width: 82px;
  height: 82px;
  background: #ffffff;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 36px -6px rgba(13, 124, 102, 0.22),
              0 3px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(13, 124, 102, 0.14);
  animation: vmFloatBag 2.5s infinite ease-in-out;
}

@keyframes vmFloatBag {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.app-preloader__svg {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 4px 8px rgba(13, 124, 102, 0.2));
}

.app-preloader__brand {
  margin-bottom: 22px;
}

.app-preloader__brand-title {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.app-preloader__brand-title span {
  color: var(--primary, #0D7C66);
  background: linear-gradient(135deg, #0D7C66 0%, #11A085 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-preloader__brand-subtitle {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #6B7280;
  letter-spacing: 0.5px;
  margin-top: 6px;
  text-transform: uppercase;
}

.app-preloader__track {
  width: 150px;
  height: 4px;
  background: rgba(13, 124, 102, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.app-preloader__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, #0D7C66 0%, #41B3A2 50%, #0D7C66 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(13, 124, 102, 0.5);
  animation: vmIndeterminate 1.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes vmIndeterminate {
  0% {
    left: -45%;
    width: 35%;
  }
  50% {
    left: 30%;
    width: 60%;
  }
  100% {
    left: 105%;
    width: 40%;
  }
}

/* --- Top Navigation Progress Bar (Native App Feel on Page Transitions) --- */
.top-nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #0D7C66, #41B3A2, #F28C38);
  box-shadow: 0 1px 6px rgba(13, 124, 102, 0.4);
  z-index: 99999999;
  pointer-events: none;
  opacity: 0;
  transition: width 0.28s ease, opacity 0.2s ease;
}

.top-nav-progress.is-active {
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .app-preloader {
    background: #0f172a;
    background: radial-gradient(circle at 50% 38%, rgba(13, 124, 102, 0.18) 0%, #0b1120 72%);
  }
  .app-preloader__icon-box {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
  }
  .app-preloader__brand-title {
    color: #f8fafc;
  }
  .app-preloader__brand-subtitle {
    color: #94a3b8;
  }
  .app-preloader__track {
    background: rgba(255, 255, 255, 0.1);
  }
}

