/* Standalone product page — gallery + related products (all themes) */

.store-product-page .product-page-gallery {
    display: grid;
    grid-template-areas:
        "stage"
        "thumbs";
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
}

.store-product-page .product-page-gallery__stage {
    grid-area: stage;
    position: relative;
    background: #faf9f7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
}

.store-product-page .product-page-gallery__main {
    width: 100%;
    height: auto !important;
}

.store-product-page .product-page-gallery__slide {
    display: none;
    width: 100%;
}

.store-product-page .product-page-gallery__slide.is-active {
    display: block;
}

.store-product-page .product-page-gallery__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: clamp(220px, 62vw, 480px);
    padding: 12px;
    box-sizing: border-box;
    background: #faf9f7;
}

.store-product-page .product-page-gallery__frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: clamp(200px, 58vw, 460px);
    object-fit: contain;
    margin: 0 auto;
}

.store-product-page .product-page-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    color: #111;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-product-page .product-page-gallery__nav--prev {
    left: 10px;
}

.store-product-page .product-page-gallery__nav--next {
    right: 10px;
}

.store-product-page .product-page-gallery__thumbs {
    grid-area: thumbs;
    width: 100%;
    display: flex;
    justify-content: center;
}

.store-product-page .product-page-gallery__thumbs--empty {
    display: none;
}

.store-product-page .product-page-gallery__thumbs--static .qv-thumb-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.store-product-page .product-page-gallery__thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    display: block;
}

.store-product-page .product-page-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-product-page .qv-thumb-itm.is-active .product-page-gallery__thumb {
    border-color: #111;
    box-shadow: 0 0 0 1px #111;
}

.store-product-page__header .store-catalog-header {
    display: none;
}

.store-product-page .product-page-gallery__main.qv-main-slider {
    height: auto !important;
    min-height: 220px;
}

.store-product-page .qv-slider-wrp {
    width: 100%;
    min-height: 0;
}

.store-product-page .variant-box.selected .variant-thumb {
    opacity: 1;
}

/* Kill theme slick/img-ratio bleed on product page gallery only */
.store-product-page .product-page-gallery .qv-main-slider,
.store-product-page .product-page-gallery .qv-main-slider .slick-list,
.store-product-page .product-page-gallery .qv-main-slider .slick-track,
.store-product-page .product-page-gallery .qv-main-slider .slick-slide {
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

.store-product-page .food-item-modal--page,
.store-product-page .fashion-quickview--page,
.store-product-page .product-quickview--page {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.store-product-page .food-item-modal--page,
.store-product-page .product-quickview--page {
    padding: clamp(16px, 3vw, 28px);
}

.store-product-page__content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.store-product-page__panel {
    width: 100%;
    max-width: 100%;
}

.store-product-page__panel .modal-body {
    padding: 0;
    max-height: none;
}

.store-product-page .qv-right-content {
    padding: 0;
}

/* Related products */
.store-related-products {
    margin-top: clamp(32px, 5vw, 56px);
    padding-top: clamp(24px, 4vw, 40px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.store-related-products__header {
    margin-bottom: 20px;
}

.store-related-products__title {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.25;
}

.store-related-products__subtitle {
    margin: 0;
    color: rgba(0, 0, 0, 0.58);
    font-size: 0.95rem;
}

.store-related-products__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 640px) {
    .store-related-products__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .store-related-products__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .store-product-page main.wrapper {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        overflow-x: hidden;
    }

    .store-product-page__content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .store-product-page__header .store-breadcrumbs,
    .store-product-page__header .store-catalog-header {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .store-product-page .product-quickview--page,
    .store-product-page .food-item-modal--page,
    .store-product-page .fashion-quickview--page {
        width: 100%;
        max-width: 100%;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .store-product-page .product-quickview--page > .row,
    .store-product-page .food-item-modal--page > .row,
    .store-product-page .fashion-quickview--page .fashion-quickview__layout {
        flex-direction: column;
        margin: 0;
        width: 100%;
    }

    .store-product-page .product-quickview--page > .row > [class*="col-"],
    .store-product-page .food-item-modal--page > .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100% !important;
        padding: 0;
    }

    .store-product-page .product-page-gallery__frame {
        min-height: min(68vw, 340px);
        padding: 10px;
    }

    .store-product-page .product-page-gallery__frame img {
        max-height: min(64vw, 320px);
    }

    .store-product-page .qv-right-content {
        padding: 16px 0 0;
        width: 100%;
    }

    .store-product-page .qv-right-content .section-title h2 {
        font-size: clamp(1.35rem, 5.5vw, 1.75rem);
        line-height: 1.25;
    }

    .store-product-page .cart-btn-wrp .cart-btn {
        width: 100%;
        justify-content: center;
    }

    .store-related-products__grid {
        gap: 12px;
    }
}

.store-related-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.store-related-card__media {
    display: block;
    aspect-ratio: 1;
    background: #f6f4f1;
    overflow: hidden;
}

.store-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-related-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.store-related-card__category {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
}

.store-related-card__name {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 600;
}

.store-related-card__name a {
    color: inherit;
    text-decoration: none;
}

.store-related-card__name a:hover {
    text-decoration: underline;
}

.store-related-card__price {
    margin-top: auto;
    font-weight: 700;
    font-size: 0.92rem;
}
