/* =========================================
   Strudle Products Carousel — Elementor Widget
   odwzorowanie sekcji .bestsellers z paczki HTML
========================================= */

.sos-products-carousel-widget {
  --navy: #101E39;
  --gold: #C69A55;
  --ecru: #FAF9F6;
  --product-gap: 24px;
  background: var(--ecru);
  padding: 52px 0 0px;
  overflow: hidden;
}

.sos-products-carousel-widget,
.sos-products-carousel-widget * {
  box-sizing: border-box;
}

.sos-products-carousel-widget > .container,
.sos-products-carousel-widget .container {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.sos-products-carousel-widget .best-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.sos-products-carousel-widget .best-head .center {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.sos-products-carousel-widget .section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: "Lato", Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .30em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.sos-products-carousel-widget .section-title {
  margin: 0;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.022em;
  text-align: center;
}

.sos-products-carousel-widget .sos-separator-img,
.sos-products-carousel-widget .ornament-line {
  margin: 18px auto 0 !important;
  padding: 0 !important;
}

.sos-products-carousel-widget .section-note {
  max-width: 920px;
  margin: 18px auto 0;
  text-align: center;
  color: #5d6473;
  font-family: "Lato", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.sos-products-carousel-widget .section-note p {
  margin: 0 0 0.55em;
}

.sos-products-carousel-widget .section-note p:last-child {
  margin-bottom: 0;
}

.sos-products-carousel-widget .section-note strong,
.sos-products-carousel-widget .section-note .semibold {
  font-weight: 700;
  color: #40495b;
}

.sos-products-carousel-widget .products-row {
  --visible-products-current: var(--visible-products, 3);
  position: relative;
  margin-top: 0;
}

.sos-products-carousel-widget .products-viewport {
  overflow: hidden;
  width: 100%;
}

.sos-products-carousel-widget .products-track {
  display: flex;
  gap: var(--product-gap);
  transition: transform .65s ease;
  will-change: transform;
}

.sos-products-carousel-widget .product {
  flex: 0 0 calc((100% - (var(--product-gap) * (var(--visible-products-current) - 1))) / var(--visible-products-current));
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(17, 28, 53, .13);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(17, 28, 53, .05);
}

.sos-products-carousel-widget .product-img {
  height: 280px;
  position: relative;
  overflow: hidden;
  display: block;
  background: #fff;
  padding: 56px 18px 18px;
  box-sizing: border-box;
  text-decoration: none;
}

.sos-products-carousel-widget .product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform .5s ease;
  transform-origin: center;
  will-change: transform;
}

.sos-products-carousel-widget .product:hover .product-img img,
.sos-products-carousel-widget .product:focus-within .product-img img {
  transform: scale(1.15);
}

.sos-products-carousel-widget .badge {
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 24px;
  padding: 7px 10px;
  background: rgba(226, 197, 139, .96);
  color: var(--navy);
  border: 1px solid rgba(198, 154, 85, .22);
  border-top: 0;
  border-radius: 0 0 2px 2px;
  box-shadow: 0 6px 18px rgba(161, 133, 72, .12);
  font-family: "Lato", Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sos-products-carousel-widget .product-body {
  padding: 18px 18px 20px;
  padding-top:0px!important;
}

.sos-products-carousel-widget .product-kind {
  display: block;
  margin-bottom: 7px;
  color: #7b8190;
  font-family: "Lato", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.sos-products-carousel-widget .product-title,
.sos-products-carousel-widget .product-title a {
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  line-height: 1.26;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
  text-decoration: none;
}

.sos-products-carousel-widget .product-title {
  min-height: 60px;
}

.sos-products-carousel-widget .product-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sos-products-carousel-widget .price {
  margin: 0;
  color: var(--navy);
  font-family: "Lato", Arial, sans-serif;
  font-weight: 900;
  font-size: 19px;
  line-height: 1.1;
  flex: 0 0 auto;
}

.sos-products-carousel-widget .price .amount,
.sos-products-carousel-widget .price bdi {
  color: inherit;
  font: inherit;
}

.sos-products-carousel-widget .product-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: "Lato", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  flex: 0 0 auto;
}

.sos-products-carousel-widget .product-order-btn:hover,
.sos-products-carousel-widget .product-order-btn:focus {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.sos-products-carousel-widget .sos-products-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 1px solid rgba(17, 28, 53, .24);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--navy);
  z-index: 2;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.sos-products-carousel-widget .sos-products-carousel-nav--prev {
  left: -43px;
}

.sos-products-carousel-widget .sos-products-carousel-nav--next {
  right: -43px;
}

.sos-products-carousel-widget .sos-products-carousel-nav:hover,
.sos-products-carousel-widget .sos-products-carousel-nav:focus {
  border-color: var(--gold);
  color: var(--gold);
}


/* Unikalne strzałki widgetu — nie używamy ogólnej klasy .arrow */
.sos-products-carousel-widget .sos-products-carousel-nav {
  appearance: none;
  -webkit-appearance: none;
  font-family: Arial, sans-serif;
  text-decoration: none;
}

.sos-products-carousel-widget .bestsellers-actions {
  margin-top: 30px;
  text-align: center;
}

.sos-products-carousel-widget .btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Lato", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.sos-products-carousel-widget .btn.primary:hover,
.sos-products-carousel-widget .btn.primary:focus {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

@media (max-width: 1100px) {
  .sos-products-carousel-widget .products-row {
    --visible-products-current: var(--visible-products-tablet, 2);
  }

  .sos-products-carousel-widget .sos-products-carousel-nav--prev {
    left: -16px;
  }

  .sos-products-carousel-widget .sos-products-carousel-nav--next {
    right: -16px;
  }
}

@media (max-width: 767px) {
  .sos-products-carousel-widget {
    padding: 42px 0 48px;
  }

  .sos-products-carousel-widget > .container,
  .sos-products-carousel-widget .container {
    width: min(100% - 32px, 420px);
  }

  .sos-products-carousel-widget .section-title {
    font-size: 34px;
  }

  .sos-products-carousel-widget .section-note {
    font-size: 15px;
    line-height: 1.65;
  }

  .sos-products-carousel-widget .products-row {
    --visible-products-current: var(--visible-products-mobile, 1);
  }

  .sos-products-carousel-widget .product-img {
    height: 270px;
  }

  .sos-products-carousel-widget .sos-products-carousel-nav {
    width: 34px;
    height: 34px;
  }

  .sos-products-carousel-widget .sos-products-carousel-nav--prev {
    left: -12px;
  }

  .sos-products-carousel-widget .sos-products-carousel-nav--next {
    right: -12px;
  }

  .sos-products-carousel-widget .product-title,
  .sos-products-carousel-widget .product-title a {
    font-size: 19px;
  }

  .sos-products-carousel-widget .product-footer {
    gap: 10px;
  }

  .sos-products-carousel-widget .product-order-btn {
    padding: 0 16px;
  }
}

/* Tryb tylko slider/grid produktów — nagłówek, opis i separator można zrobić osobno w Elementorze */
.sos-products-carousel-widget.sos-products-carousel-widget--products-only {
  background: transparent;
  padding-top: 0;
}

.sos-products-carousel-widget.sos-products-carousel-widget--products-only .products-row {
  margin-top: 24px;
}

/*.sos-products-carousel-widget.sos-products-carousel-widget--products-only > .container,
.sos-products-carousel-widget.sos-products-carousel-widget--products-only .container {
  width: min(1290px, calc(100% - 48px));
}*/

/* =========================================
   HOME PRODUCT CAROUSEL — ARROWS 1:1 STYLE
========================================= */

body.home .sos-products-carousel-widget .sos-products-carousel-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  border: 1px solid rgba(198, 154, 85, .55) !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: none !important;

  font-size: 0 !important;
  line-height: 1 !important;
  color: #101E39 !important;

  cursor: pointer !important;
  z-index: 30 !important;
}

body.home .sos-products-carousel-widget .sos-products-carousel-nav--prev {
  left: -43px !important;
}

body.home .sos-products-carousel-widget .sos-products-carousel-nav--next {
  right: -43px !important;
}

/* strzałka rysowana CSS-em, bez fontu */
body.home .sos-products-carousel-widget .sos-products-carousel-nav::before {
  content: "" !important;
  display: block !important;

  width: 8px !important;
  height: 8px !important;

  border-top: 2px solid #101E39 !important;
  border-right: 2px solid #101E39 !important;

  margin: 0 !important;
  padding: 0 !important;
}

body.home .sos-products-carousel-widget .sos-products-carousel-nav--prev::before {
  transform: rotate(-135deg) !important;
  margin-left: 3px !important;
}

body.home .sos-products-carousel-widget .sos-products-carousel-nav--next::before {
  transform: rotate(45deg) !important;
  margin-right: 3px !important;
}

body.home .sos-products-carousel-widget .sos-products-carousel-nav:hover {
  border-color: #C69A55 !important;
  background: #fff !important;
}

body.home .sos-products-carousel-widget .sos-products-carousel-nav:hover::before {
  border-color: #C69A55 !important;
}
