/* ================================
   SLIDER CONTAINER
   ================================ */

/*SLIDER LAYOUT - Everything related to your homepage slider. */
/* Ensure the slider itself is centered */
/* Force the slider to be narrow */
.slider {
    width: 300px;
    /* max-width: 400px;        Keeps slider from stretching to wide, and adjusts to the preferred width */
    margin: 0 auto;             /* Centers the slider container */
    /* overflow: hidden;        Prevents content from spilling out */
}

.slider img,
.slide img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    max-height: 350px;  /* match product grid */
    display: block;
    margin: 0 auto;
}

/* ================================
   INDIVIDUAL SLIDES
   ================================ */
/* Force the slide to match the slider width*/
.slide {
    /* width: 100%; */
    /* display: none;                   JS will show one slide - hidden by default */
    /* text-align: center; */

    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
}

/* ================================
   SLIDER IMAGE
   ================================ */
/* Force the image to be small */

/* Slide images - Control image size within each slide */
.slide img {
    width: 100% !important;                        /* image never exceeds  its container - forces correct size */
    height: auto !important;
    max-height: 350px;                              /* match your product grid image height */
    object-fit: contain !important;                 /* Scales the image so that the whole thing is visible, no cropping; i.e., show full image if available - no cropping */
    display: block;
    margin: 0 auto;
}

/* ================================
   PRODUCT NAME
   ================================ */
.slide h3 {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #fff;
    text-align: center;
}

/* ================================
   OPTIONAL: NAV BUTTONS (if you add them later)
   ================================ */
.slide button {
    background: #444;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    margin: 5px;
}

.slider.button:hover {
    background: #666;
}

/* Center text inside each slide */
.slide p {
    margin-top: 8px;        /* small gap below the image */
    font-size: 16px;        /* adjust as needed */
    /*text-align: center;*/
}

/* ARROWS */
/* Navigation arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    /*margin-top: -22px;*/
    color: white;
    font-weight: bold;
    font-size: 24px;
    /*transition: 0.3s;*/
    user-select: none;
}    
    
.prev {left: 0;}
.next {right: 0;}

/*  Hover state for arrows */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* DOTS */
/* Center the dots directly under the slider */
.dots {
    display: flex;
    justify-content: center;        /* centers horizontally */
    margin-top: 10px;
    max-width: 600px;            /* same as slider */
    /*margin-left: auto;*/
    /* margin-right: auto;          centers the container itself. */
}

/* Style dots */    

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    /*display: inline-block;*/
}

.dot.active {
    background-color: #717171;
}