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

.qb-single-product.container {
    margin: 36px auto;
    padding: 0 20px;
}

.qb-product-grid {
    display: grid;
    grid-template-columns: 750px 1fr; /* gallery + content */
    gap: 36px;
    align-items: start;
}

/* Right side: product text/content */
.qb-product-title {
    font-size: 36px;
    margin: 0 0 8px;
    font-weight: 700;
    color: #2e7d32;
    margin-top: 25px;
}

.qb-product-price {
    font-size: 20px;
    margin-bottom: 16px;
    color: #e65100;
}

/* Short desc & sections */
.qb-short-desc {
    margin-bottom: 14px;
    color: #444;
    line-height: 1.6;
}

.qb-product-highlights .qb-section {
    margin-top: 16px;
}

.qb-product-highlights h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

/* Responsive: single column on mobile */
@media (max-width: 980px) {
    .qb-product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =========================
   Add to cart + quantity
   ========================= */

.qb-add-to-cart-wrap form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

/* Qty wrapper inserted via JS */
.qb-qty-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    padding: 6px 10px;
    border: 1.5px solid #5F290C;
    border-radius: 8px;
    width: fit-content;
}

button.qb-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    background: #5F290C;
    color: #fff;
    transition: all 0.2s 
ease;
}

button.qb-qty-btn:hover {
    background: #5F290C !important;
    color: #fff;
}
button.single_add_to_cart_button.button.alt:hover {
    background: #E65100 !important;
}
.qb-qty-wrap input.qty {
    width: 48px;
    height: 36px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    font-weight: 600;
    color: #5F290C;
    appearance: textfield;
    box-shadow: none;
}

.qb-qty-wrap .qty::-webkit-outer-spin-button,
.qb-qty-wrap .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Remove spinners (Firefox) */
.qb-qty-wrap .qty[type=number] {
	-moz-appearance: textfield;
}

.qb-qty-btn {
    background: #fff;
    border: none;
    padding: 0 10px;
    font-size: 18px;
    cursor: pointer;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.single_add_to_cart_button {
    background: #111;
    color: #fff !important;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 980px) {
    .qb-qty-wrap input.qty {
        width: 56px;
    }
}

/* =========================
   Compact product gallery
   (main image + horizontal thumbs)
   ========================= */

.qb-product-gallery-compact {
    max-width: 100%;
    margin: 0 auto 28px;
}

/* MAIN SWIPER */

.qb-main-swiper-compact {
    width: 100%;
    min-height: 360px;   /* so it’s visible before images load */
    max-height: 760px;
    position: relative;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.qb-main-swiper-compact .swiper-wrapper {
    align-items: center;
}

.qb-main-swiper-compact .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    height: 100%;
    box-sizing: border-box;
    padding: 10px;
}

.qb-main-figure-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.qb-main-image-compact {
    max-width: 100%;
    max-height: 640px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* nav buttons */

.qb-swiper-prev-compact,
.qb-swiper-next-compact {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
}

.qb-swiper-prev-compact { left: 8px; }
.qb-swiper-next-compact { right: 8px; }

/* THUMBS: horizontal row below main */

.qb-thumb-swiper-compact {
    width: 100%;
    margin-top: 12px;
    box-sizing: border-box;
}

.qb-thumb-swiper-compact .swiper-wrapper {
    align-items: center;
    justify-content: center;
}

.qb-thumb-slide-compact {
    width: auto;
    padding: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

button.qb-thumb-btn-compact {
    padding: 0;
    margin: 0;
    background-color: #fff;
    border: 0;
}

.qb-thumb-image-compact {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* active thumb */

.qb-thumb-slide-compact.swiper-slide-thumb-active .qb-thumb-image-compact,
.qb-thumb-slide-compact .qb-thumb-btn-compact:focus .qb-thumb-image-compact {
    border-color: #ea5b10;
    transform: scale(0.98);
}

/* Responsive gallery tweaks */
@media (max-width: 1024px) {
    .qb-product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
@media (max-width: 720px) {
	.qb-single-product.container, .qb-main-figure-compact, .qb-main-swiper-compact .swiper-slide{
		padding: 0;
	}
    .qb-product-gallery-compact {
        max-width: 100%;
        padding: 0;
    }
	.qb-add-to-cart-wrap form.cart {
		gap: 0px;
	}

    .qb-main-swiper-compact {
        min-height: 260px;
    }

    .qb-main-image-compact {
        max-height: 420px;
    }

    .qb-thumb-image-compact {
        width: 56px;
        height: 56px;
    }

    .qb-swiper-prev-compact,
    .qb-swiper-next-compact {
        width: 36px;
        height: 36px;
    }
}
.wc-block-components-quantity-selector {
    background: #fff;
    padding: 6px 10px;
    border: 1.5px solid #5F290C;
    border-radius: 8px;
    width: fit-content;
}