main .section-product-detail {
    margin-top: 50px;
}

main .product-wrapper img {
    width: 420px;
    height: 420px;
    border-radius: 5px;
}

main .product-wrapper {
    display: flex;
    gap: 30px;
}

main .product-name {
    margin: 0;
}

main .product-price {
    display: flex;
    gap: 5px
}

main .new-price {
    color: red;
    margin-bottom: 0;
}

main .old-price {
    font-weight: normal;
    text-decoration: line-through;
    margin-bottom: 0;
}

main .quantity-selector {
    display: flex;
    align-items: center;
    gap: 5px;
}

main .quantity-input {
    width: 75px;
    text-align: center;
    height: 33px;
    padding: 0;
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    border-left: none;
    border-right: none;
    font-size: 15px;
}

main .quantity-controls {
    display: flex;
}

main .quantity-controls button {
    width: 35px;
    height: 35px;
    border: none;
    background-color: #cccccc;
    cursor: pointer;
    font-size: 20px;
}

main .add-to-cart-button {
    margin-top: 30px;
    width: 200px;
    height: 50px;
    border: none;
    background-color: hsl(85, 44%, 40%);
    opacity: 75%;
    cursor: pointer;
    font-weight: bold;
    color: white;
    font-size: 18px;
    border-radius: 5px;
}

main .add-to-cart-button:hover {
    opacity: 1;
}

main .add-to-cart-button:disabled,
main .add-to-cart-button.disabled {
    background-color: #ccc;
    color: #666;
    opacity: 0.6;
    cursor: not-allowed;
}

main p:last-child {
    margin-bottom: 0;
}

main .product-description .title {
    border-bottom: 2px solid #cccccc;
    padding-bottom: 5px;
}

main .description-image-panel {
    display: flex;
    justify-content: center;
}

main .description-image {
    width: 600px;
    height: 350px;
}

main .section-product-review {
    margin-top: 50px;
    margin-bottom: 50px;
}

main .review-wrapper {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

main .review-title {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #cccccc;
    color: #333;
}

/* Review Summary */
main .review-summary {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

main .rating-overview {
    display: flex;
    align-items: center;
    gap: 15px;
}

main .average-rating {
    font-size: 48px;
    font-weight: bold;
    color: hsl(85, 44%, 40%);
}

main .stars-overview i.fa-star,
main .stars-overview i.fa-star-half-alt,
main .stars-overview i.fa-regular.fa-star,
main .stars-overview i.fa-solid.fa-star,
main .stars-overview i.fa-solid.fa-star-half-stroke {
    font-size: 24px;
    color: #ffc107; /* vàng */
    margin-right: 2px;
}

main .stars-overview i.fa-star:last-child {
    margin-right: 0;
}

main .total-reviews {
    color: #666;
    font-size: 14px;
}

/* Review Form */
main .review-form-wrapper {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

main .review-form-wrapper h3 {
    margin: 0 0 20px 0;
    color: #333;
}

main .review-form .rating-input {
    margin-bottom: 15px;
}

main .review-form .rating-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

main .star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

main .star-rating input {
    display: none;
}

main .star-rating .star-label {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

main .star-rating .star-label:hover,
main .star-rating .star-label:hover ~ .star-label,
main .star-rating input:checked ~ .star-label {
    color: #ffc107;
}

main .review-form .content-input {
    margin-bottom: 15px;
}

main .review-form .content-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

main .review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

main .review-form textarea:focus {
    outline: none;
    border-color: hsl(85, 44%, 40%);
}

main .submit-review-btn {
    padding: 12px 30px;
    background-color: hsl(85, 44%, 40%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

main .submit-review-btn:hover {
    opacity: 0.85;
}

/* Review List */
main .review-list {
    margin-bottom: 20px;
}

main .review-list h3 {
    margin: 0 0 20px 0;
    color: #333;
}

main .review-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

main .review-item:last-of-type {
    border-bottom: none;
}

main .review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

main .reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

main .reviewer-avatar {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    object-fit: cover;
}

main .reviewer-details {
    display: flex;
    flex-direction: column;
}

main .reviewer-name {
    font-weight: bold;
    color: #333;
}

main .review-date {
    font-size: 12px;
    color: #999;
}

main .review-rating i.fa-star,
main .review-rating i.fa-star-half-alt,
main .review-rating i.fa-regular.fa-star,
main .review-rating i.fa-solid.fa-star,
main .review-rating i.fa-solid.fa-star-half-stroke {
    font-size: 16px;
    color: #ffc107;
    margin-right: 1px;
}

main .review-rating i.fa-star:last-child {
    margin-right: 0;
}

main .review-content p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Review Pagination */
main nav {
    display: flex;
    justify-content: center;
    gap: 10px;
}

main nav a {
    padding: 8px 14px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    font-size: 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: white;
}

main nav a:hover {
    background-color: hsl(85, 44%, 40%);
    color: #fff;
    cursor: pointer;
}

main nav a.active {
    background-color: hsl(85, 44%, 40%);
    color: white;
    cursor: default;
}

main nav a.disabled {
    pointer-events: none;
    opacity: 0.5;
}