/* ======================================================
   Smile Carousel - Style
   ====================================================== */

.smile-carousel-wrapper {
    width: 100%;
    padding: 20px 0;
    font-family: inherit;
    box-sizing: border-box;
}

/* ── Filter Tabs ── */
.smile-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.smile-tab {
    padding: 8px 20px;
    border: 2px solid #024B8E;
    border-radius: 30px;
    background: transparent;
    color: #024B8E;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.smile-tab:hover,
.smile-tab.active {
    background: #024B8E;
    color: #fff;
}

/* ── Carousel Outer ── */
.smile-carousel-outer {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Arrows ── */
.smile-arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    background-color: #024B8E;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
    line-height: 1;
    padding: 0;
    align-self: center;
    overflow: hidden;
}

.smile-arrow span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 22px;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.smile-arrow:hover { background-color: #012d56; }
.smile-arrow:disabled { background-color: #aac3e0; cursor: not-allowed; }

/* ── Carousel Container ── */
.smile-carousel-container {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.smile-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* ── Card ── */
.smile-card {
    flex-shrink: 0;
    text-align: center;
    min-width: 0;
}

.smile-card.hidden { display: none !important; }

/* ── Before/After Wrapper ── */
.smile-ba-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.smile-ba-container {
    position: relative;
    width: 100%;
    padding-top: 125%;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
}

.smile-before-img,
.smile-after-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    pointer-events: none;
}

.smile-after-img { clip-path: inset(0 50% 0 0); }

/* ── Divider ── */
.smile-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    pointer-events: none;
}

/* ── Handle ── */
.smile-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #024B8E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.smile-handle span {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* ── Labels ── */
.smile-label {
    position: absolute;
    bottom: 10px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    pointer-events: none;
}

.before-label { left: 8px; }
.after-label  { right: 8px; }

/* ── Name & Desc ── */
.smile-name {
    font-size: 15px;
    font-weight: 700;
    margin: 8px 0 5px;
    color: #1a1a1a;
}

.smile-desc {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* ======================================================
   Responsive
   ====================================================== */

@media (max-width: 1024px) {
    .smile-arrow { width: 34px; height: 34px; min-width: 34px; min-height: 34px; }
}

@media (max-width: 768px) {
    .smile-arrow { width: 32px; height: 32px; min-width: 32px; min-height: 32px; }
    .smile-tab { padding: 6px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
    .smile-tabs { gap: 6px; }
    .smile-tab { padding: 5px 12px; font-size: 12px; }
    .smile-arrow { width: 30px; height: 30px; min-width: 30px; min-height: 30px; }
}
