/* Product detail: a full page that slides in from the right over the catalog / menu. */
.detail-screen{
  position:absolute; inset:0; z-index:6; background:var(--paper);
  transform:translateX(100%); visibility:hidden;
  transition:transform .45s cubic-bezier(.22,.9,.3,1), visibility 0s linear .45s;
  box-shadow:-24px 0 40px -24px rgba(0,0,0,.45);
}
.frame[data-detail="open"] .detail-screen{transform:none; visibility:visible; transition-delay:0s;}
/* the page underneath drifts left a little while the detail page slides over it */
.frame[data-detail="open"][data-screen="catalog"] .catalog-screen,
.frame[data-detail="open"][data-screen="menu"] .menu-screen{transform:translateX(-22%);}
.detail-scroll{
  position:absolute; inset:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
  padding-bottom:calc(32px + var(--safe-b));
}
.detail-media{position:relative; aspect-ratio:1/1; background:var(--card-2);}
.detail-media img{width:100%; height:100%; object-fit:cover;}
.detail-media .gdots{bottom:38px;}
.detail-body{position:relative; margin-top:-24px; padding:26px 20px 4px; background:var(--paper); border-radius:24px 24px 0 0;}
.d-back{
  position:absolute; top:calc(14px + env(safe-area-inset-top, 0px)); right:14px; z-index:7;
  width:42px; height:42px; border:none; cursor:pointer; border-radius:50%;
  background:rgba(12,5,5,.55);   /* readable over light product photos */
  display:flex; align-items:center; justify-content:center;
}
.d-back svg{width:28px; height:28px; fill:none; stroke:#fff; stroke-width:2.6;}
.fav-btn.fav-detail{top:calc(14px + env(safe-area-inset-top, 0px)); left:14px; right:auto; width:42px; height:42px; z-index:7; box-shadow:0 6px 16px -6px rgba(0,0,0,.5);}
.fav-btn.fav-detail svg{width:20px; height:20px;}

.detail-model{display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:12.5px; font-weight:700; color:var(--muted);}
.detail-model .plate{position:static; font-size:12px; padding:5px 10px;}
.detail-title{font-size:21px; font-weight:800; margin:4px 0 2px; line-height:1.35;}
.detail-titleEn{font-size:12.5px; color:var(--muted); font-weight:600; letter-spacing:.04em;}
.detail-price-row{
  margin:16px 0; display:flex; align-items:center; justify-content:space-between;
  background:var(--card-2); border-radius:var(--radius-md); padding:13px 16px;
}
.detail-price-label{font-size:11.5px; color:var(--muted); font-weight:600;}
.detail-price-val{font-size:18px; font-weight:800; color:var(--red-600);}
.detail-dims{
  display:inline-flex; gap:6px; align-items:center; font-size:12.5px; color:var(--muted);
  background:#fff; border:1px solid var(--line); padding:6px 12px; border-radius:999px; margin-bottom:16px;
}
.detail-specs{list-style:none; margin:0 0 6px; padding:0; display:flex; flex-direction:column; gap:10px;}
.detail-specs li{
  display:flex; gap:10px; align-items:flex-start; font-size:13.5px; line-height:1.7;
  padding-bottom:10px; border-bottom:1px dashed var(--line);
}
.detail-specs li:last-child{border-bottom:none;}
.detail-specs li svg{width:16px; height:16px; flex:none; margin-top:3px; stroke:var(--red-500);}

.gallery{display:flex; height:100%; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none;}
.gallery::-webkit-scrollbar{display:none;}
.gallery img{flex:0 0 100%; scroll-snap-align:center;}
.gdots{position:absolute; bottom:10px; left:0; right:0; display:flex; justify-content:center; gap:6px; pointer-events:none;}
.gdots span{width:7px; height:7px; border-radius:99px; background:rgba(255,255,255,.55); transition:width .2s ease;}
.gdots span.on{width:18px; background:#fff;}
.detail-actions{display:flex; gap:10px; margin-top:16px;}
.act{flex:1; text-align:center; padding:15px 8px; min-height:48px; border-radius:12px; font-weight:800; font-size:14px; text-decoration:none; color:#fff;}
.act.call{background:var(--ink);}
.act.wa{background:var(--wa);}
