/**
 * OCS Marketplace - Home Page Styles
 * Hero slider, promo banner, delivery features, product grids, testimonials, newsletter
 * Last Updated: December 18, 2025
 */


/* ===================================
   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) {
  /* Reduce slide padding on mobile */
  .slide {
    padding: 0 50px;
  }

  /* 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;
  }
}

@media (max-width: 480px) {
  /* Further reduce padding on small phones */
  .slide {
    padding: 0 35px;
  }
}

/* ===================================
   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: 32px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin: 0;
  text-align: center;
}

.discount-label {
  font-size: 14px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.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);
}

/* Mobile Responsive - Promo Banner */
@media (max-width: 768px) {
  .promo-banner {
    padding: 20px 30px;
    gap: 30px;
  }

  .promo-text {
    gap: 16px;
  }

  .discount-badge {
    width: 80px;
    height: 80px;
  }

  .discount-percent {
    font-size: 20px;
  }

  .discount-label {
    font-size: 10px;
  }

  .promo-content h2 {
    font-size: 24px;
  }

  .promo-content p {
    font-size: 14px;
  }

  .promo-image-slider {
    width: 140px;
    height: 90px;
  }

  .promo-cta {
    padding: 12px 24px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .promo-banner {
    padding: 16px 20px;
    gap: 20px;
    flex-wrap: wrap;
  }

  .promo-text {
    gap: 12px;
    flex-basis: 100%;
  }

  .discount-badge {
    width: 70px;
    height: 70px;
  }

  .discount-percent {
    font-size: 18px;
  }

  .discount-label {
    font-size: 9px;
  }

  .promo-content h2 {
    font-size: 20px;
  }

  .promo-content p {
    font-size: 13px;
  }

  .promo-image-slider {
    width: 120px;
    height: 75px;
  }

  .promo-cta {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* ===================================
   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);
  overflow: visible; /* Allow hover effects to overflow */
}

/* 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: 20px;
}

.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: 20px 0 20px 0; /* Moderate 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-top: 10px; /* Prevent top clipping on zoom/hover */
  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;
  }

  .section-header {
    margin-bottom: 16px; /* Tighter on mobile */
  }
}

/* Small mobile - tighter padding */
@media (max-width: 480px) {
  .products-scroll-container {
    padding: 16px 8px; /* Tighter on very small screens */
  }

  .section-header {
    margin-bottom: 12px; /* Even tighter on small mobile */
  }
}

/* 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;
  transform-origin: center center; /* Ensure zoom from center */
}

.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: 12px;
  left: 12px;
  right: 60px; /* Leave space for wishlist button */
  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; }

/* Wishlist Button */
.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.wishlist-btn:hover {
  background: #fef2f2;
  transform: scale(1.1);
}

.wishlist-btn.active i,
.wishlist-btn i.fas {
  color: #ef4444;
}

.wishlist-btn i {
  font-size: 16px;
  color: #6b7280;
}

.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 Cards - Floating circles */
.category-card {
  background: transparent;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: none;
  transition: all 0.4s 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;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-12px);
  z-index: 10;
}

.category-card:active {
  transform: translateY(-8px) scale(0.98);
}

/* Shop Cards - Keep original card style */
.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;
}

.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;
}

.shop-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-6px);
  z-index: 10;
}

.shop-card:hover::after {
  opacity: 1;
}

/* Category icon - floating circle with shadow */
.category-icon {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 178, 7, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.category-card:hover .category-icon {
  box-shadow: 0 12px 32px rgba(0, 178, 7, 0.35);
  transform: scale(1.1);
}

.category-card:active .category-icon {
  transform: scale(1.05);
}

/* Shop mall logo - match category icon size */
.shop-mall-logo {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 178, 7, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.shop-card:hover .shop-mall-logo {
  box-shadow: 0 12px 32px rgba(0, 178, 7, 0.35);
  transform: scale(1.1);
}

.shop-card:active .shop-mall-logo {
  transform: scale(1.05);
}

.category-icon img,
.shop-mall-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-icon-placeholder {
  font-size: 56px;
}

.category-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 8px 0 0;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
}

.category-card:hover .category-name {
  color: var(--primary);
  transform: translateY(2px);
}

.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 cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: 100%;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.brand-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;
}

.brand-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-6px);
  z-index: 10;
}

.brand-card:hover::after {
  opacity: 1;
}

.brand-card:active {
  transform: translateY(-4px) scale(0.98);
}

.brand-logo {
  width: 160px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 178, 7, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0;
}

.brand-card:hover .brand-logo {
  box-shadow: 0 12px 32px rgba(0, 178, 7, 0.35);
  transform: scale(1.1);
}

.brand-card:active .brand-logo {
  transform: scale(1.05);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo-placeholder {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

/* ===================================
   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);
}

/* ===================================
   OCSAPP VIRTUAL MALLS HEADER SECTION
   =================================== */
.malls-header {
  background-image: url('../../images/mall-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 40px;
  min-height: 280px;
  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;
  display: flex;
  align-items: center;
  justify-content: center;
}

.malls-header-content {
  background: linear-gradient(135deg, rgba(0, 178, 7, 0.5) 0%, rgba(0, 146, 6, 0.55) 100%);
  padding: 20px 30px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
  display: inline-block;
}

.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;
}

@keyframes shine {
  0%, 100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

.malls-header-content 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-content p {
  color: white;
  font-size: 18px;
  max-width: 650px;
  margin: 0;
  opacity: 1;
}

.mall-subtitle {
  color: var(--gray-500);
  font-size: 15px;
  margin-top: 4px;
}

.shop-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.shop-badge {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.shop-badge.grocery {
  background: #4CAF50;
}

.shop-badge.foodcourt {
  background: #FF9800;
}

.shop-badge.store {
  background: #2196F3;
}

.shop-badge.products {
  background: #9C27B0;
}

@media (max-width: 768px) {
  .malls-header {
    padding: 20px;
  }

  .malls-header-content {
    padding: 16px 20px;
  }

  .malls-header-content h2 {
    font-size: 24px;
  }

  .malls-header-content p {
    font-size: 16px;
  }
}
