/* Container */
.nalino-swipe-container {
   padding: 0;
   position: relative;
   display: flex;
   align-items: center;
   gap: 11rem;
   margin: 64px auto 20px;
   justify-content: space-between;
   width: 100%;
   box-sizing: border-box;
}

/* Text Blocks */
.before-text {
    flex: 1;
    max-width: 417px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Big Headline */
    .before-after-headline {
        font-size: 3.2rem;
    letter-spacing: 0.05rem;
    line-height: 1;
    padding: 20px 0 0 0px;
    font-weight: 600;
    color: var(--text-primary);
    }


/* Small Top-Left Text */
.top-left-small {
    position: absolute;
    top: 20px;
    left: 0;
    font-size: 0.75rem;
    padding: 5px 10px 5px 35px;
    text-transform: uppercase;
    font-weight: 600;
}

.top-left-small::before {
    content: "";
    background: #000;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.top-left-small span {
    font-weight: 500;
}

/* Slider Wrapper */
.beer-slider-wrapper {
    flex: 2;
    position: relative;
}

.beer-slider-images-wrapper {
    position: relative;
    /* height: 500px; */ /* Adjusted for better desktop fit */
    overflow: hidden;
}

/* Labels Above Slider */
.beer-slider-labels {
    display: flex;
    justify-content: space-between;
    position: absolute;
    left: 24px;
    right: 24px;
    top: 24px;
    z-index: 10;
}

.beer-label-before,
.beer-label-after {
    font-size: 1.5rem;
    font-weight: 500;
    color: #000;
    background: #fffdfc;
    padding: 5px 15px;
    font-family: 'Poppins', sans-serif;
    border-radius: 4px;
}

/* Slider Styling */
.beer-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.beer-slider img {

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beer-handle:after, .beer-handle:before {
    left: 6px;
}

.beer-reveal {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    opacity: 1;
}

/* Handle and Drag */
.beer-handle {
    position: absolute;
    top: 50%;
    bottom: 0;
    width: 2px;
    background: #fff;
    z-index: 3;
    cursor: ew-resize;
    height: 100%;
    opacity: 1;
}

.beer-drag {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.beer-drag::before {
    content: "";
    width: 44px;
    height: 44px;
    background-image: url('/wp-content/themes/your-theme/woocommerce/single-product/arrows-left-right.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
}

.text-label-drag-beer {
    width: 120px;
    color: #000;
    background: #fff;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    left: 32px;
    transform: translateY(-50%);
    line-height: 2;
    font-size: 0.875rem;
    box-shadow: 1px 4px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.text-label-drag-beer::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

/* CTA Button */
.nalino-wrap-cta {
    display: flex;
    width: 100%;
    padding: 20px 0 0 20px;
}

.nalino-swipe-container .nalino-button.shop-now.style-1 {
    position: relative;
    padding: 12px 24px;
    background: var(--text-primary);
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}



/* Desktop (max-width: 1200px) */
@media (max-width: 1200px) {
	.nalino-swipe-container .top-left-small,
	.nalino-swipe-container p.checkbox-p, 
	.nalino-swipe-container .nalino-wrap-cta {
    display: none;
}
	
	.nalino-swipe-container h2.before-after-headline {
        font-family: 'Reem Kufi Fun';
    font-size: 40px;
    margin-bottom: 30px;
    color: var(--text-primary);
}
	body .beer-slider-wrapper {
		 height: 100%;
}
	
	
	home .nalino-swipe-container {
        margin-top: 2px;
        margin-bottom: 2px;
    }
	
    .nalino-swipe-container {
        max-width: 100%;
        padding: 0 16px;
    }

    .before-text {
        max-width: 350px;
    }

    .before-after-headline {
        font-size: 2.8rem;
    }

    .beer-slider-images-wrapper {
        height: 450px;
    }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .nalino-swipe-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .before-text {
        max-width: 100%;
        text-align: center;
        padding: 0 16px;
    }

    .before-after-headline {
        font-size: 2rem;
        padding: 0;
    }

    .nalino-wrap-cta {
        justify-content: center;
        padding: 16px 0;
    }

    .beer-slider-images-wrapper {
        height: 350px;
    }

    .top-left-small {
        position: static;
        padding: 8px 0;
        text-align: center;
        margin-bottom: 1rem;
    }

    .top-left-small::before {
        display: none;
    }

    .beer-slider-labels {
        left: 16px;
        right: 16px;
        top: 16px;
    }

    .beer-label-before,
    .beer-label-after {
        font-size: 1.2rem;
        padding: 4px 12px;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .nalino-swipe-container {
        margin-top: 32px;
        margin-bottom: 16px;
    }

    .before-text {
        font-size: 0.85rem;
    }

    .before-after-headline {
        font-size: 1.5rem;
    }

    .beer-slider-images-wrapper {
        height: 100%;
    }

    .beer-label-before,
    .beer-label-after {
        font-size: 1rem;
        padding: 3px 10px;
    }

    .text-label-drag-beer {
        width: 100px;
        font-size: 0.75rem;
    }

    .beer-drag {
        width: 32px;
        height: 32px;
    }

    .beer-drag::before {
        width: 36px;
        height: 36px;
    }

    .nalino-button.shop-now.style-1 {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}