body#product #content-wrapper {
    float: none;
    inline-size: 100%;
    padding-inline: 0;
}

body#product main {
    max-inline-size: none;
    box-shadow: none;
}

.product-page {
    --product-page-section-gap: 106px;
}

.product-page > .page-footer {
    margin: 0;
}

.product-tab-hooks > .tab-pane {
    display: none;
}

.mon-breadcrumb {
    padding-block: 17px;
    color: var(--color-text-body);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-16);
}

.mon-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
}

.mon-breadcrumb__item {
    display: flex;
    gap: 6px;
    min-inline-size: 0;
}

.mon-breadcrumb__item + .mon-breadcrumb__item::before {
    content: "/";
}

.mon-breadcrumb a {
    color: inherit;
}

.mon-breadcrumb a:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

.product-hero {
    display: grid;
    grid-template-columns: minmax(0, 550fr) minmax(0, 662fr);
    column-gap: clamp(40px, 8.8889vw, 128px);
    align-items: start;
}

body#product #content.product-hero__media {
    margin: 0;
}

/* Two columns: the gallery stays in view 24px under the fixed header while the
   info column scrolls past (only on screens tall enough to show it whole).
   The id selector beats the old theme's "#content { position: relative }". */
@media (min-width: 768px) and (min-height: 800px) {
    body#product #content.product-hero__media {
        position: sticky;
        inset-block-start: calc(var(--header-height) + 24px);
    }
}

.product-gallery__stage {
    position: relative;
    aspect-ratio: 550 / 488;
    border-radius: var(--radius-md);
    background-color: var(--color-bg-surface);
    overflow: hidden;
}

.product-gallery__labels {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-end: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    pointer-events: none;
}

/* Slides scroll sideways (swipe on touch); product-page.js moves them */
.product-gallery__slides {
    position: relative;                         /* offset parent of the slides (product-page.js) */
    display: flex;
    block-size: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.product-gallery__slides::-webkit-scrollbar {
    display: none;
}

.product-gallery__slide {
    flex: 0 0 100%;
    display: grid;
    place-items: center;
    scroll-snap-align: center;
}

.product-gallery__zoom {
    display: grid;
    place-items: center;
    inline-size: 100%;
    block-size: 100%;
    cursor: zoom-in;
}

.product-gallery__zoom:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: calc(var(--focus-ring-width) * -1);
}

/* The <picture> takes no box: the image is the grid item, centred */
.product-gallery__zoom picture {
    display: contents;
}

/* ...so its webp <source> must take none either (something sets it to block):
   it would be a second grid row and push the image ~50px down */
.product-gallery__zoom source {
    display: none;
}

.product-gallery__image {
    inline-size: 53.1%;                         /* 292px of 550 */
    block-size: auto;
    max-block-size: 90%;
    object-fit: contain;
}

/* Previous / Next — the slider arrows (global.css 6.11) */
.product-gallery__nav {
    position: absolute;
    inset-block-start: calc(50% - var(--slider-nav-height) / 2);
    z-index: 2;
    display: grid;
    place-items: center;
    inline-size: var(--slider-nav-width);
    block-size: var(--slider-nav-height);
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background-color: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
    color: var(--color-icon);
    transition:
        background-color var(--duration-fast) var(--ease-standard),
        border-color var(--duration-fast) var(--ease-standard);
}

.product-gallery__nav--prev {
    inset-inline-start: 16px;
}

.product-gallery__nav--next {
    inset-inline-end: 16px;
}

.product-gallery__nav--prev .icon {
    transform: scaleX(-1);
}

@media (hover: hover) {
    .product-gallery__nav:hover {
        border-color: var(--color-border-strong);  /* replace later (as 6.11) */
        background-color: var(--color-bg-subtle);  /* replace later (as 6.11) */
    }
}

.product-gallery__nav:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

/* Thumbnails — five per row (98.8 × 88.3), more scroll sideways */
.product-gallery__thumbs {
    position: relative;                         /* offset parent: product-page.js scrolls a thumbnail into view */
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4 * 14px) / 5);
    gap: 14px;
    margin-block-start: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.product-gallery__thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 98.8 / 88.3;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background-color: var(--color-bg-surface);
    transition: border-color var(--duration-fast) var(--ease-standard);
}

.product-gallery__thumb img {
    inline-size: auto;
    max-inline-size: 70%;
    max-block-size: 80%;
    object-fit: contain;
}

.product-gallery__thumb[aria-current="true"] {
    border-color: var(--color-brand);
}

@media (hover: hover) {
    .product-gallery__thumb:not([aria-current="true"]):hover {
        border-color: var(--color-border);         /* replace later */
    }
}

.product-gallery__thumb:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

/* 3.2 Info column — brand · title · code · rating, 16px apart, 423px wide;
   price 40px under it, cart 40px under the unit price, short description
   50px under the cart, then the description link and the delivery note. */
.product-hero__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    max-inline-size: 423px;
}

.product-hero__brand {
    color: var(--color-text-body);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-normal);
}

.product-hero__title {
    color: var(--color-text);
    font: var(--text-h2);
    overflow-wrap: anywhere;
}

.product-hero__reference {
    color: var(--color-text-body);
    font: var(--text-p-small);
}

/* Favourites heart (Figma 220:20390) — solid_wishlist's button
   (displaySolidWishlistButton, for guests too), pinned
   to the info column's top-right corner, level with the brand label. 48px
   white circle, 32px HeartStraight outline; filled when the product is a
   favourite (aria-pressed, set by the module's front.js). */
.product-hero__info {
    position: relative;
}

.product-hero__info .wishlist-heart {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    inline-size: 48px;
    block-size: 48px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background-color: var(--color-bg-surface);
    color: var(--color-icon);
    cursor: pointer;
    transition:
        background-color var(--duration-fast) var(--ease-standard),
        color var(--duration-fast) var(--ease-standard);
}

.product-hero__info .wishlist-heart::before {
    content: "";
    inline-size: 32px;
    block-size: 32px;
    background-color: currentColor;
    -webkit-mask: url("../Images/icons/heart-straight-32.svg") center / contain no-repeat;
    mask: url("../Images/icons/heart-straight-32.svg") center / contain no-repeat;
}

/* Saved: filled brand-blue heart (same blue as the hover, so it reads as "on") */
.product-hero__info .wishlist-heart[aria-pressed="true"] {
    color: var(--color-brand);
}

.product-hero__info .wishlist-heart[aria-pressed="true"]::before {
    -webkit-mask-image: url("../Images/icons/heart-straight-fill-32.svg");
    mask-image: url("../Images/icons/heart-straight-fill-32.svg");
}

/* Hover: light-blue circle, brand-blue heart (the icon hover colour used
   site-wide) that lifts slightly; pressing pushes it back in. */
@media (hover: hover) {
    .product-hero__info .wishlist-heart:hover {
        background-color: var(--color-brand-subtle);
        color: var(--color-icon-hover);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .product-hero__info .wishlist-heart::before {
        transition: transform var(--duration-base) var(--ease-standard);
    }

    @media (hover: hover) {
        .product-hero__info .wishlist-heart:hover::before {
            transform: scale(1.12);
        }
    }

    .product-hero__info .wishlist-heart:active::before {
        transform: scale(0.9);
    }
}

.product-hero__info .wishlist-heart:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

/* Rating line: value · stars · review count (monhomepage product-rating.tpl) */
.product-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-4);
}

.rating--value-first .rating__value {
    order: -1;
}

/* Figma 220:19660: the value is one more item of the star row, 3px apart;
   the review count 16px after it (.product-rating gap) */
.product-rating .rating {
    gap: 3px;
}

.product-rating__link {
    color: var(--color-text-body);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
}

.product-information {
    margin-block-start: 40px;
}

/* angartheme.css: line, padding and margin around the old price block */
.product-information .product-prices {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Another combination loading (product-page.js initCombinationLoader): the
   price blurred under the homepage sliders' spinner (monhomepage front.css),
   the cart control dimmed and not clickable until the new one is in */
.product-information.is-updating .product-prices {
    position: relative;
    inline-size: fit-content;                   /* the spinner over the price, not the column */
}

.product-information.is-updating .product-prices > * {
    filter: blur(3px);
    opacity: 0.6;
    transition: filter var(--duration-base), opacity var(--duration-base);
}

.product-information.is-updating .product-prices::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    inline-size: 32px;
    block-size: 32px;
    margin: -16px 0 0 -16px;
    background-color: var(--color-brand);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none'%3E%3Ccircle cx='11' cy='11' r='8' stroke='%23000' stroke-width='2' opacity='0.2'/%3E%3Ccircle cx='11' cy='11' r='8' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-dasharray='16 60'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none'%3E%3Ccircle cx='11' cy='11' r='8' stroke='%23000' stroke-width='2' opacity='0.2'/%3E%3Ccircle cx='11' cy='11' r='8' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-dasharray='16 60'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: header-search-spin 0.9s linear infinite;
}

.product-information.is-updating .product-add-to-cart {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity var(--duration-base);
}

@media (prefers-reduced-motion: reduce) {
    .product-information.is-updating .product-prices::after {
        animation: none;
    }
}

/* Cart control 40px under the unit price */
.product-add-to-cart {
    margin-block-start: 40px;
}

/* Variants / module blocks: spaced */
.product-variants:not(:empty),
.product-additional-info:not(:empty) {
    margin-block-start: var(--space-6);
}

.product-variants {
    margin-block-end: var(--space-6);
}

/* Options (product-variants.tpl). Not in Figma: the buy box's choices as
   the "Pasirinkite kiekį:" rows (220:19178) — white, rounded, a 1px brand
   outline on hover, 2px when chosen (.product-tier). One group per block,
   20px apart: "Name:" 12px above a wrapping row of buttons, 8px apart. */
.product-option {
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.product-option + .product-option {
    margin-block-start: var(--space-5);
}

.product-option__label {
    display: block;
    float: none;
    inline-size: auto;
    margin: 0 0 12px;
    padding: 0;
    color: var(--color-text);
    font: var(--text-h5);
}

.product-option__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.product-option__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    margin: 0;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    background-color: var(--color-bg-surface);
    color: var(--color-text);
    font: var(--text-14-medium);
    cursor: pointer;
    transition: box-shadow var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}

/* The real radio over the whole button: clicks, keyboard and screen readers
   are the input's own */
.product-option__input {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

@media (hover: hover) {
    .product-option__item:hover {
        box-shadow: 0 0 0 1px var(--color-brand);
    }
}

.product-option__item:has(.product-option__input:checked) {
    box-shadow: 0 0 0 2px var(--color-brand);
    color: var(--color-text-brand);
}

.product-option__item:has(.product-option__input:focus-visible) {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

/* Out of stock: still selectable (PrestaShop shows its availability), faded */
.product-option__item.is-unavailable .product-option__text {
    opacity: 0.5;
    text-decoration: line-through;
}

/* Phones: text options in two equal columns (a long label wraps inside its
   button) rather than a ragged row that breaks one per line */
@media (max-width: 767.98px) {
    .product-option__list:not(:has(.product-option__item--color)) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-option__list .product-option__item:not(.product-option__item--color) {
        justify-content: center;
        padding-inline: 12px;
        text-align: center;
    }
}

/* Colour groups: round swatches with the same ring */
.product-option__item--color {
    min-block-size: 0;
    padding: 4px;
    border-radius: 50%;
}

.product-option__color {
    display: block;
    inline-size: 32px;
    block-size: 32px;
    border-radius: 50%;
    background-color: var(--color-bg-subtle);
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.product-option__item--color.is-unavailable .product-option__color {
    opacity: 0.4;
}

/* Select groups: the site's select field (global.css .field-select) */
.product-option__select {
    max-inline-size: 320px;
}

/* "Pasirinkite kiekį:" — quantity discounts (product-discounts.tpl, Figma
   "Preke kiekybine nuolaida" 220:19178 / 220:8421): 40px under the unit
   price, the pack rows' title and rows (.product-pack__title, .pack-item)
   as buttons, the cart pill 48px under them. */
.product-discounts:not(:has(.product-tiers)) {
    display: none;
}

.product-tiers {
    max-inline-size: 549px;
    margin-block-start: 40px;
}

.product-discounts:has(.product-tiers) + .product-add-to-cart {
    margin-block-start: 48px;
}

.product-tier {
    inline-size: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: none;
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: box-shadow var(--duration-base) var(--ease-standard);
}

/* Hover: a thin brand-blue outline (a preview of the picked one); picked
   (the quantity in the cart): 2px */
@media (hover: hover) {
    .product-tier:not(:disabled):hover {
        box-shadow: 0 0 0 1px var(--color-brand);
    }
}

.product-tier[aria-pressed="true"] {
    box-shadow: 0 0 0 2px var(--color-brand);
}

/* "-10%" after "N vnt.": the orange discount label (as by the product
   price), at the line's size */
.product-tier__save {
    flex: none;
    align-self: center;
    block-size: 20px;
    padding-inline: 6px;
    font-size: var(--font-size-2xs);
    font-weight: var(--font-weight-medium);
    line-height: 1;
}

/* More than in stock: not clickable */
.product-tier:disabled {
    cursor: default;
}

/* More than in stock: faded (the "Turime tik N vnt." note stays readable) */
.product-tier:disabled .pack-item__media,
.product-tier:disabled .pack-item__name,
.product-tier:disabled .pack-item__qty,
.product-tier:disabled .product-tier__save,
.product-tier:disabled .pack-item__prices {
    opacity: 0.5;
}

.product-tier:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}


.product-hero__summary {
    max-inline-size: 549px;
    margin-block-start: 50px;
    color: var(--color-text);
    font: var(--text-p);
}

.product-hero__summary p {
    margin: 0;
}

.product-hero__summary p:empty {
    display: none;
}

/* "Prekės aprašymas ⌄" — scrolls to the description and opens it */
.product-hero__more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-block-start: 21px;
    color: var(--color-text-body);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-standard);
}

/* Underline drawn as a background so it can animate (text-decoration can't) */
.product-hero__more-text {
    padding-block-end: 2px;
    background: linear-gradient(currentColor, currentColor) no-repeat center bottom / 100% 1px;
    transition: background-size var(--duration-base) var(--ease-standard);
}

.product-hero__more .icon {
    flex-shrink: 0;
    transition: transform var(--duration-base) var(--ease-standard);
}

/* Hover: the underline collapses to its center, the chevron nudges down toward the description */
@media (hover: hover) {
    .product-hero__more:hover {
        color: var(--color-text);
    }

    .product-hero__more:hover .product-hero__more-text {
        background-size: 0 1px;
    }

    .product-hero__more:hover .icon {
        transform: translateY(2px);
    }
}

.product-hero__more:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

.product-hero__summary + .product-hero__note,
.product-hero__more + .product-hero__note {
    margin-block-start: 24px;
}

/* "Rinkinį sudaro:" — pack contents (Figma "Prekiu bundle" 220:20096, mobile
   220:8038; pack-product.tpl): 48px under the description link, H3 title, then
   80px rows 8px apart: white image tile · 2px gap · white info block (name, pack
   quantity + unit price, the card price on the right). */
.product-pack {
    max-inline-size: 549px;
    margin-block-start: 48px;
}

.product-pack__title {
    margin: 0 0 16px;
    color: var(--color-text);
    font: var(--text-h3);
}

.product-pack__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pack-item__link {
    display: flex;
    gap: 2px;
    min-block-size: 80px;
    color: var(--color-text);
}

.pack-item__media {
    display: grid;
    flex: none;
    place-items: center;
    inline-size: 80px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background-color: var(--color-bg-surface);
}

.pack-item__image {
    inline-size: 57px;
    block-size: 57px;
    object-fit: contain;
}

.pack-item__body {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 4px;
    min-inline-size: 0;
    padding: 8px 10px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background-color: var(--color-bg-surface);
}

.pack-item__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-inline-size: 0;
}

.pack-item__name {
    font: var(--text-p-small);
    overflow-wrap: anywhere;
}

.pack-item__meta {
    display: flex;
    flex-wrap: wrap;                            /* narrow phones: "Turime tik N vnt." goes under */
    align-items: baseline;
    gap: 2px 8px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-15);
    white-space: nowrap;
}

.pack-item__unit {
    color: var(--color-text-secondary);
    font-size: var(--font-size-2xs);
    font-weight: var(--font-weight-regular);
}

/* The card price at 26 / 14px, the old one at 22 / 12px. At most half the
   row: on narrow phones the old price wraps under the price (right-aligned)
   instead of squeezing the name. */
.pack-item__prices {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    max-inline-size: 50%;
    white-space: nowrap;
}

.pack-item__prices .product-price-old {
    margin-inline-start: 0;
    padding-inline-start: 4px;
}

.pack-item__prices .product-price__int {
    font-size: var(--font-size-price-sm);
}

.pack-item__prices .product-price__cents {
    margin-block-start: -4px;
    font-size: var(--font-size-sm);
}

.pack-item__prices .product-price-old__int {
    font-size: var(--font-size-price-old-sm);
}

.pack-item__prices .product-price-old__cents {
    font-size: var(--font-size-2xs);
}

.pack-item__link:focus-visible {
    border-radius: var(--radius-md);
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

/* Then the delivery note, 26px under the last row */
.product-pack + .product-hero__note {
    margin-block-start: 26px;
}

/* Delivery note — the info note style (light blue, 1px soft-blue border) */
.product-hero__note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    max-inline-size: 549px;
    margin-block-start: 40px;
    padding: 7px 16px 8px;
    border: 1px solid var(--color-info-border);
    border-radius: var(--radius-md);
    background-color: var(--color-info-subtle);
    color: var(--color-info);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

.product-hero__note .icon {
    flex: none;
}

.product-hero__note-title {
    font-weight: var(--font-weight-bold);
}

/* Module output in the hero (reassurance, additional info): no old boxes */
.product-information .blockreassurance_product {
    margin-block-start: var(--space-6);
}

/* mondeliverytimer box (displayProductAdditionalInfo): start of the column */
.product-additional-info .mondt-box {
    margin-inline: 0;
}


/* ---- 4. Product sliders --------------------------------------------------
   Head 106px under the hero; the next section is measured from the dots'
   hit area (as on the homepage). */
.product-section {
    margin-block-start: var(--product-page-section-gap);
}

.product-section + .product-section {
    margin-block-start: 49px;                   /* 58px under the dots (homepage rhythm) */
}



/* ---- 5. Accordions --------------------------------------------------------
   888px white cards, centred, 30px apart; 30px padding, 32px head → body.
   Head: H2 title + 36px round toggle (arrow up = open). <details>: works
   without JS; product-page.js animates open / close and opens the
   description from the hero link. */
.product-accordions {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-inline-size: 888px;
    margin-block-start: 89px;                   /* 120px under the Panašios prekės cards (Figma) */
    margin-inline: auto;
}

/* No product slider above: straight under the hero */
.product-page > .container + .container > .product-accordions {
    margin-block-start: var(--product-page-section-gap);
}

.product-accordion {
    padding: 30px;
    border-radius: var(--radius-md);
    background-color: var(--color-bg-surface);
    scroll-margin-top: 24px;                /* "Prekės aprašymas" link: lands 24px under the header, not flush */
}

.product-accordion__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-block-size: 36px;
    list-style: none;
    cursor: pointer;
}

.product-accordion__head::-webkit-details-marker {
    display: none;
}

.product-accordion__head:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
    border-radius: var(--radius-sm);
}

.product-accordion__title {
    color: var(--color-text);
    font: var(--text-h2);
}

.product-accordion__toggle {
    display: grid;
    flex: none;
    place-items: center;
    inline-size: 36px;
    block-size: 36px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background-color: var(--color-bg-surface);
    color: var(--color-icon);
    transition:
        transform var(--duration-base) var(--ease-standard),
        border-color var(--duration-fast) var(--ease-standard);
}

.product-accordion:not([open]) .product-accordion__toggle,
.product-accordion.is-closing .product-accordion__toggle {   /* product-page.js, while the close animates */
    transform: rotate(180deg);
}

@media (hover: hover) {
    .product-accordion__head:hover .product-accordion__toggle {
        border-color: var(--color-border-strong);  /* replace later */
    }
}

.product-accordion__body {
    margin-block-start: 32px;
    color: var(--color-text);
    font: var(--text-p);
    overflow-wrap: anywhere;
}

/* Description HTML from the back office: one paragraph per line (the
   nutrition values), headings in bold paragraphs a little further apart */
.product-description > * + * {
    margin-block-start: 4px;
}

.product-description > * + p:has(> strong:only-child) {
    margin-block-start: var(--space-4);
}

.product-description p:empty {
    display: none;
}

.product-description p {
    margin-block-end: 0;
}

.product-description :is(h2, h3, h4, h5, h6) {
    font: var(--text-h5);
}

.product-description img {
    max-inline-size: 100%;
    block-size: auto;
}

.product-description a {
    color: var(--color-text-brand);
}

.product-description table {
    inline-size: 100%;
    max-inline-size: 519px;
    border-collapse: collapse;
    font: var(--text-p-small);
}

.product-description :is(td, th) {
    padding: 15px;
    border-block-end: 1px solid var(--color-separator);
    text-align: start;
    vertical-align: middle;
}

/* Kita informacija — 519px of name / value rows (49px, 1px separators) */
.product-data {
    max-inline-size: 519px;
}

.product-data > div {
    display: grid;
    grid-template-columns: minmax(0, 274fr) minmax(0, 245fr);
    align-items: center;
    min-block-size: 49px;
    border-block-end: 1px solid var(--color-separator);
    font: var(--text-p-small);
}

.product-data > div > :is(label, .label, span) {
    margin: 0;
    padding: 8px 15px;
    color: var(--color-text-body);
    font: inherit;
}

/* #product-details: beats angartheme.css "#product-details .label" (bold) */
#product-details .product-data > div > :is(label, .label) {
    color: var(--color-text);
    font-weight: var(--font-weight-regular);
}

.product-data link {
    display: none;
}

.product-details .product-out-of-stock:not(:has(*)) {
    display: none;
}

.product-attachments .attachment + .attachment {
    margin-block-start: var(--space-6);
}

.attachment__name {
    font: var(--text-h5);
}


/* ---- 6. Reviews ------------------------------------------------------------
   Figma (dev file 220:19653): the title 128px under the accordions, the
   cards 28px under the title — the title's box is 39px (line-height
   normal) to Figma's 32, so 124px and a 16px head gap put the text there.
   Average + "Įvertink prekę" (16px apart) on the right. The footer gap
   counts from the visible dots (as on the homepage). */
.product-reviews {
    --section-head-gap: 16px;
    margin-block: 124px calc((var(--slider-dot-hit-height) - var(--slider-dot-size)) / -2);
}

.product-reviews__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-4);
}

/* Figma 220:19653: the value ("4.5", one decimal) in a 36px box after the
   stars, then 16px to "Įvertink prekę" — about 30px after the digits */
.product-reviews__summary .rating__value {
    min-inline-size: 36px;
}

/* No reviews with text yet — NOT IN FIGMA: one line in a white card */
.product-reviews__empty {
    margin: 0;
    padding: 24px;
    border-radius: var(--radius-md);
    background-color: var(--color-bg-surface);
    color: var(--color-text-body);
    font: var(--text-p-small);
}

/* productcomments' own list (AngarTheme "Komentarai" tab): replaced by
   the section above, kept in the HTML for its script */
#productcomments.tab-pane[hidden] {
    display: none !important;
}

/* 6.1 Review form + alerts (productcomments, Bootstrap modals) — NOT IN
   FIGMA, built from the design's pieces: white 10px panel over the 30%
   dark-grey overlay, H4 title + X, style-guide fields and pills. Above
   the fixed header (Bootstrap's 1040 / 1050 are under it). */
body#product .modal-backdrop {
    z-index: var(--z-overlay);
    background-color: var(--mon-dark-grey);
}

body#product .modal-backdrop.in,
body#product .modal-backdrop.show {
    opacity: 0.3;
}

.review-modal {
    z-index: calc(var(--z-overlay) + 1);
}

/* Centred in the window (as Bootstrap's .modal-dialog-centered), at least
   80px from its edges; taller than the window: from the top, scrolling */
.review-modal .review-modal__dialog {
    --review-modal-margin: 80px;
    display: flex;
    align-items: center;
    inline-size: auto;
    max-inline-size: calc(560px + var(--container-gutter) * 2);
    min-block-size: calc(100% - var(--review-modal-margin) * 2);
    margin: var(--review-modal-margin) auto;
    padding-inline: var(--container-gutter);
}

.review-modal .review-modal__panel {
    flex: 1 1 auto;
    min-inline-size: 0;
    display: grid;
    gap: 24px;
    padding: 30px;
    border: 0;
    border-radius: 10px;
    background-color: var(--color-bg-surface);
    box-shadow: var(--shadow-dropdown);
    color: var(--color-text);
}

.review-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.review-modal__title {
    margin: 0;
    color: var(--color-text);
    font: var(--text-h4);
}

.review-modal__product {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.review-modal__media {
    display: grid;
    flex: none;
    place-items: center;
    inline-size: 64px;
    block-size: 64px;
}

.review-modal__media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: contain;
}

.review-modal__name {
    margin: 0;
    color: var(--color-text);
    font: var(--text-14-medium);
}

.review-modal__form {
    display: grid;
    gap: var(--space-4);
}

.review-modal__criteria {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.review-modal__criterion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
}

.review-modal__label {
    color: var(--color-text-body);
    font: var(--text-13-regular);
}

.review-modal__required {
    margin-inline-start: 2px;
    color: var(--color-error);
}

/* "Please choose a rating" (post-comment.js adds it to the list) */
#ratingNotChosen {
    color: var(--color-error);
    font: var(--text-13-regular);
}

/* Stars — productcomments' rating plugin: five 20px .star (grey; hover /
   click choose) under five .star-on (orange) laid on top. The plugin
   counts 20px a star, so no gap. */
.review-stars {
    position: relative;
    display: inline-block;
    flex: none;
    inline-size: 100px;
    block-size: 20px;
}

.review-stars .star-content {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    display: flex;
    float: none;
}

.review-stars .star-content::after {
    content: none;
}

/* No pointer-events: none on .star-full — in the review form the plugin puts
   the clickable stars in it (.star-empty stays empty); hovered ones turn orange */
.review-stars .star,
.review-stars .star-on {
    float: none;
    inline-size: 20px;
    block-size: 20px;
    margin: 0;
    background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath fill='%23d9d9d9' d='M20.13 9.87l-3.86 3.34 1.18 4.99a1.38 1.38 0 0 1-2.1 1.53L11 17.06l-4.34 2.67a1.38 1.38 0 0 1-2.1-1.53l1.18-4.99-3.87-3.34a1.38 1.38 0 0 1 .8-2.48l5.07-.41 1.96-4.73a1.38 1.38 0 0 1 2.56 0l1.95 4.73 5.07.41a1.38 1.38 0 0 1 .8 2.48z'/%3E%3C/svg%3E");
    cursor: pointer;
}

.review-stars .star-on,
.review-stars .star-hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath fill='%23ffa200' d='M20.13 9.87l-3.86 3.34 1.18 4.99a1.38 1.38 0 0 1-2.1 1.53L11 17.06l-4.34 2.67a1.38 1.38 0 0 1-2.1-1.53l1.18-4.99-3.87-3.34a1.38 1.38 0 0 1 .8-2.48l5.07-.41 1.96-4.73a1.38 1.38 0 0 1 2.56 0l1.95 4.73 5.07.41a1.38 1.38 0 0 1 .8 2.48z'/%3E%3C/svg%3E");
}

/* productcomments.css gives every input in its modals 34px, its own border
   and padding — the style-guide field back */
.review-modal .field-input {
    inline-size: 100%;
    block-size: var(--control-height);
    padding-inline: 14px;
    border: 1px solid var(--color-border-input);
    border-radius: var(--radius-md);
}

.review-modal .field-input:focus {
    border-color: var(--color-input-border-focus);
}

.review-modal .review-modal__textarea {
    block-size: auto;
    min-block-size: 120px;
    padding-block: 10px;
    resize: vertical;
}

/* post-comment.js marks empty fields; "Šis laukas privalomas." shows under
   them (product-page.js removes .error as the field is typed in) */
#post-product-comment-form .field-input.error {
    border-color: var(--color-error);
    background-color: var(--color-bg-surface);
}

.review-modal__field-error {
    display: none;
    margin: 0;
    color: var(--color-error);
    font: var(--text-13-regular);
}

#post-product-comment-form .field-input.error + .review-modal__field-error {
    display: block;
}

.review-modal__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.review-modal__note {
    margin: 0;
    color: var(--color-text-subtle);
    font: var(--text-13-regular);
}

.review-modal__note sup {
    color: var(--color-error);
}

.review-modal__actions {
    display: flex;
    gap: var(--space-2);
}

/* GDPR consent (psgdpr), when the module adds it */
.review-modal__form .gdpr_consent,
.review-modal__form .psgdpr_consent_message {
    color: var(--color-text-body);
    font: var(--text-13-regular);
}

/* Alerts — round icon, title, message, OK */
.review-modal--alert .review-modal__dialog {
    max-inline-size: calc(420px + var(--container-gutter) * 2);
}

.review-modal--alert .review-modal__panel {
    justify-items: center;
    gap: var(--space-4);
    text-align: center;
}

.review-modal__icon {
    display: grid;
    place-items: center;
    inline-size: 48px;
    block-size: 48px;
    border-radius: 50%;
}

.review-modal__icon--success {
    background-color: var(--color-brand-subtle);
    color: var(--color-brand);
}

.review-modal__icon--error {
    background-color: color-mix(in srgb, var(--color-error) 12%, transparent);
    color: var(--color-error);
}

.review-modal__message {
    color: var(--color-text-body);
    font: var(--text-p-small);
}

.review-modal__message ul {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* ---- Tablet ----------------------------------------------------------------
   Two equal columns, the info column's width limits lifted. */
@media (max-width: 1175.98px) {
    .product-page {
        --product-page-section-gap: 80px;
    }

    .product-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .product-hero__head {
        max-inline-size: none;
        padding-inline-end: 64px;              /* clear of the 48px wishlist heart */
    }

    .product-reviews {
        margin-block-start: 120px;
    }
}


/* ---- Mobile ----------------------------------------------------------------
   One column: gallery, then the info; 24px titles (as the homepage section
   titles), smaller accordion padding. */
@media (max-width: 767.98px) {
    .product-page {
        --product-page-section-gap: 48px;
    }

    /* One line (Figma "Preke mobile" 655:8475): home · parent category ·
       current page; the levels between are dropped. The current page ends
       in an ellipsis first (down to 35%), then the parent */
    .mon-breadcrumb {
        padding-block: 16px;
        font-size: var(--font-size-2xs);
        line-height: var(--line-height-14);
    }

    .mon-breadcrumb__list {
        flex-wrap: nowrap;
    }

    .mon-breadcrumb__item {
        flex: 0 1 auto;
        white-space: nowrap;
    }

    .mon-breadcrumb__item:first-child {
        flex-shrink: 0;
    }

    .mon-breadcrumb__item:not(:first-child):nth-last-child(n+3) {
        display: none;
    }

    .mon-breadcrumb__item:last-child {
        flex-shrink: 1000;
        min-inline-size: 35%;
    }

    .mon-breadcrumb__item > * {
        min-inline-size: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-hero {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--space-6);
    }

    /* 355 × 315 box, slider arrows (34 × 32) 10px inside, no thumbnails */
    .product-gallery__stage {
        aspect-ratio: 355 / 315;
    }

    .product-gallery__image {
        inline-size: 70%;
    }

    .product-gallery__nav {
        --slider-nav-width: 34px;
        --slider-nav-height: 32px;
    }

    .product-gallery__nav--prev {
        inset-inline-start: 10px;
    }

    .product-gallery__nav--next {
        inset-inline-end: 10px;
    }

    .product-gallery__thumbs {
        display: none;
    }

    .product-hero__head {
        gap: var(--space-4);
        padding-inline-end: 60px;              /* Figma 220:7884 — 295px of 355 */
    }

    /* 40px circle, 26.67px heart (Figma 220:7912) */
    .product-hero__info .wishlist-heart {
        inline-size: 40px;
        block-size: 40px;
    }

    .product-hero__info .wishlist-heart::before {
        inline-size: 26.667px;
        block-size: 26.667px;
    }

    .product-hero__title {
        font-size: var(--font-size-3xl);
        line-height: var(--line-height-32);
    }

    .product-information {
        margin-block-start: 36px;               /* 40px to the price (its box has 4px padding) */
    }

    .product-add-to-cart {
        margin-block-start: var(--space-6);
    }

    /* Mobile quantity rows: 40px under the unit price, the cart pill 32px under them */
    .product-discounts:has(.product-tiers) + .product-add-to-cart {
        margin-block-start: 32px;
    }

    .product-hero__summary {
        margin-block-start: 32px;
    }

    .product-hero__note {
        margin-block-start: var(--space-6);
    }

    /* Mobile pack: 18px title 12px above the rows, 12px to the delivery note */
    .product-pack__title {
        margin-block-end: 12px;
        font-size: 1.125rem;                    /* 18px */
    }

    .product-pack + .product-hero__note {
        margin-block-start: 12px;
    }

    .product-section + .product-section {
        margin-block-start: 39px;               /* 48px under the dots (homepage mobile) */
    }


    .product-accordions {
        gap: var(--space-4);
        margin-block-start: 39px;
    }

    /* Closed: 68px — 16px padding round the 36px head; Barlow Medium 18 */
    .product-accordion {
        padding: 16px;
    }

    .product-accordion__title {
        margin: 0;
        font: var(--font-weight-medium) 1.125rem / var(--line-height-18) var(--font-family-base);
    }

    .product-accordion__body {
        margin-block-start: 20px;
        font-size: var(--font-size-sm);
    }

    .product-data > div {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        min-block-size: 44px;
    }

    .product-data > div > :is(label, .label, span) {
        padding-inline: 10px;
    }

    .product-reviews {
        margin-block-start: 64px;
    }

    .product-reviews .section-head {
        flex-wrap: wrap;
    }

    .product-reviews__summary .btn {
        --btn-height: var(--control-height-sm);
    }

    .product-reviews__empty {
        padding: 16px;
    }

    .review-modal .review-modal__dialog {
        --review-modal-margin: 24px;
    }

    .review-modal .review-modal__panel {
        gap: 20px;
        padding: 20px;
    }

    .review-modal__actions {
        flex: 1;
    }

    .review-modal__actions .btn {
        flex: 1;
    }
}


/* ==========================================================================
   Lightbox — PhotoSwipe 5 (global.css vendor; product-page.js initLightbox)
   White, as the gallery box, so the photos' white background runs into it.
   The gallery's round arrows (.product-gallery__nav), a round close / zoom
   button top-right, "1 / 3" top-left, thumbnails (as the gallery's) under it.
   ========================================================================== */
.pswp--mon {
    --pswp-bg: var(--color-bg-surface);
    --pswp-placeholder-bg: var(--color-bg-surface);
    --pswp-icon-color: var(--color-icon);
    --pswp-error-text-color: var(--color-text-body);
    --pswp-preloader-color: var(--color-border);
    --pswp-preloader-color-secondary: var(--color-brand);
    font-family: inherit;
}

.pswp--mon .pswp__top-bar {
    block-size: auto;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
}

.pswp--mon .pswp__counter {
    order: -1;
    block-size: auto;
    margin: 0 auto 0 0;
    color: var(--color-text-secondary);
    font: var(--text-p-small);
    font-variant-numeric: tabular-nums;
    text-shadow: none;
    opacity: 1;
}

.pswp--mon .pswp__preloader {
    display: none;
}

/* Buttons: 48px circles; close and zoom grey, the arrows as the gallery's */
.pswp--mon .pswp__button {
    display: grid;
    place-items: center;
    inline-size: 48px;
    block-size: 48px;
    margin: 0;
    border-radius: var(--radius-pill);
    background-color: var(--color-bg-subtle);
    color: var(--color-icon);
    opacity: 1;
    transition:
        background-color var(--duration-fast) var(--ease-standard),
        border-color var(--duration-fast) var(--ease-standard);
}

.pswp--mon .pswp__button--zoom {
    display: none;
}

.pswp--mon.pswp--zoom-allowed .pswp__button--zoom {
    display: grid;
}

.pswp--mon .pswp__icn,
.pswp--mon .pswp__button--arrow .pswp__icn {
    position: static;
    inline-size: 22px;
    block-size: 22px;
    margin: 0;
    fill: none;
    color: currentColor;
    transform: none;
}

.pswp--mon .pswp__button--arrow {
    inline-size: var(--slider-nav-width);
    block-size: var(--slider-nav-height);
    margin-block-start: calc(var(--slider-nav-height) / -2);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-surface);
    box-shadow: var(--shadow-card);
}

/* Vertically centred on the image area (between the bars) */
.pswp--mon.pswp--has-thumbs .pswp__button--arrow {
    inset-block-start: calc(50% - 24px);
}

.pswp--mon .pswp__button--arrow--prev {
    inset-inline-start: 32px;
}

.pswp--mon .pswp__button--arrow--next {
    inset-inline-end: 32px;
}

.pswp--mon .pswp__button--arrow--prev .pswp__icn {
    transform: scaleX(-1);
}

@media (hover: hover) {
    .pswp--mon .pswp__button:hover {
        background-color: var(--color-subtle-hover);
    }

    .pswp--mon .pswp__button--arrow:hover {
        border-color: var(--color-border-strong);
        background-color: var(--color-bg-subtle);
    }
}

.pswp--mon .pswp__button:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

/* Thumbnails: 72px, the current one with the brand border */
.pswp--mon .pswp__thumbs {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 24px;
    z-index: 10;
    display: flex;
    justify-content: safe center;
    gap: 8px;
    padding: 2px 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pswp--mon .pswp__thumbs::-webkit-scrollbar {
    display: none;
}

.pswp--mon .pswp__thumb {
    flex: none;
    display: grid;
    place-items: center;
    inline-size: 72px;
    block-size: 72px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-surface);
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-standard);
}

.pswp--mon .pswp__thumb img {
    max-inline-size: 80%;
    max-block-size: 80%;
    object-fit: contain;
}

.pswp--mon .pswp__thumb[aria-current="true"] {
    border: 2px solid var(--color-brand);
}

@media (hover: hover) {
    .pswp--mon .pswp__thumb:not([aria-current="true"]):hover {
        border-color: var(--color-border-strong);
    }
}

.pswp--mon .pswp__thumb:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

/* Mobile: 40px buttons, no arrows (swipe), 48px thumbnails */
@media (max-width: 767.98px) {
    .pswp--mon .pswp__top-bar {
        padding: 12px 16px;
    }

    .pswp--mon .pswp__button {
        inline-size: 40px;
        block-size: 40px;
    }

    .pswp--mon .pswp__button--arrow {
        display: none;
    }

    .pswp--mon .pswp__thumbs {
        inset-block-end: 16px;
        padding-inline: 16px;
    }

    .pswp--mon .pswp__thumb {
        inline-size: 52px;
        block-size: 52px;
    }
}
