/* ==========================
   R-PRINT 2026
========================== */

:root{
    --main:#d60000;
    --dark:#202020;
    --light:#ffffff;
    --gray:#f6f6f6;
    --border:#e6e6e6;
}

body{
    margin:0;
    padding:0;
    background:#fafafa;
    color:#333;
    font-family:Arial, Helvetica, sans-serif;
    font-size:15px;
}

a{
    color:var(--main);
    transition:.25s;
}

a:hover{
    color:#990000;
    text-decoration:none;
}

.container{
    max-width:1320px;
}

header{
    background:#fff;
    box-shadow:0 4px 18px rgba(0,0,0,.08);
}

#top{
    background:#fff;
    border-bottom:1px solid #eee;
    padding:8px 0;
}

#logo img{
    max-height:95px;
}

.btn-primary{
    background:var(--main);
    border:none;
    border-radius:8px;
    padding:10px 24px;
}

.btn-primary:hover{
    background:#b70000;
}

.form-control{
    border-radius:8px;
    border:1px solid #ddd;
    height:46px;
}

#menu{
    background:var(--main);
    border:none;
}

#menu .navbar-nav>li>a{
    color:#fff;
    font-size:15px;
    font-weight:bold;
    padding:18px 22px;
}

#menu .navbar-nav>li>a:hover{
    background:#b70000;
}

.product-layout .product-thumb{
    background:#fff;
    border-radius:12px;
    border:1px solid #eee;
    transition:.3s;
    overflow:hidden;
}

.product-layout .product-thumb:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

footer{
    background:#222;
    color:#ddd;
    padding:50px 0;
    margin-top:60px;
}

footer a{
    color:#fff;
}

footer a:hover{
    color:#ff4040;
}

:root {
    --rp-red: #e31e24;       /* Основной красный цвет */
    --rp-dark: #1a1a1a;      /* Цвет футера и текста */
    --rp-light-bg: #f8f9fa;  /* Светлый фон для секций */
    --rp-border: #eeeeee;    /* Цвет рамок */
}
/* Общие настройки */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}
/* Верхняя панель и Контакты */
.top-bar {
    border-bottom: 1px solid var(--rp-border);
    padding: 8px 0;
    font-size: 13px;
}
/* Главное меню (Красная полоса) */
#menu {
    background-color: var(--rp-red);
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    min-height: 50px;
}
#menu .nav > li > a {
    background-color: transparent;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    padding: 15px 20px;
}
#menu .nav > li > a:hover {
    background-color: rgba(0,0,0,0.1);
}
/* Карточка товара как на макете */
.product-thumb {
    border: 1px solid var(--rp-border) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    overflow: hidden;
    position: relative;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}
.product-thumb:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
/* Кнопка "В закладки" (сердечко) сверху справа */
.product-thumb .button-group button[onclick*="wishlist"] {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 18px;
}
.product-thumb .button-group button[onclick*="wishlist"]:hover {
    color: var(--rp-red);
}
/* Название товара */
.product-thumb h4 a {
    color: #333;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}
/* Цена слева */
.product-thumb .price {
    text-align: left;
    color: #000;
    font-weight: bold;
    font-size: 17px;
    margin: 10px 0;
}
/* Кнопка "У кошик" (Красная, на всю ширину) */
.product-thumb .button-group button[onclick*="cart"] {
    width: 100%;
    background-color: var(--rp-red);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.product-thumb .button-group button[onclick*="cart"]:hover {
    background-color: #c4181d;
}
.product-thumb .button-group button[onclick*="cart"] i {
    margin-right: 8px;
}
/* Скрываем ненужную кнопку сравнения из стандартного OpenCart */
.product-thumb .button-group button[onclick*="compare"] {
    display: none;
}
/* Стили для поиска */
#search .input-lg {
    border-radius: 20px 0 0 20px;
    border-color: var(--rp-border);
}
#search .btn-lg {
    background-color: var(--rp-red);
    border-color: var(--rp-red);
    color: #fff;
    border-radius: 0 20px 20px 0;
}
/* Футер (Темный) */
footer {
    background-color: var(--rp-dark);
    color: #bbb;
    padding-top: 40px;
    margin-top: 50px;
}
footer h5 {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}
footer a {
    color: #bbb;
}
footer a:hover {
    color: var(--rp-red);
}
/* Баннер (Главная кнопка) */
.btn-primary.btn-lg {
    background-color: var(--rp-red);
    border-color: var(--rp-red);
    border-radius: 25px;
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: bold;
}
.header-buttons a {
    text-decoration: none;
    transition: color 0.2s;
}
.header-buttons a:hover {
    color: #e31e24 !important;
}
#cart > .btn {
    background: none;
    border: none;
    color: #333;
    padding: 0;
    text-align: center;
}
#cart > .btn i {
    font-size: 24px;
    display: block;
    margin: 0 auto;
}
#cart > .btn span {
    font-size: 11px;
}
#cart.open > .btn {
    background: none;
    color: #e31e24;
}
/* Блок преимуществ */
.feature-box {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.feature-item i {
    font-size: 30px;
    color: #e31e24;
}
.feature-text b {
    display: block;
    font-size: 14px;
}
.feature-text span {
    font-size: 12px;
    color: #777;
}

/* Заголовки секций (Популярні товари, Новинки) */
.main-heading {
    text-align: center;
    position: relative;
    margin: 40px 0 30px;
    font-weight: bold;
    font-size: 24px;
}
.main-heading:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #e31e24;
    margin: 10px auto 0;
}

/* Сетка категорий на главной */
.category-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}
.category-item {
    flex: 1;
    min-width: 150px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}
.category-item:hover {
    border-color: #e31e24;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.category-item img {
    max-width: 100%;
    margin-bottom: 10px;
}
.category-item a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}
/* Цвет активной категории в боковом меню */
.list-group-item.active, 
.list-group-item.active:hover, 
.list-group-item.active:focus {
    color: #fff;
    background-color: #e31e24; /* Наш красный цвет */
    border-color: #e31e24;
    text-shadow: none;
}

/* Цвет при наведении на обычные пункты в боковом меню */
a.list-group-item:hover {
    color: #e31e24;
    background-color: #f8f8f8;
}

/* Убираем синюю рамку вокруг активного пункта */
.list-group-item.active {
    z-index: 2;
}

/* Стили для "хлебных крошек" (ссылка под меню), чтобы тоже была красной */
ul.breadcrumb li a:hover {
    color: #e31e24;
}
/* --- Исправление цвета в боковом меню --- */

/* Активный пункт (синий меняем на красный) */
.list-group-item.active, 
.list-group-item.active:hover, 
.list-group-item.active:focus {
    color: #fff !important;
    background-color: #e31e24 !important;
    border-color: #e31e24 !important;
    text-shadow: none !important;
}

/* При наведении на пункты меню */
a.list-group-item:hover {
    color: #e31e24 !important;
    background-color: #fcfcfc !important;
}

/* Цвет ссылки в "хлебных крошках" (путь под меню) */
.breadcrumb li a:hover {
    color: #e31e24 !important;
}

/* Оформление заголовков в боковой колонке */
column-left h3, column-right h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

@media (max-width: 767px) {
    #top .social-links {
        text-align: center;
        margin-top: 10px;
    }
    .header-main {
        flex-direction: column;
        text-align: center;
    }
    #logo {
        margin-bottom: 15px;
    }
    .header-buttons {
        margin-top: 15px;
        justify-content: center;
    }
    .feature-box {
        display: none; /* Скрываем иконки преимуществ на маленьких экранах */
    }
}

/* --- Стили корзины --- */

/* Мини-корзина (в шапке) */
#cart .dropdown-menu {
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 300px;
}

#cart .dropdown-menu p.text-right a {
    background-color: #e31e24;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    text-decoration: none;
    font-weight: bold;
}

#cart .dropdown-menu p.text-right a:first-child {
    background-color: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
    margin-right: 5px;
}

#cart .dropdown-menu p.text-right a:hover {
    opacity: 0.9;
}

/* Страница корзины (cart.twig) */
.checkout-cart .table-bordered {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.checkout-cart .input-group .btn-primary {
    background-color: #e31e24;
    border-color: #e31e24;
}

.checkout-cart .btn-danger {
    background-color: #ff4d4d;
}

/* Итоговый блок */
.cart-total-block {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}
/* --- Красные иконки и текст в шапке --- */

/* Цвет иконок: кабинет, избранное, корзина */
.header-buttons i, 
#cart i {
    color: #e31e24 !important; /* Ваш фирменный красный */
    font-size: 26px !important;
    margin-bottom: 5px;
    transition: transform 0.2s;
}

/* Цвет текста под иконками */
.header-buttons span, 
#cart span {
    color: #333333 !important; /* Текст оставляем темным для читаемости, как на макете */
    font-size: 12px !important;
    font-weight: 500;
}

/* Эффект при наведении (иконка немного увеличивается) */
.header-buttons a:hover i,
#cart > button:hover i {
    color: #c4181d !important; /* Чуть темнее красный при наведении */
    transform: scale(1.1);
}

/* Убираем стандартные стили кнопки корзины */
#cart > button {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Промежуточный, мягкий серый фон */
body {
    background-color: #f0f2f5 !important; 
}

/* Выделяем карточки товаров и модули на фоне */
.product-thumb, 
.swiper-viewport, 
.list-group-item, 
.well,
.breadcrumb {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important; /* Тонкая светлая рамка */
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important; /* Почти незаметная тень для чистоты */
}

/* Убираем лишние рамки с контейнеров, чтобы не было наслоения */
.container, #content {
    background: transparent !important;
}

/* Чтобы меню на главной не «висело» в воздухе */
#menu {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Приховуємо компанію, адресу 2 та індекс */
#input-payment-company, .form-group:has(#input-payment-company),
#input-payment-address-2, .form-group:has(#input-payment-address-2),
#input-payment-postcode, .form-group:has(#input-payment-postcode) {
    display: none !important;
}

/* Приховуємо непотрібні поля в оформленні замовлення */
.form-group:has([name='company']),
.form-group:has([name='address_2']),
.form-group:has([name='postcode']) {
    display: none !important;
}

/* Збільшення ціни та центрування в категоріях */
.product-thumb .price {
    font-size: 24px; /* Розмір основної ціни */
    font-weight: bold; /* Жирний шрифт */
    color: #d91d1d; /* Ваш фірмовий червоний колір (можна змінити на #000) */
    text-align: center;
    display: block;
    margin: 10px 0;
}

/* Приховуємо напис "Без ПДВ", якщо він не зник через налаштування */
.product-thumb .price-tax {
    display: none;
}

/* Центрування назви товару та опису для гармонії */
.product-thumb .caption {
    text-align: center;
}

/* Якщо потрібно приховати саме текст опису, але залишити ціну та назву */
.product-thumb .caption > p:nth-of-type(1) {
    display: none;
}

/* Стиль підкатегорій у випадаючому меню */
.dropdown-menu li a {
    font-size: 16px !important; /* Збільшуємо шрифт */
    padding: 10px 20px !important; /* Додаємо простір навколо тексту */
    color: #333 !important; /* Колір тексту */
    display: block;
    transition: all 0.3s ease; /* Плавний ефект при наведенні */
}

/* Ефект при наведенні на підкатегорію */
.dropdown-menu li a:hover {
    background-color: #f8f8f8 !important; /* Світлий фон при наведенні */
    color: #d91d1d !important; /* Зміна кольору тексту на ваш фірмовий червоний */
    padding-left: 25px !important; /* Невеликий зсув вправо для динаміки */
}

/* Прибираємо зайві відступи у випадаючому списку */
.dropdown-inner ul {
    list-style: none;
    padding: 5px 0;
}
