* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

a{
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto; 
    padding: 0 20px; 
}

.top-bar {
    background: #f5b800;
    color: #000;
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
}

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo h1 {
    font-size: 32px;
    font-weight: 800;
    color: #f5b800;
}

.main-nav a {
    margin: 0 14px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.main-nav a.active, .main-nav a:hover {
    color: #f5b800;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 15px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.cart-icon {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

.hero {
    position: relative;
    height: 82vh;
    min-height: 650px;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55)), url("img/banner.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.badge {
    display: inline-block;
    background: #f5b800;
    color: #000;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.hero-hotline {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.hero-hotline span { color: #f5b800; font-weight: 700; }

.btn-cta {
    display: inline-block;
    padding: 16px 40px;
    margin: 8px;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.btn-cta.primary {
    background: #f5b800;
    color: #000;
}

.btn-cta.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta:hover { transform: translateY(-4px); }

.shop-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin: 40px 0;
}

.sidebar h3 { margin-bottom: 20px; font-size: 1.3rem; }

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    margin-bottom: 12px;
    color: #f5b800;
}

.filter-group ul li {
    margin: 8px 0;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.product-image {
    position: relative;
    height: 260px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e63939;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

.product-code {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.price .old {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.price .current {
    color: #e63939;
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-buy {
    display: block;
    text-align: center;
    background: #f5b800;
    color: #000;
    padding: 12px;
    margin-top: 12px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.why-choose, .types-section, .price-table-section {
    margin: 60px 0;
    }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.price-table th, .price-table td {
    padding: 14px;
    border: 1px solid #eee;
    text-align: left;
}

.footer {
    background: #1f1f1f;
    color: #ccc;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #777;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.type-card {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    font-weight: 500;
    color: #333;
}

.feature-item {
    background: white;
    padding: 25px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.feature-item i {
    font-size: 2.5rem;
    color: #f5b800;
    margin-bottom: 15px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px; 
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 240px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 999;
    top: 100%;
    left: 0;
    padding: 12px 0;
    margin-top: 5px;       
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #f5b800;
    color: #000;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

.account-dropdown .dropdown-content {
    right: 0;
    left: auto;
    min-width: 190px;
}

.account-btn {
    font-size: 20px;
    padding: 10px 12px;
    color: #333;
    display: flex;
    align-items: center;
}

.account-content a {
    display: flex;
    align-items: center;
    gap: 10px;
}