/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #121212;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
.logo {
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    height: 100%; /* Đảm bảo chiều cao bằng với header */
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    object-fit: contain; /* Đảm bảo hình ảnh không bị méo */
}

.logo-text {
    margin-left: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1; /* Đảm bảo chữ không bị dư khoảng cách */
    display: flex;
    align-items: center; /* Thêm dòng này để căn giữa dọc */
    height: 100%; /* Chiếm toàn bộ chiều cao */
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: #333;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6b00;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon, .cart-icon {
    font-size: 18px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 50vh;
    background-image: url('../images/banner1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-top: 70px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    color: #fff;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-btn {
    display: inline-block;
    background-color: #ff6b00;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.hero-btn:hover {
    background-color: #e05d00;
}

/* Categories Section */
.categories {
    padding: 80px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.section-title p {
    color: #777;
    font-size: 16px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-10px);
}

.category-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: #fff;
}

.category-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.category-info p {
    font-size: 14px;
    opacity: 0.8;
}

/* Featured Products */
.featured-products {
    padding: 80px 50px;
    background-color: #fff;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-price {
    color: #ff6b00;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
}

.add-to-cart {
    display: block;
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #ff6b00;
}

/* About Section */
.about {
    padding: 80px 50px;
    background-color: #f8f8f8;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.about-content p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

/* Newsletter */
.newsletter {
    padding: 60px 50px;
    background-color: #ff6b00;
    color: #fff;
    text-align: center;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.newsletter p {
    margin-bottom: 30px;
    font-size: 16px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
}

.newsletter-form button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0 30px;
    border-radius: 0 30px 30px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #000;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 50px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-logo img {
    height: 200px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #ff6b00;
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #ff6b00;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    margin-bottom: 15px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

/* Banner Styles */
.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-banner {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.featured-banner:hover {
    transform: scale(1.02);
}

/* Update Categories Section */
.categories {
    padding: 80px 50px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

/* Product Buttons */
.product-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.google-play-btn, .view-btn {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
}

.google-play-btn {
    background-color: #4285F4;
    color: white;
    border: 2px solid #4285F4;
}

.view-btn {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
}

.google-play-btn:hover {
    background-color: #3367D6;
    border-color: #3367D6;
}

.view-btn:hover {
    background-color: #333;
    color: white;
}

/* Remove old add-to-cart styles */
.add-to-cart {
    display: none;
}