* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========== TOP BANNER ========== */
.top-banner {
    background: #1a1a1a;
    color: white;
    padding: 10px 0;
    font-size: 13px;
}

.banner-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.banner-item {
    white-space: nowrap;
}

/* ========== MAIN NAVIGATION ========== */
.main-nav {
    background: white;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-nav .container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-item {
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.nav-item:hover {
    color: #e74c3c;
    background: #fafafa;
}

.nav-item.active,
.nav-item .nav-link.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown .nav-link {
    display: block;
    padding: 0;
    color: inherit;
    text-decoration: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 0 0 5px 5px;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: #f8f8f8;
    color: #e74c3c;
}

/* ========== HERO BANNER SLIDER ========== */
.hero-banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.5s;
}

.slide.active {
    display: block;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .slider-wrapper {
        height: 250px;
    }
    
    .slider-btn {
        padding: 10px 15px;
        font-size: 18px;
    }
    
    .slider-btn.prev {
        left: 10px;
    }
    
    .slider-btn.next {
        right: 10px;
    }
}

/* ========== PRODUCT SECTION ========== */
.product-section {
    padding: 50px 0;
    background: white;
}

.product-section:nth-child(even) {
    background: #fafafa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 32px;
    color: #333;
    font-weight: 700;
}

.link-view-more {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.link-view-more:hover {
    text-decoration: underline;
}

/* ========== PRODUCT GRID ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 460px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.product-image {
    text-align: center;
    margin-bottom: 15px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.product-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    height: 80px;
    line-height: 1.4;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-price {
    margin: 15px 0;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-label {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 5px;
}

.price {
    display: block;
    font-size: 22px;
    color: #e74c3c;
    font-weight: bold;
}

.old-price {
    display: block;
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-top: 5px;
}

.btn-buy {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    margin-top: auto;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

/* ========== FEATURES SECTION ========== */
.features-section {
    padding: 40px 0;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 20px 10px;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* ========== FOOTER ========== */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-col p {
    margin: 8px 0;
    font-size: 14px;
}

.footer-col a {
    color: #3498db;
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 13px;
    color: #95a5a6;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .banner-items {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .hero-banner h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .product-title {
        font-size: 13px;
        min-height: 50px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}


/* ========== CONTACT SECTION ========== */
.contact-section {
    padding: 40px 0;
    background: #fafafa;
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: #333;
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.contact-card {
    background: white;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.contact-card a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    color: white;
    transition: all 0.3s;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.zalo {
    background: #0068ff;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}


/* ========== FLOATING CONTACT BUTTONS ========== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.float-btn .icon {
    font-size: 24px;
    line-height: 1;
}

.float-btn .text {
    font-size: 9px;
    font-weight: 600;
    margin-top: 2px;
    line-height: 1;
}

.btn-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-top {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.facebook-btn {
    background: white;
    padding: 8px;
}

.zalo-btn {
    background: white;
    padding: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    
    .float-btn {
        width: 55px;
        height: 55px;
    }
    
    .float-btn .icon {
        font-size: 22px;
    }
    
    .float-btn .text {
        font-size: 8px;
    }
}
