/* ============================================================================
   SAKO Categories Carousel Styles
   ============================================================================ */

/* Main wrapper */
.sako-categories-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;

}

/* Navigation arrows - outside container */
.sako-carousel-navigation {
    position: relative;
    z-index: 10;
}

.sako-carousel-prev,
.sako-carousel-next {
    position: absolute;
    top: 200px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
	color: #E25303;

    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
   
}

.sako-carousel-prev:hover,
.sako-carousel-next:hover {
    
   
    color: #000;
    transform: translateY(-50%) scale(1.05);
}

.sako-carousel-prev:disabled,
.sako-carousel-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.sako-carousel-prev {
    left: -5vw;
}

.sako-carousel-next {
    right: -5vw;
}

.sako-carousel-prev svg,
.sako-carousel-next svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Main carousel container */
.sako-categories-carousel {
    overflow: hidden;
 
}

.sako-carousel-container {
    width: 100%;
    height: auto;
}

/* Swiper overrides */
.sako-categories-carousel .swiper-wrapper {
    display: flex;
    transition-timing-function: ease-in-out;
}

.sako-categories-carousel .swiper-slide {
    flex-shrink: 0;
    width: 25%; /* 4 slides on desktop */
    height: auto;

    box-sizing: border-box;
}

/* Category Card */
.sako-category-card {
    background: #ffffff;
 
  
    height: 100%;
    display: flex;
    flex-direction: column;

    transition: all 0.3s ease;
  
}

.sako-category-card:hover {
    transform: translateY(-5px);
   
  
}

/* Category Image */
.sako-category-image {
    width: 100%;
 
    margin-bottom: 20px;
	
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

.sako-category-img {
    width: 100%;
    height: 180px !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sako-category-card:hover .sako-category-img {
    transform: scale(1.05);
}

.sako-category-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

.sako-category-placeholder svg {
    opacity: 0.4;
}

/* Category Header */
.sako-category-header {
    margin-bottom: 20px;
}

.sako-category-title {
    color: #000;
    text-align: left;
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    text-transform: uppercase;
    border-right: 1px solid #E25303;
    padding-right: 11px;
    width: fit-content;
}

/* Subcategories */
.sako-category-subcategories {
    flex: 1;
    margin-bottom: 24px;
}

.sako-subcategories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sako-subcategory-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
  
}

.sako-subcategory-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sako-subcategory-icon {
    flex-shrink: 0;
    margin-right: 12px;
    width: 13px;
    height: 13px;
}

.sako-subcategory-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.sako-subcategory-link:hover {
    color: #E25303;
    text-decoration: none;
}

.sako-no-subcategories {
    color: #999;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    margin: 0;
    padding: 20px 0;
}

/* Category Footer */
.sako-category-footer {
    margin-top: auto;
  
}

.sako-category-btn {
    display:flex;
	width:156px;
	height:37px;
	justify-content:center;
	align-items:center;
	background: #E25303;
	color: #FFF;
	text-align: center;
	font-family: Roboto;
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 27px; /* 168.75% */
	text-transform: uppercase;
}

.sako-category-btn:hover {
   background: #0E0E10;
	color: #FFF;
}

/* Pagination */
.sako-carousel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 8px;
}

.sako-carousel-pagination .swiper-pagination-bullet {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: #B0B0A9;
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sako-carousel-pagination .swiper-pagination-bullet-active {
    background: #E25303;
}

/* Notice message */
.sako-carousel-notice {
    text-align: center;
    padding: 40px 20px;
    background: #f8f8f8;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1600px) {
	  .sako-carousel-prev {
        left: -3vw;
    }
    
    .sako-carousel-next {
        right: -3vw;
    }
}

/* Large tablets - 3 slides */
@media (max-width: 1024px) {
    .sako-categories-carousel .swiper-slide {
        width: 33.333%; /* 3 slides */
    }
    
    .sako-categories-carousel {
        margin: 0 40px;
    }
    
    .sako-carousel-prev {
        left: -2vw;
    }
    
    .sako-carousel-next {
        right: -2vw;
    }
    
    .sako-carousel-prev svg,
    .sako-carousel-next svg {
        width: 26px;
        height: 19px;
    }
    
    .sako-category-title {
        font-size: 20px;
    }
}

/* Small tablets - 2 slides */
@media (max-width: 768px) {
    .sako-categories-carousel .swiper-slide {
        width: 50%; /* 2 slides */
        padding: 0 10px;
    }
    
    .sako-categories-carousel {
        margin: 0 35px;
    }
    
    .sako-carousel-prev {
        left: -35px;
    }
    
    .sako-carousel-next {
        right: -35px;
    }
    
    .sako-carousel-prev svg,
    .sako-carousel-next svg {
        width: 24px;
        height: 18px;
    }
    
 

    
    .sako-category-title {
        font-size: 18px;
    }
}

/* Mobile phones - 1 slide */
@media (max-width: 480px) {

.sako-carousel-prev, .sako-carousel-next {

    top: 100px;
 
}


    .sako-categories-carousel .swiper-slide {
        width: 100%; /* 1 slide */
        padding: 0 5px;
    }
    
    .sako-categories-carousel {
        margin: 0 0px;
    }
    
    .sako-carousel-prev {
        left: 0px;
    }
    
    .sako-carousel-next {
        right: 0px;
    }
    
    .sako-carousel-prev svg,
    .sako-carousel-next svg {
        width: 20px;
        height: 15px;
    }
    

    
    .sako-category-image {
        margin-bottom: 16px;
    }
    
    .sako-category-title {
        font-size: 17px;
        margin-bottom: 16px;
    }
    
    .sako-subcategory-link {
        font-size: 13px;
    }
    
    .sako-category-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .sako-categories-carousel-wrapper {
        padding: 0 0px;
    }
    
    .sako-categories-carousel {
        margin: 0 0px;
    }
    
    .sako-carousel-prev {
        left: -15px;
    }
    
    .sako-carousel-next {
        right: -15px;
    }
    
    .sako-carousel-prev svg,
    .sako-carousel-next svg {
        width: 18px;
        height: 14px;
    }
    
    .sako-category-card {
        padding: 0px;
    }
}

/* ============================================================================
   ANIMATIONS & TRANSITIONS
   ============================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sako-category-card {
    animation: fadeInUp 0.6s ease forwards;
}

.sako-category-card:nth-child(2) {
    animation-delay: 0.1s;
}

.sako-category-card:nth-child(3) {
    animation-delay: 0.2s;
}

.sako-category-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Loading state */
.sako-carousel-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    font-size: 16px;
    color: #666;
}

.sako-carousel-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #E25303;
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================================
   SAKO ISOLATED CAROUSEL STYLES (No conflicts with Elementor)
   ============================================================================ */


/* SAKO carousel pagination bullets (isolated) */
.sako-carousel-pagination .sako-carousel-bullet {
    width: 20px;
    height: 5px;
    border-radius: 0px;
    background: #B0B0A9;
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.sako-carousel-pagination .sako-carousel-bullet-active,
.sako-carousel-pagination .sako-carousel-bullet:hover {
    background: #E25303;
}

/* SAKO carousel initialization marker */
[data-sako-carousel-initialized="true"] {
    /* Mark carousel as SAKO initialized to prevent Elementor interference */
}

[data-sako-fallback-initialized="true"] {
    /* Mark fallback as SAKO initialized */
}

/* SAKO carousel elements marker */
[data-sako-carousel-element="true"] {
    /* Mark element as belonging to SAKO carousel */
}