/**
* 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    ibif.pl <biuro@ibif.pl>
*  @copyright 2007-2025 ibif.pl
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/
.featured-banners {
    margin-bottom: 30px;
}

.featured-banners .banner-box {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    max-height: 300px;
    border-radius: 10px;
}

.featured-banners .banner-box img {
    display: block;
    width: 100%;
}

.featured-banners .banner-box .banner-flag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: #fff;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    z-index: 10;
}

.featured-banners .banner-box .banner-flag.flag-new {
    background: #28a745;
    color: #fff;
}

.featured-banners .banner-box .banner-flag.flag-sale {
    background: #dc3545;
    color: #fff;
}

.featured-banners .banner-box .banner-flag.flag-promo {
    background: #ffc107;
    color: #000;
}

.featured-banners .banner-box a {
    display: block;
    text-decoration: none;
}

.featured-banners .banner-box a:hover {
    opacity: 0.9;
}

/* Fix for left/right layouts - link should fill image container */
.featured-banners .banner-box-left .banner-image-link,
.featured-banners .banner-box-right .banner-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.featured-banners .banner-box-left .banner-image-link:hover,
.featured-banners .banner-box-right .banner-image-link:hover {
    opacity: 0.9;
}

/* Overlay layout styles - only for overlay position */
.featured-banners .banner-box-overlay .banner-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 15px;
}

.featured-banners .banner-box-overlay .banner-content-overlay.banner-no-background {
    background: transparent;
}

.featured-banners .banner-box-overlay .banner-content-overlay.banner-text-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: auto;
}

.featured-banners .banner-box-overlay .banner-content-overlay.banner-text-left {
    bottom: 0;
    left: 0;
    top: 0;
    right: auto;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-banners .banner-box-overlay .banner-content-overlay.banner-text-right {
    bottom: 0;
    right: 0;
    top: 0;
    left: auto;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-banners .banner-box-overlay .banner-content-overlay h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1.42;
    font-weight: 600;
}

.featured-banners .banner-box-overlay .banner-content-overlay p {
    margin: 0;
    color: #fff;
    font-size: 14px;
}

/* Layout styles for left/right image positions */
.featured-banners .banner-box-left,
.featured-banners .banner-box-right {
    position: relative;
}

.featured-banners .banner-box-left .banner-box-inner,
.featured-banners .banner-box-right .banner-box-inner {
    display: flex;
    align-items: stretch;
    min-height: 300px;
}

.featured-banners .banner-box-left .banner-image-container,
.featured-banners .banner-box-right .banner-image-container {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    background: #f0f0f0;
}

.featured-banners .banner-box-left .banner-box-inner:not(:has(.banner-content-side)) .banner-image-container,
.featured-banners .banner-box-right .banner-box-inner:not(:has(.banner-content-side)) .banner-image-container {
    flex: 1 1 100%;
}

.featured-banners .banner-box-left .banner-image-container img,
.featured-banners .banner-box-right .banner-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.featured-banners .banner-box-left .banner-image-link,
.featured-banners .banner-box-right .banner-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    text-decoration: none;
}

.featured-banners .banner-box-left .banner-image-link:hover,
.featured-banners .banner-box-right .banner-image-link:hover {
    opacity: 0.95;
}

.featured-banners .banner-box-left .banner-content-side,
.featured-banners .banner-box-right .banner-content-side {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    background: #f8f9fa;
    color: #333;
    position: relative;
}

.featured-banners .banner-box-left .banner-content-side h3,
.featured-banners .banner-box-right .banner-content-side h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.featured-banners .banner-box-left .banner-content-side p,
.featured-banners .banner-box-right .banner-content-side p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Right layout - reverse order */
.featured-banners .banner-box-right .banner-box-inner {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .featured-banners .banner-box {
        margin-bottom: 15px;
    }

    .featured-banners .banner-box-left .banner-box-inner,
    .featured-banners .banner-box-right .banner-box-inner {
        flex-direction: column;
        min-height: auto;
    }

    .featured-banners .banner-box-left .banner-image-container,
    .featured-banners .banner-box-right .banner-image-container {
        flex: 0 0 100%;
        min-height: 200px;
    }

    .featured-banners .banner-box-left .banner-content-side,
    .featured-banners .banner-box-right .banner-content-side {
        flex: 0 0 100%;
        padding: 20px;
    }

    .featured-banners .banner-box-right .banner-box-inner {
        flex-direction: column;
    }
}

