.description-section,
.review-section,
.related-section {
    animation: reveal 1s ease-out both;
    animation-timeline: view();
    animation-range: entry 20% cover 30%;
}

@keyframes reveal {
    0% {
        opacity: 0;
        filter: blur(5px);
        transform: translateY(80px);
    }

    30% {
        filter: blur(0px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== PRODUCT PAGE SPECIFIC STYLES ========== */
#banner {
    background-image: url("../image/singleproductjay.jpg");
    background-size: cover;
    background-position: center;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
}

/* Product Section */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 80px;
}

.album-card {
    position: relative;
    width: 360px;
    aspect-ratio: 1 / 1;
}

.bg-block {
    position: absolute;
    top: 5px;
    left: -10px;
    width: 60%;
    height: 40%;
    background: var(--primary-red);
    border-radius: 20px;
    z-index: 1;
}

.album-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    z-index: 3;
}

.product-section {

    background-color: #fff;
}

.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-main {
    width: 100%;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    margin-left: 40px;
}

.product-main img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-main img:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.thumbs {
    display: flex;
    gap: 20px;
    padding: 60px;
}


.thumbs img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 20px;
}

.thumbs img:hover {
    transform: scale(1.15) translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    z-index: 2;
}


.product-info {
    display: flex;
    flex-direction: column;
}

.product-info h2 {
    line-height: 1.4;
    color: var(--dark);
    font-weight: 600;
}

.price {
    font-weight: bold;
    color: var(--dark);
}


.product-info .btn {
    width: fit-content;
    margin-top: 10px;
}

/* 虚线 */
.divider {
    width: 100%;
    height: 1px;
    border-top: 1px dashed black;
    margin: 20px 0;

}

/* Categories */
.product-info p:last-of-type {
    color: var(--dark);
}

.section-title {
    color: var(--primary-red);
    max-width: 1200px;
    margin: 40px auto 20px auto;
}

/* Description Section */
.description-section {
    background-color: var(--primary-red);
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0px auto;
    border-radius: 20px;

}


.description-section p {
    color: var(--light);
    max-width: 1200px;
    margin: 0 auto;
}

/* Review Section */
.review-section h2 {
    color: var(--primary-red);
    max-width: 1200px;
    margin: 40px auto 20px auto;
    padding: 30px;
}

.review-wrapper {
    max-width: 1100px;
    margin: 0 auto 80px;
    display: flex;
    position: relative;

}

.review-card {
    position: absolute;
    top: -40px;
    width: 320px;
    background: var(--primary-red);
    color: var(--light);
    padding: 24px;
    border-radius: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.review-title {
    font-size: 20px;
    font-weight: 600;
    padding-left: 20px;
}

a.review-link {
    padding-left: 20px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 20px;
}

.rating-score {
    line-height: 1;
}

.stars {
    color: gold;
    line-height: 1;
}

.review-link p {
    color: #fff;
    text-decoration: underline;

}

p.rating-total {
    padding-left: 20px;
}

p.deco {
    font-size: 14px;
    padding-left: 20px;
}



.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding: 20px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar {
    flex: 1;
    background: #ffffff;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    background: #000000;
}

.label .desc p {
    width: 40px;
    flex-shrink: 0;
    text-align: right;
    color: gold;
}



.review-list {
    margin-left: 280px;
    flex: 1;
    background: var(--dark);
    color: var(--light);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-list h3 {
    margin-bottom: 10px;
    padding-left: 80px;
}


.review-list p {
    text-align: left;
    padding-left: 80px;
    display: flex;
    opacity: 0.9;
}


.review-list button,
.review-list .btn {
    align-self: flex-end;
}


.related-section {
    padding: 60px;
    background-color: #fff;
}

.related-section h2 {
    margin-bottom: 40px;
    color: var(--primary-red);
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}


.related-item img {
    aspect-ratio: 1/1;
    gap: 24px;
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 20px;
}



/* Responsive Design */
@media (max-width: 1180px) {

    /* Product Section */
    .product-wrapper {
        gap: 40px;
        padding: 0 20px;
    }

    .album-card {
        width: 320px;
    }

    .thumbs {
        padding: 40px 20px;
        gap: 15px;
    }

    .thumbs img {
        width: 80px;
        height: 80px;
    }

    /* Review Section */
    .review-card {
        width: 280px;
        padding: 0px;

    }



    .review-list {
        margin-left: 250px;
        padding: 30px;
    }

    /* Related Section */
    .related-grid {
        gap: 25px;
    }

    .related-item img {
        height: 350px;
        display: block;
        transition: transform 0.3s ease;
    }

    .related-item:hover img {
        transform: scale(1.1);
    }


}

/* Tablet */
@media (max-width: 990px) {
    #banner {
        height: 300px;
    }

    .review-list h3 {
        margin-bottom: 10px;
        padding-left: 0px;
    }

    .review-list p {
        padding-left: 0px;
    }

    /* Product Section */

    .product-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        padding-top: 40px;
    }

    .album-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .product-main {
        margin-left: 20px;
    }

    .thumbs {
        justify-content: center;
        padding: 30px 20px;
    }

    /* Review Section */
    .review-wrapper {
        flex-direction: column;
        margin: 0 20px 60px;
    }

    .review-card {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        margin-bottom: 20px;
    }

    .review-list {
        margin-left: 0;
        padding: 30px;
    }

    /* Related Section */
    .related-section {
        padding: 40px 20px;
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .related-item img {
        height: 300px;
    }

    z

    /* Description Section */
    .description-section {
        padding: 40px 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #banner {
        height: 250px;
    }

    /* Product Section */

    .product-wrapper {
        gap: 30px;
    }

    .album-card {
        width: 100%;
        max-width: 320px;
    }

    .bg-block {
        width: 50%;
        height: 35%;
    }

    .product-main {
        margin-left: 10px;
    }

    .thumbs {
        padding: 20px 10px;
        gap: 10px;
    }

    .thumbs img {
        width: 70px;
        height: 70px;
    }

    .product-info .btn {
        width: 100%;
    }

    /* Description Section */
    .description-section {
        padding: 30px 15px;
    }

    /* Review Section */
    .review-section h2 {
        padding: 20px 15px;
    }

    .review-wrapper {
        margin: 0 15px 40px;
    }

    .review-card {
        padding: 0px;
    }

    .rating-title p {
        font-size: 18px;
    }

    .review-list {
        padding: 20px;
    }

    /* Related Section */
    .related-section {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
        justify-items: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-item {
        gap: 20px;
    }

    .related-item img {
        height: auto;
        max-height: 350px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {



    .album-card {
        max-width: 280px;
    }

    .thumbs img {
        width: 60px;
        height: 60px;
    }

    .review-list {
        padding: 15px;
    }

    .description-section {
        padding: 20px 10px;
    }

    .related-item img {
        max-height: 300px;
    }
}