/* Home Page Styles */

.banner-section {
    margin-bottom: 40px;
}

.banner {
    background: linear-gradient(135deg, #005BFF 0%, #0047CC 100%);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.banner-content {
    flex: 1;
    z-index: 1;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.banner-text {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.banner-image {
    flex: 1;
    max-width: 500px;
    min-width: 0;
}

.banner-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-width: 100%;
    display: block;
}

/* Categories Section */
.categories-section {
    margin-bottom: 60px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 24px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    text-decoration: none;
    color: #000;
    transition: all 0.2s;
}

.category-card:hover {
    border-color: #005BFF;
    box-shadow: 0 4px 12px rgba(0, 91, 255, 0.15);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.category-name {
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

/* Products Section */
.products-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-link {
    color: #005BFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.section-link:hover {
    text-decoration: underline;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    margin-bottom: 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 1;
}

.product-favorite:hover {
    background: #fff;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.stars {
    color: #FFB800;
}

.reviews {
    color: #999;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

.price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.price-discount {
    font-size: 13px;
    color: #FF6B35;
    font-weight: 500;
    background-color: #FFF4F0;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Promotions Section */
.promotions-section {
    margin-bottom: 60px;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.promotion-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.promotion-card:hover {
    transform: translateY(-4px);
}

.promotion-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.promotion-content {
    padding: 20px;
    background-color: #fff;
}

.promotion-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.promotion-content p {
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .banner {
        padding: 36px 28px;
        gap: 32px;
    }

    .banner-title {
        font-size: 32px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 968px) {
    .banner-section {
        margin-bottom: 32px;
    }

    .banner {
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        text-align: center;
    }

    .banner-image {
        max-width: 100%;
        width: 100%;
    }

    .banner-title {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .banner-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .btn-primary {
        padding: 11px 22px;
        font-size: 15px;
    }

    .categories-section {
        margin-bottom: 48px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 16px;
    }

    .category-card {
        padding: 20px 12px;
    }

    .category-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .category-name {
        font-size: 13px;
    }

    .products-section {
        margin-bottom: 48px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }

    .promotions-section {
        margin-bottom: 48px;
    }

    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .promotion-content {
        padding: 18px;
    }

    .promotion-content h3 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .banner {
        padding: 28px 20px;
    }

    .banner-title {
        font-size: 26px;
    }

    .banner-text {
        font-size: 15px;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .banner-section {
        margin-bottom: 24px;
    }

    .banner {
        padding: 24px 16px;
        gap: 20px;
    }

    .banner-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .banner-text {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }

    .categories-section {
        margin-bottom: 32px;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 16px 8px;
    }

    .category-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .category-name {
        font-size: 12px;
    }

    .products-section {
        margin-bottom: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        padding: 12px;
    }

    .product-title {
        font-size: 13px;
    }

    .price-current {
        font-size: 18px;
    }

    .price-old {
        font-size: 13px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .section-link {
        font-size: 13px;
    }

    .promotions-section {
        margin-bottom: 32px;
    }

    .promotion-content {
        padding: 16px;
    }

    .promotion-content h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .promotion-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 20px 12px;
    }

    .banner-title {
        font-size: 20px;
    }

    .banner-text {
        font-size: 13px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 14px 6px;
    }

    .category-icon {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .category-name {
        font-size: 11px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-card {
        padding: 12px;
    }

    .product-image {
        margin-bottom: 10px;
    }

    .product-title {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .product-rating {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .price-current {
        font-size: 16px;
    }

    .btn-add-cart {
        padding: 8px;
        font-size: 12px;
        margin-top: 10px;
    }

    .promotion-content {
        padding: 14px;
    }

    .promotion-content h3 {
        font-size: 15px;
    }
}

