@media screen and (max-width: 959px) {
  .featured-collection .grid__item:only-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 959px) {
  .featured-collection .slider.slider--tablet {
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 959px) {
  .featured-collection .slider--tablet.product-grid {
    /* scroll-padding-left: 15px; */
  }
}

.featured-collection__title-group {
  margin-bottom: 20px;
}

.featured-collection__title {
  text-align: center;
  font-weight: 700;
  font-size: 29px;
}

@media screen and (min-width: 960px) {
  .featured-collection__title-group {
    margin-bottom: 40px;
  }
}

.featured-collection__title .title:not(:only-child) {
  margin-bottom: 10px;
}

.featured-collection__title-group {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
  padding-right: 40px;
}

.featured-collection__title-line {
  display: inline-block;
  width: 203px;
  height: 1px;
  background-color: rgb(var(--color-text));
  margin-left: 24px;
}

@media screen and (max-width: 959px) {
  .featured-collection__title-group {
    padding-right: 0;
    justify-content: center;
  }

  .featured-collection__title-line {
    width: 101px;
    margin-left: 12px;
  }
}

.featured-collection__title--ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.featured-collection__tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: nowrap;
  overflow-x: auto;
  align-items: center;
  flex: 1;
  margin-right: 20px;
}

@media screen and (max-width: 959px) {
  .featured-collection__tabs {
    margin-right: 0;
    margin-bottom: 20px;
    /* justify-content: center; */
  }
  .featured-collection__tabs.flex-start {
    justify-content: flex-start;
  }
}

.featured-collection__tabs-item {
  white-space: nowrap;
  cursor: pointer;
  /* opacity: 0.4; */
  text-transform: uppercase;
  padding: 10px 23px;
  background-color: rgb(var(--color-button-background-normal));
  color: rgb(var(--color-button-text-normal));
  border: 1px solid rgb(var(--color-button-border-normal));
  border-radius: var(--color-button-border-radius);
}

@media screen and (max-width: 959px) {
  .featured-collection__tabs-item {
    padding: 5px 10px;
    font-size: 16px;
  }
}

.featured-collection__tabs-item--active {
  opacity: 1;
  background-color: rgb(var(--color-button-background));
  color: rgb(var(--color-button-text));
  /* border-radius: var(--btn-border-radius); */
  border: 1px solid rgb(var(--color-button-border));
}

.featured-collection slide-pagination {
  margin-bottom: 50px;
}

.featured-collection featured-collection-tabs > div {
  align-items: center;
}

.featured-collection__spin {
  position: relative;
  height: 550px;
  width: 100%;
  display: none;
}

@media screen and (max-width: 959px) {
  .featured-collection__spin {
    height: 350px;
  }
}

[data-loading="true"] .featured-collection__slider {
  display: none;
}

[data-loading="true"] .featured-collection__spin {
  display: block;
}

[data-loading="true"] .featured-collection__spin .loading-overlay__spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -20px;
  margin-top: -20px;
  display: flex;
  animation: rotate linear 1.5s infinite;
}

[data-loading="true"]
  .featured-collection__spin
  .loading-overlay__spinner
  .icon {
  width: 40px;
  height: 40px;
}

.featured-collection .collection__view-all a:not(.link) {
  margin-top: 10px;
}

.featured-collection__mb-view-all {
  position: relative;
  display: block;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--color-text), 0.05);
  border-radius: var(--product-card-border-radius);
}

.featured-collection__mb-view-all .mb-view-all__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  position: relative;
  background-color: rgb(var(--color-button-background));
  color: rgb(var(--color-button-text));
  transform: rotate(-90deg);
}

.featured-collection__mb-view-all .mb-view-all__text {
  margin-top: 16px;
  text-align: center;
  color: rgb(var(--color-text));
}

@media screen and (max-width: 959px) {
  .featured-collection .slider__slide {
    scroll-snap-align: end;
  }
}

@media screen and (min-width: 960px) {
  .featured-collection slider-component:not(.page-width) {
    padding: 0;
  }
}

.featured-collection__view-all a:not(.link) {
  margin-top: 10px;
}

.featured-collection .slider {
  overflow-y: hidden;
}

.featured-collection .slider-button {
  border-radius: 2px;
  height: 40px;
  width: 40px;
  color: rgb(var(--color-button-text));
  background-color: rgb(var(--color-button-background));
  position: absolute;
  top: 40%;
  bottom: 100%;
  margin: auto;
}

.featured-collection .slider-button svg {
  width: 18px;
  height: 18px;
}

.featured-collection .slider-button--prev {
  left: 30px;
}

.featured-collection .slider-button--next {
  right: 30px;
}

.featured-collection .slider-button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.featured-collection .slider-button[disabled] .icon {
  color: rgba(var(--color-button-text));
}

@media screen and (max-width: 959px) {
  .featured-collection .slider:not(.slider--mobile) {
    flex-wrap: wrap;
  }
  .featured-collection .slider.slider--mobile {
    margin-bottom: 0;
  }
  .featured-collection .slider--mobile .slider__slide {
    width: calc((200vw - var(--page-padding)) / (2 * var(--mobile-cols) + 1));
  }

  .featured-collection .slider-mobile--full {
    padding-left: 0;
    padding-right: 0;
  }

  .featured-collection .slider--full {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    scroll-padding-left: 0;
    scroll-padding-right: 0;
  }

  .featured-collection .slider--full .slider__slide,
  .featured-collection .slider--full .grid__item {
    padding-left: 0;
    padding-right: 0;
  }
  .featured-collection .slider--full.slider--mobile .slider__slide,
  .featured-collection .slider--full.slider--mobile .grid__item {
    width: calc((100% - (33.3% / var(--mobile-cols))) / var(--mobile-cols));
    flex-grow: 1;
  }

  .featured-collection .slider--full .card .card__content {
    padding: 0 8%;
  }

  .featured-collection .slider--full .card .card__content .card__button {
    left: 0;
  }

  .featured-collection .slider--full .global-product-card-border-shadow,
  .featured-collection .slider--full .card__media {
    border-radius: 0 !important;
  }
  .featured-collection #Slider-swatch .slider__slide {
    width: unset;
  }
  .featured-collection .slider.slider--mobile.columns_mobile-3 .slider__slide {
    width: calc(var(--grid-horizontal-space) + 85px);
  }
}

@media screen and (min-width: 960px) {
  .featured-collection .slider:not(.slider--desktop) {
    flex-wrap: wrap;
  }
  .featured-collection .slider--mobile:not(.slider--desktop) + .slider-buttons {
    display: none;
  }
  .featured-collection .slider--desktop {
    scroll-padding-left: var(--page-padding);
  }
}

/* fix:safari svg  */

.featured-collection .product-card-wrapper .placeholder svg {
  width: 100%;
}

@media screen and (max-width: 959px) {
  .featured-collection__tabs {
    gap: 10px;
  }
}

/* The ipad end responds to the mobile end in vertical screen */

/* @custom-media --tablet (max-width: 959px); */

/* @custom-media --gt-mobile (min-width: 751px); */

/* detectingScreen need to consider the configuration of the tablet */

/* === Featured Collection — make cards same size as reference === */

/* 1) Set a fixed, smaller card width on desktop */
.featured-collection .product-grid .grid__item,
.featured-collection .slider__slide {
    flex: 0 0 340px;
    /* <-- match the second screenshot width (tweak 320–360 if needed) */
    max-width: 340px;
}

/* Give some breathing room between cards */
.featured-collection .product-grid,
.featured-collection .slider {
    gap: 36px 36px;
    /* row/column gap */
    justify-content: flex-start;
}

/* 2) Make the image area tidy and not oversized */
.featured-collection .card .card__media,
.featured-collection .card .card__media .media {
    aspect-ratio: 1 / 1;
    /* square like the reference */
    height: auto;
    max-height: 320px;
    padding: 10px;
    background: transparent;
}

.featured-collection .card .card__media::before {
    content: none !important;
}

.featured-collection .card .card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 3) Optional: hide variant swatch row that shows as white squares */
.featured-collection .card__swatches,
.featured-collection .color-swatches,
.featured-collection .product-form__swatches {
    display: none !important;
}

/* 4) Mobile: two per row, smaller image frame */
@media (max-width: 959px) {

    .featured-collection .product-grid .grid__item,
    .featured-collection .slider__slide {
        flex: 0 ;
        max-width: 48%;
    }

   .card__inner--wrapper,
    .featured-collection .card .card__media,
    .featured-collection .card .card__media .media {
        max-height: 220px ;
        padding: 8px;
    }
}


/* Remove the gray padding and background entirely */
.card__inner.ratio,
.card__media {
    background: transparent !important;
}

/* Make the image fully fill its box */
.card__media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    display: block;
    background: transparent !important;
}

/* Ensure the wrapper doesn’t create extra bottom space */
.card__inner.ratio {
    position: relative;
    padding-bottom: 100% !important;
    /* force square */
    overflow: hidden;
}

/* Heq çdo efekt të inline ratio që zgjeron kutinë */
.card__inner.ratio {
    --ratio-percent: 100% !important;
    /* katror */
    padding-bottom: 0% !important;
    background: transparent !important;
}

/* Siguro që imazhi e mbulon plotësisht kutinë */
.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    background: transparent !important;
    display: block;
}

/* === Ensure Images are Square and Fill Properly === */
@media (max-width: 959px) {

    .featured-collection .product-grid .grid__item,
    .featured-collection .slider__slide {
        flex: 0 0 48%;
        /* Two items per row on mobile */
        max-width: 48%;
        padding-bottom: 0 !important;
        /* Ensure no extra bottom space */
    }

    .featured-collection .card__inner {
        padding-bottom: 0 !important;
        /* Force square aspect ratio */
        overflow: hidden;
    }

    .featured-collection .card__media {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: transparent;
    }

    .featured-collection .card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
        /* Ensure the image covers the container */
    }
}

@media (max-width: 959px) {

    .featured-collection .product-grid,
    .featured-collection .slider {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: space-between;
        /* Ensure even spacing */
        gap: 20px;
        /* Add space between items */
    }

    .featured-collection .product-grid .grid__item,
    .featured-collection .slider__slide {
        flex: 0 0 48%;
        max-width: 48%;
    }
}


/*here*/
/* =========================================
   SwipeRed / Featured Collection layout fix
   - 2 products per row on mobile
   - hide variant options / swatches
   - no title / button overlap
   ========================================= */

/* 1️⃣ Hide variant options / swatches in this section */
.featured-collection .card__swatches,
.featured-collection .color-swatches,
.featured-collection .product-form__swatches,
.featured-collection .product-form__options,
.featured-collection .product-form__option--swatch,
.featured-collection .product-form__variant-swatch,
.featured-collection .product-form__variant-options {
    display: none !important;
}

/* 2️⃣ Make cards a vertical stack so titles never overlap buttons */
.featured-collection .card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.featured-collection .card__inner {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.featured-collection .card__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.featured-collection .card__information {
    flex: 1 1 auto;
}

/* ensure button area sits below the text, not on top of it */
.featured-collection .card__button,
.featured-collection .card__bottom-actions {
    position: static !important;
    margin-top: 8px !important;
}

/* tiny safety margin on titles & prices */
.featured-collection .card__heading,
.featured-collection .card__information .price {
    margin-bottom: 4px !important;
}

/* 3️⃣ MOBILE: show products side-by-side (rows of 2) */
@media (max-width: 767px) {

    /* make the product container a wrapping flex row */
    .featured-collection .slider,
    .featured-collection .product-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between;
        gap: 20px 0;
        /* vertical spacing between rows */
    }

    /* each product card takes ~half the width */
    .featured-collection .slider__slide,
    .featured-collection .product-grid .grid__item {
        flex: 0 0 48% !important;
        max-width: 48% !important;
        box-sizing: border-box;
    }

    /* make sure images don’t force weird extra height */
    .featured-collection .card__inner.ratio {
        height: auto !important;
        padding-bottom: 0 !important;
    }

    .featured-collection .card__media img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block;
    }
}

/* =========================================
   SwipeRed / Featured Collection layout fix
   - hide variant options / swatches
   - prevent title / button overlap
   - 2 products per row up to ~1200px
   ========================================= */

/* 1️⃣ Hide variant options / swatches in this section */
.featured-collection .card__swatches,
.featured-collection .color-swatches,
.featured-collection .product-form__swatches,
.featured-collection .product-form__options,
.featured-collection .product-form__option--swatch,
.featured-collection .product-form__variant-swatch,
.featured-collection .product-form__variant-options {
    display: none !important;
}

/* 2️⃣ Make cards a vertical stack so titles never overlap buttons */
.featured-collection .card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.featured-collection .card__inner {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.featured-collection .card__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.featured-collection .card__information {
    flex: 1 1 auto;
}

/* button area always below the text, not overlaying it */
.featured-collection .card__button,
.featured-collection .card__bottom-actions {
    position: static !important;
    margin-top: 8px !important;
}

/* small safety margin on titles & prices */
.featured-collection .card__heading,
.featured-collection .card__information .price {
    margin-bottom: 4px !important;
}

/* 3️⃣ Up to ~1200px wide: show products si*/
/* Fix grid layout for the SwipeRed Collection page (mid-size screens) */
@media (min-width: 700px) and (max-width: 1500px) {

  /* Turn the collection into a 2-column grid */
  .collection-list,
  .collection-products,
  .collection__grid,
  .product-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px !important;
    justify-items: center;
  }

  /* Keep items nicely sized */
  .product-item,
  .collection-list .product-item,
  .collection-products .product-item,
  .collection__grid .product-item {
    max-width: 350px !important;
    width: 100% !important;
  }
}
/* Fix SwipeRed Collection layout for mid-size screens */
@media (min-width: 700px) and (max-width: 1500px) {

  /* Turn the product list into a 2-column grid */
  .collection-products,
  .collection-list,
  .collection__grid,
  .product-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px !important;
    justify-items: center;
    align-items: start;
  }

  /* Fix product card width */
  .product-item,
  .collection-products .product-item,
  .collection-list .product-item,
  .collection__grid .product-item {
    width: 100% !important;
    max-width: 320px !important;
  }
}
/* -------------------------
   Force 2 products per row
   for SwipeRed Collection
   ------------------------- */
/* ======================================================
   FIX product card box ONLY for 525px–959px screens
   Make box match image, remove white empty space
   ====================================================== */
@media (min-width: 525px) and (max-width: 959px) {

    /* Remove forced ratio that creates large white boxes */
    .featured-collection .card__inner.ratio {
        height: auto !important;
        padding-bottom: 0 !important;
        position: relative !important;
        overflow: hidden !important;
        --ratio-percent: 0 !important;
    }

    /* Remove huge empty area inside media wrapper */
    .featured-collection .card__media,
    .featured-collection .card__media .media {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        background: transparent !important;
        position: relative !important;
        padding: 0 !important;
    }

    /* Make the image size the box naturally */
    .featured-collection .card__media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        display: block !important;
        position: relative !important;
    }

    /* Ensure wrapper does not force extra height */
    .featured-collection .card__inner--wrapper {
        height: 100% !important;
    }
}