:root {
    --wb-red: #c61d33;
    --wb-dark: #222222;
    --wb-text-muted: #666666;
    --wb-border: #e1e1e1;
    --wb-light-bg: #f9f9f9;
}

body {
    font-family: "Roboto", sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1350px !important;
}

/* Header */
.header-top {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.header-phone {
    color: var(--wb-red);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
}
.header-phone:hover {
    color: var(--wb-red);
}
.header-hours {
    color: var(--wb-red);
    font-size: 0.85rem;
}
.logo-center img {
    max-height: 75px;
}
.search-input {
    border: 1px solid var(--wb-border);
    border-right: none;
    border-radius: 0;
    height: 40px;
    font-size: 0.9rem;
}
.search-btn {
    background-color: var(--wb-dark);
    color: #fff;
    border: none;
    border-radius: 0;
    width: 45px;
    height: 40px;
}

/* Header Cart */
.header-cart-link {
    color: var(--wb-dark);
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 40px;
    font-size: 1.4rem;
    margin-left: 15px;
    transition: color 0.2s;
}
.header-cart-link:hover {
    color: var(--wb-red);
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--wb-red);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Mobile Toggle */
#mobile-menu-toggle {
    background-color: var(--wb-red) !important;
    color: #fff !important;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    padding: 0;
}
#mobile-menu-toggle i {
    color: #fff !important;
    font-size: 1.5rem;
}

.mobile-search-toggle {
    background: none;
    border: none;
    color: #999;
    font-size: 1.8rem;
    padding: 0;
}

/* Navigation */
.navbar-wb {
    background-color: var(--wb-dark);
    padding: 0;
    border-bottom: 2px solid var(--wb-red);
    width: 100%;
}
.navbar-wb .container {
    padding: 0;
    max-width: 1350px !important;
}
.nav-link-wb {
    color: #fff !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 18px 25px !important;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    height: 100%;
}
.nav-link-wb:hover {
    background-color: var(--wb-red);
}

/* Brands Dropdown */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}
.brands-dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    border: 1px solid var(--wb-border);
    top: 100%;
    left: 0;
}
.brands-dropdown-menu a {
    color: #666;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}
.brands-dropdown-menu a:hover {
    background-color: #fafafa;
    color: var(--wb-red);
    padding-left: 20px;
}
.nav-item-dropdown:hover .brands-dropdown-menu {
    display: block;
}

.nav-brands-btn {
    background-color: var(--wb-red);
    font-weight: 500;
    text-align: center;
}

/* Sidebar + Main content layout */
.main-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    margin-top: 0;
    align-items: stretch;
}

.sidebar-brands {
    border-right: 1px solid var(--wb-border);
    padding: 10px 0;
    height: 100%;
    background-color: #fff;
}
.sidebar-brands a {
    display: block;
    padding: 8px 25px;
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.sidebar-brands a:hover {
    color: var(--wb-red);
    padding-left: 30px;
}

.filter-section {
    padding: 20px 15px;
    border-bottom: 1px solid #f5f5f5;
}
.filter-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.filter-item {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
}
.filter-item input {
    margin-right: 10px;
    accent-color: var(--wb-red);
}
.filter-item label {
    cursor: pointer;
    flex-grow: 1;
}
.filter-item .count {
    color: #999;
    font-size: 0.8rem;
    margin-left: 5px;
}
.price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}
.price-inputs input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    font-size: 0.85rem;
}
.filter-apply-btn {
    margin: 20px 15px;
    width: calc(100% - 30px);
}

/* --- Product Cards --- */
.hero-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
}
.hero-main {
    background: url("https://www.watch-berries.ru/upload/stadvancedbanner/91a734305337f0e8386b0f8678ae6590.jpg")
        no-repeat center right;
    background-size: cover;
    background-color: #f4f4f4;
    padding: 60px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-sub {
    background: url("https://www.watch-berries.ru/upload/stadvancedbanner/21e325f5106c092667e4eaeff5e10fd5.jpg")
        no-repeat center;
    background-size: cover;
    height: 400px;
    display: flex;
    align-items: flex-end;
    color: #fff;
}
.hero-sub-text {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-wb-red {
    background-color: var(--wb-red);
    color: #fff;
    text-transform: uppercase;
    border-radius: 0;
    padding: 14px 40px;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
}
.btn-wb-red:hover {
    background-color: #666;
    color: #fff;
}

/* Fast Search */
.fast-search-wrapper {
    padding: 0 20px;
}
.fast-search-container {
    background-color: #fff;
    padding: 40px;
}

.fast-search-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 30px;
    color: #333;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 50px 20px;
    background-color: #fff;
}
.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.feature-icon-img {
    display: inline-block;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    background-image: url("../img/icons.png");
    background-repeat: no-repeat;
    background-size: 800px 600px;
}
.icon-delivery {
    background-position: -239px -4px;
}
.icon-fitting {
    background-position: -308px -4px;
}
.icon-prices {
    background-position: -372px -4px;
}
.icon-return {
    background-position: -453px -4px;
}
.feature-text h6 {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}
.feature-text p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Middle Section (Info Blocks) */
.info-section {
    padding: 60px 0;
}
.info-section .row {
    margin-right: -15px;
    margin-left: -15px;
}
.info-section .col-md-6 {
    padding-right: 15px;
    padding-left: 15px;
}
.info-bg {
    background-image: url("../img/bg.png");
    background-repeat: repeat;
    padding: 10px;
    display: flex;
    flex-direction: column;
}
.info-card {
    background-color: #fff;
    padding: 40px;
    flex-grow: 1;
}
.info-card h2 {
    font-family: "Philosopher", serif;
    font-weight: 400;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #222;
}
.info-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 25px;
}
.about-img-wrapper {
    padding: 0;
    overflow: hidden;
    background-color: #fff;
}
.about-img-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}
.about-img-wrapper:hover img {
    transform: scale(1.02);
}

/* Footer */
.footer-wb {
    background-color: var(--wb-dark);
    background-image: url("../img/bg-footer.png");
    background-repeat: repeat;
    color: #999;
    padding: 70px 0 30px;
    font-size: 0.9rem;
}
.footer-title {
    color: #fff;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 35px;
    letter-spacing: 1px;
    position: relative;
}
.footer-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--wb-red);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 15px;
}
.footer-links a {
    color: #999;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}
.footer-contacts p {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}
.footer-contacts i {
    color: var(--wb-red);
    margin-right: 15px;
    margin-top: 5px;
}
.footer-contacts span {
    color: #eee;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    margin-top: 60px;
}

/* --- Product Cards --- */
.product-card {
    border: 1px solid #eee;
    padding: 15px;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    text-decoration: none;
    color: inherit;
}
.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--wb-red);
    color: inherit;
}
.product-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}
.product-brand {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.product-title {
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 10px;
    flex-grow: 1;
}
.product-price {
    font-weight: bold;
    color: var(--wb-red);
    font-size: 1.2rem;
}
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 10px;
}

/* Desktop Specific (1024px+) */
@media (min-width: 1024px) {
    .nav-item-dropdown {
        width: 250px;
        flex-shrink: 0;
    }
    .nav-brands-btn {
        width: 100%;
        justify-content: center;
    }

    /* On the index page where sidebar-brands exists, we can hide the hover dropdown to avoid redundancy */
    .index .nav-item-dropdown:hover .brands-dropdown-menu {
        display: none;
    }

    .main-grid {
        display: grid;
        grid-template-columns: 250px 1fr;
    }
}

/* --- Responsive Design --- */

@media (max-width: 767px) {
    #main-navbar {
        display: none;
    }
    #main-navbar.show {
        display: block;
    }
    .nav-item-dropdown.open .brands-dropdown-menu {
        display: block !important;
    }
    .navbar-wb .container > .d-flex {
        flex-direction: column;
    }
    .brands-dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: #333;
    }
    .brands-dropdown-menu a {
        color: #ccc;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 15px 30px;
    }
    .brands-dropdown-menu a:hover {
        background-color: var(--wb-red);
        color: #fff;
    }
    .nav-brands-btn i {
        display: none;
    }
    .nav-link-wb {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Desktop (1280px - 1439px) */
@media (max-width: 1439px) {
    .container {
        max-width: 1240px !important;
    }
}

/* Small Laptops (1024px - 1279px) */
@media (max-width: 1279px) {
    .container {
        max-width: 980px !important;
    }
    .hero-main {
        padding: 40px;
        height: 350px;
    }
    .hero-sub {
        height: 350px;
    }
}

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) {
    .container {
        max-width: 720px !important;
    }
    .main-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-brands {
        display: none;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .hero-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-sub {
        display: none;
    }
    .info-section .col-md-6 {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Phones (480px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .header-top {
        padding: 10px 0;
    }

    .header-top .row > div {
        margin-bottom: 10px;
    }

    .mobile-header-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .mobile-header-bottom-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo-center {
        flex-grow: 1;
        text-align: center;
    }

    .logo-center img {
        max-height: 60px;
        margin-right: 50px; /* Offset for the burger button to keep logo centered */
    }

    .header-phone,
    .header-hours {
        text-align: left;
    }

    .header-hours {
        margin-top: 10px;
    }

    #searchbox {
        display: none !important;
    }

    #searchbox.show-mobile {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #fff;
        padding: 10px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-wb .container > .d-flex {
        flex-direction: column;
    }
    .nav-brands-btn {
        width: 100% !important;
    }
    .navbar-wb .flex-grow-1 {
        display: flex;
        flex-direction: column;
    }
    .nav-link-wb {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .features-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    .hero-main {
        height: auto;
        padding: 40px 20px;
        background-position: center;
    }
    .hero-main h2 {
        font-size: 2rem !important;
    }
}

/* --- Contacts Page --- */
.contacts-header {
    padding: 40px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}
.breadcrumb-wb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}
.breadcrumb-wb a {
    color: #666;
    text-decoration: none;
}
.breadcrumb-wb a:hover {
    color: var(--wb-red);
}
.contact-info-grid {
    margin-bottom: 50px;
}
.contact-method-card {
    text-align: center;
    padding: 30px;
    height: 100%;
    transition: transform 0.2s;
}
.contact-method-card i {
    font-size: 2.5rem;
    color: var(--wb-red);
    margin-bottom: 20px;
}
.contact-method-card h4 {
    font-family: "Philosopher", serif;
    margin-bottom: 15px;
    font-weight: 700;
}
.contact-method-card p {
    color: #555;
    margin-bottom: 5px;
    line-height: 1.5;
}
.map-container {
    margin-bottom: 60px;
}
.requisites-section {
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 60px;
}
.requisites-section h3 {
    font-family: "Philosopher", serif;
    margin-bottom: 20px;
}
