/**
 * Product detail page styles (stocktheme → Hyvä).
 */

/* Banner image + logo */
.custom-image-container {
    position: relative;
    margin-bottom: 20px;
}

.custom-image-container > img:not(.product_banner_logo) {
    width: 100%;
    display: block;
}

.custom-image-container:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

img.product_banner_logo {
    max-height: 110px;
    width: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 100px;
    filter: brightness(0) saturate(100%) invert(100%) sepia(92%) saturate(3%) hue-rotate(253deg) brightness(106%) contrast(100%);
    z-index: 1;
}

/* Product video banner */
.top-banner .custom-videos-product,
.custom-videos-product {
    position: relative;
    width: 100%;
    height: 400px;
    min-height: 280px;
    overflow: hidden;
    background-color: #000;
    line-height: 0;
}

.top-banner .custom-videos-product video,
.custom-videos-product video {
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Media + info layout */
.product-mediaandinfo .product-main-grid {
    display: grid;
}

@media (min-width: 768px) {
    .catalog-product-view .product-mediaandinfo .product-main-grid {
        grid-template-columns: 45% minmax(0, 1fr);
        gap: 2.5rem;
        align-items: start;
    }
}

.product-mediaandinfo .product-info-stock-sku {
    float: none;
    display: block;
    padding-left: 0;
    text-align: start;
}

.product-mediaandinfo .product-info-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-info-price .price-box .price-container .price,
.product-options-bottom .price-box .price-container .price {
    font-size: 22px;
    line-height: 26px;
}

.product-info-price .price-box .price-container .price-including-tax .price {
    color: #00529c;
    font-size: 26px;
}

.product-stock-qty {
    margin: 0.5rem 0;
}

.in-stock-label {
    color: green;
    font-size: 18px;
}

/* Short icons row */
.detail_icons {
    overflow-x: auto;
    width: 100%;
    display: block;
    clear: both;
    margin: 1.5rem 0;
}

/* Accordion detail tabs */
.catalog-product-view .product.info.detailed .accordion .data_item_title h4 {
    margin: 0;
}

.catalog-product-view .product.info.detailed .accordion .data_item_title a {
    color: #000;
    text-transform: uppercase;
    background: #e7e9e8;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.brother-prod-page .product.info.detailed .accordion .data_item_title a {
    color: #fff !important;
    background: #252a4f !important;
}

.catalog-product-view .product.info.detailed .accordion .data_item_title a:after {
    content: "+";
    float: right;
    font-weight: bold;
}

.catalog-product-view .product.info.detailed .accordion .data_item_title.active a:after {
    content: "−";
}

.catalog-product-view .product.info.detailed .data_item_content.content {
    padding: 5px 0 30px;
}

.product-options-bottom .product-stock-qty {
    padding-top: 20px;
}

.product-info-main .product-info-price .callforpricebtn {
    width: 200px;
    font-size: 20px;
    margin: 0 !important;
    padding: 4px 10px;
    height: 50px;
}

.catalog-product-view div#tab-label-Overview_0 {
    display: none;
}

@media (max-width: 767px) {
    .top-banner .custom-videos-product,
    .custom-videos-product {
        height: 280px;
        min-height: 220px;
    }

    img.product_banner_logo {
        right: 20px;
        max-height: 70px;
    }

    .catalog-product-view .product-mediaandinfo .product-main-grid {
        grid-template-columns: 1fr;
    }
}
