/* Structural Swiper fallback styling to prevent vertical card stacking when core Swiper CSS isn't loaded */
.swiper {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: auto !important; /* Make slides stretch to tallest sibling height */
    position: relative;
    transition-property: transform;
}

/* Fix shadows clipping and add safe padding */
.tc-56732cf9-carousel {
    width: 100%;
    padding: 16px 16px 60px 16px !important;
}

.tc-56732cf9-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%; /* Stretch card container to full slide height */
}

.tc-56732cf9-image-comparison {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    user-select: none;
    --slider-pos: 50%;
    display: flex;
}

.tc-56732cf9-image-after,
.tc-56732cf9-image-before {
    position: absolute;
    top: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: none;
}

.tc-56732cf9-image-before {
    left: 0;
    width: var(--slider-pos, 50%) !important;
}

.tc-56732cf9-image-after {
    left: var(--slider-pos, 50%);
    width: calc(100% - var(--slider-pos, 50%)) !important;
}

.tc-56732cf9-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #ffffff;
    transform: translateX(-50%);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.tc-56732cf9-handle-line {
    flex-grow: 1;
    width: 2px;
    background: #ffffff;
}

.tc-56732cf9-handle-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
}

.tc-56732cf9-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 3;
}

/* Badges styling */
.tc-56732cf9-badge {
    position: absolute;
    top: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 5;
    pointer-events: none;
}

.tc-56732cf9-badge-before {
    left: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
}

.tc-56732cf9-badge-after {
    right: 12px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
}

.tc-56732cf9-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tc-56732cf9-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.tc-56732cf9-tag {
    font-size: 14px;
    font-weight: 600;
    background: #e2f0e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 20px;
}

.tc-56732cf9-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

/* Centered Pagination / Progress Dots */
.tc-56732cf9-pagination {
    position: absolute !important;
    bottom: 10px !important;
    left: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    z-index: 10 !important;
}

.tc-56732cf9-bullet {
    width: 8px !important;
    height: 8px !important;
    background-color: #cccccc !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    border-radius: 50% !important;
    display: inline-block !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.tc-56732cf9-bullet.swiper-pagination-bullet-active {
    background-color: #2e7d32 !important;
    transform: scale(1.3) !important;
}
