/* VG-103: rules of the product page, moved out of index_home.css (loaded only on those pages, right after index_home.css and before vg-refresh.css, so the cascade order is kept). */
/* VG-027: product page. Same container, palette and controls as the home and category pages. */
.vg-pdp-wrap { width: var(--vg-content-width); max-width: var(--vg-content-max); margin: 0 auto; padding-bottom: 24px; }
.vg-pdp-notice { margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--vg-c-ffa01a, #ffa01a); border-radius: 12px; background: #fff8ec; color: var(--vg-c-422800); font-size: 15px; line-height: 1.5; }
.vg-pdp-notice p { margin: 0 0 .5em; }
.vg-pdp-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "gallery title" "gallery buy"; grid-template-rows: auto 1fr; column-gap: 48px; row-gap: 6px; align-items: start; }
.vg-pdp-gallery { grid-area: gallery; min-width: 0; }
.vg-pdp-zoom { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 320px; margin: 0; padding: 20px; border: 1px solid var(--vg-c-e6eddd); border-radius: 16px; background: var(--vg-white); cursor: zoom-in; transition: box-shadow .25s, border-color .25s; }
.vg-pdp-zoom:hover { border-color: var(--vg-c-abe8bc); box-shadow: 0 6px 22px var(--vg-c-54742614); }
.vg-pdp-zoom img { display: block; width: auto; height: auto; max-width: 100%; max-height: 460px; object-fit: contain; }
.vg-pdp-zoom-hint { position: absolute; inset-block-end: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: var(--vg-c-f1f7e8); color: var(--vg-green-dark); font-size: 13px; font-weight: 700; line-height: 1.4; }
.vg-pdp-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.vg-pdp-thumbs button { display: grid; place-items: center; width: 76px; height: 76px; padding: 4px; border: 1px solid var(--vg-c-e6eddd); border-radius: 10px; background: var(--vg-white); cursor: pointer; transition: border-color .2s; }
.vg-pdp-thumbs button:hover { border-color: var(--vg-green); }
.vg-pdp-thumbs img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.vg-pdp-buy { grid-area: buy; min-width: 0; }
.vg-pdp-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.vg-pdp-price { font-size: clamp(30px, 2.6vw, 40px); font-weight: 700; line-height: 1.2; color: var(--vg-text); }
.vg-pdp-price-old { font-size: 20px; font-weight: 400; color: var(--vg-c-8b9287); }
.vg-pdp-discount { align-self: center; padding: 3px 11px; border-radius: 20px; background: var(--vg-orange); color: var(--vg-white); font-size: 14px; font-weight: 700; line-height: 1.5; }
.vg-pdp-price-unit { margin-top: 4px; color: var(--vg-c-626b5c); font-size: 15px; }
.vg-pdp-price-raw { font-size: 22px; font-weight: 700; }
.vg-pdp-rating a { display: inline-flex; align-items: center; gap: 8px; color: var(--vg-text); font-weight: 400; }
.vg-pdp-form { margin: 0; }
.vg-pdp-attributes { margin-bottom: 18px; font-size: 15px; }
.vg-pdp-attributes select, .vg-pdp-attributes input[type=text] { min-height: 44px; max-width: 100%; padding: 8px 14px; border: 1px solid var(--vg-c-8bcf55); border-radius: 10px; background: var(--vg-white); color: var(--vg-text); font: inherit; }
.vg-pdp-attributes label { margin-inline-end: 8px; }
.vg-pdp-attributes table { max-width: 100%; }
.vg-pdp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.vg-pdp-actions > .vg-pdp-add { flex: 1 1 220px; max-width: 360px; min-height: 52px; font-size: 16px; }
.vg-pdp-actions > .vg-pdp-add, .vg-pdp-actions .vg-product-action { border: 0; cursor: pointer; font-family: inherit; }
.vg-pdp-zoom:focus-visible, .vg-pdp-thumbs button:focus-visible, .vg-pdp-write:focus-visible, .vg-pdp-send:focus-visible, .vg-pdp-field input:focus-visible, .vg-pdp-field textarea:focus-visible, .vg-pdp-lightbox button:focus-visible, .vg-pdp-wrap a:focus-visible { outline: 3px solid var(--vg-c-163707); outline-offset: 2px; }

.vg-pdp-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 48px; }
.vg-pdp-columns h2, .vg-pdp-reviews-head h2 { margin: 0 0 16px; font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--vg-text); }
.vg-pdp-prose { font-size: 17px; line-height: 1.7; color: var(--vg-c-373737); overflow-wrap: anywhere; }
.vg-pdp-prose, .vg-pdp-prose * { text-align: start; }
.vg-pdp-prose img, .vg-pdp-prose iframe, .vg-pdp-prose video { max-width: 100%; height: auto; }
.vg-pdp-prose a, .vg-pdp-more a { color: var(--vg-green-dark); }
.vg-pdp-video { position: relative; margin-top: 24px; aspect-ratio: 16 / 9; }
.vg-pdp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.vg-pdp-video-file { display: block; width: 100%; max-width: 560px; margin-top: 24px; border-radius: 12px; }
.vg-pdp-reviews-head { margin-bottom: 20px; }
.vg-pdp-write { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin-bottom: 18px; padding: 10px 22px; border: 1px solid var(--vg-orange); border-radius: 10px; background: var(--vg-white); color: var(--vg-orange); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.vg-pdp-write > span { width: .5em; height: .5em; margin-top: -.25em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s; }
.vg-pdp-write[aria-expanded=true] > span { margin-top: .25em; transform: rotate(-135deg); }
.vg-pdp-review-panel { margin-bottom: 26px; padding: 22px; border: 1px solid var(--vg-c-a8d68a); border-radius: 14px; background: var(--vg-c-f7fcf3); animation: vg-pdp-open .3s ease-out; }
.vg-pdp-review-panel[hidden] { display: none; }
.vg-pdp-field { display: block; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.vg-pdp-field > label, .vg-pdp-field > legend { display: block; margin: 0 0 6px; padding: 0; font-size: 15px; font-weight: 700; color: var(--vg-c-487645); }
.vg-pdp-field input[type=text], .vg-pdp-field textarea { display: block; width: 100%; padding: 10px 14px; border: 1px solid var(--vg-c-8bcf55); border-radius: 10px; background: var(--vg-white); color: var(--vg-text); font: inherit; font-size: 16px; }
.vg-pdp-field input[type=text] { max-width: 360px; min-height: 44px; }
.vg-pdp-field textarea { resize: vertical; min-height: 120px; }
.vg-pdp-field.has-error input[type=text], .vg-pdp-field.has-error textarea { border-color: #c0392b; box-shadow: 0 0 0 3px #c0392b22; }
.vg-pdp-field.has-error > legend, .vg-pdp-field.has-error > label { color: #c0392b; }
.vg-pdp-captcha.has-error .g-recaptcha { outline: 2px solid #c0392b; outline-offset: 2px; border-radius: 4px; }
.vg-pdp-starpick { display: inline-flex; direction: ltr; gap: 2px; }
.vg-pdp-starpick label { position: relative; display: block; font-size: 36px; line-height: 1; color: var(--vg-c-dce7d2); cursor: pointer; transition: color .15s, transform .15s; }
.vg-pdp-starpick label.on { color: var(--vg-orange); }
.vg-pdp-starpick label:hover { transform: scale(1.12); }
.vg-pdp-starpick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vg-pdp-starpick label:focus-within { outline: 3px solid var(--vg-c-163707); outline-offset: 2px; border-radius: 4px; }
.vg-pdp-form-status { min-height: 1.4em; margin: 0 0 8px; color: #c0392b; font-size: 14px; }
.vg-pdp-send { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 30px; border: 0; border-radius: 8px; background: var(--vg-green); color: var(--vg-c-163707); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.vg-pdp-send:disabled { opacity: .6; cursor: progress; }
.vg-pdp-thanks { margin: 0; color: var(--vg-green-dark); font-weight: 700; font-size: 17px; }
.vg-pdp-review-list { margin: 0; padding: 0; list-style: none; }
.vg-pdp-no-reviews { margin: 0; color: var(--vg-text-muted); }
.vg-pdp-also { margin-top: 56px; }

.vg-pdp-lightbox { width: min(96vw, 1100px); height: min(92dvh, 900px); max-width: none; max-height: none; padding: 20px; border: 0; border-radius: 16px; background: var(--vg-white); overflow: hidden; }
.vg-pdp-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.vg-pdp-lightbox::backdrop { background: var(--vg-c-242c2975); backdrop-filter: blur(3px); }
.vg-pdp-lightbox img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.vg-pdp-lightbox button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--vg-c-f1f7e8); color: var(--vg-green-dark); font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s; }
.vg-pdp-lightbox button:hover { background: var(--vg-c-e1efc9); }
.vg-pdp-lightbox-close { top: 12px; inset-inline-end: 12px; z-index: 2; }
.vg-pdp-lightbox-nav { top: 50%; margin-top: -22px; z-index: 2; }
.vg-pdp-lightbox-prev { inset-inline-start: 12px; }
.vg-pdp-lightbox-next { inset-inline-end: 12px; }
[dir=rtl] .vg-pdp-lightbox-nav { transform: scaleX(-1); }
html:has(dialog.vg-pdp-lightbox[open]) { overflow: hidden; }

@media (max-width: 900px) {
    .vg-pdp-top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "gallery" "buy"; row-gap: 14px; }
    .vg-pdp-zoom { min-height: 240px; padding: 14px; }
    .vg-pdp-zoom img { max-height: 340px; }
    .vg-pdp-columns { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 36px; }
    .vg-pdp-actions > .vg-pdp-add { max-width: none; }
}
@media (max-width: 600px) {
    .vg-pdp-title { font-size: 26px; }
    .vg-pdp-review-panel { padding: 16px; }
    .vg-pdp-lightbox { width: 100vw; height: 100dvh; border-radius: 0; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .vg-pdp-review-panel { animation: none; } .vg-pdp-zoom, .vg-pdp-write > span, .vg-pdp-starpick label { transition: none; }
}

.vg-pdp-add, .vg-pdp-actions .vg-product-action { display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border-radius: 10px; background: var(--vg-green); color: var(--vg-white); font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; transition: background .22s, box-shadow .22s; }
.vg-pdp-add:hover, .vg-pdp-actions .vg-product-action:hover { background: var(--vg-c-73b215); }
.vg-pdp-add:disabled { opacity: .6; cursor: progress; }
.vg-pdp-price-old .normalprice, .vg-pdp-price .normalprice, .vg-pdp-price .productSpecialPrice { font: inherit; color: inherit; text-decoration: none; }

.vg-pdp-crumbs .vg-cat-crumbs ol { flex-wrap: nowrap; }
.vg-pdp-crumbs .vg-cat-crumbs li { flex: 0 1 auto; min-width: 0; }
.vg-pdp-crumbs .vg-cat-crumbs li > a, .vg-pdp-crumbs .vg-cat-crumbs li > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-pdp-crumbs .vg-cat-crumbs li:first-child { flex-shrink: 0; }

.vg-pdp-rating a { flex-wrap: nowrap; white-space: nowrap; }
.vg-pdp-title { margin-bottom: 0; }

.vg-pdp-gallery { justify-self: start; }
.vg-pdp-zoom { display: inline-flex; width: auto; min-height: 0; padding: 10px; border-radius: 14px; }
.vg-pdp-zoom img { width: 220px; height: 220px; max-width: 100%; max-height: none; object-fit: contain; }
.vg-pdp-zoom-hint { position: static; margin: 0; padding: 0; background: none; font-size: 0; }
.vg-pdp-zoom-hint svg { position: absolute; inset-block-end: 12px; inset-inline-end: 12px; box-sizing: content-box; padding: 6px; border-radius: 50%; background: var(--vg-c-f1f7e8); color: var(--vg-green-dark); }
.vg-pdp-pricebox { margin: 28px 0; }
.vg-pdp-price { color: var(--vg-green); }
.vg-pdp-oos { margin-top: 4px; }
.vg-pdp-oos-title { margin: 0 0 12px; font-size: 22px; font-weight: 700; color: var(--vg-c-626b5c); }
.vg-pdp-oos .vg-pdp-notice { margin: 0; }

.vg-pdp-columns { column-gap: 48px; }
.vg-pdp-reviews { position: relative; }
.vg-pdp-reviews::after { content: ''; position: absolute; inset-block: 0; inset-inline-end: -24px; width: 1px; background: var(--vg-c-e6eddd); }
.vg-pdp-description .vg-pdp-prose { margin-top: 0; }
.vg-pdp-review-list { margin: 0; padding: 0; list-style: none; }
.vg-pdp-review-list > li { margin: 0 0 14px; padding: 0; }
.vg-pdp-review-list .vg-review-card { min-height: 0; padding: 16px; border: 1px solid var(--vg-c-e6eddd); border-radius: 12px; background: var(--vg-white); }
.vg-pdp-review-list .vg-review-card > p { margin: 8px 0 16px; color: var(--vg-c-373737); font-size: 15px; text-align: start; }
.vg-pdp-review-list .vg-review-stars { font-size: 16px; }
.vg-pdp-bar-inner { display: flex; align-items: center; gap: 14px; padding-block: 8px; }
.vg-pdp-bar-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; color: var(--vg-text); }
.vg-pdp-bar-price { flex: none; font-size: 20px; font-weight: 700; color: var(--vg-green); }
.vg-pdp-bar-oos { flex: none; color: var(--vg-c-626b5c); font-weight: 700; }
.vg-pdp-bar .vg-pdp-bar-add { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 22px; border: 0; border-radius: 10px; background: var(--vg-green); color: var(--vg-white); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.vg-pdp-bar .vg-pdp-bar-add:hover { background: var(--vg-c-73b215); }
.vg-pdp-bar-add:focus-visible { outline: 3px solid var(--vg-c-163707); outline-offset: 2px; }

@media (max-width: 900px) {
    .vg-pdp-reviews::after { display: none; }
    .vg-pdp-columns { column-gap: 0; }
    .vg-pdp-gallery { justify-self: center; }
    .vg-pdp-columns > .vg-pdp-description { order: -1; }
}
@media (max-width: 600px) {
    .vg-pdp-bar-inner { gap: 10px; }
    .vg-pdp-bar-title { font-size: 14px; }
    .vg-pdp-bar-price { font-size: 17px; }
    .vg-pdp-bar .vg-pdp-bar-add { padding: 8px 14px; }
}

.vg-pdp-reviews::after { display: none; }
.vg-pdp-columns { position: relative; }
.vg-pdp-columns::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: calc((100% - 48px) * 5 / 11 + 24px); width: 1px; background: var(--vg-c-dce7d2); }
@media (max-width: 900px) { .vg-pdp-columns::before { display: none; }
}


/* Columns below the top block use the same 5fr/6fr split as the top block (picture | buy), so the divider and the description line up with it. */
.vg-pdp-columns { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
@media (max-width: 900px) { .vg-pdp-columns { grid-template-columns: minmax(0, 1fr); }
}

/* Product picture: centred in a full-width framed box. */
.vg-pdp-gallery { justify-self: stretch; }
.vg-pdp-zoom { display: flex; align-items: center; justify-content: center; width: 100%; padding: 28px 16px; border: 2px solid var(--vg-c-a8d68a); border-radius: 16px; background: var(--vg-white); box-shadow: 0 4px 16px var(--vg-c-54742614); }
.vg-pdp-zoom:hover { border-color: var(--vg-green); box-shadow: 0 8px 24px var(--vg-c-54742614); }
.vg-pdp-thumbs { justify-content: center; }
@media (max-width: 900px) { .vg-pdp-zoom { max-width: 360px; margin-inline: auto; } .vg-pdp-gallery { justify-self: stretch; }
}

/* Link in the "out of stock" banner: site green instead of the browser blue. */
.vg-pdp-notice a { color: var(--vg-green-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.vg-pdp-notice a:hover { color: var(--vg-c-163707); }

/* VG-124: review form. Collapse link, text field of 3 lines (4 on phones) growing to 8, buy bar hidden while the form is open. */
.vg-pdp-collapse { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 14px; padding: 0; border: 0; background: none; color: var(--vg-c-626b5c); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }
.vg-pdp-collapse[hidden] { display: none; }
.vg-pdp-collapse:hover { color: var(--vg-text); }
.vg-pdp-collapse:focus-visible { outline: 3px solid var(--vg-c-163707); outline-offset: 2px; }
.vg-pdp-field textarea[data-vg-autosize] { box-sizing: border-box; min-height: 95px; max-height: 215px; line-height: 24px; resize: none; overflow-y: auto; }
@media (max-width: 600px) { .vg-pdp-field textarea[data-vg-autosize] { min-height: 119px; } }
html.vg-review-open .vg-pdp-bar { display: none; }
