body { background: #f5f6f8; }

.breadcrumbs { max-width: 1200px; margin: 0 auto; padding: 14px 24px; font-size: 13px; color: #999; }
.breadcrumbs a { color: #999; text-decoration: none; }
.breadcrumbs a:hover { color: #2d9e00; }
.breadcrumbs span { margin: 0 6px; }

.detail-page { max-width: 1200px; margin: 0 auto 60px; padding: 0 24px; display: grid; grid-template-columns: 1fr 380px; gap: 12px; align-items: start; }
.detail-page > .detail-left    { grid-column: 1; grid-row: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.detail-page > .right-panel    { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }

@media (max-width: 960px) {
  .detail-page { grid-template-columns: 1fr; gap: 10px; overflow: hidden; }
  .detail-page > .detail-left  { grid-column: auto; grid-row: auto; display: contents; }
  .detail-page > .right-panel  { display: contents; grid-row: auto; }
  .detail-gallery { order: 1; min-width: 0; }
  .info-card      { order: 2; }
  .desc-block     { order: 3; }
  .contact-card   { order: 4; }
}

.gallery { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e8e8e8; }
.gallery-main { position: relative; background: #f0f0f0; aspect-ratio: 4/3; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: none; cursor: zoom-in; }
.gallery--contain .gallery-main img { object-fit: contain; background: #fff; }
.gallery--contain .g-thumb img { object-fit: contain; background: #f5f5f5; }
.gallery-main img.active { display: block; }
.gallery-no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 80px; color: #ddd; }
.g-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.g-arrow:hover { background: rgba(0,0,0,.7); }
.g-prev { left: 14px; }
.g-next { right: 14px; }
.g-counter { position: absolute; bottom: 12px; right: 14px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.gallery-thumbs { display: flex; gap: 8px; padding: 12px; flex-wrap: nowrap; overflow-x: auto; border-top: 1px solid #f0f0f0; max-width: 100%; min-width: 0; }
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.g-thumb { width: 76px; height: 58px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; transition: border-color .15s; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-thumb.active { border-color: #2d9e00; }
.g-thumb:hover { border-color: #aaa; }

.desc-block { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 24px; }
.desc-block h3 { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.g-yt-slide { display: none; position: absolute; inset: 0; background: #000; z-index: 1; }
.g-yt-slide.active { display: block; }
.g-yt-slide iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: none; }
.g-yt-slide.active ~ .g-arrow { opacity: 0; pointer-events: none; }
.g-yt-slide.active ~ .g-counter { display: none; }
.g-thumb-yt { position: relative; }
.g-thumb-play { display: none; }
.desc-text { font-size: 14px; color: #555; line-height: 1.75; white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; }

.right-panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.info-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 24px; }

.avail-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.avail-yes    { background: #e8f8e0; color: #2d9e00; }
.avail-no     { background: #f0f0f0; color: #999; }
.avail-status { background: #fff3e0; color: #e67e00; }

.bike-title { font-size: 22px; font-weight: 800; color: #111; line-height: 1.3; margin-bottom: 16px; }

.price-row { display: flex; align-items: baseline; gap: 8px; padding: 14px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px; }
.bike-price-row { padding: 16px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.price-main { font-size: 32px; font-weight: 800; color: #111; }
.bike-price-row .price-main { font-size: 34px; line-height: 1; }
.price-cur { font-size: 18px; color: #2d9e00; font-weight: 600; }
.bike-price-row .price-main em { font-size: 20px; font-style: normal; font-weight: 700; color: #2d9e00; margin-left: 6px; }
.price-sub { display: inline-flex; align-items: center; gap: 5px; background: #f5f8f3; border: 1px solid #e0f0d8; border-radius: 8px; padding: 4px 12px; font-size: 13px; font-weight: 700; color: #666; width: fit-content; }
.price-note { font-size: 11px; color: #bbb; font-style: italic; }


.specs-list { display: flex; flex-direction: column; gap: 0; }
.specs-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f5f5f5; gap: 12px; }
.specs-item:last-child { border-bottom: none; }
.specs-key { font-size: 13px; color: #999; font-weight: 600; flex-shrink: 0; }
.specs-val { font-size: 13px; color: #222; font-weight: 700; text-align: right; }

.contact-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.btn-buy { display: block; width: 100%; background: #2d9e00; color: #fff; text-align: center; padding: 14px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: background .15s; }
.btn-buy:hover { background: #259000; }
.btn-call { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 2px solid #2d9e00; color: #2d9e00; background: #fff; padding: 12px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: all .15s; }
.btn-call:hover { background: #f0fbea; }
.contact-note { font-size: 12px; color: #bbb; text-align: center; line-height: 1.5; }
.contact-address { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #666; padding-top: 4px; border-top: 1px solid #f0f0f0; }
.contact-address span { font-size: 16px; flex-shrink: 0; }

.similar-wrap { max-width: 1200px; margin: 0 auto 60px; padding: 0 24px; }
.similar-wrap h3 { font-size: 20px; font-weight: 800; color: #111; margin-bottom: 20px; }

/* ── Mobile sticky call bar ── */
.mobile-sticky-cta {
  display: none;
}
@media (max-width: 960px) {
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 6px 12px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    z-index: 50;
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  }
  .mobile-sticky-cta .btn-buy {
    flex: 1; width: auto;
    padding: 11px 14px; font-size: 13px;
    border-radius: 8px; line-height: 1.3;
  }
  .mobile-sticky-cta .btn-call {
    flex: 1; width: auto;
    padding: 11px 14px; font-size: 13px;
    white-space: nowrap; border-radius: 8px;
    line-height: 1.3; gap: 6px;
  }
  .mobile-sticky-cta .btn-call svg { width: 16px; height: 16px; flex-shrink: 0; }
  /* Push content above sticky bar */
  .detail-page { margin-bottom: 60px; }
  .similar-wrap { padding-bottom: 60px; }
  /* Gallery arrows slightly smaller */
  .g-arrow { width: 36px; height: 36px; font-size: 20px; }
  /* Thumbs strip — scrollable on mobile */
  .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 10px 12px; gap: 8px; }
  .gallery-thumbs::-webkit-scrollbar { height: 4px; }
  .gallery-thumbs::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
}

.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 1000; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.lb-close { position: absolute; top: 18px; right: 22px; color: #fff; font-size: 36px; cursor: pointer; background: none; border: none; line-height: 1; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 48px; cursor: pointer; background: none; border: none; padding: 0 20px; line-height: 1; opacity: .7; }
.lb-arrow:hover { opacity: 1; }
.lb-prev { left: 0; }
.lb-next { right: 0; }
