/* ==========================================================================
   Salon provider page V2 — mobile-first video-forward redesign
   (design_handoff_salon_booking). Tokens are final per the design handoff.
   Class prefix: pp2-
   ========================================================================== */

:root {
    --pp2-pink: #E50050;
    --pp2-pink-dark: #C10045;
    --pp2-pink-border: #F0DAE0;
    --pp2-pink-tint: #F9E8EC;
    --pp2-text: #1A1A1A;
    --pp2-body: #4A4744;
    --pp2-muted: #8A8580;
    --pp2-faint: #A39C94;
    --pp2-faint-2: #B0AAA3;
    --pp2-surface-warm: #FBF5F1;
    --pp2-chip-fill: #F5F3F0;
    --pp2-chip-fill-2: #F7F4F1;
    --pp2-border: #EEEAE5;
    --pp2-border-2: #ECE7E1;
    --pp2-border-3: #F0ECE7;
    --pp2-border-4: #F4F0EB;
    --pp2-border-5: #EFEAE4;
    --pp2-border-6: #E4DED7;
    --pp2-border-warm: #F1E7DF;
    --pp2-gold: #FFC24B;
    --pp2-green: #3FA86B;
    --pp2-green-bg: #EAF7EF;
    --pp2-disabled-bg: #EDE8E2;
    --pp2-disabled-text: #B4ADA5;
    --pp2-shadow-btn: 0 4px 12px rgba(229, 0, 80, 0.35);
    --pp2-shadow-btn-lg: 0 6px 18px rgba(229, 0, 80, 0.4);
    --pp2-shadow-card: 0 8px 22px rgba(0, 0, 0, 0.06);
    --pp2-shadow-reel: 0 6px 18px rgba(0, 0, 0, 0.12);
    --pp2-shadow-bar: 0 -6px 20px rgba(0, 0, 0, 0.05);
    --pp2-font: -apple-system, 'SF Pro Text', system-ui, 'Segoe UI', sans-serif;
}

/* --------------------------------------------------------------------------
   Layout chrome: V2 is an app-like screen — hide the white-label header and
   feed footer, but KEEP the shared feed sidebar (desktop) + bottom nav (mobile)
   so the salon page carries the same navigation as the rest of the site.
   -------------------------------------------------------------------------- */
/* This stylesheet only loads on the V2 page, so these can be unprefixed —
   no body-class dependency means no flash of chrome before deferred JS runs. */
.wl-header,
.feed-footer {
    display: none !important;
}

body {
    background: var(--pp2-surface-warm);
}

.wl-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Desktop: reserve the 56px sidebar rail on the left (the sidebar is
   position:fixed, so this keeps the page column clear of it). Matches the
   offset the feed-booking layout normally applies. */
@media (min-width: 768px) {
    .wl-content {
        margin-left: 56px !important;
    }
}

/* Centered phone-width column on larger screens; edge-to-edge on mobile. */
.pp2-page {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    color: var(--pp2-text);
    font-family: var(--pp2-font);
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 481px) {
    .pp2-page {
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
    }
}

.pp2-page a {
    color: inherit;
    text-decoration: none;
}

/* The hidden attribute always wins, even over component display rules
   (flex/grid/inline-flex) — one guard for the whole page. */
.pp2-page [hidden],
.pp2-reviews-modal[hidden],
.pp2-aside [hidden] {
    display: none !important;
}

.pp2-hidescroll {
    scrollbar-width: none;
}

.pp2-hidescroll::-webkit-scrollbar {
    display: none;
}

.pp2-scroll {
    padding-bottom: 120px; /* clears the fixed sticky book bar */
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.pp2-hero {
    position: relative;
    height: 340px;
    background: var(--pp2-chip-fill);
}

.pp2-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pp2-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.75) 100%);
}

.pp2-hero__actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 10px;
}

.pp2-glass-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pp2-glass-btn:active {
    transform: scale(0.92);
}

.pp2-hero__watch {
    position: absolute;
    top: 16px;
    left: 16px;
    display: none;
    align-items: center;
    gap: 7px;
    padding: 7px 13px 7px 9px;
    border: 0;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.pp2-hero__watch.is-visible {
    display: inline-flex;
}

.pp2-hero__watch:active {
    transform: scale(0.95);
}

.pp2-hero__watch-play {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp2-hero__watch-label {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.pp2-hero__bottom {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 22px;
}

.pp2-hero__badge {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 100px;
    background: rgba(229, 0, 80, 0.92);
    margin-bottom: 11px;
}

.pp2-hero__badge.is-visible {
    display: inline-flex;
}

.pp2-hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
    animation: pp2Pulse 2s ease-in-out infinite;
}

.pp2-hero__badge-text {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Closed / opens-later state: neutral dark pill, static dot */
.pp2-hero__badge--closed {
    background: rgba(26, 26, 26, 0.72);
}

.pp2-hero__badge--closed .pp2-hero__badge-dot {
    background: var(--pp2-faint-2);
    box-shadow: none;
    animation: none;
}

.pp2-hero__name {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    margin: 0;
}

.pp2-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 8px;
}

.pp2-hero__rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pp2-hero__stars {
    color: var(--pp2-gold);
    font-size: 14px;
    letter-spacing: 1px;
}

.pp2-hero__rating-value {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pp2-hero__rating-count {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

.pp2-hero__sep {
    color: rgba(255, 255, 255, 0.4);
}

.pp2-hero__address {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.pp2-section {
    padding: 22px 0 4px;
}

.pp2-section__head {
    padding: 0 20px;
    margin-bottom: 14px;
}

.pp2-section__title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 0;
}

.pp2-section__subtitle {
    font-size: 13px;
    color: var(--pp2-muted);
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Featured — "Les plus réservées"
   -------------------------------------------------------------------------- */
.pp2-featured {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 0 20px 8px;
}

.pp2-featured-card {
    flex: 0 0 auto;
    width: 196px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pp2-border);
    box-shadow: var(--pp2-shadow-card);
}

.pp2-featured-card__media {
    position: relative;
    height: 70px;
    background: var(--pp2-chip-fill);
}

.pp2-featured-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pp2-featured-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--pp2-pink-dark);
    text-transform: uppercase;
}

.pp2-featured-card__video {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px 5px 8px;
    border: 0;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
}

.pp2-featured-card__video:active {
    transform: scale(0.94);
}

.pp2-featured-card__body {
    padding: 8px 11px 10px;
}

.pp2-featured-card__name {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pp2-featured-card__duration {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--pp2-muted);
    font-size: 12px;
}

.pp2-featured-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.pp2-featured-card__price {
    font-size: 16px;
    font-weight: 800;
    color: var(--pp2-text);
}

.pp2-featured-card .pp2-btn-book {
    padding: 7px 13px;
    font-size: 12.5px;
}

.pp2-featured-card__price .pp2-price-old {
    font-size: 13px;
    font-weight: 600;
    color: var(--pp2-muted);
    text-decoration: line-through;
    margin-left: 5px;
}

.pp2-btn-book {
    display: inline-block;
    padding: 10px 18px;
    border: 0;
    border-radius: 100px;
    background: var(--pp2-pink);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--pp2-shadow-btn);
}

.pp2-btn-book:active {
    transform: scale(0.95);
}

/* --------------------------------------------------------------------------
   Full menu — chips + service rows
   -------------------------------------------------------------------------- */
.pp2-menu {
    padding: 26px 0 4px;
}

.pp2-menu__title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 0 0 12px;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Subcategory filter chips (Prestations tab)
   -------------------------------------------------------------------------- */
.pp2-chips {
    display: flex;
    gap: 9px;
    padding: 16px 20px 2px;
    overflow-x: auto;
}

.pp2-chip {
    flex: 0 0 auto;
    padding: 9px 16px;
    border: 1px solid var(--pp2-border-6);
    border-radius: 100px;
    background: #fff;
    color: var(--pp2-pink-dark);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.pp2-chip.is-active {
    background: var(--pp2-pink);
    border-color: var(--pp2-pink);
    color: #fff;
}

.pp2-search {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 18px;
    border-radius: 100px;
    border: 1px solid var(--pp2-border-6);
    background: #fff;
    margin: 0 20px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.pp2-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--pp2-text);
    font-family: inherit;
}

.pp2-search input::-webkit-search-cancel-button {
    display: none;
}

.pp2-search__clear {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: var(--pp2-disabled-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pp2-menu__empty {
    text-align: center;
    padding: 30px 10px;
    color: var(--pp2-muted);
    font-size: 14px;
}

.pp2-cat {
    margin: 0 20px 10px;
}

.pp2-cat__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px 14px 18px;
    border: 0;
    border-radius: 14px;
    background: #F7F5F3;
    cursor: pointer;
    user-select: none;
    font-family: inherit;
    text-align: left;
}

.pp2-cat__bar {
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--pp2-pink);
}

.pp2-cat__name {
    flex: 1;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--pp2-text);
}

.pp2-cat__count {
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    border-radius: 100px;
    background: var(--pp2-disabled-bg);
    color: var(--pp2-muted);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp2-cat__chevron {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--pp2-border-6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.pp2-cat.is-open .pp2-cat__chevron {
    transform: rotate(180deg);
}

.pp2-cat__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* Spotlight — "Services mis en avant" */
.pp2-menu__groups {
    padding: 0;
}

.pp2-service-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid var(--pp2-border-5);
    background: #fff;
}

.pp2-service-row__duration {
    color: var(--pp2-muted);
    font-size: 13px;
    margin-top: 5px;
}

.pp2-service-row__price {
    font-size: 14px;
    font-weight: 700;
    margin-top: 6px;
}

.pp2-service-row__info {
    flex: 1;
    min-width: 0;
}

.pp2-service-row__name-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pp2-service-row__name {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.pp2-video-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border: 0;
    border-radius: 100px;
    background: var(--pp2-pink-tint);
    color: var(--pp2-pink-dark);
    font-size: 10px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
}

.pp2-video-tag:active {
    transform: scale(0.92);
}



.pp2-btn-book-outline {
    flex: 0 0 auto;
    display: inline-block;
    padding: 9px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--pp2-border-6);
    color: var(--pp2-text) !important;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    background: #fff;
}

.pp2-btn-book-outline:active {
    background: var(--pp2-chip-fill);
}
