/* ========== GLOBAL & RESET ========== */
:root {
  --primary: #E97C43;
  --primary-dark: #C45A2A;
  --primary-light: #FFF5F0;
  --secondary: #FF9A3D;
  --dark: #212121;
  --darker: #111111;
  --light: #FFFFFF;
  --gray: #666666;
  --gray-light: #F5F5F5;
  --gray-border: #E0E0E0;
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #F44336;
  --shadow-sm: var(--sh-1);
  --shadow-md: var(--sh-2);
  --shadow-lg: var(--sh-3);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.container {
  max-width: 1280px;
  padding-left: 15px;
  padding-right: 15px;
}

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

/* ========== HERO SLIDER STYLES ========== */
.desktop-hero-section {
  padding: 20px 0 30px;
  display: none;
}

@media (min-width: 992px) {
  .desktop-hero-section {
    display: block;
  }
}

.desktop-hero-container {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 10px;
  height: 380px;
}

.welcome-col {
  display: flex;
  flex-direction: column;
}

.welcome-back-block {
  background: linear-gradient(135deg, #E97C43 0%, #FF9A3D 100%);
  border-radius: 12px;
  padding: 20px;
  height: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.welcome-back-block h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.welcome-subtitle {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.welcome-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-box {
  flex: 1;
  text-align: center;
  background: rgba(255,255,255,0.15);
  padding: 10px 6px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 9px;
  letter-spacing: 1px;
  opacity: 0.9;
}

.shop-now-btn {
  display: block;
  background: white;
  color: var(--primary);
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 15px;
  transition: var(--transition);
  border: 2px solid white;
}

.shop-now-btn:hover {
  background: transparent;
  color: white;
}

.features-list {
  margin-bottom: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 11px;
}

.feature-item i {
  font-size: 12px;
  width: 16px;
}

.slider-col {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
}

.desktop-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.desktop-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.desktop-slider-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.mobile-hero-section {
  padding: 15px 0 20px;
  display: none;
}

@media (max-width: 991px) {
  .mobile-hero-section {
    display: block;
  }
}

.mobile-slider-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mobile-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 2.25/1;
}

@media (max-width: 768px) {
  .mobile-slider {
    aspect-ratio: 2.5/1;
  }
}

@media (max-width: 576px) {
  .mobile-slider {
    aspect-ratio: 2.25/1;
  }
}

.mobile-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-slider-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  opacity: 0.8;
}

.slider-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

.slider-nav.prev {
  left: 15px;
}

.slider-nav.next {
  right: 15px;
}

.slider-nav i {
  font-size: 20px;
  color: var(--dark);
}

@media (max-width: 768px) {
  .slider-nav {
    width: 35px;
    height: 35px;
  }
  .slider-nav i {
    font-size: 16px;
  }
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.slider-dot.active {
  background: rgba(255,255,255,0.9);
}

.slider-dot-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: white;
  transition: width 5s linear;
}

.slider-dot.active .slider-dot-progress {
  width: 100%;
}

@media (max-width: 768px) {
  .slider-dots {
    bottom: 10px;
  }
  .slider-dot {
    width: 30px;
    height: 3px;
  }
}

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

.section-header h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
  background: linear-gradient(to right, transparent 0%, #e97c43de 0%, #e97c432b 0%, transparent 100%);
  border-radius: 10px;
  padding: 10px;
}

.section-header .view-all {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.categories-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.categories-track {
  display: inline-flex;
  gap: 16px;
}

.category-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 80px;
  flex-shrink: 0;
}

.category-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  margin-bottom: 6px;
}

.category-item:hover .category-image {
  border-color: var(--primary);
  transform: scale(1.02);
}

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

.category-image .fallback {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
}

.category-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--dark);
  max-width: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Professional Section Spacer ===== */
.section-divider {
  width: 70%;
  height: 1px;
  margin: 10px auto;
  background: linear-gradient( to right, transparent 0%, var(--primary) 15%, var(--primary) 85%, transparent 100% );
  opacity: 0.4;
  border-radius: 2px;
}

/* ========== PRODUCT SECTIONS ========== */
.products-section:last-of-type {
  border-bottom: none;
}

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  margin-top: 16px;
}

.products-header h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0px;
  background: linear-gradient(to right, transparent 0%, #e97c43de 0%, #e97c432b 0%, transparent 100%);
  border-radius: 10px;
  padding: 10px;
}

.products-header .view-all {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Grids */
.product-grid {
  display: grid;
  gap: 6px;
  padding: 0;
}

/* Desktop (≥992px) 5 columns */
@media (min-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Tablet (768px - 991px) 3 columns */
@media (min-width: 768px) and (max-width: 991px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile (≤767px) 2 columns */
@media (max-width: 767px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--sh-1);
  border: 1px solid #f0f0f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.product-card:active {
  transform: scale(0.97);
}

.product-card.clicked {
  animation: clickBump 0.3s ease;
}

@keyframes clickBump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}

/* Badges */
.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* e-Elite badge - top right */
.product-badge.elite {
  background: transparent;
  left: auto;
  right: 8px;
  padding: 0px !important;
}

.product-badge.elite img {
  width: 46px;
  height: 23px;
}

/* Rating overlay on image - bottom left */
.product-rating-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 3;
  line-height: 1;
}

.product-rating-overlay i,
.product-rating-overlay .stars {
  font-size: 10px;
  color: white;
}

.product-rating-overlay .rating-value {
  font-weight: 600;
  margin-left: 2px;
}

.product-rating-overlay {
  font-size: 10px;
  opacity: 0.9;
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  /* 1:1 Aspect Ratio */ overflow: hidden;
  background: #f8f8f8;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto !important;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.product-card:hover .product-image {
  transform: scale(1.02);
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  overflow: hidden;
  min-width: 0;
}

.product-seller {
  font-size: 10px;
  font-weight: 600;
  color: #444;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  flex-shrink: 1;
  word-break: break-word;
}

.product-title {
  font-size: 12px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: 34px;
}

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.current-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.original-price {
  font-size: 13px;
  color: var(--gray);
  text-decoration: line-through;
}

.product-savings {
  font-size: 12px;
  color: var(--success);
  font-weight: 500;
  margin-top: 2px;
}

.price-range {
  font-size: 13px;
  color: var(--gray);
  margin-top: 2px;
}

.no-products {
  text-align: center;
  padding: 40px;
  color: var(--gray);
  font-size: 16px;
}

/* ========== DOWNLOAD APP SECTIONS ========== */
.desktop-download-app {
  padding: 50px 0 0;
  background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
  color: white;
  display: none;
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .desktop-download-app {
    display: block;
  }
}

.desktop-download-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.desktop-download-content {
  flex: 1;
}

.desktop-download-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: white;
}

.desktop-download-content p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
  font-size: 18px;
  max-width: 600px;
  line-height: 1.6;
}

.desktop-app-buttons {
  display: flex;
  gap: 25px;
}

.desktop-app-btn {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
}

.desktop-app-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.desktop-app-btn.coming-soon {
  background: linear-gradient(135deg, #718096 0%, #4A5568 100%);
  cursor: not-allowed;
  opacity: 0.9;
}

.desktop-app-btn i {
  font-size: 32px;
  margin-right: 20px;
}

.desktop-app-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.desktop-app-btn-text span:first-child {
  font-size: 14px;
  opacity: 0.9;
}

.desktop-app-btn-text span:last-child {
  font-size: 22px;
  font-weight: 600;
}

.desktop-download-image {
  width: 350px;
  height: 350px;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--sh-3);
  border: 8px solid rgba(255,255,255,0.1);
}

.desktop-download-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-container svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.wave-container .shape-fill {
  fill: var(--light);
}

.tablet-download-app {
  padding: 40px 0 0;
  background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
  color: white;
  display: none;
  position: relative;
  overflow: hidden;
}

@media (max-width: 991px) and (min-width: 768px) {
  .tablet-download-app {
    display: block;
  }
}

.tablet-download-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.tablet-download-content {
  flex: 1;
}

.tablet-download-content h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: white;
}

.tablet-download-content p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 25px;
  font-size: 16px;
  max-width: 500px;
  line-height: 1.5;
}

.tablet-app-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 300px;
}

.tablet-app-btn {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 12px 25px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
}

.tablet-app-btn:hover {
  transform: translateY(-3px);
}

.tablet-app-btn.coming-soon {
  background: linear-gradient(135deg, #718096 0%, #4A5568 100%);
  cursor: not-allowed;
  opacity: 0.9;
}

.tablet-app-btn i {
  font-size: 28px;
  margin-right: 15px;
}

.tablet-app-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.tablet-app-btn-text span:first-child {
  font-size: 12px;
  opacity: 0.9;
}

.tablet-app-btn-text span:last-child {
  font-size: 18px;
  font-weight: 600;
}

.tablet-download-image {
  width: 250px;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sh-2);
  border: 6px solid rgba(255,255,255,0.1);
}

.tablet-download-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-download-app {
  padding: 30px 0 0;
  background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
  color: white;
  display: none;
  position: relative;
  overflow: hidden;
}

@media (max-width: 767px) {
  .mobile-download-app {
    display: block;
  }
}

.mobile-download-wrapper {
  text-align: center;
  position: relative;
  z-index: 2;
}

.mobile-download-image {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--sh-2);
  border: 4px solid rgba(255,255,255,0.1);
}

.mobile-download-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-download-content h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: white;
}

.mobile-download-content p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.4;
  padding: 0 10px;
}

.mobile-app-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.mobile-app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  width: 220px;
}

.mobile-app-btn:hover {
  transform: translateY(-3px);
}

.mobile-app-btn.coming-soon {
  background: linear-gradient(135deg, #718096 0%, #4A5568 100%);
  cursor: not-allowed;
  opacity: 0.9;
}

.mobile-app-btn i {
  font-size: 24px;
  margin-right: 12px;
}

.mobile-app-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mobile-app-btn-text span:first-child {
  font-size: 11px;
  opacity: 0.9;
}

.mobile-app-btn-text span:last-child {
  font-size: 16px;
  font-weight: 600;
}

/* ========== UTILITY ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.4s ease forwards;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
