/* Główny kontener sekcji polecanych produktów */
.container-recommended-products-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* TO JEST KLUCZ */
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 25px;
  margin: 20px;
  overflow: hidden;
  height: calc(850px - 70px);
}

/* Kontener dla produktów */
.container-recommended-products {
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  width: 100%;
  max-width: 1500px;
  padding-bottom: 20px;
  transition: transform 0.3s ease-in-out;
}

/* Karta produktu - główna */
.container-recommended-products .product-card {
  flex: 0 0 450px;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 20px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ukryte elementy */
.product-card-tablet, .custom-card {
  display: none;
}

/* Stylizacja hot deal */
.hot-deal {
  font-size: 26px;
  line-height: 32px;
  color: rgb(26, 26, 26);
  font-weight: bold;
}

/* Pasek oszczędności */
.savings-box {
  background-color: rgb(110, 110, 110);
  border-radius: 8px;
  padding: 8px 7px;
  font-size: 13px;
  line-height: 16px;
  color: rgb(255, 255, 255);
  font-weight: normal;
  text-decoration: none;
  width: 100px;
  margin-left: auto;
  text-align: center;
}

.savings-text-small {
  font-size: 10px;
  margin-bottom: 5px;
}

.savings-text-large {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 0;
}

/* Kontener obrazu */
.container-recommended-products .image-container {
  margin-top: 10px;
  text-align: center;
}

.container-recommended-products .product-image {
  max-width: 250px;
  height: auto;
  margin: 0 auto;
}

/* Tytuł produktu */
.container-recommended-products .product-title {
  font-size: 22px;
  line-height: 28px;
  color: rgb(26, 26, 26);
  font-weight: normal;
  margin-top: 20px;
  text-align: center;
}

/* Cena */
.container-recommended-products .price {
  margin: 10px 0;
  font-size: 28px;
  line-height: 40px;
  color: rgb(26, 26, 26);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.container-recommended-products .old-price {
  font-size: 13px;
  color: #999;
  margin-bottom: 5px;
  text-align: center;
}

/* Informacje o dostępności */
.remaining {
  font-size: 14px;
  margin: 15px 0;
  line-height: 20px;
  font-weight: normal;
  text-decoration: none;
  color: rgb(68, 68, 68);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remaining p {
  margin: 0;
}

.remaining p:first-child {
  margin-right: auto;
}

.remaining-number, .sold-number {
  font-weight: bold;
}

/* Pasek postępu */
.container-recommended-products .progress-container {
  height: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  background-color: rgb(221, 221, 221);
  width: 100%;
  overflow: hidden;
}

.container-recommended-products .progress-bar {
  height: 100%;
  border-radius: 8px;
  background-image: linear-gradient(to right, rgb(15, 210, 255), transparent), 
                    linear-gradient(rgb(0, 130, 250), rgb(0, 130, 250));
  width: 0%;
  transition: width 0.5s ease;
}

/* Termin */
.container-recommended-products .deadline {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 20px;
  color: rgb(26, 26, 26);
  font-weight: normal;
  text-align: center;
}

/* Licznik czasu */
.container-recommended-products .countdown-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container-recommended-products .countdown-numbers {
  display: flex;
  align-items: center;
}

.container-recommended-products .countdown span {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: rgb(221, 221, 221);
  font-family: monospace;
  font-size: 24px;
  font-weight: normal;
  margin: 0 2px;
}

.container-recommended-products .countdown .colon {
  font-weight: bold;
  background-color: transparent;
  font-size: 24px;
  padding: 0 5px;
  border: none;
  width: auto;
  height: auto;
}

.container-recommended-products .countdown-labels {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.container-recommended-products .countdown-labels p {
  font-size: 12px;
  margin: 0 30px;
}

/* KARUZELA - GŁÓWNE STYLE */
.carousel-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  width: 70%;
  overflow: visible;
}

.recommended-product-section {
  display: flex;
  gap: 15px;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 80px 40px 80px;
  align-items: flex-start;
  scrollbar-width: none;
  min-height: 750px;
  scroll-padding-left: 80px;
  scroll-padding-right: 80px;
}



.recommended-product-section::-webkit-scrollbar {
  display: none;
}

/* KARTA PRODUKTU W KARUZELI */

.recommended-product-item {
    flex: 0 0 300px;
    height: 570px;
    box-sizing: border-box;
    border-radius: 8px;
    padding: 0; /* USUŃ PADDING Z KARTY */
    background-color: white;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
    cursor: pointer;
    margin-top: 10px;
}


.recommended-product-item .label-container,
.recommended-product-item .image-container,
.recommended-product-item .recommended-product-info {
    padding: 0 16px; /* padding po bokach */
}

.recommended-product-item .label-container {
    padding-top: 16px; /* padding tylko u góry */
}

.recommended-product-item .recommended-product-info {
    padding-bottom: 16px; /* padding tylko na dole */
}



.recommended-product-item-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tytuł sekcji */
.wrapper-recommended-title {
  text-align: left;
  margin-top: 40px;
  margin-left: 40px;
}

.recommended-product-section-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  letter-spacing: 1px;
}

/* EFEKT HOVER - PRZYWRÓCONY ORYGINALNY */
.recommended-product-item:hover {
  transform: scale(1.05);
  box-shadow: 0 32px 34px rgba(0, 0, 0, 0.14);
  z-index: 10;
  transform-origin: center center;
}

/* Etykieta darmowej dostawy */
.recommended-product-item .free-shipping-label {
  background-color: #02b875;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
  text-align: center;
  width: fit-content;
  max-width: 130px;
  white-space: nowrap;
}

/* Informacje o produkcie */
.recommended-product-info {
  margin-top: 10px;
  transition: margin-top 0.3s ease;
  text-align: left;
}

.sku {
  color: #4a5568;
  font-size: 0.875rem;
  margin: 3px 0;
}

.recommended-product-title {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  margin: 3px 0;
  color: #000;
}




.line-recommended-product {
    height: 1px;
    background-color: rgb(224, 224, 224);
    width: 100%;
    box-sizing: border-box;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    margin: 10px -16px;
    width: calc(100% + 32px);
}



.product-title-link:hover {
    text-decoration: underline !important;
    color: #333;
}


.recommended-price {
  font-size: 1.05rem;
  font-weight: bold;
  color: #000;
  margin-top: 10px;
}

/* Dostępność */
.availability-container {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #02816f;
  padding-top: 8px;
}

.availability-label {
  color: #6c757d;
  font-weight: normal;
  margin-right: 5px;
  font-size: 0.875rem;
}

.check-icon {
  margin-right: 5px;
  flex-shrink: 0;
}

.availability-text {
  color: #02816f;
  font-weight: bold;
  font-size: 14px;
}

/* Informacje o wysyłce */
.shipping-info {
  background-color: #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #6c757d;
  border-radius: 9999px;
  margin-top: 10px;
  width: 90%;
}

.shipping-icon {
  width: 18.52px;
  height: 14px;
  opacity: 0.7;
}

/* Przycisk dodaj do koszyka */
.add-to-cart-button-rec {
  background: linear-gradient(to right, #0d3c55, #00b894);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
  width: 93%;
  display: none;
}

.recommended-product-item:hover .add-to-cart-button-rec {
  display: block;
}

/* Slider obrazów */
.image-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
  margin-top: 30px;
}

.recommended-product-item .image-container {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.recommended-product-item .recommended-product-image {
  width: 100%;
  max-width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

/* Strzałki slidera */
.prev-arrow, .next-arrow, .thumbnails {
  display: none;
}

.recommended-product-item:hover .prev-arrow,
.recommended-product-item:hover .next-arrow,
.recommended-product-item:hover .thumbnails {
  display: flex;
}

.prev-arrow, .next-arrow {
  background-color: rgba(0, 0, 0, 0.1);
  border: none;
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.recommended-product-item:hover .prev-arrow,
.recommended-product-item:hover .next-arrow {
  display: flex;
}

.prev-arrow {
  right: -8px;
}

.next-arrow {
  left: -8px;
}

.prev-arrow:hover, .next-arrow:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Miniatury */
.thumbnails {
  display: flex;
  justify-content: flex-start;
  gap: 5px;
  margin-top: 10px;
  overflow-x: scroll;
  white-space: nowrap;
  scrollbar-width: none;
  display: none;
}

.thumbnails:hover {
  display: flex;
}

.thumbnails::-webkit-scrollbar {
  display: none;
}

.thumbnail {
  width: 50px;
  height: 50px;
  border: 1px solid #ddd;
  cursor: pointer;
  object-fit: cover;
  flex-shrink: 0;
}

.thumbnail:hover {
  border-color: #02816f;
}

/* Strzałki karuzeli */
.carousel-arrow-left,
.carousel-arrow-right {
  position: absolute;
  top: 40%;
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  color: #333;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-arrow-left {
  left: 20px;
}

.carousel-arrow-right {
  right: 20px;
}

.carousel-arrow-left:hover,
.carousel-arrow-right:hover {
  background-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* KROPKI WSKAŹNIKÓW - MOBILNE */
.carousel-dots-wrapper {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px 20px 10px;
  margin-top: 10px;
  position: relative;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-dot:hover {
  background: #9ca3af;
  transform: scale(1.1);
}

.carousel-dot.active {
  width: 24px;
  height: 8px;
  border-radius: 4px;
  background: #f8f8f8;
  border: 1px solid #e5e7eb;
}

.carousel-dot.active:hover {
  background: #f5f5f5;
}

/* Karty z przyciemnieniem */
.recommended-product-item.dimmed {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

/* MEDIA QUERIES - RESPONSYWNE */

/* Ekrany do 1600px */
@media (max-width: 1600px) {


  .carousel-container {
    width: 70%;
  }
  
  .recommended-product-item {
    flex: 0 0 40% !important;
  }

  .recommended-product-item .recommended-product-image {
    max-width: 180px;
  }

  .container-recommended-products {
    gap: 20px;
  }

  .container-recommended-products .product-card {
    flex: 0 0 400px;
    padding: 15px;
  }


}

/* Ekrany do 1260px */
@media (max-width: 1260px) {
  .carousel-container {
    width: calc(100% - 20px);
    overflow: hidden;
  }

  .carousel-arrow-left {
    left: 0;
  }

  .carousel-arrow-right {
    right: 15px;
  }


    
  .recommended-product-item {
    flex: 0 0 60% !important;
  }



  .recommended-product-section {
    gap: 20px;
  }

  .container-recommended-products .product-card {
    flex: 0 0 420px;
  }
}



/* PRZEŁĄCZENIE NA UKŁAD PIONOWY PONIŻEJ 992px */
@media (max-width: 1024px) {
  .container-recommended-products-wrapper {
    height: auto;
    padding: 10px;
    min-height: auto;
    flex-direction: column;
  }

  .container-recommended-products {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .container-recommended-products .product-card {
    flex: none;
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
  }

  .recommended-product-section {
    min-height: 550px;
    padding: 10px 20px 20px;
    gap: 15px;
  }

  .product-card-tablet {
    display: block;
    margin: 20px auto;
    width: 100%;
    max-width: 600px;
  }

  .bordered__tab {
    width: 100%;
    display: flex;
    padding: 20px;
  }

  .column {
    width: 50%;
  }

  .left-column {
    padding-right: 10px;
  }

  .right-column {
    padding-left: 10px;
    margin-top: 20px;
  }

  .product-card-tablet .product-title {
    font-size: 22px;
    line-height: 28px;
    color: rgb(26, 26, 26);
    font-weight: normal;
    margin-top: 20px;
    text-align: center;
  }

  .product-card-tablet .product-image {
    max-width: 253px;
    height: auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .wrapper-recommended-title {
    margin-top: 0 !important;
    margin-bottom: 10px;
  }

  .recommended-product-item {
    margin-top: 0 !important;
  }

  /* Wyłączenie efektów hover na tablecie */
  .recommended-product-item:hover .prev-arrow,
  .recommended-product-item:hover .next-arrow,
  .recommended-product-item:hover .thumbnails {
    display: none;
  }

  .add-to-cart-button-rec {
    display: block;
    width: 100%;
  }

  .recommended-product-item:hover {
    transform: none;
    box-shadow: none;
  }

  .carousel-arrow-left {
    left: 0;
  }


  .hotdeal-tablet-savings-text-large
  {
    text-align: center;
  }
}

/* Telefony */
@media (max-width: 768px) {
  .container-recommended-products-wrapper {
    padding: 0;
  }

  .container-recommended-products .product-card {
    flex: 0 0 510px;
    max-width: 100%;
    padding: 15px;
    display: block;
    margin: 0 auto;
    min-width: 400px;
    margin-top: 20px;
  }

  .product-card-tablet {
    display: none;
  }

  .carousel-container {
    max-width: 100%;
    overflow: visible;
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
  }

  .recommended-product-section {
    display: flex;
    gap: 12px;
    padding: 16px 0 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    min-height: auto;
  }

  /* Spacery dla centrowania pierwszej i ostatniej karty */
  .recommended-product-section::before,
  .recommended-product-section::after {
    content: '';
    flex: 0 0 calc(7.5% + 8px);
    display: block;
  }

  .recommended-product-item {
    flex: 0 0 calc(85% - 16px) !important;
    max-width: calc(85% - 16px) !important;
    min-width: auto;
    height: auto;
    margin-left: 0;
    margin-right: 0;
    scroll-snap-align: center;
  }

  .recommended-product-item .recommended-product-image {
    max-width: 100%;
    height: 170px;
  }

  .wrapper-recommended-title {
    text-align: center;
    margin-top: 40px !important;
    margin-left: 0;
  }

  /* Ukryj strzałki na telefonach */
  .carousel-arrow-left,
  .carousel-arrow-right {
    display: none !important;
  }

  /* Pokaż kropki na telefonach */
  .carousel-dots {
    display: flex !important;
    margin: 5px;
  }

}

/* Małe telefony */
@media (max-width: 576px) {
  .recommended-product-item {
    flex: 0 0 calc(88% - 16px) !important;
    max-width: calc(88% - 16px) !important;
  }

  .recommended-product-section::before,
  .recommended-product-section::after {
    flex: 0 0 calc(6% + 8px);
    width: calc(6% + 8px);
  }

  .carousel-dots {
    padding: 6px 12px;
    gap: 8px;
  }

  .carousel-dot {
    width: 5px;
    height: 5px;
  }

  .carousel-dot.active {
    width: 18px;
    height: 5px;
    border-radius: 2.5px;
  }
}

@media (max-width: 460px) {
  .container-recommended-products .product-card {
    flex: 0 0 450px;
    max-width: 100%;
    padding: 15px;
    display: block;
    margin: 0 auto;
    min-width: 370px;
  }

  .recommended-product-section-title {
    font-size: 20px;
  }

  .recommended-product-item {
    flex: 0 0 calc(90% - 16px) !important;
    max-width: calc(90% - 16px) !important;
  }

  .recommended-product-section::before,
  .recommended-product-section::after {
    flex: 0 0 calc(5% + 8px);
    width: calc(5% + 8px);
  }
}

@media (max-width: 356px) {
  .container-recommended-products .product-card {
    flex: 0 0 450px;
    max-width: 100%;
    padding: 15px;
    display: block;
    margin: 0 auto;
    min-width: 320px;
  }

  .shipping-info {
    font-size: 11px;
  }

  .container-recommended-products .countdown span {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .recommended-product-item {
    flex: 0 0 calc(92% - 16px) !important;
    max-width: calc(92% - 16px) !important;
  }

  .recommended-product-section::before,
  .recommended-product-section::after {
    flex: 0 0 calc(4% + 8px);
    width: calc(4% + 8px);
  }

  .carousel-dots {
    padding: 6px 10px;
    gap: 6px;
  }
}

/* Minimalistyczny akcent dla kropek */
.carousel-dots-wrapper::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(77 77 77 / 30%), transparent);
  border-radius: 1px;
}