﻿/* General container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Wrapper for the order details */
.pd-wrap {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

/* Product gallery */
.pd-gallery {
    flex: 1;
    max-width: 50%;
    text-align: center;
}

.pd-main {
    position: relative;
    max-width: 100%;
}

    .pd-main img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }

/* Title of product */
.pd-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-top: 12px;
}

/* Right side with the order form */
.pd-right {
    flex: 1;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Căn giữa form */
}

/* Product info style */
.pd-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #d9534f;
    margin: 10px 0;
}

.pd-badges {
    margin-bottom: 20px;
}

.prd-badge {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    font-size: 0.9rem;
}

    .prd-badge.meta .label {
        font-weight: bold;
    }

/* Buttons */
.btn-primary {
    background-color: #28a745; /* Màu xanh lá cho nút "Đặt mua" */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px; /* Căn giữa */
}

    .btn-primary:hover {
        background-color: #218838;
    }

.btn-back {
    color: #007bff;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 10px;
}

    .btn-back:hover {
        text-decoration: underline;
    }

/* Form group and inputs */
.form-group {
    margin-bottom: 15px;
    width: 100%; /* Full width */
}

    .form-group label {
        font-size: 1rem;
        font-weight: 500;
        color: #333;
    }

        /* Style for required labels (make the * red) */
        .form-group label.required::before {
            content: "*";
            color: red;
            margin-right: 5px;
        }

/* Form control styles */
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

    .form-control:focus {
        border-color: #28a745;
        outline: none;
    }

/* Quantity input styling */
.quantity-input {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Increase/Decrease quantity buttons */
.btn-secondary {
    background-color: #6f4f1f; /* Màu nâu cho nền */
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.25rem;
    min-width: 40px;
    text-align: center;
    color: white;
}

    .btn-secondary:hover {
        background-color: #5a3e1d; /* Màu nâu đậm khi hover */
    }

.quantity-input input {
    width: 60px;
    text-align: center;
    font-size: 1rem;
    padding: 5px;
}

/* Validation error messages */
.validation-summary {
    color: red;
    margin-top: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .pd-wrap {
        flex-direction: column;
        align-items: center;
    }

    .pd-gallery {
        margin-bottom: 20px;
        max-width: 80%;
    }

    .pd-right {
        max-width: 80%;
    }

    .form-group {
        margin-bottom: 10px;
    }
}

