﻿/* wwwroot/css/home.css */

/* Общие контейнеры и рамки */
.custom-carousel-container,
.brand-logo-container {
    /* .product-card рамка убрана отсюда */
    border: 1px solid #006400; /* Темно-зеленый */
    border-radius: 5px;
    background-color: #fff;
}

/* Убираем рамку у карточки товара ВНУТРИ карусели "Товар дня" */
#productDayCarousel .card { /* Новый селектор, нацеленный на базовый класс Bootstrap */
    border: none;
}

.custom-carousel-container {
    padding: 10px; /* Отступ внутри рамки карусели */
    display: flex; /* Для выравнивания высоты */
    flex-direction: column;
}

/* Стили баннера для заполнения высоты */
#bannerCarousel .carousel-inner {
    /* height: 100%; */ /* Заменяем на aspect-ratio */
    position: relative;
    width: 100%;
    aspect-ratio: 1.5 / 0.9; /* Баннер 1.5:1 (ширина:высота) */
    overflow: hidden;
}

#bannerCarousel .carousel-item { /* Должен быть 100% высоты нового .carousel-inner */
    height: 100%;
}

#bannerCarousel .carousel-item img {
    object-fit: fill;
    height: 100%;
    width: 100%;
}

/* Стилизация и позиционирование индикаторов для карусели Товара Дня */
#productDayCarousel .carousel-indicators { /* Используем общий класс Bootstrap */
    position: absolute;
    right: 0;
    /* bottom: -15px; */ /* Убираем отрицательный отступ */
    bottom: 5px;   /* Опускаем точки немного ниже */
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-right: 15%;
    margin-bottom: 0; /* Убираем нижний отступ по умолчанию */
    margin-left: 15%;
    list-style: none;
}

    /* Стиль неактивной точки: белая с темно-зеленой обводкой */
    #productDayCarousel .carousel-indicators [data-bs-target] {
        box-sizing: content-box;
        flex: 0 1 auto;
        width: 10px;
        height: 10px;
        padding: 0;
        margin-right: 3px;
        margin-left: 3px;
        text-indent: -999px;
        cursor: pointer;
        background-color: #fff; /* Белый фон */
        background-clip: padding-box;
        border: 1px solid #006400; /* Темно-зеленая обводка */
        border-radius: 50%;
        opacity: .5;
        transition: opacity .6s ease;
    }

    /* Стиль активной точки: темно-зеленая */
    #productDayCarousel .carousel-indicators .active {
        opacity: 1;
        background-color: #006400; /* Темно-зеленый фон */
        border-color: #006400;
    }

/* Стили для стрелок карусели (если нужно изменить цвет) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 10px;
    background-size: 50% 50%;
}

/* Заголовок секции */
.section-title {
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

/* Контейнер для логотипа бренда */
.brand-logo-container {
    padding: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    min-height: 60px;
}

.brand-logo {
    max-height: 40px;
    max-width: 100%;
    object-fit: contain;
}

.brand-name-fallback {
    font-size: 0.9em;
    color: #555;
}

/* Стилизация и позиционирование индикаторов для баннеров (как у Товара дня) */
.banner-indicators {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-right: 15%;
    margin-bottom: 0;
    margin-left: 15%;
    list-style: none;
}
.banner-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 10px;
    height: 10px;
    padding: 0;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #006400;
    border-radius: 50%;
    opacity: .5;
    transition: opacity .6s ease;
}
.banner-indicators .active {
    opacity: 1;
    background-color: #006400;
    border-color: #006400;
}