/* ============================================
   LAYOUT STYLES - STRUCTURAL ONLY
   ============================================ */

/* Top Bar */
.top-bar {
  padding: var(--space-sm) 0;
}

.top-bar__left,
.top-bar__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.top-bar__divider {
  width: 1px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.3);
}

/* Header */
.header {
  padding: var(--space-md) 0;
  position: relative;
  z-index: var(--z-sticky);
}

.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.header__logo {
  flex-shrink: 0;
}

.header__search {
  flex: 1;
  max-width: 600px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-shrink: 0;
}

/* Main Navigation */
.main-nav {
  position: relative;
  z-index: var(--z-dropdown);
}

.main-nav__wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
}

.main-nav__left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Ensure menu items don't stretch weirdly */
.nav-menu__item {
  position: relative;
  flex-shrink: 0;
}

.main-nav__right {
  display: flex;
  align-items: center;
}

.main-nav__menu {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-slider {
  width: 100%;
}



/* Footer */
.footer {
  margin-top: auto;
}

.footer__top {
  padding: var(--space-3xl) 0;
}

.footer__bottom {
  padding: var(--space-md) 0;
}

/* Page Wrapper */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* Container Extensions */
.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Override Bootstrap Container Widths */
@media (min-width: 992px) {
  .container {
    --bs-gutter-x: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: var(--container-xl);
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: var(--container-xxl);
    --bs-gutter-x: 4rem;
  }
}

/* Sticky Header */
.header--sticky {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}



/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* categories */
.categories-section {
  background-color: var(--bg-surface);
  overflow: hidden;
}

/* Ensure section title alignment */
.categories-section .section-title {
  margin-bottom: 2rem;
}

.category-item {
  text-align: center;
  text-decoration: none;
  display: block;
  padding: 10px;
  transition: transform var(--transition-slow);
}

.category-item:hover {
  transform: translateY(-3px);
}

.category-item__image-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 0;
  transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.category-item:hover .category-item__image-wrapper {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: var(--shadow-lg);
}

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

.category-item__title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  margin: 0;
  transition: color var(--transition-base);
}

.category-item:hover .category-item__title {
  color: var(--primary);
}

/* Tablets: five or six tiles per row */
@media (max-width: 991.98px) {
  .category-item__image-wrapper {
    width: 110px;
    height: 110px;
  }
}

/* Phones: the slider shows three tiles per row */
@media (max-width: 575.98px) {
  .category-item {
    padding: 6px 2px;
  }

  .category-item__image-wrapper {
    width: 84px;
    height: 84px;
    margin-bottom: 10px;
  }

  .category-item__title {
    font-size: 0.78rem;
    line-height: 1.3;
  }
}

/* Promo Banners */
.promo-banners {
  padding-bottom: 2rem;
  position: relative;
}

.promo-banners__slider-wrapper {
  position: relative;
  padding: 0;
}

.promo-banners-swiper {
  width: 100%;
  padding: 8px 4px 12px 4px;
  margin: -8px -4px -12px -4px;
}

.promo-banners-swiper .swiper-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
}

.promo-banners-swiper .promo-card {
  width: 100%;
}

/* Circular Previous/Next Navigation Buttons */
.promo-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  width: 44px;
  height: 44px;
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 20;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.promo-nav-btn--prev {
  left: -18px;
}

.promo-nav-btn--next {
  right: -18px;
}

/* Smoothly appear when user hovers over carousel section */
.promo-banners__slider-wrapper:hover .promo-nav-btn {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

/* Focus states for accessibility */
.promo-nav-btn:focus-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Button hover and active states */
.promo-nav-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
  transform: translateY(-50%) scale(1.04);
}

.promo-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Swiper disabled / lock states */
.promo-nav-btn.swiper-button-disabled {
  opacity: 0.35 !important;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.promo-nav-btn.swiper-button-lock {
  display: none !important;
}

/* Pagination Dots */
.promo-banners-pagination {
  position: relative !important;
  margin-top: 20px !important;
  bottom: auto !important;
  left: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.promo-banners-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  opacity: 1;
  margin: 0 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.promo-banners-pagination .swiper-pagination-bullet:hover {
  background: var(--muted-light);
}

.promo-banners-pagination .swiper-pagination-bullet-active {
  width: 24px;
  background: var(--primary);
  border-radius: 4px;
}

.promo-banners-pagination.swiper-pagination-lock {
  display: none !important;
}

/* Responsive button position and touch behavior */
@media (hover: none) {
  .promo-nav-btn {
    opacity: 0.85;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
  }
}

@media (max-width: 1200px) {
  .promo-nav-btn--prev {
    left: 4px;
  }

  .promo-nav-btn--next {
    right: 4px;
  }
}

@media (max-width: 767px) {
  .promo-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

.promo-card {
  display: flex;
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 220px;
  padding: 24px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(var(--shadow-color), 0.05);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.promo-card--purple {
  background: linear-gradient(135deg, var(--promo-purple-from) 0%, var(--promo-purple-to) 100%);
}

.promo-card--red {
  background: linear-gradient(135deg, var(--promo-red-from) 0%, var(--promo-red-to) 100%);
}

.promo-card--green {
  background: linear-gradient(135deg, var(--promo-green-from) 0%, var(--promo-green-to) 100%);
}

.promo-card__image-wrapper {
  flex: 0 0 40%;
  max-width: 40%;
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-card__image {
  max-width: 140%;
  max-height: 110%;
  object-fit: contain;
  transform: scale(1.0) translateX(-10px);
  mix-blend-mode: multiply;
  transition: transform var(--transition-slower);
}

.promo-card:hover .promo-card__image {
  transform: scale(1.05) translateX(-10px);
}

.promo-card__content {
  flex: 1;
  padding-left: 20px;
  color: var(--white);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.promo-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--white);
}

.promo-card__price-label {
  display: block;
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 12px;
  font-weight: 500;
}

.promo-card__price {
  font-size: 1.5rem;
  font-weight: 800;
}

.promo-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
}

.promo-card__link-icon {
  width: 28px;
  height: 28px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.promo-card__link:hover .promo-card__link-icon {
  background: var(--white);
  color: var(--primary);
  transform: translateX(3px);
  /* Adjust based on card color if needed, but primary is safe or inherit */
}

/* Specific hover colors */
.promo-card--purple .promo-card__link:hover .promo-card__link-icon {
  color: var(--promo-purple-text);
}

.promo-card--red .promo-card__link:hover .promo-card__link-icon {
  color: var(--promo-red-text);
}

.promo-card--green .promo-card__link:hover .promo-card__link-icon {
  color: var(--promo-green-text);
}

/* Popular Products Section */
.popular-products {
  background: var(--bg-surface);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.section-title--underline {
  padding-bottom: 12px;
  border-bottom: none;
}

.section-title--underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Product Tabs */
.product-tabs {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.product-tabs::-webkit-scrollbar {
  display: none;
}

.product-tab {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 20px;
  background: transparent;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.product-tab:hover {
  color: var(--primary);
}

.product-tab.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* Product Card */
.product-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 0;
  position: relative;
  transition: transform var(--transition-slow);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* .product-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
} */

/* Hide countdown on hover */
.product-card:hover .product-card__countdown {
  opacity: 0;
  visibility: hidden;
}

/* Hover text color change - individual elements */
.product-card__brand:hover {
  color: var(--primary);
  cursor: pointer;
}

.product-card__title:hover {
  color: var(--primary);
  cursor: pointer;
}

.product-card__title a {
  color: inherit;
}

/* Product Badge */
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  border-radius: var(--radius-xs);
  z-index: 2;
  text-transform: uppercase;
}

.product-card__badge--sale {
  background: var(--danger);
  color: var(--white);
}

.product-card__badge--pack {
  background: var(--success);
  color: var(--white);
}

.product-card__badge--new {
  background: var(--primary);
  color: var(--white);
}

/* Wishlist Button */
.product-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.product-card__wishlist:hover {
  background: var(--danger-subtle);
  border-color: var(--danger-light);
  color: var(--danger);
}

.product-card__wishlist i {
  font-size: 0.9rem;
  color: var(--muted-light);
}

.product-card__wishlist:hover i {
  color: var(--danger);
}

/* Popular Products Slider */
.popular-products__slider-wrapper {
  position: relative;
  padding: 0 15px;
}

.popular-products-swiper {
  overflow: hidden;
  width: 100%;
}

.popular-products-swiper .swiper-wrapper {
  display: flex;
}

.popular-products-swiper .swiper-slide {
  height: auto;
  flex-shrink: 0;
}

.popular-products__nav {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--dark-secondary);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-base), border-color var(--transition-base),
    color var(--transition-base), box-shadow var(--transition-base);
}

.popular-products__nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.popular-products__nav--prev {
  left: 0;
}

.popular-products__nav--next {
  right: 0;
}

/* Override Swiper lock state */
.popular-products__nav.swiper-button-lock {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Product Card Hover Actions */
.product-card__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.product-card:hover .product-card__actions {
  opacity: 1;
  transform: translateX(0);
}

.product-card__action-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-base), border-color var(--transition-base), transform var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.product-card__action-btn:active {
  transform: scale(0.94);
}

.product-card__action-btn i {
  font-size: 0.9rem;
  color: var(--dark-secondary);
  transition: color var(--transition-base);
}

.product-card__action-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.product-card__action-btn:hover i {
  color: var(--white);
}

/* Wishlist active state */
.product-card__action-btn--wishlist:hover,
.product-card__action-btn--wishlist.active {
  background: var(--danger-subtle);
  border-color: var(--danger-light);
}

.product-card__action-btn--wishlist:hover i,
.product-card__action-btn--wishlist.active i {
  color: var(--danger);
}

/* Cart button alternate style */
.product-card__action-btn--cart {
  background: var(--bg-surface);
}

.product-card__action-btn--cart:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Product Image */
.product-card__image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow);
}

.product-card:hover .product-card__image-wrapper {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

.product-card__image {
  object-fit: contain;
  transition: transform var(--transition-slower);
}

.product-card:hover .product-card__image {
  transform: scale(1.04);
}

/* Product Countdown */
.product-card__countdown {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 4px;
  background: transparent;
  padding: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.countdown-item {
  text-align: center;
  padding: 4px 6px;
  min-width: 32px;
  background: var(--danger-subtle);
  border-radius: var(--radius-xs);
}

.countdown-item span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--danger);
}

.countdown-item small {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--danger);
}

.countdown-item:nth-child(4) small {
  color: var(--muted-light);
}

/* Product Body */
.product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 2px 8px;
}

.product-card__brand {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--transition-base);
}

.product-card__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-base);
}

/* Product Rating */
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.product-card__rating .stars {
  display: flex;
  gap: 2px;
}

.product-card__rating .stars i {
  font-size: 0.75rem;
  color: var(--warning);
}

.product-card__rating .count {
  font-size: 0.75rem;
  color: var(--muted-light);
}

/* Product Price */
.product-card__price {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card__price .current {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.product-card__price .old {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted-light);
  text-decoration: line-through;
}

/* Features Bar */
.features-bar {
  background: var(--gradient-soft);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.feature-item__icon {
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(var(--primary-rgb), 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item__icon i {
  font-size: 1.2rem;
  color: var(--primary);
}

.feature-item__content {
  flex: 1;
}

.feature-item__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 2px;
}

.feature-item__text {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* Latest Promo Banner */
.latest-promo-banner {
  background: var(--promo-peach-bg);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  position: relative;
  height: 100%;
  min-height: 320px;
}

.latest-promo-banner__image-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.latest-promo-banner__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.latest-promo-banner__content {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.latest-promo-banner__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.25;
}

.latest-promo-banner__price {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.3;
}

.latest-promo-banner__price span {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-top: 4px;
}

.latest-promo-banner__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
}

.latest-promo-banner__link-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.latest-promo-banner__link:hover .latest-promo-banner__link-icon {
  transform: translateX(5px);
}

/* Latest Products Slider */
.latest-products__slider-wrapper {
  position: relative;
  padding: 0 15px;
}

.latest-products-swiper {
  overflow: hidden;
  width: 100%;
}

.latest-products-swiper .swiper-wrapper {
  display: flex;
}

.latest-products-swiper .swiper-slide {
  height: auto;
  flex-shrink: 0;
}

.latest-products__nav {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.latest-products__nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.latest-products__nav--prev {
  left: 0;
}

.latest-products__nav--next {
  right: 0;
}

/* Override Swiper lock state */
.latest-products__nav.swiper-button-lock {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Product Card Latest Modifier */
.product-card--latest {
  background: var(--bg-surface);
  border-radius: 0;
  padding: 0;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.product-card--latest .product-card__image-wrapper {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin: 0 0 10px 0;
  /* min-height: 160px; */
  position: relative;
  overflow: hidden;
}

.product-card--latest .product-card__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.product-card--latest:hover .product-card__actions {
  opacity: 1;
  transform: translateX(0);
}

.product-card--latest .product-card__action-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.product-card--latest .product-card__action-btn i {
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.3s ease;
}

.product-card--latest .product-card__action-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.product-card--latest .product-card__action-btn:hover i {
  color: var(--white);
}

.product-card--latest .product-card__action-btn--wishlist:hover {
  background: var(--danger-subtle);
  border-color: var(--danger-light);
}

.product-card--latest .product-card__action-btn--wishlist:hover i {
  color: var(--danger);
}

.product-card--latest .product-card__body {
  padding: 0;
}

.product-card--latest .product-card__brand {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}

.product-card--latest .product-card__title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card--latest .product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.product-card--latest .product-card__rating .stars {
  display: flex;
  gap: 1px;
}

.product-card--latest .product-card__rating .stars i {
  font-size: 0.7rem;
  color: var(--warning);
}

.product-card--latest .product-card__rating .count {
  font-size: 0.7rem;
  color: var(--muted-light);
}

.product-card--latest .product-card__price {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-card--latest .product-card__price .current {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.product-card--latest .product-card__price .old {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted-light);
  text-decoration: line-through;
}

.product-card--latest .product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-xs);
  z-index: 4;
  text-transform: uppercase;
}

.product-card--latest .product-card__countdown {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 3px;
  background: transparent;
  padding: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-card--latest:hover .product-card__countdown {
  opacity: 0;
  visibility: hidden;
}

.product-card--latest .countdown-item {
  text-align: center;
  padding: 3px 5px;
  min-width: 28px;
  background: var(--danger-subtle);
  border-radius: 3px;
}

.product-card--latest .countdown-item span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--danger);
}

.product-card--latest .countdown-item small {
  font-size: 0.45rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--danger);
}


/* ==================== FEATURED PRODUCTS SECTION ==================== */
.featured-products {
  background: var(--bg-surface);
}

/* Featured Products Slider */
.featured-products__slider-wrapper {
  position: relative;
  padding: 0 15px;
}

.featured-products-swiper {
  overflow: hidden;
  width: 100%;
}

.featured-products-swiper .swiper-wrapper {
  display: flex;
}

.featured-products-swiper .swiper-slide {
  height: auto;
  flex-shrink: 0;
}

.featured-products__nav {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.featured-products__nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.featured-products__nav--prev {
  left: 0;
}

.featured-products__nav--next {
  right: 0;
}

/* Product Card Featured Modifier */
.product-card--featured {
  background: var(--bg-surface);
  border-radius: 0;
  padding: 0;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.product-card--featured .product-card__image-wrapper {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin: 0 0 10px 0;
  /* min-height: 160px; */
  position: relative;
  overflow: hidden;
}

.product-card--featured .product-card__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.product-card--featured:hover .product-card__actions {
  opacity: 1;
  transform: translateX(0);
}

.product-card--featured .product-card__body {
  padding: 0;
}


/* Deal Of The Day Section */
.deal-of-day {
  background: var(--gradient-soft-vertical);
}

.deal-of-day__title {
  font-size: 1.35rem;
  font-weight: 600;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 20px;
}

.deal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  height: 100%;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow), transform var(--transition-slow);
}

.deal-card:hover {
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.deal-card__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-xs);
  z-index: 2;
  background: var(--secondary);
  color: var(--white);
}

.deal-card__inner {
  display: flex;
  gap: 12px;
  align-items: center;
  height: 100%;
}

.deal-card__image-wrapper {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px 10px;
  min-height: 120px;
  position: relative;
}

.deal-card__actions {
  position: absolute;
  top: 30px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.deal-card:hover .deal-card__actions {
  opacity: 1;
  transform: translateX(0);
}

.deal-card__action-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.deal-card__action-btn i {
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.3s ease;
}

.deal-card__action-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.deal-card__action-btn:hover i {
  color: var(--white);
}

.deal-card__action-btn--wishlist:hover {
  background: var(--danger-subtle);
  border-color: var(--danger-light);
}

.deal-card__action-btn--wishlist:hover i {
  color: var(--danger);
}

.deal-card__image {
  max-width: 100%;
  max-height: auto;
  object-fit: contain;
}

.deal-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 10px;
}

.deal-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: currentColor;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-card__title a {
  color: var(--dark);
  transition: color var(--transition-base);
}

.deal-card__title a:hover {
  color: var(--primary);
}

.deal-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
}

.deal-card__rating .stars {
  display: flex;
  gap: 2px;
}

.deal-card__rating .stars i {
  font-size: 0.8rem;
  color: var(--warning);
}

.deal-card__rating .count {
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: 2px;
}

.deal-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.deal-card__price .old {
  font-size: 1rem;
  color: var(--muted-light);
  text-decoration: line-through;
}

.deal-card__price .current {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}

.deal-card__countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.deal-card__countdown .countdown-item {
  text-align: center;
  background: var(--danger-subtle);
  padding: 5px 4px;
  border-radius: var(--radius-xs);
  min-width: 32px;
}

.deal-card__countdown .countdown-item span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--danger);
  line-height: 1.2;
}

.deal-card__countdown .countdown-item small {
  font-size: 0.45rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--danger);
  display: block;
  margin-top: 1px;
}

/* ==================== BEST SELLING PRODUCTS SECTION ==================== */
.best-selling {
  background: var(--bg-surface);
}

.best-selling__slider-wrapper {
  position: relative;
  padding: 0 20px;
}

.best-selling-swiper {
  overflow: hidden;
  width: 100%;
}

.best-selling-swiper .swiper-wrapper {
  display: flex;
}

.best-selling-swiper .swiper-slide {
  height: auto;
  flex-shrink: 0;
}

.best-selling__nav {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.best-selling__nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.best-selling__nav--prev {
  left: 0;
}

.best-selling__nav--next {
  right: 0;
}

/* Featured Products Section */
.featured-products {
  background: var(--bg-surface);
}

/* Out of Stock Badge */
.product-card__badge--out {
  background: var(--danger);
  color: var(--white);
  font-size: 0.6rem;
}

/* Best Selling Products Section */
.best-selling {
  background: var(--bg-surface);
}

/* Coral Theme Title */
.section-title--coral {
  border-bottom: 3px solid var(--primary);
}

/* Coral Theme Badge */
.product-card__badge--coral {
  background: var(--danger);
  color: var(--white);
}

/* Coral Theme Price */
.product-card__price--coral {
  color: var(--primary);
}

/* Coral Theme Countdown */
.product-card__countdown--coral .countdown-item {
  background: var(--danger);
}

.product-card__countdown--coral .countdown-item span {
  color: var(--white);
}

.product-card__countdown--coral .countdown-item small {
  color: rgba(var(--white-rgb), 0.8);
}

/* Testimonials Section */
.testimonials {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-lighter) 100%);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.testimonial-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--warning);
}

.testimonial-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.testimonial-card__text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-subtle) 0%, rgba(var(--primary-rgb), 0.18) 100%);
  color: var(--primary);
  font-weight: 600;
}

.testimonial-card__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.testimonial-card__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.testimonial-card__role {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-base);
}

.testimonial-card__role:hover {
  color: var(--primary);
}

.testimonial-card__role .bi-patch-check-fill {
  color: var(--success);
}

/* Shared slider arrow polish */
.latest-products__nav,
.featured-products__nav,
.best-selling__nav {
  color: var(--dark-secondary);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-base), border-color var(--transition-base),
    color var(--transition-base), box-shadow var(--transition-base);
}

.latest-products__nav:hover,
.featured-products__nav:hover,
.best-selling__nav:hover {
  box-shadow: var(--shadow-primary);
}

/* Touch devices have no hover — keep card quick actions reachable */
@media (hover: none) {

  .product-card__actions,
  .product-card--latest .product-card__actions,
  .product-card--featured .product-card__actions,
  .deal-card__actions {
    opacity: 1;
    transform: none;
  }

  .product-card:hover .product-card__countdown,
  .product-card--latest:hover .product-card__countdown {
    opacity: 1;
    visibility: visible;
  }
}
