/* Embla Carousel Styles */
.embla {
    position: relative;
}

.embla__viewport {
    overflow: hidden;
    max-width: 100%;
}

.embla__container {
    display: flex;
    touch-action: pan-y pinch-zoom;
}

.embla__slide {
    min-width: 0;
}

/* Category slider specific styles */
.category-slider .embla__slide {
    padding-left: 1rem;
}

.category-slider .embla__container {
    margin-left: -1rem;
}

.embla__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.embla__dot {
    -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), .5);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    touch-action: manipulation;
    display: inline-flex;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    padding: 0;
    margin: 0;
    width: 16px;
    height: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: #909090;
}

.embla__dot--selected {
    background-color: var(--color-primary);
}

.embla .embla__button {
    -webkit-tap-highlight-color: var(--color-background);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    touch-action: manipulation;
    display: inline-flex;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    padding: 0;
    margin: 0;
    width: 3.6rem;
    height: 3.6rem;
    z-index: 1;
    border-radius: 50%;
    color: var(--color-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity .2s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.embla__button {
    opacity: 0;
}

.embla:hover .embla__button:not(:disabled) {
    opacity: 1;
}

.embla:hover .embla__button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.embla__button--prev {
    left: var(--embla-button-offset, 12px);
}

.embla__button--next {
    right: var(--embla-button-offset, 12px);
}

.embla-thumbs .embla__slide {
    border-radius: var(--rounded);
    border: 2px solid var(--color-neutral-50);
    overflow: hidden;
}

.embla-thumbs .embla__slide.embla-thumbs__slide--selected {
    border-color: var(--color-primary);
}

.embla__buttons:has([disabled]+[disabled]) {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .embla__button {
        width: 2.8rem;
        height: 2.8rem;
    }
    
    .embla__button--prev {
        left: 8px;
    }
    
    .embla__button--next {
        right: 8px;
    }
}

/* Featured products specific styles */
.featured-products .embla__slide {
    flex: 0 0 auto;
}

.featured-products .box-img {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-products .box-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-products .box-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.featured-products .box-img:hover img {
    transform: scale(1.05);
}
