/* ===================================================
   Product page – wwwroot/css/product.css
   =================================================== */
.container-fluid{
    background-color:white;
}

/* ── Image zoom ── */
.product-image-zoom {
    position: relative;
    overflow: hidden;
    border-radius: .5rem;
    aspect-ratio: 1 / 1;
    max-height: 520px;
    background: #f8f8f8;
}

.product-image-zoom img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: 50% 50%;
    transition: transform 160ms ease;
    will-change: transform;
}

@media (hover: hover) {
    .product-image-zoom:hover img {
        transform: scale(1.75);
        cursor: zoom-in;
    }
}

/* ── Gallery layout ── */
.product-gallery-wrap {
    display: flex;
    gap: .75rem;
}

.product-gallery-main {
    flex: 1 1 0;
    min-width: 0;
}

/* ── Thumbnail column ── */
.product-thumbs-col {
    position: relative;
    flex: 0 0 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-thumbs-scroll {
    flex: 1 1 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    scroll-behavior: smooth;
}

.product-thumbs-scroll.is-scrollable {
    overflow-y: auto;
    scrollbar-width: none;
}

.product-thumbs-scroll.is-scrollable::-webkit-scrollbar {
    display: none;
}

/* ── Thumbnail arrows ── */
.product-thumb-arrow {
    display: none;
    width: 100%;
    border: 0;
    background: transparent;
    padding: .25rem 0;
    font-size: 1rem;
    color: #555;
    cursor: pointer;
    flex-shrink: 0;
}

.product-thumb-arrow:hover {
    color: #111;
}

.product-thumb-arrow.visible {
    display: block;
}

/* ── Thumbnail buttons ── */
.product-thumb {
    flex-shrink: 0;
    overflow: hidden;
}

.product-thumb img {
    transition: transform 160ms ease;
}

.product-thumb:hover img {
    transform: scale(1.25);
}

.product-thumb.active {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, .3);
}

/* ── Variant cards ── */
.variant-card {
    cursor: pointer;
    user-select: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.variant-card:hover {
    border-color: rgba(13, 110, 253, .6) !important;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .08);
}

.variant-card.active {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}

/* ── Quantity selector ── */
.qty-select {
    border: 2px solid rgba(0, 0, 0, .25);
    border-radius: 1.25rem;
    padding: .35rem .75rem;
    background: #fff;
}

.qty-select .form-select {
    border: 0;
    border-radius: 1rem;
    padding-left: .75rem;
    padding-right: 2.25rem;
    font-weight: 600;
    box-shadow: none;
}

.qty-select .form-select:focus {
    box-shadow: none;
}

/* ── CTA buttons ── */
.product-cta {
    border-radius: 999px;
    font-weight: 700;
    padding: .75rem 1rem;
    border-width: medium;
}

.btn-add-to-cart {
    background: #ffd814;
    border-color: #fcd200;
    color: #111;
}

.btn-add-to-cart:hover {
    background: #f7ca00;
    border-color: #f2c200;
    color: #111;
}

.btn-buy-now {
    background: #ffa41c;
    border-color: #ff8f00;
    color: #111;
}

.btn-buy-now:hover {
    background: #fa8900;
    border-color: #f27f00;
    color: #111;
}

/* ── Mobile: horizontal thumbnails below image ── */
@media (max-width: 575.98px) {
    .product-gallery-wrap {
        flex-direction: column-reverse;
    }

    .product-thumbs-col {
        flex-direction: row;
        flex: 0 0 auto;
    }

    .product-thumbs-scroll {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .product-thumb-arrow {
        width: auto;
        padding: 0 .5rem;
    }
}
