/* Product Page Styles - Professional & Animated */

.product-title,
.description-title,
.content-text-heading,
.content-text-heading--solo,
.feature-benefit-heading,
.main-benefits-heading,
.specifications-title,
.faq-title,
.reviews-title,
.content-image-block-header {
    font-family: var(--storefront-display-font, inherit);
    font-size: var(--product-heading-size, clamp(1.75rem, 1.5rem + 0.6vw, 2.1rem));
}

.product-hero-info-col,
.description-text,
.product-content-blocks,
.content-text-body,
.feature-benefit-table-cell--benefit,
.main-benefits-description,
.specifications-subtitle,
.specs-table-cell,
.faq-subtitle,
.product-faq-accordion .accordion-button,
.product-faq-accordion .accordion-body {
    font-family: var(--product-copy-font, inherit);
}

/* Keep the floating navigation available without covering product details. */
.storefront-page .navbar-custom {
    will-change: transform;
    transition: transform 240ms ease, box-shadow 300ms ease;
}

.storefront-page .navbar-custom.navbar-scroll-hidden {
    transform: translateY(calc(-100% - 1.5rem));
}

@media (prefers-reduced-motion: reduce) {
    .storefront-page .navbar-custom {
        transition: none;
    }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
    animation: fadeInDown 0.4s ease 0.1s both;
}

.storefront-page .breadcrumb-item a {
    color: #000000 !important;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    position: relative;
}

.storefront-page .breadcrumb-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.storefront-page .breadcrumb-item a:hover {
    color: #000000 !important;
}

.storefront-page .breadcrumb-item a:hover::after {
    width: 100%;
}

.storefront-page .breadcrumb-item.active {
    color: #000000 !important;
}

.storefront-page .breadcrumb-item + .breadcrumb-item::before {
    color: #000000 !important;
}

[data-theme="dark"] .storefront-page .breadcrumb-item a,
[data-theme="dark"] .storefront-page .breadcrumb-item a:hover,
[data-theme="dark"] .storefront-page .breadcrumb-item.active,
[data-theme="dark"] .storefront-page .breadcrumb-item + .breadcrumb-item::before {
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .breadcrumb {
        display: flex;
        flex-wrap: nowrap;
        font-size: 0.68rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .breadcrumb-item {
        flex-shrink: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ===== PRODUCT IMAGE GALLERY ===== */
.product-gallery {
    position: relative;
    --gallery-icon-surface: rgba(255, 255, 255, 0.78);
    --gallery-icon-surface-hover: rgba(255, 255, 255, 0.94);
    --gallery-icon-border: rgba(255, 255, 255, 0.98);
    --gallery-icon-color: #121212;
}

[data-theme="dark"] .product-gallery {
    --gallery-icon-surface: rgba(0, 0, 0, 0.72);
    --gallery-icon-surface-hover: rgba(0, 0, 0, 0.88);
    --gallery-icon-border: rgba(0, 0, 0, 0.96);
    --gallery-icon-color: #d6d6d6;
}

.main-image-container {
    position: relative;
    width: 100%;
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    cursor: zoom-in;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.main-image-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.product-carousel-wrapper {
    position: relative;
}

.product-carousel {
    position: relative;
    width: 100%;
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 1 / 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-carousel:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.product-carousel .carousel-inner {
    height: 100%;
    touch-action: pan-y pinch-zoom;
}

.product-carousel .carousel-item {
    height: 100%;
}

.carousel-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transform: scale(1);
    border-radius: 0.5rem;
    transition: transform 0.4s ease;
    opacity: 1;
}

.main-image.is-revealed,
.carousel-gallery-image.is-revealed {
    opacity: 1;
}

.main-image.image-loading,
.carousel-gallery-image.image-loading {
    opacity: 0;
}

/* A thin row of white steps (like social-media stories) replaces the dots and the "1 / 12" counter.
   White, not green: green stays for buying. */
.product-carousel-indicators {
    display: none;
}

.gallery-progress {
    position: absolute;
    bottom: 0.75rem;
    left: 1rem;
    right: 1rem;
    z-index: 2;
    display: flex;
    gap: 4px;
    pointer-events: none;
}

.gallery-progress-step {
    position: relative;
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.gallery-progress-step::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.gallery-progress-step.is-filled::after {
    transform: scaleX(1);
}

.product-carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background-color: rgba(255, 255, 255, 0.65);
    transition: all 0.3s ease;
}

.product-carousel-indicators [data-bs-target]:hover {
    transform: scale(1.2);
}

.product-carousel-indicators .active {
    background-color: var(--brand-primary);
    width: 24px;
    border-radius: 999px;
}

/* Always shown, so every shopper sees there are more photos; small and see-through so the product stays visible. */
.gallery-control,
.gallery-control:hover,
.gallery-control:focus {
    width: 3rem;
    opacity: 1;
}

/* Arrows hug the edges so they cover less of the photo. */
.gallery-control.carousel-control-prev { justify-content: flex-start; padding-left: 0.2rem; }
.gallery-control.carousel-control-next { justify-content: flex-end; padding-right: 0.2rem; }

.gallery-control .carousel-control-prev-icon,
.gallery-control .carousel-control-next-icon {
    background-image: none;
    background-color: color-mix(in srgb, var(--gallery-icon-surface) 40%, transparent);
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--gallery-icon-border) 30%, transparent);
    width: 2.25rem;
    height: 2.25rem;
    position: relative;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Only real mouse hover brightens them; phones keep them faded after a tap. */
@media (hover: hover) {
    .gallery-control .carousel-control-prev-icon:hover,
    .gallery-control .carousel-control-next-icon:hover {
        background-color: var(--gallery-icon-surface-hover);
        opacity: 1;
        transform: scale(1.1);
    }
}

.gallery-control .carousel-control-prev-icon::before,
.gallery-control .carousel-control-next-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1rem;
    height: 1rem;
    background-color: var(--gallery-icon-color);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.gallery-control .carousel-control-prev-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M10.6 2.1 4.7 8l5.9 5.9 1.4-1.4L7.5 8l4.5-4.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M10.6 2.1 4.7 8l5.9 5.9 1.4-1.4L7.5 8l4.5-4.5z'/%3E%3C/svg%3E");
}

.gallery-control .carousel-control-next-icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M5.4 2.1 4 3.5 8.5 8 4 12.5l1.4 1.4L11.3 8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M5.4 2.1 4 3.5 8.5 8 4 12.5l1.4 1.4L11.3 8z'/%3E%3C/svg%3E");
}

/* Shortly after the page opens, the next arrow brightens and its chevron
   nudges forward twice, hinting that there are more photos to see. */
.gallery-control .carousel-control-next-icon {
    animation: galleryNextHint 1.4s ease-in-out 1.2s 2;
}

.gallery-control .carousel-control-next-icon::before {
    animation: galleryNextNudge 1.4s ease-in-out 1.2s 2;
}

@keyframes galleryNextHint {
    0%, 100% { opacity: 0.6; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(255, 255, 255, 0.6); }
    35% { opacity: 1; }
    70% { box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15), 0 0 0 0.6rem rgba(255, 255, 255, 0); }
}

@keyframes galleryNextNudge {
    0%, 70%, 100% { transform: translateX(0); }
    35% { transform: translateX(4px); }
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1);
    border-radius: 0.5rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
}

.main-image-container:hover .main-image {
    transform: scale(0.95);
}

.zoom-hint {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.main-image-container:hover .zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

/* ===== THUMBNAIL GALLERY ===== */
.thumbnail-strip {
    position: relative;
    animation: fadeInUp 0.4s ease 0.2s both;
}

@keyframes product-loading-shimmer {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

/* Custom image loading shimmer effect */
.image-shimmer-container {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.image-shimmer-container.shimmering::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 80%);
    background-size: 200% 100%;
    animation: product-loading-shimmer 1.5s infinite;
    pointer-events: none;
    z-index: 1;
}

[data-theme="dark"] .image-shimmer-container.shimmering::after {
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 80%);
    background-size: 200% 100%;
}

.image-hidden {
    opacity: 0 !important;
}

.image-fade-in {
    opacity: 1 !important;
    animation: imageFadeIn 0.5s ease forwards;
}

@keyframes imageFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== SECTION REVEAL ANIMATIONS ===== */
.section-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: none;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Product content blocks section reveal */
.product-content-blocks.section-hidden,
.product-content-blocks.section-revealing,
.product-content-blocks.section-visible {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

/* FAQ section reveal */
.product-faq-section.section-hidden,
.product-faq-section.section-revealing,
.product-faq-section.section-visible {
    margin-top: 3rem;
    padding-top: 2rem;
}

/* Reviews section reveal */
.product-reviews-section.section-hidden,
.product-reviews-section.section-revealing,
.product-reviews-section.section-visible {
    margin-top: 3rem;
    padding-top: 2rem;
}

.thumbnail-gallery {
    position: relative;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 2.5rem 0.25rem;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 2.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-width: 0;
    max-width: calc(6 * 75px + 5 * 0.5rem + 5rem);
}

.thumbnail-strip::before,
.thumbnail-strip::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0.25rem;
    width: 2.5rem;
    z-index: 1;
    pointer-events: none;
}

.thumbnail-strip::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.thumbnail-strip::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-primary), transparent);
}

.thumbnail-gallery::-webkit-scrollbar {
    display: none;
}

.thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--gallery-icon-border);
    background: var(--gallery-icon-surface);
    color: var(--gallery-icon-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumb-nav:hover:not(:disabled) {
    background: var(--gallery-icon-surface-hover);
    border-color: var(--gallery-icon-border);
    color: var(--gallery-icon-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumb-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.thumb-nav:active:not(:disabled) {
    transform: translateY(-50%) scale(0.92);
}

.thumb-nav-prev { left: 0.25rem; }
.thumb-nav-next { right: 0.25rem; }

.thumbnail-item {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    scroll-snap-align: center;
}

.thumbnail-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-item:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail-item:hover::before {
    opacity: 1;
}

.thumbnail-item.active {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-accent);
    transform: scale(1.05);
}

.thumbnail-item img,
.thumbnail-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img,
.thumbnail-item:hover video {
    transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
    .thumbnail-gallery {
        scroll-behavior: auto;
        scroll-snap-type: none;
    }

    .thumbnail-item,
    .thumb-nav {
        transition-duration: 0.01ms;
    }
}

.thumbnail-item {
    position: relative;
}

.thumb-video-badge {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    pointer-events: none;
}

.product-gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Speaker button on a video slide: top-right, clear of the photo steps along the bottom. */
.gallery-sound-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
    color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.gallery-sound-button:hover,
.gallery-sound-button[aria-pressed="true"] {
    background: var(--brand-primary);
    color: #000;
    border-color: var(--brand-primary);
}

.gallery-sound-button:hover {
    transform: scale(1.1);
}

[data-theme="dark"] .gallery-sound-button {
    background: rgba(30, 30, 30, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* While the video plays silently, the speaker button pulses three times so
   the shopper notices the sound can be turned on. */
.gallery-sound-button.is-sound-hint {
    animation: gallerySoundHint 1.2s ease-out 0.4s 3;
}

@keyframes gallerySoundHint {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.85); }
    30% { transform: scale(1.18); }
    60% { transform: scale(1); }
    100% { transform: scale(1); box-shadow: 0 0 0 0.9rem rgba(212, 175, 55, 0); }
}

/* Pulsing play ring over the poster until the video is actually moving. */
.gallery-video-waiting {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.is-video-waiting .gallery-video-waiting {
    opacity: 1;
}

.gallery-video-waiting i {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.2rem;
    animation: galleryVideoPulse 1.6s ease-out infinite;
}

@keyframes galleryVideoPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    100% { box-shadow: 0 0 0 1.25rem rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-video-waiting i,
    .gallery-sound-button.is-sound-hint,
    .gallery-control .carousel-control-next-icon,
    .gallery-control .carousel-control-next-icon::before {
        animation: none;
    }
}

/* ===== PRODUCT INFO ===== */
.product-info {
    padding: 0.5rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    animation: fadeIn 0.5s ease 0.1s both;
}

.product-rating-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    margin-bottom: 0.25rem;
    color: #9ca3af;
    cursor: pointer;
    animation: fadeIn 0.5s ease 0.15s both;
}

/* Stars in soft brand gold: grey stars read as "not rated"; the rating text beside them stays grey */
.product-rating-stars i,
.review-stars i,
.top-review-stars i {
    /* Fixed gold: the shop accent is replaced by the admin colour setting (currently brown) */
    color: #d4af37;
}

.product-rating-stars i {
    transition: transform 0.2s ease;
}

.product-rating-summary:focus-visible {
    outline: 2px solid var(--shop-accent-color);
    outline-offset: 3px;
    border-radius: 0.25rem;
}

.product-rating-summary:hover .product-rating-stars i {
    transform: scale(1.1);
}

.product-rating-text {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== PRICING ===== */
.price-container {
    margin-bottom: 1.25rem;
    animation: fadeIn 0.5s ease 0.2s both;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
    animation: pricePopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

[data-theme="dark"] .current-price {
    color: #fff;
}

@keyframes pricePopIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.original-price {
    font-size: 1.25rem;
    font-weight: 500;
    color: #495057;
    text-decoration: line-through;
}

[data-theme="dark"] .original-price {
    color: #d0d0d0;
}

/* One-sentence promise under the price: the ad's claim, restated on arrival. */
.product-promise-line {
    margin: 0.5rem 0 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-primary);
    text-wrap: pretty;
}

.savings-text {
    margin: 0;
    padding: 0.15rem 0.55rem;
    border: 1px solid #34c759;
    border-radius: 0.4rem;
    background-color: #34c759;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

[data-theme="dark"] .product-rating-summary,
[data-theme="dark"] .reviews-summary,
[data-theme="dark"] .review-stars,
[data-theme="dark"] .top-review-stars {
    color: #f5f5f0;
}

.savings-text {
    font-size: 0.875rem;
    font-weight: 700;
    animation: fadeIn 0.5s ease 0.4s both;
}

.bundle-deals-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.bundle-deal-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    max-width: 340px;
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideInLeft 0.4s ease both;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bundle-deal-card:hover {
    border-color: var(--shop-accent-color);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
    transform: translateX(4px) translateY(-2px);
}

.bundle-deal-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bundle-deal-saving {
    margin: 0.1rem 0 0;
    font-size: 0.82rem;
    color: var(--success);
}

/* ===== SHIPPING NOTE ===== */
.shipping-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 340px;
    margin: 0.6rem 0 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--bg-secondary);
    animation: fadeIn 0.5s ease 0.3s both;
}

.shipping-note-local {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.08), var(--bg-card));
}

.shipping-note-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.shipping-note-local .shipping-note-icon {
    color: var(--success);
}

.shipping-note-body p {
    margin: 0;
}

.shipping-note-headline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.shipping-note-free {
    font-weight: 600;
    color: var(--success);
    white-space: nowrap;
}

.shipping-note-detail {
    margin-top: 0.15rem !important;
    font-size: calc(0.82rem + 2px);
    line-height: 1.45;
    color: var(--text-secondary);
}

.shipping-note-more {
    margin-top: 0.2rem !important;
    font-size: calc(0.82rem + 2px);
}

.shipping-note-link {
    color: var(--shop-accent-color);
    text-decoration: underline;
}

/* ===== STOCK STATUS ===== */
.stock-container {
    margin-bottom: 1.25rem;
    animation: fadeIn 0.5s ease 0.25s both;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stock-badge:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stock-badge i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.stock-badge.low-stock {
    background-color: rgba(201, 168, 92, 0.12);
    color: #cdb77a;
    border: 2px solid rgba(201, 168, 92, 0.4);
}

.stock-badge.out-of-stock {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border: 2px solid var(--danger);
}

/* ===== QUANTITY SELECTOR ===== */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
    animation: fadeIn 0.5s ease 0.3s both;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.quantity-controls:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quantity-btn:hover:not(:disabled) {
    background-color: var(--brand-primary);
    color: #000;
    transform: scale(1.1);
}

.quantity-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    text-align: center;
    font-weight: 600;
    background-color: var(--bg-card);
    color: var(--text-primary);
    transition: background-color 0.3s ease;
    padding: 0;
    margin: 0;
    line-height: 40px;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input:focus {
    outline: none;
    background-color: var(--bg-secondary);
}

/* ===== ADD TO CART BUTTON ===== */
.add-to-cart-btn {
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 0.75rem;
    margin-bottom: 0;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.add-to-cart-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.add-to-cart-btn:active:not(:disabled) {
    transform: translateY(0);
}

/* ===== FLOATING PURCHASE BAR =====
   Phones: the same green button as the in-page one, pinned to the bottom, nothing else.
   No card, no stepper, no slide-in, so it reads as the one button following her down the page.
   Once the product is in the cart the bar shows "1 in cart - View cart" on a card instead. */
.floating-purchase-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    pointer-events: none;
    padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom));
    transform: translateZ(0);
    will-change: transform;
}

.floating-purchase-bar-inner {
    pointer-events: auto;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.floating-purchase-bar-inner .add-to-cart-btn {
    margin: 0;
    flex: 1 1 auto;
    width: 100%;
    min-height: 48px;
}

/* In the cart: a card again, so "1 in cart - View cart" is readable over the page */
.floating-purchase-bar-inner.is-in-cart {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .floating-purchase-bar-inner.is-in-cart {
    background: rgba(26, 26, 26, 0.92);
}

body.has-floating-purchase-bar .storefront-footer {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(14px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-left {
    opacity: 1;
    transform: translateX(-18px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-slide-left.aos-animate {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 1;
    transform: translateX(18px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-slide-right.aos-animate {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale-up {
    opacity: 1;
    transform: scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-scale-up.aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* ===== PRODUCT DESCRIPTION ===== */
.description-section {
    margin-top: 3.5rem;
    padding: 0 1.25rem;
    max-width: min(100%, var(--pc-narrow, 760px));
    margin-left: auto;
    margin-right: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.description-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.description-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.description-section.aos-animate .description-title::after {
    width: 60px;
}

.description-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #000;
    white-space: pre-line;
    max-width: 100%;
    margin-inline: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.description-section.aos-animate .description-text {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="dark"] .description-text {
    color: #fff;
}

/* ===== PRODUCT REVIEWS ===== */
.product-reviews-section {
    margin-top: 3.5rem;
    max-width: var(--pc-narrow, 760px);
    margin-left: auto;
    margin-right: auto;
}

.product-faq-section {
    margin-top: 2.25rem;
    max-width: min(100%, var(--pc-narrow, 760px));
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.product-specifications-section {
    max-width: min(100%, var(--pc-narrow, 760px));
    margin: 3.5rem auto 0;
}

.product-specifications-section .content-block-row {
    margin-bottom: 0;
}

.specifications-header {
    margin-bottom: 1rem;
    text-align: left;
}

.specifications-title {
    margin: 0;
    font-weight: 700;
    color: var(--text-primary);
}

.specifications-subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-header {
    margin-bottom: 1rem;
    text-align: left;
}

.faq-title {
    margin: 0;
    font-weight: 700;
    color: var(--text-primary);
}

.faq-subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.product-faq-accordion {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: none;
}

.product-faq-accordion .accordion-item {
    border-color: var(--border-color);
    background: transparent;
}

.product-faq-accordion .accordion-button {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: none;
    padding: 1.1rem 1.25rem;
}

.product-faq-accordion .accordion-button::after {
    filter: brightness(0) saturate(100%) invert(18%) sepia(8%) saturate(622%) hue-rotate(169deg) brightness(96%) contrast(87%);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.product-faq-accordion .accordion-button:not(.collapsed) {
    color: var(--shop-accent-color);
    background: color-mix(in srgb, var(--shop-accent-color) 10%, var(--bg-card));
}

.product-faq-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(58%) sepia(78%) saturate(524%) hue-rotate(8deg) brightness(100%) contrast(93%);
}

.product-faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
}

.product-faq-accordion .accordion-body {
    color: var(--text-primary);
    line-height: 1.75;
    background: var(--bg-card);
    padding: 1.1rem 1.25rem 1.25rem;
}

[data-theme="dark"] .product-faq-section {
    background: transparent;
    border-color: var(--border-color);
    box-shadow: none;
}

[data-theme="dark"] .product-faq-accordion {
    background: transparent;
    border-color: var(--border-color);
}

[data-theme="dark"] .product-faq-accordion .accordion-item {
    border-color: var(--border-color);
}

[data-theme="dark"] .product-faq-accordion .accordion-button {
    background: transparent;
    color: var(--text-primary);
}

[data-theme="dark"] .product-faq-accordion .accordion-button::after {
    filter: brightness(0) saturate(100%) invert(100%);
}

[data-theme="dark"] .product-faq-accordion .accordion-button:not(.collapsed) {
    background: color-mix(in srgb, var(--shop-accent-color) 12%, transparent);
    color: var(--shop-accent-color);
}

[data-theme="dark"] .product-faq-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(84%) sepia(34%) saturate(797%) hue-rotate(350deg) brightness(96%) contrast(92%);
}

[data-theme="dark"] .product-faq-accordion .accordion-body {
    background: transparent;
    color: #fff;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.reviews-title {
    margin: 0;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.reviews-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.product-reviews-section.aos-animate .reviews-title::after {
    width: 60px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.product-reviews-section.aos-animate .reviews-summary {
    opacity: 1;
    transform: translateX(0);
}

.reviews-summary-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
}

#loadMoreReviewsBtn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

#loadMoreReviewsBtn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

#loadMoreReviewsBtn:hover::before {
    width: 300px;
    height: 300px;
}

#loadMoreReviewsBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-card {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background-color: var(--bg-card);
    padding: 1.1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.review-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.2);
    transform: translateY(-4px);
}

.review-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.review-meta {
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.review-stars {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.review-stars i {
    transition: transform 0.2s ease;
}

.review-card:hover .review-stars i {
    transform: scale(1.1);
}

.review-text {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.55;
}

.review-photo {
    display: block;
    width: 120px;
    height: 120px;
    margin-top: 0.75rem;
    border-radius: 0.5rem;
    object-fit: cover;
}

/* ===== UNAVAILABLE BANNER ===== */
.unavailable-banner {
    background-color: rgba(220, 53, 69, 0.1);
    border: 2px solid var(--danger);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.unavailable-banner i {
    font-size: 2rem;
    color: var(--danger);
    margin-bottom: 0.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.unavailable-banner h5 {
    color: var(--danger);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.unavailable-banner p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===== IMAGE MODAL ===== */
.modal-content {
    background-color: var(--modal-bg);
    border-radius: 1rem;
    animation: modalFadeIn 0.3s ease;
}

#imageModal .modal-content {
    position: relative;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#imageModal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

#imageModal .modal-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem 1.5rem;
}

.modal-image-viewport {
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: transparent;
    user-select: none;
    touch-action: none; /* Prevents default browser pinch/pan behaviors */
}

.modal-image-viewport.is-sliding #modalImage,
.modal-image-viewport.is-sliding .modal-image-incoming {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    border-radius: 0.5rem;
}

#modalImage {
    max-height: 80vh;
    width: auto;
    border-radius: 0.5rem;
    transform-origin: center center;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

#modalImage.is-opening {
    animation: zoomIn 0.3s ease;
}

#modalImage.zoomed {
    cursor: grab;
}

#modalImage.grabbing {
    cursor: grabbing !important;
}

.modal-image-incoming {
    display: none;
    max-height: 80vh;
    width: auto;
    border-radius: 0.5rem;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.modal-image-incoming.is-visible {
    display: block;
}

/* Floating Gallery Zoom Button */
.gallery-zoom-button {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 10;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
    color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-zoom-button:hover {
    background: var(--brand-primary);
    color: #000;
    border-color: var(--brand-primary);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .gallery-zoom-button {
    background: rgba(30, 30, 30, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Zoom Controls Toolbar in Modal */
.modal-zoom-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="dark"] .modal-zoom-controls {
    background: rgba(28, 28, 30, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.modal-zoom-controls .zoom-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-zoom-controls .zoom-btn:hover {
    background: var(--brand-primary);
    color: #000;
    transform: scale(1.1);
}

.modal-zoom-controls .zoom-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 48px;
    text-align: center;
    user-select: none;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-image-counter {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: auto;
}

.modal-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    -webkit-tap-highlight-color: transparent;
}

.modal-nav-arrow:hover {
    background: var(--brand-primary);
    color: #000;
    border-color: var(--brand-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.modal-nav-arrow:active,
.modal-nav-arrow.is-pressed {
    background: var(--brand-primary);
    color: #000;
    border-color: var(--brand-primary);
    transform: translateY(-50%) scale(0.88);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.modal-nav-arrow:disabled {
    display: none;
}

.modal-nav-prev { left: 0.75rem; }
.modal-nav-next { right: 0.75rem; }

@media (max-width: 767px) {
    #imageModal .modal-dialog {
        margin: 0.4rem;
        max-width: calc(100% - 0.8rem);
    }

    /* One row: count | zoom | close */
    #imageModal .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.35rem;
        padding: 0.4rem 0.65rem;
    }

    #imageModal .modal-image-counter {
        margin-right: 0;
        flex: 0 0 auto;
        min-width: 2.75rem;
    }

    #imageModal .modal-header .btn-close {
        margin: 0;
        flex: 0 0 auto;
        padding: 0.5rem;
    }

    #imageModal .modal-body {
        padding: 0.15rem 0.35rem 0.65rem;
    }

    #imageModal .modal-image-viewport {
        max-height: 78vh;
        width: 100%;
    }

    #imageModal #modalImage {
        max-height: 78vh;
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 0.35rem;
    }

    #imageModal #modalVideo {
        max-height: 78vh;
        width: 100%;
    }

    /* Zoom in the header row — no overlay on the photo */
    #imageModal .modal-zoom-controls {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 0;
        flex: 0 0 auto;
        padding: 0.25rem 0.65rem;
        gap: 0.4rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    #imageModal .modal-zoom-controls .zoom-btn {
        width: 28px;
        height: 28px;
    }

    #imageModal .modal-zoom-controls .zoom-value {
        font-size: 0.8rem;
        min-width: 40px;
    }

    /* Arrows float over the image edges */
    #imageModal .modal-nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        background: rgba(255, 255, 255, 0.45);
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        top: 50%;
    }

    #imageModal .modal-nav-arrow:active,
    #imageModal .modal-nav-arrow.is-pressed {
        background: rgba(255, 255, 255, 0.85);
        border-color: rgba(0, 0, 0, 0.12);
        transform: translateY(-50%) scale(0.85);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
    }

    #imageModal .modal-nav-prev { left: 0.45rem; }
    #imageModal .modal-nav-next { right: 0.45rem; }

    [data-theme="dark"] #imageModal .modal-nav-arrow {
        background: rgba(30, 30, 30, 0.45);
        border-color: rgba(255, 255, 255, 0.12);
    }

    [data-theme="dark"] #imageModal .modal-nav-arrow:active,
    [data-theme="dark"] #imageModal .modal-nav-arrow.is-pressed {
        background: rgba(50, 50, 50, 0.9);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* ===== CONTENT BLOCKS ===== */
/* Shared content rails for all product content sections */
body.storefront-page {
    --pc-narrow: 760px;  /* reading rail: text, benefits, specs, FAQ, reviews */
    --pc-wide: 1240px;   /* media rail: text + image rows */
}

/* Keep the lower product sections visually separated from one another. */
#productContainer > .col-12.fade-in + .col-12.fade-in {
    margin-top: 1.5rem;
}

.product-content-blocks {
    margin-top: 3.5rem;
    padding-top: 0;
    width: 100%;
    /* Two shared rails used across every content section for aligned edges */
    --product-content-rail: var(--pc-narrow, 760px);
    --product-content-readable: var(--pc-narrow, 760px);
}

.content-block-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3.25rem;
}

.content-block-row:not(.content-block-row--combined) {
    width: min(100%, var(--pc-narrow, 760px));
    margin-inline: auto;
}

.content-block-row.content-block-row--benefit-bullets {
    width: min(100%, 912px);
}

.content-block-row--text {
    width: min(100%, var(--pc-narrow, 760px));
}

@media (min-width: 768px) {
    .content-block-row--combined {
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        align-items: center;
        gap: 3rem;
        width: min(var(--pc-wide, 1240px), calc(100% - 2rem));
        margin-inline: auto;
    }
}

.content-block-col,
.content-block-col-full {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-block-row--combined .content-block-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

    .content-block-row--combined .content-block-col .content-text-block {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    align-items: flex-start;
    text-align: left;
    border-radius: 0.75rem;
    border-right: none;
    border-left: none;
    margin: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0;
    color: var(--text-secondary);
    position: relative;
    overflow: visible;
    gap: 0.85rem;
}

.content-block-row--combined:hover .content-text-block {
    background: transparent;
}

.content-block-row--combined .content-block-col .content-text-heading {
    text-align: left;
    width: 100%;
    max-width: 13em;
    margin: 0;
    font-weight: 700;
    line-height: 1.16;
    color: var(--text-primary);
}

.content-block-row--combined .content-block-col .content-text-body {
    text-align: left;
    width: 100%;
    max-width: 46ch;
    margin: 0;
    font-size: clamp(1rem, 0.94rem + 0.18vw, 1.08rem);
    line-height: 1.75;
}

.content-block-row--combined .content-block-col .content-image-block {
    border-radius: 1rem;
    border: none;
    flex: none;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 0;
    background: transparent;
    margin: 0;
}

.content-block-row--combined .content-block-col .content-image-block-wrapper {
    flex: none;
    min-height: 0;
}

.content-block-row--combined .content-block-col .content-block-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 1rem;
    transition: transform 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
    .content-block-row--combined .content-block-col .content-image-block:hover .content-block-image {
        transform: scale(1.03);
    }
}

/* Phones only: image above text when the admin "Image first" switch is on */
@media (max-width: 767.98px) {
    .content-block-row--image-first > .content-block-col:last-child {
        order: -1;
    }
}

@media (min-width: 768px) {
    .content-block-row--reversed {
        direction: rtl;
    }

    .content-block-row--reversed > .content-block-col {
        direction: ltr;
    }

    .content-block-row--combined {
        padding: 0;
        border: none;
        border-radius: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }
}

[data-theme="dark"] .content-block-row--combined {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

[data-theme="dark"] .content-block-row--combined .content-block-col .content-text-block {
    background: transparent;
    border-color: transparent;
    color: var(--text-secondary);
}

/* ===== TEXT BLOCKS ===== */
.content-text-block {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-primary);
    padding: 1.25rem 0;
    background-color: transparent;
    border-radius: 0.5rem;
    white-space: normal;
    position: relative;
    box-shadow: none;
    letter-spacing: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-inline: auto;
}

.content-text-heading {
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    position: relative;
}

.content-text-heading--solo {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.content-text-body {
    margin: 0;
    white-space: normal;
    color: #000;
}

[data-theme="dark"] .content-text-body {
    color: #fff;
}

.content-text-body > :first-child { margin-top: 0; }
.content-text-body > :last-child { margin-bottom: 0; }
.content-text-body p { margin: 0 0 0.85em; }
.content-text-body p:empty { display: none; }
.content-text-body > br:first-child { display: none; }

.content-text-block--solo {
    border-left: none;
    text-align: left;
    padding: 0 1.25rem;
    border-radius: 0;
    background: transparent;
    border: none;
    position: relative;
    overflow: visible;
    max-width: 100%;
    margin-inline: auto;
}

.content-text-block--solo .content-text-heading,
.content-text-block--solo .content-text-body {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
}

.content-text-block--solo .content-text-heading {
    text-align: left;
    margin-bottom: 0.25rem;
}

.content-text-block--solo .content-text-body {
    font-size: 1.05rem;
    line-height: 1.85;
    text-align: left;
    color: #000;
}

[data-theme="dark"] .content-text-block--solo .content-text-body {
    color: #fff;
}

/* ===== IMAGE BLOCKS ===== */
.content-image-block-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-image-block {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--bg-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.1) 0%,
        transparent 50%,
        rgba(212, 175, 55, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.content-image-block:hover::after {
    opacity: 1;
}

.content-block-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    max-height: 560px;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.content-block-col-full .content-image-block {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 1rem;
    border: none;
    background-color: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.content-block-col-full .content-image-block:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-6px);
}

.content-block-col-full .content-block-image {
    max-height: 680px;
    aspect-ratio: 2 / 1;
    border-radius: 1rem;
    object-fit: cover;
    width: 100%;
}

[data-theme="dark"] .content-block-col-full .content-image-block {
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 991px) {
    .current-price { font-size: 1.4rem; }
    .original-price { font-size: 1rem; }
    .thumbnail-strip { margin: 0.5rem 0 0.75rem; }
    /* The main image has the arrows; the strip just scrolls, nothing covers it. */
    .thumb-nav,
    .thumbnail-strip::before,
    .thumbnail-strip::after { display: none; }
    .thumbnail-gallery { padding: 0; gap: 0.5rem; scroll-padding-inline: 0; }
    .thumbnail-item { width: 72px; height: 72px; }
    .zoom-hint { display: none; }
    .product-info { padding-bottom: 0; }
    .floating-purchase-bar { padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom)); }
    /* Big phone text: inside the in-cart card the View cart link drops to its own row */
    .floating-purchase-bar-inner { flex-wrap: wrap; }
    .add-to-cart-btn { padding: 0.55rem 1rem; font-size: 1rem; }
    .description-section { margin-top: 1.5rem; padding: 0; }
    .reviews-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
    /* Phones: no space under the product info block (beats mobile.css's forced padding) */
    body.storefront-page .product-info { padding-bottom: 0 !important; }
    .product-info > :last-child { margin-bottom: 0; }
    /* Big phone text: the name and date stack instead of widening the card past the screen */
    .review-top { flex-wrap: wrap; }
    .review-meta { white-space: normal; }
    .product-content-blocks { margin-top: 1.5rem; padding: 1.5rem 0 0; }
    .product-faq-section,
    .product-reviews-section { padding: 0; }
    .product-faq-section,
    .product-specifications-section,
    .product-reviews-section {
        padding-inline: 1.25rem;
    }
    .product-specifications-section { margin-top: 2rem; padding-top: 0; }
    .content-block-row { gap: 1rem; margin-bottom: 1.5rem; }
    .content-block-row--text,
    .content-block-row--combined {
        padding-inline: 1.25rem;
    }
    .content-block-row--combined {
        gap: 1rem;
        padding-block: 0;
        border: none;
        border-radius: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }
    .content-block-row--combined .content-block-col .content-text-block {
        border-radius: 0;
        padding-left: 0;
        padding-right: 0;
        font-size: 1rem;
        border-left: none;
        line-height: 1.65;
    }
    .content-block-row--combined .content-block-col .content-text-heading {
        max-width: none;
    }
    .content-block-row--combined .content-block-col .content-text-body {
        max-width: none;
        font-size: 0.98rem;
    }
    .content-block-row--reversed { direction: ltr; }
    .content-block-row--combined .content-block-col { min-height: auto; }
    .content-block-row--combined .content-block-col .content-image-block {
        width: 100%;
        max-width: 480px;
        height: auto;
        aspect-ratio: 4 / 3;
        flex: none;
        border-radius: 0.75rem;
        margin: 0 auto;
    }
    .content-block-row--combined .content-block-col .content-block-image {
        border-radius: 0.75rem;
    }
    .content-text-block:not(.content-text-block--solo) {
        font-size: 0.96rem;
        padding-left: 0;
        padding-right: 0;
    }
    .content-text-block--solo { padding-left: 0; padding-right: 0; max-width: 100%; }
    .content-text-block--solo .content-text-body { font-size: 1rem; line-height: 1.75; }
    .content-block-image { max-height: 320px; }
    .animate-on-scroll,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ===== RESPONSIVE: DESKTOP ===== */
@media (min-width: 992px) {
    .product-hero-gallery-col {
        flex: 0 0 60%;
        max-width: 60%;
        animation: none;
        transform: none;
    }

    .product-hero-gallery-col .product-gallery {
        position: sticky;
        top: 7rem;
    }

    .product-hero-info-col {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .product-gallery--has-thumbnails {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 0.75rem;
        align-items: stretch;
    }

    .product-gallery--has-thumbnails .product-carousel-wrapper {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        margin: 0;
    }

.product-gallery--has-thumbnails .thumbnail-strip {
        grid-column: 1;
        grid-row: 1;
        align-self: stretch;
        min-height: 0;
        max-height: calc(7 * 76px + 6 * 0.5rem);
        margin: 0;
        display: flex;
    }

    .product-gallery--has-thumbnails .thumbnail-gallery {
        position: relative;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0;
        scroll-snap-type: y proximity;
        scroll-padding-block: 2.5rem;
        width: 100%;
        max-height: calc(7 * 76px + 6 * 0.5rem);
        min-height: 0;
    }

    .product-gallery--has-thumbnails .thumbnail-gallery::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 1.25rem;
        z-index: 1;
        pointer-events: none;
    }

    .product-gallery--has-thumbnails .thumbnail-gallery::after {
        bottom: 0;
        background: linear-gradient(to top, var(--bg-primary), transparent);
    }

    .product-gallery--has-thumbnails .thumbnail-strip::before,
    .product-gallery--has-thumbnails .thumbnail-strip::after {
        left: 0;
        right: 0;
        width: auto;
        height: 2.5rem;
    }

    .product-gallery--has-thumbnails .thumbnail-strip::before {
        top: 0;
        bottom: auto;
        background: linear-gradient(to bottom, var(--bg-primary), transparent);
    }

    .product-gallery--has-thumbnails .thumbnail-strip::after {
        top: auto;
        bottom: 0;
        background: linear-gradient(to top, var(--bg-primary), transparent);
    }

    .product-gallery--has-thumbnails .thumb-nav {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .product-gallery--has-thumbnails .thumb-nav:hover:not(:disabled) {
        transform: translateX(-50%) scale(1.1);
    }

    .product-gallery--has-thumbnails .thumb-nav:active:not(:disabled) {
        transform: translateX(-50%) scale(0.92);
    }

    .product-gallery--has-thumbnails .thumb-nav-prev {
        top: 0.25rem;
    }

    .product-gallery--has-thumbnails .thumb-nav-next {
        top: auto;
        bottom: 0.25rem;
    }

    .product-gallery--has-thumbnails .thumb-nav i {
        transform: rotate(90deg);
    }

    .product-gallery--has-thumbnails .thumbnail-item {
        width: 76px;
        height: 76px;
    }

    .product-gallery--has-thumbnails .product-carousel-wrapper,
    .product-gallery--has-thumbnails .product-carousel {
        max-width: none;
    }

    .main-image-container { max-width: 720px; margin: 0 auto 1rem; }
    .product-info { padding: 0 0 1rem 1rem; padding-bottom: 0; }
    .floating-purchase-bar { padding-inline: 1.5rem; }
}

/* ===== GENERAL ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

/* ===== REDESIGNED REVIEW LAYOUT & SLIDESHOW ===== */
.product-emotional-note {
    display: inline-block;
    margin: 0.75rem 0 1.5rem;
    padding: 1rem 1.1rem 1rem 1.25rem;
    width: fit-content;
    max-width: min(100%, 38rem);
    border: 1px solid rgba(201, 168, 92, 0.22);
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgba(201, 168, 92, 0.08), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        var(--bg-card);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.product-emotional-note-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    text-wrap: pretty;
}

.product-benefits-card {
    display: grid;
    gap: 1.1rem;
    width: 100%;
    margin: 1.5rem auto;
    padding: 0 0.25rem;
    box-sizing: border-box;
    border: none;
    background: transparent;
}

.product-benefits-ornament {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.product-benefits-ornament::before,
.product-benefits-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
}

.product-benefits-ornament::before {
    background: linear-gradient(90deg, transparent, var(--benefit-tick-color));
}

.product-benefits-ornament::after {
    background: linear-gradient(90deg, var(--benefit-tick-color), transparent);
}

.product-benefits-ornament span {
    width: 0.4rem;
    height: 0.4rem;
    background: var(--benefit-tick-color);
    transform: rotate(45deg);
}

.product-benefits-list {
    display: grid;
    gap: 0.95rem;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 100%;
}

.product-benefits-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.005em;
    text-wrap: pretty;
}

.product-benefits-lead {
    font-weight: 600;
    color: var(--benefit-lead-color);
}

.product-benefits-text {
    color: var(--text-primary);
}

.product-benefits-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.5em;
    color: var(--benefit-tick-color);
    flex-shrink: 0;
}

.product-benefits-icon svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

.product-benefits-icon svg path {
    stroke-width: 2;
}

.content-block-row--feature-benefit {
    margin-bottom: 40px !important;
}

.feature-benefit-heading {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.feature-benefit-table {
    display: grid;
    gap: 0;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    max-width: 100%;
    margin-inline: auto;
}

.feature-benefit-table-row {
    position: relative;
    padding: 0.85rem 0;
    border-bottom: none;
    overflow: hidden;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
}

.feature-benefit-table-row:last-child {
    padding-bottom: 0;
}

.feature-benefit-table-row:first-child {
    padding-top: 0;
}

.feature-benefit-table-cell {
    padding: 0;
    min-width: 0;
}

.feature-benefit-table-cell--feature {
    background: none;
}

.feature-benefit-table-cell--benefit {
    background: none;
}

.feature-benefit-table-value {
    overflow-wrap: anywhere;
}

.feature-benefit-table-cell--feature .feature-benefit-table-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

.feature-benefit-table-cell--benefit .feature-benefit-table-value {
    font-size: 0.97rem;
    color: #000;
    line-height: 1.7;
}

[data-theme="dark"] .feature-benefit-table {
    border-color: transparent;
    background: transparent;
}

[data-theme="dark"] .feature-benefit-table-cell--feature .feature-benefit-table-value {
    color: var(--text-primary);
}

[data-theme="dark"] .feature-benefit-table-cell--benefit .feature-benefit-table-value {
    color: #fff;
}

/* ===== SPECIFICATIONS TABLE ===== */
.specs-table {
    display: grid;
    gap: 0;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: none;
}

.specs-table-header {
    display: grid;
    grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.2fr);
    background: color-mix(in srgb, var(--shop-accent-color) 10%, var(--bg-card));
    border-bottom: 1px solid var(--border-color);
}

.specs-table-header .specs-table-cell {
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--shop-accent-color);
}

.specs-table-row {
    display: grid;
    grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.2fr);
}

.specs-table-row + .specs-table-row {
    border-top: 1px solid var(--border-color);
}

.specs-table-cell {
    padding: 0.85rem 1.25rem;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.96rem;
    line-height: 1.6;
}

.specs-table-cell + .specs-table-cell {
    border-left: 1px solid var(--border-color);
}

.specs-table-cell--label {
    font-weight: 600;
    color: var(--text-primary);
    background: color-mix(in srgb, var(--bg-card) 94%, var(--shop-accent-color));
}

.specs-table-cell--value {
    color: var(--text-primary);
    background: var(--bg-card);
}

[data-theme="dark"] .specs-table {
    border-color: var(--border-color);
    background: transparent;
    box-shadow: none;
}

[data-theme="dark"] .specs-table-header {
    background: color-mix(in srgb, var(--shop-accent-color) 12%, transparent);
}

[data-theme="dark"] .specs-table-row + .specs-table-row {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .specs-table-cell + .specs-table-cell {
    border-left-color: var(--border-color);
}

@media (max-width: 600px) {
    .specs-table {
        gap: 0.75rem;
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    .specs-table-header,
    .specs-table-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .specs-table-header {
        display: none;
    }

    .specs-table-row {
        overflow: hidden;
        border: 1px solid var(--border-color);
        border-radius: 0.7rem;
        background: var(--bg-card);
    }

    .specs-table-cell + .specs-table-cell {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    [data-theme="dark"] .specs-table-cell + .specs-table-cell {
        border-top-color: var(--border-color);
    }

    .specs-table-cell--label {
        font-weight: 700;
        padding: 0.7rem 0.9rem 0.25rem;
        background: color-mix(in srgb, var(--shop-accent-color) 10%, var(--bg-card));
        color: var(--shop-accent-color);
    }

    .specs-table-cell--value {
        padding: 0.25rem 0.9rem 0.8rem;
        background: var(--bg-card);
    }

    [data-theme="dark"] .specs-table {
        background: transparent;
        box-shadow: none;
    }

    [data-theme="dark"] .specs-table-row {
        border-color: var(--border-color);
        background: var(--bg-card);
    }
}

/* ===== MAIN BENEFITS ===== */
.main-benefits-list {
    display: grid;
    gap: 0;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    max-width: 100%;
    margin-inline: auto;
}

.main-benefits-item {
    position: relative;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.main-benefits-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.main-benefits-item:first-child {
    padding-top: 0;
}

.main-benefits-heading {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.main-benefits-description {
    font-size: 0.97rem;
    color: #000;
    margin: 0;
    line-height: 1.7;
}

[data-theme="dark"] .main-benefits-list {
    border-color: transparent;
    background: transparent;
}

[data-theme="dark"] .main-benefits-heading {
    color: var(--text-primary);
}

[data-theme="dark"] .main-benefits-description {
    color: #fff;
}

@media (max-width: 768px) {
    .product-emotional-note {
        display: block;
        padding: 0.9rem 1rem 0.95rem 1.05rem;
        margin-bottom: 1.25rem;
        width: 100%;
        max-width: none;
    }

    .product-emotional-note-text {
        font-size: 0.96rem;
        line-height: 1.65;
    }

    .product-benefits-card {
        margin: 1.25rem auto;
        padding: 0 0.25rem;
    }

    .product-benefits-list {
        gap: 0.85rem;
    }

    .product-benefits-item {
        gap: 0.7rem;
        font-size: 0.98rem;
    }

    .main-benefits-list {
        gap: 0.65rem;
        padding: 0.75rem;
    }

    .main-benefits-item {
        padding: 0.9rem 0.95rem 0.9rem 1.1rem;
    }

    .main-benefits-description {
        font-size: 0.95rem;
    }

    .feature-benefit-table {
        gap: 0.65rem;
        padding: 0.75rem;
    }

    .feature-benefit-table-row {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.9rem 0.95rem 0.9rem 1.1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .feature-benefit-table-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .feature-benefit-table-cell--feature .feature-benefit-table-value {
        font-size: 1rem;
    }

    .feature-benefit-table-cell--benefit .feature-benefit-table-value {
        font-size: 0.95rem;
    }

    .content-block-row--feature-benefit {
        margin-bottom: calc(1.5rem + 20px) !important;
    }

    .feature-benefit-heading {
        margin-bottom: 1rem;
        padding-inline: 1.85rem;
    }
}

.reviews-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: start;
    margin-top: 1.5rem;
}

@media (min-width: 992px) {
    .product-reviews-section.has-gallery {
        max-width: var(--pc-wide, 1100px);
    }
    .reviews-layout-wrapper {
        grid-template-columns: 1.25fr 0.75fr;
        gap: 3rem;
    }
    .reviews-slideshow-col {
        position: sticky;
        top: 2rem;
        z-index: 10;
    }
}

@media (max-width: 991px) {
    .reviews-slideshow-col {
        order: -1; /* slideshow shows before reviews list on mobile */
    }
    .reviews-list-col {
        order: 1;
    }
}

/* Slideshow Container */
.review-slideshow-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.review-slideshow-container:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.12);
}

.review-slideshow-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.review-slideshow-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.review-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.review-slide.active {
    opacity: 1;
    z-index: 2;
}

.review-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.review-slide:hover .review-slide-image {
    transform: scale(1.05);
}

.review-slide-zoom-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 3;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    transform: scale(0.9);
}

.review-slide:hover .review-slide-zoom-hint {
    opacity: 1;
    transform: scale(1);
}

/* Slideshow Navigation */
.review-slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.85);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .review-slideshow-nav {
    background: rgba(30, 30, 30, 0.85);
    color: #fff;
}

.review-slideshow-nav:hover {
    background: var(--brand-primary);
    color: #000;
    border-color: var(--brand-primary);
    transform: translateY(-50%) scale(1.08);
}

.review-slideshow-nav.prev { left: 0.75rem; }
.review-slideshow-nav.next { right: 0.75rem; }

.review-slideshow-counter {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
}

/* Lightbox zoom overlay */
.review-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.94);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.review-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 0.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.review-lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.review-lightbox-close:hover {
    background: var(--danger);
    color: #fff;
    transform: scale(1.08);
}

.review-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.review-lightbox-nav:hover {
    background: var(--brand-primary);
    color: #000;
    transform: translateY(-50%) scale(1.08);
}

.review-lightbox-nav.prev { left: -4.5rem; }
.review-lightbox-nav.next { right: -4.5rem; }

.review-lightbox-counter {
    position: absolute;
    bottom: -2.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 1100px) {
    .review-lightbox-nav.prev { left: 1rem; }
    .review-lightbox-nav.next { right: 1rem; }
    .review-lightbox-close { top: 1rem; right: 1rem; }
}

/* ===== PRODUCT VARIANTS ===== */
.product-variants-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 340px;
}

/* Keep the desktop purchase stack on one deliberate visual rail. */
@media (min-width: 992px) {
    .product-info {
        --purchase-rail: 35rem;
    }

    .product-info > .product-title,
    .product-info > .price-container,
    .product-info > .price-block,
    .product-info > .product-variants-section,
    .product-info > .shipping-note,
    .product-info > .product-emotional-note {
        width: min(100%, var(--purchase-rail));
        max-width: none;
    }

    .bundle-deals-container,
    .product-variants-list {
        width: 100%;
        max-width: none;
    }

    .bundle-deal-card {
        max-width: none;
    }

    .product-emotional-note {
        display: block;
        margin-top: 1.25rem;
        border-radius: 0.75rem;
        box-shadow: none;
    }

    .floating-purchase-bar {
        bottom: 1rem;
        padding: 0;
    }

    .floating-purchase-bar-col {
        display: flex;
        justify-content: flex-start;
    }

    .floating-purchase-bar-inner {
        width: 100%;
        max-width: min(100%, 35rem); /* Align with desktop --purchase-rail */
        margin: 0;
        gap: 1rem;
    }

    /* Desktop too: the bar is the in-page button pinned; only the "in cart" state gets a card */
    .floating-purchase-bar-inner.is-in-cart {
        padding: 0.75rem 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
}

.variant-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    background: var(--bg-card);
    border-color: var(--border-color) !important;
    cursor: pointer;
}

.variant-option-main {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.variant-price {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.variant-option-card:hover {
    border-color: var(--brand-primary) !important;
    background: rgba(212, 175, 55, 0.05) !important;
    transform: translateY(-1px);
}
.variant-option-card.selected {
    border-color: var(--brand-primary) !important;
    background: rgba(212, 175, 55, 0.08) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}
.variant-option-card input[type="radio"] {
    accent-color: var(--brand-primary);
}

/* ===== PRODUCT DETAIL RICH TEXT OVERRIDES ===== */
/* Admin rich text saves <p> tags; the global p rule in common.css would grey them. */
.content-text-body p,
.description-text p {
    color: inherit;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.content-text-body p:last-child,
.description-text p:last-child {
    margin-bottom: 0;
}

.content-text-body p, 
.content-text-body ul, 
.content-text-body ol, 
.content-text-body li,
.content-text-body div,
.description-text p,
.description-text ul,
.description-text ol,
.description-text li,
.description-text div {
    white-space: normal;
}

/* Styling to center images horizontally in descriptions and rich text */
.content-text-body img,
.description-text img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.content-text-body ul,
.content-text-body ol,
.description-text ul,
.description-text ol {
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.content-text-body ul,
.description-text ul {
    list-style-type: disc !important;
}

.content-text-body ol,
.description-text ol {
    list-style-type: decimal !important;
}

.content-text-body li,
.description-text li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.content-text-body strong,
.description-text strong,
.content-text-body b,
.description-text b {
    font-weight: 700;
}

.content-text-body em,
.description-text em,
.content-text-body i,
.description-text i {
    font-style: italic;
}

/* Tables styling */
.content-text-body table,
.description-text table {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    border: 1px solid var(--border-color, #dee2e6);
}

.content-text-body th,
.description-text th {
    background-color: rgba(212, 175, 55, 0.1); /* light gold/accent background */
    font-weight: 600;
    color: var(--text-primary, #212529);
    border: 1px solid var(--border-color, #dee2e6);
    padding: 0.75rem;
    text-align: left;
}

.content-text-body td,
.description-text td {
    border: 1px solid var(--border-color, #dee2e6);
    padding: 0.75rem;
    color: var(--text-primary, #212529);
    line-height: 1.6;
}

[data-theme="dark"] .content-text-body th,
[data-theme="dark"] .description-text th {
    background-color: rgba(255, 193, 7, 0.1);
}

/* Heading rich text styling overrides */
.content-text-heading p,
.content-text-heading div {
    white-space: normal;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
}

/* Temporary gallery layout diagnostics: enable with ?debugGallery=1. */
.gallery-debug-target {
    outline: 3px dashed #7c3aed !important;
    outline-offset: -3px;
}

.gallery-debug-panel {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 2000;
    max-width: min(92vw, 560px);
    margin: 0;
    padding: 0.75rem 1rem;
    overflow: auto;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.92);
    border: 2px solid #facc15;
    border-radius: 0.5rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.3);
    font: 12px/1.45 Consolas, monospace;
    pointer-events: none;
    white-space: pre-wrap;
}

.gallery-debug-line {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1999;
    border-top: 2px solid #ef4444;
    pointer-events: none;
}

.gallery-debug-line::after {
    content: attr(data-label);
    position: absolute;
    right: 0.75rem;
    top: 0.25rem;
    padding: 0.1rem 0.35rem;
    color: #fff;
    background: #ef4444;
    font: 11px/1.2 Consolas, monospace;
}

.gallery-debug-line-column-bottom {
    border-top-color: #2563eb;
}

.gallery-debug-line-column-bottom::after {
    background: #2563eb;
}

/* Description Image Zoom Styles */
.content-block-image,
.legacy-image-zoom-wrapper img {
    cursor: pointer;
}

.content-image-block .description-zoom-button,
.legacy-image-zoom-wrapper .description-zoom-button {
    opacity: 0.85;
}

.content-image-block:hover .description-zoom-button,
.legacy-image-zoom-wrapper:hover .description-zoom-button {
    opacity: 1;
    transform: scale(1.1);
}

/* Reviews published from a delivered order */
.review-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #198754;
}

/* ===== PRICE BLOCK: after the delivery box, before the returns line ===== */
.price-block {
    margin: 0 0 0.9rem;
}

/* ===== FIRST-SCREEN FACTS: returns promise and seller line under the shipping box ===== */
.product-returns-line,
.product-seller-line {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 340px;
    margin: 0 0 0.5rem;
    font-size: calc(0.82rem + 2px);
    line-height: 1.45;
    color: var(--text-secondary);
}

.product-returns-line i,
.product-seller-line i {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--success);
}

.product-seller-line i {
    color: var(--text-secondary);
}

.product-returns-line a {
    color: var(--shop-accent-color);
    text-decoration: underline;
}

/* ===== IN-PAGE ADD TO CART under the facts ===== */
.inline-buy {
    max-width: 340px;
    margin: 0.75rem 0 1rem;
}

.inline-add-to-cart-btn {
    width: 100%;
    min-height: 48px;
}

/* Bundle offer sits after the button so it never pushes delivery and returns off the first screen */
.price-extras .bundle-deals-container {
    margin-top: 0;
}

/* Phones: the floating bar waits until the in-page Add to Cart has risen to the bottom strip;
   from then on the bar is the button and the in-page one goes blank, keeping its space */
.floating-purchase-bar.is-waiting {
    visibility: hidden;
    pointer-events: none;
}

.inline-buy.is-pinned .inline-add-to-cart-btn {
    visibility: hidden;
    pointer-events: none;
}

/* The honest deadline just above the in-page button: ships today if ordered before 4 pm Adelaide (dispatch-cutoff.js) */
.dispatch-cutoff {
    margin: 0 0 0.5rem;
    font-size: calc(0.82rem + 2px);
    line-height: 1.45;
    color: var(--text-secondary);
    text-align: center;
}

.dispatch-cutoff[hidden] {
    display: none;
}
