/* Container */
.mt-ws-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    direction: ltr !important;
    background-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    -webkit-transform: translateZ(0);
}

/* --- SKELETON LOADING (SHIMMER) --- */
.mt-ws-container.is-loading {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%; 
    animation: mt-shimmer 1.5s linear infinite forwards;
    border-radius: 12px;
}

.mt-ws-container.is-loading .mt-ws-wrapper,
.mt-ws-container.is-loading .mt-ws-buttons,
.mt-ws-container.is-loading .mt-ws-dots {
    opacity: 0;
    visibility: hidden;
}

@keyframes mt-shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.mt-ws-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Wrapper */
.mt-ws-wrapper {
    display: flex;
    width: 100%;
    will-change: transform;
    cursor: grab;
    gap: 0 !important;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.mt-ws-wrapper:active {
    cursor: grabbing;
}

/* Slide */
.mt-ws-slide {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.mt-ws-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.mt-ws-slide img {
    width: 100%;
    height: 100%; 
    display: block;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

/* --- Navigation Buttons --- */
.mt-ws-buttons {
    position: absolute;
    display: flex;
    gap: 8px;
    z-index: 20;
    direction: ltr; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mt-ws-container.mt-hide-mobile-nav .mt-ws-buttons {
    display: none;
}
@media (min-width: 768px) {
    .mt-ws-container.mt-hide-mobile-nav .mt-ws-buttons {
        display: flex;
    }
}

.mt-ws-container.mt-nav-hover .mt-ws-buttons {
    opacity: 0;
    visibility: hidden;
}
.mt-ws-container.mt-nav-hover:hover .mt-ws-buttons {
    opacity: 1;
    visibility: visible;
}

.mt-ws-nav-btn {
    background-color: #fff !important;
    border: 1px solid #e0e0e2 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: all 0.2s !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mt-ws-nav-btn:hover {
    background-color: #f7f7f7 !important;
}

.mt-ws-nav-btn svg {
    width: 24px !important;
    height: 24px !important;
    fill: #424750 !important;
    display: block !important;
}

/* Positioning */
.mt-pos-bottom-right .mt-ws-buttons { bottom: 25px; right: 25px; }
.mt-pos-bottom-left .mt-ws-buttons { bottom: 25px; left: 25px; }
.mt-pos-top-right .mt-ws-buttons { top: 25px; right: 25px; }
.mt-pos-top-left .mt-ws-buttons { top: 25px; left: 25px; }
.mt-pos-sides .mt-ws-buttons {
    top: 50%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    justify-content: space-between;
    pointer-events: none;
    width: auto;
}
.mt-pos-sides .mt-ws-nav-btn {
    pointer-events: auto;
}

/* --- Dots --- */
.mt-ws-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 14px;
    border-radius: 20px;
    z-index: 10;
    direction: rtl;
    align-items: center;
}

.mt-ws-dot {
    background-color: rgba(255, 255, 255, 0.5);
    /* تغییر مهم: استفاده از پیکسل بجای درصد برای حفظ حالت کپسولی */
    border-radius: 100px; 
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mt-ws-dot.active {
    background-color: #fff;
}