/* ==========================================================================
   Apple Gadgets BD - Complete Storefront Stylesheet
   Modern, Ultra-Fast, Responsive, and Pixel-Perfect Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('auth-modal.css');

:root {
  --ag-primary: #F17E23;
  --ag-primary-hover: #e06d15;
  --ag-primary-light: #fff5ed;
  --ag-secondary: #000000;
  --ag-dark: #0f1117;
  --ag-dark-surface: #1a1c23;
  --ag-dark-border: #2e323e;
  --ag-text-dark: #111827;
  --ag-text-muted: #6b7280;
  --ag-text-light: #9ca3af;
  --ag-bg-body: #f8fafc;
  --ag-bg-card: #ffffff;
  --ag-border: #e2e8f0;
  --ag-border-light: #f1f5f9;
  --ag-accent-red: #ef4444;
  --ag-accent-green: #10b981;
  --ag-accent-blue: #3b82f6;
  --ag-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --ag-shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --ag-shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1);
  --ag-shadow-glow: 0 0 20px rgba(241, 126, 35, 0.35);
  --ag-radius: 12px;
  --ag-radius-lg: 18px;
  --ag-radius-full: 9999px;
  --ag-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ag-drawer-bg: #ffffff;
}

/* Permanently Enforced Light Theme System Tokens */
[data-theme="dark"], body.dark-theme, [data-theme="light"], body {
  --ag-dark: #0f1117;
  --ag-dark-surface: #1a1c23;
  --ag-dark-border: #2e323e;
  --ag-text-dark: #111827;
  --ag-text-muted: #6b7280;
  --ag-text-light: #9ca3af;
  --ag-bg-body: #f8fafc;
  --ag-bg-card: #ffffff;
  --ag-border: #e2e8f0;
  --ag-border-light: #f1f5f9;
  --ag-drawer-bg: #ffffff;
  --ag-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --ag-shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --ag-shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1);
}

[data-theme="dark"] body, body.dark-theme {
  background-color: var(--ag-bg-body) !important;
  color: var(--ag-text-dark) !important;
}

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

@view-transition {
  navigation: auto;
}

html {
  height: auto !important;
  min-height: 100% !important;
  background-color: var(--ag-bg-body);
  overflow-x: clip !important;
  overflow-y: auto !important;
}

body {
  min-height: 100vh !important;
  height: auto !important;
  max-width: 100% !important;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--ag-bg-body);
  color: var(--ag-text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip !important;
  overflow-y: visible !important;
}

main,
.main-content,
.tracking-page-wrap,
.account-page-wrap,
.checkout-page-container {
  flex: 1 0 auto;
}

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

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

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

.container {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   ANNOUNCEMENT BAR (Signature Running / Sliding Marquee Ribbon)
   ========================================================================== */
/* Announcement bar removed per store owner design update */
.announcement-bar {
  display: none !important;
}

.announcement-marquee-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.announcement-badge-fixed {
  flex-shrink: 0;
  z-index: 10;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-right: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 4px 0 14px rgba(0, 0, 0, 0.45);
}

.announcement-marquee-track {
  flex: 1 1 0px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  white-space: nowrap;
  padding-left: 12px;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
  animation: marqueeContinuous 28s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.announcement-text-item {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #f3f4f6;
  letter-spacing: 0.2px;
}

.announcement-divider {
  color: #f97316;
  font-weight: 800;
  opacity: 0.8;
  font-size: 14px;
}

@keyframes marqueeContinuous {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* ==========================================================================
   MAIN HEADER (Black background, Apple Gadgets signature)
   ========================================================================== */
.site-header {
  background: #000000;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.header-main {
  padding: 16px 0;
  border-bottom: 1px solid #1f2937;
  position: relative;
  z-index: 25;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-logo .logo-icon {
  width: 48px;
  height: 48px;
  background: #541e25;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(84, 30, 37, 0.45);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo:hover .logo-icon {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(84, 30, 37, 0.6);
}

.brand-logo .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.brand-logo .logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-logo .logo-title {
  color: #ffffff;
  line-height: 1.1;
  font-size: 22px;
}

.brand-logo .logo-title span {
  color: var(--ag-primary);
}

.brand-logo .logo-sub {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Central Search Bar */
.search-container {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: #1e1e24;
  border: 1px solid #333644;
  border-radius: var(--ag-radius-full);
  padding: 4px 6px 4px 18px;
  transition: var(--ag-transition);
}

.search-box:focus-within {
  border-color: var(--ag-primary);
  box-shadow: 0 0 0 3px rgba(241, 126, 35, 0.25);
  background: #252834;
}

.search-box i.search-icon {
  color: #9ca3af;
  font-size: 15px;
  margin-right: 10px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.search-box input::placeholder {
  color: #838899;
}

.search-submit-btn {
  background: var(--ag-primary);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--ag-transition);
}

.search-submit-btn:hover {
  background: var(--ag-primary-hover);
  transform: scale(1.05);
}

/* Header Quick Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link-item {
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--ag-transition);
  padding: 6px 10px;
  border-radius: 8px;
}

.nav-link-item:hover {
  color: var(--ag-primary);
}

.nav-link-item.offers-link {
  background: linear-gradient(135deg, rgba(241, 126, 35, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%);
  color: #ffaa48;
  border: 1px solid rgba(241, 126, 35, 0.3);
}

.nav-link-item.offers-link:hover {
  background: rgba(241, 126, 35, 0.25);
  color: #ffffff;
}

/* Header Action Icons (Cart, Account, Admin Panel) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #333644;
  background: #14151a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--ag-transition);
}

.action-btn:hover {
  border-color: var(--ag-primary);
  color: var(--ag-primary);
  transform: translateY(-2px);
}

.action-btn .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--ag-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000000;
}

.admin-pill-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--ag-radius-full);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--ag-transition);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.admin-pill-btn:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

/* ==========================================================================
   MEGA MENU NAVIGATION BAR (White background, Apple Gadgets clean bar)
   ========================================================================== */
.category-navbar {
  background: #ffffff;
  border-top: 2px solid #ea580c;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  z-index: 10;
  padding: 2px 0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

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

.mega-menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  width: 100%;
  justify-content: space-between;
}

.mega-menu-item {
  position: relative;
}

.mega-menu-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  transition: var(--ag-transition);
  cursor: pointer;
}

.mega-menu-trigger i.chevron {
  font-size: 10px;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.mega-menu-item:hover .mega-menu-trigger {
  color: var(--ag-primary);
}

.mega-menu-item:hover .mega-menu-trigger i.chevron {
  transform: rotate(180deg);
  color: var(--ag-primary);
}

/* Dropdown Menu */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 0 0 var(--ag-radius) var(--ag-radius);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--ag-border);
  border-top: 2px solid var(--ag-primary);
  min-width: 250px;
  max-width: calc(100vw - 24px);
  padding: 12px 0;
  display: none;
  z-index: 99;
  animation: fadeInDown 0.2s ease forwards;
}

.mega-dropdown.wide-dropdown {
  min-width: min(480px, calc(100vw - 24px));
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 12px;
  padding: 16px;
}

@media (min-width: 901px) {
  .mega-menu-item:nth-last-child(-n+3) .mega-dropdown {
    left: auto;
    right: 0;
  }
}

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

.mega-menu-item:hover .mega-dropdown.wide-dropdown {
  display: grid;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: var(--ag-transition);
}

.dropdown-item:hover {
  background: var(--ag-primary-light);
  color: var(--ag-primary);
  padding-left: 22px;
}

.dropdown-item i {
  font-size: 11px;
  opacity: 0.5;
}

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

/* ==========================================================================
   HERO SECTION (Main Slider + Right Promo Cards)
   ========================================================================== */
.hero-section {
  padding: 24px 0 16px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 20px;
  align-items: stretch;
}

.hero-slider-wrap {
  position: relative;
  border-radius: var(--ag-radius-lg);
  overflow: hidden;
  height: clamp(520px, 44vw, 620px);
  box-shadow: var(--ag-shadow-md);
  background: #0b0f19;
}

.hero-slides-container {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #0b0f19;
}

.hero-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hero-contain-backdrop {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.65);
  pointer-events: none;
  z-index: 0;
}

.hero-slide-img,
.hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: var(--slide-fit, cover);
  object-position: var(--slide-focal, 50% 50%);
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.hero-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide-link:hover .hero-slide-img,
.hero-slide-link:hover .hero-picture img {
  transform: scale(1.02);
}

.hero-slide-overlay {
  display: none;
}

.hero-slide-content {
  display: none;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
  transition: var(--ag-transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.slider-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--ag-transition);
}

.slider-dot.active {
  width: 28px;
  border-radius: var(--ag-radius-full);
  background: var(--ag-primary);
}

/* Right Stacked Promo Banners */
.hero-promo-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.promo-card {
  height: 100%;
  min-height: 0;
  border-radius: var(--ag-radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--ag-shadow-md);
  transition: var(--ag-transition);
  background: #0f172a;
}

.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ag-shadow-lg);
}

.promo-card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.promo-contain-backdrop {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.65);
  pointer-events: none;
  z-index: 0;
}

.promo-card-img,
.promo-picture img {
  width: 100%;
  height: 100%;
  object-fit: var(--slide-fit, cover);
  object-position: var(--slide-focal, 50% 50%);
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.promo-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.promo-card-link:hover .promo-card-img,
.promo-card-link:hover .promo-picture img {
  transform: scale(1.03);
}

.promo-card-overlay {
  display: none;
}

.promo-card-content {
  display: none;
}

/* ==========================================================================
   TRUST FEATURE STRIP (36M EMI, Delivery, Exchange, etc.)
   ========================================================================== */
.trust-strip {
  padding: 12px 0 24px 0;
}

.trust-features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius-lg);
  padding: 18px 24px;
  box-shadow: var(--ag-shadow-sm);
}

.trust-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 10px;
  border-right: 1px solid var(--ag-border-light);
}

.trust-box:last-child {
  border-right: none;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ag-primary-light);
  color: var(--ag-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.trust-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.trust-info p {
  font-size: 12px;
  color: #6b7280;
}

/* ==========================================================================
   FEATURED CATEGORIES STRIP
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.view-all-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ag-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--ag-transition);
}

.view-all-link:hover {
  text-decoration: underline;
  transform: translateX(3px);
}

.featured-categories-scroll {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

/* Arogga-Style Category Tile: Rounded Photo Tile on Top + Name Cleanly Underneath */
.cat-circle-card {
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 0;
  text-align: center;
  transition: var(--ag-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
}

.cat-circle-card:hover, .cat-circle-card.active {
  background: transparent;
  transform: translateY(-3px);
  box-shadow: none;
}

.cat-photo-tile {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  border-radius: 14px;
  background: #fdf6df;
  border: 1px solid #f1e8cb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ag-transition);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.cat-circle-card:hover .cat-photo-tile,
.cat-circle-card.active .cat-photo-tile {
  border-color: var(--ag-primary);
  box-shadow: 0 6px 16px rgba(241, 126, 35, 0.18);
}

.cat-photo-tile img.cat-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-photo-tile .cat-icon-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--ag-transition);
}

.cat-circle-card:hover .cat-icon-fallback,
.cat-circle-card.active .cat-icon-fallback {
  background: var(--ag-primary);
  color: #ffffff;
}

.cat-circle-card span.cat-tile-name,
.cat-circle-card span {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
  padding: 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   PRODUCT SHOWCASE GRID (Apple Gadgets Signature Card Layout)
   ========================================================================== */
.products-section {
  margin-bottom: 48px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.products-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.products-slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.products-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 2px 16px 2px;
}

.products-slider-track::-webkit-scrollbar {
  display: none;
}

.products-slider-track .ag-clean-product-card {
  flex: 0 0 calc((100% - 64px) / 5);
  min-width: 220px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .products-slider-track .ag-clean-product-card {
    flex: 0 0 calc((100% - 48px) / 4);
  }
}

@media (max-width: 900px) {
  .products-slider-track .ag-clean-product-card {
    flex: 0 0 calc((100% - 32px) / 3);
  }
}

@media (max-width: 600px) {
  .products-slider-track {
    gap: 8px;
  }
  .products-slider-track .ag-clean-product-card {
    flex: 0 0 calc((100% - 16px) / 3);
    min-width: 0;
  }
}

/* 3-Row Grid Expansion for New Arrival (when Flash Deals has ended) */
.products-slider-track.grid-expanded-3rows {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 16px !important;
  overflow-x: visible !important;
  overflow: visible !important;
  padding: 6px 2px 24px 2px !important;
}

.products-slider-track.grid-expanded-3rows .ag-clean-product-card {
  flex: unset !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.new-arrival-section.is-grid-expanded #arr-arrows-wrap,
#new-arrival-section.is-grid-expanded #arr-arrows-wrap {
  display: none !important;
}

@media (max-width: 1200px) {
  .products-slider-track.grid-expanded-3rows {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .products-slider-track.grid-expanded-3rows {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .products-slider-track.grid-expanded-3rows {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}

/* Multi-Row Responsive Product Grid (3 Rows Desktop [5x3=15], 4 Rows Mobile [3x4=12]) */
.products-slider-track.fp-grid-3x4-responsive {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
  overflow: visible !important;
  padding: 6px 2px 24px 2px !important;
}

.products-slider-track.fp-grid-3x4-responsive .ag-clean-product-card {
  flex: unset !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.products-slider-track.fp-grid-3x4-responsive.is-cap-15 > :nth-child(n+16) {
  display: none !important;
}

#featured-products-section .section-arrows-wrap {
  display: none !important;
}

@media (max-width: 1200px) {
  .products-slider-track.fp-grid-3x4-responsive {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .products-slider-track.fp-grid-3x4-responsive.is-cap-responsive > :nth-child(n+13) {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .products-slider-track.fp-grid-3x4-responsive {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .products-slider-track.fp-grid-3x4-responsive.is-cap-responsive > :nth-child(n+13) {
    display: none !important;
  }
}

.section-title-gradient.fp-title-pink span {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 45%, #a855f7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Gradient Title for Featured Products & New Arrival (Screenshot 1) */
.section-title-gradient {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.section-title-gradient span {
  background: linear-gradient(90deg, #F17E23 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-arrows-wrap {
  display: flex;
  gap: 8px;
}

.section-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--ag-border);
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: var(--ag-transition);
}

.section-arrow-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Section Filter Pills (BEST DEALS / TOP SELLING / GADGETS / DEVICE) */
.section-filter-pills {
  display: flex;
  gap: 8px;
  margin: 12px 0 20px 0;
}

/* Section Filter Pills defined in components section */

/* Screenshot 1 Clean Product Card */
.ag-clean-product-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: var(--ag-radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: var(--ag-transition);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  position: relative;
}

.ag-clean-product-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.ag-clean-img-box {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.ag-clean-img-box img {
  max-height: 155px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.ag-clean-product-card:hover .ag-clean-img-box img {
  transform: scale(1.06);
}

.ag-clean-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.ag-clean-price-row {
  margin-top: auto;
}

.ag-clean-offer-price {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.ag-clean-regular-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.ag-clean-reg-price {
  color: #94a3b8;
  text-decoration: line-through;
}

.ag-clean-discount-pill {
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--ag-transition);
  position: relative;
  box-shadow: var(--ag-shadow-sm);
}

.product-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--ag-shadow-lg);
  transform: translateY(-4px);
}

/* Product Badges */
.card-badges-top {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-pill.hot { background: #ef4444; color: #fff; }
.badge-pill.offer { background: var(--ag-primary); color: #fff; }
.badge-pill.save { background: #10b981; color: #fff; }

.card-quick-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--ag-transition);
}

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

.quick-view-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--ag-transition);
}

.quick-view-btn:hover {
  background: var(--ag-primary);
  color: #ffffff;
}

/* Image Container */
.product-image-box {
  position: relative;
  background: #fdfdfd;
  padding: 24px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--ag-border-light);
}

.product-image-box img {
  max-height: 180px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-box img {
  transform: scale(1.08);
}

/* Card Body */
.product-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ag-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.product-title:hover {
  color: var(--ag-primary);
}

/* Key specs pills */
.product-specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.spec-pill {
  font-size: 10.5px;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* Price Box */
.product-pricing-wrap {
  margin-top: auto;
  padding-top: 8px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.offer-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--ag-primary);
}

.regular-price {
  font-size: 13.5px;
  color: #9ca3af;
  text-decoration: line-through;
}

.emi-tag {
  font-size: 11px;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  margin-bottom: 14px;
}

.emi-tag span {
  color: #ea580c;
  font-weight: 700;
}

/* Add to Cart Button */
.add-to-cart-btn {
  width: 100%;
  background: #111827;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 0;
  border-radius: var(--ag-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--ag-transition);
}

.add-to-cart-btn:hover {
  background: var(--ag-primary);
  box-shadow: 0 4px 14px rgba(241, 126, 35, 0.4);
}

/* Card View Details Button */
.card-view-details-btn {
  width: 100%;
  background: #f8fafc;
  color: #1e293b;
  border: 1.5px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 0;
  border-radius: var(--ag-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.card-view-details-btn:hover {
  background: var(--ag-primary);
  color: #ffffff;
  border-color: var(--ag-primary);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   CART SLIDE-OVER DRAWER
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 1000;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.cart-drawer.active {
  right: 0;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--ag-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-drawer-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #64748b;
  transition: var(--ag-transition);
}

.close-drawer-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cart-items-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.empty-cart-state {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}

.empty-cart-state i {
  font-size: 56px;
  margin-bottom: 16px;
  color: #cbd5e1;
}

.empty-cart-state p {
  font-size: 15px;
  font-weight: 600;
  color: #475569;
}

.cart-item-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ag-border-light);
  align-items: center;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--ag-border);
  padding: 6px;
  object-fit: contain;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--ag-primary);
}

.cart-qty-controller {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
  width: fit-content;
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #334155;
  transition: var(--ag-transition);
}

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

.qty-val {
  width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.remove-cart-item-btn {
  color: #94a3b8;
  font-size: 15px;
  padding: 8px;
  transition: var(--ag-transition);
}

.remove-cart-item-btn:hover {
  color: #ef4444;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--ag-border);
  background: #fafafa;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
  color: #64748b;
}

.cart-summary-line.total {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  border-top: 1px dashed #cbd5e1;
  padding-top: 10px;
  margin-bottom: 16px;
}

.checkout-btn {
  width: 100%;
  background: var(--ag-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--ag-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(241, 126, 35, 0.35);
  transition: var(--ag-transition);
}

.checkout-btn:hover {
  background: var(--ag-primary-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   CHECKOUT MODAL (Complete Bangladesh Order Form)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--ag-radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.modal-header h3 {
  font-size: 19px;
  font-weight: 800;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--ag-radius);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--ag-transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--ag-primary);
  box-shadow: 0 0 0 3px rgba(241, 126, 35, 0.15);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.payment-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.payment-option-card {
  border: 1.5px solid #e2e8f0;
  border-radius: var(--ag-radius);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--ag-transition);
}

.payment-option-card:hover, .payment-option-card.selected {
  border-color: var(--ag-primary);
  background: var(--ag-primary-light);
}

.payment-option-card i {
  font-size: 20px;
  color: var(--ag-primary);
  margin-bottom: 4px;
}

.payment-option-card .method-title {
  font-size: 12.5px;
  font-weight: 700;
  display: block;
}

.order-confirm-btn {
  width: 100%;
  background: var(--ag-primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  padding: 14px;
  border-radius: var(--ag-radius);
  margin-top: 10px;
  transition: var(--ag-transition);
}

.order-confirm-btn:hover {
  background: var(--ag-primary-hover);
}

/* ==========================================================================
   QUICK VIEW MODAL
   ========================================================================== */
.quick-view-card {
  max-width: 780px;
}

.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.quick-view-img-box {
  background: #f8fafc;
  border-radius: var(--ag-radius);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ag-border);
}

.quick-view-img-box img {
  max-height: 260px;
  object-fit: contain;
}

/* ==========================================================================
   FLOATING LIVE CHAT WIDGET (Apple Gadgets Assistant)
   ========================================================================== */
.floating-assistant-wrap {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.floating-assistant-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.assistant-trigger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: var(--ag-transition);
}

.assistant-trigger-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

.assistant-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: relative;
  background: #f1f5f9;
  overflow: visible;
}

.assistant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.assistant-avatar .status-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
}

.assistant-speech-bubble {
  display: none !important;
}

/* WhatsApp Direct Trigger Button */
.whatsapp-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #ffffff;
  border: none;
  border-radius: var(--ag-radius-full);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.whatsapp-trigger-btn i {
  font-size: 19px;
}

.whatsapp-trigger-btn:hover {
  background: #20ba5a;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

/* Chat Popup Window */
.assistant-chat-window {
  position: absolute;
  bottom: 62px;
  left: 0;
  right: auto;
  width: 360px;
  max-width: calc(100vw - 36px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: bottom left;
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 1001;
}
.chat-support-opt.is-livechat {
  display: none;
}

.assistant-chat-window.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.chat-header {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-body {
  padding: 15px 16px;
  max-height: 470px;
  overflow-y: auto;
  font-size: 13.5px;
  background: #ffffff;
}

.bot-msg {
  background: #f8fafc;
  color: #1e293b;
  padding: 12px 14px;
  border-radius: 12px 12px 12px 2px;
  margin-bottom: 14px;
  line-height: 1.5;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}

/* Support Assistant Accordion */
.chat-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.chat-accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  transition: border-color 0.2s;
}

.chat-accordion-item.active {
  border-color: #ea580c;
}

.chat-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.chat-accordion-item.active .chat-accordion-header {
  background: #fff7ed;
  color: #c2410c;
}

.chat-accordion-header .accordion-arrow {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.chat-accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
  color: #ea580c;
}

.chat-accordion-content {
  display: none;
  padding: 12px;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.55;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.chat-accordion-item.active .chat-accordion-content {
  display: block;
}

.chat-wa-direct-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.chat-wa-direct-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
}

/* 3-Option Support Hub inside Round Avatar Popup (Live Chat / Messenger / WhatsApp) */
.chat-support-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.chat-support-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.chat-support-opt:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
  background: #f8fafc;
}

.chat-support-opt-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  flex-shrink: 0;
}

.chat-support-opt.is-livechat .chat-support-opt-icon {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.chat-support-opt.is-messenger .chat-support-opt-icon {
  background: linear-gradient(135deg, #0084ff 0%, #0066cc 100%);
}

.chat-support-opt.is-whatsapp .chat-support-opt-icon {
  background: linear-gradient(135deg, #25d366 0%, #16a34a 100%);
}

.chat-support-opt-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.chat-support-opt-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.chat-support-opt-sub {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.3;
}

.chat-support-opt-arrow {
  font-size: 12px;
  color: #94a3b8;
  flex-shrink: 0;
}

.chat-live-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
}

.assistant-chat-window.is-livechat-mode .chat-body {
  padding: 10px 14px 12px 14px;
  height: 465px;
  max-height: 76vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.assistant-chat-window.is-livechat-mode .chat-hub-view {
  display: none;
}

.assistant-chat-window.is-livechat-mode .chat-live-panel {
  display: flex;
  flex: 1;
}

.chat-header .fp-asst-header-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.fp-asst-header-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
  background: #541E25;
  flex-shrink: 0;
}

.chat-live-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.chat-live-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-live-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chat-live-icon-btn:hover,
.chat-live-icon-btn.active {
  background: #f0fdfa;
  border-color: #0d9488;
  color: #0f766e;
}

.chat-live-history-drawer {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  max-height: 185px;
  overflow-y: auto;
}

.chat-live-history-drawer.active {
  display: flex;
}

.chat-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  padding: 2px 4px;
}

.chat-history-item {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.15s, background 0.15s;
}

.chat-history-item:hover,
.chat-history-item.active {
  border-color: #0d9488;
  background: #f0fdfa;
}

.chat-history-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
}

.chat-history-item-preview {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 195px;
}

.chat-history-item-meta {
  font-size: 10px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

.chat-live-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.chat-live-back-btn:hover {
  background: #e2e8f0;
}

.chat-live-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 150px;
  overflow-y: auto;
  padding: 4px 2px;
}

/* AI Assistant Product Overview Cards & Side-by-Side Comparison */
.fp-chat-prod-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fp-chat-prod-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 8px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.fp-chat-prod-card:hover {
  border-color: #0d9488;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.12);
}

.fp-chat-prod-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.fp-chat-prod-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fp-chat-prod-cat {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: #0f766e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-chat-prod-name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fp-chat-prod-overview {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fp-chat-prod-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}

.fp-chat-prod-price {
  font-size: 12.5px;
  font-weight: 800;
  color: #ea580c;
}

.fp-chat-prod-mrp {
  font-size: 10px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
  margin-left: 3px;
}

.fp-chat-prod-cta {
  font-size: 10px;
  font-weight: 700;
  color: #0d9488;
  white-space: nowrap;
}

.fp-chat-cmp-box {
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.fp-chat-cmp-head {
  background: #0f172a;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fp-chat-cmp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #e2e8f0;
}

.fp-chat-cmp-col-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 8px 6px;
  text-decoration: none;
  color: #0f172a;
  background: #ffffff;
  transition: background 0.15s ease;
}

.fp-chat-cmp-col-card + .fp-chat-cmp-col-card {
  border-left: 1px solid #e2e8f0;
}

.fp-chat-cmp-col-card:hover {
  background: #f0fdfa;
}

.fp-chat-cmp-col-card img {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.fp-chat-cmp-col-title {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fp-chat-cmp-rows {
  display: flex;
  flex-direction: column;
  font-size: 10.5px;
}

.fp-chat-cmp-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}

.fp-chat-cmp-row:last-child {
  border-bottom: none;
}

.fp-chat-cmp-lbl {
  padding: 5px 6px;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
}

.fp-chat-cmp-val {
  padding: 5px 6px;
  color: #0f172a;
  text-align: center;
  border-left: 1px solid #f1f5f9;
  word-break: break-word;
}

.chat-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
}

.chat-msg-row.is-bot {
  flex-direction: row;
  justify-content: flex-start;
}

.chat-msg-row.is-user {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
}

.chat-msg-avatar.is-bot-logo {
  background: #541E25;
  border-radius: 8px;
}

.chat-msg-avatar.is-user-initial {
  background: #0f766e;
  color: #ffffff;
}

.chat-msg-col {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  min-width: 0;
}

.chat-msg-row.is-bot .chat-msg-col {
  align-items: flex-start;
}

.chat-msg-row.is-user .chat-msg-col {
  align-items: flex-end;
}

.chat-msg-sender {
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 3px;
  padding: 0 2px;
}

.chat-msg-row.is-bot .chat-msg-sender {
  color: #64748b;
}

.chat-msg-row.is-user .chat-msg-sender {
  color: #0f766e;
}

.chat-live-msg {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.48;
  word-break: break-word;
  max-width: 100%;
}

.chat-live-msg.is-bot {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 4px;
}

.chat-live-msg.is-user {
  background: #0d9488;
  color: #ffffff;
  border-top-right-radius: 4px;
}

/* Unbordered Original Photo Grid + "+N more" Collage */
.fp-chat-media-grid {
  display: grid;
  gap: 2px;
  border-radius: 12px;
  overflow: hidden;
  border: none !important;
  outline: none !important;
  margin-top: 5px;
  width: 224px;
  max-width: 100%;
  background: transparent;
}

.fp-chat-media-grid.count-1 {
  grid-template-columns: 1fr;
  width: 210px;
}

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

.fp-chat-media-tile {
  position: relative;
  display: block;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.fp-chat-media-grid.count-1 .fp-chat-media-tile {
  aspect-ratio: auto;
  max-height: 220px;
}

.fp-chat-media-grid.count-3 .fp-chat-media-tile:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.fp-chat-media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none !important;
  box-shadow: none !important;
}

.fp-chat-media-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.fp-chat-media-more-overlay span {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.92;
}

.fp-chat-tile-dl-btn {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-decoration: none;
  opacity: 0.88;
  z-index: 2;
}

.fp-chat-tile-dl-btn:hover {
  background: #0d9488;
  opacity: 1;
}

.fp-chat-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  border-radius: 10px;
  padding: 7px 10px;
  margin-top: 4px;
  font-size: 11.5px;
  max-width: 226px;
}

.fp-chat-file-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 145px;
}

.fp-chat-file-dl {
  color: #0d9488;
  font-size: 13px;
  text-decoration: none;
  padding: 3px 5px;
  border-radius: 6px;
}

.fp-chat-file-dl:hover {
  background: #ccfbf1;
}

.chat-pending-files {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.chat-pending-files.active {
  display: flex;
}

.chat-pending-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 3px 6px;
  font-size: 11px;
  color: #334155;
  max-width: 150px;
}

.chat-pending-chip img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  border: none;
}

.chat-pending-chip-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.chat-pending-remove {
  border: none;
  background: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 12px;
  padding: 0 2px;
}

.chat-live-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-live-chip {
  font-size: 11px;
  font-weight: 600;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 4px 9px;
  cursor: pointer;
}

.chat-live-chip:hover {
  background: #ccfbf1;
}

.chat-live-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-live-attach-btn {
  height: 36px;
  width: 36px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chat-live-attach-btn:hover {
  background: #f0fdfa;
  border-color: #0d9488;
  color: #0d9488;
}

.chat-live-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  padding: 0 11px;
  font-size: 12.5px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.chat-live-input:focus {
  border-color: #0d9488;
}

.chat-live-send-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: none;
  background: #0d9488;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-live-send-btn:hover {
  background: #0f766e;
}

/* Clean Full-Size Photo Lightbox & Multi-Photo Switcher */
.fp-chat-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.9);
  backdrop-filter: blur(6px);
  z-index: 9999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.fp-chat-lightbox-overlay.active {
  display: flex;
}

.fp-chat-lightbox-card {
  position: relative;
  max-width: 820px;
  width: 100%;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.fp-chat-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #1e293b;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.fp-chat-lightbox-stage {
  position: relative;
  background: #020617;
  min-height: 280px;
  max-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-chat-lightbox-stage img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  display: block;
  border: none !important;
}

.fp-chat-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.fp-chat-lb-nav.prev { left: 10px; }
.fp-chat-lb-nav.next { right: 10px; }

.fp-chat-lightbox-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 12px;
}

.footer-need-support a:hover {
  text-decoration: underline !important;
  color: #fdba74 !important;
}

/* ==========================================================================
   FOOTER (Dark Apple Gadgets Footer with Hotline & Links)
   ========================================================================== */
.site-footer,
.main-footer {
  margin-top: auto !important;
  background: #0d0f14 !important;
  color: #9ca3af !important;
  padding: 56px 0 24px 0 !important;
  border-top: 1px solid #1f232e !important;
  font-family: inherit;
  width: 100%;
  clear: both;
}

.footer-container,
.site-footer .container,
.main-footer .container {
  max-width: var(--ag-container-width, 1280px);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4,
.footer-col .footer-heading {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}

.footer-col ul,
.footer-col .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li,
.footer-col .footer-links li {
  margin-bottom: 11px;
}

.footer-col ul li a,
.footer-col .footer-links a {
  font-size: 13.5px;
  color: #94a3b8 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
}

[data-theme="light"] .footer-col ul li a,
[data-theme="light"] .footer-col .footer-links a {
  color: #475569 !important;
}

.footer-col ul li a:visited,
.footer-col .footer-links a:visited {
  color: #94a3b8 !important;
}

[data-theme="light"] .footer-col ul li a:visited,
[data-theme="light"] .footer-col .footer-links a:visited {
  color: #475569 !important;
}

.footer-col ul li a:hover,
.footer-col .footer-links a:hover,
.footer-col a:hover,
.footer-links a:hover,
.site-footer a:not(.brand-logo):not(.hotline-number):not(.fp-footer-social-btn):hover,
.main-footer a:not(.brand-logo):not(.hotline-number):not(.fp-footer-social-btn):hover,
footer a:not(.brand-logo):not(.hotline-number):not(.fp-footer-social-btn):hover {
  color: var(--ag-primary, #ea580c) !important;
  transform: translateX(4px) !important;
  display: inline-flex !important;
  text-decoration: none !important;
}

.fp-footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none !important;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.fp-footer-social-btn:hover {
  transform: translateY(-2px) !important;
  background: #ea580c !important;
  border-color: #ea580c !important;
  color: #ffffff !important;
}

.footer-col ul li a:focus-visible,
.footer-col .footer-links a:focus-visible {
  outline: 2px solid var(--ag-primary, #ea580c) !important;
  outline-offset: 3px !important;
  color: var(--ag-primary, #ea580c) !important;
}

.footer-col ul li a.active,
.footer-col ul li a[aria-current="page"],
.footer-col .footer-links a.active {
  color: var(--ag-primary, #ea580c) !important;
  font-weight: 700 !important;
}

.footer-hotline-card {
  background: #171923;
  border: 1px solid #282c3d;
  border-radius: var(--ag-radius, 12px);
  padding: 18px;
  margin-top: 14px;
}

.footer-hotline-card .hotline-number {
  color: var(--ag-primary, #ea580c) !important;
  font-size: 20px;
  font-weight: 800;
  display: block;
  margin-top: 4px;
}

.footer-bottom,
.footer-bottom-container {
  border-top: 1px solid #1f232e;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
}

/* Online Payment Partners Banner (Verified by EPS) */
.fp-footer-partners-band {
  border-top: 1px solid #1f232e;
  padding: 20px 0 22px 0;
}
.fp-partners-heading-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.fp-partners-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.1px;
}
.fp-eps-banner-card {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.fp-eps-banner-img {
  display: block;
  width: 100%;
  max-width: 1060px;
  height: auto;
  object-fit: contain;
}
@media (max-width: 600px) {
  .fp-footer-partners-band {
    padding: 16px 0 18px 0;
  }
  .fp-eps-banner-card {
    padding: 8px 10px;
    border-radius: 8px;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (Mobile, Tablet, Desktop)
   Pixel-Perfect 320px, 360px, 375px, 390px, 414px, 430px, 480px, 768px, 1280px+
   ========================================================================== */

/* Base component styles for Mobile Nav & Drawers */
.mobile-menu-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f3f4f6;
  font-size: 15px;
  cursor: pointer;
  transition: var(--ag-transition);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Main Menu Side Drawer */
.menu-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: clamp(285px, 88vw, 360px);
  max-width: 92vw;
  height: 100vh;
  height: 100dvh;
  background: var(--ag-drawer-bg, #ffffff);
  color: var(--ag-text-dark, #0f172a);
  z-index: 10002;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  transform: translateX(-105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  overflow: hidden;
}

.menu-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.menu-drawer-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ag-border, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ag-bg-card, #ffffff);
  flex-shrink: 0;
}

.menu-drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-drawer-logo {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--ag-border, #e2e8f0);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.menu-drawer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.menu-drawer-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-drawer-title h3,
.menu-drawer-title-wrap h3 {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--ag-text-dark, #0f172a);
  line-height: 1.2;
}

.menu-drawer-sub {
  font-size: 11px;
  color: var(--ag-text-muted, #64748b);
  font-weight: 600;
  line-height: 1.2;
}

.menu-drawer-close-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.menu-drawer-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

.menu-drawer-brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* User Greeting Bar */
.menu-drawer-user-bar {
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--ag-border, #e2e8f0);
  flex-shrink: 0;
}

.drawer-user-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.drawer-user-meta i {
  font-size: 18px;
  color: var(--ag-primary, #f17e23);
}

.menu-drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 24px 18px;
}

.drawer-section-heading,
.menu-drawer-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--ag-border);
}

.drawer-section-heading span,
.menu-drawer-section-title span:first-child {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ag-primary);
}

.section-title-sub {
  font-size: 11px;
  color: var(--ag-text-muted);
}

.menu-drawer-divider {
  height: 1px;
  background: var(--ag-border);
  margin: 18px 0;
}

.menu-category-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-cat-item {
  border-radius: 12px;
  background: var(--ag-bg-body, #f8fafc);
  border: 1px solid var(--ag-border, #e2e8f0);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-cat-item.active {
  border-color: rgba(241, 126, 35, 0.4);
  box-shadow: 0 4px 14px rgba(241, 126, 35, 0.08);
}

.menu-cat-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.menu-cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(241, 126, 35, 0.12);
  color: var(--ag-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.menu-cat-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ag-text-dark, #0f172a);
}

.menu-cat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-cat-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--ag-text-muted);
  background: var(--ag-bg-card, #ffffff);
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid var(--ag-border);
}

.menu-cat-chevron {
  font-size: 12px;
  color: var(--ag-text-muted);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-cat-item.active .menu-cat-chevron {
  transform: rotate(180deg);
  color: var(--ag-primary);
}

.menu-subcat-list {
  display: none;
  padding: 4px 12px 12px 12px;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--ag-border);
}

.menu-cat-item.active .menu-subcat-list {
  display: flex;
}

.menu-subcat-item {
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--ag-bg-card, #ffffff);
  color: var(--ag-text-dark, #1e293b);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  border: 1px solid var(--ag-border);
  transition: var(--ag-transition);
}

.menu-subcat-item.all-link {
  background: rgba(241, 126, 35, 0.08);
  color: var(--ag-primary);
  border-color: rgba(241, 126, 35, 0.25);
}

.menu-subcat-item:hover {
  border-color: var(--ag-primary);
  color: var(--ag-primary);
  transform: translateX(3px);
}

.menu-subcat-item i {
  font-size: 11px;
  opacity: 0.6;
}

/* Quick Navigation Links */
.drawer-quick-links,
.menu-quick-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-quick-link,
.menu-quick-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ag-bg-body, #f8fafc);
  border: 1px solid var(--ag-border, #e2e8f0);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  box-sizing: border-box;
}

.drawer-quick-link:hover,
.menu-quick-link-item:hover {
  background: #fff7ed;
  border-color: rgba(241, 126, 35, 0.4);
  transform: translateX(3px);
}

.dql-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.dql-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.dql-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ag-text-dark, #0f172a);
  line-height: 1.2;
}

.dql-text small {
  font-size: 11px;
  color: var(--ag-text-muted, #64748b);
  line-height: 1.2;
}

.dql-arrow {
  font-size: 11px;
  color: #94a3b8;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.drawer-quick-link:hover .dql-arrow {
  transform: translateX(3px);
  color: var(--ag-primary, #f17e23);
}

.menu-quick-link-item i {
  font-size: 16px;
  color: var(--ag-primary);
  width: 20px;
  text-align: center;
}

.menu-quick-link-item.highlight-deals {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(241, 126, 35, 0.08) 100%);
  border-color: rgba(239, 68, 68, 0.25);
}

.menu-badge-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  background: #ef4444;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.menu-badge-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  background: var(--ag-primary);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 9999px;
}

/* Drawer Footer Support & Authenticity */
.drawer-footer-contact {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--ag-border, #e2e8f0);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dfc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.dfc-item > i {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: rgba(241, 126, 35, 0.12);
  color: var(--ag-primary, #f17e23);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.dfc-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dfc-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--ag-text-muted, #64748b);
  line-height: 1.1;
}

.dfc-val {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ag-text-dark, #0f172a);
  line-height: 1.2;
}

.menu-drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--ag-border);
  background: var(--ag-bg-body, #f8fafc);
  flex-shrink: 0;
}

.drawer-footer-hotline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.drawer-footer-hotline i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ag-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.drawer-footer-hotline small {
  display: block;
  font-size: 10px;
  color: var(--ag-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--ag-bg-card, #ffffff);
  border-top: 1px solid var(--ag-border, #e2e8f0);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
  z-index: 998;
  align-items: center;
  justify-content: space-around;
  box-sizing: border-box;
}

.bottom-nav-item {
  flex: 1 1 0px;
  min-width: 0;
  width: 25%;
  max-width: 25%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ag-text-muted, #64748b);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
  box-sizing: border-box;
  transition: color 0.2s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-icon,
.bottom-nav-item span.bottom-nav-icon {
  font-size: 18px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible !important;
  max-width: none !important;
  transition: transform 0.2s ease;
}

.bottom-nav-label,
.bottom-nav-item > span:not(.bottom-nav-icon) {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: #0d9488 !important;
}

.bottom-nav-item.active .bottom-nav-icon,
.bottom-nav-item.active i {
  transform: translateY(-1px);
  color: #0d9488 !important;
}

.bottom-nav-item.active > span:not(.bottom-nav-icon),
.bottom-nav-item.active .bottom-nav-label {
  font-weight: 800;
  color: #0d9488 !important;
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #0d9488;
}

.bnav-inbox-badge,
.bottom-nav-item span.bnav-inbox-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 9999px;
  background: #ef4444;
  color: #ffffff !important;
  border: 1.5px solid #ffffff;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  overflow: visible !important;
  max-width: none !important;
  z-index: 2;
}

@media print {
  .mobile-bottom-nav,
  #mobile-bottom-nav {
    display: none !important;
  }
}

/* Empty cart state */
.empty-cart-state {
  text-align: center;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-cart-icon-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(241, 126, 35, 0.1);
  color: var(--ag-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 8px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ag-border);
}

.cart-item-img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--ag-border);
  flex-shrink: 0;
  background: #ffffff;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ag-text-dark, #0f172a);
  line-height: 1.35;
  margin-bottom: 3px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--ag-primary);
  margin-bottom: 6px;
}

.cart-qty-controller {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ag-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ag-bg-body);
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--ag-text-dark);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: rgba(0,0,0,0.06);
}

.qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ag-text-dark);
}

.remove-cart-item-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: var(--ag-transition);
}

.remove-cart-item-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   BREAKPOINTS: DESKTOP & TABLET
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-promo-stack {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    height: auto !important;
  }
  .promo-card { height: 180px; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-categories-scroll { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .trust-features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-nav { display: none !important; }
  .header-action-link, .hpill-acc-label { display: none !important; }
  .header-main .container { gap: 16px !important; }
  .category-navbar { overflow-x: auto !important; }
  .mega-menu-list { min-width: max-content; }
}

/* ==========================================================================
   BREAKPOINTS: TABLET & MOBILE (< 900px)
   ========================================================================== */
@media (max-width: 900px) {
  /* Prevent content hiding behind bottom navigation */
  body {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-bottom-nav {
    display: flex !important;
  }

  /* Assistant chat widget stays on bottom-left above bottom nav and never overflows viewport */
  .floating-assistant-wrap {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    left: 14px !important;
    right: auto !important;
    max-width: calc(100vw - 28px) !important;
    align-items: flex-start !important;
  }

  .assistant-chat-window {
    left: 0 !important;
    right: auto !important;
    bottom: 64px !important;
    width: min(340px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    transform-origin: bottom left !important;
  }

  #notification-center-container {
    max-width: calc(100vw - 32px) !important;
    right: 16px !important;
    left: auto !important;
  }

  /* Mobile Featured Categories: spacious 3-column responsive grid */
  .featured-categories-scroll {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 24px !important;
    overflow: hidden !important;
  }

  .cat-circle-card {
    min-width: 0 !important;
    padding: 0 !important;
    gap: 6px !important;
  }

  .cat-photo-tile {
    border-radius: 12px !important;
  }

  .cat-photo-tile .cat-icon-fallback {
    width: 40px !important;
    height: 40px !important;
    font-size: 17px !important;
  }

  .cat-circle-card span.cat-tile-name,
  .cat-circle-card span {
    font-size: 11.5px !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }

  /* Two-row mobile header */
  .site-header {
    top: 0;
    position: sticky;
    z-index: 1000;
  }

  .header-main {
    padding: 10px 0 !important;
  }

  .header-main .container {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-areas:
      "hamburger logo actions"
      "search search search" !important;
    align-items: center !important;
    gap: 10px 14px !important;
    padding: 0 16px !important;
  }

  .mobile-menu-toggle-btn {
    grid-area: hamburger;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #14151a;
    border: 1px solid #333644;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--ag-transition);
  }

  .mobile-menu-toggle-btn:hover {
    border-color: var(--ag-primary);
    color: var(--ag-primary);
  }

  .brand-logo {
    grid-area: logo;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    margin: 0 auto;
    max-width: 100%;
  }

  .site-footer .brand-logo,
  footer .brand-logo {
    justify-content: flex-start !important;
    margin: 0 0 14px 0 !important;
    width: fit-content;
  }

  .brand-logo .logo-icon {
    width: clamp(28px, 7vw, 36px) !important;
    height: clamp(28px, 7vw, 36px) !important;
    flex-shrink: 0;
  }

  .brand-logo .logo-title {
    font-size: clamp(14px, 4vw, 18px) !important;
    white-space: nowrap;
  }

  .brand-logo .logo-sub {
    font-size: clamp(8px, 2.5vw, 10px) !important;
  }

  .header-actions {
    grid-area: actions;
    display: flex !important;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
  }

  /* Prominent Cart on Header, others relocated */
  #wishlist-toggle-btn,
  #account-btn,
  #theme-toggle-btn,
  .header-account-slot,
  .header-action-link {
    display: none !important;
  }

  #cart-toggle-btn {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0;
  }

  .header-nav {
    display: none !important;
  }

  .category-navbar {
    display: none !important;
  }

  /* Full-width Search on Row 2 */
  .search-container {
    grid-area: search;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .search-box {
    padding: 3px 6px 3px 14px !important;
    height: 42px;
  }

  /* Hero & Promo cards */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .hero-slider-wrap {
    height: clamp(340px, 85vw, 460px) !important;
  }

  .hero-slide-img,
  .hero-picture img,
  .promo-card-img,
  .promo-picture img {
    object-fit: var(--mobile-slide-fit, var(--slide-fit, cover)) !important;
    object-position: var(--mobile-slide-focal, var(--slide-focal, 50% 50%)) !important;
  }

  .hero-promo-stack {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: 1fr !important;
    gap: 10px !important;
    height: auto !important;
  }

  .promo-card {
    height: clamp(160px, 40vw, 210px) !important;
  }

  /* Three-column product grid on mobile */
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  /* Trust features */
  .trust-features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }

  /* Cart drawer fills mobile phone width */
  .cart-drawer {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   BREAKPOINTS: MOBILE COMPACT (< 600px)
   ========================================================================== */
@media (max-width: 600px) {
  .container {
    padding: 0 12px !important;
  }

  .trust-features-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .modal-card {
    width: 95% !important;
    margin: auto 10px !important;
  }

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

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

  .section-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .section-title {
    font-size: 20px !important;
  }

  .section-title-gradient {
    font-size: 20px !important;
  }
}

/* ==========================================================================
   BREAKPOINTS: ULTRA-COMPACT PHONES (320px - 360px)
   ========================================================================== */
@media (max-width: 360px) {
  .header-main .container {
    padding: 0 8px !important;
    gap: 8px 10px !important;
  }

  .brand-logo .logo-title {
    font-size: 17px !important;
  }

  .brand-logo .logo-icon {
    width: 34px !important;
    height: 34px !important;
  }

  .mobile-menu-toggle-btn,
  #cart-toggle-btn {
    width: 38px !important;
    height: 38px !important;
  }

  .products-grid {
    gap: 8px !important;
  }

  .featured-categories-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .bottom-nav-label {
    font-size: 10px !important;
  }
}

/* ==========================================================================
   APPLE GADGETS BD EXACT: FEATURED & NEW ARRIVAL 5-COLUMN GRID & CLEAN CARDS
   ========================================================================== */
.section-title-gradient {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-title-gradient span {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-arrows-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: var(--ag-transition);
}
.section-arrow-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.section-filter-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 22px 0;
}
.filter-pill-tab {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: 1px solid var(--ag-border, #e2e8f0);
  cursor: pointer;
  background: #f1f5f9;
  color: #64748b;
  transition: var(--ag-transition);
  outline: none;
}
.filter-pill-tab:hover:not(.active) {
  background: #e2e8f0;
  color: #1e293b;
}
.filter-pill-tab:focus-visible {
  outline: 2px solid var(--ag-primary, #ea580c);
  outline-offset: 2px;
}
.filter-pill-tab.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

[data-theme="dark"] .filter-pill-tab {
  background: #1e293b;
  color: #94a3b8;
  border-color: #334155;
}
[data-theme="dark"] .filter-pill-tab:hover:not(.active) {
  background: #334155;
  color: #f1f5f9;
}
[data-theme="dark"] .filter-pill-tab.active {
  background: var(--ag-primary, #ea580c);
  color: #ffffff;
  border-color: var(--ag-primary, #ea580c);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.products-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1200px) {
  .products-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .products-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 500px) {
  .products-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

/* Apple Gadgets BD Clean Card (Screenshot 1) */
.ag-clean-product-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.ag-clean-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}
.ag-clean-product-card .img-box {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: transparent;
  margin-bottom: 12px;
}
.ag-clean-product-card .img-box img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.ag-clean-product-card:hover .img-box img {
  transform: scale(1.06);
}
.ag-clean-product-card .product-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 12px;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ag-clean-product-card .price-row-clean {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 6px;
}
.ag-clean-product-card .main-price {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}
.ag-clean-product-card .old-price {
  font-size: 12.5px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 2px;
}
.ag-clean-product-card .discount-pill {
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
}
.ag-clean-product-card .stockout-pill,
.stockout-pill {
  font-size: 11px;
  font-weight: 700;
  color: #ef4444;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
}
.ag-clean-product-card.is-stockout .img-box img,
.product-card.is-stockout .product-image-box img,
.trending-popup-card.is-stockout img {
  filter: grayscale(25%);
}
.ag-clean-product-card.is-stockout:hover .img-box img {
  filter: grayscale(0%);
}
.badge-pill.outofstock {
  background: #ef4444 !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* ==========================================================================
   SEARCH BAR TRENDING POPUP OVERLAY (Apple Gadgets BD Exact Layout)
   ========================================================================== */
.search-trending-popup {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, 94vw);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 26px 30px;
  z-index: 1000;
  box-sizing: border-box;
  text-align: left;
}
.search-trending-popup.active {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  animation: searchPopupFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes searchPopupFadeIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Left: Trending Search Column */
.trending-search-col {
  border-right: 1px solid #f1f5f9;
  padding-right: 20px;
}
.trending-col-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}
.trending-keywords-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.trending-keyword-item {
  font-size: 13.5px;
  color: #475569;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  text-decoration: none;
}
.trending-keyword-item:hover {
  color: var(--ag-primary);
  font-weight: 700;
  transform: translateX(4px);
}

/* Right: Trending Products Section */
.trending-products-section {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.trending-products-scroll-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 10px;
}
.trending-products-scroll-grid::-webkit-scrollbar {
  width: 5px;
}
.trending-products-scroll-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}
.trending-products-scroll-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
.trending-products-scroll-grid::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Individual Trending Product Card */
.trending-popup-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}
.trending-popup-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.trending-popup-card .card-img-wrap {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-bottom: 8px;
}
.trending-popup-card .card-img-wrap img {
  max-height: 110px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.trending-popup-card:hover .card-img-wrap img {
  transform: scale(1.06);
}
.trending-popup-card .card-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 8px;
  min-height: 34px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trending-popup-card .card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 4px;
}
.trending-popup-card .card-offer-price {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}
.trending-popup-card .card-old-price {
  font-size: 11.5px;
  color: #94a3b8;
  text-decoration: line-through;
}
.trending-popup-card .card-discount-badge {
  font-size: 10px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .search-trending-popup.active {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }
  .trending-search-col {
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding-right: 0;
    padding-bottom: 16px;
  }
  .trending-keywords-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .trending-keyword-item {
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
  }
  .trending-products-scroll-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   COMPLETE EMI SYSTEM REMOVAL / DISABLE
   ========================================================================== */
.emi-tag,
.emi-helper-btn,
.detail-emi-box,
[data-method="0% EMI"],
#qv-emi {
  display: none !important;
}

/* ==========================================================================
   EXPLORE MORE BUTTON
   ========================================================================== */
.explore-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  padding: 6px 14px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.explore-more-btn:hover {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
  transform: translateX(2px);
}
.explore-more-btn i {
  font-size: 11px;
  transition: transform 0.2s ease;
}
.explore-more-btn:hover i {
  transform: translateX(3px);
}

/* ==========================================================================
   CATALOG / LISTING PAGE (products.html)
   ========================================================================== */
.catalog-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  margin-top: 24px;
  margin-bottom: 60px;
}

.catalog-sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-group-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 12px;
}

.cat-filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.cat-filter-list::-webkit-scrollbar {
  width: 5px;
}

.cat-filter-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.cat-filter-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.cat-filter-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.cat-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  user-select: none;
}

.cat-filter-item:hover, .cat-filter-item.active {
  background: #f8fafc;
  color: #ea580c;
  font-weight: 700;
}

.price-filter-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-input-box {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}

.catalog-header-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.catalog-sort-select {
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  outline: none;
  cursor: pointer;
}

.catalog-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar {
    display: none;
  }
  .catalog-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

/* ==========================================================================
   PRE-ORDER PAGE STYLES (Screenshot 4 1:1)
   ========================================================================== */
.preorder-container {
  max-width: 760px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
}

.preorder-hero-title {
  font-size: 38px;
  font-weight: 800;
  text-align: center;
  color: #1e293b;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.preorder-form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: 0 4px 25px -4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.preorder-form-group {
  margin-bottom: 22px;
}

.preorder-form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.preorder-form-label span.req {
  color: #ef4444;
  margin-left: 2px;
}

.preorder-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #1e293b;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.preorder-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.phone-otp-wrap {
  display: flex;
  gap: 10px;
}

.send-otp-btn {
  background: #f97316;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 22px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.send-otp-btn:hover {
  background: #ea580c;
}

.upload-drag-area {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.upload-drag-area:hover {
  border-color: #f97316;
  background: #fff7ed;
}

.upload-drag-area i {
  font-size: 32px;
  color: #94a3b8;
  margin-bottom: 10px;
  display: block;
}

.upload-drag-text {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

.upload-drag-text span {
  color: #f97316;
  text-decoration: underline;
}

.upload-drag-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.preorder-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 28px 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.preorder-terms-row a {
  color: #f97316;
  text-decoration: underline;
}

.preorder-submit-btn {
  width: 100%;
  background: #f97316;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.preorder-submit-btn:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

/* ==========================================================================
   PRODUCT SIZE SELECTION SYSTEM & WISHLIST
   ========================================================================== */
.detail-code-and-actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.product-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-action-pill {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}
.product-action-pill:hover {
  border-color: var(--ag-primary) !important;
  background: #fff7ed !important;
  color: var(--ag-primary) !important;
  transform: translateY(-1px);
}
.size-selection-wrap {
  margin: 18px 0 20px 0;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.size-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.size-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.size-selected-display {
  font-size: 13px;
  font-weight: 700;
  color: var(--ag-primary);
}

.size-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-pill-btn {
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.size-pill-btn:hover {
  border-color: var(--ag-primary);
  color: var(--ag-primary);
  background: #fffaf5;
}

.size-pill-btn.selected {
  background: var(--ag-primary);
  border-color: var(--ag-primary);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(241, 126, 35, 0.35);
}

.size-pill-btn.out-of-stock {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  position: relative;
}

.size-pill-btn.out-of-stock.selected {
  background: #fef2f2;
  border-color: #ef4444;
  color: #dc2626;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.size-oos-tag {
  font-size: 9.5px;
  font-weight: 800;
  background: #fee2e2;
  color: #dc2626;
  padding: 1px 4px;
  border-radius: 4px;
}

.btn-join-waitlist {
  width: 100%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 14.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: all 0.2s;
  margin-top: 8px;
}

.btn-join-waitlist:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-1px);
}

/* Wishlist Drawer Modal */
.wishlist-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.wishlist-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.wishlist-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  z-index: 1001;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 35px rgba(0, 0, 0, 0.25);
}

.wishlist-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.wishlist-header {
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  color: #ffffff;
}

.wishlist-header h3 {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-wishlist-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.close-wishlist-btn:hover {
  color: #ffffff;
}

.wishlist-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.wishlist-item-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #ffffff;
  align-items: center;
  transition: all 0.2s;
}

.wishlist-item-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.wishlist-thumb {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
  padding: 4px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.wishlist-details {
  flex: 1;
  min-width: 0;
}

.wishlist-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wishlist-size-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  padding: 2px 7px;
  border-radius: 5px;
  margin-bottom: 6px;
}

.wishlist-price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ag-primary);
}

.wishlist-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-top: 4px;
}

.wishlist-status-badge.in_stock {
  background: #dcfce7;
  color: #15803d;
}

.wishlist-status-badge.waiting {
  background: #fef3c7;
  color: #b45309;
}

.wishlist-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.btn-wishlist-buy {
  background: var(--ag-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-wishlist-buy:hover {
  background: #d97706;
}

.btn-wishlist-remove {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
}

.btn-wishlist-remove:hover {
  color: #ef4444;
}

/* ==========================================================================
   USER ACCOUNT FLOATING DROPDOWN
   ========================================================================== */
.account-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 12px;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.97);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-account-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 12px 10px;
}

.user-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.35);
  flex-shrink: 0;
}

.user-meta-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-meta-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-meta-email {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 0;
}

.user-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.user-dropdown-link i {
  font-size: 14px;
  color: #64748b;
  width: 18px;
  text-align: center;
  transition: color 0.18s ease;
}

.user-dropdown-link .link-label {
  flex: 1;
}

.user-dropdown-link:hover {
  background: #fff7ed;
  color: var(--ag-primary);
}

.user-dropdown-link:hover i {
  color: var(--ag-primary);
}

.dropdown-counter-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.dropdown-counter-badge.badge-cancelled {
  background: #fee2e2;
  color: #dc2626;
}

.user-dropdown-link.logout-btn {
  color: #ef4444;
}

.user-dropdown-link.logout-btn i {
  color: #ef4444;
}

.user-dropdown-link.logout-btn:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Universal Order Status Pills & Badges */
.portal-status-badge.status-pending,
.tracking-status-pill.status-pending {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

.portal-status-badge.status-ontheway,
.tracking-status-pill.status-ontheway {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

/* Copy Order ID Button */
.copy-order-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}
.copy-order-btn:hover {
  background: var(--ag-primary-light, #fff5ed);
  color: var(--ag-primary, #ea580c);
  border-color: var(--ag-primary, #ea580c);
  transform: translateY(-1px);
}

/* ==========================================
   UNIVERSAL TOAST & PROFILE NOTIFICATIONS
   ========================================== */
#ag-global-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.ag-toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 440px;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  border-left: 5px solid #10b981;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.ag-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.ag-toast-success {
  border-left-color: #10b981;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.ag-toast-success i {
  color: #10b981;
  font-size: 18px;
}

.ag-toast-error {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.ag-toast-error i {
  color: #ef4444;
  font-size: 18px;
}

/* Inline Profile Alerts */
.profile-inline-alert {
  margin-top: 14px;
  display: none;
}

.profile-inline-alert.active {
  display: block;
  animation: agFadeInSlide 0.3s ease;
}

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

.alert-box-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  color: #065f46;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.alert-box-success i {
  font-size: 20px;
  color: #10b981;
  flex-shrink: 0;
}

.alert-box-error {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fef2f2;
  border: 1.5px solid #ef4444;
  color: #991b1b;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.alert-box-error i {
  font-size: 20px;
  color: #ef4444;
  flex-shrink: 0;
}

/* Button Saved Success State */
.btn-save-profile.btn-saved-success {
  background: #16a34a !important;
  color: #ffffff !important;
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  transition: all 0.25s ease;
}

/* Saved Address Live Preview Box */
.saved-address-preview-box {
  margin-top: 18px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.saved-address-preview-box.highlight {
  border-color: #10b981;
  background: #f0fdf4;
}

.saved-address-preview-box .preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.saved-address-preview-box .preview-badge {
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.saved-address-preview-box .preview-zone {
  font-size: 11.5px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 8px;
  border-radius: 20px;
}

.saved-address-preview-box .preview-street {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.saved-address-preview-box .preview-city {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Elegant Solid Black Apply Price Button */
.btn-apply-price-black {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #0f172a !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 9px 14px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2) !important;
  letter-spacing: 0.2px !important;
}

.btn-apply-price-black:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.3) !important;
}

.btn-apply-price-black:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.2) !important;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ===================================================
   Live Order Tracking - Horizontal Progress Stepper
   =================================================== */
.tracking-stepper-wrap,
.tracking-timeline-card {
  margin: 28px 0 36px 0 !important;
  padding: 28px 20px 22px 20px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.04) !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.stepper-timeline,
.timeline-step-track {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  position: relative !important;
  width: 100% !important;
  min-width: 600px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.stepper-timeline::before,
.timeline-step-line {
  content: '' !important;
  position: absolute !important;
  top: 24px !important;
  left: calc(100% / 12) !important;
  right: calc(100% / 12) !important;
  height: 4px !important;
  background: #e2e8f0 !important;
  border-radius: 4px !important;
  z-index: 1 !important;
}

.stepper-progress-fill,
.timeline-step-line-fill {
  position: absolute !important;
  top: 24px !important;
  left: calc(100% / 12) !important;
  height: 4px !important;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 100%) !important;
  border-radius: 4px !important;
  z-index: 2 !important;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.45) !important;
}

.step-item {
  position: relative !important;
  z-index: 3 !important;
  text-align: center !important;
  flex: 1 !important;
  min-width: 90px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.step-icon-circle {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 3px solid #e2e8f0 !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 12px auto !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

.step-item.active .step-icon-circle {
  border-color: #ea580c !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.22), 0 4px 14px rgba(234, 88, 12, 0.35) !important;
  transform: scale(1.08) !important;
}

.step-item.completed .step-icon-circle {
  border-color: #f97316 !important;
  background: #fff7ed !important;
  color: #ea580c !important;
}

.step-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  margin-bottom: 4px !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.step-item.active .step-title,
.step-item.completed .step-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.step-item.active .step-title {
  color: #ea580c !important;
}

.step-desc {
  font-size: 11px !important;
  color: #94a3b8 !important;
  max-width: 125px !important;
  margin: 0 auto !important;
  line-height: 1.35 !important;
  text-align: center !important;
}

.step-item.active .step-desc {
  color: #475569 !important;
  font-weight: 500 !important;
}

@media (max-width: 768px) {
  .tracking-stepper-wrap,
  .tracking-timeline-card {
    padding: 20px 10px 18px 10px !important;
    margin: 18px 0 24px 0 !important;
  }
  .stepper-timeline,
  .timeline-step-track {
    flex-direction: row !important;
    justify-content: space-between !important;
    min-width: 600px !important;
  }
  .stepper-timeline::before,
  .timeline-step-line,
  .stepper-progress-fill,
  .timeline-step-line-fill {
    display: block !important;
  }
  .step-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .step-icon-circle {
    margin: 0 auto 10px auto !important;
  }
}

/* ==========================================================================
   POLICY & LEGAL PAGES STYLING (Refund, Delivery, Privacy, Cookies)
   ========================================================================== */
/* Arogga-Style Clean Editorial Policy Layout (Light Card & Mobile Responsive) */
.policy-page-wrap {
  padding: 24px 0 56px 0;
  max-width: 1180px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  overflow-x: clip;
  box-sizing: border-box;
}

.policy-header-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 26px 30px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .policy-header-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.policy-header-card::before {
  display: none;
}

.policy-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.policy-breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.policy-breadcrumbs a:hover {
  color: #0d9488;
}

.policy-breadcrumbs i {
  font-size: 10px;
  opacity: 0.7;
}

.policy-main-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  letter-spacing: -0.3px;
}

[data-theme="light"] .policy-main-title {
  color: #0f172a;
}

.policy-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.policy-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdfa;
  color: #0d9488;
  border: 1px solid #ccfbf1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.policy-updated-badge {
  font-size: 12.5px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.policy-intro-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
  max-width: 960px;
  margin: 0;
}

[data-theme="light"] .policy-intro-text {
  color: #334155;
}

/* Two Column Layout */
.policy-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Content Column (Unified White Arogga Editorial Card) */
.policy-content-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.policy-arogga-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 26px 30px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.policy-doc-section {
  scroll-margin-top: 100px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.policy-doc-section.first-section {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.policy-doc-heading {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.policy-doc-body {
  font-size: 14px;
  line-height: 1.72;
  color: #334155;
  word-break: break-word;
}

.policy-doc-body p {
  margin: 0 0 10px 0;
}

.policy-doc-body p:last-child {
  margin-bottom: 0;
}

.policy-doc-body ul {
  margin: 6px 0 10px 0;
  padding-left: 20px;
}

.policy-doc-body li {
  margin-bottom: 6px;
}

.policy-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 26px;
  scroll-margin-top: 100px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .policy-section-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.policy-section-card:hover {
  border-color: #cbd5e1;
}

.policy-section-header {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-section-pill {
  display: none;
}

.policy-section-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.4;
}

[data-theme="light"] .policy-section-title {
  color: #0f172a;
}

.policy-section-body {
  font-size: 14px;
  line-height: 1.72;
  color: #334155;
  word-break: break-word;
}

[data-theme="light"] .policy-section-body {
  color: #334155;
}

.policy-section-body p {
  margin: 0 0 10px 0;
}

.policy-section-body p:last-child {
  margin-bottom: 0;
}

.policy-section-body ul,
.policy-list {
  margin: 6px 0 12px 0;
  padding-left: 20px;
}

.policy-section-body ul li,
.policy-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.policy-section-body a {
  color: var(--ag-primary, #ea580c);
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.policy-section-body a:visited {
  color: var(--ag-primary, #ea580c);
}

.policy-section-body a:hover {
  opacity: 0.85;
}

.policy-section-body a:focus-visible {
  outline: 2px solid var(--ag-primary, #ea580c);
  outline-offset: 2px;
}


/* Sticky TOC Sidebar */
.policy-sidebar-col {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.policy-toc-card {
  background: var(--ag-card-bg, #ffffff);
  border: 1px solid var(--ag-border, #e2e8f0);
  border-radius: var(--ag-radius-lg, 14px);
  padding: 22px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .policy-toc-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.policy-toc-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.policy-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.policy-toc-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1.4;
}

[data-theme="light"] .policy-toc-list li a {
  color: #64748b;
}

.policy-toc-list li a i {
  font-size: 10px;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.policy-toc-list li a:hover {
  background: rgba(234, 88, 12, 0.08);
  color: var(--ag-primary, #ea580c);
  transform: translateX(4px);
}

.policy-toc-list li a.active {
  background: rgba(234, 88, 12, 0.12);
  color: var(--ag-primary, #ea580c) !important;
  font-weight: 700;
  border-left: 3px solid var(--ag-primary, #ea580c);
}

.policy-toc-list li a.active i {
  opacity: 1;
  color: var(--ag-primary, #ea580c);
}

/* Dynamic Support Contact Block */
.policy-support-card {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.08) 0%, rgba(15, 23, 42, 0.4) 100%);
  border: 1px solid rgba(234, 88, 12, 0.25);
  border-radius: var(--ag-radius-lg, 16px);
  padding: 28px;
  margin-top: 10px;
}

[data-theme="light"] .policy-support-card {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fed7aa;
}

.policy-support-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.policy-support-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ag-primary, #ea580c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.policy-support-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ag-text, #f8fafc);
  margin: 0;
}

[data-theme="light"] .policy-support-title {
  color: #0f172a;
}

.policy-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.support-item-box {
  background: var(--ag-card-bg, #111420);
  border: 1px solid var(--ag-border, #1f2333);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[data-theme="light"] .support-item-box {
  background: #ffffff;
  border-color: #fed7aa;
}

.support-item-label {
  font-size: 11.5px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.support-item-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--ag-primary, #ea580c);
  text-decoration: none;
  word-break: break-all;
}

.support-item-val:hover {
  text-decoration: underline;
}

/* Print Friendly Styles */
@media print {
  header, footer, .announcement-bar, .policy-sidebar-col, #ag-assistant-root {
    display: none !important;
  }
  body, .policy-page-wrap {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
  }
  .policy-grid-layout {
    display: block !important;
  }
  .policy-section-card {
    border: none !important;
    box-shadow: none !important;
    padding: 12px 0 !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .policy-grid-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .policy-sidebar-col {
    position: relative;
    top: 0;
    order: -1;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .policy-toc-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .policy-toc-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 8px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .policy-toc-list li {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 600px) {
  .policy-page-wrap {
    padding: 16px 0 36px 0;
  }
  .policy-header-card {
    padding: 18px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
  }
  .policy-toc-card {
    padding: 16px 14px;
    border-radius: 12px;
  }
  .policy-arogga-card,
  .policy-section-card {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .policy-doc-heading,
  .policy-section-title {
    font-size: 15px;
  }
  .policy-doc-body,
  .policy-section-body {
    font-size: 13.5px;
    line-height: 1.68;
  }
  .policy-support-card {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .policy-support-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* ==========================================================================
   HOMEPAGE HERO MEDIA PREVIEW & LEFT COLUMN STYLES
   ========================================================================== */
.hero-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.hero-left-col .hero-slider-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

.hero-left-col.has-media .hero-slider-wrap {
  height: clamp(340px, 30vw, 420px);
}

.hero-media-preview-area {
  background: #ffffff;
  border-radius: var(--ag-radius-lg);
  border: 1px solid var(--ag-border);
  box-shadow: var(--ag-shadow-sm);
  overflow: hidden;
  transition: var(--ag-transition);
}

.hero-media-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: var(--ag-radius-lg);
  height: 100%;
}

.hero-media-thumb-box {
  position: relative;
  width: 180px;
  min-width: 180px;
  aspect-ratio: 16 / 9;
  border-radius: var(--ag-radius);
  overflow: hidden;
  background: #000000;
  cursor: pointer;
}

.hero-media-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-media-thumb-box:hover .hero-media-thumb-img {
  transform: scale(1.05);
}

.hero-media-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease;
}

.hero-media-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ea580c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
  transition: transform 0.2s ease;
}

.hero-media-thumb-box:hover .hero-media-play-btn {
  transform: scale(1.1);
}

.hero-media-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-media-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  width: fit-content;
}

.hero-media-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-media-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-media-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ea580c;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.hero-media-cta:hover {
  color: #c2410c;
}

@media (max-width: 768px) {
  .hero-media-card {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  .hero-media-thumb-box {
    width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   PRODUCT VIDEO & SOCIAL MEDIA TAB STYLES
   ========================================================================== */
.product-media-tab-card {
  background: #ffffff;
  border-radius: var(--ag-radius);
  border: 1px solid var(--ag-border);
  padding: 24px;
}

.product-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.product-media-card {
  border-radius: var(--ag-radius);
  border: 1px solid var(--ag-border);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--ag-shadow-sm);
  transition: var(--ag-transition);
}

.product-media-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ag-shadow-md);
}

.product-media-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
  cursor: pointer;
}

.product-media-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-media-thumb-wrap:hover .product-media-thumb-img {
  transform: scale(1.03);
}

.product-media-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease;
}

.product-media-play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ea580c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.5);
  transition: transform 0.2s ease;
}

.product-media-thumb-wrap:hover .product-media-play-icon {
  transform: scale(1.1);
}

.product-media-info {
  padding: 14px 16px;
}

.product-media-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.product-media-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 12px;
}

/* ==========================================================================
   CUSTOMER PROFILE PURE-BLACK LOYALTY POINTS CARD
   ========================================================================== */
.loyalty-stat-pill-black {
  background: #000000 !important;
  border: 1.5px solid #27272a !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.loyalty-stat-pill-black:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
  border-color: #ea580c !important;
}

.loyalty-stat-pill-black .num {
  color: #f97316 !important;
  font-weight: 900 !important;
  font-size: 24px !important;
  display: block;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.loyalty-stat-pill-black .label {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.loyalty-stat-pill-black .label i {
  color: #f97316 !important;
  font-size: 13px;
}

/* ==========================================================================
   FULL-WIDTH SLEEK HERO BANNER SLIDER (1024 x 283 ASPECT RATIO)
   ========================================================================== */
.hero-fullwidth-section {
  width: 100%;
  max-width: 100%;
  margin: 14px auto 22px auto;
  padding: 0;
}

.hero-slider-wide {
  width: 100%;
  aspect-ratio: 1024 / 283;
  height: auto !important;
  min-height: unset !important;
  max-height: unset !important;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: #0f172a;
}

.hero-slider-wide .hero-slides-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slider-wide .hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slider-wide .hero-slide-link,
.hero-slider-wide .hero-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slider-wide .hero-slide-img,
.hero-slider-wide .hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--slide-focal, 50% 50%);
  display: block;
  min-height: unset;
  max-height: unset;
}

.hero-slider-wide .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
  color: #1e293b;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  font-size: 13px;
}

.hero-slider-wide .slider-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.hero-slider-wide .slider-arrow.prev { left: 14px; }
.hero-slider-wide .slider-arrow.next { right: 14px; }

@media (min-width: 901px) {
  .category-navbar {
    min-height: 44px;
  }
}

.hero-slider-wide .slider-dots,
.hero-fullwidth-section .slider-dots.hero-dots-below {
  position: static !important;
  transform: none !important;
  left: auto !important;
  bottom: auto !important;
  display: flex !important;
  gap: 7px !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 11px;
  margin: 12px auto 0 auto !important;
  z-index: 10;
}

.hero-slider-wide .slider-dot,
.hero-fullwidth-section .slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.hero-slider-wide .slider-dot.active,
.hero-fullwidth-section .slider-dot.active {
  width: 11px;
  height: 11px;
  background: #0d9488;
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.18);
}

@media (max-width: 768px) {
  .hero-fullwidth-section {
    padding: 0;
    margin: 8px auto 16px auto !important;
  }
  .hero-slider-wide {
    border-radius: 12px !important;
    aspect-ratio: 1024 / 295 !important;
    min-height: 100px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
  }
  .hero-slider-wide .slider-arrow {
    display: none !important;
  }
  .hero-slider-wide .slider-dots,
  .hero-fullwidth-section .slider-dots.hero-dots-below {
    gap: 6px !important;
    margin-top: 9px !important;
  }
  .hero-slider-wide .slider-dot,
  .hero-fullwidth-section .slider-dot {
    width: 8px;
    height: 8px;
  }
  .hero-slider-wide .slider-dot.active,
  .hero-fullwidth-section .slider-dot.active {
    width: 10px;
    height: 10px;
  }
}

/* ==========================================================================
   AROGGA-STYLE CLEAN PRODUCT CARD (Full-Bleed Rectangular Photo + ADD Button)
   ========================================================================== */
.ag-clean-product-card {
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 12px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  overflow: hidden !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease !important;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.ag-clean-product-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  border-color: #e2e8f0 !important;
}

/* Top-left corner discount badge (Matches Arogga reference) */
.prod-badge-discount {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 3 !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  text-align: center !important;
  padding: 4px 7px !important;
  border-radius: 0 0 8px 0 !important;
  pointer-events: none !important;
  text-transform: uppercase !important;
}

.prod-badge-discount.flash {
  background: #ef4444 !important;
  padding: 4px 8px !important;
}

/* Full-size rectangular product photo: ZERO border, ZERO inner padding/gaps */
.ag-clean-product-card .img-box {
  position: relative !important;
  width: 100% !important;
  height: 210px !important;
  background: #f8fafc !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  overflow: hidden !important;
}

.ag-clean-product-card .img-box img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  display: block !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: transform 0.25s ease !important;
}

.ag-clean-product-card:hover .img-box img {
  transform: scale(1.04) !important;
}

.ag-clean-product-card .prod-card-body {
  padding: 10px 12px 12px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

/* Delivery pill below image, above product title */
.prod-badge-express {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  padding: 2px 8px 2px 3px !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  width: fit-content !important;
  margin-bottom: 6px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.2px !important;
}

.prod-badge-express .express-icon-dot {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #0f172a !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 8px !important;
  flex-shrink: 0 !important;
}

.ag-clean-product-card .product-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  line-height: 1.35 !important;
  margin: 0 0 4px 0 !important;
  min-height: 35px !important;
  height: 35px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.prod-card-rating {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 12px !important;
  color: #f59e0b !important;
  margin: 0 0 8px 0 !important;
  line-height: 1 !important;
  flex-wrap: nowrap !important;
}

.prod-card-rating .prod-card-stars {
  display: inline-flex !important;
  align-items: center !important;
  gap: 1.5px !important;
}

.prod-card-rating .rating-avg {
  color: #0f172a !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  margin-left: 2px !important;
}

.prod-card-rating .rating-count {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  margin-left: 1px !important;
}

.prod-card-footer {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: 2px !important;
  border: none !important;
}

.prod-card-prices {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
}

.prod-card-old-price {
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
}

.prod-card-selling-price {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.15 !important;
}

/* Teal Outlined ADD button (Exact Arogga Reference) */
.prod-card-add-btn {
  background: #f0fdfa !important;
  color: #0d9488 !important;
  border: 1px solid #14b8a6 !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 5px 14px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  line-height: 1.2 !important;
  flex-shrink: 0 !important;
}

.prod-card-add-btn:hover {
  background: #0d9488 !important;
  color: #ffffff !important;
  border-color: #0d9488 !important;
}

.prod-card-add-btn.stockout {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1.5px solid #fb923c !important;
  padding: 5px 10px !important;
  gap: 4px !important;
  cursor: pointer !important;
  font-size: 11px !important;
}
.prod-card-add-btn.stockout:hover {
  background: #ea580c !important;
  color: #ffffff !important;
  border-color: #ea580c !important;
}
.prod-badge-stockout {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  z-index: 4 !important;
  background: rgba(220, 38, 38, 0.94) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.28) !important;
}

/* Flash Deals Grid sizing on homepage to fit 5 crisp Arogga cards */
#products-grid-container.products-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

@media (max-width: 1200px) {
  #products-grid-container.products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  #products-grid-container.products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  #products-grid-container.products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .ag-clean-product-card {
    padding: 0 !important;
    border-radius: 10px !important;
    min-width: 0 !important;
  }
  .prod-badge-discount {
    font-size: 8px !important;
    padding: 3px 5px !important;
    border-radius: 0 0 6px 0 !important;
  }
  .prod-badge-discount.flash {
    padding: 3px 5px !important;
  }
  .ag-clean-product-card .img-box {
    height: 110px !important;
    margin-bottom: 0 !important;
  }
  .ag-clean-product-card .prod-card-body {
    padding: 6px 6px 8px 6px !important;
  }
  .prod-badge-express {
    font-size: 7.5px !important;
    padding: 1px 5px 1px 2px !important;
    margin-bottom: 4px !important;
    gap: 3px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }
  .prod-badge-express .express-icon-dot {
    width: 12px !important;
    height: 12px !important;
    font-size: 6.5px !important;
  }
  .ag-clean-product-card .product-name {
    font-size: 11px !important;
    line-height: 1.25 !important;
    min-height: 28px !important;
    height: 28px !important;
    margin: 0 0 4px 0 !important;
  }
  .prod-card-rating {
    font-size: 9px !important;
    gap: 2px !important;
    margin: 0 0 5px 0 !important;
  }
  .prod-card-rating .prod-card-stars {
    gap: 1px !important;
  }
  .prod-card-rating .rating-avg {
    font-size: 9.5px !important;
    margin-left: 1px !important;
  }
  .prod-card-rating .rating-count {
    font-size: 9px !important;
    margin-left: 1px !important;
  }
  .prod-card-footer {
    gap: 4px !important;
    align-items: center !important;
  }
  .prod-card-old-price {
    font-size: 9.5px !important;
  }
  .prod-card-selling-price {
    font-size: 12px !important;
  }
  .prod-card-add-btn {
    padding: 3px 6px !important;
    font-size: 9.5px !important;
    border-radius: 5px !important;
  }
}

@media (max-width: 720px) {
  #reviews-summary-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  #reviews-summary-grid > div:first-child {
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-right: 0 !important;
    padding-bottom: 14px !important;
  }
  #product-review-form > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   AROGGA-STYLE CART DRAWER + EXPANDABLE PAYMENT SUMMARY SHEET (DESKTOP & MOBILE)
   ========================================================================== */
.arogga-cart-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f8fafc;
}

.arogga-cart-stage .cart-items-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px !important;
  background: #f8fafc;
}

.arogga-select-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 10px;
}

.arogga-select-bar label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  margin: 0;
}

.arogga-teal-check {
  width: 18px;
  height: 18px;
  accent-color: #0d9488;
  cursor: pointer;
  flex-shrink: 0;
}

.arogga-cart-item-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.arogga-cart-item-thumb {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.arogga-cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.arogga-cart-disc-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #2563eb;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1.05;
  text-align: center;
}

.arogga-cart-qty-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.25px solid #0d9488;
  border-radius: 8px;
  padding: 3px 8px;
  background: #ffffff;
  color: #0d9488;
  font-size: 12.5px;
  font-weight: 700;
}

.arogga-cart-qty-pill button {
  background: none;
  border: none;
  color: #0d9488;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.fp-cart-variant-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.fp-cart-variant-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 2px 6px;
}

.fp-cart-variant-select {
  border: none;
  background: transparent;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  padding-right: 2px;
  max-width: 120px;
}

.arogga-delivery-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  margin-top: 8px;
}

.arogga-change-addr-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  flex-shrink: 0;
}

.arogga-change-addr-btn:hover {
  border-color: #0d9488;
  color: #0d9488;
}

#cart-payment-summary-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: rgba(15, 23, 42, 0.52);
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  animation: fpFadeOverlay 0.18s ease-out;
}

#cart-payment-summary-overlay.open {
  display: flex;
}

@keyframes fpFadeOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.arogga-summary-close-float {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  margin: 0 auto 10px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.arogga-summary-sheet-card {
  background: #ffffff;
  border-radius: 18px 18px 0 0;
  padding: 12px 18px 18px 18px;
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.16);
}

.arogga-summary-handle {
  width: 40px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 9999px;
  margin: 0 auto 12px auto;
}

.arogga-summary-inner-box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13.5px;
  color: #334155;
}

.arogga-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.arogga-summary-row.payable-row {
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

#cart-drawer .cart-drawer-footer {
  padding: 0 !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  position: relative;
  z-index: 30;
}

.arogga-free-bar {
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef9c3;
  color: #0f172a;
  border-bottom: 1px solid #fde68a;
}

.arogga-free-bar.unlocked {
  background: #ecfdf5;
  color: #065f46;
  border-bottom-color: #a7f3d0;
}

.arogga-cart-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) 16px;
  background: #ffffff;
}

.arogga-summary-trigger {
  background: none;
  border: none;
  padding: 4px 2px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arogga-summary-trigger .payable-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
}

.arogga-summary-trigger .saved-line {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

#cart-drawer .arogga-checkout-pill {
  background: #0d9488 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 22px !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  min-width: 148px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25) !important;
  flex-shrink: 0;
}

#cart-drawer .arogga-checkout-pill:hover {
  background: #0f766e !important;
}

/* ==========================================================================
   DESKTOP HEADER PILL CLUSTER (Account -> Orders -> Inbox -> Cart)
   ========================================================================== */
html.fp-hdr-booting .header-actions {
  visibility: hidden;
}

.header-account-slot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hpill-acc-label {
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.15;
  gap: 1px;
  transition: color 0.2s ease;
}

.hpill-acc-title {
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.15;
}

.hpill-acc-balance {
  color: #fb923c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.1px;
}

.header-account-slot:hover .hpill-acc-title {
  color: var(--ag-primary);
}

.header-action-link {
  position: relative;
  color: #e5e7eb !important;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid #27272a;
  background: #14151a;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--ag-transition);
}

.header-action-link:hover,
.header-action-link.active {
  border-color: var(--ag-primary);
  color: var(--ag-primary) !important;
  background: #1c1d24;
}

.header-count-pill {
  background: var(--ag-primary);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ==========================================================================
   DEDICATED SEARCH PAGE (/search) & FLOATING SCROLL-TO-TOP BUTTON
   ========================================================================== */
.fp-scroll-top-btn {
  position: fixed;
  right: 28px;
  bottom: 88px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #0f172a;
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.24);
  z-index: 99985;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, visibility 0.2s ease;
}
.fp-scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.fp-scroll-top-btn:hover {
  background: #ea580c;
  border-color: #ea580c;
  transform: translateY(-2px) scale(1.04);
}
@media (max-width: 900px) {
  .fp-scroll-top-btn {
    right: 16px;
    bottom: calc(138px + env(safe-area-inset-bottom, 0px));
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
}

.fp-search-clear-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  font-size: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 6px;
  transition: background-color 0.15s ease;
}
.fp-search-clear-btn.visible {
  display: inline-flex;
}
.fp-search-clear-btn:hover {
  background: rgba(234, 88, 12, 0.85);
  color: #ffffff;
}

.fp-hidden-for-search {
  display: none !important;
}

.search-page-main {
  padding-top: 20px;
  padding-bottom: 64px;
}
#search-results-view {
  padding-bottom: 24px;
}
.fp-search-breadcrumbs {
  margin-top: 2px;
  margin-bottom: 16px;
}

.fp-nav-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #ea580c, #fb923c);
  z-index: 100050;
  opacity: 0;
  transition: width 0.22s ease, opacity 0.2s ease;
  pointer-events: none;
}
.fp-nav-progress-bar.active {
  width: 72%;
  opacity: 1;
}

.search-landing-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-recent-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
}
.search-recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.search-recent-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
}
.search-recent-clear-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
}
.search-recent-clear-btn:hover {
  text-decoration: underline;
}
.search-recent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.search-recent-chip:hover {
  border-color: #ea580c;
  color: #ea580c;
  background: #fff7ed;
}

.search-banners-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.search-promo-banner-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #0f172a;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.search-promo-banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(234, 88, 12, 0.15);
}
body.fp-in-search-mode #search-results-dropdown,
body.fp-in-search-mode #search-trending-popup {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.search-promo-banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 4.2;
  min-height: 120px;
  max-height: 250px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.search-promo-banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0));
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-trending-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px 8px;
}
.search-trending-heading {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
}
.search-trending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  padding: 12px 4px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.search-trending-row:last-child {
  border-bottom: none;
}
.search-trending-row:hover {
  color: #ea580c;
  padding-left: 8px;
}
.search-trending-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-trending-icon {
  color: #ea580c;
  font-size: 15px;
}
.search-trending-arrow {
  color: #94a3b8;
  font-size: 12px;
}

/* Search Results View */
.search-results-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.search-filter-sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 106px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.search-filter-sidebar::-webkit-scrollbar {
  width: 6px;
}
.search-filter-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.filter-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}
.filter-sidebar-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.filter-clear-link {
  background: none;
  border: none;
  color: #ea580c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}
.filter-clear-link:hover {
  text-decoration: underline;
}
.filter-block {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.filter-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.filter-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.filter-block-head strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
}
.filter-option-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 195px;
  overflow-y: auto;
}
.filter-check-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}
.filter-check-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.filter-check-left input {
  accent-color: #ea580c;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.filter-check-count {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}
.filter-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.filter-price-inputs input {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 12.5px;
  color: #0f172a;
}
.filter-price-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.filter-preset-pill {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.filter-preset-pill.active,
.filter-preset-pill:hover {
  border-color: #ea580c;
  background: #fff7ed;
  color: #ea580c;
}
.filter-brand-search {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 12.5px;
  margin-bottom: 8px;
}

.search-results-main {
  min-width: 0;
}
.search-results-topbar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.search-results-heading {
  font-size: 14.5px;
  color: #334155;
  font-weight: 600;
}
.search-results-heading strong {
  color: #0f172a;
}
.search-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fp-custom-dd-wrap {
  position: relative;
}
.fp-custom-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
}
.fp-custom-dd-trigger:hover,
.fp-custom-dd-wrap.open .fp-custom-dd-trigger {
  border-color: #ea580c;
  color: #ea580c;
}
.fp-custom-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  padding: 6px;
  z-index: 260;
  display: none;
}
.fp-custom-dd-wrap.open .fp-custom-dd-menu {
  display: block;
}
.fp-custom-dd-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-align: left;
  cursor: pointer;
}
.fp-custom-dd-item:hover {
  background: #fff7ed;
  color: #ea580c;
}
.fp-custom-dd-item.active {
  background: #fff7ed;
  color: #ea580c;
  font-weight: 700;
}

.search-active-filters-bar {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.search-active-filters-bar.has-items {
  display: flex;
}
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 9999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Search List View Card (Arogga Functional Layout in FP Theme) */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-list-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-list-card:hover {
  border-color: #fb923c;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.1);
}
.search-list-thumb {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.search-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-list-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #ea580c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 0 0 8px 0;
  line-height: 1.15;
}
.search-list-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.search-list-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-list-title:hover {
  color: #ea580c;
}
.search-list-meta {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}
.search-list-delivery-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.search-list-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.search-list-price {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}
.search-list-mrp {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}
.search-list-ribbon {
  display: inline-flex;
  align-items: center;
  background: #ea580c;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 4px;
}
.search-list-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.search-list-add-btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1.5px solid #ea580c;
  background: #fff7ed;
  color: #ea580c;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.search-list-add-btn:hover:not(:disabled) {
  background: #ea580c;
  color: #ffffff;
}
.search-list-add-btn:disabled {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}
.search-list-add-btn.stockout-restock {
  border-color: #fb923c;
  background: #fff7ed;
  color: #ea580c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.search-list-add-btn.stockout-restock:hover {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}

/* Search Grid View Container */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* Mobile Filter Pill Button & Modal */
.mobile-search-filter-pill {
  display: none;
}
.mobile-filter-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 100020;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.mobile-filter-modal-overlay.active {
  display: flex;
}
.mobile-filter-modal-sheet {
  width: 100%;
  max-width: 540px;
  max-height: 82vh;
  background: #ffffff;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
}
.mobile-filter-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid #e2e8f0;
}
.mobile-filter-sheet-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.mobile-filter-sheet-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}
.mobile-filter-sheet-foot {
  display: flex;
  gap: 10px;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

@media (max-width: 900px) {
  .search-page-main {
    padding-top: 28px !important;
    padding-bottom: 68px !important;
  }
  #search-results-view {
    padding-bottom: 34px !important;
  }
  #fp-search-spa-view .search-page-main {
    padding-bottom: 72px !important;
  }
  .fp-search-breadcrumbs {
    margin-top: 4px !important;
    margin-bottom: 18px !important;
  }
  .search-promo-banner-img {
    height: auto !important;
    aspect-ratio: 16 / 5.4;
    min-height: 105px;
    max-height: 170px;
  }
  .search-results-layout {
    grid-template-columns: 1fr;
  }
  .search-filter-sidebar {
    display: none;
  }
  .search-results-topbar {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    padding: 12px 13px;
  }
  .search-toolbar-controls {
    justify-content: space-between;
  }
  .fp-custom-dd-wrap .fp-custom-dd-menu {
    left: 0;
    right: auto;
  }
  #search-view-dd-wrap .fp-custom-dd-menu {
    right: 0;
    left: auto;
  }
  .search-list-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 11px;
    padding: 11px 12px;
  }
  .search-list-thumb {
    width: 86px;
    height: 92px;
  }
  .search-list-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    margin-top: 2px;
  }
  .search-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .mobile-search-filter-pill.visible {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    padding: 10px 20px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
    z-index: 99980;
    cursor: pointer;
  }
  .mobile-search-filter-pill:hover {
    border-color: #ea580c;
    color: #ea580c;
  }
}






