/* =================================================
   Category Slider Widget
   File: elementor-widgets/assets/category-slider.css
   ================================================= */

/* Wrapper */
.csw-wrapper {
    position: relative;
    padding: 0 44px;
}

.csw-swiper {
    overflow: hidden;
}

/* ── Card ── */
.csw-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.25s ease;
    cursor: pointer;
}

.csw-card:hover {
    transform: translateY(-4px);
}

/* ── Image Wrap ── */
.csw-card-image-wrap {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f0e8;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.csw-card:hover .csw-card-image-wrap {
    border-color: #c8a96e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.csw-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.csw-card:hover .csw-card-image {
    transform: scale(1.05);
}

/* ── Placeholder ── */
.csw-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #f5f0e8;
}

.csw-placeholder svg {
    fill: #c8a96e;
    opacity: 0.7;
}

.csw-placeholder span {
    font-size: 11px;
    color: #999;
    letter-spacing: 0.03em;
}

/* ── Title ── */
.csw-card-title {
    margin: 12px 0 0;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.4;
    transition: color 0.2s ease;
    word-break: break-word;
}

.csw-card:hover .csw-card-title {
    color: #c8a96e;
}

.csw-card-count {
    font-size: 12px;
    color: #999;
    margin-left: 2px;
}

/* ── No categories message ── */
.csw-no-categories {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ── Navigation Arrows ── */
.csw-btn-prev,
.csw-btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.csw-btn-prev:hover,
.csw-btn-next:hover {
    background-color: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.csw-btn-prev { left: 0; }
.csw-btn-next { right: 0; }

.csw-btn-prev svg,
.csw-btn-next svg {
    display: block;
    stroke: #555;
}

.csw-btn-prev.swiper-button-disabled,
.csw-btn-next.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ── Pagination Dots ── */
.csw-pagination {
    margin-top: 16px;
    text-align: center;
    position: static !important;
}

.csw-pagination .swiper-pagination-bullet {
    background: #c8a96e;
    opacity: 0.4;
}

.csw-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .csw-wrapper { padding: 0 40px; }
}

@media (max-width: 768px) {
    .csw-wrapper { padding: 0 36px; }
    .csw-card-image-wrap { width: 110px; height: 110px; }
    .csw-card-title { font-size: 13px; }
}

@media (max-width: 480px) {
    .csw-wrapper { padding: 0 32px; }
    .csw-card-image-wrap { width: 90px; height: 90px; }
}
