/**
 * ASP Custom Product Page Styles
 *
 * Bloom & Wild-inspired single product page.
 * Uses CSS custom property --asp-pp-aspect-ratio for configurable gallery ratio.
 * Responsive: mobile (<= 768px), tablet (769-1024px), desktop (> 1024px).
 */

/* =========================================================================
   CSS Custom Properties
   ========================================================================= */

.asp-pp {
    --asp-pp-aspect-ratio: 1 / 1;
    --asp-pp-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    --asp-pp-font-serif: Georgia, "Times New Roman", Times, serif;
    --asp-pp-color-text: #1a1a1a;
    --asp-pp-color-text-muted: #666;
    --asp-pp-color-border: #e5e5e5;
    --asp-pp-color-bg: #fff;
    --asp-pp-color-btn: #1a1a1a;
    --asp-pp-color-btn-text: #fff;
    --asp-pp-color-star: #f5a623;
    --asp-pp-color-badge: #fef3cd;
    --asp-pp-color-badge-text: #856404;
    --asp-pp-color-overlay: rgba(0, 0, 0, 0.4);
    --asp-pp-radius: 0;
    --asp-pp-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --asp-pp-panel-width: 480px;
    --asp-pp-gap: 4px;

    font-family: var(--asp-pp-font-family);
    color: var(--asp-pp-color-text);
    line-height: 1.5;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Override theme side-padding on the product page so we get true edge-to-edge */
.woocommerce.single-product #primary,
.woocommerce.single-product .site-main,
.woocommerce.single-product .entry-content,
.woocommerce.single-product .content-area {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

/* =========================================================================
   Typography
   ========================================================================= */

.asp-pp-title {
    font-family: var(--asp-pp-font-serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

/* =========================================================================
   Desktop Layout: Two-column grid
   Mirrors Heim header: outer row padding + inner 1520px container.
   ========================================================================= */

/* Outer row — same as .hdh-row (full width + theme gutter). */
.asp-pp-desktop {
    box-sizing: border-box;
    padding-left: var(--page--spacing, 24px);
    padding-right: var(--page--spacing, 24px);
}

/* Inner container — same as .hdh-container (no horizontal padding). */
.asp-pp-desktop-grid {
    display: grid;
    grid-template-columns: var(--asp-pp-columns, 1fr 1fr);
    gap: 40px;
    align-items: start;
    max-width: 1520px;
    margin: 0 auto;
    padding: 24px 0 48px;
}

.asp-pp-desktop-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.asp-pp-desktop-info {
    position: sticky;
    top: 24px;
    padding-top: 8px;
}

/* =========================================================================
   Gallery — Desktop (2x2 Grid)
   ========================================================================= */

.asp-pp-gallery--desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--asp-pp-gap);
}

.asp-pp-gallery-cell {
    position: relative;
    overflow: hidden;
    border-radius: var(--asp-pp-radius);
    /* Reserve the slot with a calm tone while the photo downloads, instead
       of showing a half-painted progressive JPEG. */
    background: var(--asp-pp-color-border, #f0ece7);
}

.asp-pp-gallery-media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--asp-pp-aspect-ratio);
    object-fit: cover;
}

/* Photos are hidden until decoded, then faded in (see Gallery.jsx). */
img.asp-pp-gallery-media {
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

img.asp-pp-gallery-media--loaded {
    opacity: 1;
}

/* =========================================================================
   Gallery — Mobile (Horizontal Scroll-Snap)
   ========================================================================= */

.asp-pp-gallery--mobile {
    position: relative;
    margin: 0; /* No negative margin — parent has no padding */
}

.asp-pp-gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--asp-pp-gap);
    padding: 0; /* Edge-to-edge images */
}

.asp-pp-gallery-scroll::-webkit-scrollbar {
    display: none;
}

.asp-pp-gallery--mobile .asp-pp-gallery-item {
    flex: 0 0 85%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    border-radius: var(--asp-pp-radius);
    background: var(--asp-pp-color-border, #f0ece7);
}

/* Single image: no "next image" peek, no horizontal scroll, full width. */
.asp-pp-gallery--mobile.asp-pp-gallery--single .asp-pp-gallery-scroll {
    overflow-x: hidden;
    scroll-snap-type: none;
    gap: 0;
}

.asp-pp-gallery--mobile.asp-pp-gallery--single .asp-pp-gallery-item {
    flex: 0 0 100%;
    width: 100%;
}

.asp-pp-gallery--mobile .asp-pp-gallery-media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--asp-pp-aspect-ratio);
    object-fit: cover;
}

/* Gallery scroll progress bar (Bloom & Wild style) */
.asp-pp-gallery-progress {
    position: relative;
    height: 2px;
    margin: 12px 24px 0;
    background: var(--asp-pp-color-border);
    border-radius: 1px;
    overflow: hidden;
}

.asp-pp-gallery-progress-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--asp-pp-color-text);
    border-radius: 1px;
    transition: left 0.15s ease-out, width 0.15s ease-out;
    will-change: left, width;
}

/* =========================================================================
   Video Play/Pause Button
   ========================================================================= */

.asp-pp-gallery-video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.asp-pp-gallery-video-wrap video {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: var(--asp-pp-aspect-ratio);
    object-fit: cover;
}

.asp-pp-video-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--asp-pp-color-text);
    backdrop-filter: blur(4px);
    transition: background var(--asp-pp-transition);
    z-index: 2;
}

.asp-pp-video-btn:hover {
    background: #fff;
}

.asp-pp-video-btn-icon {
    font-size: 11px;
}

/* =========================================================================
   Promo Badge
   ========================================================================= */

.asp-pp-promo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--asp-pp-color-badge);
    color: var(--asp-pp-color-badge-text);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    line-height: 1.3;
}

/* =========================================================================
   Price Row
   ========================================================================= */

.asp-pp-price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.asp-pp-price {
    font-size: 1.25rem;
    font-weight: 600;
}

.asp-pp-stars-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.asp-pp-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.asp-pp-rating-text {
    font-size: 0.875rem;
    color: var(--asp-pp-color-text-muted);
}

/* =========================================================================
   "In a Nutshell" Section
   ========================================================================= */

.asp-pp-nutshell {
    margin-bottom: 20px;
}

/* =========================================================================
   Out-of-stock notice (replaces add-to-cart cluster when product is OOS)
   ========================================================================= */
.asp-pp-oos {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 24px 0;
    padding: 14px 18px;
    background: #fff3f3;
    border: 1px solid #f3c2c2;
    border-radius: 12px;
    color: #8a1f1f;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.asp-pp-oos-icon {
    flex: 0 0 auto;
    color: #c62828;
}

.asp-pp-oos-text {
    flex: 1 1 auto;
}

.asp-pp-nutshell-heading {
    font-family: var(--asp-pp-font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.asp-pp-nutshell-content {
    font-size: 0.9375rem;
    color: var(--asp-pp-color-text);
    line-height: 1.6;
}

.asp-pp-nutshell-content ul {
    padding-left: 20px;
    margin: 0;
}

.asp-pp-nutshell-content li {
    margin-bottom: 4px;
}

/* =========================================================================
   "More Information" Link
   ========================================================================= */

.asp-pp-more-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--asp-pp-color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: inherit;
}

.asp-pp-more-info:hover {
    color: var(--asp-pp-color-text-muted);
}

.asp-pp-more-info svg {
    flex-shrink: 0;
}

/* =========================================================================
   Quantity — theme (Heim) renders .quantity with its own CSS.
   We only ensure it aligns in our flex row and matches button heights.
   ========================================================================= */

.asp-pp-action-buttons .quantity {
    flex-shrink: 0;
    margin: 0; /* Override any default WC margin */
}

/* =========================================================================
   Action Buttons (Quantity + Send + Heart)
   ========================================================================= */

.asp-pp-action-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

/* Stock cap bubble on the +/- selector ("Dabartinis šios prekės likutis: N") */
.asp-pp .asp-pp-quantity,
.asp-pp-mobile-bar .asp-pp-quantity {
    position: relative;
}

.asp-pp-qty-bubble {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 4px);
    z-index: 5;
    max-width: min(260px, 80vw);
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--asp-pp-color-text, #1d1a1a);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.asp-pp-qty-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--asp-pp-color-text, #1d1a1a);
}

.asp-pp-qty-bubble--visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

/* "+" at the stock cap: looks inactive but stays tappable for the bubble. */
.asp-pp-quantity .heim-qty--max {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Low-stock warning under the action buttons (stock 1–2) */
.asp-pp-low-stock {
    margin: -6px 0 16px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: #b42318;
}

.asp-pp-send-btn {
    flex: 1;
    padding: 14px 24px;
    background: var(--asp-pp-color-btn);
    color: var(--asp-pp-color-btn-text);
    border: none;
    border-radius: var(--asp-pp-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--asp-pp-transition);
    font-family: inherit;
    letter-spacing: 0.01em;
}

.asp-pp-send-btn:hover {
    opacity: 0.85;
}

/* Optional secondary "send as a gift with a card" button: full-width row
   under [qty][primary][heart] (per-product option). */
.asp-pp-action-buttons--with-gift {
    flex-wrap: wrap;
}

.asp-pp-gift-btn {
    order: 10;
    flex: 1 1 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    background: var(--asp-pp-color-bg);
    color: var(--asp-pp-color-btn);
    border: 1.5px solid var(--asp-pp-color-btn);
    border-radius: var(--asp-pp-radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color var(--asp-pp-transition), color var(--asp-pp-transition);
}

.asp-pp-gift-btn svg {
    flex-shrink: 0;
}

.asp-pp-gift-btn:hover {
    background: var(--asp-pp-color-btn);
    color: var(--asp-pp-color-btn-text);
}

.asp-pp-heart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--asp-pp-color-border);
    border-radius: var(--asp-pp-radius);
    background: var(--asp-pp-color-bg);
    cursor: pointer;
    transition: all var(--asp-pp-transition);
    flex-shrink: 0;
    color: var(--asp-pp-color-text);
}

.asp-pp-heart-btn:hover {
    border-color: var(--asp-pp-color-text);
}

.asp-pp-heart-btn--active {
    color: #e25555;
    border-color: #e25555;
}

.asp-pp-heart-btn svg {
    min-width: 20px;
    min-height: 20px;
}

/* =========================================================================
   Delivery Info
   ========================================================================= */

.asp-pp-delivery-info {
    margin-bottom: 16px;
    font-size: 0.875rem;
}

/* =========================================================================
   Icon Lines
   ========================================================================= */

.asp-pp-icon-lines {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.asp-pp-icon-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--asp-pp-color-border);
    font-size: 0.875rem;
}

.asp-pp-icon-line:last-child {
    border-bottom: none;
}

.asp-pp-icon-line-icon {
    flex-shrink: 0;
    object-fit: contain;
}

/* =========================================================================
   Tab List
   ========================================================================= */

.asp-pp-tabs-section {
    margin-top: 8px;
}

/* =========================================================================
   Breadcrumbs (server-rendered by PHP/SEOPress, adopted by React below
   the info cards; see components/Breadcrumbs.jsx)
   ========================================================================= */

.asp-pp-breadcrumbs-slot:empty,
.asp-pp-breadcrumbs-home:empty {
    display: none;
}

.asp-pp-breadcrumbs-slot--desktop {
    margin-top: -8px; /* sit a little closer to the cards than the 32px column gap */
}

.asp-pp-breadcrumbs-slot--mobile {
    margin: 20px 0 8px;
}

.asp-pp-breadcrumbs {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--asp-pp-color-text, inherit);
}

.asp-pp-breadcrumbs ol,
.asp-pp-breadcrumbs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 2px;
}

.asp-pp-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.asp-pp-breadcrumbs a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s ease;
}

.asp-pp-breadcrumbs a:hover,
.asp-pp-breadcrumbs a:focus-visible {
    text-decoration-color: currentColor;
}

/* Separators: SEOPress prints its own (text / .separator / .sep / em);
   the fallback list draws a chevron after every non-final crumb. */
.asp-pp-breadcrumbs .separator,
.asp-pp-breadcrumbs .sep,
.asp-pp-breadcrumbs em {
    font-style: normal;
    opacity: 0.5;
    margin: 0 0.4em;
}

.asp-pp-breadcrumbs--fallback .asp-pp-breadcrumbs__item:not(:last-child)::after {
    content: '\203A';
    opacity: 0.5;
    margin: 0 0.5em;
}

/* Current page (last crumb) is muted, like the theme's trail. */
.asp-pp-breadcrumbs [aria-current='page'],
.asp-pp-breadcrumbs .breadcrumb_last,
.asp-pp-breadcrumbs li:last-child > span:not(.separator):not(.sep) {
    opacity: 0.6;
}

.asp-pp-tab-list {
    display: flex;
    flex-direction: column;
}

.asp-pp-tab-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 0;
    border: none;
    border-top: 1px solid var(--asp-pp-color-border);
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--asp-pp-color-text);
    text-align: left;
    transition: color var(--asp-pp-transition);
}

.asp-pp-tab-row:last-child {
    border-bottom: 1px solid var(--asp-pp-color-border);
}

.asp-pp-tab-row:hover {
    color: var(--asp-pp-color-text-muted);
}

.asp-pp-tab-label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.asp-pp-tab-reviews-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.asp-pp-tab-reviews-text {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--asp-pp-color-text-muted);
}

.asp-pp-tab-chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.asp-pp-tab-chevron svg {
    min-width: 20px;
    min-height: 20px;
}

/* =========================================================================
   Panel Overlay
   ========================================================================= */

.asp-pp-panel-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--asp-pp-color-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--asp-pp-transition), visibility var(--asp-pp-transition);
}

.asp-pp-panel-overlay--open {
    opacity: 1;
    visibility: visible;
}

/* =========================================================================
   Side Panel (Desktop)
   ========================================================================= */

.asp-pp-side-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--asp-pp-panel-width);
    max-width: 90vw;
    background: var(--asp-pp-color-bg);
    transform: translateX(100%);
    transition: transform var(--asp-pp-transition);
    display: flex;
    flex-direction: column;
    z-index: 100000;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.asp-pp-side-panel--open {
    transform: translateX(0);
}

.asp-pp-side-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--asp-pp-color-border);
    flex-shrink: 0;
}

/* =========================================================================
   Bottom Sheet (Mobile)
   ========================================================================= */

.asp-pp-bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85vh;
    background: var(--asp-pp-color-bg);
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform var(--asp-pp-transition);
    display: flex;
    flex-direction: column;
    z-index: 100000;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
}

.asp-pp-bottom-sheet--open {
    transform: translateY(0);
}

.asp-pp-bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--asp-pp-color-border);
    flex-shrink: 0;
    position: relative;
}

.asp-pp-bottom-sheet-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

/* =========================================================================
   Panel Shared (Title, Close, Body)
   ========================================================================= */

.asp-pp-panel-title {
    font-family: var(--asp-pp-font-serif);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500;
    margin: 0;
}

.asp-pp-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--asp-pp-color-text);
    border-radius: 50%;
    transition: background var(--asp-pp-transition);
    flex-shrink: 0;
}

.asp-pp-panel-close:hover {
    background: #f0f0f0;
}

.asp-pp-panel-close svg {
    min-width: 20px;
    min-height: 20px;
}

.asp-pp-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    -webkit-overflow-scrolling: touch;
}

/*
 * Panel content typography.
 * Content comes from WYSIWYG, so it inherits theme heading/list rules
 * (serif display headings, rem-based sizes that change with the theme's
 * per-breakpoint html font-size). Everything below is pinned in px and
 * applies identically on mobile and desktop.
 */
.asp-pp-panel-content {
    --asp-pp-panel-text: 15px;
    --asp-pp-panel-lh: 1.65;
    font-family: var(--asp-pp-font-family);
    font-size: var(--asp-pp-panel-text);
    line-height: var(--asp-pp-panel-lh);
    color: var(--asp-pp-color-text);
    overflow-wrap: anywhere;
}

.asp-pp-panel-content > :first-child {
    margin-top: 0 !important;
}

.asp-pp-panel-content > :last-child {
    margin-bottom: 0 !important;
}

.asp-pp-panel-content p,
.asp-pp-panel-content ul,
.asp-pp-panel-content ol,
.asp-pp-panel-content table,
.asp-pp-panel-content blockquote,
.asp-pp-panel-content figure {
    font-size: var(--asp-pp-panel-text);
    line-height: var(--asp-pp-panel-lh);
    margin: 0 0 14px;
}

.asp-pp-panel-content h1,
.asp-pp-panel-content h2,
.asp-pp-panel-content h3,
.asp-pp-panel-content h4,
.asp-pp-panel-content h5,
.asp-pp-panel-content h6 {
    font-family: var(--asp-pp-font-family);
    font-weight: 600;
    color: var(--asp-pp-color-text);
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    margin: 22px 0 10px;
}

.asp-pp-panel-content h1,
.asp-pp-panel-content h2 {
    font-size: 18px;
}

.asp-pp-panel-content h3 {
    font-size: 17px;
}

.asp-pp-panel-content h4,
.asp-pp-panel-content h5,
.asp-pp-panel-content h6 {
    font-size: 16px;
}

.asp-pp-panel-content p + h2,
.asp-pp-panel-content p + h3,
.asp-pp-panel-content p + h4,
.asp-pp-panel-content ul + h2,
.asp-pp-panel-content ul + h3,
.asp-pp-panel-content ul + h4,
.asp-pp-panel-content ol + h2,
.asp-pp-panel-content ol + h3,
.asp-pp-panel-content ol + h4 {
    margin-top: 22px;
}

.asp-pp-panel-content ul,
.asp-pp-panel-content ol {
    padding-left: 22px;
}

.asp-pp-panel-content ul {
    list-style: disc;
}

.asp-pp-panel-content ol {
    list-style: decimal;
}

.asp-pp-panel-content li {
    font-size: var(--asp-pp-panel-text);
    line-height: var(--asp-pp-panel-lh);
    margin: 0 0 6px;
    padding: 0;
}

.asp-pp-panel-content li > ul,
.asp-pp-panel-content li > ol {
    margin: 6px 0 0;
}

.asp-pp-panel-content strong,
.asp-pp-panel-content b {
    font-weight: 600;
}

.asp-pp-panel-content a {
    color: inherit;
    text-decoration: underline;
}

.asp-pp-panel-content hr {
    border: 0;
    border-top: 1px solid var(--asp-pp-color-border);
    margin: 20px 0;
}

.asp-pp-panel-content table {
    width: 100%;
    border-collapse: collapse;
}

.asp-pp-panel-content th,
.asp-pp-panel-content td {
    font-size: var(--asp-pp-panel-text);
    padding: 8px 10px;
    border-bottom: 1px solid var(--asp-pp-color-border);
    text-align: left;
    vertical-align: top;
}

.asp-pp-panel-content img {
    max-width: 100%;
    height: auto;
}

/* =========================================================================
   Mobile Bottom Bar
   ========================================================================= */

.asp-pp-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--asp-pp-color-bg);
    border-top: 1px solid var(--asp-pp-color-border);
    transform: translateY(100%);
    transition: transform var(--asp-pp-transition);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);

    /* Only show on mobile */
    display: none;
}

.asp-pp-mobile-bar--visible {
    transform: translateY(0);
}

.asp-pp-mobile-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: 600px;
    margin: 0 auto;
    gap: 16px;
}


.asp-pp-mobile-bar-send {
    flex: 1;
    padding: 12px 32px;
    background: var(--asp-pp-color-btn);
    color: var(--asp-pp-color-btn-text);
    border: none;
    border-radius: var(--asp-pp-radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: opacity var(--asp-pp-transition);
}

/* Quantity in mobile bottom bar — uses theme .quantity styling */
.asp-pp-mobile-bar .quantity {
    margin: 0;
}

.asp-pp-mobile-bar-send:hover {
    opacity: 0.85;
}

/* Running total inside the mobile bottom bar (only shown when min qty > 1). */
.asp-pp-mobile-bar-total {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    min-width: 0;
}

.asp-pp-mobile-bar-total-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--asp-pp-color-muted, #6b7280);
}

.asp-pp-mobile-bar-total-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--asp-pp-color-text, #111);
}

/* "nuo {price} už vnt." wrapper used on catalog/category pages. */
.asp-min-qty-price {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.asp-min-qty-price .asp-min-qty__prefix,
.asp-min-qty-price .asp-min-qty__suffix {
    font-weight: 400;
    font-size: 0.875em;
    color: var(--asp-pp-color-muted, #6b7280);
}

.asp-min-qty-price .asp-min-qty__price {
    font-weight: inherit;
    color: inherit;
}

/* =========================================================================
   Mobile Layout
   ========================================================================= */

.asp-pp-mobile {
    padding-bottom: 80px; /* Space for bottom bar */
}

.asp-pp-mobile-info {
    padding: 16px 24px 0;
}

/* =========================================================================
   Responsive Breakpoints
   ========================================================================= */

/* Mobile: <= 768px */
@media (max-width: 768px) {
    .asp-pp-title {
        font-size: 1.5rem;
    }

    .asp-pp-mobile-bar {
        display: block;
    }

    .asp-pp-send-btn {
        padding: 12px 20px;
    }

    .asp-pp-heart-btn {
        width: 48px;
        height: 48px;
    }

}

/* Tablet: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .asp-pp-desktop-grid {
        gap: 24px;
    }

    .asp-pp-title {
        font-size: 1.75rem;
    }
}

/* Large desktop: > 1400px — alignment via .asp-pp-desktop + .asp-pp-desktop-grid */

/* =========================================================================
   WooCommerce review styles within panel
   ========================================================================= */

.asp-pp-panel-content .commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.asp-pp-panel-content .comment {
    padding: 16px 0;
    border-bottom: 1px solid var(--asp-pp-color-border);
}

.asp-pp-panel-content .comment:last-child {
    border-bottom: none;
}

.asp-pp-panel-content .star-rating {
    display: inline-flex;
    color: var(--asp-pp-color-star);
    font-size: 14px;
    margin-bottom: 4px;
}

.asp-pp-panel-content .comment_container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.asp-pp-panel-content .woocommerce-review__author {
    font-weight: 600;
    font-size: 14px;
}

.asp-pp-panel-content .description p {
    margin: 4px 0 0;
}

/* =========================================================================
   Product Add-on checkboxes (above the action buttons)
   ========================================================================= */

.asp-pp-addons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 16px;
}

.asp-pp-addon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--asp-pp-color-border, #e5e7eb);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.asp-pp-addon:hover {
    border-color: #cbd5e1;
}

.asp-pp-addon--checked {
    border-color: #111;
    background: #fafafa;
}

.asp-pp-addon__checkbox {
    width: 18px;
    height: 18px;
    flex: none;
    accent-color: #111;
    margin: 0;
}

.asp-pp-addon__label {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.3;
    color: #111;
}

.asp-pp-addon__price {
    font-weight: 600;
    color: #111;
    white-space: nowrap;
}

.asp-pp-addon__radio {
    width: 18px;
    height: 18px;
    flex: none;
    accent-color: #111;
    margin: 0;
}

.asp-pp-addon-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
}

.asp-pp-addon-group__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #444;
    margin: 0 0 2px;
    padding: 0;
}

.asp-pp-addon-group__required {
    color: #b32d2e;
    font-weight: 500;
    margin-left: 4px;
}

.asp-pp-addons-hint {
    font-size: 0.8125rem;
    color: #b32d2e;
    margin: 0 0 4px;
}

.asp-pp-addon-extras {
    font-size: 0.875rem;
    color: #444;
    margin: 4px 0 8px;
}

/* =========================================================================
   Hidden WooCommerce elements
   ========================================================================= */

/* Hidden WooCommerce elements (sr-only, not display:none, so JS events fire) */
.asp-pp-hidden-woo {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

/* =========================================================================
   Below-the-fold "Extras" section (Guarantees + Ingredients/Static + Related)
   Mirrors header layout: outer wrapper uses var(--page--spacing) for the
   gutter, inner row is capped at 1520px and centered (no horizontal padding
   of its own).
   ========================================================================= */

/* The full-bleed below-the-fold section uses width:100vw, which includes
   the vertical scrollbar gutter and therefore overflows body by ~half
   the scrollbar width on both sides.  Clip the overflow on the product
   page only so a horizontal scrollbar never appears.  `clip` is preferred
   over `hidden` because it doesn't create a new scroll container (won't
   break position:sticky elsewhere on the page); the duplicate property
   acts as a graceful fallback in older browsers. */
body.asp-pp-active {
    overflow-x: hidden;
    overflow-x: clip;
}

/* Full-bleed: break out of the theme's content container so the section
   spans edge-to-edge regardless of where #asp-product-page is mounted.
   The inner wrapper still respects the 1520px page width used by the
   header, so guarantees etc. stay aligned with the layout above. */
.asp-pp-extras,
.asp-pp-related {
    position: relative;
    box-sizing: border-box;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: none;
    padding-left: var(--page--spacing, 24px);
    padding-right: var(--page--spacing, 24px);
    margin-top: 48px;
}

/* Row background + vertical padding, both admin-controlled.  Defaults keep
   the section transparent and unpadded, i.e. exactly as before. */
.asp-pp-extras {
    background: var(--asp-pp-extras-bg, transparent);
    padding-top: var(--asp-pp-extras-pad-y, 0px);
    padding-bottom: var(--asp-pp-extras-pad-y, 0px);
}

.asp-pp-extras-inner,
.asp-pp-related-inner {
    max-width: 1520px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Layout A (ingredients): 1/3 guarantees + 2/3 slider.
   Layout B (static): same 1/3 guarantees + right side splits into
   text + image columns via the StaticInfoBlock. */
.asp-pp-extras-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 40px;
    align-items: start;
}

.asp-pp-extras-left {
    min-width: 0;
    position: relative;
    /* Full row height so its background covers the taller right column. */
    align-self: stretch;
}

.asp-pp-extras-right { min-width: 0; }

/* The left column's own background.  It is painted by a pseudo-element so
   it can bleed past the 1520px container all the way to the left edge of
   the screen and cover the section's vertical padding, while the text
   itself stays aligned with the rest of the page. */
.asp-pp-extras-left--tinted::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: calc(-1 * var(--asp-pp-extras-pad-y, 0px));
    bottom: calc(-1 * var(--asp-pp-extras-pad-y, 0px));
    left: -100vw;
    right: calc(-1 * var(--asp-pp-extras-left-bleed, 20px));
    background: var(--asp-pp-extras-left-bg, transparent);
    pointer-events: none;
}

.asp-pp-extras-left > * {
    position: relative;
    z-index: 1;
}

/* In Layout A (ingredients), let the slider's track overflow toward the
   right edge of the viewport so partial cards "peek" past the 1520px
   container, just like the gifting plugin's greeting card slider. */
.asp-pp-extras--ingredients .asp-pp-extras-right .asp-pp-slider-track {
    padding-right: 0;
}

/* --- Guarantees --- */
.asp-pp-guarantees {
    /* --asp-pp-guar-icon is injected from the iconSize admin setting,
       --asp-pp-guar-divider from the divider colour setting. */
}

/* The guarantees and ingredients headings share one set of rules so the
   two columns line up on the same baseline. */
.asp-pp-guarantees-header,
.asp-pp-ingredients-header {
    margin: 0 0 16px;
}

.asp-pp-guarantees-title,
.asp-pp-ingredients-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--asp-pp-color-text, #111);
}

.asp-pp-guarantees-subtitle,
.asp-pp-ingredients-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 6px 0 0;
    color: var(--asp-pp-color-muted, #555);
}

/* 2x2 grid (the original layout, kept as an admin option). */
.asp-pp-guarantees--grid .asp-pp-guarantees-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* Rows: icon + text per line, divider in between. */
.asp-pp-guarantees--list .asp-pp-guarantees-grid {
    display: flex;
    flex-direction: column;
}

.asp-pp-guarantees--list .asp-pp-guarantee {
    padding: 18px 0;
    border-bottom: 1px solid var(--asp-pp-guar-divider, rgba(0, 0, 0, 0.12));
}

.asp-pp-guarantees--list .asp-pp-guarantee:first-child {
    padding-top: 0;
}

.asp-pp-guarantees--list .asp-pp-guarantee:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.asp-pp-guarantee {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.asp-pp-guarantee-icon {
    width: var(--asp-pp-guar-icon, 48px);
    height: var(--asp-pp-guar-icon, 48px);
    object-fit: contain;
    flex-shrink: 0;
}

.asp-pp-guarantee-icon--placeholder {
    background: #f4f4f4;
    border-radius: 6px;
}

.asp-pp-guarantee-text {
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--asp-pp-color-text, #111);
}

/* --- Static block (Layout B right side) --- */
.asp-pp-static {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.asp-pp-static-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--asp-pp-color-text, #111);
}

.asp-pp-static-content {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--asp-pp-color-text, #111);
}

.asp-pp-static-content p {
    margin: 0 0 12px;
}

.asp-pp-static-image {
    overflow: hidden;
    border-radius: 8px;
}

.asp-pp-static-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* =========================================================================
   Shared horizontal slider (used by IngredientsSlider + RelatedProducts).
   Mirrors the gifting plugin's .wcflow-cards-slider 1:1 in shape and feel.
   ========================================================================= */

.asp-pp-slider { position: relative; }

.asp-pp-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 18px;
    margin-bottom: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Drag/swipe the track directly; snapping makes a flick land on a card
       instead of drifting between two of them. */
    touch-action: pan-x pan-y;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
}

.asp-pp-slider-track::-webkit-scrollbar { display: none; }

.asp-pp-slider-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .asp-pp-slider-card {
        flex: 0 0 206px;
    }
}

.asp-pp-slider-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.asp-pp-slider-progress {
    flex-grow: 1;
    height: 2px;
    background: #e5e5e5;
    border-radius: 1px;
}

.asp-pp-slider-progress-bar {
    height: 100%;
    width: 0;
    background: #007cba;
    border-radius: 1px;
    transition: width 0.2s ease-out;
}

.asp-pp-slider-arrows {
    display: flex;
    gap: 8px;
}

.asp-pp-slider-arrow {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    color: #333;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.asp-pp-slider-arrow:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #999;
}

.asp-pp-slider-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.asp-pp-slider-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

/* Static row (used when there are <= 4 ingredients).  Always reserve
   four equal-width columns so a single ingredient occupies one
   quarter of the available width — never the full row.  Items fill
   left-to-right; the rest of the columns stay visually empty. */
.asp-pp-ingredients--static .asp-pp-ingredients-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    justify-content: start;
}

@media (max-width: 768px) {
    .asp-pp-ingredients--static .asp-pp-ingredients-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- Ingredient card --- */
.asp-pp-ingredient { text-align: left; }

.asp-pp-ingredient-imgwrap {
    width: 100%;
    aspect-ratio: var(--asp-pp-ingredient-ratio, 1 / 1);
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    margin-bottom: 8px;
}

.asp-pp-ingredient-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.asp-pp-ingredient-img--empty { background: #f0f0f0; }

.asp-pp-ingredient-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--asp-pp-color-text, #111);
    line-height: 1.3;
}

/* =========================================================================
   Related products slider
   ========================================================================= */

.asp-pp-related-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--asp-pp-color-text, #111);
}

.asp-pp-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.asp-pp-related-imgwrap {
    width: 100%;
    aspect-ratio: var(--asp-pp-related-ratio, 1 / 1);
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    margin-bottom: 8px;
}

.asp-pp-related-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.asp-pp-related-card:hover .asp-pp-related-img {
    transform: scale(1.04);
}

.asp-pp-related-img--empty { background: #f0f0f0; }

.asp-pp-related-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--asp-pp-color-text, #111);
    margin-bottom: 4px;
}

.asp-pp-related-price {
    font-size: 0.9rem;
    color: var(--asp-pp-color-muted, #555);
}

/* =========================================================================
   Mobile breakpoint for extras + sliders
   ========================================================================= */

@media (max-width: 768px) {
    .asp-pp-extras,
    .asp-pp-related {
        padding-left: 24px;
        padding-right: 24px;
        margin-top: 32px;
    }

    .asp-pp-extras-inner {
        /* Stack guarantees above content; static block also stacks below. */
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .asp-pp-static {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    /* Stacked: the left background spans the full width and stops at the
       column's own bottom edge instead of the whole row. */
    .asp-pp-extras-left--tinted::before {
        right: -100vw;
        bottom: calc(-1 * var(--asp-pp-extras-gap-y, 14px));
    }

    .asp-pp-guarantees-title,
    .asp-pp-ingredients-title { font-size: 1.1rem; }

    .asp-pp-related-title { font-size: 1.25rem; }

    .asp-pp-slider-arrow {
        width: 42px;
        height: 42px;
    }
}

/* =========================================================================
   Size selector (Bloom & Wild style cards)
   ========================================================================= */

.asp-pp-sizes {
    margin: 16px 0 20px;
}

.asp-pp-sizes__heading {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.asp-pp-sizes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.asp-pp-sizes__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 10px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease;
    font: inherit;
    color: inherit;
}

.asp-pp-sizes__card:hover:not(:disabled) {
    border-color: #222;
}

.asp-pp-sizes__card.is-selected {
    background: #f5f0e8;
    border-color: #1a1a1a;
}

.asp-pp-sizes__card.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.asp-pp-sizes__name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.asp-pp-sizes__label {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.2;
}

.asp-pp-sizes__price {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 2px;
}

.asp-pp-sizes__price .woocommerce-Price-amount,
.asp-pp-sizes__price .amount {
    font-weight: 500;
}

/* =========================================================================
   Server-rendered tab copy + wrapping grids (SEO / no-JS)
   ========================================================================= */

/* The whole server-rendered block exists for crawlers only.  Once React has
   mounted, shoppers get the normal UI (tab copy behind the tab panels,
   interactive ingredients / related sliders), so the SSR clone is taken out of
   sight with sr-only clipping rather than display:none — it stays in the DOM
   and in the raw HTML that crawlers parse. */
html.asp-pp-hydrated #asp-pp-seo-content {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.asp-pp-ssr-intro {
    box-sizing: border-box;
    max-width: 1520px;
    margin: 0 auto 32px;
    padding: 24px var(--page--spacing, 24px) 0;
}

.asp-pp-ssr-intro__title {
    font-family: var(--asp-pp-font-serif, Georgia, serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 12px;
}

.asp-pp-ssr-intro__summary {
    font-size: 1rem;
    line-height: 1.6;
}

.asp-pp-ssr-tab-list .asp-pp-tab-row {
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
}

.asp-pp-ssr-extras,
.asp-pp-ssr-related {
    margin-top: 48px;
}

.asp-pp-ssr-tabs {
    box-sizing: border-box;
    max-width: 1520px;
    margin: 48px auto 0;
    padding: 0 var(--page--spacing, 24px);
}

.asp-pp-ssr-tab {
    margin: 0 0 40px;
}

.asp-pp-ssr-tab:last-child {
    margin-bottom: 0;
}

.asp-pp-ssr-tab__title {
    font-family: var(--asp-pp-font-serif, Georgia, serif);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 16px;
    color: var(--asp-pp-color-text, #1a1a1a);
}

.asp-pp-ssr-tab__body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--asp-pp-color-text, #1a1a1a);
}

.asp-pp-ssr-tab__body p {
    margin: 0 0 1em;
}

.asp-pp-ssr-tab__body p:last-child {
    margin-bottom: 0;
}

.asp-pp-ingredients--wrap .asp-pp-ingredients-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.asp-pp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .asp-pp-ssr-tabs {
        margin-top: 32px;
        padding: 0 24px;
    }

    .asp-pp-ssr-tab__title {
        font-size: 1.25rem;
    }

    .asp-pp-ingredients--wrap .asp-pp-ingredients-grid,
    .asp-pp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ── Size picker row + panel ─────────────────────────────────── */
.asp-pp-sizepicker {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 12px 0;
	padding: 10px 14px;
	min-height: 72px;
	flex: 0 0 auto;
	align-self: flex-start;
	overflow: hidden;
	border: 0;
	border-radius: 16px;
	background: var(--asp-chip-active-bg, #f9ecd7);
	cursor: pointer;
	font-family: inherit;
	line-height: normal;
	text-align: left;
	box-sizing: border-box;
}
.asp-pp-sizepicker__thumbs { display: flex; gap: 8px; flex-shrink: 0; line-height: 0; }
.asp-pp-sizepicker__thumb {
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	line-height: 0;
}
/* Theme `button img` / `button { padding }` rules outrank single-class selectors;
   these layout properties are forced so the picker and cards render identically
   regardless of the active theme. */
.asp-pp button.asp-pp-sizepicker,
.asp-pp button.asp-pp-sizecard {
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	line-height: normal !important;
	box-shadow: none !important;
	transform: none !important;
	display: flex !important;
	align-items: center !important;
}
/* Themes often add icon/ripple pseudo-elements to every <button>; inside a
   flex row they occupy space before the image. */
.asp-pp button.asp-pp-sizepicker::before,
.asp-pp button.asp-pp-sizepicker::after,
.asp-pp button.asp-pp-sizecard::before,
.asp-pp button.asp-pp-sizecard::after { content: none !important; display: none !important; }
.asp-pp button.asp-pp-sizepicker { padding: 10px 14px !important; margin: 12px 0 !important; min-height: 72px !important; }
.asp-pp button.asp-pp-sizecard { gap: 16px !important; min-height: 96px !important; }
.asp-pp .asp-pp-sizepicker__thumb img,
.asp-pp .asp-pp-sizecard__img img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
}
.asp-pp-sizepicker__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asp-pp-sizepicker__label {
	flex: 1;
	min-width: 0;
	font-size: 18px;
	font-weight: 500;
	color: #262626;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.asp-pp-sizepicker__chevron { display: flex; color: #262626; }

/* Panel: cards + footer (panel shell reuses asp-pp-panel classes) */
.asp-pp-sizepanel__subtitle { font-size: 16px; line-height: 24px; color: #262626; margin-top: 2px; }
.asp-pp-sizepanel__body { display: flex; flex-direction: column; gap: 12px; padding-bottom: 96px; }
.asp-pp-sizecard {
	position: relative;
	display: flex;
	gap: 16px;
	align-items: center;
	width: 100%;
	padding: 0;
	border: 1.5px solid var(--asp-border-color, #e2e0dc);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
	overflow: hidden;
}
.asp-pp-sizecard.is-selected {
	border-color: #262626;
	background: var(--asp-chip-active-bg, #f9ecd7);
}
.asp-pp-sizecard.is-disabled { opacity: .5; cursor: not-allowed; }
.asp-pp .asp-pp-sizecard__img {
	position: relative;
	flex: 0 0 110px !important;
	width: 110px !important;
	min-width: 110px !important;
	max-width: 110px !important;
	align-self: stretch;
	display: block;
	overflow: hidden;
	background: #f5f2ee;
}
/* Absolutely filled so the image never dictates the card height — the text
   column does; the image just covers whatever height results. */
.asp-pp .asp-pp-sizecard__img img { position: absolute !important; inset: 0 !important; }
.asp-pp-sizecard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asp-pp .asp-pp-sizecard__info { display: flex !important; flex: 1 1 auto !important; flex-direction: column; gap: 4px; padding: 14px 14px 14px 0; min-width: 0; }
.asp-pp .asp-pp-sizecard__name, .asp-pp .asp-pp-sizecard__price, .asp-pp .asp-pp-sizecard__chip { display: block; }
.asp-pp .asp-pp-sizecard__chip { display: inline-block; }
.asp-pp-sizecard.has-badge .asp-pp-sizecard__info { padding-right: 96px; }
.asp-pp-sizecard__name { font-size: 18px; line-height: 24px; font-weight: 500; color: #262626; }
.asp-pp-sizecard__price { font-size: 16px; line-height: 24px; font-weight: 600; color: #262626; }
.asp-pp-sizecard__chip {
	display: inline-block;
	align-self: flex-start;
	padding: 2px 12px;
	margin-top: 4px;
	border: 1px solid var(--asp-border-color, #e2e0dc);
	border-radius: 999px;
	font-size: 13px;
	line-height: 20px;
	color: #534e46;
}
.asp-pp-sizecard__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 3px 10px;
	border-radius: 6px;
	background: #e4e000;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	color: #262626;
}
.asp-pp-sizepanel__footer {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	display: flex;
	gap: 12px;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	background: #fff;
	border-top: 1px solid var(--asp-border-color, #e2e0dc);
}
.asp-pp-sizepanel__info-btn {
	flex: 1;
	padding: 14px 16px;
	border: 0;
	border-radius: 999px;
	background: #f2f0ec;
	font-size: 15px;
	font-weight: 600;
	color: #262626;
	cursor: pointer;
}
.asp-pp-sizepanel__cta {
	flex: 1.2;
	padding: 14px 16px;
	border: 0;
	border-radius: 999px;
	background: #262626;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
}
.asp-pp-sizepanel__cta:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) {
	.asp-pp-sizepicker__thumb { width: 48px; height: 48px; }
}

/* Collapsed size-picker row polish */
.asp-pp-sizepicker__label {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-underline-offset: 3px;
}
@media (max-width: 480px) {
	.asp-pp-sizepicker__thumb { width: 44px; height: 44px; flex-basis: 44px; }
	.asp-pp-sizepicker { gap: 10px; padding: 10px 12px; }
}
