body {
    color: black;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */   
}
  
.section { 
    display: flex; /* Enable flexbox */
    justify-content: center; /* Center horizontally */
    margin-top: 70px;
    padding: 30px 0 30px 0;
    height: auto;
    transition: scroll 0.9s ease;
}

#product-pics-slider {
    width: 400px;
    height: 400px;
    border-radius: 10px;
    display: flex;
    position: relative;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.3s ease;
    cursor: grab; /* Default cursor for dragging */
} 

.slides.grabbing {
    cursor: grabbing; /* Cursor when dragging */
}

.slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

img {
    width: 100%;
    height: 100%;
} 

/* Optional: Add dots for current slide */
.dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: black;
    border-radius: 50%;
    cursor: pointer; 
}

.indicator.active {
    background-color: white;
}

#product-details-pannel {
    width: 400px;
    height: auto;
    padding-left: 100px;
    flex-direction: column;
    position: relative;
}

#product-title {
    font-size: 30px;
}

.color-btn {
    width: 28px;
    height: 28px;
    border: 2px solid black;
    margin: 0 10px 10px 0;
    border-radius: 50%;
}

/* When selected */
.color-btn.active {
    border: 2px solid white;
    border-style: dotted;
}

.size-btn {
    background-color: white;
    color: black;
    border: 2px solid black;
    border-radius: 9px;
    padding: 8px 12px;
    margin-right: 15px;
    cursor: pointer;
    font-size: 16px;
}

/* Increased border when size is selected */
.size-btn.active, .size-btn:hover {
    border: 2px solid black; /* Increased border size for selected size */
    border-style: dotted;
}

#quantity-selector {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.quantity-btn {
    width: 35px;
    height: 30px;
    font-size: 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
}

#quantity {
    width: 20px;
    height: 27px;
    text-align: center;
    border: 1px solid #ccc;
    font-size: 14px;
}

.cart-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Media Query for Mobile Devices */
@media screen and (max-width: 768px) {
    .section {
        align-items: center;
        flex-direction: column; /* Stack items vertically on small screens */
    }
    #product-pics-slider {
        padding-top: 0px;
        width: 80%;
        height: auto;
        max-width: 350px;
        display: flex;
        position: relative;
        overflow: hidden;
    }
    #product-details-pannel {
        margin-top: 30px;
        width: 80%;
        padding: 0;
        max-width: 350px;
        overflow-x: hidden;
    }
}

#cart-icon {
    position: fixed; /* Fixes the cart icon in place */
    bottom: 20px; /* Adjusts the distance from the bottom of the screen */
    right: 20px; /* Adjusts the distance from the right of the screen */
}

#cart-icon:hover {
    cursor: pointer;
}

#cart-icon img {
    width: 70px; /* Set the size of the cart icon image */
    height: auto;
}

/* General Styles for Centered Content */
#product-description {
    max-width: 100%; /* Restrict width on large screens */
    margin: 0;
    padding: 30px 100px 30px 100px; /* Padding for breathing space */
    box-sizing: border-box; /* Include padding in total width */
    text-align: justify; /* Align the text neatly */
    line-height: 1.6; /* Improve text readability */
    font-family: Arial, sans-serif; /* Clean, readable font */
    font-size: 16px; /* Standard font size */
    color: #333; /* Text color */
    background-color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    #product-description {
    padding: 30px; /* Padding for breathing space */
    }
}