* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #ffffff;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

header {
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    height: 50px;
}
.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #7b1d12;
    line-height: 1.1;
}
.logo-text span {
    display: block;
    font-size: 14px;
    color: #f3a633;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}
.nav-menu > li {
    position: relative;
    padding: 10px 0;
}
.nav-menu a {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-menu > li > a:hover {
    color: #7b1d12;
}
.nav-menu .dropdown-toggle i {
    font-size: 10px;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.25s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    list-style: none;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1010;
    padding: 15px 0;
}
.dropdown-menu li {
    width: 100%;
}
.dropdown-menu a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: #444;
    font-weight: 500;
    line-height: 1.4;
    transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover {
    background: #f9f9f9;
    color: #7b1d12;
}

@media (min-width: 901px) {
    .nav-menu > li:hover .dropdown-toggle i {
        transform: rotate(180deg);
        color: #7b1d12;
    }
    .nav-menu > li:hover > a {
        color: #7b1d12;
    }
    .nav-menu > li:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    background: #fff;
    padding: 6px 12px;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    right: 0;
    white-space: nowrap;
}
.search-wrapper.active .search-box {
    width: 240px;
    opacity: 1;
    right: 0;
}
.search-box i {
    color: #666;
    margin-right: 8px;
    font-size: 14px;
}
.search-box input {
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    width: 100%;
}
.search-box input::placeholder {
    color: #999;
}
.search-trigger {
    font-size: 16px;
    color: #555;
    margin-right: 10px;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s, opacity 0.3s;
}
.search-wrapper.active .search-trigger {
    opacity: 0;
    pointer-events: none;
}

.search-trigger-mobile {
    display: none;
    font-size: 18px;
    color: #555;
    cursor: pointer;
}

.search-trigger-mobile.fas, .menu-toggle.fas {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    z-index: 1001;
    width: 24px;
    text-align: center;
}

.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1100;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-search-container {
    background: #ffffff;
    width: 100%;
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.mobile-search-overlay.active .mobile-search-container {
    transform: translateY(0);
}
.mobile-search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    border: 1px solid #f3a633;
    border-radius: 4px;
    background: #fff;
    padding: 8px 12px;
}
.mobile-search-bar i {
    color: #333;
    margin-right: 10px;
    font-size: 16px;
}
.mobile-search-bar input {
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
    width: 100%;
}
.mobile-search-close {
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}


footer {
    border-top: 1px solid #eaeaea;
    padding: 40px 20px;
    background-color: #fafafa;
    text-align: center;
}
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    margin-bottom: 25px;
}
.footer-nav a {
    font-size: 13px;
    color: #666;
    transition: color 0.3s;
}
.footer-nav a:hover {
    color: #7b1d12;
}
.footer-info {
    font-size: 13px;
    color: #888;
    line-height: 1.8;
}
.footer-info a {
    color: #3197eb;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-right {
        gap: 25px;
    }
    .search-wrapper {
        display: none;
    }
    .search-trigger-mobile.fas, .menu-toggle.fas {
        display: block;
    }
    .search-trigger-mobile {
        display: block;
    }

    .nav-menu {
        display: block;
        position: fixed;
        top: 81px; 
        left: 0;
        width: 100%;
        height: calc(100vh - 81px);
        background: #ffffff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        overflow-y: auto;
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu > li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #f2f2f2;
    }

    .nav-menu > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        font-size: 15px;
        color: #444;
        font-weight: 500;
        background: #fff;
        width: 100%;
    }
    .nav-menu > li > a:active {
        background: #fafafa;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: #fdfdfd;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: visible;
        transform: none;
        transition: max-height 0.35s ease, opacity 0.35s ease;
    }
    
    .nav-menu > li.open .dropdown-menu {
        max-height: 500px; 
        opacity: 1;
        border-top: 1px solid #f9f9f9;
    }

    .nav-menu > li.open .dropdown-toggle i {
        transform: rotate(180deg);
        color: #7b1d12;
    }

    .dropdown-menu a {
        padding: 12px 35px; 
        font-size: 14px;
        color: #666;
        border-bottom: 1px solid #fcfcfc;
    }
    .dropdown-menu a:active {
        background: #f5f5f5;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .feature-section, .feature-section.reverse {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .btn-more {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        top: 71px;
        height: calc(100vh - 71px);
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .section-title {
        font-size: 22px;
    }
    .logo-text {
        font-size: 16px;
    }
    .logo-text span {
        font-size: 11px;
    }
    .logo img {
        height: 40px;
    }
}