/**
 * OCS Landing Page Styles - Cleaned & Optimized v2.1
 * Modern, accessible, and fully responsive
 * Last Updated: April 5, 2025
 */

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
  /* Brand Colors */
  --primary: #00b207;
  --primary-600: #009206;
  --primary-700: #007a05;
  --dark: #1a1a1a;
  --border: #e5e5e5;

  /* Gray Scale */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-900: #1a1a1a;

  /* Spacing Scale */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 15px 50px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-index Layers */
  --z-dropdown: 100;
  --z-sticky: 30;
  --z-modal: 1000;
  --z-mobile-nav: 50;
  --z-toast: 1100;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: Poppins, system-ui, -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.5;
  background: #fff;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

a {
  text-decoration: none;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* ===================================
   LAYOUT
   =================================== */
.page {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 5%;
}

@media (max-width: 1024px) {
  .page {
    padding: 0 4%;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 0 4%;
  }
}

/* ===================================
   TOP BANNER
   =================================== */
.top-banner {
  background: var(--gray-900);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 11px;
  margin-bottom: 12px;
}

.top-banner a {
  color: #fff;
  text-decoration: underline;
}

/* ===================================
   HEADER
   =================================== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  gap: var(--spacing-md);
  margin-bottom: 20px;
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo span {
  font-size: 24px;
}

/* Location Selector */
.location-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  background: var(--primary);
  color: #fff;
  transition: all var(--transition-base);
}

.location-selector:hover,
.location-selector:focus {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

.location-selector span:nth-child(2) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* ===================================
   SEARCH BAR
   =================================== */
.search-bar {
  flex: 1;
  max-width: 650px;
  margin: 0 20px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 120px 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: border-color var(--transition-base);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-bar button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background var(--transition-base);
}

.search-bar button:hover,
.search-bar button:focus {
  background: var(--primary-600);
}

/* ===================================
   HEADER ACTIONS
   =================================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language Selector */
.language-selector {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  transition: border-color var(--transition-base);
}

.language-btn:hover,
.language-btn:focus {
  border-color: var(--primary);
}

.language-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 150px;
  z-index: var(--z-dropdown);
  animation: fadeInDown 0.2s ease;
}

.language-dropdown.active {
  display: block;
}

.language-option {
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-option:hover {
  background: var(--gray-100);
}

.language-option.selected {
  background: #e8f5e9;
  color: var(--primary);
  font-weight: 600;
}

/* Cart Button */
.btn-cart {
  position: relative;
  background: var(--primary);
  color: #fff;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 20px;
  transition: all var(--transition-base);
}

.btn-cart:hover,
.btn-cart:focus {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-cart .cart-icon {
  font-size: 20px;
  color: #fff;
  filter: brightness(1.2);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ea4b48;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 3px 7px;
  line-height: 1;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
}

/* Sign In Button */
.sign-in-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.sign-in-btn:hover,
.sign-in-btn:focus {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.sign-in-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--primary);
}

.desktop-only {
  display: flex;
}

/* ===================================
   MOBILE BOTTOM NAVIGATION
   =================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: var(--z-mobile-nav);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 4px 8px;
  color: var(--gray-500);
  transition: color var(--transition-base);
  position: relative;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item:focus {
  color: var(--primary);
}

.mobile-bottom-nav .nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-bottom-nav .nav-label {
  font-size: 11px;
  font-weight: 500;
}

.mobile-cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ea4b48;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 3px 6px;
  line-height: 1;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
}

/* ===================================
   LOCATION POPOVER
   =================================== */
.popover {
  position: fixed;
  top: 68px;
  right: 20px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 16px;
  z-index: 2000;
  display: none;
  animation: fadeInDown 0.3s ease;
}

.popover h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.popover .field {
  position: relative;
  margin: 10px 0 14px;
}

.popover .field input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: border-color var(--transition-base);
}

.popover .field input:focus {
  outline: none;
  border-color: var(--primary);
}

.popover .or-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--gray-400);
  font-size: 12px;
  margin: 8px 0 12px;
}

.popover .or-divider::before,
.popover .or-divider::after {
  content: "";
  height: 1px;
  background: var(--gray-200);
}

.popover .detect-btn {
  width: 100%;
  background: #198754;
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  transition: background var(--transition-base);
}

.popover .detect-btn:hover,
.popover .detect-btn:focus {
  background: #146c43;
}

.popover .radius {
  margin-top: 14px;
  font-size: 13px;
}

.popover .radius input[type="range"] {
  width: 100%;
  margin-top: 8px;
}

/* ===================================
   HERO SLIDER
   =================================== */
.hero-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: clamp(360px, 40vh, 580px);
  min-height: 360px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  margin-bottom: 20px;
  background: #000;
}

@media (max-width: 1024px) {
  .hero-slider {
    height: clamp(320px, 45vh, 480px);
  }
}

.slides-wrapper {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: opacity;
  display: flex;
  align-items: center;
  padding: 0 80px;
  background-size: cover;
  background-position: center;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 0;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: relative;
  max-width: 600px;
  color: #fff;
  z-index: 1;
}

.slide-content h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-content p {
  font-size: 16px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.slide-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.slide-btn:hover,
.slide-btn:focus {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.slide-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--primary);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 178, 7, 0.85);
  color: #fff;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: all var(--transition-base);
}

.hero-nav:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

.hero-nav.prev {
  left: 10px;
}

.hero-nav.next {
  right: 10px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.hero-dots button.active {
  background: var(--primary);
  width: 10px;
  height: 10px;
}

@media (max-width: 768px) {
  /* Remove arrow backgrounds on mobile to prevent overlap with text */
  .hero-nav {
    background: none;
    width: 44px;
    height: 44px;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }

  .hero-nav:hover {
    transform: translateY(-50%) scale(1.1);
    background: none;
  }

  .hero-dots button {
    width: 7px;
    height: 7px;
  }

  .hero-dots button.active {
    width: 9px;
    height: 9px;
  }
}

/* ===================================
   PROMO BANNER
   =================================== */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background: linear-gradient(135deg, #00b207 0%, #009206 100%);
  padding: 30px 50px;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 8px 24px rgba(0, 178, 7, 0.3);
  position: relative;
  overflow: hidden;
}

/* Shine effect */
.promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  from { left: -100%; }
  to { left: 200%; }
}

.promo-text {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 1;
  color: white;
}

.discount-badge {
  background: white;
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  animation: pulse-badge 3s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.discount-percent {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 2px;
}

.discount-label {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0;
}

.promo-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.promo-content p {
  font-size: 16px;
  margin: 0;
  opacity: 0.95;
}

/* Product Image Slider */
.promo-image-slider {
  position: relative;
  width: 180px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.promo-slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.promo-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.promo-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.promo-slide.next {
  opacity: 0;
  transform: translateX(100%);
  z-index: 1;
}

.promo-slide.exiting {
  opacity: 0;
  transform: translateX(-100%);
  z-index: 0;
}

.promo-cta {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 14px 35px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  white-space: nowrap;
}

.promo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  background: #f0fdf4;
  color: var(--primary-700);
}

/* ===================================
   DELIVERY FEATURES
   =================================== */
.promo-duo {
  padding-top: 10px;
  margin-bottom: 60px;
}

.promo-duo .section-header {
  justify-content: center;
  text-align: center;
  margin: 60px 0 20px;
}

.section-header-centered {
  justify-content: center;
  text-align: center;
}

.section-title-large {
  font-size: 34px;
}

.check-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 4px 0 14px;
  flex-wrap: wrap;
}

.check-strip li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  opacity: 0;
  transform: translateY(6px);
  animation: checkIn 0.5s ease forwards;
}

.check-strip li:nth-child(1) { animation-delay: 0s; }
.check-strip li:nth-child(2) { animation-delay: 0.15s; }
.check-strip li:nth-child(3) { animation-delay: 0.3s; }

@keyframes checkIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tick {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ===================================
   SECTIONS
   =================================== */
.section {
  margin-bottom: var(--spacing-2xl);
}

/* Responsive section spacing */
@media (max-width: 768px) {
  .section {
    margin-bottom: 32px; /* Reduce on mobile */
  }
}

@media (max-width: 480px) {
  .section {
    margin-bottom: 24px; /* Further reduce on very small screens */
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.view-all {
  color: var(--primary);
  font-weight: 600;
  transition: color var(--transition-base);
}

.view-all:hover,
.view-all:focus {
  color: var(--primary-600);
}

/* ===================================
   PRODUCTS GRID
   =================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ===================================
   HORIZONTAL SCROLLABLE PRODUCTS (Best Sellers)
   =================================== */
.products-scroll-container {
  position: relative;
  width: 100%;
  overflow: visible; /* Changed from hidden to show scroll buttons */
  padding: 30px 0 20px 0; /* Extra top padding for hover lift effect */
  margin: 0 auto; /* Center alignment without negative margin */
}

.products-scroll-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(25% - 18px); /* 4 items on desktop */
  gap: 24px; /* Desktop gap */
  overflow-x: auto;
  overflow-y: visible; /* Allow cards to overflow upward on hover */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--gray-200);
  padding-bottom: 10px;
}

.products-scroll-grid::-webkit-scrollbar {
  height: 8px;
}

.products-scroll-grid::-webkit-scrollbar-track {
  background: var(--gray-200);
  border-radius: 10px;
}

.products-scroll-grid::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.products-scroll-grid::-webkit-scrollbar-thumb:hover {
  background: var(--primary-600);
}

.products-scroll-grid .product-card {
  scroll-snap-align: start;
  width: 100%; /* Let grid-auto-columns control width */
}

.products-scroll-grid .category-card,
.products-scroll-grid .shop-card {
  scroll-snap-align: start;
  width: 100%; /* Let grid-auto-columns control width */
}

.products-scroll-grid .brand-card {
  scroll-snap-align: start;
  width: 100%; /* Let grid-auto-columns control width */
}

/* Scroll Navigation Buttons */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  color: var(--gray-600);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.scroll-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 178, 7, 0.3);
}

.scroll-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.scroll-btn-left {
  left: 8px; /* 8px breathing room */
}

.scroll-btn-right {
  right: 8px; /* 8px breathing room */
}

/* Tablet adjustment for scroll buttons */
@media (max-width: 1024px) {
  .scroll-btn-left {
    left: 4px;
  }

  .scroll-btn-right {
    right: 4px;
  }
}

/* Hide scroll buttons on mobile and add horizontal padding */
@media (max-width: 768px) {
  .scroll-btn {
    display: none;
  }

  .products-scroll-container {
    padding: 20px 12px; /* Add horizontal padding on mobile */
    margin: 0;
  }
}

/* Small mobile - tighter padding */
@media (max-width: 480px) {
  .products-scroll-container {
    padding: 16px 8px; /* Tighter on very small screens */
  }
}

/* Large desktop - smoother gap */
@media (max-width: 1200px) {
  .products-scroll-grid {
    gap: 20px;
  }
}

/* Tablet View - 3 items */
@media (max-width: 1024px) {
  .products-scroll-grid {
    grid-auto-columns: calc(33.333% - 16px);
    gap: 18px;
  }
}

/* Mobile View - 2 items */
@media (max-width: 768px) {
  .products-scroll-grid {
    grid-auto-columns: calc(50% - 12px);
    gap: 16px;
  }

  .products-scroll-grid .product-card,
  .products-scroll-grid .category-card,
  .products-scroll-grid .shop-card,
  .products-scroll-grid .brand-card {
    min-width: 160px; /* Prevent cards from getting too small */
  }
}

/* Small Mobile - 2 items (slightly adjusted) */
@media (max-width: 480px) {
  .products-scroll-grid {
    grid-auto-columns: calc(50% - 8px);
    gap: 14px; /* Smoother transition */
  }
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 1;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-6px);
  z-index: 10;
}

.product-card:hover::after {
  opacity: 1;
}

.product-image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: #f5f5f5;
  display: block;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: #f0f0f0;
  color: #ccc;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-name {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-name a:hover {
  color: #00b207;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: #00b207;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.old-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
}

.product-rating .stars {
  color: #ffa500;
  font-size: 14px;
  letter-spacing: 2px;
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 10;
}

.product-badge {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.3px;
}

.product-badge.sale { background: #ff4444; }
.product-badge.featured { background: #ff9800; }
.product-badge.bestseller { background: #ffc107; color: #333; }
.product-badge.new { background: #00b207; }
.product-badge.organic { background: #4caf50; }
.product-badge.premium { background: #9c27b0; }
.product-badge.eco { background: #2196f3; }
.product-badge.limited { background: #f44336; }

.add-to-cart {
  width: 100%;
  padding: 12px;
  background: #00b207;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.add-to-cart:hover {
  background: #009206;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 178, 7, 0.4);
}

.add-to-cart:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--primary);
}

.add-to-cart:active {
  transform: translateY(0);
}

/* ===================================
   CATEGORIES GRID
   =================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  padding: 20px 0;
}

@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.category-card,
.shop-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  position: relative;
  z-index: 1;
}

.category-card::after,
.shop-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.category-card:hover,
.shop-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-6px);
  z-index: 10;
}

.category-card:hover::after,
.shop-card:hover::after {
  opacity: 1;
}

.category-icon,
.shop-mall-logo {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
  overflow: hidden;
}

.category-icon img,
.shop-mall-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-icon-placeholder {
  font-size: 40px;
}

.category-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 4px 0;
}

.category-count {
  font-size: 13px;
  color: #666;
}

.shop-mall-description {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.shop-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.shop-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
}

.shop-rating .stars {
  color: #ffa500;
}

/* ===================================
   BRANDS SECTION
   =================================== */
.brands-section {
  margin-bottom: var(--spacing-2xl);
}

.brand-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: 100%;
  position: relative;
  z-index: 1;
}

.brand-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  z-index: 10;
}

.brand-logo {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f5f5f5;
  overflow: hidden;
  padding: 12px;
}

.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-logo-placeholder {
  font-size: 28px;
  font-weight: 700;
  color: #999;
}

/* ===================================
   SUSTAINABILITY SECTION
   =================================== */
.sustainability {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  padding: 40px;
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-2xl);
}

.sustainability p {
  max-width: 800px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--gray-600);
  font-size: 16px;
}

.s-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.stat {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.stat h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.stat p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}

/* ===================================
   TESTIMONIALS
   =================================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--gray-50);
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
}

.testimonial-author-name {
  font-weight: 600;
}

.testimonial-author-role {
  font-size: 12px;
  color: #999;
}

.testimonial-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

.testimonial-rating {
  margin-top: 12px;
}

/* ===================================
   APP DOWNLOAD SECTION
   =================================== */
.app-download {
  display: flex;
  align-items: center;
  gap: 48px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 48px;
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-2xl);
}

.phone-mockup {
  flex-shrink: 0;
  width: 240px;
  height: 440px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 30px;
  box-shadow: var(--shadow-xl);
}

.app-download h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.app-download p {
  color: var(--gray-600);
  margin-bottom: 24px;
}

.app-download-info {
  margin-bottom: 12px;
  font-weight: 600;
}

.download-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-base);
}

.download-btn:hover,
.download-btn:focus {
  background: #000;
  transform: translateY(-2px);
}

.download-btn-icon {
  font-size: 20px;
}

/* ===================================
   NEWSLETTER
   =================================== */
.newsletter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--gray-50);
  padding: 32px;
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-2xl);
}

.newsletter h3 {
  font-size: 24px;
  font-weight: 700;
}

.newsletter-desc {
  color: #666;
  font-size: 14px;
  margin-top: 5px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 450px;
  width: 100%;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  min-width: 250px;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.subscribe-btn {
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition-base);
}

.subscribe-btn:hover,
.subscribe-btn:focus {
  background: var(--primary-600);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 10% 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
  max-width: 1200px;
  margin-inline: auto;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  transition: color var(--transition-base);
  font-size: 14px;
}

.footer a:hover,
.footer a:focus {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: var(--gray-400);
  font-size: 13px;
  max-width: 1200px;
  margin-inline: auto;
}

/* ===================================
   UTILITIES
   =================================== */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   RESPONSIVE - TABLET
   =================================== */
@media (max-width: 1200px) {
  .promo-banner {
    padding: 25px 40px;
    gap: 25px;
  }

  .promo-image-slider {
    width: 160px;
    height: 100px;
  }

  .discount-badge {
    width: 100px;
    height: 100px;
  }

  .discount-percent {
    font-size: 36px;
  }

  .promo-content h2 {
    font-size: 28px;
  }
}

@media (max-width: 1024px) {
  .page {
    margin: 0 10%;
  }

  .products-grid,
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */
@media (max-width: 968px) {
  .promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 25px;
    gap: 20px;
  }

  .promo-text {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    order: 1;
  }

  .promo-image-slider {
    order: 2;
  }

  .promo-cta {
    order: 3;
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page {
    margin: 0 4%;
  }

  .header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }

  .logo-section {
    flex: 1;
  }

  .location-selector {
    padding: 6px 10px;
    font-size: 12px;
  }

  .location-selector span:nth-child(2) {
    max-width: 80px;
  }

  .search-bar {
    order: 3;
    flex-basis: 100%;
    margin: 0;
    max-width: 100%;
  }

  .search-bar input {
    padding: 10px 100px 10px 12px;
  }

  .search-bar button {
    padding: 8px 16px;
    font-size: 13px;
  }

  .sign-in-btn {
    display: none;
  }

  .desktop-only {
    display: none;
  }

  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .products-container {
    padding: 0;
  }

  .products-nav {
    display: none;
  }

  .products-grid,
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .hero-slider {
    height: clamp(280px, 50vh, 420px);
    min-height: 280px;
  }

  .slide {
    padding: 0 20px;
  }

  .slide-content {
    padding: 20px 0;
  }

  .slide-content h2 {
    font-size: clamp(22px, 5vw, 32px);
    margin-bottom: 12px;
  }

  .slide-content p {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .slide-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .hero-nav {
    width: 44px;
    height: 44px;
    font-size: 20px;
    font-size: 18px;
  }

  .app-download {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .phone-mockup {
    width: 200px;
    height: 366px;
  }

  .newsletter {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    width: 100%;
    flex-direction: column;
  }

  .newsletter-form input {
    min-width: 100%;
  }

  .testimonials,
  .s-grid {
    grid-template-columns: 1fr;
  }

  .check-strip {
    gap: 16px;
    font-size: 13px;
  }

  .popover {
    right: 10px;
    left: 10px;
    width: auto;
    top: 60px;
  }

  .promo-content h2 {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .hero-slider {
    height: clamp(200px, 48vw, 360px);
  }

  .promo-banner {
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    min-height: auto;
  }

  .promo-text {
    gap: 0;
    position: static;
  }

  /* Position badge absolutely over image on mobile */
  .discount-badge {
    position: absolute;
    top: 30px;
    right: 20px;
    z-index: 10;
    width: 60px;
    height: 60px;
  }

  .discount-percent {
    font-size: 20px;
    margin-bottom: 0;
  }

  .discount-label {
    font-size: 8px;
    margin-top: 2px;
  }

  .promo-image-slider {
    width: 200px;
    height: 120px;
  }

  .promo-content h2 {
    font-size: 22px;
    margin-bottom: 3px;
  }

  .promo-content p {
    font-size: 13px;
  }

  .promo-cta {
    padding: 12px 30px;
    font-size: 15px;
  }

  .check-strip {
    justify-content: center;
    gap: 12px;
    max-width: 400px;
    margin: 4px auto 14px;
  }

  .check-strip li {
    flex: 0 1 calc(50% - 6px);
    min-width: 140px;
  }

  .check-strip li:nth-child(3) {
    flex: 0 1 100%;
    justify-content: center;
  }

  .promo-duo .section-title {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .slide-content h2 {
    font-size: clamp(20px, 6vw, 28px);
    margin-bottom: 10px;
  }

  .slide-content p {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .slide-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .section-title {
    font-size: 20px;
  }

  .logo {
    font-size: 20px;
  }

  .logo img {
    width: 32px;
    height: 32px;
  }

  .location-selector,
  .language-btn {
    font-size: 11px;
    padding: 6px 10px;
  }

  .location-selector span:nth-child(2) {
    max-width: 60px;
  }

  .header-actions {
    gap: 8px;
  }

  .products-grid,
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .mobile-bottom-nav .nav-icon {
    font-size: 20px;
  }

  .mobile-bottom-nav .nav-label {
    font-size: 10px;
  }
}

/* ===================================
   REDUCED MOTION
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
  .header,
  .hero-slider,
  .newsletter,
  .footer,
  .hero-nav,
  .hero-dots,
  .mobile-bottom-nav {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    padding-bottom: 0;
  }

  .page {
    margin: 0;
  }

  a {
    text-decoration: underline;
  }
}


/* ===================================
   OCS VIRTUAL MALLS HEADER SECTION
   =================================== */
.malls-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  padding: 30px 40px;
  border-radius: var(--radius-xl);
  margin: 30px 0;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 178, 7, 0.25);
  position: relative;
  overflow: hidden;
}

.malls-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  animation: shine 3s ease-in-out infinite;
}

.malls-header h2 {
  color: white;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.malls-header p {
  color: white;
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
  .malls-header {
    padding: 25px 20px;
    margin: 25px 10px;
  }
  
  .malls-header h2 {
    font-size: 26px;
  }
  
  .malls-header p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .malls-header {
    padding: 20px 15px;
  }
  
  .malls-header h2 {
    font-size: 22px;
  }
  
  .malls-header p {
    font-size: 14px;
  }
}

