/**
 * 2007-2024 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-2024 PrestaShop SA
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */

/* Badge PRE-ORDER 2026 na stronie produktu */
.preorder2026-badge-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    pointer-events: none;
}

/* Wsparcie dla różnych kontenerów produktów */
.product-cover-wrapper,
.product-images-wrapper,
.product-image-container,
.product-cover-image,
.product-image {
    position: relative !important;
}

.preorder2026-badge {
    background-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.95);
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 12px;
    display: inline-block;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    border-radius: 2px;
}

.preorder2026-discount {
    background-color: #28a745;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    padding: 6px 10px;
    display: inline-block;
    margin-top: 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

/* Badge PRE-ORDER 2026 na liście produktów */
.preorder2026-list-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.95);
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    padding: 6px 10px;
    display: inline-block;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    border-radius: 2px;
    pointer-events: none;
}

.preorder2026-list-discount {
    position: absolute;
    top: 50px;
    left: 10px;
    z-index: 10;
    background-color: #28a745;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 8px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    pointer-events: none;
}

/* Alternatywnie, jeśli discount ma być przy cenie */
.product-miniature .product-price-and-shipping .preorder2026-list-discount,
.products .product-miniature .product-price-and-shipping .preorder2026-list-discount {
    position: static;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

/* Rabat przy cenie na stronie produktu */
.preorder2026-price-discount {
    display: inline-block;
    background-color: #28a745;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    padding: 4px 10px;
    margin-left: 10px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

/* Rabat przy cenie na liście produktów */
.preorder2026-list-price-discount {
    display: inline-block;
    background-color: #28a745;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    padding: 3px 8px;
    margin-left: 8px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    vertical-align: middle;
}

/* Upewnienie się, że kontener produktu ma position: relative */
.product-cover,
.product-images,
.product-container .images-container,
.product-miniature,
.thumbnail-container,
.product-thumbnail,
.product-miniature .thumbnail-container,
.product-miniature .product-thumbnail,
.products .product-miniature,
.product-container,
.product-images-container,
.product-cover-wrapper {
    position: relative !important;
}

/* Dla szablonu Warehouse */
.warehouse-product-cover,
.warehouse-product-miniature,
.warehouse-product-miniature .thumbnail-container {
    position: relative !important;
}

/* Dla klasycznych szablonów PrestaShop */
#product-images .product-cover,
.product-images .product-cover,
.product-cover img {
    position: relative;
}

/* Wsparcie dla listy produktów */
.product-miniature .preorder2026-list-badge,
.products .product-miniature .preorder2026-list-badge,
.product-item .preorder2026-list-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    pointer-events: none;
}

/* Responsywność */
@media (max-width: 768px) {
    .preorder2026-badge {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .preorder2026-list-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .preorder2026-discount,
    .preorder2026-list-discount {
        font-size: 12px;
        padding: 4px 8px;
    }
}

