/* Latest Products Section - Premium Design */

/* ═══════════════════════════════════════════
   ✦ Eid Specials — Glowing Moon & Star Icon
   ═══════════════════════════════════════════ */
.eid-icon-glow {
  display: inline-block;
  font-size: 1.1em;
  color: #c4a000;
  text-shadow:
    0 0 8px rgba(196, 160, 0, 0.6),
    0 0 18px rgba(196, 160, 0, 0.4),
    0 0 35px rgba(196, 160, 0, 0.2);
  animation: eidMoonGlow 2.2s ease-in-out infinite;
  position: relative;
  margin-right: 4px;
  filter: drop-shadow(0 0 6px rgba(196, 160, 0, 0.5));
}

@keyframes eidMoonGlow {

  0%,
  100% {
    text-shadow:
      0 0 8px rgba(196, 160, 0, 0.6),
      0 0 18px rgba(196, 160, 0, 0.4),
      0 0 35px rgba(196, 160, 0, 0.2);
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 6px rgba(196, 160, 0, 0.5));
  }

  50% {
    text-shadow:
      0 0 14px rgba(255, 215, 0, 0.9),
      0 0 30px rgba(255, 215, 0, 0.6),
      0 0 55px rgba(255, 215, 0, 0.35),
      0 0 80px rgba(196, 160, 0, 0.15);
    transform: scale(1.12) rotate(8deg);
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.7));
  }
}

/* Sparkle particles around the moon */
.eid-icon-glow::before,
.eid-icon-glow::after {
  content: '✦';
  position: absolute;
  font-size: 0.35em;
  color: #ffd700;
  opacity: 0;
  animation: eidSparkle 3s ease-in-out infinite;
}

.eid-icon-glow::before {
  top: -6px;
  right: -4px;
  animation-delay: 0s;
}

.eid-icon-glow::after {
  bottom: -2px;
  left: -3px;
  animation-delay: 1.5s;
}

@keyframes eidSparkle {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.5) translateY(0);
  }

  30% {
    opacity: 1;
    transform: scale(1.2) translateY(-3px);
  }

  60% {
    opacity: 0.5;
    transform: scale(0.8) translateY(2px);
  }

  90% {
    opacity: 0;
    transform: scale(0.4) translateY(-1px);
  }
}

.latest-products {
  padding: 80px 0;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.trending-products {
  padding: 20px 0;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  position: relative;
  overflow: hidden;
}

body.home-page #products.products {
  padding: 20px 0;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  position: relative;
  overflow: hidden;
}

.trending-products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb 50%, transparent);
}

body.home-page #products.products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb 50%, transparent);
}

.trending-products .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

body.home-page #products.products .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.trending-products .section-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  position: relative;
  padding-left: 20px;
}

body.home-page #products.products .section-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  position: relative;
  padding-left: 20px;
}

.trending-products .section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 42px;
  background: linear-gradient(180deg, #c4a000 0%, #1a6b3c 100%);
  border-radius: 3px;
}

body.home-page #products.products .section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 42px;
  background: #4d2600;
  border-radius: 3px;
}

[data-theme="dark"] body.home-page .section-header h2.section-heading-reveal::before,
body.dark-mode .section-header h2.section-heading-reveal::before {
  background: #D7C1A1 !important;
}

body.home-page .section-header h2.section-heading-reveal {
  overflow: hidden;
}

body.home-page .section-header h2.section-heading-reveal::before {
  transform-origin: center;
  transform: translateY(-50%) scaleY(0.22);
  opacity: 0.35;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

body.home-page .section-header h2.section-heading-reveal .section-heading-reveal-text {
  display: inline-block;
  transform: translateX(-24px);
  opacity: 0;
  filter: blur(6px);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, filter 0.55s ease;
  will-change: transform, opacity, filter;
}

body.home-page .section-header h2.section-heading-reveal.is-visible::before {
  transform: translateY(-50%) scaleY(1);
  opacity: 1;
}

body.home-page .section-header h2.section-heading-reveal.is-visible .section-heading-reveal-text {
  transform: translateX(0);
  opacity: 1;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {

  body.home-page .section-header h2.section-heading-reveal::before,
  body.home-page .section-header h2.section-heading-reveal .section-heading-reveal-text {
    transition: none;
    transform: none;
    opacity: 1;
    filter: none;
  }
}

.trending-products .view-all {
  color: #4d2600;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(139, 69, 19, 0.05);
}

body.home-page #products.products .view-all {
  color: #4d2600;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(139, 69, 19, 0.05);
}

.trending-products .view-all:hover {
  background: rgba(139, 69, 19, 0.1);
  gap: 12px;
}

body.home-page #products.products .view-all:hover {
  background: rgba(139, 69, 19, 0.1);
  gap: 12px;
}

.trending-products .view-all i {
  transition: transform 0.3s ease;
}

body.home-page #products.products .view-all i {
  transition: transform 0.3s ease;
}

.trending-products .view-all:hover i {
  transform: translateX(4px);
}

body.home-page #products.products .view-all:hover i {
  transform: translateX(4px);
}

.trending-products .products-slider-wrap {
  position: relative;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {

  body.home-page #newArrivalSection .section-header,
  body.home-page #latestProducts .section-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
  }

  body.home-page #newArrivalSection .section-header h2,
  body.home-page #latestProducts .section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    position: relative;
    padding-left: 20px;
  }

  body.home-page #newArrivalSection .section-header h2::before,
  body.home-page #latestProducts .section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 42px;
    background: #4d2600;
    border-radius: 3px;
    display: block;
  }
}

body.home-page #products.products .products-slider-wrap {
  position: relative;
  margin: 0;
  padding: 0;
}

body.home-page #products.products .products-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.home-page #products.products .products-slider-btn:hover {
  background: #4d2600;
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
  transform: translateY(-50%) scale(1.1);
}

body.home-page #products.products .products-slider-btn.prev {
  left: 0;
}

body.home-page #products.products .products-slider-btn.next {
  right: 0;
}

/* Grid mode (<=4 items) */
.trending-products .products-grid.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.trending-products .products-grid.trending-grid .product-card {
  opacity: 1;
  animation: none;
}

/* Slider mode (5+ items) */
.trending-products .products-grid.trending-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 90px) / 4.2);
  grid-template-columns: none;
  gap: 20px;
  overflow-x: auto;
  /* Stop the slider itself from becoming a vertical wheel target. */
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 6px;
  padding-bottom: 10px;
}

.trending-products .products-grid.trending-slider::-webkit-scrollbar {
  display: none;
}

.trending-products .products-grid.trending-slider .product-card {
  scroll-snap-align: start;
  min-width: 0;
}

.trending-products .products-grid.trending-slider.dragging,
.trending-products .products-grid.trending-slider.dragging * {
  user-select: none !important;
}

.trending-products .products-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.trending-products .products-slider-btn:hover {
  background: #4d2600;
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.trending-products .products-slider-btn.prev {
  left: 0;
}

.trending-products .products-slider-btn.next {
  right: 0;
}

.trending-products .products-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding: 16px 0;
}

.trending-products .products-slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.trending-products .products-slider-dots .dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.trending-products .products-slider-dots .dot.active {
  background: #4d2600;
  width: 32px;
  border-radius: 5px;
  border-color: rgba(139, 69, 19, 0.2);
}

.trending-products .product-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.trending-products .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(139, 69, 19, 0.2);
}

.trending-products .product-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  transform: none;
}

.trending-products .product-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.trending-products .product-image-container {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 4;
  background: #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
}

.trending-products .product-image-container .product-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: none !important;
}

.trending-products .product-card:hover .product-img {
  transform: none !important;
}

.trending-products .product-badge,
.trending-products .product-rating,
.trending-products .product-category,
.trending-products .product-stock,
.trending-products .product-sizes,
.trending-products .product-colors,
.trending-products .product-meta,
.trending-products .product-actions,
.trending-products .btn-wishlist {
  display: none !important;
}

.trending-products .quick-actions {
  display: flex !important;
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  transform: none !important;
  opacity: 1 !important;
  gap: 0;
  z-index: 4;
}

.trending-products .quick-actions .quick-btn:first-child {
  display: none !important;
}

.trending-products .quick-actions .quick-btn {
  width: 34px;
  height: 34px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 50% !important;
}

.trending-products .quick-actions .quick-btn:hover {
  background: transparent !important;
  transform: none !important;
}

.trending-products .quick-actions .quick-btn i {
  font-size: 20px;
  color: #222222;
}

.trending-products .quick-actions .quick-btn i.text-danger {
  color: #e3342f !important;
}

.trending-products .discount-badge {
  top: 10px;
  right: 10px;
  left: auto;
  background: linear-gradient(135deg, #D7C1A1, #C8A96A);
  color: #3E2D24;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(200, 169, 106, 0.25);
}

.trending-products .discount-badge {
  display: none !important;
}

.trending-products .product-info {
  padding: 10px 0 0;
}

.trending-products .product-title {
  font-size: 18px;
  line-height: 1.35;
  color: #111827;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 14px;
}

.trending-products .product-price {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.trending-products .product-price .current-price {
  font-weight: 800;
  color: #111827;
  font-size: 20px;
}

.trending-products .product-price .original-price {
  font-size: 13px;
  color: #ef4444;
  text-decoration: line-through;
  font-weight: 600;
}

.trending-products .product-price .discount {
  font-size: 12px;
  color: #258b00;
  font-weight: 800;
}

.trending-products .product-price .original-price:empty,
.trending-products .product-price .discount:empty {
  display: none;
}

.trending-products .product-card:nth-child(1) {
  animation-delay: 0.1s;
}

.trending-products .product-card:nth-child(2) {
  animation-delay: 0.15s;
}

.trending-products .product-card:nth-child(3) {
  animation-delay: 0.2s;
}

.trending-products .product-card:nth-child(4) {
  animation-delay: 0.25s;
}

.trending-products .product-card:nth-child(5) {
  animation-delay: 0.3s;
}

.trending-products .product-card:nth-child(6) {
  animation-delay: 0.35s;
}

.products #productsGrid .product-card.home-recent-card,
.trending-products #trendingGrid .product-card.home-recent-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  transform: none;
  opacity: 1;
  animation: none;
}

.products #productsGrid .product-card.home-recent-card:hover,
.trending-products #trendingGrid .product-card.home-recent-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: none;
}

/* Prevent compound translateY: .top-wear-card is INSIDE .product-card,
   both get translateY(-4px) from style.css creating -8px total shift.
   Override the inner one to none so only the outer card shifts. */
.products #productsGrid .product-card .top-wear-card,
.products #productsGrid .product-card .top-wear-card:hover,
.products #productsGrid .product-card:hover .top-wear-card,
.trending-products #trendingGrid .product-card .top-wear-card,
.trending-products #trendingGrid .product-card .top-wear-card:hover,
.trending-products #trendingGrid .product-card:hover .top-wear-card {
  transform: none !important;
}

.products #productsGrid .top-wear-card,
.trending-products #trendingGrid .top-wear-card {
  cursor: pointer;
}

.products #productsGrid .top-wear-img,
.trending-products #trendingGrid .top-wear-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.products #productsGrid .top-wear-img .tw-img,
.trending-products #trendingGrid .top-wear-img .tw-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  transition: opacity .3s ease;
}

.products #productsGrid .top-wear-img .tw-hover,
.trending-products #trendingGrid .top-wear-img .tw-hover {
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.products #productsGrid .top-wear-img .tw-primary,
.trending-products #trendingGrid .top-wear-img .tw-primary {
  opacity: 1;
  z-index: 1;
}

.products #productsGrid .top-wear-card.has-hover-image:hover .top-wear-img .tw-hover,
.trending-products #trendingGrid .top-wear-card.has-hover-image:hover .top-wear-img .tw-hover,
.products #productsGrid .product-card.has-hover-image:hover .top-wear-img .tw-hover,
.trending-products #trendingGrid .product-card.has-hover-image:hover .top-wear-img .tw-hover {
  opacity: 1 !important;
}

.products #productsGrid .top-wear-card.has-hover-image:hover .top-wear-img .tw-primary,
.trending-products #trendingGrid .top-wear-card.has-hover-image:hover .top-wear-img .tw-primary,
.products #productsGrid .product-card.has-hover-image:hover .top-wear-img .tw-primary,
.trending-products #trendingGrid .product-card.has-hover-image:hover .top-wear-img .tw-primary {
  opacity: 0 !important;
}

.products #productsGrid .top-wear-card:not(.has-hover-image):hover .top-wear-img .tw-primary,
.trending-products #trendingGrid .top-wear-card:not(.has-hover-image):hover .top-wear-img .tw-primary,
.products #productsGrid .product-card:not(.has-hover-image):hover .top-wear-img .tw-primary,
.trending-products #trendingGrid .product-card:not(.has-hover-image):hover .top-wear-img .tw-primary {
  opacity: 1 !important;
}

.products #productsGrid .tw-discount-badge,
.trending-products #trendingGrid .tw-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #D7C1A1, #C8A96A);
  color: #3E2D24;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(200, 169, 106, 0.25);
}

.products #productsGrid .top-wear-meta,
.trending-products #trendingGrid .top-wear-meta {
  padding-top: 10px;
}

.products #productsGrid .top-wear-title,
.trending-products #trendingGrid .top-wear-title {
  font-size: 16px;
  line-height: 1.35;
  color: #111827;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 18px;
}

.products #productsGrid .top-wear-price,
.trending-products #trendingGrid .top-wear-price {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.products #productsGrid .top-wear-price .tw-current,
.trending-products #trendingGrid .top-wear-price .tw-current {
  font-weight: 800;
  color: #111827;
  font-size: 20px;
}

.products #productsGrid .top-wear-price .tw-original,
.trending-products #trendingGrid .top-wear-price .tw-original {
  font-size: 13px;
  color: #ef4444;
  text-decoration: line-through;
  font-weight: 600;
}

.products #productsGrid .top-wear-price .tw-disc,
.trending-products #trendingGrid .top-wear-price .tw-disc {
  font-size: 16px;
  color: #258b00;
  font-weight: 800;
}

@media (max-width: 576px) {

  .trending-products #trendingGrid.trending-grid,
  .products #productsGrid.products-grid {
    gap: 14px;
  }
}

.latest-products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb 50%, transparent);
}

.latest-products .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.latest-products .section-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  position: relative;
  padding-left: 20px;
}

.latest-products .section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 42px;
  background: #4d2600;
  border-radius: 3px;
}

.latest-products .view-all {
  color: #4d2600;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(139, 69, 19, 0.05);
}

.latest-products .view-all:hover {
  background: rgba(139, 69, 19, 0.1);
  gap: 12px;
}

.latest-products .view-all i {
  transition: transform 0.3s ease;
}

.latest-products .view-all:hover i {
  transform: translateX(4px);
}

/* Products Grid Slider */
.latest-products .products-slider-wrap {
  position: relative;
  margin: 0;
  padding: 0;
}

.latest-products .products-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 90px) / 4.2);
  grid-template-columns: none;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 6px;
  padding-bottom: 10px;
}

.latest-products .products-grid::-webkit-scrollbar {
  display: none;
}

.latest-products .products-grid.slider {
  display: grid !important;
  grid-auto-flow: column;
  grid-template-columns: none !important;
  gap: 20px !important;
}

.latest-products .products-grid.slider .product-card {
  scroll-snap-align: start;
  min-width: 0;
}

/* Slider Navigation Buttons */
.latest-products .products-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.latest-products .products-slider-btn:hover {
  background: #4d2600;
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.latest-products .products-slider-btn.prev {
  left: 0;
}

.latest-products .products-slider-btn.next {
  right: 0;
}

.latest-products .products-slider-btn i {
  font-size: 18px;
}

/* Slider Dots */
.latest-products .products-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding: 16px 0;
}

.latest-products .products-slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.latest-products .products-slider-dots .dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.latest-products .products-slider-dots .dot.active {
  background: #4d2600;
  width: 32px;
  border-radius: 5px;
  border-color: rgba(139, 69, 19, 0.2);
}

/* Product Card Enhancements for Latest Section */
.latest-products .product-card:not(.see-all-card) {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  transform: none;
  overflow: visible;
  transition: none;
}

.latest-products .product-card:not(.see-all-card):hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.latest-products .product-card:not(.see-all-card) .product-image-container {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 4;
  background: #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
}

.latest-products .product-card:not(.see-all-card) .product-image-container .product-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: none !important;
}

.latest-products .product-card:not(.see-all-card):hover .product-img {
  transform: none !important;
}

.latest-products .product-badge,
.latest-products .product-rating,
.latest-products .product-category,
.latest-products .product-stock,
.latest-products .product-sizes,
.latest-products .product-colors,
.latest-products .product-meta,
.latest-products .product-actions,
.latest-products .btn-wishlist {
  display: none !important;
}

.latest-products .quick-actions {
  display: flex !important;
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  transform: none !important;
  opacity: 1 !important;
  gap: 0;
  z-index: 4;
}

.latest-products .quick-actions .quick-btn:first-child {
  display: none !important;
}

.latest-products .quick-actions .quick-btn {
  width: 34px;
  height: 34px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 50% !important;
}

.latest-products .quick-actions .quick-btn:hover {
  background: transparent !important;
  transform: none !important;
}

.latest-products .quick-actions .quick-btn i {
  font-size: 20px;
  color: #222222;
}

.latest-products .quick-actions .quick-btn i.text-danger {
  color: #e3342f !important;
}

.latest-products .discount-badge {
  top: 10px;
  right: 10px;
  left: auto;
  background: #27ae60;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

.latest-products .discount-badge {
  display: none !important;
}

.latest-products .product-info {
  padding: 10px 0 0;
}

.latest-products .product-title {
  font-size: 17px;
  line-height: 1.35;
  color: #111827;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 14px;
}

.latest-products .product-price {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.latest-products .product-price .current-price {
  font-weight: 800;
  color: #111827;
  font-size: 21px;
}

.latest-products .product-price .original-price {
  font-size: 13px;
  color: #ef4444;
  text-decoration: line-through;
  font-weight: 600;
}

.latest-products .product-price .discount {
  font-size: 12px;
  color: #258b00;
  font-weight: 800;
}

.latest-products .product-price .original-price:empty,
.latest-products .product-price .discount:empty {
  display: none;
}

/* See All Card Styling */
.latest-products .see-all-card {
  background: linear-gradient(135deg, #fafafa 0%, #f5f7fb 100%);
  border: 2px dashed #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  border-radius: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.latest-products .see-all-card:hover {
  border-color: #4d2600;
  background: linear-gradient(135deg, #fff5f0 0%, #fff8f3 100%);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 69, 19, 0.15);
}

.latest-products .see-all-card .sa-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}

.latest-products .see-all-card .sa-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #4d2600;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
  transition: all 0.3s ease;
}

.latest-products .see-all-card:hover .sa-icon {
  transform: scale(1.1) rotate(90deg);
}

.latest-products .see-all-card .sa-icon i {
  font-size: 24px;
}

.latest-products .see-all-card .sa-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.latest-products .see-all-card .sa-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .latest-products {
    padding: 60px 0;
  }

  .latest-products .section-header h2 {
    font-size: 30px;
  }

  .latest-products .products-slider-wrap {
    padding: 0;
  }

  .latest-products .products-grid {
    grid-auto-columns: calc((100% - 40px) / 3.2);
  }

  .trending-products {
    padding: 60px 0;
  }

  body.home-page #products.products {
    padding: 60px 0;
  }

  .trending-products .section-header h2 {
    font-size: 30px;
  }

  body.home-page #products.products .section-header h2 {
    font-size: 30px;
  }

  .trending-products .products-grid.trending-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trending-products .products-grid.trending-slider {
    grid-auto-columns: calc((100% - 40px) / 3.2);
  }
}

@media (max-width: 768px) {
  .latest-products {
    padding: 50px 0;
  }

  .latest-products .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }

  .latest-products .section-header h2 {
    font-size: 24px;
  }

  .latest-products .products-slider-wrap {
    padding: 0 32px;
  }

  .latest-products .products-slider-btn {
    width: 40px;
    height: 40px;
  }

  .latest-products .products-slider-btn i {
    font-size: 16px;
  }

  .latest-products .products-grid.slider .product-card {
    min-width: 0;
  }

  .latest-products .see-all-card {
    min-height: 360px;
  }

  .trending-products {
    padding: 50px 0;
  }

  body.home-page #products.products {
    padding: 50px 0;
  }

  .trending-products .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }

  body.home-page #products.products .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }

  .trending-products .section-header h2 {
    font-size: 24px;
  }

  body.home-page #products.products .section-header h2 {
    font-size: 24px;
  }

  .trending-products .products-slider-wrap {
    padding: 0 32px;
  }

  body.home-page #products.products .products-slider-wrap {
    padding: 0 32px;
  }

  .trending-products .products-slider-btn {
    width: 40px;
    height: 40px;
  }

  body.home-page #products.products .products-slider-btn {
    width: 40px;
    height: 40px;
  }

  .trending-products .products-slider-btn i {
    font-size: 16px;
  }

  body.home-page #products.products .products-slider-btn i {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .latest-products {
    padding: 40px 0;
  }

  .trending-products .product-title {
    font-size: 16px;
    min-height: 14px;
  }

  .latest-products .section-header h2 {
    font-size: 22px;
    padding-left: 16px;
  }

  .products #productsGrid .tw-discount-badge,
  .trending-products #trendingGrid .tw-discount-badge {
    background: #27ae60;
    color: #fff;
    font-size: 7px;
    font-weight: 700;
    padding: 4px 7px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
  }

  .latest-products .section-header h2::before {
    width: 4px;
    height: 24px;
  }

  .latest-products .view-all {
    font-size: 14px;
    padding: 6px 12px;
  }

  .latest-products .products-slider-wrap {
    padding: 0 28px;
    margin: 0 -8px;
  }

  .latest-products .products-slider-btn {
    width: 36px;
    height: 36px;
  }

  .latest-products .products-slider-btn.prev {
    left: -4px;
  }

  .latest-products .products-slider-btn.next {
    right: -4px;
  }

  .latest-products .products-grid.slider {
    gap: 12px;
  }

  .latest-products .products-grid {
    grid-auto-columns: calc((100% - 12px) / 2.05);
  }

  .latest-products .products-grid.slider .product-card {
    min-width: 0;
  }

  .latest-products .see-all-card {
    min-height: 360px;
  }

  .latest-products .see-all-card .sa-icon {
    width: 56px;
    height: 56px;
  }

  .latest-products .see-all-card .sa-title {
    font-size: 18px;
  }

  .latest-products .products-slider-dots {
    margin-top: 24px;
    padding: 12px 0;
  }

  .latest-products .products-slider-dots .dot {
    width: 8px;
    height: 8px;
  }

  .latest-products .products-slider-dots .dot.active {
    width: 24px;
  }

  .trending-products {
    padding: 10px 0;
  }

  body.home-page #products.products {
    padding: 10px 0;
  }

  .trending-products .section-header h2 {
    font-size: 28px;
    padding-left: 0px;
  }

  body.home-page #products.products .section-header h2 {
    font-size: 22px;
    padding-left: 0px;
  }

  .trending-products .section-header h2::before {
    width: 4px;
    height: 24px;
  }

  body.home-page #products.products .section-header h2::before {
    width: 4px;
    height: 24px;
  }

  .trending-products .view-all {
    font-size: 14px;
    padding: 6px 12px;
  }

  body.home-page #products.products .view-all {
    font-size: 14px;
    padding: 6px 12px;
  }

  .trending-products .products-slider-wrap {
    padding: 0;
    margin: 0;
  }

  body.home-page #products.products .products-slider-wrap {
    padding: 0;
    margin: 0;
  }

  .trending-products .products-slider-btn {
    width: 36px;
    height: 36px;
  }

  body.home-page #products.products .products-slider-btn {
    width: 36px;
    height: 36px;
  }

  .trending-products .products-slider-btn.prev {
    left: -2px;
  }

  body.home-page #products.products .products-slider-btn.prev {
    left: -2px;
  }

  .trending-products .products-slider-btn.next {
    right: -2px;
  }

  body.home-page #products.products .products-slider-btn.next {
    right: -2px;
  }

  .trending-products .products-grid.trending-slider {
    gap: 12px;
  }

  .trending-products .products-grid.trending-slider {
    grid-auto-columns: calc((100% - 12px) / 2.05);
  }

  .trending-products .products-slider-dots {
    margin-top: 24px;
    padding: 12px 0;
  }

  .trending-products .products-slider-dots .dot {
    width: 8px;
    height: 8px;
  }

  .trending-products .products-slider-dots .dot.active {
    width: 24px;
  }
}

/* Animation for cards on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skeleton loading animation */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.latest-products .product-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.latest-products .product-card:nth-child(1) {
  animation-delay: 0.1s;
}

.latest-products .product-card:nth-child(2) {
  animation-delay: 0.15s;
}

.latest-products .product-card:nth-child(3) {
  animation-delay: 0.2s;
}

.latest-products .product-card:nth-child(4) {
  animation-delay: 0.25s;
}

.latest-products .product-card:nth-child(5) {
  animation-delay: 0.3s;
}

.latest-products .product-card:nth-child(6) {
  animation-delay: 0.35s;
}