/* as-product.css - product page (redesign phase 3, 2026-12). Builds on as-design.css tokens (--as-*).
   Linked from catalog/view/template/product/product.twig with ?v=YYYYMMDD (after the head CSS bundle, so it wins
   over stylesheet.css / theme.css at equal specificity). Behaviour: extension/as_product_page/.../product_page.js.
   Phone first: gallery, brand, title, rating, price, stock/delivery, options, quantity + Add to Cart. */

.as-pp { --as-ok: #15803d; --as-warn: #b45309; --as-info: #1d4ed8; --as-bad: #b91c1c; --as-gap: 40px; }

/* ---------- breadcrumb (phones: "< parent") ---------- */
.as-pp-back { margin: 2px 0 10px; font-size: 14px; }
.as-pp-back a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--as-text); font-weight: 500; text-decoration: none; }
.as-pp-back a:hover { color: var(--as-red-text); }
.as-pp-back i { font-size: 11px; color: var(--as-muted); }

/* ---------- main area: gallery | info ---------- */
.as-pp-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 28px; }
@media (min-width: 768px) {
	.as-pp-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
}
@media (min-width: 992px) {
	.as-pp-main { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: var(--as-gap); margin-bottom: 36px; }
	.as-pp-gallery { position: sticky; top: 16px; align-self: start; }
}
@media (min-width: 1200px) { .as-pp { --as-gap: 56px; } }
.as-pp-main.as-pp-noimg { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

/* ---------- gallery ---------- */
.as-pp-gallery { min-width: 0; }
.as-pp-stage { position: relative; background: #fff; border: 1px solid var(--as-line); border-radius: 14px; overflow: hidden; }
.as-pp-track {
	display: flex; aspect-ratio: var(--as-ratio, 1 / 1); overflow-x: auto; overflow-y: hidden;
	scroll-snap-type: x mandatory; scroll-behavior: auto; overscroll-behavior-x: contain;
	scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: 0;
}
.as-pp-track::-webkit-scrollbar { display: none; }
.as-pp-track:focus-visible { box-shadow: inset 0 0 0 2px var(--as-red); }
.as-pp-slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: start; scroll-snap-stop: always; cursor: zoom-in; }
.as-pp-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.as-pp-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 9px; border-radius: 6px; background: var(--as-red); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; pointer-events: none; }
.as-pp-zoom { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--as-ink); box-shadow: 0 1px 4px rgba(17, 24, 39, .14); pointer-events: none; }
.as-pp-nav { position: absolute; top: 50%; z-index: 2; display: none; align-items: center; justify-content: center; width: 42px; height: 42px; margin-top: -21px; padding: 0; border: 1px solid var(--as-line); border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--as-ink); box-shadow: 0 4px 14px rgba(17, 24, 39, .12); opacity: 0; transition: opacity .2s, background-color .15s; }
.as-pp-prev { left: 12px; }
.as-pp-next { right: 12px; }
.as-pp-nav:hover { background: #fff; color: var(--as-red-text); }
.as-pp-nav:focus-visible { opacity: 1; }
@media (hover: hover) and (min-width: 768px) {
	.as-pp-nav { display: inline-flex; }
	.as-pp-stage:hover .as-pp-nav { opacity: 1; }
}
.as-pp-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.as-pp-dots span { width: 7px; height: 7px; border-radius: 4px; background: rgba(17, 24, 39, .22); transition: width .2s var(--as-ease), background-color .2s; }
.as-pp-dots span.is-active { width: 20px; background: var(--as-ink); }
.as-pp-count { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 2px 9px; border-radius: 999px; background: rgba(17, 24, 39, .72); color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; font-variant-numeric: tabular-nums; pointer-events: none; }
.as-pp-dots ~ .as-pp-count { display: none; }
.as-pp-thumbs { display: none; }
@media (min-width: 768px) {
	.as-pp-dots, .as-pp-count { display: none; }
	.as-pp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
	.as-pp-thumb { flex: 0 0 auto; width: 68px; height: 68px; padding: 3px; border: 1px solid var(--as-line); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
	.as-pp-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
	.as-pp-thumb:hover { border-color: #9ca3af; }
	.as-pp-thumb.is-active { border-color: var(--as-ink); box-shadow: inset 0 0 0 1px var(--as-ink); }
}
@media (max-width: 767.98px) {
	/* phones: edge-to-edge photo */
	.as-pp-gallery { margin-left: -12px; margin-right: -12px; }
	.as-pp-stage { border: 0; border-radius: 0; border-bottom: 1px solid var(--as-line); }
}
/* lightbox: theme.css forces 600px high images */
.mfp-img { height: auto !important; }

/* ---------- info column ---------- */
.as-pp-info { min-width: 0; }
.as-pp-brand { display: inline-block; margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--as-red-text); text-decoration: none; }
.as-pp-brand:hover { text-decoration: underline; }
.as-pp-head { display: flex; align-items: flex-start; gap: 12px; }
#product-info .as-pp-head h1 { flex: 1 1 auto; min-width: 0; margin: 0 0 10px; font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.018em; color: var(--as-ink); overflow-wrap: anywhere; }
@media (min-width: 1200px) { #product-info .as-pp-head h1 { font-size: 28px; } }
@media (max-width: 767.98px) { #product-info .as-pp-head h1 { font-size: 21px; line-height: 1.3; margin-bottom: 8px; } }
.as-pp-wish-form { flex: 0 0 auto; display: flex; gap: 6px; margin: 0; }
.as-pp-wish, .as-pp-wish-form .btn-light { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--as-line); border-radius: 50%; background: #fff; color: var(--as-ink); font-size: 18px; line-height: 1; transition: color .15s, border-color .15s, background-color .15s; }
.as-pp-wish:hover, .as-pp-wish:focus-visible { border-color: var(--as-red); background: var(--as-red-soft); color: var(--as-red); }
.as-pp-wish-form .btn-light:hover { border-color: #9ca3af; }

.as-pp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 14px; font-size: 13px; color: var(--as-muted); }
.as-pp-model { color: var(--as-text); font-weight: 500; }
.as-pp-rating-link { display: inline-flex; align-items: center; gap: 6px; color: var(--as-text); text-decoration: none; }
.as-pp-rating-link strong { color: var(--as-ink); font-weight: 700; }
.as-pp-rating-link span { color: var(--as-muted); }
.as-pp-rating-link:hover span { color: var(--as-red-text); text-decoration: underline; }
.as-pp-rating-link.is-empty span { color: var(--as-text); }

/* stars: grey row with a gold row clipped to the rating on top */
.as-stars { position: relative; display: inline-flex; flex: 0 0 auto; vertical-align: -2px; line-height: 0; }
.as-stars-bg, .as-stars-fg { display: inline-flex; gap: 1px; }
.as-stars-bg svg { fill: #d9dce1; }
.as-stars-fg { position: absolute; top: 0; left: 0; bottom: 0; width: var(--as-rate, 0%); overflow: hidden; }
.as-stars-fg svg { flex: 0 0 auto; fill: #f59e0b; }

/* price block */
.as-pp-pricebox { margin: 0 0 16px; }
.as-pp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; line-height: 1.15; }
.as-pp-price .price-new { font-size: 30px; font-weight: 700; color: var(--as-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.as-pp-price .price-new.is-special { color: var(--as-red-text); }
.as-pp-price .price-old { font-size: 16px; color: var(--as-muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.as-pp-off { align-self: center; padding: 3px 8px; border-radius: 6px; background: var(--as-red-soft); color: var(--as-red-text); font-size: 13px; font-weight: 700; }
@media (max-width: 767.98px) { .as-pp-price .price-new { font-size: 27px; } }
.as-pp-save { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--as-ok); }
.as-pp-bnpl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--as-text); text-decoration: none; }
.as-pp-bnpl strong { color: var(--as-ink); font-weight: 600; }
.as-pp-bnpl:hover { color: var(--as-ink); }
.as-pp-bnpl:hover strong { text-decoration: underline; }
.as-pp-bnpl-logos { display: inline-flex; gap: 4px; }
.as-pp-bnpl .as-pay-badge { display: block; border-radius: 4px; }
.as-pp-price-extra { margin: 8px 0 0; font-size: 13px; color: var(--as-muted); }
.as-pp-tier strong { color: var(--as-ink); }
/* quantity_discount module table (vqmod inserts it into this block; its inline width/border are overridden) */
.as-pp-pricebox > table.table { width: auto !important; min-width: 220px; margin: 12px 0 0; font-size: 13px; border-color: var(--as-line) !important; }
.as-pp-pricebox > table.table th, .as-pp-pricebox > table.table td { padding: 6px 12px; }
.as-pp-pricebox > table.table thead tr:first-child th { background: var(--as-red-soft); color: var(--as-red-text); font-size: 13px !important; }

/* stock + delivery */
.as-pp-avail { display: grid; gap: 8px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--as-line); border-radius: 12px; background: #fafafa; font-size: 14px; }
.as-pp-stock { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-weight: 600; color: var(--as-ink); }
.as-pp-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.as-pp-stock-in .as-pp-dot { color: var(--as-ok); }
.as-pp-stock-low .as-pp-dot { color: var(--as-warn); }
.as-pp-stock-pre .as-pp-dot, .as-pp-stock-order .as-pp-dot { color: var(--as-info); }
.as-pp-stock-out .as-pp-dot { color: var(--as-bad); }
.as-pp-stock-in { color: var(--as-ok); }
.as-pp-stock-pre, .as-pp-stock-order { color: var(--as-info); }
.as-pp-stock-out { color: var(--as-bad); }
.as-pp-low { font-weight: 600; color: var(--as-warn); }
.as-pp-note { margin: 0; font-size: 13.5px; color: var(--as-text); }
.as-pp-delivery { display: flex; gap: 8px; align-items: flex-start; }
.as-pp-delivery > i { margin-top: 3px; color: var(--as-ok); }
.as-pp-delivery-main { font-weight: 600; color: var(--as-ink); }
.as-pp-flat { font-weight: 400; color: var(--as-muted); }
.as-pp-delivery-gcc { font-size: 13px; color: var(--as-muted); }

/* options */
.as-pp-options { margin: 0 0 6px; }
.as-pp-options-h { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--as-ink); }
.as-pp-options .form-label { margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--as-ink); }
.as-pp-options .form-select, .as-pp-options .form-control { min-height: 46px; border-color: #d1d5db; border-radius: 10px; font-size: 15px; color: var(--as-ink); }
.as-pp-options textarea.form-control { min-height: 96px; }
.as-pp-options .input-group .form-control { border-radius: 10px 0 0 10px; }
.as-pp-options .input-group-text { border-color: #d1d5db; border-radius: 0 10px 10px 0; background: var(--as-soft); }
.as-pp-options .form-select:focus, .as-pp-options .form-control:focus { border-color: var(--as-ink); box-shadow: 0 0 0 3px rgba(17, 24, 39, .08); }
.as-pp-options .is-invalid, .as-pp-options .form-select.is-invalid, .as-pp-options .form-control.is-invalid { border-color: var(--as-bad); }
.as-pp-options .invalid-feedback { font-size: 13px; font-weight: 500; color: var(--as-bad); }
.as-pp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.as-pp-chips .form-check { position: relative; min-height: 0; margin: 0; padding: 0; }
.as-pp-chips .form-check-input { position: absolute; top: 50%; left: 12px; margin: -8px 0 0; width: 16px; height: 16px; float: none; }
.as-pp-chips .form-check-input:checked { background-color: var(--as-red); border-color: var(--as-red); }
.as-pp-chips .form-check-input:focus { box-shadow: none; }
.as-pp-chips .form-check-label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 36px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; color: var(--as-ink); font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.as-pp-chips .form-check-label:hover { border-color: #9ca3af; }
.as-pp-chips .form-check-input:checked + .form-check-label { border-color: var(--as-ink); box-shadow: inset 0 0 0 1px var(--as-ink); }
.as-pp-chips .form-check-input:focus-visible + .form-check-label { outline: 2px solid var(--as-red); outline-offset: 2px; }
.as-pp-chips .form-check-label.is-invalid, .as-pp-chips .form-check-input.is-invalid + .form-check-label { border-color: var(--as-bad); }
.as-pp-chips .form-check-label .img-thumbnail { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; object-fit: cover; }
.as-pp-opt-price { color: var(--as-muted); font-size: 13px; font-weight: 400; }
.as-pp-upload { min-height: 44px; border: 1px dashed #9ca3af; border-radius: 10px; background: #fff; font-weight: 600; }

/* quantity stepper + Add to Cart */
.as-pp-buy { display: flex; gap: 10px; align-items: stretch; margin: 4px 0 0; }
.as-qty { flex: 0 0 auto; display: inline-flex; align-items: stretch; height: 52px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; overflow: hidden; }
.as-qty-btn { width: 42px; padding: 0; border: 0; background: transparent; color: var(--as-ink); font-size: 13px; transition: background-color .15s; }
.as-qty-btn:hover { background: var(--as-soft); }
.as-qty-btn:active { background: #e5e7eb; }
#product-info .as-qty .as-pp-qty { width: 46px; min-width: 0; height: auto; padding: 0 2px; border: 0; border-radius: 0; box-shadow: none; background: transparent; text-align: center; font-size: 16px; font-weight: 600; color: var(--as-ink); font-variant-numeric: tabular-nums; }
#product-info .as-qty .as-pp-qty:focus { background: var(--as-soft); }
#product-info .as-qty:has(.is-invalid) { border-color: var(--as-bad); }
#button-cart.as-pp-cart { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; width: auto; padding: 0 20px; border-radius: 10px; font-size: 16px; font-weight: 700; letter-spacing: .005em; box-shadow: 0 6px 16px rgba(204, 0, 0, .18); transition: background-color .15s, box-shadow .15s, transform .1s; }
#button-cart.as-pp-cart:active { transform: translateY(1px); }
#button-cart.as-pp-cart:disabled { opacity: .85; }
#button-cart.as-pp-cart.is-added { background: var(--as-ok) !important; border-color: var(--as-ok) !important; box-shadow: none; }
#error-quantity:not(:empty) { margin-top: 6px; color: var(--as-bad); font-size: 13px; font-weight: 500; }
.as-pp-min { margin-top: 8px; font-size: 13px; color: var(--as-info); }

/* Pay in 4 (Tabby + Tamara): space reserved so the lazy widgets do not shift the page */
.as-pay4 { display: grid; grid-template-columns: 1fr; gap: .4rem; margin: 16px 0 6px; scroll-margin: 120px; }
.as-pay4-item { min-width: 0; }
.as-pay4 #TabbyPromo { margin: 0; }
/* reserved heights = rendered widget heights (measured Oct 2026), so the lazy load causes no layout shift */
.as-pay4-tabby { min-height: 89px; }
.as-pay4-tamara { min-height: 106px; }
@media (max-width: 374.98px) { .as-pay4-tamara { min-height: 130px; } }
@media (min-width: 576px) and (max-width: 991.98px) { .as-pay4-tamara { min-height: 130px; } }
/* Tabby promo heights in this layout (measured 2026-12-05): 89px up to 1199px, 72px at 1200-1399px, 62px from 1400px */
@media (min-width: 1200px) { .as-pay4-tabby { min-height: 72px; } }
@media (min-width: 1400px) { .as-pay4-tabby { min-height: 62px; } }
/* until a widget has drawn itself its reserved box shows as a soft placeholder, so it never reads as an empty gap */
.as-pay4-tabby:has(> #TabbyPromo:empty), .as-pay4-tamara:has(> tamara-widget:not(:defined)) { border: 1px solid var(--as-line); border-radius: 8px; background: linear-gradient(100deg, #f6f6f7 30%, #fbfbfc 50%, #f6f6f7 70%) 0 0 / 300% 100%; animation: as-pay4-wait 1.6s linear infinite; }
@keyframes as-pay4-wait { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .as-pay4-item { animation: none !important; } }
@media (min-width: 992px) {
	.as-pay4-two { grid-template-columns: 1fr 1fr; gap: .6rem; }
	.as-pay4-two .as-pay4-item { min-height: 139px; }
}
.as-pay4-item.is-empty { display: none; }

/* WhatsApp + small links */
.as-pp-help { display: grid; gap: 10px; margin: 14px 0 0; }
.as-pp-wa { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 16px; border: 1px solid #b7e4c7; border-radius: 10px; background: #f0fbf4; color: #146c43; font-size: 15px; font-weight: 600; text-align: left; line-height: 1.25; }
.as-pp-wa i { font-size: 22px; color: #25d366; }
.as-pp-wa small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: #4b7a5e; }
.as-pp-wa:hover, .as-pp-wa:focus-visible { border-color: #25d366; background: #e6f8ed; color: #0f5132; }
.as-pp-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; font-size: 13.5px; }
.as-pp-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--as-text); text-decoration: none; }
.as-pp-links a i { color: var(--as-muted); }
.as-pp-links a:hover { color: var(--as-red-text); }

/* ---------- trust row (same look as the home page trust bar) ---------- */
.as-pp-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 32px; }
.as-pp-trust a { display: flex; align-items: center; gap: .7rem; height: 100%; padding: .75rem .9rem; border: 1px solid var(--as-line); border-radius: 12px; background: #fff; color: var(--as-text); text-decoration: none; line-height: 1.25; transition: border-color .15s, box-shadow .15s; }
.as-pp-trust a:hover { border-color: #d1d5db; box-shadow: 0 6px 16px rgba(17, 24, 39, .06); }
.as-pp-trust-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--as-red-soft); color: var(--as-red); font-size: 1.1rem; }
.as-pp-trust-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--as-ink); }
.as-pp-trust-text span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--as-muted); }
@media (max-width: 991.98px) { .as-pp-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
	.as-pp-trust { gap: 6px; margin-bottom: 24px; }
	.as-pp-trust a { padding: .55rem .6rem; gap: .5rem; border-radius: 10px; }
	.as-pp-trust-icon { width: 1.9rem; height: 1.9rem; font-size: .95rem; }
	.as-pp-trust-text strong { font-size: 12.5px; }
	.as-pp-trust-text span { display: none; }
}

/* ---------- Description / Specification / Reviews ---------- */
.as-pp-tabs { margin: 0 0 36px; }
.as-pp-tablist { display: none; }
.as-pp-sec-h { margin: 0; font-size: inherit; }
.as-pp-acc { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0; border: 0; background: none; color: var(--as-ink); font-size: 17px; font-weight: 700; text-align: left; letter-spacing: -.01em; }
.as-pp-chev { flex: 0 0 auto; width: 9px; height: 9px; margin: 0 4px 4px 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--as-ease); }
.as-pp-sec.is-open .as-pp-chev { transform: translateY(4px) rotate(-135deg); }
.as-pp-panel { min-width: 0; }

@media (max-width: 767.98px) {
	.as-pp-sec { border-top: 1px solid var(--as-line); }
	.as-pp-sec:last-child { border-bottom: 1px solid var(--as-line); }
	.as-pp-sec:not(.is-open) > .as-pp-panel { display: none; }
	.as-pp-sec.is-open > .as-pp-panel { padding-bottom: 20px; }
}
@media (min-width: 768px) {
	.as-pp-tablist { display: flex; gap: 32px; margin: 0 0 24px; border-bottom: 1px solid var(--as-line); }
	.as-pp-tab { position: relative; padding: 14px 0 13px; color: var(--as-muted); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
	.as-pp-tab:hover { color: var(--as-ink); }
	.as-pp-tab.is-active { color: var(--as-ink); }
	.as-pp-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--as-red); }
	.as-pp-sec-h { display: none; }
	.as-pp-sec:not(.is-active) { display: none; }
}

/* long descriptions: readable measure, normalised pasted styles, media never wider than the column */
#tab-description.as-pp-desc { max-width: 880px; font-size: 15px; line-height: 1.7; color: var(--as-text); overflow-wrap: break-word; }
.as-pp-desc p { margin: 0 0 1em; }
.as-pp-desc ul, .as-pp-desc ol { margin: 0 0 1em; padding-left: 1.3em; }
.as-pp-desc li { margin-bottom: .3em; }
.as-pp-desc h1, .as-pp-desc h2, .as-pp-desc h3, .as-pp-desc h4 { margin: 1.4em 0 .5em; color: var(--as-ink); line-height: 1.3; }
.as-pp-desc h1, .as-pp-desc h2 { font-size: 21px; }
.as-pp-desc h3 { font-size: 18px; }
.as-pp-desc > :first-child { margin-top: 0; }
.as-pp-desc strong, .as-pp-desc b { color: var(--as-ink); font-weight: 650; }
.as-pp-desc a { color: var(--as-red-text); }
.as-pp-desc [style*="color:#000000"], .as-pp-desc [style*="color: #000000"], .as-pp-desc [style*="color:#000;"], .as-pp-desc [style*="color: rgb(0, 0, 0)"] { color: inherit !important; }
.as-pp-desc [style*="font-size:13px"], .as-pp-desc [style*="font-size: 13px"], .as-pp-desc [style*="font-size:14px"], .as-pp-desc [style*="font-size: 14px"], .as-pp-desc [style*="font-size:15px"], .as-pp-desc [style*="font-size: 15px"], .as-pp-desc [style*="font-size:16px"], .as-pp-desc [style*="font-size: 16px"] { font-size: inherit !important; }
.as-pp-desc [style*="font-family"] { font-family: inherit !important; }
.as-pp-desc img { max-width: 100%; height: auto; border-radius: 8px; }
.as-pp-desc table { display: block; max-width: 100%; overflow-x: auto; margin: 0 0 1em; border-collapse: collapse; font-size: 14px; }
.as-pp-desc table td, .as-pp-desc table th { padding: 6px 10px; border: 1px solid var(--as-line); vertical-align: top; }
.as-pp-desc iframe { display: block; width: 100%; max-width: 720px; height: auto; aspect-ratio: 16 / 9; margin: 0 0 1em; border: 0; border-radius: 12px; }
/* YouTube click-to-play preview (vqmod as_improve_pagespeed) and the player it opens */
.as-pp-desc .youtube-lazy { width: 100%; max-width: 720px; margin: 0 0 1em; border-radius: 12px; overflow: hidden; background: #000; }
.as-pp-desc .youtube-lazy img { height: 100%; object-fit: cover; border-radius: 0; }
.as-pp-desc .youtube-lazy iframe { width: 100% !important; height: 100% !important; max-width: none; margin: 0; border-radius: 0; }
@media (max-width: 767.98px) {
	#tab-description.as-pp-desc { font-size: 15px; line-height: 1.65; }
	.as-pp-desc [style*="font-size:2"], .as-pp-desc [style*="font-size: 2"], .as-pp-desc [style*="font-size:3"], .as-pp-desc [style*="font-size: 3"] { font-size: 19px !important; line-height: 1.3 !important; }
	#tab-description.is-folded { max-height: 640px; overflow: hidden !important; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
}
.as-pp-more { display: block; width: 100%; min-height: 46px; margin: 4px 0 4px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; color: var(--as-ink); font-size: 14.5px; font-weight: 600; }
.as-pp-more:hover { border-color: var(--as-ink); }

/* specification table */
.as-pp-spec { width: 100%; max-width: 880px; margin: 0; font-size: 14px; border-collapse: collapse; }
.as-pp-spec thead th { padding: 14px 12px 8px; border: 0; background: none; color: var(--as-ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.as-pp-spec thead:first-child th { padding-top: 0; }
.as-pp-spec tbody th, .as-pp-spec tbody td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--as-line); vertical-align: top; }
.as-pp-spec tbody th { width: 40%; font-weight: 500; color: var(--as-muted); }
.as-pp-spec tbody td { color: var(--as-ink); }
.as-pp-spec tbody tr:nth-child(odd) > * { background: #fafafa; }
@media (max-width: 767.98px) { .as-pp-spec tbody th { width: 45%; } .as-pp-spec tbody th, .as-pp-spec tbody td { padding: 9px 8px; } }

/* reviews */
#tab-review { max-width: 880px; }
.as-rv-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 18px; }
.as-rv-score { display: flex; align-items: baseline; gap: 4px; }
.as-rv-score strong { font-size: 36px; line-height: 1; font-weight: 700; color: var(--as-ink); }
.as-rv-score span { font-size: 14px; color: var(--as-muted); }
.as-rv-summary .as-stars svg { width: 20px; height: 20px; }
.as-rv-count { margin-top: 2px; font-size: 13px; color: var(--as-muted); }
.as-rv-none { margin: 0; flex: 1 1 260px; color: var(--as-text); }
.as-rv-write { margin-left: auto; min-height: 42px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 10px; }
@media (max-width: 575.98px) { .as-rv-write { margin-left: 0; width: 100%; justify-content: center; } }
.as-rv-list { display: grid; gap: 10px; margin: 0 0 12px; }
.as-rv { padding: 14px 16px; border: 1px solid var(--as-line); border-radius: 12px; background: #fff; }
.as-rv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.as-rv-head > div { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.as-rv-avatar { flex: 0 0 36px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--as-soft); color: var(--as-ink); font-weight: 700; }
.as-rv-author { display: block; color: var(--as-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-rv-date { display: block; font-size: 12.5px; color: var(--as-muted); }
.as-rv-text { margin: 0; white-space: pre-line; color: var(--as-text); }
.as-rv-empty { color: var(--as-muted); }
.as-rv-pager .pagination { margin: 0 0 12px; }
.as-rv-form { max-width: 640px; margin-top: 24px; padding: 18px; border: 1px solid var(--as-line); border-radius: 14px; background: #fafafa; scroll-margin: 90px; }
.as-rv-form-h { margin: 0 0 14px; font-size: 17px; }
.as-rv-form .form-control { border-color: #d1d5db; border-radius: 10px; min-height: 44px; font-size: 15px; }
.as-rv-form .form-control:focus { border-color: var(--as-ink); box-shadow: 0 0 0 3px rgba(17, 24, 39, .08); }
.as-rv-form .invalid-feedback { font-size: 13px; font-weight: 500; }
.as-rv-actions { display: flex; justify-content: flex-end; }
.as-rv-actions .btn { min-height: 46px; padding: 0 26px; border-radius: 10px; }
@media (max-width: 575.98px) { .as-rv-actions .btn { width: 100%; } }
/* rating star picker: the 5 radios stay real inputs (keyboard, form post), only the labels show */
.as-rate-pick { display: inline-flex; gap: 2px; }
.as-rate-pick input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.as-rate-pick label { padding: 2px; cursor: pointer; line-height: 0; border-radius: 6px; }
.as-rate-pick svg { fill: #d1d5db; transition: fill .12s, transform .12s; }
.as-rate-pick input:checked + label svg, .as-rate-pick label:has(~ input:checked) svg { fill: #f59e0b; }
.as-rate-pick input:focus-visible + label { outline: 2px solid var(--as-red); outline-offset: 1px; }
@media (hover: hover) {
	.as-rate-pick:hover label svg { fill: #fbbf24; }
	.as-rate-pick label:hover ~ label svg { fill: #d1d5db; }
	.as-rate-pick label:hover svg { transform: scale(1.08); }
}
.as-rate-pick.is-invalid svg { fill: #fecaca; }
.as-rate-hint { display: flex; justify-content: space-between; width: 172px; font-size: 12px; color: var(--as-muted); }
.as-recaptcha-note { font-size: .75rem; margin-top: .5rem; }
.grecaptcha-badge { visibility: hidden; }

/* ---------- FAQ, related, shop more ---------- */
.as-pp-block { margin: 0 0 36px; }
.as-pp-h2 { margin: 0 0 16px; font-size: 21px; font-weight: 700; letter-spacing: -.015em; color: var(--as-ink); }
@media (max-width: 767.98px) { .as-pp-h2 { font-size: 18px; margin-bottom: 12px; } .as-pp-block { margin-bottom: 28px; } }
#product-faq .accordion { max-width: 880px; --bs-accordion-border-color: var(--as-line); --bs-accordion-border-radius: 12px; --bs-accordion-inner-border-radius: 11px; }
#product-faq .accordion-header { margin: 0; }
#product-faq .accordion-button { padding: 14px 16px; font-size: 15px; font-weight: 600; color: var(--as-ink); background: #fff; box-shadow: none; }
#product-faq .accordion-button:not(.collapsed) { background: var(--as-soft); color: var(--as-ink); }
#product-faq .accordion-button:focus-visible { outline: 2px solid var(--as-red); outline-offset: -2px; }
#product-faq .accordion-body { font-size: 14.5px; line-height: 1.65; color: var(--as-text); }

.as-pp-rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.as-pp-rel-item { min-width: 0; }
@media (max-width: 991.98px) {
	/* phones/tablets: one swipeable row */
	.as-pp-rel-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3.2); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; padding: 2px 12px 8px; scroll-padding: 0 12px; }
	.as-pp-rel-grid::-webkit-scrollbar { display: none; }
	.as-pp-rel-item { scroll-snap-align: start; }
}
@media (max-width: 767.98px) { .as-pp-rel-grid { grid-auto-columns: calc((100% - 12px) / 2.15); gap: 10px; } }

.as-pp-chiplinks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.as-pp-chiplinks a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; color: var(--as-ink); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s, background-color .15s; }
.as-pp-chiplinks a:hover { border-color: var(--as-red); color: var(--as-red-text); background: var(--as-red-soft); }
.as-pp-chiplinks a.is-brand { border-color: var(--as-ink); font-weight: 600; }
.as-pp-tags { font-size: 13px; color: var(--as-muted); }

/* ---------- sticky add-to-cart bar (phones) ---------- */
.as-sticky-cart { display: none; }
@media (max-width: 767.98px) {
	.as-sticky-cart { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--as-line); box-shadow: 0 -6px 20px rgba(17, 24, 39, .10); transform: translateY(110%); visibility: hidden; transition: transform .22s var(--as-ease), visibility 0s linear .22s; }
	.as-sticky-cart.is-visible { transform: translateY(0); visibility: visible; transition: transform .22s var(--as-ease), visibility 0s; }
	.as-sticky-cart-img { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--as-line); border-radius: 8px; object-fit: contain; background: #fff; }
	.as-sticky-cart-info { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
	.as-sticky-cart-name { font-size: 12.5px; color: var(--as-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.as-sticky-cart-price { font-size: 16px; font-weight: 700; color: var(--as-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
	.as-sticky-cart-off { font-size: 12px; font-weight: 700; color: var(--as-red-text); }
	.as-sticky-cart .btn { flex: 0 0 auto; min-height: 46px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 700; white-space: nowrap; }
	.as-sticky-cart .btn.is-added { background: var(--as-ok) !important; border-color: var(--as-ok) !important; }
	body.as-has-sticky-cart { padding-bottom: 66px; }
}

@media (prefers-reduced-motion: reduce) {
	.as-pp *, .as-sticky-cart { transition: none !important; }
}

/* ---------- fixes after first review ---------- */
/* as-mobile.css colours every link to #tab-review blue */
.as-pp .as-pp-tablist .as-pp-tab { color: var(--as-muted); }
.as-pp .as-pp-tablist .as-pp-tab:hover, .as-pp .as-pp-tablist .as-pp-tab.is-active { color: var(--as-ink); }
.as-pp .as-pp-rating-link { color: var(--as-text); }
/* theme.css: #tab-description { max-width: 100% !important } */
#tab-description.as-pp-desc { max-width: 880px !important; }
/* quantity_discount table: its inline red border-color only stays on the (now zero-width) outer border */
.as-pp-pricebox > table.table { border-width: 0 !important; }
.as-pp-pricebox > table.table > * > tr > * { border: 1px solid var(--as-line); }

/* desktop buy box next to the tabs */
.as-pp-aside { display: none; }
@media (min-width: 992px) {
	.as-pp-lower { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; margin: 0 0 36px; }
	.as-pp-lower > .as-pp-tabs { margin-bottom: 0; }
	.as-pp-aside { display: block; position: sticky; top: 16px; }
	.as-pp-aside-box { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--as-line); border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(17, 24, 39, .06); font-size: 14px; }
	.as-pp-aside-img { width: 64px; height: 64px; border: 1px solid var(--as-line); border-radius: 10px; object-fit: contain; }
	.as-pp-aside-name { color: var(--as-ink); font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.as-pp-aside-price { font-size: 20px; font-weight: 700; color: var(--as-ink); font-variant-numeric: tabular-nums; }
	.as-pp-aside-price .is-special { color: var(--as-red-text); }
	.as-pp-aside-price s { margin-left: 4px; font-size: 13px; font-weight: 400; color: var(--as-muted); }
	.as-pp-aside .as-pp-stock { font-size: 13px; }
	.as-pp-aside-cart { min-height: 46px; margin-top: 4px; border-radius: 10px; font-size: 15px; font-weight: 700; }
}
@media (min-width: 1200px) { .as-pp-lower { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; } }
/* gallery arrows on every screen from 768px: fade in on hover with a mouse, always shown on touch tablets */
@media (min-width: 768px) {
	.as-pp-nav { display: inline-flex; }
	.as-pp-stage:hover .as-pp-nav { opacity: 1; }
}
@media (min-width: 768px) and (hover: none) { .as-pp-nav { opacity: .9; } }
