body {
    background: #f2f4f8;
    color: #333;
    font-family: 'Inter', sans-serif;
}

/* Product Container */
.product-page-container {
    display: flex;
    gap: 48px;
    max-width: 1200px;
    margin: 160px auto 100px;
    /* Top margin fixed */
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    padding: 40px 32px;
}

/* Image Section */
.product-image-section {
    flex: 1;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-product-image-container {
    width: 100%;
    border-radius: 12px;
    background: #f0f0f0;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.main-product-image {
    width: 100%;
    max-width: 420px;
    height: 340px;
    object-fit: cover;
    /* fills container, keeps square shape */
    border-radius: 10px;
}

.product-image-slider {
    display: flex;
    gap: 12px;
}

.slider-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #ccc;
    cursor: pointer;
    transition: border 0.2s;
    background: #f4f6fb;
}

.slider-thumb.selected {
    border: 2px solid #7c5fe6;
}

/* Details Section */
.product-details-section {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 700px;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-brand {
    font-weight: 600;
    color: #648DE5;
    margin-bottom: 6px;
}

.product-rating {
    color: #F4AE71;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Quantity */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.quantity-btn {
    background: #648DE5;
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s;
}

.quantity-btn:hover {
    background: #4b73c0;
}

.quantity-value {
    font-size: 1.3rem;
    min-width: 36px;
    text-align: center;
}

/* Buttons */
.product-buttons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
    /* Wrap on smaller screens */
}

.product-buttons form {
    flex: 1;
    /* All buttons take equal width */
    min-width: 150px;
    /* Don't shrink too small */
}

.buy-btn,
.add-cart-btn,
.wishlist-btn {
    width: 100%;
    /* Fill the form */
    height: 50px;
    font-size: 1.2rem;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

/* Buy Now */
.buy-btn {
    background: #648DE5;
    color: #fff;
}

.buy-btn:hover {
    background: #4b73c0;
}

/* Add to Cart */
.add-cart-btn {
    background: #9EB7E5;
    color: #fff;
}

.add-cart-btn:hover {
    background: #7da1d1;
}

.add-cart-btn i {
    margin-right: 8px;
    width: 22px;
    height: 22px;
    stroke: #fff;
}

/* Wishlist */
.wishlist-btn {
    background: #FF914D;
    color: #fff;
}

.wishlist-btn:hover {
    background: #E67E3D;
    transform: scale(1.03);
}

.wishlist-btn i {
    margin-right: 8px;
    width: 22px;
    height: 22px;
    stroke: #fff;
}

/* Stock Info */
.product-stock {
    margin-bottom: 16px;
    font-weight: 600;
    color: #333;
}

.stock-status.in-stock {
    color: #28a745;
    /* Green */
    font-weight: bold;
}

.stock-status.out-of-stock {
    color: #dc3545;
    /* Red */
    font-weight: bold;
}

/* Product Description */
.product-description {
    margin-bottom: 20px;
}

.product-description h4 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: #304C89;
}

.product-description p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/* Reviews Section */
.reviews-section {
    max-width: 800px;
    margin: 5px auto 100px;
    /* almost no gap */
    padding: 0 32px;
}


.reviews-section h3 {
    font-size: 1.8rem;
    color: #304C89;
    margin-bottom: 16px;
    font-weight: 700;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #304C89;
    margin-bottom: 8px;
}

.review-stars {
    color: #FFD700;
    font-size: 1rem;
}

.review-body {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
}

.review-date {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #888;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rating-average {
    font-size: 1.4rem;
    font-weight: 700;
    color: #304C89;
}

.rating-stars {
    color: #FFD700;
    font-size: 1.2rem;
}