* {
    box-sizing: border-box;
}

.landing-page {
    background: #ffffff;
    height: auto;
    position: relative;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    margin-top: -60px;
    border-radius: 10px;
}

.pagination {
    margin: 0 !important;
}

.sales-products {
    width: 100%;
    height: 350px;
    position: relative;
    top: 80px;
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gi-m-gi {
    background: #000000;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    border-radius: 10px;
}

.discount-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    width: 50%;
}

.th-ng-tin-gi-m-gi {
    color: #ffffff;
    font-size: 35px;
    font-weight: 700;
}

.th-ng-tin-gi-m-gi-span2 {
    color: #dc3545;
}

.mua-ngay {
    display: flex;
    align-items: center;
}

.buy-now {
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 4px;
    padding: 5px 10px;
    transition: background 0.5s ease, color 0.5s ease;
}

    .buy-now:hover {
        background: #ffffff;
        color: #000000;
    }

.product-image-container {
    position: relative;
    width: 300px;
    height: 300px;
}

    .product-image-container .product-image {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        display: none;
        object-fit: cover;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

        .product-image-container .product-image.active {
            display: block;
        }

.m-c-ch-n {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.slideshow {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: -15px;
}

    .slideshow .ellipse {
        background: #ffffff;
        opacity: 0.5;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        cursor: pointer;
    }

        .slideshow .ellipse.active {
            background: #dc3545;
            opacity: 1;
        }

.type-1, .type-2 {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
    border-radius: 10px;
}

.type-1 {
    margin-top: 115px;
}

.type-2 {
    margin-top: 35px;
}

.text4, .text5, .text7 {
    color: #333333;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.line-20, .line2 {
    border-top: 2px solid #cccccc;
    width: 100%;
    margin: 10px auto;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.product-item {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 10px;
}

.product {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    width: 100%;
    height: 230px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.discount-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: #ffffff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

.product .product-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    background: #ffffff;
    border-radius: 5px;
}

.view {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

.product .view .heart, .product .view .eye {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 50%;
}

    .product .view .heart i, .product .view .eye i {
        font-size: 16px;
        color: #333333;
    }

    .product .view .heart:hover, .product .view .eye:hover {
        background: #e0e0e0;
    }

.product-actions {
    display: block;
    width: 100%;
}

    .product-actions .add-to-cart {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 100%;
        padding: 8px 0;
        background: #000000;
        color: #ffffff;
        font-size: 14px;
        font-weight: 500;
        border-radius: 4px;
        cursor: pointer;
        line-height: 1;
        transition: background 0.3s;
    }

        .product-actions .add-to-cart:hover {
            background: #333333;
        }

        .product-actions .add-to-cart .cart-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
        }

            .product-actions .add-to-cart .cart-icon img {
                width: 16px;
                height: 16px;
                filter: brightness(0) invert(1);
            }

.info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.product-name {
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.price {
    color: #dc3545;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.original-price {
    text-decoration: line-through;
    color: #666666;
    font-size: 14px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-stars {
    display: flex;
}

    .rating-stars i {
        font-size: 20px;
    }

    .rating-stars .bi-star {
        color: #cccccc;
    }

    .rating-stars .bi-star-fill, .rating-stars .bi-star-half {
        color: #ffca08;
    }

.rating-value {
    font-size: 16px;
    margin-left: 5px;
    color: #333333;
}

.review-count {
    font-size: 14px;
    color: #dc3545;
    font-weight: normal;
}

.product .view .heart i.bi-heart-fill {
    color: rgb(255, 0, 0);
}

a, button, input, select, h1, h2, h3, h4, h5 {
    margin: 0;
    padding: 0;
    border: none;
    text-decoration: none;
    background: none;
    -webkit-font-smoothing: antialiased;
}

menu, ol, ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.heart i {
    color: #333333;
}

.heart.filled i {
    color: #dc3545;
}

@media (max-width: 750px) {
    .landing-page {
        margin-top: -50px;
    }

    .sales-products {
        height: 330px;
        top: 60px;
    }

    .gi-m-gi {
        padding: 0 20px;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
    }

    .discount-info {
        width: 100%;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .th-ng-tin-gi-m-gi {
        font-size: 20px;
        margin-top: 0;
    }

    .buy-now {
        font-size: 18px;
        padding: 4px 8px;
    }

    .product-image-container {
        width: 151.55px;
        height: 150px;
        margin-bottom: 20px;
    }

        .product-image-container .product-image {
            width: 151.55px;
            height: 150px;
        }

    .m-c-ch-n {
        bottom: 20px;
    }

    .slideshow {
        gap: 10px;
        justify-content: center;
        margin-bottom: 0;
    }

        .slideshow .ellipse {
            width: 8px;
            height: 8px;
        }

    .type-1, .type-2 {
        padding: 40px 0 15px;
        margin-top: 70px;
        max-width: 100%;
        gap: 20px;
    }

    .type-2 {
        margin-top: 10px;
    }

    .text4, .text5, .text7 {
        font-size: 24px;
    }

    .product-grid {
        gap: 10px;
        padding: 0;
    }

    .product-item {
        width: 45%;
        padding: 5px;
        gap: 5px;
    }

    .info {
        gap: 5px;
    }

    .product {
        height: 150px;
    }

        .product .product-image {
            width: 130px;
            height: 130px;
        }

    .discount-tag {
        top: 5px;
        left: 5px;
        padding: 3px 6px;
        font-size: 10px;
    }

    .product .view {
        right: 5px;
        top: 5px;
    }

        .product .view .heart, .product .view .eye {
            width: 30px;
            height: 30px;
        }

            .product .view .heart i, .product .view .eye i {
                font-size: 12px;
            }

    .product-actions .add-to-cart {
        padding: 6px 0;
        font-size: 12px;
    }

        .product-actions .add-to-cart .cart-icon img {
            width: 12px;
            height: 12px;
        }

    .product-name {
        font-size: 12px;
    }

    .price {
        font-size: 12px;
        text-align: center;
    }

    .original-price {
        font-size: 12px;
    }

    .rating-stars i {
        font-size: 16px;
    }

    .rating-value {
        font-size: 12px;
        margin-top: 2px;
    }

    .review-count {
        display: block;
        text-align: center;
        font-size: 12px;
    }

    .pagination {
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .product-item {
        width: 100%;
    }

    .product {
        height: 150px;
    }

        .product .product-image {
            width: 120px;
            height: 120px;
        }

    .add-to-cart {
        font-size: 11px;
    }
}
