body {
    margin: 0;
    padding: 0;
    background-color: forestgreen;
}

header {
    background-color: white;
    padding: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
/*-----navbar section-----*/
.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    background-color: rgb(57, 61, 57);
    width: 100%;
}

.navbar a {
    flex: 1 1 auto;
    padding: 12px;
    color: white;
    text-decoration: none;
    font-size: 17px;
    text-align: center;
}

/* Add a background color on mouse-over */
.navbar a:hover {
    background-color: #000;
}

/* Style the current/active link */
.navbar a.active {
    background-color: #04AA6D;
}

/* Profile page styles */
.profile-details {
    width: 45%;
    background-color: #fff;
    box-sizing: border-box;
    padding: 24px 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.favorites-section {
    width: 45%;
    background-color: #fff;
    box-sizing: border-box;
    padding: 24px 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.favorites-section ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

.favorites-section li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorites-section li:last-child {
    border-bottom: none;
}

.favorites-section button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.favorites-section button:hover {
    background-color: #d32f2f;
}

/*-----end navbar section-----*/
button {
    position: left;
    width: 50%
}
/*--------image section-------*/

.product-container, .product.container {
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: transparent;
    box-sizing: border-box;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    margin-top: 32px;
}

.slideshow-container {
    width: 40%;
    min-width: 240px;
    max-width: 400px;
    background-color: #fff;
    box-sizing: border-box;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slides {
    display: none;
    width: 100%;
    max-width: 320px;
    height: 320px;
    border-radius: 6px;
    margin-bottom: 12px;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-top: 10px;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
}

.thumbnails img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border 0.2s;
}

@media screen and (max-width: 600px) {
    .thumbnails img {
        width: 48px;
        height: 48px;
    }
}

.thumbnails img.active {
    border: 2px solid #04AA6D;
}

.product-details {
    width: 45%;
    background-color: #fff;
    box-sizing: border-box;
    padding: 24px 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-details button {
    margin: 0 auto;
    display: block;
    width: 60%;
    min-width: 120px;
    max-width: 220px;
}

@media screen and (max-width: 900px) {
    .product-container, .product.container {
        flex-direction: column;
        gap: 16px;
    }
    .slideshow-container, .product-details {
        width: 100%;
        max-width: 100%;
    }
}
/*--------end of image section-------*/
