/* Payism V3 product page (design/catalog/product_1440_v3.png). Scoped to .v3-pdp. */

.v3-pdp { padding-bottom: 0; }
.v3-pdp .payism-editor-data { font-size: 16px; line-height: 26px; color: var(--v3-ink-2); }

/* ---------- 7 + 5 hero grid ---------- */
.v3-pdp .v3p-hero {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px var(--v3-gutter); align-items: start;
    padding: 0 0 var(--v3-section); background: none !important; border: 0 !important; box-shadow: none !important;
}
.v3-pdp .v3p-left { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.v3-pdp .v3p-right { min-width: 0; position: relative; }
.v3-pdp .v3p-buybox { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- gallery ---------- */
.v3-pdp .v3p-gallery { position: relative; top: auto !important; margin: 0 !important; }
.v3-pdp .v3p-details h5.sr-only + span { display: none; }
.v3-pdp .payism-retail-gallery-shell { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; margin: 0; }
.v3-pdp .payism-retail-gallery-shell > [class*="col-"] { max-width: none; min-width: 0; flex: none; width: auto; padding: 0 !important; order: 0 !important; }
.v3-pdp .payism-retail-gallery-thumbs { height: 100% !important; max-height: 620px; border-radius: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.v3-pdp .payism-retail-gallery-thumbs .thumb-slider, .v3-pdp .payism-retail-gallery-thumbs .swiper-wrapper { background: transparent !important; box-shadow: none !important; }
.v3-pdp .thumb-slider .swiper-slide {
    width: 96px !important; height: 96px !important; border-radius: 12px !important; border: 1.5px solid var(--v3-line) !important;
    background: var(--v3-tile) !important; padding: 6px; opacity: 1;
}
.v3-pdp .thumb-slider .swiper-slide img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.v3-pdp .thumb-slider .swiper-slide-thumb-active { border-color: var(--v3-brand-600) !important; box-shadow: 0 0 0 1px var(--v3-brand-600); }
.v3-pdp .payism-retail-gallery-main {
    aspect-ratio: 1 / 1; width: 100%; height: auto !important; border-radius: 24px !important; background: var(--v3-tile) !important;
    border: 0 !important; overflow: hidden;
}
.v3-pdp .payism-retail-gallery-main .swiper-slide { display: flex; align-items: center; justify-content: center; background: transparent !important; }
.v3-pdp .payism-retail-gallery-main img { max-width: 82%; max-height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.v3-pdp .v3p-gallery__overlay {
    position: absolute; z-index: 5; top: 20px; left: 136px; right: 20px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none;
}
.v3-pdp .v3p-gallery__overlay > * { pointer-events: auto; }
.v3-pdp .v3p-gallery__overlay .v3c-badge { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
.v3-pdp .v3p-gallery__actions { display: flex; gap: 12px; }
.v3-pdp .v3p-gallery__actions .v3c-iconbtn { width: 48px; height: 48px; }
.v3-pdp .v3p-gallery__hint {
    position: absolute; left: 136px; bottom: 20px; z-index: 5; display: inline-flex; align-items: center; gap: 10px; margin: 0;
    padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 14px; color: var(--v3-ink-2); pointer-events: none;
}
.v3-pdp .v3p-gallery__hint .v3-ico { width: 32px; height: 32px; padding: 7px; border-radius: 999px; background: #fff; box-shadow: var(--v3-shadow-1); }

/* ---------- highlights + FBT ---------- */
.v3-pdp .v3p-highlights .v3c-h2, .v3-pdp .v3p-fbt .v3c-h2 { margin-bottom: 24px; }
.v3-pdp .v3p-highlights__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.v3-pdp .v3p-highlights__list li { display: flex; align-items: center; gap: 18px; font-size: 16px; line-height: 24px; color: var(--v3-ink); }
.v3-pdp .v3p-highlights__list .v3c-well { width: 64px; height: 64px; }
.v3-pdp .v3p-fbt__row { display: flex; gap: 20px; align-items: stretch; }
.v3-pdp .v3p-fbt__items { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; flex: 1; min-width: 0; }
.v3-pdp .v3p-fbt__item { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.v3-pdp .v3p-fbt__item + .v3p-fbt__item::before { content: '+'; position: absolute; inset-inline-start: -26px; top: 70px; font-size: 24px; color: var(--v3-muted); }
.v3-pdp .v3p-fbt__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--v3-tile); border-radius: 12px; }
.v3-pdp .v3p-fbt__img img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.v3-pdp .v3p-fbt__name { font-size: 14px; line-height: 20px; color: var(--v3-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v3-pdp .v3p-fbt__price { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.v3-pdp .v3p-fbt__total { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding-inline-start: 20px; border-inline-start: 1px solid var(--v3-line); min-width: 170px; } /* logical: mirrored in rtl (E2E 30 round 6) */
.v3-pdp .v3p-fbt__total > span { color: var(--v3-muted); font-size: 15px; }
.v3-pdp .v3p-fbt__total > strong { font-size: 28px; line-height: 36px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- buy box ---------- */
.v3-pdp .v3p-details { padding: 0; }
.v3-pdp .payism-retail-product-details-shell { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.v3-pdp .v3p-brandrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.v3-pdp .v3p-brandrow__brand { color: var(--v3-brand-600) !important; font-weight: 600; font-size: 16px; }
.v3-pdp .v3p-title { font-size: 28px !important; line-height: 36px !important; font-weight: 700 !important; letter-spacing: -.2px; color: var(--v3-ink); margin: 0 0 12px !important; }
.v3-pdp .v3p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 8px; }
.v3-pdp .v3p-meta__rating { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: var(--v3-ink) !important; }
.v3-pdp .v3p-meta__rating strong { font-weight: 700; }
.v3-pdp .v3p-meta__sep { color: var(--v3-line-strong); }
.v3-pdp .v3p-meta__link { color: var(--v3-brand-600); }
.v3-pdp .v3p-meta__rating:hover .v3p-meta__link { text-decoration: underline; }
.v3-pdp .v3p-meta__none { color: var(--v3-muted); font-size: 14px; }
.v3-pdp .v3p-pill { display: inline-flex; gap: 4px; align-items: center; height: 32px; padding: 0 14px; border-radius: 10px; background: var(--v3-warning-50); color: var(--v3-ink); font-size: 14px; font-weight: 700; }
.v3-pdp .v3p-pill span { font-weight: 500; }
.v3-pdp .v3p-sku { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--v3-muted); }
.v3-pdp .v3p-sku > div { margin: 0 !important; }
.v3-pdp .v3p-sku .fs-14 { font-size: 13px !important; }
.v3-pdp #live-product-viewing-visitors { font-size: 14px; }
.v3-pdp .v3p-details .mt-4.mb-3 { margin: 12px 0 0 !important; }
.v3-pdp .v3p-details .flash-sale { border-radius: 12px !important; background: var(--v3-deal) !important; }
.v3-pdp .v3p-details .bg-dark.rounded-corner-8px { background: var(--v3-deal) !important; border-radius: 12px !important; }
.v3-pdp .v3p-details .bg-dark.rounded-corner-8px .text-orange { color: #fff !important; }

.v3-pdp .v3p-price { margin: 12px 0 4px; }
.v3-pdp .v3p-price p { margin: 0; }
.v3-pdp .v3p-price__now { display: flex; align-items: center; gap: 8px; font-size: 32px; line-height: 40px; font-weight: 800; color: var(--v3-ink); font-variant-numeric: tabular-nums; }
.v3-pdp .v3p-price__unit { font-size: 16px; font-weight: 500; color: var(--v3-muted); }
.v3-pdp .v3p-price__info { border: 0; background: none; color: var(--v3-muted); padding: 4px; display: inline-flex; cursor: pointer; }
.v3-pdp .v3p-price__info:hover { color: var(--v3-brand-600); }
.v3-pdp .v3p-price__meta { display: flex; align-items: center; gap: 12px; margin-top: 2px !important; font-size: 17px; }
.v3-pdp .v3p-price__mrp { color: var(--v3-muted); }
.v3-pdp .v3p-price__mrp del { color: var(--v3-muted); font-size: 17px; font-weight: 500; }
.v3-pdp .v3p-price__off { font-size: 18px; font-weight: 700; color: var(--v3-success) !important; background: none !important; padding: 0 0 0 12px !important; border-left: 1px solid var(--v3-line-strong); border-radius: 0 !important; }
.v3-pdp .v3p-price__tax { font-size: 14px; color: var(--v3-muted); margin-top: 2px !important; }
.v3-pdp .v3p-price__points { font-size: 13px; color: var(--v3-warning); margin-top: 4px !important; }

.v3-pdp .v3p-label { margin: 0 0 10px !important; font-size: 16px !important; font-weight: 700 !important; color: var(--v3-ink) !important; }
.v3-pdp .v3p-colour-name { font-weight: 500; }
.v3-pdp .v3p-variants { margin-top: 12px; padding: 0 !important; border: 0 !important; max-height: none !important; overflow: visible !important; }
.v3-pdp .v3p-variants > div { padding: 8px 0 !important; border: 0 !important; }
.v3-pdp .v3p-variants .variant-item-none { display: block !important; }
.v3-pdp #toggleHeight { display: none !important; }
.v3-pdp .v3p-variants .variant-wrapper { display: flex; flex-wrap: wrap; gap: 12px; }
.v3-pdp .v3p-chip, .v3-pdp .v3p-swatch { margin: 0 !important; padding: 0 !important; position: relative; }
.v3-pdp .v3p-chip input, .v3-pdp .v3p-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.v3-pdp .v3p-chip .payism-megabox-elem {
    display: inline-flex !important; align-items: center; height: 48px; padding: 0 20px !important; border-radius: 12px !important;
    border: 1.5px solid var(--v3-line-strong) !important; background: #fff !important; font-size: 15px; color: var(--v3-ink);
}
.v3-pdp .v3p-chip .payism-megabox-elem span { padding: 0 !important; font-size: 15px !important; }
.v3-pdp .v3p-chip input:checked + .payism-megabox-elem { border-color: var(--v3-brand-600) !important; background: var(--v3-brand-50) !important; box-shadow: 0 0 0 1px var(--v3-brand-600); font-weight: 600; }
.v3-pdp .v3p-chip input:focus-visible + .payism-megabox-elem, .v3-pdp .v3p-swatch input:focus-visible + .v3p-swatch__card { outline: 2px solid var(--v3-brand-600); outline-offset: 2px; }
.v3-pdp .v3p-swatches { gap: 12px; }
.v3-pdp .v3p-swatch__card {
    width: 120px; height: 100px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px !important;
    border: 1.5px solid var(--v3-line) !important; border-radius: 12px !important; background: #fff !important; cursor: pointer;
}
.v3-pdp .v3p-swatch__card img { width: 72px; height: 52px; object-fit: contain; mix-blend-mode: multiply; }
.v3-pdp .v3p-swatch__dot { width: 40px; height: 40px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(15, 27, 45, .15); }
.v3-pdp .v3p-swatch__name { font-size: 14px; line-height: 18px; color: var(--v3-ink); text-align: center; }
.v3-pdp .v3p-swatch input:checked + .v3p-swatch__card { border-color: var(--v3-brand-600) !important; box-shadow: 0 0 0 1px var(--v3-brand-600); background: var(--v3-brand-50) !important; }
.v3-pdp .v3p-swatch input:checked + .v3p-swatch__card .v3p-swatch__name { font-weight: 700; }

.v3-pdp .v3p-qtybox { margin: 16px 0 0; padding: 0; border: 0; }
.v3-pdp .v3p-qtybox > div { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; gap: 12px 24px; padding: 0 !important; }
.v3-pdp .v3p-qtybox > div > div { margin: 0 !important; padding: 0 !important; }
.v3-pdp .v3p-qtybox .v3p-label { margin: 0 20px 0 0 !important; }
.v3-pdp .payism-plus-minus {
    height: 48px; border: 1px solid var(--v3-line-strong) !important; border-radius: 999px !important; padding: 0 4px; background: #fff; display: inline-flex;
}
.v3-pdp .payism-plus-minus button { width: 40px !important; height: 40px !important; margin: 0 !important; border-radius: 999px !important; color: var(--v3-ink); }
.v3-pdp .payism-plus-minus button:hover:not([disabled]) { background: var(--v3-brand-50) !important; }
.v3-pdp .payism-plus-minus button svg rect { fill: var(--v3-ink); }
.v3-pdp .payism-plus-minus input { width: 48px !important; font-size: 17px !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; margin: 0 !important; background: transparent; }
.v3-pdp .v3p-qtybox p.text-blue { color: var(--v3-warning) !important; opacity: 1 !important; font-weight: 600 !important; font-size: 15px !important; }
.v3-pdp #chosen_price_div { display: none !important; }
.v3-pdp .order-via-whatsapp { margin: 0 !important; }

.v3-pdp .v3p-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.v3-pdp .v3p-cta .v3c-btn.d-none { display: none !important; }
.v3-pdp .v3p-oos { margin: 12px 0 8px; font-weight: 700; color: var(--v3-muted); }
.v3-pdp .v3p-actions { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 16px 0 4px; }
.v3-pdp .v3p-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: none; padding: 0; color: var(--v3-ink-2) !important; font-size: 15px; cursor: pointer; }
.v3-pdp .v3p-action:hover { color: var(--v3-brand-600) !important; }
.v3-pdp .v3p-action.is-on { color: var(--v3-error) !important; }
.v3-pdp .warranty-section { padding: 0 !important; }
.v3-pdp .warranty-section ul { display: none; }
.v3-pdp .v3p-details form > .bg-light.rounded-2 { background: var(--v3-tile) !important; border-radius: 12px !important; margin-top: 8px; }

/* ---------- side cards ---------- */
.v3-pdp .v3p-card { background: #fff; border: 1px solid var(--v3-line); border-radius: 20px; padding: 20px 24px; }
.v3-pdp .v3p-card__title { font-size: 20px; line-height: 28px; font-weight: 700; margin: 0 0 12px; }
.v3-pdp .v3p-delivery { background: var(--v3-brand-50); border-color: #DCE9F5; padding: 8px 24px; }
.v3-pdp .v3p-delivery__row { display: flex; align-items: center; gap: 16px; padding: 14px 0; font-size: 16px; color: var(--v3-ink); }
.v3-pdp .v3p-delivery__row + .v3p-delivery__row { border-top: 1px solid #DCE6F0; }
.v3-pdp .v3p-delivery__head { font-weight: 700; font-size: 15px; }
.v3-pdp .v3p-delivery__head b { font-weight: 700; }
.v3-pdp .v3p-delivery__change { margin-left: auto; min-height: 44px; padding: 0 4px; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--v3-brand-600); cursor: pointer; }
.v3-pdp .v3p-delivery__row .v3-ico { color: var(--v3-ink-2); }
.v3-pdp .v3p-coupon { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 10px; border: 1.5px dashed var(--v3-line-strong); border-radius: 12px; font-size: 15px; }
.v3-pdp .v3p-coupon .v3-ico { color: var(--v3-brand-600); }
.v3-pdp .v3p-coupon__text { flex: 1; min-width: 0; }
.v3-pdp .v3p-coupon .v3c-link { border: 0; background: none; padding: 0 4px; min-height: 44px; }
.v3-pdp .v3p-seller__row { display: flex; align-items: center; gap: 16px; }
.v3-pdp .v3p-seller__avatar { width: 64px; height: 64px; border-radius: 999px; background: var(--v3-brand-100); color: var(--v3-brand-600); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; flex-shrink: 0; }
.v3-pdp .v3p-seller__info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.v3-pdp .v3p-seller__follow { margin: 0; }

.v3-pdp .v3p-referral { display: block; background: var(--v3-brand-100); border-radius: 20px; padding: 16px 20px; margin: 0; }
.v3-pdp .v3p-referral--guest, .v3-pdp .v3p-referral__summary { display: flex; align-items: center; gap: 16px; list-style: none; cursor: pointer; }
.v3-pdp .v3p-referral__summary::-webkit-details-marker { display: none; }
.v3-pdp .v3p-referral .v3c-well { background: #fff; }
.v3-pdp .v3p-referral__text { flex: 1; display: flex; flex-direction: column; font-size: 15px; line-height: 22px; color: var(--v3-ink); }
.v3-pdp .v3p-referral__text small { font-size: 14px; color: var(--v3-ink-2); }
.v3-pdp .v3p-referral__body { padding: 16px 0 0; font-size: 14px; }
.v3-pdp .v3p-referral__body label { font-weight: 600; font-size: 14px; }
.v3-pdp .v3p-input { height: 48px; border-radius: 12px; border: 1px solid var(--v3-line-strong); }

/* ---------- anchor bar ---------- */
.v3-pdp .v3p-anchors { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--v3-line); margin-bottom: 32px; }
.v3-pdp .v3p-anchors__list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.v3-pdp .v3p-anchors__list::-webkit-scrollbar { display: none; }
.v3-pdp .v3p-anchors .nav-link {
    display: inline-flex; align-items: center; height: 56px; padding: 0 20px !important; font-size: 16px; font-weight: 500; color: var(--v3-ink-2) !important; white-space: nowrap;
    border-bottom: 3px solid transparent;
}
.v3-pdp .v3p-anchors .nav-link:hover { color: var(--v3-brand-600) !important; }
.v3-pdp .v3p-anchors .nav-link.is-active { color: var(--v3-brand-600) !important; font-weight: 700; border-bottom-color: var(--v3-brand-600); }

/* ---------- sections ---------- */
.v3-pdp .v3p-sections { display: flex; flex-direction: column; gap: 32px; padding-bottom: var(--v3-section); }
.v3-pdp .v3p-sections > section { scroll-margin-top: 140px; margin: 0 !important; }
.v3-pdp .v3p-desc { display: grid; grid-template-columns: 1fr; gap: var(--v3-gutter); }
.v3-pdp .v3p-desc.has-specs { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.v3-pdp .v3p-specs .v3c-h2, .v3-pdp .v3p-about .v3c-h2 { margin-bottom: 20px; }
.v3-pdp .v3p-specs__table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.v3-pdp .v3p-specs__table th, .v3-pdp .v3p-specs__table td { padding: 10px 20px; vertical-align: top; border: 0; }
.v3-pdp .v3p-specs__table th { font-weight: 500; color: var(--v3-ink-2); width: 42%; }
.v3-pdp .v3p-specs__table td { color: var(--v3-ink); }
.v3-pdp .v3p-specs__table tr:nth-child(odd) th, .v3-pdp .v3p-specs__table tr:nth-child(odd) td { background: var(--v3-brand-50); }
.v3-pdp .v3p-specs__table tr:nth-child(odd) th { border-radius: 10px 0 0 10px; }
.v3-pdp .v3p-specs__table tr:nth-child(odd) td { border-radius: 0 10px 10px 0; }
.v3-pdp .v3p-about__body { position: relative; }
/* Round 5 polish (final rounds): seller descriptions often start with their own h1-h3 ("Product
   Description"), which rendered bigger than the card's own "About this product" title. Keep them
   as sub-headings under it. */
.v3-pdp .v3p-about__body .payism-editor-data :is(h1, h2, h3) { font-size: 18px; line-height: 26px; font-weight: 700; margin: 16px 0 8px; color: var(--v3-ink); }
.v3-pdp .v3p-about__body .payism-editor-data :is(h4, h5, h6) { font-size: 16px; line-height: 24px; font-weight: 700; margin: 12px 0 6px; color: var(--v3-ink); }
.v3-pdp .v3p-about__body .payism-editor-data > :first-child { margin-top: 0; }
.v3-pdp .v3p-about__body.is-clamped { max-height: 420px; overflow: hidden; }
.v3-pdp .v3p-about__body.is-clamped::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.v3-pdp .v3p-about__more { border: 0; background: none; padding: 0; margin-top: 12px; min-height: 44px; }
.v3-pdp .v3p-about__pdf { display: flex; margin-top: 8px; }
.v3-pdp .payism-editor-data p { margin: 0 0 12px; }
.v3-pdp .payism-editor-data img { max-width: 100%; height: auto; border-radius: 16px; }

.v3-pdp .v3p-reviews .v3c-h2 { margin-bottom: 20px; }
.v3-pdp .v3p-reviews__summary { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 32px; align-items: center; margin-bottom: 24px; }
.v3-pdp .v3p-reviews__score { display: flex; align-items: center; gap: 20px; }
.v3-pdp .v3p-reviews__big { font-size: 56px; line-height: 60px; font-weight: 800; margin: 0; letter-spacing: -1px; }
.v3-pdp .v3p-reviews__stars i, .v3-pdp .v3p-reviews__stars .las { font-size: 26px; color: var(--v3-star); }
/* H8 round 15: only the earned stars are gold (a 3.0 product showed five gold stars); a half star is half gold. */
.v3-pdp .v3p-reviews__stars i:not(.active):not(.half) { color: #C3CDD9; }
.v3-pdp .v3p-reviews__stars i.half { background: linear-gradient(90deg, var(--v3-star) 50%, #C3CDD9 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .v3-pdp .v3p-reviews__stars i.half { background: linear-gradient(270deg, var(--v3-star) 50%, #C3CDD9 50%); -webkit-background-clip: text; background-clip: text; }
.v3-pdp .v3p-reviews__count { margin: 4px 0 0; color: var(--v3-brand-600); font-size: 16px; }
.v3-pdp .v3p-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.v3-pdp .v3p-hist li { display: grid; grid-template-columns: 36px 1fr 44px; gap: 12px; align-items: center; font-size: 14px; color: var(--v3-ink-2); font-variant-numeric: tabular-nums; }
.v3-pdp .v3p-hist__bar { height: 8px; border-radius: 999px; background: var(--v3-line); overflow: hidden; }
.v3-pdp .v3p-hist__bar span { display: block; height: 100%; border-radius: 999px; background: var(--v3-brand-600); }
.v3-pdp .v3p-reviews .rating-point { border-radius: 999px !important; border-color: var(--v3-line-strong) !important; min-width: 56px; }
.v3-pdp .v3p-reviews .rating-point.active { border-color: var(--v3-brand-600) !important; background: var(--v3-brand-50) !important; }
.v3-pdp .v3p-empty { color: var(--v3-muted); font-size: 15px; margin: 0; }
.v3-pdp .reviews-area .border-bottom, .v3-pdp .reviews-area > div > div { border-color: var(--v3-line) !important; }

.v3-pdp .v3p-qa__panel .v3c-h2 { margin-bottom: 16px; }
.v3-pdp .v3p-qa__list { margin: 0 0 8px; }
.v3-pdp .v3p-qa__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--v3-line); }
.v3-pdp .v3p-qa__row dt { font-weight: 700; font-size: 16px; }
.v3-pdp .v3p-qa__row dd { margin: 0; font-size: 16px; color: var(--v3-ink-2); }
.v3-pdp .v3p-qa__row dd span { font-weight: 700; color: var(--v3-ink); }
.v3-pdp .product-queries .form-control { border-radius: 12px; }
.v3-pdp .product-queries { border-radius: 16px !important; border-color: var(--v3-line-strong) !important; }

.v3-pdp .v3c-rail__head-right { display: flex; align-items: center; gap: 16px; }
.v3-pdp .v3c-trust { margin-top: 0; }

/* smart bar (sticky add-to-cart once the CTA scrolls away) */
.v3-pdp ~ .smart-bar, .smart-bar.smart-bar-mobile { font-family: var(--v3-font); box-shadow: 0 -8px 24px rgba(15, 27, 45, .08); }

/* phone sticky buy bar (catalog_v3/pdp_phone_bar): phones only, no bottom nav on the PDP (system 9) */
.v3p-phonebar { display: none; }
@media (max-width: 767.98px) {
    .v3p-phonebar:not([hidden]) {
        display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1031;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--v3-line);
        box-shadow: 0 -8px 24px rgba(15, 27, 45, .08); font-family: var(--v3-font);
    }
    .v3p-phonebar .v3c-btn { height: 52px; width: 100%; }
    body:has(.v3-pdp) .v3-bnav { display: none !important; }
    body:has(.v3-pdp) #smart-bar { display: none !important; }
    body:has(.v3-pdp) .payism-main-wrapper { padding-bottom: 76px; }
}

/* ---------- tablet ---------- */
@media (max-width: 1199px) {
    .v3-pdp .v3p-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .v3-pdp .payism-retail-gallery-shell { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
    .v3-pdp .thumb-slider .swiper-slide { width: 72px !important; height: 72px !important; }
    .v3-pdp .v3p-gallery__overlay, .v3-pdp .v3p-gallery__hint { left: 100px; }
    .v3-pdp .v3p-desc.has-specs { grid-template-columns: 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
    .v3-pdp .v3p-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 32px; }
    .v3-pdp .v3p-buybox { position: static; }
    .v3-pdp .payism-retail-gallery-shell { grid-template-columns: minmax(0, 1fr); }
    .v3-pdp .payism-retail-gallery-shell > [class*="col-"]:first-child { order: 2 !important; }
    .v3-pdp .payism-retail-gallery-thumbs { height: 72px !important; max-height: 72px; }
    .v3-pdp .thumb-slider .swiper-slide { width: 64px !important; height: 64px !important; }
    .v3-pdp .payism-retail-gallery-main { border-radius: 20px !important; }
    .v3-pdp .v3p-gallery__overlay { left: 12px; right: 12px; top: 12px; }
    .v3-pdp .v3p-gallery__actions .v3c-iconbtn { width: 44px; height: 44px; }
    .v3-pdp .v3p-gallery__hint { display: none; }
    .v3-pdp .v3p-title { font-size: 20px !important; line-height: 28px !important; }
    .v3-pdp .v3p-price__now { font-size: 26px; line-height: 32px; }
    .v3-pdp .v3p-highlights__list { grid-template-columns: 1fr; gap: 14px; }
    .v3-pdp .v3p-highlights__list .v3c-well { width: 48px; height: 48px; }
    .v3-pdp .v3p-fbt__row { flex-direction: column; }
    .v3-pdp .v3p-fbt__items { gap: 24px; }
    .v3-pdp .v3p-fbt__item + .v3p-fbt__item::before { inset-inline-start: -18px; top: 30%; }
    .v3-pdp .v3p-fbt__total { padding: 16px 0 0; border-inline-start: 0; border-top: 1px solid var(--v3-line); }
    .v3-pdp .v3p-swatch__card { width: 100px; height: 92px; }
    .v3-pdp .v3p-cta { gap: 12px; }
    .v3-pdp .v3p-card { padding: 16px; border-radius: 16px; }
    .v3-pdp .v3p-delivery { padding: 4px 16px; }
    .v3-pdp .v3p-delivery__row { font-size: 15px; gap: 12px; }
    .v3-pdp .v3p-anchors__list { justify-content: flex-start; }
    .v3-pdp .v3p-anchors .nav-link { height: 48px; padding: 0 12px !important; font-size: 15px; }
    .v3-pdp .v3p-anchors { margin-bottom: 16px; }
    .v3-pdp .v3p-sections { gap: 20px; }
    .v3-pdp .v3p-reviews__summary { grid-template-columns: 1fr; gap: 16px; }
    .v3-pdp .v3p-reviews__big { font-size: 44px; line-height: 48px; }
    .v3-pdp .v3p-qa__row { grid-template-columns: 1fr; gap: 6px; }
    .v3-pdp .v3p-specs__table th, .v3-pdp .v3p-specs__table td { padding: 8px 12px; font-size: 15px; }
    .v3-pdp .reviews-ratings-container .row > div { flex: 0 0 100%; max-width: 100%; }
    /* Phone order (system 9, PDP): gallery, then the buy box, then highlights and the bundle. */
    .v3-pdp .v3p-left { display: contents; }
    .v3-pdp .v3p-gallery { order: 1; }
    .v3-pdp .v3p-right { order: 2; }
    .v3-pdp .v3p-highlights { order: 3; }
    .v3-pdp .v3p-fbt { order: 4; }
    .v3-pdp .v3p-referral--guest, .v3-pdp .v3p-referral__summary { flex-wrap: wrap; gap: 8px 12px; }
    .v3-pdp .v3p-referral__text { flex: 1 1 calc(100% - 64px); }
    .v3-pdp .v3p-referral--guest > .v3c-link, .v3-pdp .v3p-referral__summary > .v3c-link { flex-basis: 100%; padding-left: 52px; min-height: 44px; display: flex; align-items: center; }
}

/* product_390_v3 (lane v3match/web-home-catalog): no breadcrumb on the phone; the low-stock count is bold;
   similar / seller rails swipe sideways instead of stacking. */
@media (max-width: 767px) {
    .v3-pdp .v3c-crumbs { display: none; }
    .v3-pdp #available-quantity { font-weight: 700; }
    body.v3-pdp-page .v3-rail--phone-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%; overflow-x: auto; margin-right: calc(-1 * var(--v3-side, 16px)); padding-right: var(--v3-side, 16px); }
}

/* Stock line: "Only N left in stock" when 1-10 remain, else "N Available" (details.blade, data-v3-stock). */
.v3p-stock:not(.is-low) .v3p-stock__low, .v3p-stock.is-low .v3p-stock__ok { display: none; }
