/* --- Global Styles & Layout --- */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4; /* Light background for the page */
}

#wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fffafa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

h1 {
    font-family: 'Plaster', cursive; /* Using the custom font you linked */
    text-align: center;
    color: #aa4c8f;
    font-size: 4em;
    margin-bottom: 25px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

/* --- Button Styling --- */

#buttons {
    text-align: center;
    margin-bottom: 30px;
}

#buttons button {
    background-color: #895b8a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 1em;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

#buttons button:hover {
    background-color: #cca6bf; /* Nike-inspired accent color on hover */
}

/* --- Main Content Container (Image, Details, Thumbnails) --- */

.bigbox {
    display: flex; /* Use flexbox for main layout */
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 20px;
    justify-content: space-between;
}

/* --- Main Image and Details Figure --- */

.bigbox figure {
    flex: 1 1 450px; /* Allows the figure to grow and shrink, minimum width 450px */
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    display: flex;
    flex-direction: column; /* Stacks image and details vertically */
    align-items: center;
}

.bigbox figure img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

/* Product Details Display */
#product-details {
    width: 100%;
    max-width: 350px;
    padding: 15px;
    margin-top: 10px;
    border-top: 2px solid #eee;
    text-align: center;
}

#product-details h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

#product-details p {
    margin: 5px 0;
}

#product-details strong {
    color: #555;
}

/* --- Thumbnail List --- */

#list {
    flex: 1 1 650px; /* Allows the list to take up the remaining space, minimum width 650px */
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}

#list li {
    width: 150px; /* Fixed width for thumbnails */
    height: 150px; /* Fixed height for thumbnails */
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#list li:hover {
    border-color: #000; /* Highlight on hover */
}

#list li img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the space without distortion */
    display: block;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    border-top: 1px solid #ccc;
    color: #666;
    font-size: 1.2em;
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
  h1 {
    font-size: 2.5em;
  }

  button {
    display: block;
    width: 100%;
    margin: 10px 0;
  }

  ul#list li img {
    max-width: 120px;
  }
}

p{
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    color:#aa4c8f; 
    background: #fff;
    border-radius: 2px;
}
