/* Import Tajawal Font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap");

/* CSS Custom Properties / Design Tokens */
:root {
  /* Color Palette */
  --primary-dark: #1e4b2e;
  --primary: #3e7d32;
  --secondary: #7cb342;
  --accent: #f2c14e;
  --highlight: #ffd6e1;
  --white: #ffffff;

  /* Neutral Colors */
  --bg-main: #faf9f6;
  --bg-card: #ffffff;
  --text-main: #333333;
  --text-light: #5a6d5d;
  --text-muted: #8e9e91;
  --border-color: #e2eae3;

  /* Typography - Balanced Standardized Sizes */
  --font-family: "Tajawal", sans-serif;
  --font-xs: 14px; /* 14px */
  --font-sm: 16px; /* 16px */
  --font-md: 18px; /* 18px */
  --font-lg: 20px; /* 20px */
  --font-xl: 22px; /* 22px */
  --font-xxl: 24px; /* 24px */

  /* Spacing */
  --space-xs: 10px;
  --space-sm: 15px;
  --space-md: 20px;
  --space-lg: 25px;
  --space-xl: 30px;

  /* Borders and Shadows & Transitions */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(30, 75, 46, 0.04);
  --shadow-md: 0 4px 12px rgba(30, 75, 46, 0.06);
  --shadow-lg: 0 8px 24px rgba(30, 75, 46, 0.1);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
.visually-hidden-seo {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base unit: 16px */
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.5;
  overflow-x: clip;
  position: relative;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  border: none;
  background: none;
  font-family: var(--font-family);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ************************************ */
/* WhatsApp Order Button */
/* ************************************ */
#whatsappOrderBtn{
  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 8px; 
  width: 100%; 
  height: 46px; 
  background-color: #25D366; 
  color: #ffffff; 
  border-radius: var(--radius-md); 
  font-weight: 700; 
  font-size: 0.95rem; 
  text-decoration: none; 
  transition: all 0.3s ease; 
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Helper Utility Classes */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
}

.section-padding {
  padding-top: 50px;
  padding-bottom: 50px;
  position: relative;
}

/* Section Title - Compact style */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.section-title {
  margin-bottom: 0px;
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

/* .section-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 70px;
  height: 3px;
  background-color: var(--secondary);
} */

.section-subtitle {
  font-size: var(--font-sm);
  color: var(--text-light);
}

.view-all {
  font-size: var(--font-xs);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-all:hover {
  color: var(--primary-dark);
  transform: translateX(-3px);
}

/* Primary Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: var(--font-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
}

.btn-secondary:hover {
  background-color: #e5b03b;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ================= HEADER & NAVIGATION ================= */
.sticky-header-container {
  position: sticky;
  top: 0;
  z-index: 1050;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sticky-header-container.scroll-hidden {
  transform: none !important;
}

.topbar {
  background-color: var(--primary-dark);
  color: var(--white);
  font-size: var(--font-xs);
  padding: 4px 0;
  font-weight: 400;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.nav-link-merchant-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: var(--font-xs);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.nav-link-merchant-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

.nav-link-merchant-btn.active-wholesale {
  background: linear-gradient(135deg, #d4af37, #aa820a);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.trader-product-card {
  border: 1.5px solid rgba(212, 175, 55, 0.45) !important;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f0 100%) !important;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.15) !important;
  transition: all 0.3s ease;
}

.trader-product-card:hover {
  border-color: #d4af37 !important;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25) !important;
}

.badge-trader-wholesale {
  background: linear-gradient(135deg, #d4af37, #aa820a) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4) !important;
}

.wholesale-min-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(212, 175, 55, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 6px;
  border: 1px dashed rgba(212, 175, 55, 0.5);
  width: fit-content;
}

.topbar-info {
  display: flex;
  gap: 15px;
  align-items: center;
}

.topbar-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-socials {
  display: flex;
  gap: 10px;
}

.topbar-socials a:hover {
  color: var(--accent);
}

.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  padding: 0;
  background-color: var(--white);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-img {
  height: 45px;
  width: auto;
  border-radius: var(--radius-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: var(--font-lg);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.logo-tagline {
  font-size: var(--font-xs);
  color: var(--secondary);
  font-weight: 500;
}

.topbar-msg {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.topbar-msg i {
  color: var(--secondary);
  font-size: 1.1rem;
  vertical-align: middle;
}

.topbar-merchant-link {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: underline;
  margin-right: 4px;
}

.topbar-text-mobile {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: underline;
  margin-right: 4px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link {
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-light);
  padding: 2px 10px;
  border-radius: 20px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent;
  border: 1px solid transparent;
  display: inline-block;
}

/* Active Link State: Elegant soft green capsule button with fine borders */
.nav-link.active {
  color: var(--white) !important;
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: inset 0 2px 4px rgba(30, 75, 46, 0.02);
}

/* Hover state: Gold/secondary soft capsule outline with mini lift */
.nav-link:hover:not(.active) {
  color: var(--primary) !important;
  background-color: rgba(124, 179, 66, 0.08);
  border-color: rgba(124, 179, 66, 0.15);
  transform: translateY(-1px);
}

.nav-link:active {
  transform: translateY(0);
}

/* Action Icons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn {
  color: var(--primary-dark);
  font-size: 22px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition);
}

.action-btn:hover {
  background-color: var(--border-color);
  color: var(--primary);
}
#searchTrigger{
  display: block !important;
}
.action-badge {
  position: absolute;
  top: -4px;
  right: -1px;
  background-color: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: var(--font-xs);
  color: var(--white);
  background-color: var(--primary);
  font-weight: 500;
}

.btn-login-nav.active {
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.btn-login-nav:hover {
  background-color: var(--primary-dark);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 22px;
  color: var(--primary-dark);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ================= 0. HERO (OFFERS SLIDER) ================= */
#offers{
  background-color: var(--white);
}

#offers .product-card{
  background-color: var(--bg-main) !important;
}

.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #1a3222;
  aspect-ratio: 16 / 6;
}

.hero-slider {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  cursor: grab;
  touch-action: pan-y;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom Overlays for slider styling */
.slide-overlay {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(30, 75, 46, 0) 40%,
    rgba(30, 75, 46, 0.6) 100%
  );
  z-index: 3;
}

.slide-content-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.slide-title-card {
  max-width: 400px;
  color: var(--white);
  padding: var(--space-md);
  border-right: 3px solid var(--accent);
  margin-right: 5%;
}

.slide-badge {
  background-color: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: var(--font-xs);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 6px;
}

.slide-hdr {
  font-size: var(--font-xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.slide-desc {
  font-size: var(--font-sm);
  opacity: 0.9;
  font-weight: 400;
}

/* Slider Controls */
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.slider-control:hover {
  background-color: var(--primary);
  color: var(--white);
}

.slider-control.prev-slide {
  right: var(--space-md);
}

.slider-control.next-slide {
  left: var(--space-md);
}

.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--accent);
  width: 15px;
}

/* ================= 1. FEATURES (ما يميزنا) ================= */
.features-section {
  background-color: var(--bg-main);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.feature-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--secondary);
}

.feature-icon-wrapper {
  background-color: var(--bg-main);
  color: var(--primary-dark);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Alt background color for some featured icons to make it interactive */
.feature-box:nth-child(even) .feature-icon-wrapper {
  background-color: rgba(124, 179, 66, 0.15);
  color: var(--primary);
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--primary-dark);
}

.feature-description {
  font-size: var(--font-xs);
  color: var(--text-light);
  line-height: 1.3;
  margin-top: 2px;
}

/* ================= SHIPPING GOVERNORATES TICKER ================= */
.shipping-govs-section {
  padding: 15px 0;
  background-color: var(--bg-main);
  position: relative;
  z-index: 5;
}

.shipping-govs-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 7px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(62, 125, 50, 0.16);
  box-shadow: 0 3px 12px rgba(30, 75, 46, 0.05);
  overflow: hidden;
}

.shipping-govs-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(62, 125, 50, 0.22);
}

.shipping-govs-badge i {
  color: var(--accent);
  font-size: 15px;
  animation: truckBounce 2s ease infinite;
}

@keyframes truckBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-3px); }
}

.shipping-govs-carousel-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  position: relative;
}

.shipping-govs-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  width: 100%;
  padding: 2px 0;
}

.shipping-govs-track::-webkit-scrollbar {
  display: none;
}

.shipping-govs-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.gov-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: #fbfdfb;
  border: 1px solid #e2eae3;
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  cursor: pointer;
}

.gov-chip:hover {
  background: var(--white);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(62, 125, 50, 0.12);
}

.gov-chip-pin {
  color: var(--primary);
  font-size: 13px;
}

.gov-chip-name {
  color: #27342b;
  font-weight: 700;
}

.gov-chip-price {
  background: rgba(242, 193, 78, 0.22);
  color: #8a6508;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.gov-chip-price.free {
  background: rgba(62, 125, 50, 0.15);
  color: var(--primary);
}

.govs-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #e0e8e1;
  background: var(--white);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.govs-nav-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .shipping-govs-card {
    padding: 5px 8px;
    gap: 8px;
    border-radius: 12px;
  }
  .shipping-govs-badge {
    padding: 4px 10px;
    font-size: 11.5px;
    gap: 5px;
  }
  .govs-nav-btn {
    display: none;
  }
  .gov-chip {
    padding: 3px 9px;
    font-size: 12px;
  }
}

/* ================= 2. CATEGORIES (الاقسام) ================= */
.categories-section {
  background: var(--white);
}
.categories-slider-wrapper {
  position: relative;
  width: 100%;
}

.categories-slider {
  display: flex;
  flex-direction: row;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  padding: 10px 4px;
  width: 100%;
}

.categories-slider::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.categories-slider .category-card {
  flex: 0 0 calc(100% / 6 - var(--space-md));
  min-width: 145px;
  box-sizing: border-box;
}

/* Slider Controls */
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-control.prev {
  right: -18px; /* positioned on the right (prev in RTL) */
}

.slider-control.next {
  left: -18px; /* positioned on the left (next in RTL) */
}

.slider-control:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 6px 15px rgba(30, 75, 46, 0.18);
}

.slider-control:hover.prev {
  transform: translateY(-50%) scale(1.1);
}

.slider-control:hover.next {
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 1200px) {
  .categories-slider .category-card {
    flex: 0 0 calc(100% / 5 - var(--space-sm));
  }
}

@media (max-width: 992px) {
  .categories-slider .category-card {
    flex: 0 0 calc(100% / 4 - var(--space-sm));
  }
}

@media (max-width: 768px) {
  .hero-section{
    aspect-ratio: 2 / 1;
  }
  .categories-slider .category-card {
    flex: 0 0 calc(100% / 3 - var(--space-sm));
  }
  .slider-control {
    display: none; /* Hide slider buttons on small screens, users swipe instead */
  }
  .categories-slider-wrapper {
    gap: 0;
  }
  .container{
    padding-left: 10px;
    padding-right: 10px;
  }
  .category-name{
    font-size: var(--font-xs) !important;

  }
  .category-image-wrap{
    width: 40px !important;
    height: 40px !important;
    font-size: 1.3rem !important;
  }
}

@media (max-width: 480px) {
  .categories-slider .category-card {
      flex: 0 0 calc(100% / 2 - 70px);
      flex-grow: 0;
      min-width: 110px;
  }
}

.category-card {
  box-shadow: 0 0 5px 0px #00000012;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-main);
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.category-image-wrap {
  width: 55px;
  height: 55px;
  border-radius: var(--radius-full);
  background-color: #faf8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  border: 2px solid var(--border-color);
  font-size: 1.6rem;
  color: var(--primary);
  transition: var(--transition);
}

.category-card:hover .category-image-wrap {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.category-name {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.category-count {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.category-card:hover::before {
  transform: scaleX(1);
}

/* ================= 3/4. PRODUCTS GRID (المنتجات المميزة / الأكثر مبيعاً) ================= */
section#store {
  background: var(--bg-main);
}


section#store .product-card {
  background-color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.product-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 10px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow:
    0 12px 30px rgba(245, 199, 26, 0.15),
    0 4px 12px rgba(30, 75, 46, 0.05);
  border-color: rgba(245, 199, 26, 0.5);
}

/* Badges section */
.product-badge-group {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge-item {
  font-size: 14px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: var(--radius-md);
  color: var(--white);
  text-align: center;
}

.badge-discount {
  background-color: var(--secondary);
}

.badge-featured {
  font-size: 12px;
  background-color: var(--accent);
  color: var(--primary-dark);
}

.badge-new {
  background-color: var(--primary);
}

/* Product Wishlist Icon */
.wishlist-btn-wrap {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
}

.wishlist-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.wishlist-btn:hover,
.wishlist-btn.active {
  background-color: var(--highlight);
  color: #db4870;
}

/* Product Media */
.product-media {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: #fafafa;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

/* Product Details */
.product-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: var(--font-xs);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.product-title {
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 8px;
}

.product-rating i {
  color: var(--accent);
  font-size: var(--font-xs);
}

.rating-count {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-right: 4px;
}

/* Price & Button wrap */
.product-footer {
  gap: 3px;
  display: flex;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 450px) {
  .add-cart-btn {
    width: 100%;
  }
}

.product-price {
  margin-bottom: 3px;
  gap: 8px;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.price-current ,.unitSize{
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--primary);
}

.price-old {
  font-size: var(--font-xs);
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1;
}

.add-cart-btn {
  gap: 2px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.sale-direct{
  background-color: var(--accent) !important;
  color: var(--primary-dark);
}

.add-cart-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

/* ================= 5. TESTIMONIALS (آراء العملاء) ================= */
.testimonials-section {
  background-color: var(--bg-main);
}

.testimonials-slider-wrapper {
  position: relative;
  width: 100%;
}

.testimonials-slider {
  display: flex;
  flex-direction: row;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  padding: 10px 4px;
  width: 100%;
}

.testimonials-slider::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.testimonials-slider .testimonial-card {
  flex: 0 0 calc(100% / 3 - var(--space-md));
  min-width: 290px;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .testimonials-slider .testimonial-card {
    flex: 0 0 calc(100% / 2 - 12px);
  }
}

@media (max-width: 650px) {
  .testimonials-slider .testimonial-card {
    flex: 0 0 calc(100% - 8px);
  }
}

.rating-star-container {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}

.rating-star-container i {
  color: var(--accent);
  font-size: 0.8rem;
}

.testimonial-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.testimonial-card::after {
  content: "\f210"; /* Remixicon double quote symbol key */
  font-family: "remixicon";
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 1.8rem;
  color: rgba(30, 75, 46, 0.05);
  line-height: 1;
}

.testimonial-text {
  font-size: var(--font-sm);
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background-color: var(--highlight);
  color: var(--primary-dark);
  font-size: var(--font-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.testimonial-user:nth-child(even) .user-avatar {
  background-color: rgba(124, 179, 66, 0.2);
  color: var(--primary);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--primary-dark);
}

.user-title {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

/* ================= 6. CONTACT US (تواصل معنا) ================= */
.contact-section {
  background-color: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: var(--space-xl);
  align-items: stretch;
}

.contact-info-panel {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-panel::before {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 140px;
  height: 140px;
  background-color: var(--primary);
  opacity: 0.15;
  border-radius: var(--radius-full);
}

.contact-info-hdr {
  margin-bottom: var(--space-md);
}

.contact-info-hdr h3 {
  font-size: var(--font-lg);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--accent);
}

.contact-info-hdr p {
  font-size: var(--font-xs);
  opacity: 0.8;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.contact-detail-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: var(--font-md);
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-detail-text p {
  font-size: var(--font-xs);
  opacity: 0.85;
}

.contact-social-row {
  display: flex;
  gap: 8px;
  z-index: 2;
}

.contact-social-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.contact-social-btn:hover {
  background-color: var(--accent);
  color: var(--primary-dark);
}

/* Contact Form */
.contact-form-panel {
  background: var(--bg-main);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  font-size: var(--font-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--white);
  font-family: var(--font-family);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(62, 125, 50, 0.08);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

.form-btn-submit {
  width: 100%;
  padding: 8px;
  font-size: var(--font-sm);
  font-weight: 700;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-btn-submit:hover {
  background-color: var(--primary-dark);
}

/* ================= 7. FOOTER (الفوتر) ================= */
.footer {
  background: linear-gradient(178deg, var(--primary-dark) 0%, #0d1405 100%);
  color: var(--white);
  padding: var(--space-xl) 0 0 0;
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-about {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.footer-logo-img {
  height: 42px;
  width: auto;
  border-radius: var(--radius-sm);
  background-color: var(--white);
  padding: 2px;
}

.footer-brand-title {
  font-size: var(--font-lg);
  font-weight: 800;
  color: var(--accent);
}

.footer-logo-tagline {
  font-size: var(--font-xs);
  color: var(--highlight);
  font-weight: 500;
}

.footer-desc {
  font-size: var(--font-xs);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--font-xs);
  opacity: 0.9;
}

.footer-contact-info i {
  color: var(--accent);
  margin-left: 6px;
}

.footer-title {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  font-size: var(--font-xs);
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: "\ea60"; /* remixicon arrow-left-s-line */
  font-family: "remixicon" !important;
  font-size: 0.75rem;
  color: var(--secondary);
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
  padding-right: 2px;
}

.footer-links a:hover::before {
  color: var(--accent);
  transform: translateX(-3px);
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
}

.newsletter-text {
  font-size: var(--font-xs);
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.newsletter-form {
  display: flex;
  margin-bottom: var(--space-md);
}

.newsletter-input {
  flex-grow: 1;
  padding: 6px 10px;
  font-size: var(--font-xs);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--white);
  font-family: var(--font-family);
  outline: none;
}

.newsletter-input:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

.newsletter-btn {
  background-color: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0 12px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: var(--font-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-btn:hover {
  background-color: var(--white);
  color: var(--primary-dark);
}

.footer-payment {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.footer-payment span {
  font-size: var(--font-xs);
  opacity: 0.7;
}

.payment-logos {
  display: flex;
  gap: 6px;
}

.payment-logos i {
  font-size: 1.2rem;
  opacity: 0.8;
}

.payment-logos i:hover {
  opacity: 1;
  color: var(--accent);
}

/* --- FOOTER CONTACT & SOCIAL & MIDDLE STRIP --- */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-info span {
  font-size: var(--font-xs);
  opacity: 0.9;
}

.footer-contact-info i {
  color: var(--secondary);
  margin-left: 4px;
}

.footer-contact-info strong {
  color: var(--accent);
}

.footer-social-wrap {
  margin-top: var(--space-md);
}

.footer-social-title {
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--white);
  font-weight: 700;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.1rem;
}

.footer-social-link:hover {
  transform: translateY(-3px);
  color: var(--white);
}

.footer-social-link.social-fb:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.footer-social-link.social-insta:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #dc2743;
}

.footer-social-link.social-tiktok:hover {
  background: #000000;
  border-color: #000000;
}

.footer-social-link.social-wa:hover {
  background: #25d366;
  border-color: #25d366;
}

.footer-middle-info {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;

}

.footer-middle-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  flex-direction: column;
  align-items: center;
}

.footer-middle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--white);
  opacity: 0.95;
}

.footer-middle-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(245, 199, 26, 0.15);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(245, 199, 26, 0.3);
  font-size: 1.05rem;
}

.footer-middle-item strong {
  color: var(--secondary);
  margin-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-md) 0;
  font-size: var(--font-xs);
  text-align: center;
  opacity: 0.7;
}

.footer-bottom p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 12px;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ================= QUICK VIEW MODAL ================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  padding: var(--space-lg);
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  left: 12px; /* RTL format */
  font-size: 1.2rem;
  color: var(--text-light);
}

.modal-close:hover {
  color: var(--primary);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.modal-img-wrap {
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-info {
  display: flex;
  flex-direction: column;
}

.modal-badge {
  background-color: var(--highlight);
  color: #db4870;
  font-size: var(--font-xs);
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-title {
  font-size: var(--font-lg);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.modal-price {
  font-size: var(--font-lg);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.modal-desc {
  font-size: var(--font-xs);
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.qty-btn:hover {
  background-color: var(--border-color);
}

.qty-num {
  font-size: var(--font-sm);
  font-weight: 700;
  width: 25px;
  text-align: center;
}

/* ================= FLOATING ACTION BUTTONS (واتساب وتتبع الطلب) ================= */
.floating-actions-container {
  position: fixed;
  bottom: 75px;
  right: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 995;
  pointer-events: auto;
}

.floating-action-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 1.55rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  outline: none;
}

.floating-action-btn:hover {
  transform: scale(1.12) translateY(-3px);
  color: #ffffff !important;
}

/* WhatsApp Floating Button */
.floating-whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.42);
  animation: whatsappPulse 3s infinite;
}

.floating-whatsapp-btn:hover {
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.65);
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Track Order Floating Button */
.floating-track-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 2px 5px rgb(30 75 46 / 37%);
}

.floating-track-btn:hover {
  box-shadow: 0 2px 8px 2px rgb(30 75 46 / 37%);
}

/* Floating Track Item Wrapper */
.floating-track-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Always-Visible Dismissible Message Bubble */
.floating-track-message {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 6px 8px 6px 14px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 12px rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 10;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.floating-track-message.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
  animation: trackMsgGlow 3s infinite alternate;
}

.floating-track-message::after {
  content: "";
  position: absolute;
  left: 99%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--primary);
}

.floating-track-message.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-50%) scale(0.75) translateX(-10px) !important;
  visibility: hidden !important;
  display: none !important;
}

/* إظهار الرسالة عند تحريك الماوس (Hover) حتى لو تم إغلاقها مسبقاً */
.floating-track-wrap:hover .floating-track-message.hidden {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(-50%) scale(1) translateX(0) !important;
}

/* إخفاء زر الإكس أثناء وضع الهوفر لتبدو كتلميح احترافي نظيف */
.floating-track-message.hidden .floating-track-msg-close {
  display: none !important;
}

@keyframes trackMsgGlow {
  0% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 8px rgba(212, 175, 55, 0.25);
  }
  100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 16px rgba(212, 175, 55, 0.5);
  }
}

.floating-track-msg-text {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #ffffff;
}

.floating-track-msg-text i {
  color: #ffd700;
  font-size: 1.05rem;
}

.floating-track-msg-close {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 2px;
  padding: 0;
  outline: none;
}

.floating-track-msg-close:hover {
  background: #e53935;
  color: #ffffff;
  transform: scale(1.15);
}

/* Floating Tooltip Label (For WhatsApp etc.) */
.floating-btn-label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: rgba(18, 38, 26, 0.95);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.12);
}

.floating-btn-label::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(18, 38, 26, 0.95);
}

.floating-action-btn:hover .floating-btn-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Responsive for Floating Actions */
@media (max-width: 768px) {
  .floating-actions-container {
    bottom: 100px;
    right: 16px;
    gap: 10px;
  }

  .floating-action-btn {
    width: 40px;
    height: 40px;
    font-size: 1.35rem;
  }

  .floating-btn-label {
    display: none !important;
  }

  .floating-track-message {
    right: calc(100% + 8px);
    padding: 5px 6px 5px 10px;
    font-size: 0.78rem;
  }
}

/* ================= STORE PAGE STYLING ================= */
.store-hero {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary) 100%
  );
  color: var(--white);
  padding: 30px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.store-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.store-hero-title {
  font-size: var(--font-xl);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

.store-hero-desc {
  font-size: var(--font-xs);
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.5;
}

.store-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.filter-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: sticky;
  top: 70px;
  z-index: 10;
  height: fit-content;
}

.filter-section {
  margin-bottom: var(--space-lg);
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: var(--space-md);
}

.filter-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.filter-title-sub {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.filter-title-sub::after {
  content: "\ea6e"; /* Remix Icon 'ri-arrow-down-s-line' style */
  font-family: 'remixicon' !important;
  font-style: normal;
  display: inline-block;
  font-size: 1.1rem;
  color: var(--text-light);
  transition: transform 0.3s ease;
}

.filter-section.closed .filter-title-sub::after {
  transform: rotate(-90deg); /* Left rotation on RTL when closed */
}

/* Collapsible content area */
.filter-section .filter-list,
.filter-section .price-range-inputs,
.filter-section .filter-btn-apply {
  max-height: 500px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.filter-section.closed .filter-list,
.filter-section.closed .price-range-inputs,
.filter-section.closed .filter-btn-apply {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  pointer-events: none;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-xs);
  color: var(--text-light);
  cursor: pointer;
}

.filter-checkbox {
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  accent-color: var(--primary);
  cursor: pointer;
}

.price-range-inputs {
  display: flex;
  gap: 6px;
  align-items: center;
}

.price-input-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-input-box label {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.price-input-box input {
  width: 100%;
  padding: 6px;
  font-size: var(--font-xs);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-main);
  outline: none;
  font-family: var(--font-family);
  text-align: center;
}

.price-input-box input:focus {
  border-color: var(--primary);
  background-color: var(--white);
}

.filter-btn-apply {
  width: 100%;
  padding: 6px;
  background-color: var(--primary);
  color: var(--white);
  font-size: var(--font-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.filter-btn-apply:hover {
  background-color: var(--primary-dark);
}

.filter-btn-clear {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-dark) !important;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: var(--space-md);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn-clear:hover {
  background-color: var(--primary);
  color: var(--white) !important;
  border-color: var(--primary);
}

.rating-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.rating-stars-row {
  display: flex;
  gap: 2px;
  align-items: center;
  color: var(--accent);
}

.rating-stars-row i {
  font-size: 0.8rem;
}

.rating-stars-text {
  font-size: var(--font-xs);
  color: var(--text-light);
}

/* Product Search Bar Style */
.store-search-bar {
  background-color: var(--white);
  padding: 10px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.store-search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
  width: 100%;
}

.search-input-group .search-icon {
  font-size: 1.3rem;
  color: var(--primary);
  transition: var(--transition);
}

.store-search-bar:focus-within .search-icon {
  color: var(--secondary);
}

.store-search-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-family);
  font-size: var(--font-xs);
  color: var(--text-main);
  padding: 6px 0;
}

.store-search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.clear-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: var(--transition);
}

.clear-search-btn:hover {
  color: #c62828;
}

/* No Results Card Style */
.no-results-card {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  grid-column: 1 / -1;
  margin: var(--space-md) auto;
  max-width: 480px;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.no-results-card i {
  font-size: 3.5rem;
  color: var(--secondary);
  opacity: 0.8;
}

.no-results-card h3 {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: var(--font-md);
  margin-top: 4px;
}

.no-results-card p {
  font-size: var(--font-xs);
  color: var(--text-light);
  line-height: 1.6;
}

.no-results-card .reset-search-btn {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 8px 18px;
  font-family: var(--font-family);
  font-size: var(--font-xs);
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: 8px;
  transition: var(--transition);
}

.no-results-card .reset-search-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.products-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sorting-bar {
  background-color: var(--white);
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.results-count {
  font-size: var(--font-xs);
  color: var(--text-light);
}

.sorting-select-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sorting-label {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.sorting-select {
  padding: 4px var(--space-sm);
  font-size: var(--font-xs);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-main);
  outline: none;
  font-family: var(--font-family);
  cursor: pointer;
}

.sorting-select:focus {
  border-color: var(--primary);
}

.store-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.pagination-container {
  display: flex;
  list-style: none; /* Reset standard list bullets/numbers on <ol> */
  padding: 0;
  margin: 0;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-xl);
}

.pagination-container li {
  list-style: none; /* Enforce removal of item bullets */
  padding: 0;
  margin: 0;
}

.pagination-item {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xs);
  font-weight: 700;
  transition: var(--transition);
}

.pagination-item:hover,
.pagination-item.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ================= PRODUCT DETAILS PAGE ================= */
.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-main-view {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  height: 380px;
}

.product-main-view img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-main-view:hover img {
  transform: scale(1.05);
}

.product-thumbnails-list {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: 4px 0;
}

.thumb-item {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background-color: var(--white);
  padding: 6px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.thumb-item:hover,
.thumb-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.product-info-panel {
  display: flex;
  flex-direction: column;
}

.product-info-cat {
  font-size: var(--font-xs);
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.product-info-title {
  font-size: var(--font-xl);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.product-info-rating-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.product-info-stars {
  color: var(--accent);
  display: flex;
  gap: 2px;
}

.product-info-reviews-txt {
  font-size: var(--font-xs);
  color: var(--text-light);
}

.product-info-price-card {
  background-color: rgba(62, 125, 50, 0.05);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.product-info-price-wrap {
  display: flex;
  flex-direction: column;
}

.product-info-newprice {
  font-size: var(--font-xl);
  font-weight: 800;
  color: var(--primary);
}

.product-info-oldprice {
  font-size: var(--font-xs);
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-info-badge {
  background-color: var(--accent);
  color: var(--primary-dark);
  font-size: var(--font-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.product-info-desc {
  font-size: var(--font-sm);
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.product-info-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  border-top: 1.5px solid var(--border-color);
  border-bottom: 1.5px solid var(--border-color);
  padding: var(--space-md) 0;
}

.spec-line {
  display: flex;
  gap: 6px;
  font-size: var(--font-xs);
}

.spec-label {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-val {
  color: var(--primary-dark);
  font-weight: 700;
}

.product-actions-block {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.qty-input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  height: 42px;
  padding: 0 4px;
}

.qty-btn-action {
  width: 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-light);
}

.qty-number-input {
  width: 40px;
  text-align: center;
  border: none;
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--primary-dark);
  background: none;
}

.qty-number-input:focus {
  outline: none;
}

.action-buttons-wrap {
  display: flex;
  gap: 8px;
  flex-grow: 1;
}

.action-addcart {
  flex-grow: 1.5;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: var(--font-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-addcart:hover {
  background-color: var(--primary-dark);
}

.action-buynow {
  flex-grow: 1;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: var(--font-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-buynow:hover {
  background-color: var(--white);
  box-shadow: 0 0 0 2px var(--accent) inset;
}

.action-favorite-btn {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-dark);
  transition: var(--transition);
}

.action-favorite-btn:hover {
  background-color: var(--highlight);
  color: #db4870;
  border-color: #db4870;
}

.shipping-promo-banner {
  background-color: #fafcfb;
  border: 1px dashed var(--secondary);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-xs);
  color: var(--text-light);
}

.shipping-promo-banner i {
  color: var(--secondary);
  font-size: 1.2rem;
}

/* Tabs System */
.details-tabs-section {
  margin-top: var(--space-xl);
}

.tabs-header {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.tab-link-btn {
  padding: 10px 4px;
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 3.5px solid transparent;
  margin-bottom: -2.5px;
  transition: var(--transition);
}

.tab-link-btn:hover,
.tab-link-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tabs-contents-wrap {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  min-height: 200px;
}

.tab-panel-item {
  display: none;
}

.tab-panel-item.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-sm);
  font-size: var(--font-xs);
}

.nutrition-table th,
.nutrition-table td {
  padding: 8px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

.nutrition-table th {
  background-color: rgba(62, 125, 50, 0.03);
  color: var(--primary-dark);
  font-weight: 700;
}

.reviews-summary-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  align-items: center;
}

.total-score-card {
  text-align: center;
  border-left: 1.5px solid var(--border-color);
  padding-left: var(--space-lg);
}

.total-score-card h4 {
  font-size: var(--font-xxl);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.total-score-stars {
  color: var(--accent);
  margin: 6px 0;
  font-size: 0.95rem;
}

.total-score-count {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.stars-bars-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stars-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
}

.bar-star-num {
  width: 40px;
  text-align: left;
  color: var(--text-light);
}

.bar-bg {
  flex-grow: 1;
  background-color: var(--bg-main);
  height: 6px;
  border-radius: var(--radius-full);
  overflow: hidden;
  max-width: 250px;
}

.bar-fill {
  background-color: var(--accent);
  height: 100%;
  border-radius: var(--radius-full);
}

.bar-percent {
  width: 30px;
  color: var(--text-muted);
}

/* ================= ABOUT US PAGE ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-lg);
}

.about-text-content h2 {
  font-size: var(--font-xl);
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 8px;
}

.about-text-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70px;
  height: 3.5px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.about-text-content p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: var(--font-sm);
  margin-bottom: var(--space-md);
}

.about-media-box {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 350px;
}

.about-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.4s ease;
}

.about-media-box:hover img {
  transform: scale(1.03);
}

.values-grid-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.value-card-item {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.value-card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.value-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: rgba(62, 125, 50, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto var(--space-md) auto;
}

.value-card-title {
  font-size: var(--font-md);
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.value-card-desc {
  font-size: var(--font-xs);
  color: var(--text-light);
  line-height: 1.6;
}

.statistics-strip-wrap {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--secondary) 100%
  );
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xl);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.stat-item-card h3 {
  font-size: var(--font-xxl);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.stat-item-card p {
  font-size: var(--font-xs);
  color: #e8f5e9;
  font-weight: 500;
}

.standards-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.standard-badge-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: var(--transition);
}

.standard-badge-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.badge-icon-wrap {
  font-size: 2.2rem;
  color: var(--secondary);
}

.badge-info-text h4 {
  font-size: var(--font-sm);
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 2px;
}

.badge-info-text p {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ================= CONTACT PAGE ================= */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-card-box {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  transition: var(--transition);
}

.contact-card-box:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background-color: rgba(62, 125, 50, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-card-details h3 {
  font-size: var(--font-sm);
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.contact-card-details p {
  font-size: var(--font-xs);
  color: var(--text-light);
  line-height: 1.5;
}

.contact-form-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  font-size: var(--font-lg);
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.contact-form-card p {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.map-showcase-container {
  margin-top: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  height: 350px;
  box-shadow: var(--shadow-sm);
}

.map-showcase-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.mobile-sidebar {
  display: none;
}

/* ================= MEDIA RESPONSIVENESS ================= */
@media (max-width: 992px) {
  html {
    font-size: 14px;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .nav-menu {
    display: none !important;
  }
  .mobile-sidebar {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85%;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 100000;
    flex-direction: column;
    padding: var(--space-md);
    box-sizing: border-box;
  }
  .mobile-sidebar.active {
    right: 0;
  }
  .mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
    direction: rtl;
  }
  .mobile-sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }
  .mobile-sidebar-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary);
  }
  .mobile-sidebar-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    overflow-y: auto;
    direction: rtl;
  }
  .mobile-sidebar-link {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: right;
  }
  .mobile-sidebar-link:hover,
  .mobile-sidebar-link.active {
    background-color: var(--bg-main);
    color: var(--primary);
    border-color: var(--border-color);
  }
  .store-layout {
    grid-template-columns: 200px 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .products-grid,
  .store-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  .statistics-strip-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .standards-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .results-count {
    display: none;
  }

  .slide-title-card {
    max-width: 250px;
  }
  .slide-hdr {
    font-size: var(--font-lg);
  }

  .store-layout {
    grid-template-columns: 1fr;
  }

  .filter-card {
    position: relative;
    top: 0;
  }

  .product-detail-container {
    grid-template-columns: 1fr;
  }
  .product-main-view {
    height: 400px;
  }
  .reviews-summary-block {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .total-score-card {
    border-left: none;
    border-bottom: 1.5px solid var(--border-color);
    padding-left: 0;
    padding-bottom: var(--space-md);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-media-box {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid,
  .store-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-group-row {
    grid-template-columns: 1fr;
  }
  .modal-body {
    grid-template-columns: 1fr;
  }
  .values-grid-showcase {
    grid-template-columns: 1fr;
  }
  .statistics-strip-wrap {
    grid-template-columns: 1fr;
  }
  .standards-badges-grid {
    grid-template-columns: 1fr;
  }
  .product-info-specs{
    grid-template-columns: 1fr;
  }
  .add-cart-text{
    display: none;
  }
}

/* ==========================================================================
   SIDEBAR DRAWERS (CART & WISHLIST) - PREMIUM MODERN CHIC STYLE (RIGHT SIDE)
   ========================================================================== */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(
    14,
    38,
    22,
    0.45
  ); /* Forest luxury semi-transparent background */
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity;
}
.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(
    4px
  ); /* Lower radius is extremely performant on mobile/low-end GPUs */
  -webkit-backdrop-filter: blur(4px);
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  right: 0; /* Align to the right side for RTL */
  left: auto;
  width: 440px;
  max-width: 100%;
  height: 100vh;
  height: 100dvh; /* dynamic viewport height support */
  background: var(--white);
  box-shadow: -5px 0 25px rgba(14, 38, 22, 0.08); /* Lightweight shadow for optimal redraw performance */
  z-index: 5100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%); /* Slides out to the right */
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); /* Buttery smooth, fast hardware ease curve */
  will-change: transform;
  backface-visibility: hidden; /* Force GPU layer creation to prevent redraw lag */
  -webkit-backface-visibility: hidden;
}

@media (max-width: 480px) {
  .sidebar-drawer {
    width: 88vw;
  }
}

.sidebar-drawer.active {
  transform: translateX(0); /* Snaps beautifully into view */
}

/* Custom Webkit scrollbar for premium custom feel */
.drawer-body::-webkit-scrollbar {
  width: 5px;
}
.drawer-body::-webkit-scrollbar-track {
  background: var(--bg-light);
}
.drawer-body::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-full);
}
.drawer-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Header style - Modern and clean */
.drawer-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1.5px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  gap: var(--space-md);
}
.drawer-header-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.drawer-header h3 {
  font-size: var(--font-sm);
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0;
}
.drawer-count-badge {
  background-color: var(--bg-light);
  color: var(--primary);
  border: 1px solid var(--primary-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
}
.drawer-close {
  background: none;
  border: none;
  font-size: var(--font-md);
  color: var(--text-color);
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background-color: var(--bg-light);
}
.drawer-close:hover {
  background-color: #ffebee;
  color: #c62828;
  transform: scale(1.05);
}

/* Body container scroll list */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background-color: #fafbfc; /* subtle premium light background contrast */
}
.drawer-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Drawer Individual Card Item - Soft Glass/Clean style */
.drawer-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 75, 46, 0.06);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 15px rgba(30, 75, 46, 0.02);
  align-items: center;
}
.drawer-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: 0 8px 20px rgba(30, 75, 46, 0.05);
}
.drawer-item-img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  background-color: #f7faf8;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: var(--space-xs);
  flex-shrink: 0;
}
.drawer-item-info {
  flex: 1;
  min-width: 0; /* enables text-overflow containment */
}
.drawer-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-bottom: var(--space-xs);
}
.drawer-item-price {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 800;
  display: block;
}
.drawer-item-qty {
  display: inline-flex;
  align-items: center;
  background: #f1f5f2;
  border-radius: var(--radius-full);
  padding: 3px;
  margin-top: var(--space-xs);
}
.drawer-item-qty button {
  background: var(--white);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--primary-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}
.drawer-item-qty button:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}
.drawer-item-qty .qty-val {
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Actions inside item cards */
.drawer-item-action-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.drawer-item-remove,
.drawer-item-add-cart {
  background: #fdf2f2;
  border: none;
  color: #c62828;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.drawer-item-remove:hover {
  background-color: #c62828;
  color: var(--white);
  transform: translateY(-2px);
}
.drawer-item-add-cart {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.drawer-item-add-cart:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Drawer footer section */
.drawer-footer {
  padding: var(--space-lg);
  border-top: 1.5px solid var(--border-color);
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
}
.drawer-summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
  font-size: 0.85rem;
  color: var(--text-color);
}
.drawer-summary-line.total {
  font-size: var(--font-sm);
  font-weight: 800;
  margin: var(--space-sm) 0;
}
.drawer-summary-line.total span:last-child {
  color: var(--primary-dark);
}
.drawer-btn-primary {
  width: 100%;
  height: 52px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border: none;
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--font-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(30, 75, 46, 0.2);
  transition: all 0.3s ease;
}
.drawer-btn-primary:hover {
  box-shadow: 0 12px 30px rgba(30, 75, 46, 0.3);
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.drawer-btn-primary i {
  font-size: 1rem;
}

/* ==========================================================================
   CHECKOUT PAGE STYLES - PREMIUM LUXURY SYSTEM
   ========================================================================== */
.checkout-layout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 991px) {
  .checkout-layout-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.checkout-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 75, 46, 0.06);
  box-shadow: 0 4px 20px rgba(30, 75, 46, 0.02);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.checkout-card-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1.5px solid var(--border-color);
  background: var(--white);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.checkout-card-header h3 {
  font-size: var(--font-sm);
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0;
}

.step-badge {
  width: 28px;
  height: 28px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.checkout-card-body {
  padding: var(--space-lg);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 576px) {
  .form-group-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
}

.form-control {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: var(--font-xs);
  color: var(--text-color);
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: #fafbfc;
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(30, 75, 46, 0.08);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* Payment option styles */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.payment-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  background-color: #fafbfc;
}

.payment-option-card:hover {
  border-color: var(--primary-light);
  background-color: #f7faf8;
}

.payment-option-card.active {
  border-color: var(--primary);
  background-color: rgba(30, 75, 46, 0.03);
}

.payment-option-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.payment-option-icon {
  font-size: 1.8rem;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.payment-option-info strong {
  display: block;
  font-size: var(--font-xs);
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.payment-option-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.payment-select-dot {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  position: relative;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.payment-option-card.active .payment-select-dot {
  border-color: var(--primary);
}

.payment-option-card.active .payment-select-dot::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Coupon layout */
.coupon-input-group {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.coupon-control {
  flex: 1;
}

.coupon-apply-btn {
  height: 42px;
  padding: 0 var(--space-md);
  flex-shrink: 0;
  border-radius: var(--radius-md) !important;
}

/* Price summary sheet */
.checkout-order-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-height: 280px;
  overflow-y: auto;
  padding-left: var(--space-xs);
}

.checkout-price-sheet {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.price-sheet-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-color);
}

.price-sheet-line.total {
  font-size: var(--font-sm);
  font-weight: 800;
}

.price-sheet-line.total span:last-child {
  color: var(--primary-dark);
  font-size: 1.25rem;
}

/* Sticky card container for desktop */
@media (min-width: 992px) {
  .sticky-card {
    position: sticky;
    top: 100px;
  }
}

/* OTP Inputs and Code Verification */
.otp-input-digit:focus {
  border-color: var(--primary) !important;
  background-color: var(--white) !important;
  box-shadow: 0 0 0 4px rgba(30, 75, 46, 0.08) !important;
  outline: none !important;
}

/* ==========================================================================
   DAIRY / CHEESE CUSTOM STYLES & COMPANY STATS
   ========================================================================== */

.section-header-top {
  display: flex;
  flex-direction: column;
}

.stats-section {
  background: linear-gradient(180deg, #ffffff 0%, #fffef4 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(245, 199, 26, 0.15);
  border-bottom: 1px solid rgba(245, 199, 26, 0.15);
}

.cheese-bubble-decor {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.cheese-bubble-decor.bubble-large {
  width: 140px;
  height: 140px;
  background: rgba(245, 199, 26, 0.04);
  top: -40px;
  left: -30px;
}

.cheese-bubble-decor.bubble-small {
  width: 80px;
  height: 80px;
  background: rgba(245, 199, 26, 0.03);
  bottom: 20px;
  right: -20px;
}

.cheese-section-badge {
  background-color: #fefda2;
  color: #7f5f00;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1.5px solid rgba(245, 199, 26, 0.3);
}

.stats-section .section-title {
  margin-top: 5px;
}

.stat-number-icon-wrap {
  width: 48px;
  height: 48px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #7f5f00;
  margin-bottom: var(--space-md);
  transition: all 0.3s ease;
}

.stat-number-box p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.stats-numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.stat-number-box {
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(245, 199, 26, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.stat-number-box::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(
    circle,
    rgba(245, 199, 26, 0.08) 0%,
    transparent 70%
  );
  bottom: -20px;
  left: -20px;
  border-radius: 50%;
  transition: transform 0.45s ease;
}

.stat-number-box:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 199, 26, 0.4);
  box-shadow: 0 10px 30px rgba(245, 199, 26, 0.12);
}

.stat-number-box:hover .stat-number-icon-wrap {
  background-color: #fefda2;
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(245, 199, 26, 0.6);
}

.stat-number-box:hover::after {
  transform: scale(2.2);
}

.stat-number-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 5px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #7f5f00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.stat-number-unit {
  font-weight: 800;
  font-size: 0.82rem;
  color: #7f5f00;
  margin-bottom: var(--space-xs);
}

/* Responsive stats */
@media (max-width: 991px) {
  .stats-numbers-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {
  .stats-numbers-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Dairy details - smooth cream curves or cheese glow indicators */
.category-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-card:hover {
  background-color: var(--accent) !important;
  border-color: rgba(245, 199, 26, 0.4) !important;
  box-shadow: 0 8px 24px rgba(245, 199, 26, 0.08) !important;
}

.category-card:hover .category-image-wrap {
  background-color: var(--accent) !important;
  color: var(--primary-dark) !important;
  transform: scale(1.08) rotate(-4deg);
}

/* Soft pulse animation for badge recommended */
.badge-discount,
.badge-featured {
  animation: pulse-creamy 2s infinite ease-in-out;
}

@keyframes pulse-creamy {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 199, 26, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(245, 199, 26, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 199, 26, 0);
  }
}

/* ==========================================================================
   BLOG & BLOG DETAILS PAGES - LUXURY DESIGN
   ========================================================================== */
.blog-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 991px) {
  .blog-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid-layout {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 199, 26, 0.12);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(30, 75, 46, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 199, 26, 0.4);
  box-shadow: 0 12px 30px rgba(245, 199, 26, 0.12);
}

.blog-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background-color: #fafafa;
  overflow: hidden;
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-media img {
  transform: scale(1.06);
}

.blog-date-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: #fefda2;
  color: #7f5f00;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 199, 26, 0.3);
}

.blog-info-wrapper {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-tag {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card-title {
  font-size: var(--font-sm);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: var(--space-xs);
  transition: color 0.25s ease;
}

.blog-card:hover .blog-card-title {
  color: #7f5f00;
}

.blog-card-desc {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-sm);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Filter buttons */
.blog-filters-container {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.blog-filter-btn {
  background-color: var(--white);
  border: 1.5px solid var(--border-color);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 75, 46, 0.15);
}

/* Blog details structure */
.blog-details-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 991px) {
  .blog-details-layout {
    grid-template-columns: 1fr;
  }
}

.blog-post-content {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 199, 26, 0.12);
  box-shadow: 0 4px 20px rgba(30, 75, 46, 0.02);
}

.blog-post-header {
  margin-bottom: var(--space-lg);
}

.blog-meta-strip {
  display: flex;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-post-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: var(--space-sm);
}

.blog-body-text {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.8;
}

.blog-body-text h2 {
  font-size: var(--font-sm);
  color: var(--primary-dark);
  font-weight: 800;
  margin: var(--space-lg) 0 var(--space-sm);
  border-right: 3px solid var(--secondary);
  padding-right: 8px;
}

.blog-body-text p {
  margin-bottom: var(--space-md);
}

.blog-blockquote {
  border-right: 4px solid var(--primary);
  background-color: rgba(30, 75, 46, 0.03);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  font-style: italic;
  font-weight: 600;
  color: var(--primary-dark);
  margin: var(--space-md) 0;
  line-height: 1.6;
}

/* Sidebar lists */
.blog-sidebar-widget {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 199, 26, 0.12);
  box-shadow: 0 4px 20px rgba(30, 75, 46, 0.02);
  margin-bottom: var(--space-lg);
}

.widget-title {
  font-size: var(--font-xs);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
  border-bottom: 2px solid #fefda2;
  padding-bottom: 8px;
  margin-top: 0;
}

/* ================= =========================================================
   USER DASHBOARD & CUSTOMER PORTAL PAGES
   ========================================================================== */
.user-hero-wrapper {
  background: linear-gradient(135deg, #13301e 0%, #1e4b2e 100%);
  color: var(--white);
  padding: 40px 0;
  border-bottom: 3.5px solid var(--secondary);
  position: relative;
  overflow: hidden;
}

.user-hero-wrapper::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(245, 199, 26, 0.08);
}

.user-hero-content {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.user-avatar-circle {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background-color: var(--secondary);
  border: 3.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #1e4b2e;
  font-weight: 800;
}

.user-welcome-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.user-welcome-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.user-dashboard-section {
  background-color: var(--bg-main);
  padding: var(--space-xl) 0;
}

.user-dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  align-items: start;
}

@media (max-width: 991px) {
  .user-dashboard-layout {
    grid-template-columns: 1fr;
  }
}

.user-sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: var(--space-md);
  box-shadow: 0 4px 15px rgba(30, 75, 46, 0.02);
}

.user-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.user-sidebar-menu .user-menu-item:hover {
  background-color: rgba(30, 75, 46, 0.04);
  color: var(--primary);
  padding-right: 18px;
}

.user-sidebar-menu .user-menu-item.active {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(30, 75, 46, 0.15);
}

.user-sidebar-menu .user-menu-item.logout-link {
  color: #c62828;
  margin-top: var(--space-md);
  border-top: 1px dashed var(--border-color);
  padding-top: 15px;
  border-radius: 0;
}

.user-sidebar-menu .user-menu-item.logout-link:hover {
  background-color: rgba(198, 40, 40, 0.05);
  color: #c62828;
}

.user-content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: var(--space-xl);
  box-shadow: 0 4px 15px rgba(30, 75, 46, 0.02);
  min-height: 450px;
}

.user-content-title {
  font-size: 1.15rem;
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

.user-content-title i {
  color: var(--primary);
}

/* User account stats counters */
.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 600px) {
  .user-stats-grid {
    grid-template-columns: 1fr;
  }
}

.user-stat-card {
  background: #fafbfc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all 0.3s ease;
}

.user-stat-card:hover {
  border-color: rgba(245, 199, 26, 0.4);
  box-shadow: 0 4px 12px rgba(245, 199, 26, 0.08);
}

.user-stat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(30, 75, 46, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.user-stat-card.completed-orders .user-stat-icon-box {
  background-color: rgba(46, 125, 50, 0.08);
  color: #2e7d32;
}

.user-stat-card.pending-orders .user-stat-icon-box {
  background-color: rgba(239, 108, 0, 0.08);
  color: #ef6c00;
}

.user-stat-info {
  display: flex;
  flex-direction: column;
}

.user-stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.user-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* User Account Info Form */
.user-info-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (max-width: 600px) {
  .user-info-row {
    grid-template-columns: 1fr;
  }
}

.readonly-display-box {
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

/* Orders list styles */
.orders-history-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-history-table th {
  background-color: #fafbfc;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.8rem;
  text-align: right;
  padding: 12px;
  border-bottom: 2px solid var(--border-color);
}

.orders-history-table td {
  padding: 12px;
  font-size: 0.8rem;
  color: var(--text-color);
  border-bottom: 1.5px solid var(--border-color);
}

.orders-history-table tr:hover td {
  background-color: rgba(30, 75, 46, 0.01);
}

.status-badge-lbl {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 800;
}

.status-badge-lbl.completed {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.status-badge-lbl.pending {
  background-color: #ffe0b2;
  color: #e65100;
}

.status-badge-lbl.cancelled {
  background-color: #ffebee;
  color: #c62828;
}

/* Review Cards */
.user-reviews-list-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.user-review-card {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background-color: var(--white);
  transition: all 0.3s ease;
}

.user-review-card:hover {
  border-color: rgba(245, 199, 26, 0.3);
  box-shadow: 0 4px 15px rgba(30, 75, 46, 0.03);
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.review-product-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-decoration: none;
}

.review-product-name:hover {
  color: var(--primary);
}

.review-card-stars {
  color: var(--secondary);
  font-size: 0.85rem;
}

.review-date-info {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.review-card-comment {
  font-size: 0.8rem;
  color: var(--text-color);
  line-height: 1.5;
  margin: 6px 0 0;
}

/* User Review Submission Form */
.review-form-container {
  background-color: var(--bg-main);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.review-form-container label {
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.review-form-title {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.88rem;
  margin: 0 0 var(--space-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-form-title i {
  color: var(--primary);
}

.review-form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.review-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 600px) {
  .review-form-grid {
    grid-template-columns: 1fr;
  }
}

.review-form-input {
  height: 40px;
  font-size: 0.8rem;
  background-color: var(--white) !important;
  padding: 6px 12px;
}

textarea.review-form-input {
  height: auto;
  min-height: 80px;
  line-height: 1.5;
}

.review-submit-btn {
  align-self: flex-start;
  height: 36px;
  padding: 0 var(--space-md);
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  cursor: pointer;
  background-color: var(--primary);
  color: var(--white);
  transition: var(--transition);
}

.review-submit-btn:hover {
  background-color: var(--primary-dark);
}

/* Order detailed page timeline */
.order-details-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 600px) {
  .order-details-meta {
    grid-template-columns: 1fr;
  }
}

.order-detail-meta-item {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.order-detail-meta-item strong {
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 2px;
}

.order-items-list-container {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.order-detailed-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}

.order-detailed-item:last-child {
  border-bottom: none;
}

.order-detail-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.order-detail-info-main {
  flex: 1;
  min-width: 0;
}

.order-detail-info-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-detail-info-desc {
  font-size: 0.72rem;
  color: var(--text-light);
}

.order-detail-info-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
}

.order-pricing-summary {
  margin-top: var(--space-md);
  align-self: flex-end;
  width: 100%;
  max-width: 320px;
  margin-right: auto;
}

.order-pricing-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.order-pricing-row.total-row {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
  border-top: 1.5px solid var(--border-color);
  padding-top: 6px;
  margin-top: 6px;
}

/* ================= PREMIUM MULTI-MODE DECORATIONS (RETAIL / WHOLESALE) ================= */

/* Glassmorphic Sliding Toggle Switch */
.mode-toggle-switch {
  position: relative;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  width: 160px;
  height: 28px;
  align-items: center;
  direction: ltr; /* keep slide animation flowing left-to-right */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.mode-toggle-bg {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: 76px;
  background: linear-gradient(135deg, #f5c71a 0%, #d4ab00 100%);
  border-radius: 30px;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.1);
  box-shadow: 0 2px 6px rgba(245, 199, 26, 0.4);
  z-index: 1;
}

/* Switcher state active movements */
body.merchant-mode .mode-toggle-bg {
  transform: translateX(80px);
  background: linear-gradient(135deg, #2e7d32 0%, #1e5a2c 100%);
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.4);
}

.mode-toggle-btn {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
  font-family: "Tajawal", sans-serif;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.mode-toggle-btn.active {
  color: #0e2616 !important;
}

body.merchant-mode .mode-toggle-btn.active {
  color: var(--white) !important;
}

/* Sleek, Premium Navbar Switch Button */

.nav-link-merchant-btn:hover {
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(30, 75, 46, 0.3) !important;
  transform: translateY(-2px) scale(1.02);
}

/* When the body is in merchant mode, change the button's background and hover states to look like a Return to Retail button */
body.merchant-mode .nav-link-merchant-btn {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary-dark) !important;
  box-shadow: 0 4px 15px rgba(30, 75, 46, 0.3) !important;
}

body.merchant-mode .nav-link-merchant-btn:hover {
  background: linear-gradient(135deg, #f5c71a 0%, #d4ab00 100%) !important;
  color: #0e2616 !important;
  border-color: rgba(245, 199, 26, 0.4) !important;
  box-shadow: 0 4px 15px rgba(245, 199, 26, 0.25) !important;
}

/* ================= PREMIUM WHOLESALE CARD TRANFORMS ================= */

/* Transition glow effects */
.product-card {
  transition:
    border-color 0.4s ease,
    background 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.3s ease !important;
}

body.merchant-mode .product-card {
  box-shadow: 0 8px 24px rgba(245, 199, 26, 0.08) !important;
}

body.merchant-mode .product-card:hover {
  border-color: #d4ab00 !important;
  box-shadow: 0 12px 35px rgba(245, 199, 26, 0.18) !important;
  transform: translateY(-5px);
}

/* Wholesale specific info display cards */
.wholesale-info-row {
  margin: 8px 0 4px;
  padding: 6px 10px;
  background-color: rgba(245, 199, 26, 0.07);
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--secondary);
  font-size: 0.72rem;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.4;
  animation: cardFadeIn 0.4s ease forwards;
}

/* Add carton button modifications */
.add-cart-btn.wide-merchant-btn {
  width: auto !important;
  height: 34px !important;
  background-color: var(--secondary) !important;
  color: var(--primary-dark) !important;
  border: 1.5px solid #d4ab00 !important;
  border-radius: var(--radius-sm) !important;
  padding: 0 10px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: 0 3px 8px rgba(245, 199, 26, 0.25) !important;
  text-shadow: none !important;
  transition: var(--transition) !important;
}

.add-cart-btn.wide-merchant-btn:hover {
  background-color: var(--primary-dark) !important;
  color: var(--white) !important;
  border-color: var(--primary-dark) !important;
  box-shadow: 0 3px 8px rgba(14, 38, 22, 0.2) !important;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} /* ==========================================================================
   DAILY DEALS & PROMO BANNER SECTION
   ========================================================================== */

.deals-section {
  background: linear-gradient(135deg, #10321c 0%, #1e4b2e 50%, #2f6c44e6 100%);
  background-size: 200% 200%;
  animation: dealsSectionBg 8s ease infinite;
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 40px;
}

.deals-section .section-title {
  color: var(--accent) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.deals-section .section-subtitle {
  color: var(--white) !important;
}

@keyframes dealsSectionBg {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* New Premium Horizontal Promo Countdown Banner (Glassmorphic theme to match green section background) */
.deals-promo-header-banner {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  animation: bannerPulseBorder 4s infinite alternate;
}

@keyframes bannerPulseBorder {
  0% {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }
  100% {
    border-color: rgba(245, 199, 26, 0.6);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.2),
      0 0 15px rgba(245, 199, 26, 0.08);
  }
}

.deals-promo-header-banner::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background-color: rgba(242, 193, 78, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.deals-promo-header-banner::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background-color: rgba(124, 179, 66, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.promo-text-side {
  flex: 1;
  min-width: 280px;
}

.promo-countdown-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  min-width: 260px;
}

.promo-countdown-box {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  backdrop-filter: blur(4px);
  width: 100%;
}

.countdown-label-inside {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
  text-align: center;
  font-weight: 700;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  direction: ltr; /* Keeps time showing hours:mins:secs properly */
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid transparent;
}

/* Hours - Gold theme */
.countdown-timer .countdown-item:nth-child(1) {
  background: linear-gradient(180deg, #ffe082 0%, var(--accent) 100%);
  border-color: #ffca28;
}
.countdown-timer .countdown-item:nth-child(1) .countdown-val {
  color: #10321c;
}
.countdown-timer .countdown-item:nth-child(1) .countdown-unit {
  color: #5d4037;
}

/* Minutes - Orange/Amber theme */
.countdown-timer .countdown-item:nth-child(3) {
  background: linear-gradient(180deg, #ffcc80 0%, #ffb74d 100%);
  border-color: #ffa726;
}
.countdown-timer .countdown-item:nth-child(3) .countdown-val {
  color: #3e2723;
}
.countdown-timer .countdown-item:nth-child(3) .countdown-unit {
  color: #5d4037;
}

/* Seconds - Coral/Red theme */
.countdown-timer .countdown-item:nth-child(5) {
  background: linear-gradient(180deg, #ffab91 0%, #ff8a65 100%);
  border-color: #ff7043;
}
.countdown-timer .countdown-item:nth-child(5) .countdown-val {
  color: #5c0f00;
}
.countdown-timer .countdown-item:nth-child(5) .countdown-unit {
  color: #8c2a11;
}

.countdown-val {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.countdown-unit {
  font-size: 8.5px;
  font-weight: 700;
}

.countdown-divider {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  animation: pulse-divider 1s infinite;
}

.promo-badge {
  background-color: var(--accent) !important;
  color: white !important;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: var(--space-sm);
  box-shadow: 0 0 10px rgba(255, 213, 79, 0.25);
  animation: pulse-promo-badge 1.5s infinite alternate;
}

.promo-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent) !important;
  margin-bottom: var(--space-xs);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.promo-desc {
  font-size: var(--font-xs);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0;
  max-width: 580px;
}

.promo-footer-text {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

@keyframes pulse-divider {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes pulse-promo-badge {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 213, 79, 0.4);
  }
  100% {
    transform: scale(1.04);
    box-shadow: 0 0 12px rgba(255, 213, 79, 0.25);
  }
}

@media (max-width: 768px) {
  .deals-promo-header-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md);
  }
  .promo-text-side{
    display: none;
  }

  .deals-promo-header-banner .promo-badge {
    margin: 0 auto var(--space-sm);
  }

  .deals-promo-header-banner .promo-desc {
    margin: 0 auto var(--space-md);
  }
}

/* Mobile & Tablet Product Swiper Carousel (Home Page & Similar Products - under 992px) */
@media (max-width: 992px) {
  #daily-deals .products-grid,
  #store .products-grid,
  #offers .products-grid,
  .related-products-block .store-products-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none !important; /* Hide scrollbar for IE/Edge */
    padding: 10px 16px 24px 16px !important;
    margin-right: -16px !important;
    margin-left: -16px !important;
    max-width: none !important;
    width: auto !important;
  }

  #daily-deals .products-grid::-webkit-scrollbar,
  #store .products-grid::-webkit-scrollbar,
  #offers .products-grid::-webkit-scrollbar,
  .related-products-block .store-products-grid::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar for Chrome, Safari and Opera */
  }

  #daily-deals .products-grid .product-card,
  #store .products-grid .product-card,
  #offers .products-grid .product-card,
  .related-products-block .store-products-grid .product-card {
    flex: 0 0 250px !important; /* Fixed width for card carousel items */
    scroll-snap-align: center !important; /* Snap card to screen center when swiped */
    max-width: none !important;
    margin: 0 !important;
  }
}

/* Order Details Print & Action Layout */
.order-detail-header {
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

.order-detail-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  justify-content: space-between;
}

.back-to-orders-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.back-to-orders-link:hover {
  color: var(--primary-dark);
}

/* Print Invoice Button Style */
.print-invoice-btn {
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.print-invoice-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

/* Print Media Layout */
@media print {
  body {
    background-color: var(--white) !important;
    color: #000000 !important;
    font-size: 12px !important;
  }

  /* Hide page controls, headers, footers & print buttons */
  .topbar,
  .header,
  .user-hero-wrapper,
  .user-sidebar-card,
  .footer,
  .back-to-top,
  .sidebar-drawer,
  .sidebar-overlay,
  .print-invoice-btn,
  .back-to-orders-link {
    display: none !important;
  }

  /* Make user content wrap to full width on paper */
  .user-dashboard-layout {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .user-dashboard-section {
    padding: 0 !important;
    background-color: var(--white) !important;
  }

  .user-content-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
    width: 100% !important;
  }

  .user-content-title {
    border-bottom: 2px solid #000000 !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
  }

  .order-details-meta {
    background-color: #f5f5f5 !important;
    border: 1px solid #cccccc !important;
    color: #000000 !important;
  }

  /* Add extra print invoice padding and info */
  .order-pricing-summary {
    border-top: 2px solid #000000 !important;
    margin-top: 20px !important;
  }
}

/* ================= CREATIVE 404 ERROR PAGE ================= */
.error-page-wrapper {
  background-color: var(--bg-main);
  padding: 80px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.error-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
}

.error-visuals {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.error-badge-404 {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(62, 125, 50, 0.08); /* Transparent primary colors */
  position: absolute;
  z-index: 1;
  user-select: none;
  font-family: inherit;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.error-illustration {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.illustrations-leaf {
  position: absolute;
  color: var(--secondary);
  font-size: 2rem;
  opacity: 0.8;
  animation: leafFloat 4s ease-in-out infinite alternate;
}

.leaf-1 {
  top: 20px;
  right: -10px;
  animation-delay: 0.5s;
}

.leaf-2 {
  bottom: 15px;
  left: -20px;
  font-size: 1.6rem;
  transform: rotate(45deg);
  animation-direction: alternate-reverse;
}

.illustrations-jar {
  font-size: 5.5rem;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: jarBounce 3s ease-in-out infinite alternate;
}

.jar-icon {
  margin-top: 10px;
}

.drip {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--accent); /* Honey dripping color */
  border-radius: var(--radius-full);
  opacity: 0;
  animation: honeyDrip 2.5s infinite linear;
}

.drip-1 {
  bottom: 0px;
  left: 36px;
  animation-delay: 0.2s;
}

.drip-2 {
  bottom: -4px;
  right: 32px;
  animation-delay: 1.4s;
}

.error-text-content {
  text-align: right;
  z-index: 2;
}

.error-text-content h2 {
  font-size: var(--font-xxl);
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.error-text-content p {
  color: var(--text-light);
  font-size: var(--font-xs);
  line-height: var(--line-height, 1.6);
  margin-bottom: var(--space-lg);
}

.error-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.btn-error-primary {
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--font-xs);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(62, 125, 50, 0.2);
}

.btn-error-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 75, 46, 0.3);
}

.btn-error-secondary {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--font-xs);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-error-secondary:hover {
  border-color: var(--primary);
  background-color: var(--bg-main);
  transform: translateY(-2px);
}

.error-help {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.error-help a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.error-help a:hover {
  text-decoration: underline;
}

@keyframes leafFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-12px) rotate(15deg);
  }
}

@keyframes jarBounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-8px) rotate(-2deg);
  }
}

@keyframes honeyDrip {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  80% {
    transform: translateY(30px) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translateY(35px) scale(0.2);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .error-page-wrapper {
    padding: 50px 0;
  }

  .error-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }

  .error-text-content {
    text-align: center;
  }

  .error-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .btn-error-primary,
  .btn-error-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ================= MOBILE BOTTOM NAVIGATION BAR ================= */
.mobile-bottom-nav {
  position: fixed;
  bottom: 6px;
  left: 6px;
  right: 6px;
  background: var(--white);
  border-radius: 50px;
  box-shadow: 0 1px 4px 2px rgb(30 75 46 / 14%);
  z-index: 1000;
  display: none; /* Hidden on desktop */
  justify-content: space-around;
  align-items: center;
  padding: 3px 0;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.35s ease;
  align-items: flex-end;
}

.mobile-bottom-nav.scroll-hidden {
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.bottom-nav-item {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-light);
  flex: 1;
  transition: var(--transition);
  position: relative;
}

.bottom-nav-item i {
  height: 45px;
  width: 45px;
  font-size: 20px;
  color: var(--text-light);
  transition: var(--transition);
  padding: 8px;
  margin-bottom: -13px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Active State Styles - Dynamic Floating Highlights */
.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active i {
  border: 4px solid white;
  position: absolute;
  top: -45px;
  height: 45px;
  width: 45px;
  color: var(--white);
  background-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 4px 12px rgba(62, 125, 50, 0.35);
}

.bottom-nav-item.active span {
  color: var(--primary);
  font-weight: 800;
  transform: translateY(-2px);
}

.bottom-nav-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-icon-wrap .action-badge {
  width: 20px;
  top: -3px;
  right: -3px;
  background-color: var(--primary);
  height: 20px;
}

/* Ensure active item badge follows transformation */
.bottom-nav-item.active .action-badge {
  background-color: var(
    --accent
  ); /* Turn badge color gold/accent for active item */
  color: var(--primary-dark);
  top: -7px;
  right: -8px;
}

@media (max-width: 992px) {
  footer {
    padding-bottom: 85px !important;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .action-btn {
    display: none;
  }
}

/* ================= TOPBAR TEXT RESPONSIVENESS ================= */
.topbar-text-mobile {
  display: none !important;
}

@media (max-width: 992px) {
  .topbar-text-desktop {
    display: none !important;
  }
  .topbar-text-mobile {
    display: inline !important;
  }
}

/* ================= FEATURES MOBILE CAROUSEL ================= */
.features-dots-container {
  display: none; /* Hidden on desktop */
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.features-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.features-dot.active {
  background-color: var(--primary);
  width: 20px; /* Expand active dot for premium indicator */
}

@media (max-width: 768px) {
  .features-section .features-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none !important; /* Hide scrollbar for IE/Edge */
    width: 100vw !important;
    max-width: 100vw !important;
    margin-right: calc(-50vw + 50%) !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 24px calc(50vw - 140px) !important; /* Allow centering items precisely, including ends! */
    position: relative;
    gap: 16px !important;
    box-sizing: border-box !important;
  }

  .features-section .features-grid::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar for Chrome/Safari */
  }

  .features-section .feature-box {
    flex: 0 0 280px !important;
    width: 280px !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    transform: scale(0.9);
    opacity: 0.65;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    margin: 0 !important;
  }

  .features-section .feature-box.active {
    transform: scale(1.06);
    opacity: 1;
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
  }

  .features-dots-container {
    display: flex !important;
  }
}

/* ================= STATS MOBILE CAROUSEL ================= */
.stats-dots-container {
  display: none; /* Hidden on desktop */
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.stats-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.stats-dot.active {
  background-color: var(--primary);
  width: 20px; /* Expand active dot for premium indicator */
}

@media (max-width: 768px) {
  .stats-section .stats-numbers-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none !important; /* Hide scrollbar for IE/Edge */
    width: 100vw !important;
    max-width: 100vw !important;
    margin-right: calc(-50vw + 50%) !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 24px calc(50vw - 140px) !important; /* Center items precisely, including ends! */
    position: relative;
    gap: 16px !important;
    box-sizing: border-box !important;
  }

  .stats-section .stats-numbers-grid::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar for Chrome/Safari */
  }

  .stats-section .stat-number-box {
    flex: 0 0 280px !important;
    width: 280px !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    transform: scale(0.9);
    opacity: 0.65;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    margin: 0 !important;
  }

  .stats-section .stat-number-box.active {
    transform: scale(1.06);
    opacity: 1;
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
  }

  .stats-dots-container {
    display: flex !important;
  }
}

/* ================= ABOUT BRIEF SECTION (SEO & INTRO) ================= */
.about-brief-section {
  background-color: var(--bg-main);
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 40px;
}

.about-brief-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-brief-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  text-align: right;
}

.about-brief-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.3;
}

.about-brief-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.about-brief-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
}

.brief-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.brief-feat-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

.about-brief-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.about-brief-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-brief-image img.glowing-image {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(30, 75, 46, 0.12);
  border: 1px solid rgba(62, 125, 50, 0.08);
  transition: var(--transition);
}

.about-brief-image img.glowing-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 45px rgba(62, 125, 50, 0.2);
}

@media (max-width: 992px) {
  .about-brief-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .about-brief-content {
    align-items: center;
    text-align: center;
  }
  .about-brief-title {
    font-size: 1.8rem;
  }
  .about-brief-image img.glowing-image {
    max-width: 340px;
  }
}

@media ((max-width: 992px)) {
  .about-brief-features,
  .about-brief-image,
  .about-brief-section.section-padding {
    display: none !important;
  }
}

/* Responsive Button Utility */
.mobile-only-btn {
  display: none !important;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only-btn {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    margin-top: calc(var(--space-md) + 10px) !important;
    padding: 10px 24px !important;
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 12px rgba(62, 125, 50, 0.25) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    width: fit-content !important;
  }
  .mobile-only-btn:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(62, 125, 50, 0.3) !important;
  }
}

/* Product Media Link Styling */
.product-media-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

/* ================= DRAWER & OVERLAY HELPER STYLES ================= */
.drawer-empty-state {
  display: none;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--text-muted);
}

.drawer-empty-state-icon {
  font-size: 3rem;
  color: var(--border-color);
  display: block;
  margin-bottom: var(--space-sm);
}

.drawer-delivery-free {
  color: var(--primary);
}

.drawer-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: var(--space-sm) 0;
}

.drawer-summary-line.total span:last-child {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: var(--font-md);
}

.drawer-btn-full {
  width: 100%;
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}

.drawer-btn-wishlist {
  width: 100%;
  border-radius: var(--radius-md);
}

.mobile-sidebar-logo-area {
  display: flex;
  align-items: center;
}

.mobile-sidebar-logo-img {
  height: 32px;
  width: auto;
}

.mobile-sidebar-logo-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-right: 8px;
}

/* ================= GENERAL & LOGIN MODAL STYLING ================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  background-color: rgba(14, 38, 22, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal .modal-content {
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-login-content {
  max-width: 440px;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  width: 92%;
  position: relative;
  background-color: var(--white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-close-btn {
  position: absolute;
  left: 15px;
  top: 15px;
  background: var(--bg-light);
  border: none;
  font-size: 1.3rem;
  color: var(--text-color);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background-color: #ffebee;
  color: #c62828;
}

.login-header-box {
  text-align: center;
  margin-bottom: var(--space-md);
  padding-top: var(--space-xs);
}

.login-header-logo {
  width: 50px;
  height: auto;
  margin-bottom: var(--space-xs);
}

.login-header-title {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 5px 0 2px;
}

.login-header-desc {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 0 10px;
}

.login-field-group {
  margin-bottom: var(--space-md);
}

.login-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
}

.login-required-mark {
  color: #c62828;
}

.login-input-box {
  position: relative;
}

.login-phone-control {
  direction: ltr;
  text-align: right;
  padding-right: 65px;
  height: 46px;
}

.phone-prefix-badge {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
  direction: ltr;
}

.login-highlight-box {
  background-color: rgba(30, 75, 46, 0.04);
  border-right: 3px solid var(--primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
}

.login-highlight-text {
  font-size: 0.72rem;
  color: var(--primary-dark);
  line-height: 1.5;
  margin: 0;
  font-weight: 600;
}

.login-highlight-icon {
  color: var(--primary);
  font-size: 0.95rem;
  vertical-align: middle;
  margin-left: 2px;
}

.login-btn-submit {
  width: 100%;
  border-radius: var(--radius-md);
  height: 48px;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

/* ================= PREMIUM SEARCH MODAL STYLING ================= */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 50, 34, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-modal-container {
  position: relative;
  width: 90%;
  max-width: 580px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(62, 125, 50, 0.1);
  padding: var(--space-md) var(--space-lg);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
  box-sizing: border-box;
}

.search-modal.active .search-modal-container {
  transform: scale(1);
}

.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.search-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.search-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper .search-icon {
  position: absolute;
  right: 16px;
  color: var(--primary);
  font-size: 1.3rem;
}

.search-input-wrapper input {
  width: 100%;
  padding: 12px 48px 12px 44px;
  font-size: 1.05rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  background-color: var(--bg-main);
  transition: var(--transition);
  outline: none;
}

.search-input-wrapper input:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(62, 125, 50, 0.15);
}

.search-reset-btn {
  position: absolute;
  left: 14px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  display: none; /* Controlled dynamically in JS */
  align-items: center;
  justify-content: center;
  padding: 0;
}

.search-reset-btn:hover {
  color: var(--primary);
}

.popular-searches-box {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popular-title {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.popular-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.82rem;
  background-color: var(--bg-main);
  color: var(--text-dark);
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.popular-tag:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.search-results-wrapper {
  margin-top: var(--space-md);
  overflow-y: auto;
  flex-grow: 1;
  max-height: 45vh;
  border-top: 1px dashed var(--border-color);
  padding-top: var(--space-sm);
}

/* Hide scrollbar for results */
.search-results-wrapper::-webkit-scrollbar {
  width: 5px;
}
.search-results-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: var(--radius-full);
}

.search-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  padding: var(--space-lg) 0;
  gap: var(--space-xs);
  text-align: center;
}

.search-no-results i {
  font-size: 2.2rem;
  opacity: 0.7;
}

.search-no-results p {
  font-size: 0.9rem;
}

.search-results-list {
  display: none;
  flex-direction: column;
  gap: var(--space-xs);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  border: 1px solid transparent;
}

.search-result-item:hover {
  background-color: var(--bg-main);
  border-color: var(--border-color);
}

.search-result-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--white);
  border: 1px solid var(--border-color);
}

.search-result-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.search-result-cat {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

.search-result-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 2px 0;
}

.search-result-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
}

/* Prevent body scrolling when modal is active */
body.modal-open {
  overflow: hidden !important;
}

@media (max-width: 576px) {
  .search-modal-container {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    padding: var(--space-md);
    transform: translateY(30px);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  .search-modal.active .search-modal-container {
    transform: translateY(0);
  }
  .search-results-wrapper {
    max-height: calc(100vh - 240px);
  }
}

/* ================= MOBILE BOTTOM SHEET FILTERS STYLING ================= */
.filter-mobile-header {
  display: none;
}

.mobile-filter-trigger {
  display: none;
}

@media (max-width: 768px) {
  .store-products-grid{
    gap: 10px;
  }
  .sorting-select-wrap {
    width: 100% !important;
    justify-content: space-between;
    display: flex;
    align-items: center;
  }
  .mobile-filter-trigger {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    background-color: var(--secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 44px;
    padding: 0;
    overflow: hidden;
    color: white;
  }
  
  .mobile-filter-trigger:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(62, 125, 50, 0.08);
  }

  .filter-trigger-text {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0 16px;
    color: var(--text-dark);
    text-align: right;
    flex-grow: 1;
  }

  .filter-trigger-divider {
    width: 1px;
    height: 22px;
    background-color: var(--border-color);
    margin: 0 12px;
  }

  .filter-trigger-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 1.25rem;
    transition: var(--transition);
  }

  .mobile-filter-trigger:hover .filter-trigger-icon-box {
    background-color: var(--primary-dark);
  }

  .filter-mobile-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
    direction: rtl;
  }

  .filter-mobile-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    margin: 0;
  }

  .filter-mobile-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-light);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
  }

  .filter-mobile-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary);
  }
  
  /* Transform vertical filter sidebar into bottom sheet on mobile screens (< 768px) */
  .filter-sidebar {
    position: fixed !important;
    bottom: -100% !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-height: 82vh !important;
    background-color: var(--white) !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18) !important;
    border-radius: 20px 20px 0 0 !important;
    z-index: 100000 !important;
    padding: 20px 20px 30px 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    margin: 0 !important;
  }

  .filter-sidebar.active {
    bottom: 0 !important;
  }

  .filter-sidebar .filter-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    position: static !important;
    background: transparent !important;
  }
  
  .filter-sidebar .filter-section {
    padding-bottom: 16px;
    margin-bottom: 20px;
  }

  .sorting-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin-bottom: var(--space-md);
  }

  .sorting-select-wrap {
    margin: 0 !important;
  }
}

/* ==========================================================================
   ORDER TRACKING PAGE & INVOICE MODAL STYLES
   ========================================================================== */
.tracking-page-wrapper {
  padding: 40px 0 80px;
  background: linear-gradient(180deg, #f4f7f4 0%, var(--bg-main) 100%);
  min-height: 80vh;
}

/* Tracking Top Search Header */
.tracking-header-box {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #29603a 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.tracking-header-box::after {
  content: '';
  position: absolute;
  left: -50px;
  bottom: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tracking-header-title {
  font-size: var(--font-xxl);
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.tracking-header-title i {
  color: var(--accent);
  font-size: 2rem;
}

.tracking-header-desc {
  font-size: 0.95rem;
  color: #e0ece3;
  margin-bottom: var(--space-lg);
  max-width: 650px;
}

.tracking-search-form {
  display: flex;
  gap: 12px;
  max-width: 750px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tracking-input-group {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.tracking-input-group i {
  position: absolute;
  right: 14px;
  color: #b0cbb6;
  font-size: 1.1rem;
}

.tracking-input {
  width: 100%;
  height: 48px;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0 45px 0 15px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.tracking-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.25);
}

.btn-track-search {
  background-color: var(--accent);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0 28px;
  border-radius: var(--radius-md);
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-track-search:hover {
  background-color: #ffd066;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(242, 193, 78, 0.35);
}

/* Main Order Status Banner */
.order-status-banner {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 25px 30px;
  margin-bottom: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.order-id-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-id-badge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.order-main-number {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
}

.order-live-tag {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: pulseLive 2s infinite ease-in-out;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(1.02); }
}

.order-placed-date {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Actions buttons */
.order-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-invoice-action {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(62, 125, 50, 0.25);
  transition: var(--transition);
}

.btn-invoice-action:hover {
  background: linear-gradient(135deg, #48933b 0%, #153822 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(62, 125, 50, 0.35);
}

.btn-support-action {
  background-color: #fafbfc;
  color: var(--primary-dark);
  border: 1.5px solid var(--border-color);
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-support-action:hover {
  background-color: #f0f5f1;
  border-color: var(--primary);
  color: var(--primary);
}

/* Tracking Stepper */
.tracking-stepper-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 35px 30px;
  margin-bottom: var(--space-xl);
}

.stepper-header-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stepper-progress-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 40px 10px 20px;
}

.stepper-progress-track::before {
  content: '';
  position: absolute;
  top: 24px;
  right: 5%;
  left: 5%;
  height: 6px;
  background: #e9ecef;
  border-radius: 10px;
  z-index: 1;
}

.stepper-progress-bar-fill {
  position: absolute;
  top: 24px;
  right: 5%;
  width: 65%;
  height: 6px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: 10px;
  z-index: 2;
  transition: width 0.8s ease;
}

.step-item {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 22%;
}

.step-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 3px solid #dee2e6;
  color: #adb5bd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.step-item.completed .step-icon-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(62, 125, 50, 0.3);
}

.step-item.active .step-icon-circle {
  background: var(--accent);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
  transform: scale(1.15);
  box-shadow: 0 6px 18px rgba(242, 193, 78, 0.45);
  animation: bounceSubtle 1.8s infinite alternate ease-in-out;
}

@keyframes bounceSubtle {
  0% { transform: scale(1.1); }
  100% { transform: scale(1.18); }
}

.step-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 14px;
  margin-bottom: 4px;
}

.step-item.completed .step-title {
  color: var(--primary-dark);
}

.step-item.active .step-title {
  color: var(--primary-dark);
  font-weight: 800;
}

.step-time {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.4;
}

.delivery-eta-alert {
  margin-top: var(--space-xl);
  background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.delivery-eta-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.delivery-eta-info i {
  font-size: 1.8rem;
  color: var(--primary);
}

.delivery-eta-text strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.delivery-eta-text span {
  font-size: 0.82rem;
  color: var(--text-light);
}

.carrier-contact-btn {
  background: var(--white);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.carrier-contact-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* Tracking Details Grid (User & Address) */
.tracking-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.tracking-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 25px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tracking-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.tracking-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.tracking-card-title i {
  color: var(--primary);
  font-size: 1.25rem;
}

.tracking-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.tracking-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tracking-info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #f4f8f5;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tracking-info-content {
  flex: 1;
}

.tracking-info-label {
  font-size: 0.76rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 2px;
}

.tracking-info-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

/* User & Address Badges */
.badge-user-status {
  font-size: 0.78rem;
  background: #f0fdf4;
  color: #166534;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 800;
}

.badge-shipping-status {
  font-size: 0.78rem;
  background: #eff6ff;
  color: #1e40af;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 800;
}

.tracking-note-text {
  color: #b45309;
  font-weight: 700;
}

/* Tracking Order Items Card & Table */
.order-items-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 30px;
  margin-bottom: var(--space-xl);
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.order-items-table th {
  background-color: #fafbfc;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.84rem;
  text-align: right;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border-color);
}

.order-items-table td {
  padding: 16px;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.item-product-flex {
  display: flex;
  align-items: center;
  gap: 14px;
}

.item-product-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  object-fit: cover;
  background: #fafbfc;
}

.item-product-name {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.item-product-weight {
  font-size: 0.78rem;
  color: var(--text-light);
}

.item-qty-badge {
  background-color: #f1f5f2;
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.82rem;
  display: inline-block;
}

.item-unit-price {
  color: var(--text-light);
  font-weight: 600;
}

.item-total-price {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.95rem;
}

.item-mobile-meta-bar {
  display: none;
}

/* Order Breakdown Footer */
.order-breakdown-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.order-payment-method-box {
  background: #fafbfc;
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  max-width: 420px;
  flex: 1;
  min-width: 280px;
}

.payment-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.payment-badge-row i {
  font-size: 1.3rem;
  color: var(--primary);
}

.payment-badge-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.payment-badge-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
}

.order-costs-box {
  width: 100%;
  max-width: 360px;
  background: #fafbfc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 20px 22px;
}

.cost-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.cost-line.discount {
  color: #c62828;
}

.cost-line.free-shipping {
  color: var(--primary);
  font-weight: 700;
}

.cost-line.total-grand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  border-top: 2px solid var(--border-color);
  padding-top: 12px;
  margin-top: 12px;
  margin-bottom: 0;
}

.cost-line.total-grand span:last-child {
  color: var(--primary);
  font-size: 1.25rem;
}

.tracking-invoice-center-callout {
  text-align: center;
  margin-top: var(--space-md);
}

.btn-invoice-large {
  padding: 14px 36px;
  font-size: 1.05rem;
}

/* ================= INVOICE MODAL STYLES ================= */
.invoice-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: rgba(15, 30, 20, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.invoice-modal.active {
  display: flex;
}

.invoice-modal-content {
  background: var(--white);
  width: 100%;
  max-width: 780px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalFadeIn 0.3s ease;
  position: relative;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.invoice-modal-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invoice-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--white);
}

.invoice-modal-close {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.invoice-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.invoice-modal-body {
  padding: 30px;
  max-height: 75vh;
  overflow-y: auto;
}

.printable-invoice {
  background: var(--white);
  padding: 10px;
}

.invoice-brand-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.invoice-brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.invoice-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.invoice-company-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.invoice-company-sub {
  font-size: 0.78rem;
  color: var(--text-light);
}

.invoice-meta-top {
  text-align: left;
  font-size: 0.85rem;
}

.invoice-num-tag {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.invoice-parties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: #f8faf9;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 25px;
  font-size: 0.84rem;
}

.invoice-party-box h6 {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.88rem;
  margin: 0 0 8px;
}

.invoice-party-box p {
  margin: 0;
  color: var(--text-main);
  line-height: 1.6;
}

.invoice-items-print-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.invoice-items-print-table th {
  background: #eef3ef;
  color: var(--primary-dark);
  font-weight: 800;
  padding: 10px 12px;
  text-align: right;
  font-size: 0.82rem;
  border: 1px solid #dce6de;
}

.invoice-items-print-table td {
  padding: 10px 12px;
  font-size: 0.82rem;
  border: 1px solid #e9ecef;
  color: var(--text-main);
}

.invoice-total-summary-table {
  width: 280px;
  margin-right: auto;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.invoice-total-summary-table td {
  padding: 6px 10px;
}

.invoice-total-summary-table tr.grand-total td {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-dark);
  border-top: 2px solid var(--primary);
}

.invoice-modal-footer {
  padding: 18px 25px;
  background: #fafbfc;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ================= PRINT MEDIA ================= */
@media print {
  body * {
    visibility: hidden;
  }

  .invoice-modal,
  .invoice-modal.active,
  .printable-invoice,
  .printable-invoice * {
    visibility: visible !important;
  }

  .invoice-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 0;
    margin: 0;
    display: block !important;
  }

  .invoice-modal-content {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    border-radius: 0 !important;
  }

  .invoice-modal-header,
  .invoice-modal-footer,
  .sticky-header-container,
  .footer,
  .mobile-bottom-nav {
    display: none !important;
  }

  .invoice-modal-body {
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* ================= RESPONSIVE MEDIA QUERIES (< 768px) ================= */
@media (max-width: 991px) {
  .tracking-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .footer-bottom p {
  justify-content: center;
}
  .tracking-page-wrapper {
    padding: 20px 0 60px;
  }

  .tracking-header-box {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  .tracking-header-title {
    font-size: 1.35rem;
  }

  .tracking-search-form {
    flex-direction: column;
    padding: 6px;
  }

  .btn-track-search {
    width: 100%;
    justify-content: center;
  }

  .order-status-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: var(--radius-md);
  }

  .order-header-actions {
    width: 100%;
  }

  .btn-invoice-action, 
  .btn-support-action {
    flex: 1;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  .tracking-stepper-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .stepper-progress-track {
    flex-direction: column;
    gap: 22px;
    margin: 15px 0;
  }

  .stepper-progress-track::before,
  .stepper-progress-bar-fill {
    display: none;
  }

  .step-item {
    width: 100%;
    flex-direction: row;
    text-align: right;
    gap: 14px;
    align-items: flex-start;
  }

  .step-icon-circle {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    flex-shrink: 0;
  }

  .step-item.active .step-icon-circle {
    transform: none;
    animation: none;
  }

  .step-title {
    margin-top: 0;
    font-size: 0.88rem;
  }

  .step-time {
    font-size: 0.74rem;
  }

  .delivery-eta-alert {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .carrier-contact-btn {
    justify-content: center;
  }

  .tracking-card {
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }

  .order-items-card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }

  /* MOBILE TABLE TRANSFORMATION: Image & Title on top, Qty & Prices on bottom */
  .order-items-table {
    display: block;
    width: 100%;
    margin-top: 10px;
  }

  .order-items-table thead {
    display: none; /* Hide traditional headers on mobile */
  }

  .order-items-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .order-items-table tr {
    display: flex;
    flex-direction: column;
    background: #fafbfc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    gap: 8px;
  }

  .order-items-table td {
    padding: 0;
    border: none;
  }

  .order-items-table td.desktop-cell-qty,
  .order-items-table td.desktop-cell-unit,
  .order-items-table td.desktop-cell-total {
    display: none; /* Handled in the bottom meta bar on mobile */
  }

  .order-items-table td.item-main-cell {
    width: 100%;
  }

  .item-product-flex {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .item-product-thumb {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }

  .item-product-name {
    font-size: 0.85rem;
    line-height: 1.35;
    margin-bottom: 2px;
  }

  .item-product-weight {
    font-size: 0.72rem;
    color: var(--text-light);
  }

  .item-mobile-meta-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 0.76rem;
    margin-top: 4px;
    gap: 6px;
  }

  .item-mobile-meta-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    text-align: center;
  }

  .item-mobile-meta-col .meta-lbl {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
  }

  .item-mobile-meta-col .meta-val {
    font-weight: 800;
    color: var(--text-main);
  }

  .item-mobile-meta-col.total-col .meta-val {
    color: var(--primary);
    font-size: 0.82rem;
  }

  .item-mobile-meta-divider {
    width: 1px;
    height: 20px;
    background-color: var(--border-color);
  }

  .order-breakdown-footer {
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
  }

  .order-payment-method-box,
  .order-costs-box {
    max-width: 100%;
    min-width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
  }

  .invoice-parties-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   INFORMATION & POLICY PAGES (معلومات تهمك / السياسات / الأسئلة / الدعم)
   ========================================================================== */

/* Page Hero Header */
.page-hero-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 100%);
  color: var(--white);
  padding: 45px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-hero-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--white);
  line-height: 1.3;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.page-hero-breadcrumb a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.page-hero-breadcrumb a:hover {
  color: var(--accent);
}

.page-hero-breadcrumb i {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.page-hero-breadcrumb span {
  color: var(--accent);
  font-weight: 600;
}

/* Info Pages Layout */
.info-page-section {
  padding: var(--space-xl) 0 60px;
  background-color: var(--bg-main);
}

.info-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}

/* Info Content Card */
.info-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-sm);
}

.info-content-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.info-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

/* Info Blocks */
.info-block {
  margin-bottom: 35px;
}

.info-block:last-child {
  margin-bottom: 0;
}

.info-block-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.info-block-icon {
  width: 44px;
  height: 44px;
  background: rgba(62, 125, 50, 0.1);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.info-block-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}

.info-block-body p {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 14px;
}

.info-block-body p:last-child {
  margin-bottom: 0;
}

/* Info Highlight Box */
.info-highlight-box {
  background: rgba(62, 125, 50, 0.05);
  border-right: 4px solid var(--primary);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-highlight-box.warning {
  background: rgba(242, 193, 78, 0.12);
  border-right-color: var(--accent);
}

.info-highlight-icon {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-highlight-box.warning .info-highlight-icon {
  color: #b78103;
}

.info-highlight-text {
  font-size: 0.96rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* Info List Items */
.info-check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.6;
}

.info-check-list li i {
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Info Steps Grid / List */
.info-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.info-step-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  position: relative;
  transition: var(--transition);
}

.info-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.info-step-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 12px;
}

.info-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.info-step-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Table Style for Info Pages */
.info-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.95rem;
}

.info-table th {
  background: var(--primary-dark);
  color: var(--white);
  padding: 14px 18px;
  font-weight: 700;
}

.info-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.info-table tr:nth-child(even) {
  background-color: var(--bg-main);
}

.info-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-card-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: var(--transition);
}

.faq-card-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-card-question {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-dark);
  user-select: none;
  background: transparent;
  transition: var(--transition);
}

.faq-card-question:hover {
  background: rgba(62, 125, 50, 0.03);
  color: var(--primary);
}

.faq-question-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-q-badge {
  background: rgba(62, 125, 50, 0.12);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.faq-card-icon {
  font-size: 1.25rem;
  color: var(--text-light);
  transition: transform 0.3s ease;
}

.faq-card-item.active .faq-card-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-card-answer {
  padding: 0 22px 20px;
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.8;
  border-top: 1px solid transparent;
  display: none;
}

.faq-card-item.active .faq-card-answer {
  display: block;
  border-top-color: var(--border-color);
  padding-top: 16px;
}

/* Support Channels Cards */
.support-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.support-channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.support-channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.support-channel-icon {
  width: 56px;
  height: 56px;
  background: rgba(62, 125, 50, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.support-channel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.support-channel-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.support-channel-action {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 18px;
  background: rgba(62, 125, 50, 0.08);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.support-channel-action:hover {
  background: var(--primary);
  color: var(--white);
}

/* Support Ticket Form */
.support-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.support-form-full {
  grid-column: 1 / -1;
}

.support-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-form-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.support-form-input,
.support-form-select,
.support-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--white);
  transition: var(--transition);
}

.support-form-input:focus,
.support-form-select:focus,
.support-form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(62, 125, 50, 0.15);
}

.support-form-textarea {
  resize: vertical;
  min-height: 120px;
}

.support-submit-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.support-submit-btn:hover {
  background: var(--primary-dark);
}

/* Sidebar Menu & Widgets */
.info-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.info-sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-sidebar-title i {
  color: var(--primary);
}

.info-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.info-nav-link-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-nav-link i.link-icon {
  font-size: 1.15rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.info-nav-link i.arrow-icon {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.info-nav-link:hover {
  background: rgba(62, 125, 50, 0.06);
  color: var(--primary);
}

.info-nav-link:hover i {
  color: var(--primary);
}

.info-nav-link.active {
  background: var(--primary);
  color: var(--white);
}

.info-nav-link.active i {
  color: var(--white);
}

/* Sidebar Help Box */
.info-sidebar-help {
  background: linear-gradient(135deg, rgba(30, 75, 46, 0.05) 0%, rgba(124, 179, 66, 0.12) 100%);
  border: 1px solid rgba(62, 125, 50, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.info-help-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.info-help-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.info-help-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.info-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  transition: var(--transition);
}

.info-help-btn:hover {
  background: var(--primary);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .info-page-layout {
    grid-template-columns: 1fr;
  }

  .info-sidebar {
    position: static;
    order: 2;
  }

  .page-hero-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .info-content-card {
    padding: 22px 18px;
  }

  .support-form {
    grid-template-columns: 1fr;
  }

  .page-hero-header {
    padding: 35px 0 30px;
  }

  .page-hero-title {
    font-size: 1.5rem;
  }
}

/* ================= TRACK ORDER MODAL STYLING ================= */
.track-order-modal {
  z-index: 1050;
}

.modal-track-content {
  max-width: 580px;
  padding: 28px 24px;
  border-radius: 20px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  background-color: var(--white);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.track-header-box {
  text-align: center;
  margin-bottom: 20px;
}

.track-header-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 75, 46, 0.1) 0%, rgba(212, 175, 55, 0.18) 100%);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 10px;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.track-header-title {
  color: var(--primary-dark);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.track-header-desc {
  color: var(--text-light, #666);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
}

.track-modal-form-wrap {
  margin-bottom: 18px;
}

.track-input-box {
  display: flex;
  align-items: center;
  background: #f8faf9;
  border: 2px solid #e0e9e4;
  border-radius: 12px;
  padding: 4px 6px 4px 12px;
  transition: all 0.25s ease;
}

.track-input-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 75, 46, 0.12);
  background: #fff;
}

.track-input-icon {
  font-size: 1.25rem;
  color: var(--primary);
  margin-left: 8px;
}

.track-control {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 9px 8px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  flex: 1 !important;
  color: var(--text-color) !important;
  outline: none !important;
}

.track-btn-submit {
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.track-btn-submit:hover {
  background: var(--primary-dark);
}

.track-results-placeholder {
  text-align: center;
  padding: 24px 14px;
  color: #777;
  background: #fbfcfb;
  border-radius: 12px;
  border: 1px dashed #dbe5e0;
}

.track-results-placeholder i {
  font-size: 2.2rem;
  color: var(--primary);
  opacity: 0.6;
  margin-bottom: 6px;
  display: block;
}

.track-results-placeholder p {
  font-size: 0.88rem;
  margin: 0;
}

/* Modal Track Order Result Item Card */
.modal-track-card {
  background: #ffffff;
  border: 1px solid #e2ece6;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.modal-track-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf3f0;
}

.modal-track-num {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-track-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.modal-track-badge.status-completed {
  background: #e8f5e9;
  color: #2e7d32;
}

.modal-track-badge.status-shipping {
  background: #e3f2fd;
  color: #1565c0;
}

.modal-track-badge.status-processing {
  background: #fff8e1;
  color: #f57f17;
}

.modal-track-badge.status-pending {
  background: #f3e5f5;
  color: #7b1fa2;
}

.modal-track-badge.status-cancelled {
  background: #ffebee;
  color: #c62828;
}

/* Modal Track Stepper */
.modal-track-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 18px 0 14px;
  padding: 0 5px;
}

.modal-track-stepper::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: #e5ece8;
  z-index: 1;
}

.modal-track-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 25%;
}

.modal-step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #ccd9d2;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s;
}

.modal-track-step.completed .modal-step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.modal-track-step.active .modal-step-dot {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 75, 46, 0.18);
}

.modal-step-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 6px;
  color: #777;
}

.modal-track-step.completed .modal-step-lbl,
.modal-track-step.active .modal-step-lbl {
  color: var(--primary-dark);
}

/* Modal Track Summary Details */
.modal-track-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f8faf9;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  margin: 12px 0;
}

.modal-track-row {
  display: flex;
  justify-content: space-between;
  color: #555;
}

.modal-track-row strong {
  color: var(--primary-dark);
}

.modal-track-items {
  margin: 10px 0;
  border-top: 1px dashed #e2ece6;
  padding-top: 10px;
}

.modal-track-item-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.82rem;
  color: #444;
}

.modal-track-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-track-item-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e5e5e5;
}

.modal-track-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.modal-track-btn-view {
  flex: 1;
  text-align: center;
  background: var(--primary);
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.modal-track-btn-view:hover {
  background: var(--primary-dark);
}

.modal-track-btn-wa {
  background: #25D366;
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.modal-track-btn-wa:hover {
  background: #1eab52;
}

.modal-track-empty {
  text-align: center;
  padding: 24px 14px;
  background: #fff8f8;
  border: 1px solid #ffe5e5;
  border-radius: 12px;
  color: #c62828;
}

.modal-track-empty i {
  font-size: 2.2rem;
  margin-bottom: 6px;
  display: block;
}

.modal-track-empty p {
  font-size: 0.9rem;
  margin: 0 0 6px;
  font-weight: 600;
}

.modal-track-empty span {
  font-size: 0.8rem;
  color: #777;
}

/* ================= B2B / TRADERS WHOLESALE SECTION ================= */
.traders-wholesale-section {
  background: linear-gradient(180deg, #f5f3e5 0%, #f1f6f3 100%);
  position: relative;
  overflow: hidden;
}

.traders-card-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  position: relative;
  align-items: center;
  overflow: hidden;
}

.traders-card-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.traders-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 75, 46, 0.08);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 800;
  border: 1px solid rgba(30, 75, 46, 0.15);
  margin-bottom: 1.2rem;
}

.traders-badge i {
  color: var(--primary);
  font-size: 1.05rem;
}

.traders-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.traders-title .highlight-gold {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.traders-desc {
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.traders-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.trader-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8faf9;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e2ece6;
  transition: all 0.3s ease;
}

.trader-feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30, 75, 46, 0.07);
  border-color: rgba(30, 75, 46, 0.3);
}

.trader-feat-icon {
  width: 42px;
  height: 42px;
  background: #e8f5e9;
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.trader-feat-info h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 4px 0;
}

.trader-feat-info p {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.45;
  margin: 0;
}

.traders-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-trader-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #ffffff !important;
  padding: 5px 15px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-xs);
  text-decoration: none;
  box-shadow: 0 0px 10px rgba(30, 75, 46, 0.25);
  transition: var(--transition);
  margin: 10px;
  margin-top: 0 !important;
}

.btn-trader-primary:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

.btn-trader-primary i {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.btn-trader-primary:hover i {
  transform: translateX(-4px);
}

.traders-mascot-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.traders-mascot-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-glow-bg {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(30, 75, 46, 0.1) 60%, transparent 80%);
  z-index: 1;
  filter: blur(15px);
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.05); opacity: 1; }
}

.trader-mascot-img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  position: relative;
  transition: transform 0.4s ease;
}


.mascot-floating-badge {
  position: absolute;
  z-index: 3;
  background: #ffffff;
  padding: 10px 18px;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary-dark);
  animation: floatAnim 3s ease-in-out infinite alternate;
}

.mascot-floating-badge.badge-top-right {
  top: 15%;
  right: -10px;
  animation-delay: 0s;
}

.mascot-floating-badge.badge-bottom-left {
  bottom: 12%;
  left: 5px;
  animation-delay: 1.5s;
}

@keyframes floatAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@media (max-width: 992px) {
  .traders-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: .75rem;
  }
  .traders-content-col {
    display: contents;
  }
  .traders-badge {
    order: 1;
    margin-bottom: 0.25rem;
  }
  .traders-title {
    text-align: center;
    order: 2;
    margin-bottom: 0.8rem;
  }
  .traders-desc {
    text-align: center;
    order: 3;
  }
  .traders-mascot-col {
    order: 4;
    width: 100%;
    margin: 0.5rem 0 1.5rem 0;
  }
  .traders-features-grid {
    order: 5;
    margin-bottom: 1.5rem;
  }
  .traders-actions-row {
    order: 6;
  }
  .trader-mascot-img {
    max-height: 340px;
  }
}

@media (max-width: 600px) {
  .traders-features-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .traders-title {
    font-size: 1.45rem;
  }
  .mascot-floating-badge {
    display: none;
  }
  .btn-trader-primary, .btn-trader-outline {
    width: 100%;
    justify-content: center;
  }
}

/* ================= ONBOARDING FLOATING GUIDE CARD ================= */
.user-guide-floating-card {
  position: fixed;
  bottom: 85px;
  right: 90px;
  width: 330px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(10, 30, 20, 0.2), 0 0 0 1px rgba(212, 175, 55, 0.35);
  padding: 16px 16px 14px 16px;
  z-index: 996;
  direction: rtl;
  text-align: right;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
}

.user-guide-floating-card.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.user-guide-floating-card.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(15px) scale(0.85) !important;
  visibility: hidden !important;
  display: none !important;
}

.guide-card-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f3f1;
  border: none;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.guide-card-close:hover {
  background: #ffebee;
  color: #c62828;
  transform: rotate(90deg);
}

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-left: 20px;
}

.guide-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(30, 75, 46, 0.12) 100%);
  color: #b8860b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.guide-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.2;
}

.guide-card-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.guide-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8faf9;
  border: 1px solid #e4eee7;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-step-item:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 75, 46, 0.08);
  transform: translateX(-3px);
}

.guide-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.guide-step-icon.track-icon {
  background: rgba(30, 75, 46, 0.12);
  color: var(--primary);
}

.guide-step-icon.trader-icon {
  background: rgba(212, 175, 55, 0.2);
  color: #b8860b;
}

.guide-step-content strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.guide-step-content p {
  font-size: 0.72rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

.guide-card-footer {
  display: flex;
  justify-content: flex-end;
}

.guide-dismiss-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.guide-dismiss-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .user-guide-floating-card {
    right: 15px;
    bottom: 140px;
    width: calc(100vw - 30px);
  }
}

/* ==========================================================================
   PRODUCT PURCHASE MODAL (POPUP SELECTION: عبوة / كرتونة)
   ========================================================================== */
.product-purchase-modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(10, 25, 18, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 16px;
  animation: ppmFadeIn 0.25s ease-out;
}

.product-purchase-modal.active {
  display: flex !important;
}

@keyframes ppmFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.product-purchase-modal-content {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  border-radius: 22px;
  padding: 24px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  border: 1.5px solid rgba(30, 75, 46, 0.1);
  position: relative;
  animation: ppmSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ppmSlideUp {
  from {
    transform: translateY(20px) scale(0.97);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

.ppm-product-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.ppm-img-wrap {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ppm-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ppm-info-wrap {
  flex: 1;
  min-width: 0;
}

.ppm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(30, 75, 46, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.ppm-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ppm-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.ppm-options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ppm-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border-color);
  background-color: #fafbfc;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.ppm-option-card:hover {
  border-color: rgba(30, 75, 46, 0.4);
  transform: translateY(-1px);
}

.ppm-option-card.has-qty {
  border-color: var(--primary);
  background-color: rgba(30, 75, 46, 0.04);
  box-shadow: 0 4px 14px rgba(30, 75, 46, 0.08);
}

.ppm-option-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.ppm-option-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(30, 75, 46, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ppm-option-card.has-qty .ppm-option-icon {
  background: var(--primary);
  color: #ffffff;
}

.ppm-option-icon.carton-icon {
  background: rgba(212, 175, 55, 0.15);
  color: #a67c00;
}

.ppm-option-card.has-qty .ppm-option-icon.carton-icon {
  background: linear-gradient(135deg, #d4af37, #aa820a);
  color: #ffffff;
}

.ppm-option-texts {
  display: flex;
  flex-direction: column;
}

.ppm-option-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1px;
}

.ppm-option-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.ppm-option-action {
  display: flex;
  align-items: center;
}

.ppm-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(30, 75, 46, 0.08);
  color: var(--primary);
  border: 1.5px solid rgba(30, 75, 46, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.ppm-select-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(1.03);
}

.ppm-option-card:not(.has-qty) .ppm-qty-control {
  display: none !important;
}

.ppm-option-card:not(.has-qty) .ppm-select-btn {
  display: inline-flex !important;
}

.ppm-option-card.has-qty .ppm-select-btn {
  display: none !important;
}

.ppm-option-card.has-qty .ppm-qty-control {
  display: flex !important;
  animation: ppmFadeIn 0.2s ease-out;
}

.ppm-qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 3px 5px;
}

.ppm-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: none;
  background: rgba(30, 75, 46, 0.08);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.ppm-qty-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.ppm-qty-val {
  min-width: 26px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-dark);
  user-select: none;
}

.ppm-live-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(30, 75, 46, 0.06) 0%, rgba(212, 175, 55, 0.08) 100%);
  border-radius: 12px;
  border: 1.5px dashed var(--primary);
  margin-bottom: 16px;
}

.ppm-total-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.ppm-total-label i {
  color: var(--primary);
  font-size: 1.1rem;
}

.ppm-total-value {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.ppm-actions-row {
  display: flex;
  gap: 10px;
}

.ppm-btn {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: inherit;
}

.ppm-btn i {
  font-size: 1.05rem;
}

.ppm-btn-cart {
  background: rgba(30, 75, 46, 0.08);
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
}

.ppm-btn-cart:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(30, 75, 46, 0.2);
}

.ppm-btn-buy {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(30, 75, 46, 0.25);
}

.ppm-btn-buy:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 75, 46, 0.35);
}


@media (max-width: 768px) {
  .traders-features-grid{
    display: none;
  }
}
