﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

/* Header */
.header {
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    color: white;
    padding: 0px 0px;
    padding-top: 0px;
    padding-bottom: 0px;
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 0px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ff6b35;
    cursor: pointer;
    font-size: 16px;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    text-decoration: none;
    font-size: 13px;
}

/* Navigation */
.nav-bar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.nav-item {
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

    .nav-item:hover {
        color: #ff6b35;
    }

    .nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: #ff6b35;
    }



/* Products Section */
.products-section {
    max-width: 1200px;
    margin: 5px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.product-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }


.product-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ddd;
    overflow: hidden; /* Ẩn phần ảnh vượt ra ngoài */
}

    /*.product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;*/ /* Giữ tỷ lệ ảnh và cắt bớt nếu cần */
        /*object-position: center;*/ /* Căn giữa ảnh */
        /*border-radius: 8px;
    }*/

    /* Hoặc nếu bạn muốn ảnh hiển thị toàn bộ mà không bị cắt */
    .product-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* Hiển thị toàn bộ ảnh trong khung */
        object-position: center;
        border-radius: 8px;
    }
.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-prices {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.current-prices {
    font-size: 16px;
    font-weight: bold;
    color: #ff6b35;
}

.old-prices {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #ff6b35;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    align-self: flex-start;
    margin-top: 5px;
}

.gift-info {
    font-size: 12px;
    color: #27ae60;
    margin-top: 5px;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    margin-top: 50px;
    padding: 40px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #ff6b35;
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 8px;
    }

        .footer-section ul li a {
            color: #bdc3c7;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s;
        }

            .footer-section ul li a:hover {
                color: white;
            }

.footer-bottom {
    border-top: 1px solid #34495e;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
    font-size: 13px;
}

/* Hot Sale Banner */
.hot-sale {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        gap: 15px;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 15px;
    }



    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}
