.details-page{
  padding:14px 0 44px;
  background:linear-gradient(180deg, #f4f7fa 0%, #fff 40%);
}

.details-breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-bottom:10px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.details-breadcrumb a{
  color:var(--brand-dark);
}

.details-breadcrumb span:before{
  content:">";
  margin-right:8px;
  color:#9aa8b3;
}

.details-hero{
  display:grid;
  grid-template-columns:minmax(340px, .92fr) minmax(0, 1fr);
  gap:20px;
  align-items:start;
}

.details-main-image{
  position:relative;
  min-width:0;
  margin:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:0 18px 42px rgba(29,39,48,.10);
}

.details-media-column{
  min-width:0;
}

.details-main-image[data-lightbox-item],
.details-gallery figure[data-lightbox-item]{
  cursor:zoom-in;
}

.details-main-image img{
  width:100%;
  aspect-ratio:4/3;
  display:block;
  object-fit:contain;
}

.details-video-media{
  background:#101820;
}

.details-video-media img{
  opacity:.84;
}

.details-video-play{
  position:absolute;
  left:50%;
  top:50%;
  width:72px;
  height:72px;
  border-radius:50%;
  transform:translate(-50%, -50%);
  background:rgba(255,255,255,.94);
  box-shadow:0 14px 34px rgba(0,0,0,.28);
}

.details-video-play:before{
  content:"";
  position:absolute;
  left:29px;
  top:22px;
  border-top:14px solid transparent;
  border-bottom:14px solid transparent;
  border-left:22px solid #111827;
}

.details-video-link{
  position:absolute;
  right:16px;
  bottom:16px;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 14px;
  border-radius:8px;
  background:#fff;
  color:#111827;
  font-weight:800;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
}

.details-placeholder-media{
  min-height:260px;
  background:
    linear-gradient(135deg, rgba(39,169,216,.14), transparent 42%),
    linear-gradient(180deg, #f7fbfd, #eaf3f8);
}

.details-summary{
  min-width:0;
  padding:22px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:0 12px 30px rgba(29,39,48,.06);
}

.details-summary h1{
  margin:0;
  color:var(--ink);
  font-size:clamp(26px, 3vw, 38px);
  line-height:1.12;
}

.details-brief{
  margin:14px 0 0;
  color:var(--muted);
  font-size:17px;
  line-height:1.55;
}

.details-specs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.details-specs span{
  padding:7px 9px;
  border:1px solid rgba(39,169,216,.26);
  border-radius:6px;
  background:var(--soft);
  color:var(--brand-dark);
  font-size:13px;
  font-weight:700;
}

.details-specs strong{
  color:var(--ink);
}

.details-specs span:empty{
  width:132px;
  height:36px;
}

.details-price{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:9px 13px;
  border-radius:6px;
  background:#e9f8fd;
  color:var(--brand-dark);
  font-size:20px;
  line-height:1;
}

.details-cta-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:16px;
}

.details-order-link,
.details-whatsapp-link,
.details-reel-link{
  min-height:42px;
  padding:9px 14px;
  white-space:nowrap;
}

.details-order-link{
  box-shadow:0 10px 22px rgba(39,169,216,.18);
}

.details-price.is-placeholder{
  width:158px;
  height:48px;
}

.details-section{
  margin-top:28px;
}

.details-gallery-section{
  margin-top:12px;
}

.details-section h2{
  margin:0 0 12px;
  color:var(--ink);
  font-size:24px;
}

.details-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(96px, 124px));
  gap:10px;
}

.details-gallery figure{
  margin:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}

.details-gallery .details-placeholder-media{
  aspect-ratio:1/1;
  min-height:0;
}

.details-gallery img{
  width:100%;
  aspect-ratio:1/1;
  display:block;
  object-fit:cover;
}

.details-description{
  margin-top:12px;
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
}

.details-description p{
  margin:0;
}

.details-description p + p{
  margin-top:10px;
}

.order-section{
  display:grid;
  grid-template-columns:minmax(220px, .8fr) minmax(0, 1.2fr);
  gap:18px;
  margin-top:28px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:0 10px 24px rgba(29,39,48,.06);
}

.order-section h2{
  margin:0;
  color:var(--ink);
  font-size:22px;
  line-height:1.2;
}

.order-section p{
  margin:8px 0 0;
  color:var(--muted);
}

.order-section-summary{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.order-section-summary strong,
.order-section-summary span{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:6px 9px;
  border-radius:6px;
  background:var(--soft);
  color:var(--brand-dark);
  font-size:13px;
  font-weight:700;
}

.order-form{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}

.order-form label{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.order-form span{
  color:var(--ink);
  font-size:12px;
  font-weight:700;
}

.order-form input,
.order-form textarea{
  width:100%;
  min-height:40px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:var(--ink);
  font:inherit;
}

.order-form textarea{
  resize:vertical;
}

.order-form-notes,
.order-form-submit,
.order-form-message{
  grid-column:1 / -1;
}

.order-form-submit{
  justify-self:start;
}

.order-form-message{
  min-height:20px;
  margin:0;
  font-size:13px;
  font-weight:700;
}

.order-form-message.is-success{
  color:#16814a;
}

.order-form-message.is-error{
  color:#c0372b;
}

.details-not-found{
  min-height:360px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  text-align:center;
}

.details-not-found h1,
.details-not-found p{
  margin:0;
}

.details-not-found p{
  color:var(--muted);
}

.details-placeholder-line{
  width:100%;
  height:16px;
  display:block;
  border-radius:999px;
  background:linear-gradient(90deg, #edf3f7, #dfeaf1, #edf3f7);
}

.details-placeholder-line + .details-placeholder-line{
  margin-top:12px;
}

.details-placeholder-line.short{
  width:62%;
}

.details-placeholder-line.is-kicker{
  width:96px;
  height:13px;
  margin-bottom:18px;
}

.details-placeholder-line.is-title{
  width:78%;
  height:46px;
}

.details-placeholder-line.is-brief{
  width:92%;
  height:18px;
  margin-top:18px;
}

.related-posts{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(350px, 1fr));
  gap:14px;
}

.related-post{
  display:grid;
  grid-template-columns:112px 1fr;
  gap:14px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:0 10px 24px rgba(29,39,48,.06);
}

.related-post-image{
  overflow:hidden;
  border-radius:6px;
  background:var(--soft);
}

.related-post.is-placeholder .related-post-image{
  aspect-ratio:1/1;
  background:linear-gradient(135deg, rgba(39,169,216,.14), #eef5f8);
}

.related-post-image img{
  width:100%;
  aspect-ratio:1/1;
  display:block;
  object-fit:cover;
}

.related-post > span:last-child{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
}

.related-post strong{
  color:var(--ink);
  font-size:16px;
  line-height:1.25;
}

.related-post em{
  color:var(--brand-dark);
  font-size:12px;
  font-style:normal;
  font-weight:700;
  text-transform:uppercase;
}

.related-post span span{
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

.related-post .product-card-indicators{
  display:grid;
  gap:7px;
}

.related-post .product-card-indicator-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.related-post .product-card-indicator-badges span{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:4px 7px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#f8fbfd;
  color:var(--ink);
  font-size:11px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
}

.related-post .product-card-indicator-flags{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  line-height:1.35;
}

.offer-lightbox{
  position:fixed;
  inset:0;
  z-index:50;
  display:grid;
  place-items:center;
  padding:64px;
  background:rgba(9,21,31,.88);
}

.offer-lightbox[hidden]{
  display:none;
}

.lightbox-stage{
  margin:0;
  max-width:min(1040px, 100%);
  max-height:calc(100vh - 160px);
}

.lightbox-stage img{
  max-width:100%;
  max-height:calc(100vh - 160px);
  display:block;
  border-radius:8px;
  background:#fff;
  box-shadow:0 18px 46px rgba(0,0,0,.32);
}

.lightbox-close,
.lightbox-nav{
  position:absolute;
  border:1px solid rgba(255,255,255,.28);
  border-radius:6px;
  background:rgba(255,255,255,.12);
  color:#fff;
  cursor:pointer;
  font-family:inherit;
}

.lightbox-close{
  top:22px;
  right:24px;
  width:42px;
  height:42px;
  font-size:32px;
  line-height:1;
}

.lightbox-nav{
  top:50%;
  width:48px;
  height:58px;
  font-size:44px;
  line-height:1;
  transform:translateY(-50%);
}

.lightbox-prev{
  left:24px;
}

.lightbox-next{
  right:24px;
}

.lightbox-actions{
  position:absolute;
  left:50%;
  bottom:22px;
  transform:translateX(-50%);
}

.lightbox-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 16px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:6px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-weight:700;
}

.lightbox-close:hover,
.lightbox-action:hover,
.lightbox-nav:hover{
  background:rgba(255,255,255,.22);
}

@media (max-width:860px){
  .details-hero{
    grid-template-columns:1fr;
  }

  .order-section{
    grid-template-columns:1fr;
  }
}

@media (max-width:520px){
  .details-page{
    padding:24px 0 52px;
  }

  .details-summary{
    padding:20px;
  }

  .details-cta-row{
    align-items:stretch;
  }

  .details-order-link,
  .details-whatsapp-link{
    flex:1 1 150px;
  }

  .related-posts{
    grid-template-columns:1fr;
  }

  .details-gallery{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .order-form{
    grid-template-columns:1fr;
  }

  .related-post{
    grid-template-columns:86px 1fr;
  }

  .offer-lightbox{
    padding:52px 16px 76px;
  }

  .lightbox-stage,
  .lightbox-stage img{
    max-height:calc(100vh - 150px);
  }

  .lightbox-nav{
    display:none;
  }

  .lightbox-actions{
    bottom:18px;
  }
}
