/* UrbanNutMix - Premium Hero Slider CSS */

.unm-hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #e8ecf0;
    user-select: none;
    -webkit-user-drag: none;
    /* Prevent this element from ever causing horizontal scroll */
    max-width: 100vw;
}

.unm-hero-slider {
    position: relative;
    width: 100%;
    /* Desktop: widescreen banner ratio */
    aspect-ratio: 1920 / 650;
    overflow: hidden;
}

.unm-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.unm-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.unm-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Keep top of banner visible on mobile – important for widescreen images */
    object-position: center top;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    display: block;
}

/* Grab cursor on desktop */
.unm-hero-slider-container.grabbing { cursor: grabbing; }
.unm-hero-slider-container.grab    { cursor: grab; }

/* ── Prev/Next Arrows ─────────────────────────────────────────────── */
.unm-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.88);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.unm-slider-arrow:hover {
    background-color: #ffffff;
    color: #cf6e0c;
    transform: translateY(-50%) scale(1.08);
}

.unm-slider-arrow-prev { left: 20px; }
.unm-slider-arrow-next { right: 20px; }

.unm-slider-arrow-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Show arrows on hover (desktop only) */
@media (hover: hover) {
    .unm-hero-slider-container:hover .unm-slider-arrow {
        opacity: 1;
        visibility: visible;
    }
}

/* ── RESPONSIVE ───────────────────────────────────────────────────── */

/* Tablet landscape */
@media (max-width: 1024px) {
    .unm-hero-slider {
        aspect-ratio: 16 / 7;
    }
    .unm-slider-arrow {
        width: 40px;
        height: 40px;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .unm-hero-slider {
        aspect-ratio: 16 / 8;
    }
    /* Arrows hidden on touch – users swipe */
    .unm-slider-arrow {
        display: none;
    }
}

/* Large phone */
@media (max-width: 580px) {
    .unm-hero-slider {
        aspect-ratio: 1920 / 650;
        min-height: auto; /* Remove minimum height floor to prevent cropping */
    }
    .unm-slide-img {
        object-fit: contain; /* Render complete image */
        object-position: center;
    }
}

/* Small phone */
@media (max-width: 400px) {
    .unm-hero-slider {
        aspect-ratio: 1920 / 650;
        min-height: auto;
    }
}
