﻿.td {
    min-height: 100vh;
    background: radial-gradient(1200px 700px at 20% 0%, rgba(233,30,99,.18), transparent 55%), radial-gradient(900px 600px at 80% 10%, rgba(156,39,176,.16), transparent 55%), linear-gradient(180deg,#f6e9f3 0%,#f4eaf5 35%,#f8edf4 100%);
    padding-bottom: 40px;
}

.td-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px
}

.td-glass {
    border-radius: 16px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 12px 30px rgba(30,10,30,.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* HERO */
.td-hero {
    position: relative;
    margin-top: 64px;
    padding: 46px 0 18px
}

    .td-hero:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(245,230,244,.92) 0%, rgba(245,230,244,.75) 45%, rgba(245,230,244,.35) 100%), var(--hero-url);
        background-size: cover;
        background-position: right center;
    }

.td-heroText {
    position: relative;
    padding: 18px 0 12px
}

.td-title {
    margin: 0;
    font-size: 52px;
    color: #2d2430;
    font-weight: 700
}

.td-sub {
    margin-top: 10px;
    color: rgba(45,36,48,.78);
    font-size: 14px
}

/* Top layout */
.td-top {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 22px;
    align-items: start;
}

.td-left {
    display: grid;
    gap: 18px
}

/* Intro */
.td-introBody {
    padding: 18px;
    color: rgba(45,36,48,.85);
    font-weight: 500; /*font-size: 13px;*/
    line-height: 1.6
}

.td-ticks {
    margin: 10px 0 0;
    padding: 0;
    list-style: none
}

.td-ticks li {
    position: relative;
    padding-left: 18px;
    margin: 6px 0
}

.td-ticks li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #d81b60;
    font-weight: 900
}

/* Pricing */
/*.td-price {
    padding: 14px;
    position: sticky;
    top: 90px
}

.td-priceTitle {
    font-weight: 900;
    color: rgba(45,36,48,.92);
    padding: 6px 8px 10px
}

.td-priceHead {
    display: grid;
    grid-template-columns: 1.35fr .7fr .45fr .5fr;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(0,0,0,.05);
    font-size: 11px;
    color: rgba(45,36,48,.65);
    font-weight: 900;
}

.td-priceRows {
    margin-top: 10px;
    display: grid;
    gap: 10px;
    max-height: 330px;
    overflow: auto;
    padding-right: 4px;
}

.td-row {
    display: grid;
    grid-template-columns: 1.35fr .7fr .45fr .5fr;
    gap: 10px;
    align-items: center;
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(45,36,48,.06);
    font-size: 12px;
    color: rgba(45,36,48,.85);
}

.td-rowName {
    font-weight: 900
}

.td-rowTime {
    opacity: .85
}

.td-rowFrom {
    opacity: .7;
    font-weight: 800
}

.td-priceRight {
    text-align: right
}

.td-rowPrice {
    text-align: right;
    font-weight: 900
}*/

/* buttons */
/*.td-btn {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 10px;
    padding: 12px 12px;
    font-weight: 900;
    font-size: 13px;
}

.td-btnPrimary {
    background: linear-gradient(90deg,#e91e63,#d81b60);
    color: #fff !important;
    box-shadow: 0 10px 18px rgba(233,30,99,.22);
}

.td-btnGhost {
    background: rgba(233,30,99,.10);
    border: 1px solid rgba(233,30,99,.35);
    color: #c2185b !important;
}

.td-ico {
    font-size: 16px
}*/

/* ================================
   PRICING PANEL — LIST STYLE
   (matches screenshot target)
================================== */

/* Hide the old table header row */
.td-priceHead {
    display: none !important;
}

/* Price panel spacing */
.td-price {
    padding: 22px;
    border-radius: 18px;
}

/* Title */
.td-priceTitle {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: .2px;
    margin-bottom: 10px;
}

/* List container */
#priceRows.td-priceRows {
    margin-top: 10px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.18);
}

/* IMPORTANT: neutralize old “card row” styling if it exists */
.td-priceRows .td-row {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Each line item row */
.td-priceRows .tp-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    font-size: 15px;
    line-height: 1.25;
    color: rgba(30,30,35,0.85);
}

/* Divider lines */
.td-priceRows .tp-row + .tp-row {
    border-top: 1px solid rgba(30,30,35,0.10);
}

/* Left label */
.td-priceRows .tp-name {
    font-weight: 500;
    color: rgba(30,30,35,0.88);
}

/* Middle “From” */
.td-priceRows .tp-from {
    font-weight: 500;
    color: rgba(30,30,35,0.55);
}

/* Right price */
.td-priceRows .tp-price {
    font-weight: 600;
    color: rgba(30,30,35,0.88);
}

/* Subtle hover like screenshot */
.td-priceRows .tp-row:hover {
    background: rgba(255,255,255,0.22);
}

/* ================================
   BUTTON ICONS + FONT (screenshot)
================================== */

.td-price .td-btn {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center; /* keep centered like screenshot */
    gap: 12px;
    margin-top: 14px;
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
    text-decoration: none;
}

/* Use same font styling as your list */
.td-price .td-btnText {
    font-size: 15px; /* same as list rows */
    font-weight: 600;
    letter-spacing: .2px;
    line-height: 1;
}

/* Icon tile (square) like screenshot */
.td-price .td-btnIcon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.22); /* light square behind icon */
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.20);
}

/* White SVG icon */
.td-price .td-btnSvg {
    width: 16px;
    height: 16px;
    color: rgba(255,255,255,0.95);
}

/* Button fills (keep your screenshot tone) */
.td-price .td-btnPrimary {
    background: linear-gradient(90deg, #C689AD 0%, #B8789F 100%); /*background: rgba(175,130,175,0.70);*/
    color: rgba(255,255,255,0.95);
}

.td-price .td-btnPrimary:hover {
    background: linear-gradient(90deg, #BB7FA6 0%, #AD6F95 100%); /*background: rgba(175,130,175,0.82);*/
}

.td-price .td-btnGhost {
    background: linear-gradient(90deg, #D6A9C6 0%, #C792B5 100%); /*background: rgba(175,130,175,0.55);*/
    color: rgba(255,255,255,0.95);
}

.td-price .td-btnGhost:hover {
    background: linear-gradient(90deg, #CB9FBE 0%, #BD89AE 100%); /*background: rgba(175,130,175,0.68);*/
}

/* ================================
   PRICING PANEL STICKY (restore)
   Paste at END so it overrides
================================== */



/* Sticky will NOT work if any parent has overflow hidden/auto/scroll.
   Make sure these containers allow overflow visible. */
.td,
.td-wrap,
.td-top {
    overflow: visible;
}










/* ================================
   PRICING SELECTION + TOTAL
================================== */

/* Make pricing rows selectable */
.td-priceRows .tp-row {
    cursor: pointer;
    user-select: none;
    transition: background .12s ease, box-shadow .12s ease, transform .12s ease;
}

    /* Selected row */
    .td-priceRows .tp-row.is-selected {
        background: rgba(198, 137, 173, 0.18); /* matches your button palette */
        box-shadow: inset 0 0 0 2px rgba(184, 120, 159, 0.35);
    }

/* Total bar */
.td-total {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.td-totalLabel {
    font-size: 16px;
    font-weight: 700;
    color: rgba(30,30,35,0.70);
}

.td-totalValue {
    font-size: 16px;
    font-weight: 700;
    color: rgba(30,30,35,0.90);
}

/* Disable Add To Bag until selected */
#btnBuy.is-disabled {
    opacity: .55;
    pointer-events: none;
}













/* Treatment Areas (now inside left column) */
.td-areas {
    padding: 16px
}

.td-areasTitle {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 900;
    color: rgba(45,36,48,.92)
}

/* Tabs: small width ONE ROW */
.td-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

    .td-tabs::-webkit-scrollbar {
        display: none
    }

.td-tab {
    flex: 0 0 auto;
    width: 90px; /* smaller like your required screenshot */
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(45,36,48,.12);
    background: rgba(255,255,255,.65);
    color: rgba(45,36,48,.72);
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-transform: lowercase; /* matches your "face / men's" style */
}

.td-tab.is-active {
    background: rgba(233,30,99,.10);
    border-color: rgba(233,30,99,.35);
    color: #c2185b;
}

/* Panels / grid tiles */
.td-panel {
    display: none;
    margin-top: 12px
}

    .td-panel.is-active {
        display: block
    }

.td-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.td-card {
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 18px rgba(0,0,0,.05);
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.td-card:hover {
    transform: translateY(-3px);
}

.td-card.is-selected {
    /*z-index: 2;
    border: 2px solid rgba(0, 180, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(0, 180, 255, 0.15),*/ /* soft outer ring */
    /*0 0 25px rgba(0, 180, 255, 0.45),*/ /* glow halo */
    /*0 10px 30px rgba(0, 0, 0, 0.25);*/ /* depth shadow */
    /*transform: translateY(-4px);*/
    transform: translateY(-5px);
    box-shadow: 0 0 16px rgba(233,30,99,0.4);
}

.td-thumb {
    height: 88px; /* small so 2 rows fit */
    background-size: cover;
    background-position: center;
}

.td-cardLabel {
    padding: 10px;
    font-size: 12px;
    font-weight: 900;
    color: rgba(45,36,48,.88);
    text-align: center;
}

/* CTA */
.td-cta {
    padding: 16px;
    display: grid;
    gap: 12px
}

.td-ctaText {
    color: rgba(45,36,48,.75);
    font-size: 12px;
    line-height: 1.5
}

.td-ctaBtn {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(233,30,99,.14);
    border: 1px solid rgba(233,30,99,.30);
    color: #c2185b;
    font-weight: 900;
    font-size: 13px;
}

    .td-ctaBtn span {
        font-size: 18px
    }

/* Responsive */
@media (max-width:980px) {
    .td-top {
        grid-template-columns: 1fr
    }

    .td-price {
        position: relative;
        top: auto
    }
}

@media (max-width:720px) {
    .td-title {
        font-size: 36px
    }

    .td-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:520px) {
    .td-grid {
        grid-template-columns: 1fr
    }
}







/* ================================
   NEW REQUIRED LAYOUT: Treatment Areas Tabs (full-width segmented bar)
   Paste at END of CSS
================================ */

/* Wrapper stays the same */
.ta-block {
}

/* Segmented container */
.taTabs {
    width: 100%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr; /* equal segments */
    gap: 0; /* no gaps between segments */
    border-radius: 12px;
    overflow: hidden; /* clip inner borders to radius */
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 22px rgba(0,0,0,0.05);
}

/* Segment item (NOT a button look) */
.taTabs__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: rgba(45,36,48,0.75);
    background: transparent;
    border-right: 1px solid rgba(0,0,0,0.08);
    user-select: none;
}

    /* remove last divider */
    .taTabs__item:last-child {
        border-right: none;
    }

    /* active segment */
    .taTabs__item.is-active {
        background: rgba(233,30,99,0.10);
        color: #b3124f;
    }

    /* hover (subtle, like screenshot) */
    .taTabs__item:hover {
        background: rgba(255,255,255,0.35);
    }

/* If you have too many tabs on mobile, allow horizontal scroll */
@media (max-width: 700px) {
    .taTabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .taTabs::-webkit-scrollbar {
            display: none;
        }

    .taTabs__item {
        flex: 0 0 auto;
        min-width: 120px; /* each tab readable */
    }
}



















/* =========================================
   TREATMENT DETAIL — SAFE WIDTH FIX
   Keep desktop constrained, fix mobile overflow
========================================= */

/* Global safety */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.td,
.td * {
    box-sizing: border-box;
}

.td {
    width: 100%;
    overflow: visible;
}

/* Desktop: keep centered content width */
.td-wrap {
    width: min(1100px, calc(100% - 36px));
    margin: 0 auto;
    padding: 0;
}

.td-top,
.td-left,
.td-price,
.td-areas,
.td-panel,
.td-grid,
.td-card,
.taTabs,
.taTabs__item,
.td-priceRows,
#priceRows {
    min-width: 0;
    max-width: 100%;
}

/* Desktop layout stays controlled */
.td-top {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
}

/* Prevent children from forcing overflow */
.td-card,
.td-price,
.td-glass,
.td-thumb,
.td-priceRows .tp-row {
    width: 100%;
    min-width: 0;
}

.td-priceRows .tp-name,
.td-priceRows .tp-from,
.td-priceRows .tp-price,
.td-cardLabel,
.taTabs__item,
.td-title,
.td-sub,
.td-introBody,
.td-ctaText {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* =========================================
   TABLET
========================================= */
@media (max-width: 980px) {
    .td-wrap {
        width: min(1100px, calc(100% - 28px));
    }

    .td-top {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .td-price {
        position: relative;
        top: auto;
        order: 2;
    }

    .td-left {
        order: 1;
    }
}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 700px) {
    .td-wrap {
        width: calc(100% - 24px);
    }

    .td-hero {
        margin-top: 56px;
        padding: 22px 0 10px;
    }

    .td-heroText {
        padding: 10px 0 8px;
    }

    .td-title {
        font-size: 34px;
        line-height: 1.08;
    }

    .td-sub {
        font-size: 14px;
        line-height: 1.5;
    }

    .td-top {
        margin-top: 14px;
        gap: 14px;
    }

    .td-glass {
        border-radius: 14px;
    }

    .td-introBody,
    .td-areas,
    .td-price,
    .td-cta {
        padding: 14px;
    }

    .td-priceTitle,
    .td-areasTitle {
        font-size: 16px;
    }

    /* Tabs: wrap inside page width */
    .taTabs {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        overflow: hidden;
        border-radius: 12px;
    }

    .taTabs__item {
        min-width: 0 !important;
        width: 100%;
        height: 42px;
        padding: 0 8px;
        font-size: 13px;
        text-align: center;
        border-right: 1px solid rgba(0,0,0,0.08);
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

        .taTabs__item:nth-child(2n) {
            border-right: none;
        }

        .taTabs__item:nth-last-child(-n + 2) {
            border-bottom: none;
        }

    .td-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .td-thumb {
        height: 120px;
    }

    .td-cardLabel {
        padding: 10px 12px;
        font-size: 13px;
        text-align: left;
    }

    .td-priceRows .tp-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 10px;
        padding: 12px;
    }

    .td-priceRows .tp-name {
        grid-column: 1 / 2;
        font-size: 14px;
    }

    .td-priceRows .tp-from {
        grid-column: 1 / 2;
        font-size: 13px;
        color: rgba(30,30,35,0.55);
    }

    .td-priceRows .tp-price {
        grid-column: 2 / 3;
        grid-row: 1 / span 2;
        align-self: center;
        justify-self: end;
        font-size: 14px;
    }

    .td-total {
        padding: 12px;
    }

    .td-totalLabel,
    .td-totalValue {
        font-size: 15px;
    }

    .td-price .td-btn {
        padding: 13px 14px;
        margin-top: 12px;
    }

    .td-price .td-btnText {
        font-size: 14px;
    }

    .td-price .td-btnIcon {
        width: 24px;
        height: 24px;
    }

    .td-ctaBtn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* =========================================
   SMALLER PHONES
========================================= */
@media (max-width: 420px) {
    .td-wrap {
        width: calc(100% - 20px);
    }

    .td-title {
        font-size: 30px;
    }

    .td-thumb {
        height: 108px;
    }

    .taTabs {
        grid-template-columns: 1fr 1fr;
    }

    .taTabs__item {
        font-size: 12px;
        padding: 0 6px;
    }

    .td-priceRows .tp-row {
        padding: 11px 10px;
    }
}

/* Restore sticky pricing panel on desktop */
.td-top,
.td-wrap,
.td-left {
    overflow: visible !important;
}

.td-price {
    position: sticky !important;
    top: 90px;
    align-self: start;
    z-index: 5;
}

/* mobile/tablet: not sticky */
@media (max-width: 980px) {
    .td-price {
        position: relative !important;
        top: auto !important;
    }
}







/* =========================================
   FINAL OVERRIDE — STICKY PRICE PANEL
   Paste at absolute END of file
========================================= */

/* allow sticky to work */
html,
body {
    overflow-x: hidden;
}

.td,
.td-wrap,
.td-top,
.td-left {
    overflow: visible !important;
}

/* desktop layout */
.td-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: 22px !important;
    align-items: start !important;
}

/* sticky sidebar */
aside.td-price.td-glass {
    position: sticky !important;
    top: 90px !important;
    align-self: start !important;
    height: fit-content !important;
    z-index: 20 !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 !important;
}

/* mobile/tablet should not be sticky */
@media (max-width: 980px) {
    .td-top {
        grid-template-columns: 1fr !important;
    }

    aside.td-price.td-glass {
        position: relative !important;
        top: auto !important;
        max-width: 100% !important;
    }
}














/* =========================================
   STICKY FIX — include layout parents too
========================================= */

html,
body {
    overflow-x: hidden;
}

body,
main,
main[role="main"],
.td,
.td-wrap,
.td-top,
.td-left {
    overflow: visible !important;
    transform: none !important;
    filter: none !important;
    perspective: none !important;
    contain: none !important;
}

.td-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    align-items: start;
}

aside.td-price.td-glass {
    position: sticky !important;
    top: 90px !important;
    align-self: start !important;
    z-index: 20 !important;
    height: max-content !important;
}

/* disable sticky on tablet/mobile */
@media (max-width: 980px) {
    .td-top {
        grid-template-columns: 1fr !important;
    }

    aside.td-price.td-glass {
        position: relative !important;
        top: auto !important;
    }
}