/* ========== THEME PREVIEW ========== */
.theme-preview-section {
    padding: 110px 0;
    background: var(--cream-2);
}

.theme-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 42px;
    flex-wrap: wrap;
}

.theme-tab {
    padding: 12px 26px;
    background: var(--warm-white);
    border: 1.5px solid rgba(201, 168, 76, 0.2);
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(160, 120, 48, 0.06);
}

.theme-tab:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: rgba(201, 168, 76, 0.06);
}

.theme-tab.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    border-color: var(--gold);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

.theme-panel {
    display: none;
    animation: fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.theme-panel.active {
    display: block;
}

.theme-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--warm-white);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius);
    padding: 15px;
    padding-right: 45px;
    box-shadow: 0 8px 35px rgba(160, 120, 48, 0.1);
    overflow: hidden;
}

.theme-showcase img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 4px);
    box-shadow: 0 12px 40px rgba(160, 120, 48, 0.18);
    transition: var(--transition);
}

.theme-showcase img:hover {
    transform: scale(1.02);
}

.theme-info h3 {
    font-size: 2rem;
    margin-bottom: 14px;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
}

.theme-info > p {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 22px;
    font-size: 0.95rem;
}

.theme-features {
    margin-bottom: 30px;
}

.theme-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.theme-features li:last-child {
    border-bottom: none;
}

.theme-features li i {
    color: var(--gold-dark);
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
}

/* Before/After Section */
.before-after-section {
    padding: 110px 0;
    background: var(--cream);
}

.ba-slider-container {
    max-width: 820px;
    margin: 0 auto;
}

.ba-slider {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: col-resize;
    box-shadow: 0 20px 65px rgba(160, 120, 48, 0.2);
    border: 2px solid rgba(201, 168, 76, 0.2);
    user-select: none;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-after {
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.05s;
}

.ba-label {
    position: absolute;
    bottom: 22px;
    padding: 8px 22px;
    background: rgba(255, 248, 230, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(201, 168, 76, 0.25);
    box-shadow: 0 4px 15px rgba(160, 120, 48, 0.15);
}

.ba-before .ba-label {
    left: 22px;
}

.ba-after .ba-label {
    right: 22px;
}

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.ba-handle-line {
    width: 3px;
    flex: 1;
    background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
    border-radius: 3px;
}

.ba-handle-circle {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    box-shadow: 0 6px 25px rgba(160, 120, 48, 0.45);
    flex-shrink: 0;
    border: 3px solid rgba(255, 253, 247, 0.9);
}

@media (max-width: 768px) {
    .theme-showcase {
        grid-template-columns: 1fr;
        padding: 12px;
        padding-bottom: 30px;
    }

    .theme-showcase .theme-info {
        padding: 0 10px;
    }

    .ba-slider {
        height: 320px;
    }
}