:root {
    --HeaderBC: #072e47;
    --lightC: #eef1f4;
    --lightPoint: #3080e9;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    gap: 5px;
}

.hamburger .bar {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

#navMenu {
    flex-wrap: nowrap;
}

.search-group {
    display: flex;
}

@media screen and (max-width: 860px) {
    .hamburger {
        display: flex;
    }

    header .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        position: relative;
    }

    #navMenu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 340px;
        height: 100vh;
        background: var(--HeaderBC, #072e47);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 30px 30px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
        z-index: 1050;
        overflow-y: auto;
        gap: 20px;
        box-sizing: border-box;
    }

    #navMenu.open {
        right: 0;
    }

    #navMenu ul {
        flex-direction: column;
        gap: 6px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #navMenu ul li {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    #navMenu ul li a {
        display: block;
        padding: 14px 10px;
        font-size: 1.1rem;
        color: var(--lightC, #eef1f4);
        border-radius: 6px;
        transition: background 0.2s;
    }

    #navMenu ul li a:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    #navMenu ul li a.focus {
        border-bottom: none;
        background: var(--lightPoint, #3080e9);
        color: #fff;
    }

    .search-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 20px;
    }

    #top-search {
        width: 100% !important;
        min-width: unset !important;
        height: 44px;
        border-bottom: 2px solid rgba(255, 255, 255, 0.3);
        color: #fff;
        font-size: 1rem;
        padding-left: 12px;
        background: transparent;
    }

    #top-search::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    #top-searchB {
        width: 100%;
        height: 44px;
        background: var(--lightPoint, #3080e9);
        border-radius: 30px;
        border: none;
        color: #fff;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        transition: background 0.2s;
    }

    #top-searchB img {
        filter: invert(1) brightness(200%);
        width: 20px;
    }

    #top-searchB span {
        color: #fff;
    }

    .main-search {
        flex-wrap: nowrap;
        padding: 0 10px;
        gap: 8px;
    }

    #main-search {
        width: auto !important;
        flex: 1 1 0;
        min-width: 80px;
        height: 44px;
        font-size: 0.9rem;
        padding: 0 16px 0 40px;
    }

    .search-submit-btn {
        flex: 0 0 auto;
        height: 44px;
        padding: 0 18px;
        font-size: 0.9rem;
    }

    .showProducts {
        padding: 20px 20px !important;
        background-size: 100% !important;
    }

    .products {
        flex-direction: column;
        gap: 12px;
        padding: 0;
    }

    .products-content {
        width: 100%;
        flex: none;
    }

    .products nav {
        flex: none !important;
        width: 100%;
        min-width: 0;
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    #products-menu {
        width: 100% !important;
        list-style: none !important;
        padding-left: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 4px 0 !important;
        flex-direction: row !important;
        flex: none !important;
        position: static !important;
        overflow: visible !important;
        align-self: auto !important;
    }

    #products-menu li {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: unset !important;
        max-width: 100% !important;
        border-radius: 30px !important;
        border: 2px solid #e0e0e0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        overflow: visible !important;
        transition: all 0.3s ease !important;
        margin: 0 !important;
        touch-action: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-touch-callout: none !important;
        display: flex !important;
        align-items: center !important;
        padding: 6px 18px !important;
        white-space: nowrap !important;
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        color: #2d3436 !important;
        cursor: pointer !important;
        text-decoration: none !important;
    }
    #products-menu li::before {
        display: none !important;
    }
    #products-menu li::after {
        display: none;
    }
    #products-menu li:hover {
        background: var(--lightPoint) !important;
        color: #fff !important;
        border-color: var(--lightPoint) !important;
    }
    #products-menu li.menu-more {
        border-top: none !important;
        margin-top: 0 !important;
        padding-top: 4px !important;
        font-style: normal !important;
        border: 2px dashed #d0d7e0 !important;
    }
    #products-menu li .menu-count {
        display: none;
    }
    .menu-header {
        display: none;
    }
    .menu-divider {
        display: none;
    }

    #products-img {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px;
    }

    #products-img .card {
        max-width: 100%;
        border-radius: 12px;
    }

    #products-img .card img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }

    #products-img .card h3 {
        font-size: 0.85rem;
        padding: 12px 10px;
    }

    #products-img.list-view .card img {
        width: 100px;
        height: 100px;
    }

    #products-img.list-view .card .card-info {
        padding: 10px 14px;
    }

    #products-img.list-view .card .card-info h3 {
        font-size: 0.88rem;
    }

    .products-toolbar {
        margin-bottom: 12px;
    }
    .view-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .about .info {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 20px !important;
        max-width: 100%;
    }

    .about .info .advantages {
        width: 100% !important;
        max-width: 320px !important;
        flex: 0 0 auto !important;
    }

    .about .info .advantages img {
        height: auto !important;
        aspect-ratio: 1 / 1;
        width: 100%;
    }

    .about .info .advantages .text-area {
        min-height: 80px;
        padding: 16px 0 18px;
    }

    .about .info .advantages .text-area h3 {
        font-size: 1.5rem !important;
        padding-left: 20px;
    }

    .about .info .advantages .text-area p {
        font-size: 1.2rem !important;
        padding-left: 20px;
    }

    .about .info .advantages .text-area .icon {
        width: 22px;
        height: 22px;
        margin-right: 8px;
    }

    .history .info {
        max-width: 100%;
        padding: 0 0;
        margin: 0 !important;
    }

    .history h2 {
        font-size: 1.8rem;
    }

    .history .main-text p {
        font-size: 0.95rem;
    }

    .footer {
        padding: 50px 0px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 30px;
        padding: 0 20px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        max-width: 100%;
        padding: 20px 20px 0;
    }

    .footer-bottom .legal-links a {
        margin-left: 0;
        margin-right: 16px;
    }

    .container h2 {
        font-size: 2.2rem;
    }

    .container p {
        font-size: 1rem;
    }

    .product-top {
        flex-direction: column;
        padding: 20px 16px;
        gap: 24px;
    }

    .product-mainImg {
        width: 100%;
        padding: 12px;
    }

    .Rinfo {
        padding: 24px 18px;
        width: 100%;
        box-sizing: border-box;
    }

    .detailsImg {
        width: 100% !important;
        min-width: unset !important;
        padding: 16px;
        margin-bottom: 30px;
        box-sizing: border-box;
    }

    .mianInfo h1 {
        font-size: 1.3rem;
    }

    .mianInfo .price {
        font-size: 1.4rem;
    }

    .shop-link {
        flex-wrap: wrap;
        gap: 12px;
    }

    .shop-link button {
        flex: 1 1 100%;
        justify-content: center;
        padding: 12px;
    }

    .showProducts {
        min-height: auto;
        padding: 20px 10px;
        background-size: 100vw !important;
    }

    #result {
        font-size: 1.3rem;
        margin: 0 10px;
    }
}

@media screen and (max-width: 480px) {
    .products nav {
        flex: auto !important;
    }

    #products-menu li ::after {
        display: none !important;
    }

    #products-menu li ::before {
        display: none !important;
    }

    #products-img {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    #products-img .card h3 {
        font-size: 0.75rem;
        padding: 6px 8px;
    }

    #products-img.list-view .card img {
        width: 80px;
        height: 80px;
    }

    #products-img.list-view .card .card-info {
        padding: 8px 12px;
        gap: 4px;
    }

    #products-img.list-view .card .card-info h3 {
        font-size: 0.82rem;
    }

    .container h2 {
        font-size: 1.8rem;
    }

    #main-search {
        font-size: 0.85rem;
        height: 40px;
        padding-left: 36px;
    }

    .search-submit-btn {
        height: 40px;
        font-size: 0.85rem;
        padding: 0 14px;
    }

    .about .info .advantages {
        max-width: 280px !important;
    }

    .about .info .advantages .text-area {
        min-height: 64px;
        padding: 12px 0 14px;
    }

    .about .info .advantages .text-area h3 {
        font-size: 0.95rem;
        padding-left: 16px;
    }

    .about .info .advantages .text-area p {
        font-size: 0.8rem;
        padding-left: 16px;
    }

    .about .info .advantages .text-area .icon {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }

    .footer-contact .social-links .contact {
        padding: 4px 10px;
        font-size: 12px;
    }

    #products-menu li {
        min-width: unset;
    }

    #products-menu li {
        padding: 4px 14px !important;
        font-size: 0.8rem !important;
    }
}