/* =========================================================
   VigoAsia — Product details page
   ========================================================= */

.pd { display: flex; gap: 22px; align-items: flex-start; }
.pd > .pd__col { flex: 1 1 0; }
.pd > .pd__col:first-child { flex-grow: 1.25; }
.pd__col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ---------- Gallery ---------- */
.gallery { padding: 12px; }
.gallery__main { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #0f1115; aspect-ratio: 7 / 5; touch-action: pan-y; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; transition: opacity .25s; }
.gallery__main img.is-loading { opacity: .4; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--c-dark); box-shadow: var(--shadow); font-size: 16px; transition: all var(--t); }
.gallery__nav:hover { background: var(--c-orange); color: #fff; }
.gallery__nav--prev { left: 12px; } .gallery__nav--next { right: 12px; }
.gallery__count { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: flex; align-items: center; gap: 6px; }
.gallery__zoom { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; }
.gallery__zoom:hover { background: var(--c-orange); }
.gallery__main .fav-btn { top: 12px; right: 12px; }
.gallery__main .car-card__tag { top: 12px; left: 12px; bottom: auto; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 4px; scrollbar-width: thin; }
.thumbs button { flex: 0 0 88px; aspect-ratio: 7 / 5; border-radius: 6px; overflow: hidden; border: 2px solid transparent; opacity: .65; transition: all var(--t); }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover { opacity: 1; }
.thumbs button.is-active { border-color: var(--c-orange); opacity: 1; }
.gallery__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gallery__actions .btn { flex: 1; min-width: 150px; }

/* video facade */
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity var(--t); }
.video:hover img { opacity: .55; }
.video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 50px; border-radius: 14px; background: #ff0000; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.video__label { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 13px; font-weight: 600; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Spec tiles + table ---------- */
.spec-tiles { display: flex; flex-wrap: wrap; --cols: 6; --gap: 8px; gap: var(--gap); margin-bottom: 14px; }
.spec-tiles > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.spec-tile { text-align: center; padding: 10px 6px; border-radius: var(--radius-sm); background: #f5f7fb; }
.spec-tile i { color: var(--c-navy); font-size: 16px; }
.spec-tile p { font-size: 10.5px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .3px; margin-top: 4px; }
.spec-tile b { display: block; font-size: 13px; font-weight: 600; }
.spec-table { border: 1px solid var(--c-border); border-radius: var(--radius-sm); overflow: hidden; }
.spec-table table { font-size: 13px; }
.spec-table th, .spec-table td { padding: 9px 12px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 22%; background: #f8fafc; color: #4b5563; font-weight: 600; font-size: 12.5px; }
.spec-table td { width: 28%; font-weight: 500; }
.txt-green { color: var(--c-green); } .txt-red { color: var(--c-red); }
.spec-notes { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fffbeb; border: 1px solid #fde68a; font-size: 12px; color: #78350f; display: flex; flex-direction: column; gap: 6px; }
.spec-notes p { display: flex; gap: 8px; }
.spec-notes i { margin-top: 3px; }

/* features */
.features { display: flex; flex-wrap: wrap; --cols: 4; --gap: 6px; gap: var(--gap); }
.features > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.feature { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; border: 1px solid var(--c-border); }
.feature i { font-size: 12px; }
.feature.is-on { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.feature.is-on i { color: var(--c-green); }
.feature.is-off { color: #9ca3af; background: #fafafa; text-decoration: line-through; text-decoration-color: rgba(156,163,175,.5); }

/* ---------- Summary / price card ---------- */
.summary { padding: 18px; }
.summary__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ref-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; background: #eef2ff; color: var(--c-navy); padding: 4px 10px; border-radius: 999px; }
.loc-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c-muted); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--c-border); color: #4b5563; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { border-color: var(--c-navy); color: var(--c-navy); }
.summary__title { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--c-dark); margin-bottom: 12px; }
.summary__price { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: linear-gradient(135deg, #fef2f2, #fee2e2); border: 1px solid #fed7aa; margin-bottom: 14px; flex-wrap: wrap; }
.summary__price .price { font-size: 30px; }
.summary__price .price-label { font-size: 12px; color: #9a3412; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.summary__total { text-align: right; font-size: 12px; color: #9a3412; }
.summary__total b { display: block; font-size: 16px; color: var(--c-dark); }
.summary__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.summary__cta > .btn { flex: 1 1 calc(50% - 5px); min-width: 0; }
.summary__cta .btn-wa-full { flex-basis: 100%; }
.summary__trust { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--c-border); }
.summary__trust li { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #4b5563; line-height: 1.3; }
.summary__trust i { color: var(--c-green); font-size: 15px; }

/* ---------- Quote steps ---------- */
.quote { scroll-margin-top: 70px; }
.step-card { padding: 0; overflow: hidden; }
.step-card + .step-card { margin-top: 14px; }
.step-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #000000; color: #fff; }
.step-num { flex-shrink: 0; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--c-orange); font-size: 11px; font-weight: 700; letter-spacing: .5px; display: flex; align-items: center; justify-content: center; }
.step-head h2 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.step-body { padding: 16px; }

.ports { border: 1px solid var(--c-border); border-radius: var(--radius-sm); overflow: hidden; margin-top: 12px; }
.ports__head { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; background: #f8fafc; font-size: 11.5px; font-weight: 700; color: #4b5563; text-transform: uppercase; letter-spacing: .3px; }
.ports__empty { padding: 16px 12px; font-size: 13px; color: var(--c-muted); display: flex; align-items: center; gap: 8px; }
.port { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--c-border); cursor: pointer; transition: background var(--t); }
.port:hover { background: #f8fafc; }
.port input { accent-color: var(--c-navy); width: 16px; height: 16px; }
.port__name { flex: 1 1 0; min-width: 0; font-size: 13px; font-weight: 600; }
.port__name small { display: block; font-size: 11px; color: var(--c-muted); font-weight: 500; }
.port__price { font-size: 13px; font-weight: 700; color: var(--c-navy); text-align: right; white-space: nowrap; }
.port__price small { display: block; font-size: 11px; font-weight: 500; color: var(--c-muted); }
.port:has(input:checked) { background: #eef2ff; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 11.5px; color: var(--c-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { color: var(--c-navy); }
.total-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--c-dark); color: #fff; }
.total-bar span { font-size: 12px; color: #cbd5e1; }
.total-bar small { display: block; font-size: 11px; color: #94a3b8; }
.total-bar b { font-size: 20px; color: var(--c-cyan); white-space: nowrap; }

.seg { display: flex; padding: 4px; border-radius: var(--radius-sm); background: #f1f5f9; margin-bottom: 16px; }
.seg button { flex: 1 1 0; height: 36px; border-radius: 5px; font-size: 13px; font-weight: 600; color: #4b5563; }
.seg button.is-active { background: #fff; color: var(--c-navy); box-shadow: var(--shadow-sm); }
.form-grid { display: flex; flex-wrap: wrap; gap: 0 12px; }
.form-grid > * { flex: 0 0 calc(50% - 6px); min-width: 0; }
.form-grid > .span-2 { flex-basis: 100%; }
.form-actions { display: flex; gap: 10px; }
.form-actions > :first-child { flex: 1.6 1 0; }
.form-actions > :last-child { flex: 1 1 0; }
.pass-wrap { position: relative; }
.pass-wrap .form-control { padding-right: 42px; }
.pass-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; color: #6b7280; }
.pass-toggle:hover { color: var(--c-navy); }
.login-links { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; }
.login-links a { color: var(--c-navy); font-weight: 600; }
.login-links a:hover { color: var(--c-orange); }
.form-success { display: none; text-align: center; padding: 20px 10px; }
.form-success.is-show { display: block; animation: fadeIn .3s ease; }
.form-success i { font-size: 44px; color: var(--c-green); }
.form-success h3 { font-size: 18px; margin: 10px 0 4px; }
.form-success p { font-size: 13px; color: var(--c-muted); }

.invoice-steps { counter-reset: inv; display: flex; flex-direction: column; gap: 10px; }
.invoice-steps li { position: relative; padding-left: 40px; font-size: 13px; min-height: 28px; display: flex; align-items: center; }
.invoice-steps li::before { counter-increment: inv; content: counter(inv); position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: #eef2ff; color: var(--c-navy); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* ---------- Contact strip ---------- */
.contact-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px; background: var(--c-dark-2); color: #e5e7eb; border: 0; }
.contact-strip > a:first-child { flex: 0 0 220px; }
.contact-strip img { width: 180px; }
.contact-strip > .contact-item { flex: 1 1 0; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 13px; min-width: 0; }
.contact-item i { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(215, 20, 30,.15); color: var(--c-orange); font-size: 16px; }
.contact-item span { display: block; font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: .4px; }
.contact-item a { color: #fff; font-weight: 500; word-break: break-word; }
.contact-item a:hover { color: var(--c-cyan); }

/* ---------- Mobile buy bar ---------- */
.buy-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 960; background: #fff; border-top: 1px solid var(--c-border); box-shadow: 0 -6px 18px rgba(0,0,0,.08); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); align-items: center; gap: 10px; }
.buy-bar .price { font-size: 18px; }
.buy-bar .price-label { font-size: 10.5px; }
.buy-bar__btns { display: flex; gap: 8px; margin-left: auto; }
.buy-bar .btn { height: 42px; }
.buy-bar .btn-whatsapp { width: 46px; padding: 0; font-size: 20px; }

/* ---------- Responsive ---------- */
@media (min-width: 1200px) {
  .pd__col--side { position: relative; }
}
@media (max-width: 1399px) {
  .spec-tiles { --cols: 3; }
  .features { --cols: 3; }
  .contact-strip > .contact-item { flex: 0 0 calc(50% - 8px); }
  .contact-strip > a:first-child { flex-basis: 100%; }
}
@media (max-width: 1199px) {
  .pd > .pd__col { flex: 0 0 auto; }
}
@media (max-width: 991px) {
  body.page-product { padding-bottom: 72px; }
  .page-product .bottom-nav { display: none; }
  .page-product .to-top { bottom: 86px; }
  .buy-bar { display: flex; }
  .summary__title { font-size: 18px; }
  .summary__price .price { font-size: 26px; }
}
@media (max-width: 767px) {
  .pd { gap: 14px; }
  .pd__col { gap: 14px; }
  .gallery { padding: 0; border-radius: 0; border-left: 0; border-right: 0; margin: 0 -12px; }
  .gallery__main { border-radius: 0; }
  .gallery__nav { width: 36px; height: 36px; font-size: 14px; }
  .thumbs { padding: 0 10px 4px; }
  .thumbs button { flex-basis: 70px; }
  .gallery__actions { padding: 0 10px 12px; }
  .gallery__actions .btn { min-width: 0; height: 38px; font-size: 12px; padding: 0 8px; }
  .gallery__actions .lbl-long { display: none; }
  .spec-tiles { --cols: 3; --gap: 6px; }
  .spec-table tbody { display: block; }
  .spec-table tr { display: flex; flex-wrap: wrap; }
  .spec-table th, .spec-table td { flex: 0 0 50%; width: 50%; display: block; }
  .spec-table tr:not(:last-child) td:last-child { border-bottom: 1px solid var(--c-border); }
  .spec-table tr:not(:last-child) th:nth-of-type(2), .spec-table tr:not(:last-child) th:nth-of-type(1), .spec-table tr:not(:last-child) td:nth-of-type(1) { border-bottom: 1px solid var(--c-border); }
  .features { --cols: 2; }
  .summary { padding: 14px; }
  .summary__cta > .btn { flex-basis: 100%; }
  .summary__trust { flex-direction: column; gap: 6px; }
  .form-grid > * { flex-basis: 100%; }
  .form-actions { flex-direction: column; }
  .form-actions > * { flex: 0 0 auto !important; }
  .contact-strip { flex-direction: column; align-items: stretch; }
  .contact-strip > a:first-child, .contact-strip > .contact-item { flex: 0 0 auto; }
  .step-body { padding: 14px 12px; }
}

/* Mobile/tablet reading order: photos → price → specs → features → video → quote */
@media (max-width: 1199px) {
  .pd { display: flex; flex-direction: column; align-items: stretch; }
  .pd__col { display: contents; }
  .pd__col > * { min-width: 0; max-width: 100%; }
  .pd .gallery { max-width: none; }
  .pd .gallery { order: 1; }
  .pd .summary { order: 2; }
  .pd #specs { order: 3; }
  .pd #features { order: 4; }
  .pd .pd-video { order: 5; }
  .pd .quote { order: 6; }
}

/* =========================================================
   Quote form — live-site fields (flag selects, phone, legend)
   ========================================================= */
.form-label--lg { font-size: 15px; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }

/* service legend */
.legend-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; font-size: 14px; }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #374151; }

/* ports table (live style) */
.ports { margin-top: 0; }
.ports__head { background: #2b3035; color: #fff; justify-content: space-around; text-align: center; }
.ports__empty { justify-content: center; text-align: center; font-size: 12.5px; color: #374151; padding: 12px; }
.port__price { color: var(--c-green); }

/* total row */
.total-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 12px 2px 0; border-top: 1px solid var(--c-border); font-size: 17px; font-weight: 700; color: var(--c-dark); }
.total-row b { display: flex; align-items: baseline; gap: 8px; }
.total-row b small { font-size: 15px; color: var(--c-dark); }
.total-row #total-price { color: var(--c-green); font-size: 19px; }

/* stacked submit buttons */
.form-actions--stack { flex-direction: column; }
.form-actions--stack > * { flex: 0 0 auto !important; width: 100%; }

/* =========================================================
   Share popup
   ========================================================= */
.share-modal { position: fixed; inset: 0; z-index: 3500; display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-modal[hidden] { display: none !important; }
.share-modal__overlay { position: absolute; inset: 0; background: rgba(10, 14, 30, .6); backdrop-filter: blur(2px); animation: fadeIn .2s ease; }
.share-modal__box { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px; animation: popIn .22s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.share-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.share-modal__head h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--c-dark); }
.share-modal__head h2 i { color: var(--c-navy); }
.share-modal__close { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f1f5f9; color: #374151; font-size: 16px; }
.share-modal__close:hover { background: #e2e8f0; }

.share-preview { display: flex; flex-direction: column; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; background: #f8fafc; margin-bottom: 16px; }
.share-preview img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; }
.share-preview__body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; }
.share-preview__site { font-size: 10.5px; letter-spacing: .5px; color: var(--c-muted); }
.share-preview__title { font-size: 14px; font-weight: 700; color: var(--c-dark); line-height: 1.3; }
.share-preview__meta { font-size: 12px; color: #4b5563; }

.share-grid { display: flex; gap: 10px; margin-bottom: 14px; }
.share-btn { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--c-border); background: #fff; font-size: 12px; font-weight: 600; color: #374151; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.share-btn i { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.share-btn--fb i { background: #1877f2; }
.share-btn--wa i { background: #25d366; }
.share-btn--ig i { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.share-btn--more i { background: #64748b; }

.share-copy { display: flex; border: 1px solid #d1d5db; border-radius: 10px; overflow: hidden; }
.share-copy input { flex: 1 1 auto; min-width: 0; border: 0; padding: 0 12px; font-size: 13px; color: #4b5563; background: #f9fafb; outline: none; }
.share-copy .btn { border-radius: 0; height: 42px; flex-shrink: 0; }
.share-hint { margin-top: 10px; padding: 9px 12px; border-radius: 8px; background: #fdf2f8; color: #9d174d; font-size: 12.5px; display: flex; gap: 8px; }
.share-hint[hidden] { display: none; }

@media (max-width: 480px) {
  .share-modal { align-items: flex-end; padding: 0; }
  .share-modal__box { max-width: none; border-radius: 18px 18px 0 0; padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); animation: sheetUp .25s ease; }
  @keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
  .share-preview { flex-direction: row; }
  .share-preview img { flex: 0 0 110px; width: 110px; aspect-ratio: auto; }
  .share-btn { padding: 10px 4px; }
  .share-btn i { width: 42px; height: 42px; font-size: 18px; }
}

/* Signed-in customer: who the inquiry is sent as */
.inq-me { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--radius); background: #f5f7ff; border: 1px solid #dfe3fb; }
.inq-me img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.inq-me div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.inq-me small { font-size: 11px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.inq-me b { font-size: 14px; color: var(--c-dark); }
.inq-me span { font-size: 12.5px; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inq-me a { font-size: 12.5px; font-weight: 600; color: var(--c-navy); white-space: nowrap; }
.inq-me a:hover { text-decoration: underline; }
