/* Product-only refinement of Q-paint's gallery, tabs and inquiry UI. */
.pg-product-page {
    --pg-product-border: #e2e5e9;
    --pg-product-muted: #606979;
    --pg-gallery-height: clamp(360px, 36vw, 490px);
}
.pg-product-page .product_info { margin-top: 36px; }
.pg-product-page .product_info > .cont {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 44px;
}
.pg-product-page .product_info .images,
.pg-product-page .product_info .data { width: auto; min-width: 0; max-width: none; margin: 0; }
.pg-product-page .pg-product-gallery { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; align-items: start; }
.pg-product-page .product_info .thumbs { width: 78px; height: min(var(--pg-gallery-height), 340px); margin: 0; padding: 0 5px 0 0; }
.pg-product-page .product_info .thumbs .img { border-color: var(--pg-product-border); border-radius: 8px; padding: 8px; transition: border-color .18s, box-shadow .18s; }
.pg-product-page .product_info .thumbs .img::before,
.pg-product-page .product_info .thumbs .img::after { display: none; }
.pg-product-page .product_info .thumbs .swiper-slide-thumb-active .img { border-color: #ddb000; box-shadow: inset 0 0 0 1px #ddb000; }
.pg-product-page .product_info .thumbs .img:hover { border-color: #adb3bc; }
.pg-product-page .product_info .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pg-product-page .product_info .slider_img { width: 100%; min-width: 0; margin: 0; border-color: var(--pg-product-border); border-radius: 12px; background: #fff; }
.pg-product-page .product_info .slider_img .thumb { height: var(--pg-gallery-height); }
.pg-product-page .product_info .slider_img .img { padding: 28px 24px 50px; }
.pg-product-page .product_info .slider_img .img img { width: 100%; height: 100%; object-fit: contain; }
.pg-product-page .pg-product-placeholder { display: flex; align-items: center; justify-content: center; padding: 28px; }
.pg-product-page .pg-product-placeholder img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pg-product-page .pg-product-gallery[data-image-count="0"],
.pg-product-page .pg-product-gallery[data-image-count="1"] { grid-template-columns: minmax(0, 1fr); }
.pg-product-page .pg-product-gallery[data-image-count="0"] .thumbs,
.pg-product-page .pg-product-gallery[data-image-count="1"] .thumbs { display: none; }
.pg-product-page .pg-gallery-controls { position: absolute; bottom: 12px; left: 50%; z-index: 3; display: flex; align-items: center; gap: 12px; transform: translateX(-50%); border-radius: 24px; padding: 3px 6px; background: #fff; border: 1px solid #e9ebee; }
.pg-product-page .pg-gallery-controls button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 1px solid #e2e5e9; border-radius: 50%; appearance: none; background: #f5f6f7; color: #232c3e; font-size: 0; line-height: 0; box-shadow: none; cursor: pointer; transition: background-color .18s, border-color .18s; }
/* Draw the same centered chevron in both buttons instead of font-baseline glyphs. */
.pg-product-page .pg-gallery-controls button::before { content: ''; display: block; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m8.5 5 7 7-7 7' fill='none' stroke='%23232c3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat; }
.pg-product-page .pg-gallery-controls .pg-gallery-prev::before { transform: rotate(180deg); }
.pg-product-page .pg-gallery-controls button:enabled:hover { background: #ffc800; border-color: #e3b300; }
.pg-product-page .pg-gallery-controls button:enabled:active { background: #edb900; border-color: #cf9f00; }
.pg-product-page .pg-gallery-controls button:focus:not(:focus-visible) { outline: none; }
.pg-product-page .pg-gallery-controls button:focus-visible { outline: 2px solid #806000; outline-offset: -3px; }
.pg-product-page .pg-gallery-controls button:disabled { opacity: 1; background: #f5f6f7; border-color: transparent; cursor: default; }
.pg-product-page .pg-gallery-controls button:disabled::before { opacity: .35; }
.pg-product-page .pg-gallery-count { min-width: 36px; color: var(--pg-product-muted); text-align: center; font-size: 12px; line-height: 20px; font-variant-numeric: tabular-nums; }
.pg-product-page .product_info .product_name { margin: 0; font-size: clamp(25px, 2.35vw, 34px); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.pg-product-page .product_info .product_name .title_img { width: 82px; min-width: 0; left: -32px; top: -23px; opacity: .65; }
.pg-product-page .product_info .top { justify-content: flex-start; gap: 20px; margin-top: 18px; }
.pg-product-page .product_info .in_stock { padding: 5px 12px; background: #e9f7ee; color: #218349; line-height: 20px; text-transform: none; font-weight: 600; }
.pg-product-page .product_info .in_stock.pg-product-availability--order { background: #fff6db; color: #936b00; }
.pg-product-page .product_info .feature { display: grid; gap: 0; margin-top: 24px; padding: 4px 0; border-top: 1px solid var(--pg-product-border); border-bottom: 1px solid var(--pg-product-border); }
.pg-product-page .feature .item { gap: 20px; margin: 0; padding: 10px 0; align-items: baseline; }
.pg-product-page .feature .item .name,
.pg-product-page .feature .item .val { min-width: 0; font-size: 14px; line-height: 1.5; }
.pg-product-page .feature .item .name { flex-shrink: 0; font-weight: 400; color: var(--pg-product-muted); }
.pg-product-page .feature .item .val { text-align: right; overflow-wrap: anywhere; }
.pg-product-page .feature .item .val a { color: #232732; text-decoration-color: #d9ae00; text-underline-offset: 4px; }
.pg-product-page .small_description { margin-top: 22px; }
.pg-product-page .small_description .title { font-size: 15px; line-height: 1.5; }
.pg-product-page .small_description .desc { margin-top: 8px; font-size: 14px; line-height: 1.75; max-height: 98px; }
.pg-product-page .small_description .desc.all { max-height: none; }
.pg-product-page .small_description .desc p { margin: 0 0 10px; }
.pg-product-page .small_description .desc > :last-child { margin-bottom: 0; }
.pg-product-page .small_description .more_desc { margin-top: 8px; color: #8a6500; font-weight: 600; }
.pg-product-page .small_description .more_desc[hidden] { display: none; }
.pg-product-page .discover { margin-top: 26px; padding: 22px; border: 1px solid #eee3ba; border-radius: 12px; background: #fffcf2; scroll-margin-top: 28px; }
.pg-product-page .discover .title { font-size: 21px; line-height: 1.3; font-weight: 600; text-transform: none; }
.pg-product-page .pg-price-help { margin: 8px 0 0; color: var(--pg-product-muted); font-size: 14px; line-height: 1.6; }
.pg-product-page .form_discover { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; max-width: none; margin-top: 18px; }
.pg-product-page .pg-product-hidden-fields { display: contents; }
.pg-product-page .pg-price-field { display: grid; gap: 7px; min-width: 0; }
.pg-product-page .pg-price-field > span { color: #4c5260; font-size: 12px; line-height: 16px; }
.pg-product-page .form_discover .input { width: 100%; min-width: 0; height: 50px; margin: 0; padding: 0 14px; border-color: #d6dbe1; color: #232732; background: #fff; font-size: 14px; }
.pg-product-page .form_discover .input::placeholder { color: #858a95; opacity: 1; }
.pg-product-page .form_discover .submit_btn { width: auto; min-width: 146px; height: 50px; margin: 0; padding: 0 18px; font-size: 14px; line-height: 1.3; border: 0; cursor: pointer; }
.pg-product-page .form_discover .pg-form-status { grid-column: 1 / -1; margin-top: 0; }
.pg-product-page .form_discover .pg-field-error { font-size: 12px; }
.pg-product-page .description { margin-top: 48px; }
.pg-product-page .tabs_container { min-width: 0; }
.pg-product-page .tabs_el { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--pg-product-border); border-bottom: 0; border-radius: 10px 10px 0 0; background: #f5f6f7; }
.pg-product-page .tabs_el button { min-width: 0; width: auto; min-height: 70px; gap: 10px; padding: 16px 14px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; flex-wrap: nowrap; font-size: 15px; line-height: 1.35; text-align: center; box-shadow: none; }
.pg-product-page .tabs_el button:first-child { border-radius: 9px 0 0 0; }
.pg-product-page .tabs_el button:last-child { border-radius: 0 9px 0 0; }
.pg-product-page .tabs_el button .icon { flex-shrink: 0; }
.pg-product-page .tabs_el button .name { max-width: none; margin: 0; }
.pg-product-page .tabs_el button:hover { background: #fff; box-shadow: none; }
.pg-product-page .tabs_el button.active { border-bottom-color: #ffc800; background: #fff; box-shadow: none; }
.pg-product-page .tab_content { scroll-margin-top: 24px; }
.pg-product-page .tab_content.active { margin: 0; padding: 28px 30px; border: 1px solid var(--pg-product-border); border-top: 0; border-radius: 0 0 10px 10px; background: #fff; box-shadow: none; }
.pg-product-page .tab_content[hidden] { display: none; }
.pg-product-page .tab_content .text_block { max-width: 100%; margin: 0; font-size: 15px; line-height: 1.8; }
.pg-product-page .tab_content .text_block > :first-child { margin-top: 0; }
.pg-product-page .tab_content .text_block > :last-child { margin-bottom: 0; }
.pg-product-page .tab_content .text_block img { max-width: 100%; height: auto; }
.pg-product-page .pg-product-features { max-width: 900px; margin: 0; }
.pg-product-page .pg-product-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 15px 0; border-bottom: 1px solid #eceef1; font-size: 14px; line-height: 1.6; }
.pg-product-page .pg-product-feature:first-child { padding-top: 0; }
.pg-product-page .pg-product-feature:last-child { padding-bottom: 0; border-bottom: 0; }
.pg-product-page .pg-product-feature dt { color: var(--pg-product-muted); font-weight: 400; }
.pg-product-page .pg-product-feature dd { min-width: 0; margin: 0; color: #232732; overflow-wrap: anywhere; text-align: right; }
.pg-product-page .pg-product-empty { padding: 8px 0; color: var(--pg-product-muted); font-size: 15px; line-height: 1.8; }
.pg-product-page .pg-product-empty a { color: #795b00; text-underline-offset: 3px; }
/* The original .products margin-top is 163px; a nested tab grid needs none. */
.pg-product-page #tab3 > .products { margin: 0; padding: 0; }
.pg-product-page #tab3 .pg-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; }
.pg-product-page #tab3 .pg-related-grid > .product { width: auto; min-width: 0; margin: 0; }
.pg-product-page .pg-product-related .product,
.pg-product-page .pg-product-similar .product { display: flex; flex-direction: column; padding: 32px 16px 16px; background: #fff; }
.pg-product-page .pg-product-related .product .thumb,
.pg-product-page .pg-product-similar .product .thumb { flex-shrink: 0; }
.pg-product-page .pg-product-related .product .top,
.pg-product-page .pg-product-similar .product .top { gap: 8px; margin-top: 20px; }
.pg-product-page .pg-product-related .product .name,
.pg-product-page .pg-product-similar .product .name { height: auto !important; min-height: 42px; margin-top: 12px; line-height: 1.5; }
.pg-product-page .pg-product-related .product .rating,
.pg-product-page .pg-product-similar .product .rating { gap: 8px; margin-top: 12px; padding-bottom: 16px; }
.pg-product-page .pg-product-related .product .more,
.pg-product-page .pg-product-similar .product .more { margin-top: auto; }
.pg-product-page .have_questions { margin-top: 56px; }
.pg-product-page .products.pg-product-similar { margin-top: 56px; }
.pg-product-page .products.pg-product-similar { padding-bottom: 64px; }
.pg-product-page button:focus-visible,
.pg-product-page a:focus-visible,
.pg-product-page input:focus-visible,
.pg-product-page [role="tabpanel"]:focus-visible { outline: 2px solid #9f7800; outline-offset: 4px; }
@media (max-width: 1100px) {
    .pg-product-page .product_info > .cont { gap: 30px; }
    .pg-product-page .pg-product-gallery { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
    .pg-product-page .product_info .thumbs { width: 64px; }
    .pg-product-page .product_info .slider_img .img { padding: 20px 16px 48px; }
    .pg-product-page .discover { padding: 18px; }
    .pg-product-page .form_discover { grid-template-columns: minmax(0, 1fr); }
    .pg-product-page .form_discover .input { font-size: 16px; }
    .pg-product-page .form_discover .submit_btn { width: 100%; }
}
@media (max-width: 900px) {
    .pg-product-page { --pg-gallery-height: clamp(360px, 62vw, 460px); }
    .pg-product-page .product_info > .cont { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .pg-product-page .product_info .images { width: 100%; max-width: 650px; margin: 0 auto; }
    .pg-product-page .product_info .data { width: 100%; max-width: 650px; margin: 0 auto; }
    .pg-product-page .product_info .product_name { font-size: 29px; }
    .pg-product-page .product_info .product_name .title_img { display: none; }
    .pg-product-page .form_discover { grid-template-columns: minmax(0, 1fr) auto; }
    .pg-product-page .form_discover .submit_btn { width: auto; }
    .pg-product-page #tab3 .pg-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .pg-product-page { --pg-gallery-height: clamp(275px, 79vw, 410px); }
    .pg-product-page .product_info { margin-top: 24px; }
    .pg-product-page .product_info > .cont { gap: 28px; }
    .pg-product-page .pg-product-gallery { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .pg-product-page .product_info .slider_img { order: 0; }
    .pg-product-page .product_info .thumbs { order: 1; width: 100%; height: 76px; padding: 0 0 5px; }
    .pg-product-page .product_info .thumbs .item { padding: 0; height: 100%; }
    .pg-product-page .product_info .thumbs .img { padding: 6px; }
    .pg-product-page .product_info .swiper-container-horizontal > .swiper-scrollbar { bottom: 0; height: 2px; }
    .pg-product-page .product_info .product_name { font-size: 25px; line-height: 1.3; }
    .pg-product-page .product_info .top { gap: 16px; margin-top: 16px; }
    .pg-product-page .product_info .feature { margin-top: 20px; }
    .pg-product-page .small_description .desc { font-size: 14px; line-height: 1.7; max-height: 95px; }
    .pg-product-page .small_description .desc.all { max-height: none; }
    .pg-product-page .discover { margin-top: 22px; padding: 18px; }
    .pg-product-page .discover .title { font-size: 20px; }
    .pg-product-page .form_discover { grid-template-columns: minmax(0, 1fr); }
    .pg-product-page .form_discover .submit_btn { width: 100%; }
    .pg-product-page .description { margin-top: 32px; }
    .pg-product-page .tabs_el button { flex-direction: column; gap: 8px; min-height: 92px; padding: 12px 6px; font-size: 12px; white-space: normal; }
    .pg-product-page .tabs_el button .name { white-space: normal; overflow-wrap: anywhere; }
    .pg-product-page .tabs_el button .icon { width: 21px; height: 21px; }
    .pg-product-page .tab_content.active { padding: 22px 18px; }
    .pg-product-page .tab_content .text_block { font-size: 14px; line-height: 1.75; }
    .pg-product-page .pg-product-feature { gap: 16px; padding: 13px 0; font-size: 13px; }
    .pg-product-page #tab3 .pg-related-grid { gap: 16px; }
    .pg-product-page .have_questions,
    .pg-product-page .products.pg-product-similar { margin-top: 40px; }
}
@media (max-width: 479px) {
    .pg-product-page .tabs_el { grid-template-columns: minmax(0, 1fr); }
    .pg-product-page .tabs_el button { flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; min-height: 48px; padding: 12px 14px; font-size: 14px; text-align: left; }
    .pg-product-page .tabs_el button:first-child { border-radius: 9px 9px 0 0; }
    .pg-product-page .tabs_el button:last-child { border-radius: 0; }
    .pg-product-page .tabs_el button .name { min-width: 0; white-space: normal; overflow-wrap: normal; word-break: normal; }
    .pg-product-page #tab3 .pg-related-grid { grid-template-columns: minmax(0, 1fr); }
    .pg-product-page .pg-product-related .product .thumb { padding-bottom: 65%; }
    .pg-product-page .pg-product-related .product .top { margin-top: 16px; }
}
