nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 5em 0 5em;
}

nav h1 {
    font-size: 1.8rem;
    color: rgb(253, 252, 252);
    font-weight: normal;
}

nav ul li a {
    border-radius: 0.5em;
}

nav ul li:nth-child(4) a:hover {
    cursor: pointer;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    padding: 4em 12em 3em 12em;
    color: #2c3e50;
}

.collection-header h1 {
    font-size: 2.6rem;
    color: #1859bb;
}

.collection-section {
    max-width: 90%;
    margin: 4em auto;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
}

.product-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-details {
    padding: 1.5em;
}

.product-details h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5em;
}

.product-details p {
    font-size: 1rem;
    color: #555;
}

.image-gallery {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.image-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.image-gallery img.active {
    opacity: 1;
    z-index: 1;
}

.image-gallery button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 1.5rem;
    padding: 0.5em 0.6em;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    transition: background 0.2s;
}

.image-gallery button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.image-gallery .prev {
    left: 10px;
}

.image-gallery .next {
    right: 10px;
}