* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Top Bar */
.top-bar {
    background-color: #0b132b;
    color: #ccc;
    font-size: 12px;
    padding: 8px 0;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
}

/* Header */
.main-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0d6efd;
}
.logo i { font-size: 30px; }
.logo h2 { font-size: 22px; color: #0b132b; margin: 0; }
.logo span { font-size: 10px; color: #6c757d; }

.search-bar {
    display: flex;
    border: 2px solid #0d6efd;
    border-radius: 4px;
    overflow: hidden;
    width: 45%;
}
.search-bar input {
    border: none;
    padding: 8px 12px;
    flex: 1;
    outline: none;
}
.search-bar select {
    border: none;
    border-left: 1px solid #ccc;
    padding: 0 10px;
    background: #f8f9fa;
    outline: none;
}
.search-bar button {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 20px;
}
.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    position: relative;
}
.action-item i { font-size: 18px; margin-bottom: 3px; }
.cart .badge {
    position: absolute;
    top: -5px;
    right: 5px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
}

/* Nav */
.navbar {
    background: #f1f3f5;
    border-bottom: 1px solid #e5e5e5;
}
.nav-content {
    display: flex;
    align-items: center;
}
.category-btn {
    background: #0b132b;
    color: white;
    border: none;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
}
.nav-links {
    display: flex;
    list-style: none;
    margin-left: 20px;
}
.nav-links li a {
    padding: 12px 15px;
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}
.nav-links li a.active, .nav-links li a:hover {
    color: #0d6efd;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #eef2f5 0%, #dbe6f6 100%);
    padding: 40px 0;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hero-text { max-width: 500px; }
.tag { background: #e0e7ff; color: #0d6efd; padding: 4px 8px; font-size: 11px; font-weight: bold; border-radius: 3px; }
.hero-text h1 { font-size: 36px; color: #0b132b; margin: 15px 0; line-height: 1.2; }
.hero-text p { color: #6c757d; margin-bottom: 25px; }
.btn { padding: 10px 20px; border-radius: 4px; font-weight: bold; display: inline-block; }
.btn-primary { background: #0d6efd; color: white; }
.btn-outline { border: 1px solid #0d6efd; color: #0d6efd; margin-left: 10px; }
.hero-image { position: relative; }
.hero-image img { max-width: 450px; border-radius: 8px; }
.discount-badge {
    position: absolute;
    top: 10px; right: 10px;
    border: 2px dashed #0d6efd;
    border-radius: 50%;
    width: 80px; height: 80px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 10px; text-align: center;
    background: rgba(255,255,255,0.9);
}
.discount-badge span { font-size: 18px; font-weight: bold; color: #0d6efd; }

/* Features */
.features-bar { background: #fff; padding: 15px 0; border-bottom: 1px solid #eee; }
.features-content { display: flex; justify-content: space-around; }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.feature-item i { font-size: 20px; color: #0d6efd; }

/* Layout Grid */
.section { padding: 40px 0; }
.section-title { font-size: 18px; margin-bottom: 20px; text-align: center; font-weight: bold; color: #0b132b; }
.grid { display: grid; gap: 15px; }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.category-card img { width: 100%; height: 100px; object-fit: contain; margin-bottom: 10px; }
.category-card h3 { font-size: 14px; margin-bottom: 5px; }
.category-card p { font-size: 11px; color: #777; }

/* Deal Banner */
.deal-banner {
    background: #0b132b;
    color: white;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tag-small { font-size: 10px; color: #0d6efd; letter-spacing: 1px; }
.deal-text h2 { font-size: 28px; margin: 10px 0; }
.deal-text .highlight { color: #0d6efd; }
.deal-text p { font-size: 12px; color: #aaa; margin-bottom: 20px; }
.deal-image img { width: 250px; }
.brand-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; font-weight: bold; font-size: 16px; margin-bottom: 20px; color: #ccc;}
.discount-large { font-size: 14px; text-align: center; }
.discount-large span { font-size: 32px; font-weight: bold; color: #0d6efd; }

/* Products */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.view-all { color: #0d6efd; font-weight: bold; font-size: 12px; }
.product-card { text-align: left; }
.product-card img { width: 100%; height: 130px; object-fit: contain; margin-bottom: 10px; }
.product-card h4 { font-size: 13px; margin-bottom: 5px; }
.product-card .specs { font-size: 10px; color: #888; margin-bottom: 10px; }
.product-card .price { font-size: 14px; font-weight: bold; color: #0b132b; }
.product-card .old-price { font-size: 11px; color: #aaa; text-decoration: line-through; font-weight: normal; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.rating { color: #ffc107; font-size: 10px; }
.cart-btn { background: #f8f9fa; border: 1px solid #ccc; border-radius: 4px; padding: 5px 8px; cursor: pointer; }

/* Why us */
.bg-light { background: #f1f3f5; padding: 40px 0; }
.why-item { text-align: center; }
.why-item i { font-size: 24px; color: #0d6efd; margin-bottom: 10px; }
.why-item h4 { font-size: 13px; margin-bottom: 5px; }
.why-item p { font-size: 11px; color: #666; }

/* Newsletter */
.newsletter { background: #0d6efd; color: white; padding: 25px 0; }
.newsletter-content { display: flex; justify-content: space-between; align-items: center; }
.newsletter-text { display: flex; align-items: center; gap: 15px; }
.newsletter-text i { font-size: 30px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { padding: 10px; border-radius: 4px; border: none; width: 250px; outline: none; }
.newsletter-form button { background: #0b132b; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: bold; }

/* Footer */
footer { background: #0b132b; color: #a0aec0; font-size: 12px; padding-top: 40px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 20px; padding-bottom: 30px; }
.footer-col h4 { color: white; font-size: 13px; margin-bottom: 15px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a:hover { color: white; }
.logo.light h2 { color: white; }
.socials i { font-size: 16px; margin-right: 10px; margin-top: 15px; cursor: pointer; }
.payments span { background: #fff; color: #333; padding: 2px 6px; border-radius: 2px; font-weight: bold; font-size: 10px; margin-right: 5px; }
.copyright { border-top: 1px solid #2d3748; padding: 15px 0; display: flex; justify-content: space-between; font-size: 11px; }
/* Dropdown Menu styling */
.nav-links li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 4px 4px;
    list-style: none;
    padding: 8px 0;
    z-index: 1000;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px 18px;
    color: #333;
    font-weight: 500;
    font-size: 13px;
    text-transform: none;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #f1f3f5;
    color: #0d6efd;
}

.nav-links li.dropdown:hover .dropdown-menu {
    display: block;
}
/* Styling cho việc chuyển đổi trang (Single Page Application) */
.page-view {
    display: none;
}

.page-view.active {
    display: block;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #0b132b;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.page-desc {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 14px;
}

/* Dropdown Menu styling */
.nav-links li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 4px 4px;
    list-style: none;
    padding: 8px 0;
    z-index: 1000;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px 18px;
    color: #333;
    font-weight: 500;
    font-size: 13px;
    text-transform: none;
    white-space: nowrap;
    display: block;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #f1f3f5;
    color: #0d6efd;
}

.nav-links li.dropdown:hover .dropdown-menu {
    display: block;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.brand-box {
    padding: 30px 15px;
    cursor: pointer;
    border: 1px solid #e5e5e5;
    background: #fff;
    text-align: center;
    transition: 0.3s;
}

.brand-box:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}