/* =========================================================
   PRODUCT.CSS
   Classic – pouze detail produktu (scope pod .p-detail)
   ========================================================= */

/* -------------------------
   Product intro (karta)
   HTML: .product-intro, .product-intro__title, .product-intro__text
   ------------------------- */
.p-detail .product-intro{
  background:#fff;
  border-radius:22px;
  padding:40px 48px;
  box-shadow:0 25px 60px rgba(0,0,0,.08);
  margin-bottom:60px;
  transition:transform 200ms ease, box-shadow 200ms ease;
}

.p-detail .product-intro:hover{
  transform:translateY(-3px);
  box-shadow:0 35px 80px rgba(0,0,0,.12);
}

.p-detail .product-intro__title{
  margin:0 0 18px;
  font-weight:700;
}

.p-detail .product-intro__text{
  margin:0;
  line-height:1.6;
}

.p-detail .product-intro__text p{
  margin:0;
  line-height:1.7;
}

@media (max-width:768px){
  .p-detail .product-intro{
    padding:28px;
    border-radius:18px;
    margin-bottom:48px;
  }
}

/* -------------------------
   Section title (pokud pouzivas v produktu)
   HTML: .section-title--green
   ------------------------- */
.p-detail .section-title--green{
  color:#2eca70;
  font-size:28px;
  font-weight:700;
  margin:40px 0 20px;
  padding-bottom:10px;
  border-bottom:2px solid #2eca70;
}

/* -------------------------
   Feature list (60/40 + reversed)
   HTML:
   .feature-list > .feature-item(.is-reversed)
     > .feature-media + .feature-content
   ------------------------- */
.p-detail .feature-list{
  margin:0;
  padding:0;
}

.p-detail .feature-item{
  display:flex;
  gap:32px;
  align-items:flex-start;
  padding:24px 0;
  border-bottom:1px solid #e5e5e5;
}

.p-detail .feature-item:last-child{border-bottom:none;}

.p-detail .feature-item .feature-media{
  flex:0 0 60%;
  max-width:60%;
}

.p-detail .feature-item .feature-content{
  flex:0 0 40%;
  max-width:40%;
}

.p-detail .feature-item.is-reversed .feature-media{order:2;}
.p-detail .feature-item.is-reversed .feature-content{order:1;}

/* -------------------------
   Feature media (img + iframe)
   - sjednoceno
   - hover efekt na wrapper (funguje i pro iframe)
   ------------------------- */
.p-detail .feature-media{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  background:#000;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.18));
  transition:filter 180ms ease, transform 180ms ease;
}

.p-detail .feature-media:empty{display:none;}

.p-detail .feature-media img,
.p-detail .feature-media iframe{
  width:100%;
  display:block;
  height:auto;
}

.p-detail .feature-media img{
  border-radius:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.p-detail .feature-media iframe{
  border:0 !important;
  border-radius:14px;
  aspect-ratio:16/9;
  height:auto !important;
}

.p-detail .feature-item:hover .feature-media{
  filter:drop-shadow(0 14px 34px rgba(0,0,0,.22));
  transform:translateY(-1px);
}

/* Textova cast */
.p-detail .feature-content{padding-top:6px;}
.p-detail .feature-content h3{margin:0 0 8px;text-align:left;}
.p-detail .feature-content p{margin:0;line-height:1.6;text-align:justify;hyphens:auto;}

@media (max-width:768px){
  .p-detail .feature-item{
    flex-direction:column;
    gap:14px;
    padding:20px 0;
  }

  .p-detail .feature-content{
    order:1 !important;
    flex:1 1 100% !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding-top:0;
  }

  .p-detail .feature-media{
    order:2 !important;
    width:100%;
    max-width:100%;
    margin:0;
    padding:0;
    overflow:visible;
  }

  /* Edge-to-edge media na mobilu */
  .p-detail .feature-media img,
  .p-detail .feature-media iframe{
    width:100vw !important;
    max-width:100vw !important;
    margin-left:calc(50% - 50vw) !important;
    margin-right:calc(50% - 50vw) !important;
    display:block;
    border-radius:0 !important;
  }

  .p-detail .feature-media img{
    height:auto !important;
    max-height:none !important;
    aspect-ratio:auto !important;
    object-fit:contain !important;
  }

  .p-detail .feature-media iframe{
    aspect-ratio:16/9 !important;
    height:auto !important;
  }
}

/* -------------------------
   Product videos (#productVideos)
   - promenne jen pro detail produktu
   ------------------------- */
.p-detail{
  --pv-width:80%;
  --pv-radius:18px;
  --pv-shadow:0 12px 35px rgba(0,0,0,.08);
  --pv-title-size:22px;
  --pv-title-weight:700;
  --pv-title-letter:-.2px;
}

.p-detail #productVideos>h2,
.p-detail #productVideos>h3{
  width:var(--pv-width);
  margin:55px auto 18px;
  font-size:var(--pv-title-size);
  font-weight:var(--pv-title-weight);
  letter-spacing:var(--pv-title-letter);
}

.p-detail #productVideos iframe[src*="youtube"],
.p-detail #productVideos iframe[src*="youtu.be"]{
  display:block;
  width:var(--pv-width);
  margin:0 auto 40px;
  aspect-ratio:16/9;
  height:auto !important;
  border:0;
  border-radius:var(--pv-radius);
  box-shadow:var(--pv-shadow);
}

@media (max-width:768px){
  .p-detail #productVideos>h2,
  .p-detail #productVideos>h3{
    width:100%;
    margin:40px 0 14px;
  }

  .p-detail #productVideos iframe[src*="youtube"],
  .p-detail #productVideos iframe[src*="youtu.be"]{
    width:100%;
    margin:0 0 30px;
  }
}
