﻿/* ====================== Basic Page ====================== */

.section-title.page-title {
    display: block; /* chiếm full width */
    width: 100%; /* đảm bảo rộng toàn dòng */
    text-align: center; /* căn giữa chữ */
    font-weight: 700;
    font-size: 2rem;
    /* Gradient chữ xanh navy → xanh blue → xanh dương nhạt */
    background: linear-gradient(90deg, #002d5b, #1976d2, #64b5f6, #002d5b);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.8s ease-in-out;
}

.section-title.page-title:hover {
    background-position: -200%;
}
.page-description {
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin-bottom: 40px;
}
/* ====================== Product Grid ====================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 10px;
    max-width: 1600px; /* 4 cột x 300px = 1200px */
    margin: 0 auto;
}

.product-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
	
	display: flex; /* fix chiều cao đồng đều */
    flex-direction: column;
    justify-content: space-between;
	align-items: center;
}

    .product-item img {
        width: 90%;
        height: auto; /* tự động theo tỉ lệ ảnh */
        object-fit: contain; /* không cắt ảnh */
        border-radius: 8px;
        margin-bottom: 15px;
        transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
    }

    .product-item:hover {
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    }

        .product-item:hover img {
            transform: scale(1.12) rotateZ(0.5deg); /* zoom + hơi nghiêng nhẹ */
            box-shadow: 0 15px 30px rgba(0,0,0,0.25); /* shadow nổi bật hơn */
        }

    .product-item h3 {
        font-size: clamp(1rem, 2vw, 1.5rem); /*2.5*/
        color: #002d5b;
        margin-bottom: 10px;
    }

    .product-item p {
        font-size: 1rem;
        color: #555;
        margin-bottom: 15px;
    }
    .product-item h3 {
        font-weight: bold;
    }

    .navy h3 {
        color: #002d5b;
    }

    .orange h3 {
        color: #ff6600;
    }

    .red h3 {
        color: #e60000;
    }

    .green h3 {
        color: #2a6e3f;
    }

    .purple h3 {
        color: #472257;
    }

    .brown h3 {
        color: #6d4848;
    }

    .caramel h3 {
        color: #C68E17;
    }

.btn-detail {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(90deg, #ff6600, #ff9933);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    max-width: 180px;
}

    /* Hover nâng + đổi màu */
    .btn-detail:hover {
        background: linear-gradient(90deg, #ff9933, #ff6600);
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 12px 24px rgba(0,0,0,0.3);
        text-shadow: 0 2px 4px rgba(0,0,0,0.25);
    }

    /* Hiệu ứng ánh sáng quét qua */
    .btn-detail::before {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.6), transparent );
        transform: skewX(-25deg);
        transition: all 0.5s ease;
    }

    /* Khi hover mới chạy ánh sáng */
    .btn-detail:hover::before {
        left: 130%;
        transition: left 0.8s ease;
    }


/* Mobile nhỏ hơn 480px */
@media(max-width: 480px) {
    .btn-detail {
        padding: 8px 14px; /* thu nhỏ padding */
        font-size: 0.85rem; /* thu nhỏ chữ */
        border-radius: 30px; /* bo gọn hơn */
		max-width: 140px;
    }
}
/* ====================== Animation ====================== */
.animate-visible {
    opacity: 1 !important;
    transform: translateY(0px) !important;
}

/* ====================== Responsive ====================== */
@media(max-width: 1024px) {
    .product-item img {
        height: 180px;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 768px) {
    .product-item img {
        height: 160px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 480px) {
    .product-item img {
        height: 140px;
    }
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/*Sugar details*/

.product-detail {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #002d5b;
    margin-bottom: 20px;
}

.product-desc {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}
.product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

    .product-image img:hover {
        transform: scale(1.05);
    }

.spec-table {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

    .spec-table th {
        background: #002d5b;
        color: #fff;
        text-align: center;
    }

    .spec-table td {
        background: #f9f9f9;
        padding: 12px;
    }

.download-link {
    margin-top: 25px;
    
}

    .download-link a {
        display: inline-block;
        text-decoration: none;
        padding: 12px 20px;
        background: linear-gradient(90deg, #002d5b, #0056b3);
        color: #fff;
        border-radius: 8px;
        transition: 0.3s;
        font-size: 1rem;
        word-wrap: break-word;
    }

/* Khi màn hình nhỏ (mobile) */
@media (max-width: 576px) {
    .download-link a {
        display: block;
        width: 100%;
        padding: 14px;
        font-size: 0.95rem;
        box-sizing: border-box;
    }
}
.buy-link {
    margin-top: 25px;
    display: inline-block;
    position: relative;
    overflow: hidden; /* để che phần sáng thừa */
    border-radius: 8px;
}

    .buy-link a {
        display: inline-block;
        text-decoration: none;
        padding: 12px 24px;
        background: linear-gradient(90deg, #2a6e3f, #28b300);
        color: white;
        font-weight: bold;
        border-radius: 8px;
        position: relative;
        overflow: hidden;
        transition: background 0.3s;
    }

        .buy-link a:hover {
            background: linear-gradient(90deg, #ff6600, #ff3300);
        }

        /* vệt sáng */
        .buy-link a::before {
            content: "";
            position: absolute;
            top: 0;
            left: -75%;
            width: 50%;
            height: 100%;
            background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.6), transparent );
            transform: skewX(-20deg);
            animation: shine 4s infinite;
        }

@keyframes shine {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

.section-title.product-title {
    display: block; /* chiếm full width */
    width: 100%; /* đảm bảo rộng toàn dòng */
    text-align: center; /* căn giữa chữ */
    font-weight: 700;
    font-size: 2rem;
    /* Gradient chữ xanh navy → xanh blue → xanh dương nhạt */
    background: linear-gradient(90deg, #002d5b, #1976d2, #64b5f6, #002d5b);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.8s ease-in-out;
}

    .section-title.product-title:hover {
        background-position: -200%;
    }
/*san pham lien quan*/
