﻿/* =========================
   Product Page Layout
========================= */

.product-container {
    display: flex;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.product-image {
    width: 450px; /* fixed column */
    max-width: 100%;
}

.product-img {
    width: 100%;
    height: 450px;
    object-fit: contain; /* no stretching, no cropping */
    object-position: center;
    display: block;
    background: #fff;
    border-radius: 14px;
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 32px;
    margin-bottom: 5px;
}

.product-category {
    color: #777;
    margin-bottom: 20px;
}

/* Price row: "Price: $26.50" */
.price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 25px;
}

.price-label {
    font-size: 16px;
    color: #bdbdbd;
}

.price-value {
    font-size: 22px;
    font-weight: bold;
}

/* =========================
   Options (Version / Size etc.)
========================= */

.option-group {
    margin-bottom: 20px;
}

.option-label {
    display: block;
    margin-bottom: 12px; /* pushes buttons lower so label isn't blocked */
}

.version-options {
    margin-top: 6px;
}

/* Version buttons */
.size-options .size-btn {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 6px 14px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

.size-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Color dot (if used) */
.color-options .black {
    width: 20px;
    height: 20px;
    background: #000;
    display: inline-block;
    border-radius: 50%;
}

.qty-box {
    width: 60px;
    padding: 5px;
}

.add-cart-btn {
    width: 100%;
    padding: 14px;
    background: #4a6fa5;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

    .add-cart-btn:hover {
        background: #3b5f8a;
    }

/* =========================
   Description
========================= */

.description {
    margin-top: 30px;
}

/* =========================
   Reviews
   (Improved for dark background)
========================= */

.reviews {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.18);
}

/* Rating summary line under "Customer Reviews" */
.rating,
.rating * {
    color: #eaeaea;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Override Bootstrap text-muted inside rating line */
.rating .text-muted {
    color: #eaeaea !important;
}


/* Each review item */
.review-item {
    border-top: 1px solid rgba(255,255,255,0.18);
    padding: 12px 0;
}

.review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Date on the right */
.review-date {
    color: #bdbdbd;
    font-size: 12px;
    white-space: nowrap;
}

/* Rating inside each review (e.g. 5/5) */
.review-rating {
    margin: 6px 0;
    font-weight: 700;
    color: #f5a623; /* gold/orange */
}

/* Comment text */
.review-comment {
    color: #eaeaea;
    line-height: 1.6;
    margin-top: 6px;
    background: rgba(255,255,255,0.04);
    padding: 10px 12px;
    border-radius: 10px;
}

/* Review form area */
.review-form {
    border-top: 1px solid rgba(255,255,255,0.18);
    padding-top: 14px;
    margin-top: 14px;
}

/* Login warning / alert box */
.alert {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #f0d58c;
    background: #fff7df;
    color: #6b4d00;
}

/* =========================
   Responsive
========================= */

@media (max-width: 900px) {
    .product-container {
        flex-direction: column;
        gap: 24px;
    }

    .product-image {
        width: 100%;
    }

    .product-img {
        height: 360px;
    }
}
