 /* Specific styles for the product detail page */

.product-detail-section {
    padding: 80px 0;
    background-color: #FDFDFD;
}

.product-detail-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.product-images {
    flex: 1;
    min-width: 350px;
    max-width: 550px;
    position: sticky; /* Make images sticky on scroll */
    top: 30px; /* Adjust as needed */
}

.main-image-wrapper {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.main-image {
    width: 100%;
    height: 450px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.thumbnail-images img:hover,
.thumbnail-images img.active-thumbnail {
    border-color: #FFD700; /* Highlight active/hovered thumbnail */
    transform: scale(1.05);
}

.product-info {
    flex: 1.5;
    min-width: 350px;
    text-align: left;
}

.product-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    color: #A0522D;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-rating {
    color: #FFD700;
    margin-bottom: 15px;
}

.product-rating .stars {
    font-size: 1.2em;
}

.product-price {
    font-size: 2.2em;
    color: #A0522D;
    font-weight: 700;
    margin-bottom: 25px;
}

.product-description {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

.product-meta {
    margin-bottom: 30px;
    font-size: 0.95em;
    color: #666;
    line-height: 1.8;
}

.product-meta span {
    font-weight: 600;
    color: #333;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.quantity-selector label {
    font-weight: 600;
    margin-right: 15px;
    font-size: 1.1em;
    color: #333;
}

.quantity-selector button {
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 8px 15px;
    font-size: 1.2em;
    cursor: pointer; /* Added cursor */
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.quantity-selector button:hover {
    background-color: #ddd;
}

.quantity-selector input[type="number"] {
    width: 70px;
    padding: 8px 10px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 0 10px;
    font-size: 1.1em;
}

.quantity-selector input[type="number"]::-webkit-outer-spin-button,
.quantity-selector input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Hide arrows in Chrome, Safari, Edge */
    margin: 0;
}

.product-actions .btn-add-to-cart {
    width: auto; /* Override general button width */
    padding: 15px 40px;
    font-size: 1.1em;
    cursor: pointer; /* Added cursor */
}

.related-products {
    padding: 80px 0;
    text-align: center;
    background-color: #FFF8E1;
}

.related-products h2 {
    margin-bottom: 50px;
}

/* Responsive adjustments for product detail */
@media (max-width: 992px) {
    .product-detail-container {
        flex-direction: column;
        align-items: center;
    }

    .product-images {
        max-width: 100%;
        width: 100%;
        position: static; /* Remove sticky on smaller screens */
        top: auto;
    }

    .main-image {
        height: 350px; /* Adjust height for smaller screens */
    }

    .product-info {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .product-info h1,
    .product-info p,
    .product-meta,
    .quantity-selector,
    .product-actions {
        text-align: center; /* Center content on smaller screens */
        justify-content: center; /* Center quantity selector */
    }
}

@media (max-width: 576px) {
    .main-image {
        height: 300px;
    }

    .product-info h1 {
        font-size: 2.2em;
    }

    .product-price {
        font-size: 1.8em;
    }

    .thumbnail-images img {
        width: 60px;
        height: 60px;
    }
}