/**
* 2007-2025 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2025 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
.thumb .js-thumb:hover{
    border: solid 2px red;
}
.coolvideo-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    width: 100%;
    height: 100%;
}

.coolvideo-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.coolvideo-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.coolvideo-item {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coolvideo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.coolvideo-thumbnail {
    position: relative;
    overflow: hidden;
    background: #000;
    padding-bottom: 56.25%;
    height: 0;
}

.coolvideo-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.coolvideo-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.coolvideo-play-btn:hover {
    background-color: rgba(220, 53, 69, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.coolvideo-info {
    padding: 15px;
}

.coolvideo-item-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #333;
    max-height: 2.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.coolvideo-description {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.coolvideo-modal {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.coolvideo-modal-content {
    position: relative;
    background-color: #1c1c1c;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.coolvideo-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.coolvideo-close:hover {
    color: #ddd;
}

#coolvideo-embed-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

#coolvideo-embed-container iframe {
    max-width: 100%;
    height: auto;
}

.coolvideo-thumb-item {
    display: inline-block !important;
    vertical-align: top !important;
    /*margin: 5px !important;*/
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.coolvideo-thumb-item a::before {
    display: none !important;
}

.coolvideo-thumb-item:hover {
    border-color: #333;
    outline: 2px solid #ddd;
    outline-offset: -4px;
}

.coolvideo-thumb-item.active,
.coolvideo-thumb-item[data-selected="true"] {
    border-color: #333;
    outline: 2px solid #ddd;
    outline-offset: -4px;
}
.coolvideo-thumb-item{
    border: 2px solid #f1f1f1;
    margin-right: 8px;
    margin-left: 8px;
}
.js-modal-product-images > .coolvideo-thumb-item {
    width: 100% !important;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 10px;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.product-listing-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.product-listing-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-listing-video-thumbnail {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.product-listing-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(220, 53, 69, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    z-index: 10;
}

[data-product-images],
.product-images,
.product-cover,
.images-container,
.gallery,
.col-md-7,
.product-gallery,
.product-images-container,
.images,
[id*="image"] {
    visibility: hidden !important;
}

.coolvideo-gallery-thumb {
    visibility: visible !important;
}

.product-item,
.product-miniature,
.product-container,
.product-card,
.js-product-miniature,
.product-list-item,
article.product {
    display: none !important;
}

@media (max-width: 768px) {
    .coolvideo-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .coolvideo-modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .coolvideo-play-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
.product-image-block {
    width: 100%;
    aspect-ratio: 1 / 1; /* taka sama wysokość jak obrazki */
    position: relative;
}

.product-image-block iframe,
.product-image-block img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* lub contain */
}
.product-listing-video-container{
    margin-top: 20%;
}