/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
*
* @author    PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*/

/* ==========================================================================
   DES Top Sellers by Category Ã¢â‚¬â€ front.css
   Breakpoint: 992px (desktop Ã¢â€°Â¥ 992px, mobile < 992px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section wrapper
   -------------------------------------------------------------------------- */
.destopsellersbycategory {
  padding: 25px 20px;
  background-color: #ede7d6;
  overflow: hidden;
  border-radius: 34px;
}
.destopsellersbycategory__nav {
  position: absolute;
}
.destopsellersbycategory__nav--prev {
  left: 0px;
}
.destopsellersbycategory__nav--next {
  right: 0px;
}
/* --------------------------------------------------------------------------
   Header (subtitle + title)
   -------------------------------------------------------------------------- */
.destopsellersbycategory__header {
  text-align: center;
  margin-bottom: 20px;
  padding: 0 16px;
}

.destopsellersbycategory__subtitle {
  font-size: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #8947a5;
  font-weight: 400;
}

.destopsellersbycategory__title {
  font-family: Nunito;
  font-size: 30px;
  font-weight: 700;
  color: #4c1e4f;
}

/* --------------------------------------------------------------------------
   Slider layout
   -------------------------------------------------------------------------- */
.destopsellersbycategory__slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.destopsellersbycategory__track-wrapper {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.destopsellersbycategory__track {
  display: flex;
  gap: 20px;
  will-change: transform;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Navigation arrows
   -------------------------------------------------------------------------- */
.destopsellersbycategory__nav {
  flex-shrink: 0;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  color: #9b5fc0;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
  z-index: 2;
  padding: 0;
}

.destopsellersbycategory__nav:hover {
  background-color: #9b5fc0;
  color: #ffffff;
}

.destopsellersbycategory__nav:disabled,
.destopsellersbycategory__nav[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Product card Ã¢â‚¬â€ .product-miniature
   -------------------------------------------------------------------------- */
.destopsellersbycategory .product-miniature {
  flex: 0 0 230px;
  width: 225px;
  background: #ffffff;
  border: 1px solid #eaeaeb;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow 0.2s ease;
}

/* --------------------------------------------------------------------------
   Product image
   -------------------------------------------------------------------------- */
.destopsellersbycategory .product-miniature__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: #f9f9f9;
}

.destopsellersbycategory .product-miniature__image a {
  display: block;
  width: 100%;
  height: 100%;
}

.destopsellersbycategory .product-miniature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.destopsellersbycategory .product-miniature__image:hover img {
  transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   Card content area
   -------------------------------------------------------------------------- */
.destopsellersbycategory .product-miniature-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Product info block
   -------------------------------------------------------------------------- */
.destopsellersbycategory .product-miniature__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* Name */
.destopsellersbycategory .product-miniature__name-link {
  text-decoration: none;
  color: inherit;
}

.destopsellersbycategory .product-miniature__name {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #1a1a1a;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.destopsellersbycategory
  .product-miniature__name-link:hover
  .product-miniature__name {
  color: #9b5fc0;
}

/* --------------------------------------------------------------------------
   Price block
   -------------------------------------------------------------------------- */
.destopsellersbycategory .product-miniature__price-container {
  display: flex;
  flex-direction: row;
  gap: 2px;
  justify-content: space-between;
  align-items: start;
  margin-top: 10px;
}

.destopsellersbycategory .product-miniature__price {
  display: flex;
  flex-direction: column;
  align-items: start;
  flex-wrap: wrap;
  gap: 0px;
}

/* Current / sale price */
.destopsellersbycategory .product-miniature__price--current {
  font-size: 24px;
  font-weight: 700;
  line-height: 40px;
  color: #47214c;
}

/* Original price (struck through) */
.destopsellersbycategory .product-miniature__price--regular {
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  color: #d4b4ea;
  text-decoration: line-through;
}

/* Discount badge */
.destopsellersbycategory .product-miniature__discount-percentage {
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #ffffff;
  background-color: #c98ca7;
  border-radius: 20px;
  padding: 2px 7px;
  margin-top: 7px;
}

/* Price without tax */
.destopsellersbycategory .product-miniature__price--no-tax {
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #a3a3a3;
  flex-wrap: nowrap;
}

/* --------------------------------------------------------------------------
   Add-to-cart button
   -------------------------------------------------------------------------- */
.destopsellersbycategory .product-miniature__buttons {
  margin-top: auto;
}

.destopsellersbycategory .btn-add-to-cart {
  width: 100%;
  background-color: #47214c;
  color: #f4d3e2;
  border: none;
  border-radius: 27px;
  padding: 5px 27px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease;
  text-decoration: none;
}
.destopsellersbycategory .btn-add-to-cart:active {
  background-color: #3a1840;
}

.destopsellersbycategory .btn-add-to-cart svg {
  flex-shrink: 0;
  fill: #f4d3e2;
  width: 16px;
}
.destopsellersbycategory .btn-add-to-cart--disabled svg {
  fill: #3a1840;
}

/* --------------------------------------------------------------------------
   Out-of-stock / unavailable state
   -------------------------------------------------------------------------- */
.destopsellersbycategory .btn-add-to-cart--disabled,
.destopsellersbycategory .btn-add-to-cart[disabled] {
  background-color: #d4d4d4;
  color: #47214c;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Mobile Ã¢â‚¬â€ max-width: 991px
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .destopsellersbycategory {
    padding: 36px 0 44px;
    background-color: #fff;
  }

  .destopsellersbycategory__title {
    font-size: 24px;
  }

  .destopsellersbycategory__slider {
    padding: 0 8px;
    gap: 4px;
  }

  .destopsellersbycategory__nav {
    width: 36px;
    height: 36px;
  }

  .destopsellersbycategory__nav svg {
    width: 8px;
    height: 14px;
  }

  .destopsellersbycategory__track {
    gap: 12px;
  }

  .destopsellersbycategory .product-miniature-content {
    padding: 12px;
  }
}
