﻿/* ─── SHOP CATEGORY PILLS vs DROPDOWN ─────────────────────── */
@media(max-width:639px) {
  .shop-cat-pills { display: none !important }
  .shop-cat-dropdown { display: block !important }
}

/* ─── SHOP FILTERS + VIEW MODES ──────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  transition: grid-template-columns .3s ease
}

.shop-layout.sidebar-hidden {
  grid-template-columns: 0px minmax(0, 1fr)
}

.shop-layout.sidebar-hidden .shop-sidebar {
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  border: none;
  min-width: 0
}

.shop-filter-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 10px
}

.shop-filter-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px
}

.shop-filter-list {
  display: flex;
  flex-direction: column;
  gap: 0px
}

.shop-filter-list-scroll {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin
}

.shop-filter-list-scroll::-webkit-scrollbar {
  width: 4px
}

.shop-filter-list-scroll::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px
}

.shop-filter-link {
  display: block;
  padding: 5px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 600
}

.shop-filter-link:hover,
.shop-filter-link.active {
  background: var(--primary-light);
  color: var(--primary)
}

/* Checkbox & radio filter items */
.shop-filter-check,
.shop-filter-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s
}

.shop-filter-check:hover,
.shop-filter-radio:hover {
  background: var(--gray-50, #f9fafb)
}

.shop-filter-check.active,
.shop-filter-radio.active {
  background: var(--primary-light);
  color: var(--primary)
}

.shop-filter-check input,
.shop-filter-radio input {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer
}

/* Range slider */
.range-slider-wrap {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center
}

.range-slider-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gray-200);
  border-radius: 4px;
  top: 50%;
  transform: translateY(-50%)
}

.range-slider-track {
  position: absolute;
  height: 4px;
  background: var(--primary);
  border-radius: 4px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none
}

.range-input {
  position: absolute;
  width: 100%;
  height: 4px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  cursor: pointer;
  pointer-events: all
}

.range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  cursor: pointer;
  pointer-events: all
}

/* Desktop sidebar toggle button */
.shop-sidebar-toggle {
  display: none
}

@media(min-width:768px) {
  .shop-sidebar-toggle {
    display: inline-flex
  }
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap
}

.shop-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.shop-icon-btn {
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-700);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.shop-icon-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #d7d3ff
}

.shop-filter-drawer-toggle {
  display: none
}

.shop-filter-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1198
}

.shop-filter-drawer-overlay.show {
  display: block
}

/* ─── Product list mode ───────────────────────────────────── */
.products-list-mode .product-card {
  flex-direction: row;
  align-items: center
}

.products-list-mode .product-card-img-wrap {
  width: 100px;
  min-width: 100px;
  aspect-ratio: 1/1;
  border-radius: .5rem 0 0 .5rem;
  flex-shrink: 0
}

.products-list-mode .product-card-body {
  flex: 1;
  padding: 10px 14px;
  min-width: 0
}

.products-list-mode .product-card-name {
  font-size: 14px;
  font-weight: 600
}

.products-list-mode .product-card-footer {
  padding-top: 4px
}

.products-list-mode .product-price-wrap {
  flex-direction: row;
  align-items: center;
  gap: 6px
}

.products-list-mode .product-price {
  font-size: 15px
}

.products-list-mode .product-price-old {
  font-size: 12px;
  order: -1
}

.products-list-mode .wishlist-heart {
  position: static !important;
  top: auto !important;
  right: auto !important;
  transform: none;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  display: inline-flex
}

@media(min-width:768px) {
  .products-grid.products-list-mode {
    grid-template-columns: repeat(3, 1fr) !important
  }

  .products-list-mode .product-card-img-wrap {
    width: 90px;
    min-width: 90px
  }

  .products-list-mode .product-card-body {
    padding: 8px 12px
  }

  .products-list-mode .product-card-name {
    font-size: 13px
  }

  .products-list-mode .product-price {
    font-size: 13px
  }
}

@media(max-width:767px) {
  .products-grid.products-list-mode {
    grid-template-columns: 1fr !important;
    gap: 8px !important
  }

  .products-list-mode .product-card-img-wrap {
    width: 80px;
    min-width: 80px
  }

  .products-list-mode .product-card-body {
    padding: 8px 10px
  }

  .products-list-mode .product-card-name {
    font-size: 13px
  }

  .products-list-mode .product-price {
    font-size: 13px
  }
}

@media(max-width:767px) {
  .shop-layout {
    grid-template-columns: 1fr
  }

  .shop-filter-drawer-toggle {
    display: inline-flex
  }

  .shop-sidebar-toggle {
    display: none !important
  }

  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    background: #fff;
    z-index: 1199;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .25s ease;
    padding: 14px
  }

  .shop-sidebar.open {
    transform: translateX(0)
  }
}

/* ─── PRODUCT CARD ─────────────────────────────────────────── */
.product-card {
  background: hsl(210 20% 98%);
  border-radius: .5rem;
  overflow: hidden;
      border: 1px solid hsl(220 13% 87%);
  transition: box-shadow .2s ease, transform .2s ease;
  position: relative;
  display: flex;
  flex-direction: column
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  transform: translateY(-2px)
}

.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--product-img-ratio, 1/1);
  background: var(--gray-100)
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease
}

.product-card:hover .product-card-img {
  transform: scale(1.04)
}

.product-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.badge-sale {
  background: var(--secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px
}

.badge-featured {
  background: var(--accent);
  color: #1a1929;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px
}

.badge-delivery {
  background: linear-gradient(135deg, #fff7d6, #ffefb0);
  color: #7c4a03;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #f8de87
}

.product-card > .wishlist-heart {
  display: none
}

.product-card-body {
  padding: 8px 12px 10px;
  flex: 1;
  display: flex;
  flex-direction: column
}

.product-card-cat {
  font-size: 10px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 4px
}

.product-card-name {
  font-size: 12px;
  font-weight: 500;
  color: #000;
  line-height: 1.4;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block
}

.product-card-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px
}

.attr-pill {
  font-size: 10px;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500
}

.product-card-footer {
  margin-top: auto;
  padding-top: 2px
}

.product-price-wrap {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap
}

.product-price {
  font-family: 'Inter', var(--font);
  font-size: 14px;
  font-weight: 700;
  color: #111
}

.product-price-old {
  display: inline;
  font-size: 11px;
  color: var(--gray-400);
  text-decoration: line-through;
  font-weight: 400
}

.product-card-btn {
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 7px;
  white-space: nowrap;
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  font-weight: 600;
  flex-shrink: 0
}

.product-card-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: none;
  box-shadow: 0 3px 10px var(--primary-glow)
}

@media(max-width:767px) {
  .product-card-btn {
    padding: 5px 15px;
    font-size: 18px;
    min-height: 35px
  }

  .product-card-btn svg {
    width: 20px;
    height: 20px
  }
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px
}

@media(min-width:640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(min-width:1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
  }
}

@media(min-width:1280px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr)
  }
}

/* ─── SECTION TITLES ──────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 8px
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900)
}

.section-title span {
  color: var(--primary)
}

.section-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 4px
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap
}

.section-link:hover {
  text-decoration: underline
}

.section-pad {
  padding: 6px 0
}

@media(min-width:768px) {
  .section-pad {
    padding: 24px 0
  }
}

/* ─── HOMEPAGE SECTION LIST STYLE ────────────────────────── */
.home-section-products.home-layout-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px
}

@media(min-width:640px) {
  .home-section-products.home-layout-list {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(min-width:1024px) {
  .home-section-products.home-layout-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
  }
}

.home-list-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: hsl(210 20% 97%);
  border-radius: 10px;
  padding: 8px 10px;
  position: relative;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  transition: background .18s ease
}

.home-list-card:hover {
  background: hsl(210 20% 94%)
}

.home-list-card-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-200)
}

.home-list-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.home-list-card-info {
  min-width: 0;
  flex: 1;
  overflow: hidden
}

.home-list-card-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-900);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3
}

.home-list-card-name:hover {
  color: var(--primary)
}

.home-list-card-price {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900)
}

/* ─── DISCOVER BY PRICE ───────────────────────────────────── */
.price-cards-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 4px 0 8px
}

.price-cards-row.has-overflow {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none
}

.price-cards-row.has-overflow::-webkit-scrollbar {
  display: none
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--gray-100);
  border-radius: 12px;
  text-decoration: none;
  scroll-snap-align: start;
  transition: background var(--transition), box-shadow var(--transition)
}

.price-cards-row.has-overflow .price-card {
  flex: 0 0 calc((100% - 60px) / 6);
  min-width: 120px
}

.price-card:hover {
  background: var(--gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,.06)
}

.price-card-under {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 2px
}

.price-card-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  white-space: nowrap
}

@media(max-width:767px) {
  .price-cards-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    padding: 4px 0 8px
  }
  .price-cards-row::-webkit-scrollbar { display: none }
  .price-cards-row .price-card {
    flex: 0 0 calc((100% - 20px) / 3);
    min-width: 100px;
    scroll-snap-align: start
  }
  .price-cards-row.has-overflow {
    display: flex
  }
  .price-cards-row.has-overflow .price-card {
    flex: 0 0 calc((100% - 20px) / 3);
    min-width: 100px
  }
  .price-card { padding: 12px 10px }
  .price-card-amount { font-size: 18px }
}

/* ─── HERO SECTION ────────────────────────────────────────── */
.hero-section {
  padding: 16px 0
}

@media(min-width:768px) {
  .hero-section {
    padding: 20px 0
  }
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px
}

@media(min-width:1024px) {
  .hero-layout {
    grid-template-columns: 220px 1fr 220px;
    gap: 20px
  }
}

/* Category sidebar */
.hero-categories {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100)
}

.hero-cat-title {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--gray-100)
}

.hero-cat-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  padding: 8px 0
}

@media(min-width:1024px) {
  .hero-cat-list {
    flex-direction: column
  }
}

.hero-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border-radius: 0
}

.hero-cat-item:hover,
.hero-cat-item.active {
  background: var(--primary-light);
  color: var(--primary)
}

.hero-cat-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0
}

/* Slider */
.hero-slider-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--dark);
  width: 100%;
  min-width: 0;
  min-height: 340px;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none
}

.hero-slider-wrap:active {
  cursor: grabbing
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform .35s ease
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 14, 23, .85) 40%, transparent)
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 36px;
  transform: translateY(-50%);
  color: #fff;
  max-width: 380px
}

.slide-content h2 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px
}

@media(min-width:768px) {
  .slide-content h2 {
    font-size: 32px
  }
}

.slide-content p {
  font-size: 15px;
  opacity: .85;
  margin-bottom: 20px
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: background var(--transition), width var(--transition)
}

.slider-dot.active {
  background: #fff;
  width: 22px;
  border-radius: 999px
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .25);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  border: none
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, .45)
}

@media(max-width:767px) {
  .slider-arrow {
    display: none
  }
}

.slider-prev {
  left: 12px
}

.slider-next {
  right: 12px
}

/* Hero discount cards */
.hero-discounts {
  display: flex;
  flex-direction: column;
  gap: 10px
}

@media(max-width:1023px) {
  .hero-discounts {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px
  }
}

.hero-discount-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  flex-shrink: 0;
  border: 1px solid var(--gray-100)
}

.hero-discount-card:hover {
  box-shadow: var(--shadow);
  transform: translateX(3px);
  border-color: var(--primary-light)
}

.hero-discount-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0
}

.hero-discount-info {
  flex: 1;
  min-width: 0
}

.hero-discount-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.hero-discount-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary)
}

.hero-discount-old {
  font-size: 11px;
  color: var(--gray-400);
  text-decoration: line-through
}

/* ─── CATEGORY ICONS SECTION ─────────────────────────────── */
.cat-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px
}

@media(min-width:640px) {
  .cat-icons-grid {
    grid-template-columns: repeat(5, 1fr)
  }
}

@media(min-width:1024px) {
  .cat-icons-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 16px
  }
}

.cat-icon-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm)
}

.cat-icon-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  background: var(--primary-light)
}

.cat-icon-card:hover .cat-icon-label {
  color: var(--primary)
}

.cat-icon-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  margin: 0 auto 10px
}

.cat-icon-emoji {
  font-size: 36px;
  display: block;
  margin-bottom: 8px
}

.cat-icon-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700)
}

/* ─── PRODUCT TABS ───────────────────────────────────────── */
.product-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 20px
}

.product-tabs-bar::-webkit-scrollbar {
  display: none
}

.tab-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  border-radius: 50px;
  white-space: nowrap;
  transition: all var(--transition)
}

.tab-btn.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow)
}

.tab-btn:hover {
  color: var(--gray-900);
  background: var(--gray-200)
}

.tab-btn.active:hover {
  color: #fff;
  background: var(--primary)
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap
}

.filter-select {
  padding: 7px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--gray-700);
  background: #fff;
  cursor: pointer;
  outline: none
}

.filter-select:focus {
  border-color: var(--primary)
}

.load-more-wrap {
  text-align: center;
  margin-top: 24px
}

.load-more-btn {
  padding: 8px 20px;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition)
}

.load-more-btn:hover {
  background: var(--primary);
  color: #fff
}

.load-more-btn.loading {
  opacity: .6;
  pointer-events: none
}

.filter-actions {
  position: sticky;
  display: flex;
  flex-direction: row;
  gap: 8px;
  bottom: 0;
  background: #fff;
  padding-top: 10px;
  padding-bottom: 4px;
  z-index: 5
}

/* Skeleton card placeholder (for load more / tab switch) */
.skeleton-card-ph {
  pointer-events: none
}

.skeleton-card-ph .product-card-img-wrap {
  position: relative
}

.skeleton-card-ph .product-card-img-wrap .skeleton {
  position: absolute;
  inset: 0;
  border-radius: 0
}

.skeleton-card-ph .product-card-body .skeleton {
  border-radius: 4px
}

/* Card reveal animation */
.card-reveal {
  animation: cardReveal .35s ease both
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ===== BRANDS / PARTNERS SECTION ===== */
.brands-section {
  background: #fff;
  padding-top: 48px;
  padding-bottom: 48px
}

.brands-section .section-title {
  color: #0f172a
}

.brands-track-wrap {
  overflow: hidden;
  position: relative
}

.brands-track {
  display: flex;
  gap: 16px;
  animation: brandsScroll 25s linear infinite;
  width: max-content
}

.brands-track:hover {
  animation-play-state: paused
}

@keyframes brandsScroll {
  0% { transform: translateX(0) }
  100% { transform: translateX(-50%) }
}

.brand-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 80px;
  padding: 16px 24px;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0
}

.brand-logo-item:hover {
  opacity: 1;
  transform: translateY(-2px)
}

.brand-logo-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%
}

.brand-logo-item img {
  max-height: 40px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .5;
  transition: filter .2s, opacity .2s
}

.brand-logo-item:hover img {
  filter: grayscale(0);
  opacity: 1
}

.brand-logo-text {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap
}

@media (max-width: 767px) {
  .brands-track-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none
  }
  .brands-track-wrap::-webkit-scrollbar {
    display: none
  }
  .brands-track {
    animation: none
  }
  .brand-logo-item {
    min-width: 120px;
    padding: 12px 16px;
    height: 60px
  }
  .brand-logo-item img {
    max-height: 30px
  }
}

