body {
    background: #f5f7fa;
}

/* Navbar */
.navbar {
    transition: 0.3s;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-link:hover {
    color: #fff !important;
}

.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #0d6efd;
}

/* Search */
.form-control:focus {
    box-shadow: none;
    border-color: #0d6efd;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 14px;
    overflow: hidden;
}

.dropdown-item {
    padding: 10px 18px;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: #0d6efd;
    color: #fff;
}

/* Cart Badge */
.badge {
    font-size: 0.65rem;
}

/* Buttons */
.btn {
    border-radius: 10px;
}

/* Mobile */
@media (max-width: 991px) {

    .navbar-collapse {
        padding-top: 20px;
    }

    .nav-link {
        padding: 12px 0;
    }

    .nav-link.active::after,
    .nav-link:hover::after {
        display: none;
    }
}

/* ===== Categories ===== */

.category-card {
    border-radius: 18px;
    overflow: hidden;
}

.category-item {
    padding: 14px 18px;
    border: none;
    transition: 0.3s;
    font-weight: 500;
}

.category-item:hover {
    background: #f8f9fa;
    color: #0d6efd;
    padding-left: 24px;
}

/* ===== Category Toggle ===== */

.category-toggle {
    border: none;
    width: 100%;
    text-align: left;

    background: white;
}

/* Arrow animation */

.category-arrow {
    transition: transform 0.3s ease;
}

/* Rotate when open */

.category-toggle[aria-expanded="true"] .category-arrow {
    transform: rotate(180deg);
}

/* Subcategories animation look */

.subcategory-list {
    background: #fafafa;
}

/* Child item */

.subcategory-item {

    border: none;

    padding: 12px 20px 12px 38px;

    font-size: 0.95rem;

    color: #6c757d;

    background: transparent;

    transition: 0.3s;

}

.subcategory-item:hover {

    background: #eef4ff;

    color: #0d6efd;

    padding-left: 45px;

}

/* Icons */

.subcategory-item i {
    font-size: 1rem;
}

/* ===== Slider ===== */

.hero-slider {
    border-radius: 20px;
    overflow: hidden;
}

.slider-item {
    position: relative;

    height: 75vh;
    min-height: 320px;
    max-height: 680px;

    overflow: hidden;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: rgba(38, 38, 38, 0.45);
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    color: white;
    max-width: 550px;
    z-index: 10;
}

.slider-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.slider-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.sliders-splide img {
    transition: 5s;
    transform: none;
}

.sliders-splide .is-active img {
    transform: scale(1.05);
}

/* ===== Features ===== */

.feature-box {
    background: white;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #0d6efd;
    margin-bottom: 20px;
}

/* ===== Splide ===== */

.splide__arrow {
    background: white !important;
    opacity: 1 !important;
    width: 42px;
    height: 42px;
}

.splide__pagination__page.is-active {
    background: #0d6efd !important;
}

/* ===== Mobile ===== */

@media (max-width: 991px) {

    .slider-item {
        height: 380px;
    }

    .slider-content {
        left: 25px;
        right: 25px;
    }

    .slider-title {
        font-size: 2rem;
    }

    .slider-text {
        font-size: 1rem;
    }

}

@media (max-width: 576px) {

    .slider-item {
        height: 300px;
    }

    .slider-title {
        font-size: 1.5rem;
    }

    .slider-text {
        display: none;
    }

    .slider-content {
        left: 20px;
        bottom: 30px;
        top: auto;
        transform: none;
    }

    .feature-box {
        padding: 20px;
    }

}

@media (max-width: 550px) {
    .all-prod-btn {
        margin-top: 1rem !important;
    }
}

@media (max-width: 576px) {
    .products-section {
        margin-top: 1rem !important;
    }
}

.map-container {
    width: 100%;
    min-height: 500px;
    /* 🔥 главное */
    height: 60vh;
    /* адаптив */
    max-height: 700px;
    /* защита */

    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.image-box {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
