:root {
    --main-red: #ef5350;
    --main-gray: #888;
    --main-link: #333;
    --bs-btn-font-family: 'Montserrat', sans-serif;
}

/* Бренд-цвета и базовые стили */
body {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    color: var(--main-gray);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.nav-link,
.navbar-brand {
    color: var(--main-link);
    font-family: 'Montserrat', sans-serif;
}

.navbar-brand img {
    max-width: 100%;
    height: auto;
}

/* Целевой красный */
.btn-primary,
.btn-outline-primary,
.text-primary,
.cart-badge {
    background-color: var(--main-red) !important;
    border-color: var(--main-red) !important;
    color: white !important;
}

.btn-outline-primary {
    background-color: transparent !important;
    color: var(--main-red) !important;
    border: 2px solid var(--main-red) !important;
}

.btn-outline-primary:hover {
    background-color: var(--main-red) !important;
    color: white !important;
}

a,
.nav-link,
.dropdown-item {
    color: var(--main-link);
}

a:hover,
.nav-link:hover,
.dropdown-item:hover {
    color: var(--main-red);
}



/* Скругления везде (кроме подвала) */

.card,
.img-rounded,
.dropdown-menu,
.header-full,
.hero-overlay,
.feature-block {
    border-radius: 1rem !important;
}

.btn {
    border-radius: 2rem !important;
}

/* Утилитарные классы цвета и иконок */
.icon-main-red {
    color: var(--main-red) !important;
}

.text-muted-strong {
    color: #555;
}

/* Утилитарные размеры изображений */
.img-70-cover {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

/* Кнопка без рамки */
.btn-no-border {
    border: none !important;
}

/* Шапка */
.header-full {
    background-color: white;
    border-bottom: 1px solid #ddd;
}

.header-bottom-row {
    border-top: 1px solid #e0e0e0;
}

.login-btn {
    color: var(--main-gray);
}

/* Hero секция с фоном */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/images/slider.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0 3rem;
    /* нижний padding чтобы вместить три блока */
    position: relative;
}

.hero-section h1,
.hero-section p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Три блока внутри hero, позиционируются снизу */
.hero-features {
    position: absolute;
    bottom: -60px;
    /* чтобы наполовину выходили? нет, сделаем чтобы нижняя часть была в hero */
    left: 0;
    right: 0;
    z-index: 20;
}

/* Но чтобы блоки были видны и не уходили под hero, скорректируем */
/* Уберем absolute, сделаем через отрицательный margin */
.features-wrapper {
    margin-top: 6rem;
    border-top: 3px solid #ffffff55;
}



/* фон у карточек #271c22ad */
.feature-card {
    background-color: #271c2288;
    backdrop-filter: blur(2px);
    border-radius: 1.5rem;
    padding: 0.6rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card h5 {
    color: white;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
}

.img-placeholder-70 {
    width: 70px;
    height: 70px;
    background-color: var(--main-red);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

/* Плейсхолдеры изображений */
.img-placeholder-rect {
    background-color: #bbb;
    border-radius: 1rem;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Page hero для заголовков/хлебных крошек */
.page-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('/images/breadscrumbs.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-hero h1 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.page-hero .breadcrumb {
    justify-content: center;
    margin-bottom: 0;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

/* Подвал тёмный, без скругления */
.footer-dark {
    background-color: #222;
    color: #aaa;
    padding: 3rem 0 2rem;
    border-radius: 0;
    /* убрали скругление */
    margin-top: 5rem;
}

.footer-dark a {
    color: #ccc;
    text-decoration: none;
}

.footer-dark a:hover {
    color: var(--main-red);
}

/* Бургер меню — настройки по умолчанию bootstrap, добавим кастомные цвета */
.navbar-toggler {
    border: 0;
    color: var(--main-red);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23333333'  stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.redline {
    width: 150px;
    height: 10px;
    background: transparent url('/images/line-yal.png') repeat-x center center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.footer-dark {
    background: url('/images/location1.png') center center;
}

.news-wrapper .card>a img{
    height: 300px;
    width: 100%;
    object-fit: cover;
}

/* Страница каталога и категории */
.category-products .card-img-top {
    height: 220px;
    object-fit: cover;
}