/* ============================================================
   TREATMENTS & SERVICES — SCOPED REDESIGN
   Uses original pink/purple branding palette
   ============================================================ */

.services-modern-wrap {
    padding: 100px 0;
    background: #fff;
}

/* --- Tab Bar --- */
.ss-tabs-scroller { 
    overflow-x: auto; 
    scrollbar-width: none; 
    margin: 40px 0 48px; 
}
.ss-tabs-scroller::-webkit-scrollbar { display: none; }

.ss-tabs { 
    display: flex; 
    gap: 12px; 
    justify-content: center; 
    flex-wrap: wrap; 
}

/* Reusing .svc-tab class for main.js compatibility */
.svc-tab {
    display: inline-flex; 
    align-items: center; 
    gap: 10px;
    padding: 12px 24px; 
    border-radius: 50px; 
    border: 2px solid #F0F0F0;
    background: #FFF; 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: var(--text-light);
    cursor: pointer; 
    transition: all 0.3s ease;
    white-space: nowrap; 
}

.svc-tab:hover { 
    border-color: var(--pink-light); 
    color: var(--pink);
    transform: translateY(-2px);
}

.svc-tab.active { 
    background: var(--gradient); 
    border-color: transparent; 
    color: #FFF !important; 
    box-shadow: 0 8px 20px rgba(214, 51, 132, 0.25); 
}

.ss-tab-icon {
    font-size: 0.9rem;
    color: var(--pink);
}
.svc-tab.active .ss-tab-icon { color: #FFF; }

/* --- Panel Layout --- */
.ss-panels { 
    max-width: 1240px;
    margin: 0 auto;
}

/* Reusing .svc-panel class for main.js compatibility */
.svc-panel { 
    display: none; 
    animation: ssFadeUp 0.6s ease forwards;
}

.svc-panel.active { 
    display: grid; 
    grid-template-columns: 1fr 420px; 
    gap: 40px; 
}

@keyframes ssFadeUp { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* --- Left pane (Service List) --- */
.ss-panel-left {
    background: #FFF; 
    border-radius: 24px; 
    padding: 48px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid #F3F4F6;
    display: flex; 
    flex-direction: column; 
    gap: 36px;
}

.ss-panel-title { 
    font-size: 2rem; 
    font-weight: 800; 
    color: var(--dark); 
    margin-bottom: 12px;
}

.ss-panel-subtitle { 
    font-size: 1rem; 
    color: var(--text-light);
    line-height: 1.6;
}

.ss-list { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ss-item {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 16px 20px; 
    border-radius: 12px; 
    background: #F9FAFB;
    transition: 0.3s; 
    border: 1px solid transparent;
}

.ss-item:hover { 
    background: #FFF; 
    border-color: var(--pink-light);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.05);
}

.ss-item-name { 
    font-size: 0.95rem; 
    font-weight: 500; 
    color: var(--text); 
}

.ss-item-price {
    font-weight: 700; 
    color: var(--pink);
    font-size: 0.9rem;
}

.ss-btn {
    display: inline-flex; 
    align-items: center; 
    gap: 10px;
    padding: 16px 36px; 
    border-radius: 50px; 
    background: var(--gradient);
    color: #FFF !important; 
    font-weight: 700; 
    font-size: 0.9rem; 
    transition: all 0.3s ease; 
    align-self: flex-start;
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.2);
}

.ss-btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(214, 51, 132, 0.4); 
}

/* --- Right pane (Image/Accent) --- */
.ss-panel-right {
    border-radius: 24px;
    position: relative; 
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

.ss-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.svc-panel:hover .ss-img { transform: scale(1.1); }

.ss-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #FFF;
}

.ss-badge {
    background: var(--pink);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    align-self: flex-start;
    letter-spacing: 1px;
}

.ss-overlay h4 { color: #FFF; font-size: 1.8rem; margin-bottom: 12px; font-weight: 800; }
.ss-overlay p { font-size: 1rem; color: rgba(255,255,255,0.85); margin: 0; line-height: 1.6; }

/* Responsive */
@media (max-width: 1100px) {
    .svc-panel.active { grid-template-columns: 1fr; }
    .ss-panel-right { height: 350px; }
}
@media (max-width: 768px) {
    .ss-list { grid-template-columns: 1fr; }
    .ss-panel-left { padding: 32px 24px; }
    .ss-panel-title { font-size: 1.6rem; }
    .ss-tabs { justify-content: flex-start; }
}
