/* ====== БАЗОВЫЙ СТИЛЬ ====== */
body {
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ====== ХЕДЕР ====== */
.navbar-brand img {
    width: 250px;
    height: 55px;
    object-fit: contain;
}

.header-contact {
    font-size: 0.95rem;
    font-weight: bold;
    margin-right: 15px;
    color: #0056b3;
    display: flex;
    align-items: center;
}

/* ====== ПОИСК ====== */
.header-search {
    position: relative;
    width: 300px;
}

.header-search input {
    border-radius: 50px;
    border: 1px solid #ccc;
    padding: 8px 50px 8px 15px; /* справа место под кнопку */
    width: 100%;
    font-size: 0.95rem;
}

.header-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #e63946; /* красная кнопка */
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.header-search button:hover {
    background: #cc2c39;
}

/* ====== КОРЗИНА ====== */
.cart-icon {
    position: relative;
    font-size: 28px;
    color: #ff7b00; /* оранжевая иконка */
    text-decoration: none;
    margin-left: 15px;
    transition: transform 0.2s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
    color: #ff9500;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #e63946; /* красный бейдж */
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
}


/* ====== МЕГА-МЕНЮ ====== */
.dropdown-menu.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 25px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .nav-item.dropdown .dropdown-menu.mega-menu {
        display: none;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-item.dropdown:hover .dropdown-menu.mega-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== КАТАЛОГ / БРЕНДЫ ====== */
.brand-col {
    padding: 10px;
}

.brand-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #0056b3;
    text-transform: capitalize;
}

.subcategories {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.subcategories li a {
    display: block;
    padding: 8px 12px;
    border-radius: 12px;
    color: #444;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.subcategories li a::before {
    content: "›";
    font-size: 1.2rem;
    color: #0077cc;
    margin-right: 6px;
    transition: transform 0.2s;
}

.subcategories li a:hover {
    background: #e9f3ff;
    color: #0056b3;
    transform: translateX(3px);
}

.subcategories li a:hover::before {
    transform: translateX(2px);
}

/* ====== КАТЕГОРИИ ====== */
.category-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 15px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.2);
}

/* ====== МОБИЛЬНАЯ СЕТКА ====== */
@media (max-width: 767px) {
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ====== ПРОДУКТЫ ====== */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 15px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #fff;
}


.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.25);
}

.product-price {
    font-weight: bold;
    margin: 10px 0;
    color: #0056b3;
}

.vertical-line {
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background-color: #dee2e6;
}

.btn-orange {
    background: #007BFF;
    color: #fff;
    border: none;
}

.btn-orange:hover {
    background: #009DFFFF;
    color: #fff;
}

/* ====== ТЕКСТЫ / ЗАГОЛОВКИ ====== */
h1, h2, h3, h4, h5 {
    font-weight: bold;
    color: #0056b3;
}

h1 {
    font-size: 2rem;
    color: #0077cc;
}

/* ====== ФУТЕР ====== */
.footer {
    background: #111;
    color: #ccc;
    padding: 40px 0;
}

.footer h5 {
    color: #fff;
    font-size: 1.2rem;
}

.footer a {
    color: #aaa;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ====== МЕНЮ-МОБИЛКА ====== */
.simple-toggler {
    font-size: 26px;
    line-height: 1;
    border: none;
    background: none;
    color: #333;
    padding: 4px 8px;
}

.simple-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Поиск общий */
.search-box {
    position: relative;
    width: 100%; /* вместо фиксированного размера */
    max-width: 300px; /* ограничение только для десктопа */
}
@media (max-width: 991px) {
    .search-box {
        max-width: 100% !important; /* на мобилке на всю ширину */
    }
}
.search-box input {
    padding-right: 45px;
}
.search-box button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}





     /* Стиль для мобильной корзины */
 #mobileCartDropdown::-webkit-scrollbar {
     width: 6px;
 }
#mobileCartDropdown::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}
#mobileCartDropdown::-webkit-scrollbar-track {
    background: transparent;
}

  
  .cart-dropdown-desktop::-webkit-scrollbar {
      width: 6px;
  }
.cart-dropdown-desktop::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}
.cart-dropdown-desktop::-webkit-scrollbar-track {
    background: transparent;
}


  
  .cart-container-desktop { position: relative; display: inline-block; }
.cart-icon-desktop { cursor: pointer; }
.cart-dropdown-desktop {
    display: none;
    min-width: 250px;
    top: 120%;
    right: 0;
    z-index: 1000;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}





