/**
 * BoogieKathi – Single Product Styles
 *
 * Responsive Einzelproduktseite mit Galerie links, Details rechts.
 */

/* ═══════════════════════════════════════════
   Wrapper
   ═══════════════════════════════════════════ */

.bk-single-product-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* ═══════════════════════════════════════════
   Two-Column Layout (Gallery | Summary)
   ═══════════════════════════════════════════ */

.bk-product-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.bk-product-gallery {
    width: 100%;
}

.bk-product-gallery .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    opacity: 1 !important;
}

.bk-product-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
}

.bk-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    list-style: none;
    padding: 0;
}

.bk-product-gallery .flex-control-thumbs li {
    flex: 0 0 60px;
}

.bk-product-gallery .flex-control-thumbs img {
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .2s ease;
}

.bk-product-gallery .flex-control-thumbs img:hover,
.bk-product-gallery .flex-control-thumbs img.flex-active {
    border-color: var(--bk-accent, #6D1A36);
}

/* Sale Badge */
.bk-product .onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--bk-accent, #6D1A36);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ═══════════════════════════════════════════
   Product Summary
   ═══════════════════════════════════════════ */

.bk-product-summary {
    width: 100%;
    float: none !important;
}

.bk-product-summary .product_title {
    font-size: 26px;
    font-weight: 700;
    color: #212121;
    margin: 0 0 12px;
    line-height: 1.3;
}

.bk-product-summary .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--bk-accent, #6D1A36);
    margin-bottom: 16px;
    display: block;
}

.bk-product-summary .price del {
    color: #9e9e9e;
    font-weight: 400;
    margin-right: 8px;
}

.bk-product-summary .price ins {
    text-decoration: none;
}

.bk-product-summary .woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 1.6;
    color: #616161;
    margin-bottom: 20px;
}

.bk-product-summary .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0;
}

/* Star Rating */
.bk-product-summary .star-rating {
    margin-bottom: 12px;
}

/* Quantity + Add to Cart */
.bk-product-summary .cart,
.bk-product .cart {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.bk-product-summary .quantity.buttons_added,
.bk-product .quantity.buttons_added {
    display: inline-flex !important;
    align-items: center !important;
    background: #f5f5f5 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    height: 52px !important;
    box-shadow: none !important;
}

.bk-product-summary .quantity .qty,
.bk-product .quantity .qty {
    width: 48px !important;
    height: 100% !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border: none !important;
    border-left: 1px solid #e0e0e0 !important;
    border-right: 1px solid #e0e0e0 !important;
    background: #fff !important;
    color: #212121 !important;
    -moz-appearance: textfield !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.bk-product .quantity .qty::-webkit-outer-spin-button,
.bk-product .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.bk-product-summary .quantity button.minus,
.bk-product-summary .quantity button.plus,
.bk-product .quantity button.minus,
.bk-product .quantity button.plus {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    color: #616161 !important;
    cursor: pointer !important;
    transition: background .15s ease, color .15s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.bk-product .quantity button.minus svg,
.bk-product .quantity button.plus svg {
    width: 20px !important;
    height: 20px !important;
}

.bk-product .quantity button.minus:hover,
.bk-product .quantity button.plus:hover {
    background: rgba(109, 26, 54, .1) !important;
    color: var(--bk-accent, #6D1A36) !important;
}

.bk-product .quantity button.minus:active,
.bk-product .quantity button.plus:active {
    background: rgba(109, 26, 54, .18) !important;
}

.bk-product-summary .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--bk-accent, #6D1A36);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
}

.bk-product-summary .single_add_to_cart_button:hover {
    background: var(--bk-accent-light, #8a2347);
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    transform: translateY(-1px);
}

.bk-product-summary .single_add_to_cart_button:active {
    transform: translateY(0);
}

/* Product Meta (SKU, Categories, Tags) */
.bk-product-summary .product_meta {
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #616161;
    line-height: 1.8;
}

.bk-product-summary .product_meta > span {
    display: block;
}

.bk-product-summary .product_meta a {
    color: var(--bk-accent, #6D1A36);
    text-decoration: none;
}

.bk-product-summary .product_meta a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════
   Product Tabs (Description, Reviews)
   ═══════════════════════════════════════════ */

.bk-product .woocommerce-tabs {
    margin-top: 40px;
    clear: both;
}

.bk-product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    gap: 0;
    border-bottom: 2px solid #eee;
}

.bk-product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.bk-product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #616161;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .2s ease, border-color .2s ease;
}

.bk-product .woocommerce-tabs ul.tabs li a:hover {
    color: #212121;
}

.bk-product .woocommerce-tabs ul.tabs li.active a {
    color: var(--bk-accent, #6D1A36);
    border-bottom-color: var(--bk-accent, #6D1A36);
}

.bk-product .woocommerce-tabs .panel {
    font-size: 15px;
    line-height: 1.7;
    color: #424242;
}

.bk-product .woocommerce-tabs .panel h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #212121;
}

/* ═══════════════════════════════════════════
   Related Products
   ═══════════════════════════════════════════ */

.bk-product .related.products,
.bk-product .upsells.products {
    margin-top: 48px;
}

.bk-product .related.products > h2,
.bk-product .upsells.products > h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #212121;
}

.bk-product .related.products ul.products,
.bk-product .upsells.products ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bk-product .related.products ul.products li.product,
.bk-product .upsells.products ul.products li.product {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    transition: box-shadow .2s ease;
}

.bk-product .related.products ul.products li.product:hover,
.bk-product .upsells.products ul.products li.product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.bk-product .related.products ul.products li.product img,
.bk-product .upsells.products ul.products li.product img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 8px;
}

.bk-product .related.products ul.products li.product .woocommerce-loop-product__title,
.bk-product .upsells.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
}

.bk-product .related.products ul.products li.product .price,
.bk-product .upsells.products ul.products li.product .price {
    font-size: 14px;
    font-weight: 700;
    color: var(--bk-accent, #6D1A36);
}

/* ═══════════════════════════════════════════
   Inclusive Tax Label
   ═══════════════════════════════════════════ */

.bk-product-summary .price .woocommerce-Price-amount {
    display: inline;
}

.bk-product-summary .woocommerce-variation-price .price {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   WC Overrides – Reset parent theme conflicts
   ═══════════════════════════════════════════ */

.bk-product .summary,
.woocommerce .bk-product .summary {
    width: 100% !important;
    float: none !important;
}

.bk-product .woocommerce-product-gallery,
.woocommerce .bk-product .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
}

/* ═══════════════════════════════════════════
   Responsive: Desktop (≥ 768px)
   ═══════════════════════════════════════════ */

@media (min-width: 768px) {
    .bk-single-product-wrap {
        padding: 32px 24px 60px;
    }

    .bk-product-top {
        flex-direction: row;
        gap: 40px;
    }

    .bk-product-gallery {
        flex: 1 1 50%;
        max-width: 50%;
    }

    .bk-product-summary {
        flex: 1 1 50%;
        max-width: 50%;
    }

    .bk-product-summary .product_title {
        font-size: 30px;
    }

    .bk-product .related.products ul.products,
    .bk-product .upsells.products ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ═══════════════════════════════════════════
   Responsive: Large Desktop (≥ 1024px)
   ═══════════════════════════════════════════ */

@media (min-width: 1024px) {
    .bk-product-top {
        gap: 48px;
    }

    .bk-product .related.products ul.products,
    .bk-product .upsells.products ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ═══════════════════════════════════════════
   Responsive: Small Mobile (≤ 480px)
   ═══════════════════════════════════════════ */

@media (max-width: 480px) {
    .bk-product-summary .product_title {
        font-size: 22px;
    }

    .bk-product-summary .price {
        font-size: 20px;
    }

    .bk-product-summary .single_add_to_cart_button {
        width: 100%;
        justify-content: center;
    }

    .bk-product .woocommerce-tabs ul.tabs li a {
        padding: 10px 12px;
        font-size: 13px;
    }

    .bk-product .related.products ul.products,
    .bk-product .upsells.products ul.products {
        grid-template-columns: 1fr;
    }
}
