/* PRODUCT DETAIL PAGE STYLES */
.product-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.product-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
}

.product-info {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 2em;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    font-size: 1.5em;
    color: #ff3300;
    margin-bottom: 20px;
    font-weight: bold;
}

.product-description {
    margin-bottom: 20px;
}

.product-description h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #555;
}

.product-description p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

/* Product Description Text - Preserve line breaks from database */
.product-description-text {
    white-space: pre-line; /* Preserves newlines but collapses multiple spaces */
    font-size: 1em;
    color: #666;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word; /* Ensure long words don't overflow */
}

/* Add to cart button style (already exists but ensuring it looks good in this context) */
.product-detail-container .add-to-cart {
    display: inline-block; /* Change from block to inline-block if needed, but block is fine for full width */
    width: 150px; /* Allow button to size based on padding/content or use a specific width */
    padding: 12px 25px;
    background-color: #22b573;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.product-detail-container .add-to-cart:hover {
    background-color: #1a8c5a;
}

.product-description-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        padding: 15px;
    }

    .product-image, .product-info {
        min-width: 100%;
    }

    .product-image {
        margin-bottom: 20px;
    }

    .product-description-container {
        padding: 15px;
        margin-top: 15px;
    }
}





