.size-section, .color-section, .quantity-section {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

label {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

/* Size buttons */
.size-options {
    display: flex;
    gap: 10px;
}

.size-button {
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.size-button:hover {
    border-color: #00c2d5;
    background-color: #f0f8ff;
}

.size-button.active {
    border-color: #00c2d5;
    background-color: #e0f7fa;
}

/* Color buttons */
.color-options {
    display: flex;
    gap: 10px;
}

.color-box {
    width: 60px;
    height: 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.color-box:hover, .color-box.active {
    transform: scale(1.1);
    border-color: #00c2d5;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
}

/* Quantity input */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

#quantity {
    width: 70px; /* Reduced width for a compact design */
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#quantity:focus {
    border-color: #00c2d5;
    box-shadow: 0 4px 8px rgba(0, 194, 213, 0.2);
    outline: none;
}

/* Add to Cart button */
.btn {
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #444;
    transform: translateY(-2px);
}

/* Additional Styles for Item Details Page */
.item-details {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.item-images {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* Align thumbnails and main image at the top */
    flex-wrap: wrap;
}

.main-image {
    flex: 2;
    max-width: 300px; /* Limit max size */
    width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	transition: opacity 0.3s ease;
}

/* For large screens, ensure no scroll appears on hover */
.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    overflow: hidden; /* Prevent scroll from appearing */
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    border: 2px solid transparent; /* Default border is transparent */
}

.thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Highlight the active thumbnail */
.thumbnail.active {
    border: 2px solid #00c2d5; /* Highlighted border for selected thumbnail */
    box-shadow: 0 4px 8px rgba(0, 194, 213, 0.4); /* Slight shadow for emphasis */
}


/* Horizontal Scrolling for Small Screens */
@media (max-width: 768px) {
    .item-images {
        flex-direction: column; /* Stack main image and thumbnails */
        align-items: center; /* Center align content */
    }
	
	.main-image {
        max-width: 90%; /* Main image takes up more space on larger screens */
		transition: opacity 0.3s ease;
    }

    .thumbnails {
        flex-direction: row; /* Display thumbnails in a row */
        justify-content: center; /* Center thumbnails */
        overflow-x: auto; /* Enable horizontal scrolling */
        max-width: 100%; /* Ensure container fits the screen width */
        padding: 10px 0;
    }

    .thumbnail {
        width: 60px; /* Smaller thumbnails for mobile */
        height: 60px;
    }
}

/* Layout for Larger Screens */
@media (min-width: 769px) {
    .item-images {
        flex-direction: row; /* Main image and thumbnails side-by-side */
    }

    .main-image {
        max-width: 60%; /* Main image takes up more space on larger screens */
		transition: opacity 0.3s ease;
    }

    .thumbnails {
        flex-direction: column; /* Thumbnails stacked vertically */
        justify-content: flex-start;
    }
}
.item-info .original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
    padding: 2px 5px; /* Add some padding for spacing */
    border-radius: 5px; /* Rounded corners for a modern look */
	letter-spacing:6px;
}