/* ============================================================
   SARACEN PRODUCTS — luxusni reskin produktoveho karuselu
   STRATEGIE: JS prepise vnitrek karet na nas vlastni markup
              (.saracen-pc), takze nebojujeme se Shoptet CSS.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');

/* ============================================================
   1) WRAPPER SEKCE — full-bleed cely viewport
   ============================================================ */
.saracen-products {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  background:
    radial-gradient(ellipse at top, rgba(34, 72, 139, 0.18) 0%, transparent 65%),
    linear-gradient(180deg, #04132E 0%, #061B41 50%, #04132E 100%);
  padding: 100px 0;
  color: #F5F1EA;
  font-family: 'Montserrat', Arial, sans-serif;
  overflow-x: clip;
  overflow-y: visible;
}

.saracen-products,
.saracen-products *,
.saracen-products *::before,
.saracen-products *::after {
  box-sizing: border-box;
}

.saracen-products__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 56px;
  position: relative;
}

/* Odstranit bilou mezeru nad sekci (margin z predchoziho Shoptet elementu) */
.benefitBanner.position--benefitHomepage {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ============================================================
   2) INTRO — eyebrow + nadpis + divider
   ============================================================ */
.saracen-products__intro {
  text-align: center;
  margin-bottom: 64px;
}

.saracen-products__eyebrow {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #C21D2A;
  margin-bottom: 24px;
}

.saracen-products .homepage-group-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(36px, 4.2vw, 56px) !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.08 !important;
  letter-spacing: -0.5px !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
  color: #ffffff !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
  text-transform: none !important;
}

/* Odstranit Shoptet ::before / ::after dekorace na nadpisu (podtrzeni atd.) */
.saracen-products .homepage-group-title::before,
.saracen-products .homepage-group-title::after,
.saracen-products .h4::before,
.saracen-products .h4::after {
  display: none !important;
  content: none !important;
  background: none !important;
  border: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.saracen-products__divider {
  width: 56px;
  height: 2px;
  background: #C21D2A;
  margin: 0 auto;
}

/* ============================================================
   3) KARUSEL — neutralizovat Shoptet styly na .product/.p
   (Karty rebuild-uje JS dovnitr .product, vse ostatni vypnout)
   ============================================================ */
.saracen-products__carousel {
  position: relative;
}

.saracen-products .slick-list {
  margin: 0 -10px;
  padding: 12px 0;
  overflow: hidden;
}

.saracen-products .slick-slide {
  height: auto;
  padding: 0 10px;
}
.saracen-products .slick-slide > div {
  height: 100%;
}
.saracen-products .product {
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Schovat zbytky puvodniho Shoptet markup (kdyby JS nestihl rebuild) */
.saracen-products .product > .p:not(.saracen-pc-host) > *:not(.saracen-pc) {
  display: none;
}

/* ============================================================
   4) NOVA KARTA — vlastni markup .saracen-pc
   ============================================================ */
.saracen-pc {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(245, 241, 234, 0.1);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.saracen-pc:hover {
  border-color: rgba(194, 29, 42, 0.5);
  transform: translateY(-6px);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%);
}

/* ---------- Obrazek (velky, dominantni) ---------- */
.saracen-pc__media {
  position: relative;
  display: block;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
}

.saracen-pc__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.saracen-pc:hover .saracen-pc__media img {
  transform: scale(1.05);
}

/* ---------- Flags / badge labely (top-left overlay) ---------- */
.saracen-pc__flags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 2;
  max-width: calc(100% - 24px);
}

.saracen-pc__flag {
  display: inline-block;
  background: rgba(6, 27, 65, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(245, 241, 234, 0.25);
  color: rgba(245, 241, 234, 0.92);
  padding: 4px 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.4;
}

.saracen-pc__flag--premium {
  border-color: rgba(194, 29, 42, 0.6);
  color: #C21D2A;
}

/* ---------- Telo karty ---------- */
.saracen-pc__body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* ---------- Nazev (viditelny okamzite, ne hover) ---------- */
.saracen-pc__name {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.saracen-pc__name a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.saracen-pc__name a:hover {
  color: #C21D2A;
}

/* ---------- Hodnoceni (cervene hvezdy) ---------- */
.saracen-pc__rating {
  font-size: 13px;
  color: #C21D2A;
  letter-spacing: 2px;
  line-height: 1;
}

/* ---------- Dostupnost ---------- */
.saracen-pc__avail {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.55);
}
.saracen-pc__avail-label {
  color: #C21D2A;
  font-weight: 600;
}

/* ---------- Cena ---------- */
.saracen-pc__price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-top: auto;
  padding-top: 6px;
  line-height: 1;
}
.saracen-pc__price-from {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.5);
  margin-right: 4px;
}

/* ---------- CTA tlacitko (Detail / Do kosiku) ---------- */
.saracen-pc__cta-slot {
  margin-top: 6px;
}

.saracen-pc__btn {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 11px 38px 11px 22px;
  margin-right: 22px;
  background: transparent;
  color: #ffffff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  z-index: 1;
  transition: filter 0.2s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  line-height: 1.2;
}
.saracen-pc__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #C21D2A;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  z-index: -1;
}
.saracen-pc__btn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -22px;
  width: 32px;
  background: #C21D2A;
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  z-index: -1;
}
.saracen-pc__btn:hover {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4)) brightness(1.1);
  color: #ffffff;
  text-decoration: none;
}

/* Pokud je v slotu cart form se submit buttonem, stylujeme stejne */
.saracen-pc__cta-slot form {
  margin: 0;
  padding: 0;
}
.saracen-pc__cta-slot button[type="submit"] {
  /* Reset Shoptet stylu */
  all: unset;
  /* Aplikovat saracen-pc__btn pres direct styling */
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 11px 38px 11px 22px;
  margin-right: 22px;
  color: #ffffff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 1;
  transition: filter 0.2s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  line-height: 1.2;
}
.saracen-pc__cta-slot button[type="submit"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #C21D2A;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  z-index: -1;
}
.saracen-pc__cta-slot button[type="submit"]::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -22px;
  width: 32px;
  background: #C21D2A;
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  z-index: -1;
}
.saracen-pc__cta-slot button[type="submit"]:hover {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4)) brightness(1.1);
}

/* ============================================================
   5) SLICK ARROWS — cervene s bilym SVG chevronem
   ============================================================ */
.saracen-products .slick-arrow,
.saracen-products button.slick-arrow {
  position: absolute !important;
  top: 38% !important;
  width: 56px !important;
  height: 56px !important;
  background-color: #C21D2A !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 22px 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: transparent !important;
  cursor: pointer !important;
  z-index: 20 !important;
  font-size: 0 !important;
  padding: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  outline: 0 !important;
  transition: filter 0.25s ease, transform 0.25s ease !important;
}

.saracen-products .slick-prev,
.saracen-products button.slick-prev {
  left: -12px !important;
  right: auto !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='15 6 9 12 15 18'/></svg>") !important;
}
.saracen-products .slick-next,
.saracen-products button.slick-next {
  right: -12px !important;
  left: auto !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 6 15 12 9 18'/></svg>") !important;
}

.saracen-products .slick-arrow::before {
  display: none !important;
  content: '' !important;
}

.saracen-products .slick-arrow:hover {
  filter: brightness(1.12) !important;
  transform: translateY(-2px) !important;
}

.saracen-products .slick-arrow.slick-disabled {
  opacity: 0.35 !important;
  pointer-events: none !important;
}

/* ============================================================
   6) FOOTER CTA
   ============================================================ */
.saracen-products__footer {
  text-align: center;
  margin-top: 56px;
}

.saracen-products__cta {
  position: relative;
  isolation: isolate;
  display: inline-block;
  margin: 0 14px 0 -14px;
  padding: 18px 56px 18px 36px;
  background: transparent;
  color: #ffffff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  z-index: 3;
  transition: filter 0.2s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.saracen-products__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #C21D2A;
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  z-index: -1;
}
.saracen-products__cta::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -28px;
  width: 42px;
  background: #C21D2A;
  clip-path: polygon(22px 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  z-index: -1;
}
.saracen-products__cta:hover,
.saracen-products__cta:focus {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4)) brightness(1.1);
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   7) RESPONZIVITA
   ============================================================ */
@media (max-width: 1199px) {
  .saracen-products { padding: 80px 0; }
  .saracen-products__container { padding: 0 40px; }
}

@media (max-width: 768px) {
  .saracen-products { padding: 70px 0; }
  .saracen-products__container { padding: 0 24px; }
  .saracen-products__intro { margin-bottom: 48px; }
  .saracen-products__footer { margin-top: 48px; }

  /* Sipky vycentrovat vertikalne na karte (kdyz je 1 slide viditelny) */
  .saracen-products .slick-arrow {
    width: 44px !important;
    height: 44px !important;
    top: 50% !important;
    margin-top: -22px !important;
    background-size: 18px 18px !important;
  }
  .saracen-products .slick-prev { left: 4px !important; }
  .saracen-products .slick-next { right: 4px !important; }

  /* Mensi typografie + padding pro mobil */
  .saracen-pc__name { font-size: 22px; }
  .saracen-pc__price { font-size: 22px; }
  .saracen-pc__body { padding: 18px 16px 20px; gap: 8px; }
  .saracen-pc__flag {
    padding: 3px 8px;
    font-size: 9px;
    letter-spacing: 1.2px;
  }

  /* Mensi CTA tlacitka — at se vejdou "DO KOSIKU" */
  .saracen-pc__btn,
  .saracen-pc__cta-slot button[type="submit"] {
    padding: 11px 32px 11px 18px !important;
    margin-right: 18px !important;
    font-size: 10px !important;
    letter-spacing: 1.8px !important;
  }
  .saracen-pc__btn::after,
  .saracen-pc__cta-slot button[type="submit"]::after {
    right: -18px !important;
    width: 28px !important;
  }
}

@media (max-width: 480px) {
  .saracen-products__container { padding: 0 16px; }
}
