/* Filename: assets/styles/product-details.css */

.product-details-container {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.product-details-image-container {
    flex: 1;
    max-width: 40%;
    margin-right: 1rem;
}

.product-details-image {
    margin: 0 auto;
    width: 100%; /* Full width of its parent */
    max-width: 450px; /* Prevent excessive width */
    height: 450px; /* Fixed height to keep the layout stable */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure images don't overflow the container */
    border-radius: 8px;
    background-color: transparent; /* Optional background */
}

.product-details-image img {
    max-width: 100%; /* Scale the image proportionally */
    max-height: 100%; /* Prevent image from exceeding container height */
    object-fit: contain; /* Ensure the image fits without distortion */
    display: block; /* Remove any inline spacing issues */
    border-radius: 8px; /* Match the container's border-radius */
    cursor: pointer; /* Retain zoom functionality */
    border: 1px solid #ddd; /* Subtle border, similar to "Wood Pictured" */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow for a polished look */
}

.product-thumbnails {
    margin-top: 1rem;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-thumbnails img:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.thumbnail-image {
    border: 1px solid white; 
}

.product-details-info {
    flex: 2;
    background-color: rgba(255, 255, 255, 0.7); /* Slightly white with 80% opacity */
        border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    z-index: 2; /* Ensure it sits above the logo */
    position: relative; /* For clarity and positioning */
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 1rem;
    border: 1px solid white;    
}
/* Bold the "Select Wood" label */

.product-details-info label {
    font-weight: bold;
    font-size: 1.1rem; /* Optional: Slightly increase the font size */
    margin-bottom: 0.5rem; /* Add spacing below the label */
    display: block; /* Ensure the label occupies its own line */
    color: black; /* Optional: Enhance visibility */
    vertical-align: middle
}

/* Style the dropdown menu */
.product-details-info select {
    background-color: #fff; /* Bright white background */
    color: #333; /* Text color for readability */
    border: 1px solid #ccc; /* Subtle border for definition */
    padding: 0.5rem; /* Add padding for a clean look */
    border-radius: 5px; /* Rounded corners */
    font-size: 1rem; /* Match the font size with the rest of the form */
    width: 100%; /* Optional: Make it full width */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: border-color 0.2s ease-in-out;
    vertical-align: middle
}

.wood-species-description {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: black; /* Base text color */
    text-shadow: 
        1px 1px 0 rgba(255,255,255, 0.2),  /* Right and bottom shadow */
        -1px 1px 0 rgba(255,255,255, 0.2), /* Left and bottom shadow */
        1px -1px 0 rgba(255,255,255, 0.2), /* Right and top shadow */
        -1px -1px 0 rgba(255,255,255, 0.2); /* Left and top shadow */
    font-size: 1.1rem; 
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.6); /* Slightly white with 80% opacity */
    border: 1px solid white; 
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 2; /* Ensure it sits above the logo */
    position: relative; /* For clarity and positioning */
}

.product-title {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: bold;
}

.product-dimensions {
    margin-bottom: 1rem;
    font-style: italic;
}

.product-description {
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: left;
    line-height: 1.5;
}

.customization-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.customization-label {
    white-space: nowrap;
}

.customization-input,
.customization-select {
    background-color: rgba(255, 255, 255, 1); /* Slightly white with 80% opacity */
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: black;
    font-size: 1rem;
    flex: 1;
    width: 300px;
}

.customization-input:focus,
.customization-select:focus {
    outline: none;
    border-color: #0073e6; /* Your subtle blue color */
    box-shadow: 0 0 8px rgba(0, 115, 230, 0.3);
}

.active-thumbnail {
    outline: 2px solid #428bca; /* Blue color matching the button */
    transform: scale(1.1); /* Slight enlargement effect */
    transition: transform 0.2s, outline 0.2s; /* Smooth transition */
}