/* --- Base and Layout Styles --- */

/* Removed card styling (background, shadow, radius) for normal page look */
.product-detail-layout { 
    display: flex; 
    gap: 40px; 
    margin-top: 40px;
    min-height: 70vh;
}

/* Left Column Styling */
.product-info-left { 
    flex: 2; /* Takes up 2/3 of the space */
    padding-bottom: 30px; 
}
.product-info-left h1 { 
    color: #007bff; 
    font-size: 28px; 
}
.product-info-left h2 { 
    font-size: 20px; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 5px; 
    margin-top: 25px; 
    font-weight: 600; 
}
.product-price-display { 
    font-size: 20px; 
    font-weight: 600;
}
#productPrice { 
    font-size: 24px; 
    color: #dc3545; 
    font-weight: 700;
}

/* Feature List (Dynamic) */
.feature-list { 
    list-style: none; 
    padding: 0; 
    margin-top: 15px; 
}
.feature-list li { 
    padding: 5px 0 5px 30px; 
    position: relative; 
    font-size: 15px; 
}
.feature-list li::before { 
    content: "✅"; 
    position: absolute; 
    left: 0; 
    font-size: 18px; 
}

/* Image Styling */
.product-image-container { 
    width: 100%; 
    max-width: 500px; 
    margin: 20px 0; 
    border: 1px solid #ddd; 
    padding: 10px; 
}
.product-image-container img { 
    width: 100%; 
    height: auto; 
    display: block; 
}

/* Right Column: Form Styling (Retains the boxed look for the sidebar) */
.product-form-right { 
    flex: 1; 
    padding: 25px; 
    background-color: #f7f7f7; /* Light background */
    border-radius: 6px; 
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: fit-content; /* Key to the "even" sidebar look */
    align-self: flex-start;
}

/* Style the H2 specifically for the form box */
.product-form-right h2 { 
    font-size: 20px;
    font-weight: 700;
    color: #333; 
    text-align: center;
    margin-top: 0; 
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.form-product-summary {
    color: #007bff; 
    font-weight: 600; 
    padding-bottom: 10px; 
    border-bottom: 1px dashed #ccc;
    margin-bottom: 20px;
}
.form-group label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: 600; 
    font-size: 14px; 
}
.form-group input { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 15px; 
}
.submit-btn { 
    width: 100%; 
    padding: 12px; 
    background-color: #dc3545; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: bold; 
    transition: background-color 0.3s;
    margin-top: 10px;
}
.submit-btn:hover { 
    background-color: #c82333; 
}
.form-note {
    font-size: 12px; 
    text-align: center; 
    margin-top: 15px; 
    color: #6c757d;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .product-detail-layout {
        flex-direction: column;
        gap: 30px;
    }
    .product-form-right {
        flex: auto;
        max-width: 100%;
    }
}