/* ==========================================================================
   LOKA MARKET - Modern Arabic RTL Supermarket Design System
   Brand Colors: Warm Orange (#F47A00), Charcoal (#202124), Warm Cream (#FFF9F2)
   Typography: IBM Plex Sans Arabic (Google Font)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap');

:root {
  --brand-orange: #F47A00;
  --brand-orange-hover: #D96500;
  --brand-orange-light: #FFF3E6;
  --brand-orange-glow: rgba(244, 122, 0, 0.18);
  --brand-dark: #202124;
  --brand-dark-soft: #2D2E32;
  --brand-cream: #FFF9F2;
  --brand-cream-soft: #FCF7F0;
  --surface: #FFFFFF;
  --surface-alt: #FBF9F6;
  --border: #E9E3DC;
  --border-light: #F2EDE6;
  --muted: #777777;
  --muted-light: #A0A0A0;
  --danger: #D62828;
  --danger-light: #FDE8E8;
  --success: #2F8F46;
  --success-light: #EBF7EE;
  
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 4px rgba(32, 33, 36, 0.04);
  --shadow-sm: 0 3px 10px rgba(32, 33, 36, 0.05);
  --shadow-md: 0 6px 20px rgba(32, 33, 36, 0.08);
  --shadow-lg: 0 12px 36px rgba(32, 33, 36, 0.12);
  --shadow-hover: 0 8px 24px rgba(244, 122, 0, 0.14);

  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1380px;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html, body, button, input, select, textarea, label, span, p, h1, h2, h3, h4, h5, h6, a, div, li, ul, ol, strong, b, em {
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html {
  direction: rtl;
  text-align: right;
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--brand-dark);
  background-color: var(--brand-cream);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

body {
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--brand-cream);
  touch-action: manipulation;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
  touch-action: manipulation;
}

button, input, select, textarea {
  font-family: 'IBM Plex Sans Arabic', inherit, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   HEADER COMPONENT
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-light);
}

/* Top Announcement Strip */
.top-bar {
  background-color: var(--brand-dark);
  color: #FFFFFF;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.top-bar-message {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.top-bar-message .badge {
  background-color: var(--brand-orange);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.8rem;
  color: #CCCCCC;
}

.top-bar-links a:hover {
  color: var(--brand-orange);
}

/* Main Header Row */
.main-header {
  padding: 12px 0;
}

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

/* Logo */
.header-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

/* Search Bar & Autocomplete */
.header-search-wrap {
  flex: 1;
  max-width: 680px;
  position: relative;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--brand-cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 18px;
  transition: var(--transition);
}

.search-form:focus-within {
  border-color: var(--brand-orange);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px var(--brand-orange-glow);
}

.search-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.95rem;
  color: var(--brand-dark);
  font-weight: 500;
}

.search-input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.search-btn {
  background-color: var(--brand-orange);
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.search-btn:hover {
  background-color: var(--brand-orange-hover);
  transform: scale(1.04);
}

.search-btn svg {
  width: 18px;
  height: 18px;
}

/* Live Search Suggestions Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background-color: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-dropdown.active {
  display: block;
  animation: dropdownFadeIn 0.2s ease-out;
}

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

.search-dropdown-header {
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.15s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--brand-cream);
}

.search-result-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  padding: 3px;
  border: 1px solid var(--border-light);
}

.search-result-info {
  flex: 1;
}

.search-result-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.search-result-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
}

.search-result-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-orange);
}

.search-no-results {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Header Actions & Shopping Cart Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-cart-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--brand-cream);
  border: 1.5px solid var(--border);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  color: var(--brand-dark);
}

.header-cart-btn:hover {
  background-color: var(--brand-orange-light);
  border-color: var(--brand-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cart-icon-container {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange);
}

.cart-icon-container svg {
  width: 28px;
  height: 28px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  left: -6px;
  background-color: var(--brand-orange);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.cart-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.cart-title-text {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.cart-total-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--brand-dark);
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background-color: var(--brand-cream);
  color: var(--brand-orange);
}

.mobile-menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   NAVIGATION BAR & MEGA MENU
   ========================================================================== */
.site-navigation {
  background-color: var(--surface);
  border-top: 1px solid var(--border-light);
  position: relative;
}

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

.nav-menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-item.has-mega-menu {
  position: static;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-dark);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}

/* All Categories Mega Menu Button */
.all-cats-btn {
  background-color: var(--brand-orange);
  color: #FFFFFF !important;
  border-radius: var(--radius-sm);
  padding: 8px 18px !important;
  margin-left: 8px;
  border-bottom: none !important;
  font-weight: 700;
  gap: 10px;
}

.all-cats-btn:hover {
  background-color: var(--brand-orange-hover);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.all-cats-btn svg {
  width: 18px;
  height: 18px;
}

.nav-extra-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.offers-badge-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--danger);
  background-color: var(--danger-light);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}

.offers-badge-link:hover {
  background-color: var(--danger);
  color: #FFFFFF;
}

/* MEGA MENU OVERLAY & DROPDOWN */
.mega-menu-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #FFFFFF !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
  border-top: 1px solid var(--border-light);
  border-bottom: 3px solid var(--brand-orange);
  z-index: 1200;
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.has-mega-menu:hover .mega-menu-container,
.has-mega-menu:focus-within .mega-menu-container,
.mega-menu-container.is-open {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding: 28px 20px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.mega-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-orange);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-orange-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-subgroup {
  margin-bottom: 16px;
}

.mega-subgroup-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 6px;
}

.mega-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mega-link-list a {
  font-size: 0.82rem;
  color: var(--muted);
  display: block;
  padding: 3px 0;
  transition: var(--transition);
}

.mega-link-list a:hover {
  color: var(--brand-orange);
  transform: translateX(-4px);
  font-weight: 600;
}

/* ==========================================================================
   MOBILE DRAWER & NAVIGATION
   ========================================================================== */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(32, 33, 36, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-drawer-backdrop.active {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 330px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--surface);
  z-index: 1110;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--brand-cream);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.drawer-close-btn svg {
  width: 18px;
  height: 18px;
}

.drawer-menu {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.accordion-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.accordion-item.open .accordion-toggle svg {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 6px 12px 12px 12px;
}

.accordion-item.open .accordion-content {
  display: block;
}

.accordion-sub-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 8px;
  border-right: 2px solid var(--brand-orange-light);
}

.accordion-sub-links a {
  font-size: 0.88rem;
  color: var(--muted);
  display: block;
}

.accordion-sub-links a:hover {
  color: var(--brand-orange);
}

/* ==========================================================================
   HERO & BANNERS
   ========================================================================== */
.hero-section {
  padding: 24px 0 16px 0;
  contain: content;
}

.hero-banner-card {
  position: relative;
  background: linear-gradient(135deg, #FFF6EC 0%, #FFEAD3 55%, #FFDFBE 100%);
  border-radius: var(--radius-xl);
  border: 1.5px solid #F6DFCB;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(244, 122, 0, 0.08);
  display: flex;
  align-items: center;
  min-height: 320px;
}

.hero-content {
  flex: 1.15;
  padding: 44px 48px;
  z-index: 2;
}

.hero-tag-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--brand-orange);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(244, 122, 0, 0.3);
}

.hero-subtag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(244, 122, 0, 0.12);
  color: var(--brand-orange-hover);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(244, 122, 0, 0.25);
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

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

.hero-desc {
  font-size: 1.02rem;
  color: #4A4A4A;
  font-weight: 500;
  margin-bottom: 20px;
  max-width: 520px;
  line-height: 1.6;
}

.hero-features-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-chip {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #F0DFD0;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: #444444;
  backdrop-filter: blur(4px);
}

.hero-chip strong {
  color: var(--brand-dark);
}

.hero-btn-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--brand-orange);
  color: #FFFFFF;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(244, 122, 0, 0.38);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--brand-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(244, 122, 0, 0.48);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--brand-dark);
  border: 1.5px solid var(--border);
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.hero-media {
  flex: 0.85;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Floating Glassmorphic Badges on Hero Media (Optimized for 0ms pointer delay & zero layout thrashing) */
.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  pointer-events: none; /* Prevents badge from intercepting or delaying pointer interactions */
  will-change: transform;
}

.hero-floating-card.top-badge {
  top: 24px;
  left: 24px;
  animation: floatCardSlow 4s ease-in-out infinite alternate;
}

.hero-floating-card.bottom-badge {
  bottom: 24px;
  right: 24px;
  animation: floatCardSlow 4s ease-in-out infinite alternate-reverse;
}

@keyframes floatCardSlow {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -6px, 0); }
}

.floating-icon {
  font-size: 1.2rem;
  background-color: var(--brand-orange-light);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 0 0 rgba(47, 143, 70, 0.6);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(47, 143, 70, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(47, 143, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 143, 70, 0); }
}

.floating-info {
  display: flex;
  flex-direction: column;
}

.floating-info strong {
  font-size: 0.85rem;
  color: var(--brand-dark);
  font-weight: 700;
  line-height: 1.2;
}

.floating-info span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

/* Trust Badges Strip */
.trust-strip {
  padding: 12px 0 24px 0;
}

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

.trust-item {
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--brand-orange-light);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.trust-text p {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ==========================================================================
   CATEGORY GRID SECTION
   ========================================================================== */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brand-dark);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--brand-orange);
}

.view-all-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.view-all-link:hover {
  transform: translateX(-4px);
  color: var(--brand-orange-hover);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.category-card {
  background-color: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.category-card:hover {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.category-thumb-wrap {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background-color: var(--brand-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #FFFFFF;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.category-card:hover .category-thumb-wrap {
  transform: scale(1.08);
}

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

.category-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.category-card:hover .category-label {
  color: var(--brand-orange);
}

/* ==========================================================================
   PRODUCT CARDS & CAROUSELS
   ========================================================================== */
.product-section {
  padding: 20px 0 28px 0;
}

.carousel-wrapper {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 18px 4px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: var(--transition);
}

.carousel-nav-btn:hover {
  background-color: var(--brand-orange);
  color: #FFFFFF;
  border-color: var(--brand-orange);
}

.carousel-nav-btn.prev {
  right: -16px;
}

.carousel-nav-btn.next {
  left: -16px;
}

.carousel-nav-btn svg {
  width: 20px;
  height: 20px;
}

/* Individual Product Card */
.product-card {
  background-color: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  min-width: 220px;
  flex: 0 0 calc(16.666% - 14px);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

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

.product-badge-wrap {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.product-badge {
  background-color: var(--danger);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(214, 40, 40, 0.25);
}

.product-badge.offer {
  background-color: var(--danger);
}

.product-badge.bestseller {
  background-color: var(--brand-orange);
}

.product-badge.fresh {
  background-color: var(--success);
}

.product-img-wrap {
  width: calc(100% + 24px);
  margin: -12px -12px 12px -12px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F8F5F0;
  overflow: hidden;
  position: relative;
}

.product-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-category-tag {
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.product-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
  transition: color 0.15s ease;
}

.product-card:hover .product-title {
  color: var(--brand-orange);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #F5A623;
  margin-bottom: 8px;
}

.product-rating .score {
  font-weight: 700;
  color: var(--brand-dark);
}

.product-rating .count {
  color: var(--muted);
}

.product-pricing-wrap {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.price-box {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.2;
}

.current-price .currency {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted-dark);
}

.old-price {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: line-through;
  line-height: 1;
}

/* Card Action Button: Single '+' transforms to Quantity Controller */
.card-cart-control {
  flex-shrink: 0;
}

.card-add-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--brand-orange);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(244, 122, 0, 0.3);
  transition: var(--transition);
}

.card-add-btn:hover {
  background-color: var(--brand-orange-hover);
  transform: scale(1.08);
}

.card-qty-controller {
  display: inline-flex;
  align-items: center;
  background-color: var(--brand-orange);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 3px 6px;
  gap: 8px;
  box-shadow: 0 3px 8px rgba(244, 122, 0, 0.3);
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
}

.qty-btn:hover {
  background-color: #FFFFFF;
  color: var(--brand-orange);
}

.qty-number {
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

/* Mid Promotional Banner - Centered, Balanced & Premium */
.promo-mid-banner {
  margin: 36px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.promo-banner-inner {
  position: relative;
  background: linear-gradient(135deg, #FFF1E0 0%, #FFE6CC 100%);
  border-radius: var(--radius-xl);
  border: 1.5px solid #F8D9B8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 230px;
  width: 100%;
  max-width: 1040px; /* Centered card with comfortable max-width */
  margin: 0 auto;
  box-shadow: 0 8px 28px rgba(244, 122, 0, 0.08);
  transition: var(--transition);
}

.promo-banner-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(244, 122, 0, 0.14);
}

.promo-banner-text {
  flex: 1.15;
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.promo-banner-text .hero-tag {
  margin-bottom: 12px;
}

.promo-banner-text h3 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.promo-banner-text h3 span {
  color: var(--brand-orange);
}

.promo-banner-text p {
  font-size: 0.98rem;
  color: #555555;
  margin-bottom: 22px;
  max-width: 480px;
  line-height: 1.6;
}

.promo-banner-text .btn-primary {
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.promo-banner-media {
  flex: 0.85;
  max-width: 420px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.promo-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Modern Web Vitals optimization: Offscreen sections skip unnecessary style calculations */
.product-section:not(:first-of-type),
.features-banner,
.trust-strip {
  content-visibility: auto;
  contain-intrinsic-size: 0 380px;
}

/* ==========================================================================
   CATEGORY & LISTING PAGE LAYOUT
   ========================================================================== */
.breadcrumbs-bar {
  padding: 16px 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumbs-list li::after {
  content: "‹";
  margin-right: 8px;
  color: var(--border);
  font-size: 1rem;
}

.breadcrumbs-list li:last-child::after {
  content: "";
}

.breadcrumbs-list a:hover {
  color: var(--brand-orange);
}

.breadcrumbs-list .active {
  color: var(--brand-dark);
  font-weight: 700;
}

.category-page-header {
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
  gap: 16px;
}

.category-page-title-wrap h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.category-page-title-wrap p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Subcategory visual pills */
.subcategory-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.subcategory-pills::-webkit-scrollbar {
  display: none;
}

.subcat-pill {
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-dark);
  white-space: nowrap;
  transition: var(--transition);
}

.subcat-pill:hover, .subcat-pill.active {
  background-color: var(--brand-orange);
  color: #FFFFFF;
  border-color: var(--brand-orange);
}

/* Listing Layout: Sidebar (Right) + Main Content (Left) */
.listing-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

/* Filter Sidebar */
.filter-sidebar {
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  height: fit-content;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border-light);
  margin-bottom: 16px;
}

.filter-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.filter-clear-btn {
  font-size: 0.8rem;
  color: var(--brand-orange);
  font-weight: 700;
}

.filter-group {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

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

.filter-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 12px;
}

.filter-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--brand-dark-soft);
  cursor: pointer;
  user-select: none;
}

.filter-checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background-color: var(--surface);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.filter-checkbox-label input[type="checkbox"]:checked {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
}

.filter-checkbox-label input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
}

/* Price Range Inputs */
.price-inputs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
}

.price-input-field {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--brand-cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-dark);
  text-align: center;
  transition: var(--transition);
}

.price-input-field:focus {
  border-color: var(--brand-orange);
  background-color: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-orange-glow);
}

.price-inputs-row span {
  color: var(--muted);
  font-weight: 700;
  flex-shrink: 0;
}

.price-apply-btn {
  width: 100%;
  background-color: var(--brand-orange);
  color: #FFFFFF;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
}

.price-apply-btn:hover {
  background-color: var(--brand-orange-hover);
}

/* Listing Controls (Sort, Results Count, Mobile Filter Button) */
.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  gap: 14px;
  flex-wrap: wrap;
}

.results-count {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.results-count span {
  color: var(--brand-dark);
  font-weight: 700;
}

.listing-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sort-select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.sort-select {
  background-color: var(--brand-cream);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-cream);
  border: 1.5px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.products-grid .product-card {
  min-width: unset;
  flex: unset;
}

/* ==========================================================================
   PRODUCT DETAILS PAGE
   ========================================================================== */
.product-details-layout {
  display: grid;
  grid-template-columns: 420px 1fr 340px;
  gap: 28px;
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

/* Gallery Column (Right in RTL) */
.product-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-viewport {
  width: 100%;
  height: 380px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.main-image-viewport img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.main-image-viewport:hover img {
  transform: scale(1.08);
}

.gallery-thumbs-row {
  display: flex;
  gap: 12px;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  padding: 6px;
  cursor: pointer;
  background-color: #FFFFFF;
  transition: var(--transition);
}

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

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

/* Details Column (Center) */
.product-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-brand-tag {
  font-size: 0.85rem;
  color: var(--brand-orange);
  font-weight: 700;
}

.detail-product-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.3;
}

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.stock-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--success);
  background-color: var(--success-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.product-desc-text {
  font-size: 0.96rem;
  color: #555555;
  line-height: 1.6;
}

/* Product Features Box */
.features-panel {
  background-color: var(--brand-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.features-panel h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 10px;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.features-list li {
  font-size: 0.9rem;
  color: var(--brand-dark-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.features-list li::before {
  content: "✔";
  color: var(--brand-orange);
  font-weight: bold;
}

/* Purchase / Buy Box Column (Left in RTL) */
.product-buy-col {
  background-color: var(--brand-cream-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: fit-content;
  position: sticky;
  top: 140px;
}

.detail-price-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.detail-price .currency {
  font-size: 1.1rem;
  color: var(--muted-dark);
}

.detail-old-price {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
}

.discount-pill {
  background-color: var(--danger);
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
}

.quantity-picker-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
}

.quantity-picker-wrap .picker-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--brand-cream);
  color: var(--brand-dark);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.quantity-picker-wrap .picker-btn:hover {
  background-color: var(--brand-orange);
  color: #FFFFFF;
}

.picker-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.add-to-cart-large-btn {
  width: 100%;
  background-color: var(--brand-orange);
  color: #FFFFFF;
  padding: 14px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(244, 122, 0, 0.35);
  transition: var(--transition);
}

.add-to-cart-large-btn:hover {
  background-color: var(--brand-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 122, 0, 0.45);
}

.guarantee-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted-dark);
}

.guarantee-item svg {
  color: var(--brand-orange);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Frequently Bought Together Bundle */
.bundle-box {
  background-color: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-xs);
}

.bundle-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 20px;
}

.bundle-items-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.bundle-product-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--brand-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  flex: 1;
  min-width: 240px;
}

.bundle-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-orange);
  cursor: pointer;
}

.bundle-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 4px;
}

.bundle-details h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.bundle-details .price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-orange);
}

.bundle-plus-sign {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted);
}

.bundle-action-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

.bundle-total-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-dark);
}

/* ==========================================================================
   CART PAGE LAYOUT & WHATSAPP CHECKOUT
   ========================================================================== */
.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  margin-bottom: 48px;
}

/* Free Delivery Progress Bar */
.delivery-progress-card {
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.delivery-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.delivery-progress-header .status-icon {
  font-size: 1.3rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  background-color: var(--brand-cream);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F47A00 0%, #FF9429 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.progress-fill.complete {
  background: linear-gradient(90deg, #2F8F46 0%, #48B864 100%);
}

/* Cart Items Container */
.cart-items-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item-row {
  background-color: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.cart-item-row:hover {
  border-color: var(--border);
}

.cart-item-main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.cart-item-thumb {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background-color: var(--brand-cream);
  border-radius: var(--radius-md);
  padding: 6px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.3;
}

.cart-item-unit {
  font-size: 0.8rem;
  color: var(--muted);
}

.cart-item-price-unit {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-orange);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-item-subtotal {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
  min-width: 90px;
  text-align: left;
}

.cart-remove-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition);
}

.cart-remove-btn:hover {
  background-color: var(--danger-light);
  color: var(--danger);
}

.cart-remove-btn svg {
  width: 18px;
  height: 18px;
}

/* Empty Cart View */
.cart-empty-state {
  background-color: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-icon-box {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  background-color: var(--brand-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange);
  margin-bottom: 8px;
}

.empty-icon-box svg {
  width: 48px;
  height: 48px;
}

.cart-empty-state h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.cart-empty-state p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 400px;
}

/* Order Summary Box (Left in RTL) */
.order-summary-card {
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 140px;
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border-light);
  margin-bottom: 18px;
}

.summary-rows-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #555555;
}

.summary-row.bold {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
  padding-top: 12px;
  border-top: 1.5px solid var(--border-light);
}

.summary-row .val {
  font-weight: 700;
}

.summary-row .val.green {
  color: var(--success);
}

.summary-row .val.red {
  color: var(--danger);
}

.substitution-check-wrap {
  background-color: var(--brand-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--brand-dark-soft);
  margin-bottom: 20px;
  cursor: pointer;
}

.substitution-check-wrap input {
  margin-top: 3px;
  accent-color: var(--brand-orange);
  width: 16px;
  height: 16px;
}

/* Primary WhatsApp Checkout CTA */
.btn-whatsapp-checkout {
  width: 100%;
  background-color: #25D366;
  color: #FFFFFF;
  padding: 15px 20px;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.btn-whatsapp-checkout:hover {
  background-color: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp-checkout svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.checkout-hint-text {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 12px;
}

/* Sticky Mobile Checkout Bar */
.mobile-sticky-checkout {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--surface);
  border-top: 1.5px solid var(--border);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)) 20px;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.1);
  z-index: 800;
  align-items: center;
  justify-content: space-between;
}

.mobile-sticky-checkout .total-side {
  display: flex;
  flex-direction: column;
}

.mobile-sticky-checkout .total-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.mobile-sticky-checkout .total-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.mobile-sticky-checkout .btn-whatsapp-checkout {
  width: auto;
  padding: 10px 20px;
  font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */
.site-footer {
  background-color: var(--brand-dark);
  color: #E2E2E2;
  padding: 56px 0 24px 0;
  margin-top: auto;
  border-top: 4px solid var(--brand-orange);
}

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

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand-desc {
  font-size: 0.92rem;
  color: #AAAAAA;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2.5px;
  background-color: var(--brand-orange);
  border-radius: var(--radius-full);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 0.88rem;
  color: #BBBBBB;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--brand-orange);
  transform: translateX(-4px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #CCCCCC;
}

.footer-contact-item svg {
  color: var(--brand-orange);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-bottom-bar {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.84rem;
  color: #888888;
  gap: 10px;
}

.footer-bottom-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #777777;
}

.footer-bottom-badges span:nth-child(2) {
  color: var(--brand-orange);
  font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* Laptop (1280px - 1025px) */
@media (max-width: 1280px) {
  .product-card {
    min-width: 200px;
    flex: 0 0 calc(20% - 13px);
  }
  .product-details-layout {
    grid-template-columns: 360px 1fr 300px;
    gap: 20px;
    padding: 24px;
  }
}

/* Tablet (1024px - 769px) */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-card {
    min-width: 190px;
    flex: 0 0 calc(25% - 12px);
  }
  .listing-layout {
    grid-template-columns: 240px 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-details-layout {
    grid-template-columns: 1fr 1fr;
  }
  .product-buy-col {
    grid-column: span 2;
    position: static;
  }
  .cart-page-layout {
    grid-template-columns: 1fr;
  }
  .order-summary-card {
    position: static;
  }
  .mega-menu-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .site-navigation {
    display: none;
  }
  .mega-menu-container {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .main-header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .header-logo-wrap {
    order: 1;
  }
  .brand-logo-img {
    height: 38px;
  }
  .header-actions {
    order: 2;
  }
  .cart-text-wrap {
    display: none;
  }
  .header-cart-btn {
    padding: 8px 12px;
  }
  .header-search-wrap {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  /* Hero Section Mobile */
  .hero-banner-card {
    flex-direction: column;
    min-height: auto;
  }
  .hero-content {
    padding: 28px 20px;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .hero-media {
    height: 180px;
    width: 100%;
  }

  /* Trust Strip Mobile */
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .trust-item {
    padding: 10px 12px;
    gap: 10px;
  }
  .trust-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .trust-text h4 {
    font-size: 0.82rem;
  }
  .trust-text p {
    font-size: 0.72rem;
  }

  /* Category Grid Mobile */
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .category-thumb-wrap {
    width: 60px;
    height: 60px;
  }
  .category-label {
    font-size: 0.82rem;
  }

  /* Product Cards on Mobile (2 per row) */
  .product-card {
    min-width: 160px;
    flex: 0 0 calc(50% - 8px);
    padding: 10px;
  }
  .product-img-wrap {
    height: 120px;
  }
  .product-title {
    font-size: 0.82rem;
    height: 2.5em;
  }
  .current-price {
    font-size: 1rem;
  }
  .card-add-btn {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
  .carousel-nav-btn {
    display: none;
  }

  /* Listing Page Mobile */
  .listing-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    display: none; /* Opened via mobile modal */
  }
  .filter-sidebar.mobile-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1200;
    overflow-y: auto;
    border-radius: 0;
    background-color: var(--surface);
    padding: 24px 20px;
  }
  .mobile-filter-btn {
    display: inline-flex;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Product Details Mobile */
  .product-details-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .product-gallery-col, .product-info-col, .product-buy-col {
    grid-column: 1;
  }
  .main-image-viewport {
    height: 260px;
  }
  .detail-product-title {
    font-size: 1.35rem;
  }
  .bundle-items-row {
    flex-direction: column;
    align-items: stretch;
  }
  .bundle-product-card {
    min-width: unset;
  }
  .bundle-plus-sign {
    display: none;
  }

  /* Cart Mobile */
  .cart-item-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }
  .cart-item-main {
    gap: 12px;
  }
  .cart-item-thumb {
    width: 65px;
    height: 65px;
  }
  .cart-item-title {
    font-size: 0.95rem;
  }
  .cart-item-actions {
    justify-content: space-between;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
  }
  .mobile-sticky-checkout {
    display: flex;
  }
  body {
    padding-bottom: 75px;
  }

  /* Footer Mobile */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* Extra Small Screens (<= 375px) */
@media (max-width: 375px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card {
    min-width: 140px;
  }
}

/* ==========================================================================
   ADVANCED UI/UX COMPONENTS & MICRO-INTERACTIONS
   ========================================================================== */

/* 1. Quick Cart Flyout Drawer (Mini-Cart) */
.mini-cart-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(32, 33, 36, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.mini-cart-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mini-cart-drawer {
  position: fixed;
  top: 0;
  left: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background-color: var(--surface);
  z-index: 1060;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  direction: rtl;
}

.mini-cart-drawer.active {
  left: 0;
}

.mini-cart-header {
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--brand-cream);
}

.mini-cart-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-cart-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  cursor: pointer;
  transition: var(--transition);
}

.mini-cart-close:hover {
  background-color: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
}

.mini-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background-color: var(--brand-cream-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.mini-cart-item:hover {
  border-color: var(--border);
  background-color: #FFFFFF;
}

.mini-cart-item-img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  background-color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border-light);
}

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

.mini-cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.25;
  margin-bottom: 4px;
}

.mini-cart-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-orange);
}

.mini-cart-footer {
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px)) 20px;
  border-top: 1.5px solid var(--border-light);
  background-color: var(--surface);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.mini-cart-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 2. Deals Countdown Timer */
.deals-timer-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--danger-light);
  border: 1px solid rgba(214, 40, 40, 0.2);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--danger);
}

.timer-digits {
  display: flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
  font-family: monospace, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.timer-box {
  background-color: var(--danger);
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 3. Quick View Modal */
.quick-view-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(32, 33, 36, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quick-view-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.quick-view-modal {
  background-color: var(--surface);
  border-radius: var(--radius-xl);
  width: 800px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border);
  direction: rtl;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.quick-view-backdrop.active .quick-view-modal {
  transform: scale(1);
}

.quick-view-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--brand-cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--brand-dark);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.quick-view-close:hover {
  background-color: var(--danger);
  color: #FFFFFF;
  border-color: var(--danger);
}

.quick-view-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  padding: 32px;
}

@media (max-width: 768px) {
  .quick-view-inner {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
  }
}

/* Quick View Hover Button on Product Cards */
.quick-view-trigger {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: rgba(32, 33, 36, 0.85);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 5;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.product-card:hover .quick-view-trigger {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.quick-view-trigger:hover {
  background-color: var(--brand-orange);
}

/* 4. Wishlist Button on Product Cards */
.wishlist-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #AAAAAA;
  cursor: pointer;
  transition: var(--transition);
  z-index: 4;
}

.wishlist-btn:hover {
  color: var(--danger);
  background-color: #FFFFFF;
  transform: scale(1.15);
}

.wishlist-btn.active {
  color: var(--danger);
  background-color: var(--danger-light);
  border-color: var(--danger);
}

.wishlist-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* 5. Active Filters Chips Row */
.active-filters-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 14px;
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--brand-orange-light);
  color: var(--brand-orange-hover);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-chip-remove {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-chip-remove:hover {
  color: var(--danger);
}

/* 6. Grid vs List View Mode on Category Page */
.view-modes-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--brand-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.view-mode-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition);
}

.view-mode-btn.active, .view-mode-btn:hover {
  background-color: var(--surface);
  color: var(--brand-orange);
  box-shadow: var(--shadow-xs);
}

.view-mode-btn svg {
  width: 16px;
  height: 16px;
}

/* List view presentation */
.products-grid.list-view {
  grid-template-columns: 1fr !important;
}

.products-grid.list-view .product-card {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
}

.products-grid.list-view .product-img-wrap {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.products-grid.list-view .product-title {
  height: auto;
  font-size: 1.05rem;
}

.products-grid.list-view .product-pricing-wrap {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* 7. Cart Coupon Box & Delivery Slots */
.coupon-box-card {
  background-color: var(--brand-cream);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.coupon-input-group {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.coupon-input {
  flex: 1;
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.coupon-apply-btn {
  background-color: var(--brand-dark);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
}

.coupon-apply-btn:hover {
  background-color: var(--brand-orange);
}

.coupon-success-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 6px;
}

/* Delivery Time Slots */
.delivery-slots-box {
  margin-bottom: 18px;
}

.delivery-slots-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--brand-dark);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

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

.slot-radio-card {
  border: 1.5px solid var(--border);
  background-color: var(--brand-cream);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.slot-radio-card:hover {
  border-color: var(--brand-orange);
  background-color: var(--brand-orange-light);
}

.slot-radio-card.active {
  border-color: var(--brand-orange);
  background-color: var(--brand-orange-light);
  box-shadow: 0 0 0 1px var(--brand-orange);
}

.slot-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-dark);
  display: block;
}

.slot-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

/* 8. Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  left: auto;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background-color: var(--surface);
  color: var(--brand-dark);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.25s ease;
  z-index: 800;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--brand-orange);
  color: #FFFFFF;
  border-color: var(--brand-orange);
  transform: translateY(-4px);
}

.back-to-top-btn svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON & CHAT WIDGET (Positioned on the Left)
   ========================================================================== */
.floating-whatsapp-wrap {
  position: fixed;
  bottom: 28px;
  left: 28px;
  right: auto;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.floating-whatsapp-btn {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #25D366 0%, #1EBE5D 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  position: relative;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
  color: #FFFFFF;
}

.floating-whatsapp-btn:active {
  transform: scale(0.95);
}

.wa-fab-icon {
  width: 32px;
  height: 32px;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* Pulsing Outer Glow Ring */
.wa-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulseRing 2.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
  pointer-events: none;
  z-index: 1;
}

@keyframes waPulseRing {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Notification Pill Badge */
.wa-fab-badge {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background-color: var(--danger);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

/* Floating Greeting Bubble Tooltip */
.whatsapp-bubble {
  position: absolute;
  bottom: 70px;
  left: 0;
  right: auto;
  width: 285px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 960;
  direction: rtl;
  text-align: right;
}

.whatsapp-bubble.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.whatsapp-bubble.hidden {
  display: none !important;
}

/* Bubble Arrow Pointer */
.whatsapp-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 22px;
  right: auto;
  width: 14px;
  height: 14px;
  background-color: #FFFFFF;
  border-bottom: 1.5px solid var(--border-light);
  border-right: 1.5px solid var(--border-light);
  transform: rotate(45deg);
}

.whatsapp-bubble-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--brand-cream);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.whatsapp-bubble-close:hover {
  background-color: var(--border);
  color: var(--brand-dark);
}

.whatsapp-bubble-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.wa-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.wa-agent-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.whatsapp-bubble-text {
  font-size: 0.86rem;
  color: #555555;
  line-height: 1.45;
  margin-bottom: 12px;
}

.whatsapp-bubble-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #25D366 0%, #1EBE5D 100%);
  color: #FFFFFF !important;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-bubble-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.45);
}

