/*
 * Patricia public web pages (v2.11): the salon page /r/{CODE} and the booking flow /r/{CODE}/book.
 * The customer app's look: rose #FF002C, gold #DEA700, ink #1C202F, blush page (#FDF2F8 → #FCE7F3), white rounded
 * cards, El Messiri (served from /fonts/patricia, no external font). Mobile first; RTL and LTR through logical
 * properties. Shared tokens (--pw-*) are meant to be reused by every web page.
 */

@font-face { font-family: 'El Messiri'; src: url('../fonts/patricia/ElMessiri-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'El Messiri'; src: url('../fonts/patricia/ElMessiri-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'El Messiri'; src: url('../fonts/patricia/ElMessiri-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'El Messiri'; src: url('../fonts/patricia/ElMessiri-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
    --pw-primary: #FF002C;
    --pw-primary-deep: #D90026;
    --pw-gold: #DEA700;
    --pw-text: #1C202F;
    --pw-muted: #6E6577;
    --pw-faint: #A79BA6;
    --pw-bg: #FDF2F8;
    --pw-bg-end: #FCE7F3;
    --pw-card: #FFFFFF;
    --pw-blush: #FFF0F4;
    --pw-petal: #FFD3DE;
    --pw-line: rgba(255, 0, 44, .12);
    --pw-radius: 22px;
    --pw-radius-sm: 14px;
    --pw-shadow: 0 10px 30px rgba(255, 0, 44, .08), 0 2px 8px rgba(28, 32, 47, .05);
    --pw-font: 'El Messiri', -apple-system, 'Segoe UI', Tahoma, sans-serif;
    --pw-width: 560px;
    --pw-gutter: 16px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--pw-font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--pw-text);
    background: linear-gradient(180deg, var(--pw-bg) 0%, #FFF8FB 45%, var(--pw-bg-end) 100%) fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--pw-font); line-height: 1.35; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(255, 0, 44, .45); outline-offset: 2px; border-radius: 8px; }

.pw-skip {
    position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50;
    background: var(--pw-card); color: var(--pw-primary); padding: 8px 14px; border-radius: 999px; font-weight: 700;
}
.pw-skip:focus { top: 12px; }

.pw-page {
    width: 100%;
    max-width: var(--pw-width);
    margin: 0 auto;
    padding: 0 var(--pw-gutter) calc(112px + env(safe-area-inset-bottom));
}
.pw-icon { width: 18px; height: 18px; flex: none; }
.pw-muted { color: var(--pw-muted); }
.pw-ltr { direction: ltr; unicode-bidi: isolate; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.pw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 0;
    font: 700 16px/1.2 var(--pw-font); text-decoration: none; cursor: pointer; text-align: center;
    transition: transform .12s ease, box-shadow .12s ease;
}
.pw-btn:active { transform: scale(.98); }
.pw-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #FF4D6A 0%, var(--pw-primary) 55%, var(--pw-primary-deep) 100%);
    box-shadow: 0 10px 24px rgba(255, 0, 44, .28);
}
.pw-btn-soft { color: var(--pw-primary); background: var(--pw-card); border: 1.5px solid var(--pw-petal); }
.pw-btn-small { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.pw-btn-block { width: 100%; }

.pw-chip {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 12px; border-radius: 999px;
    background: var(--pw-blush); color: var(--pw-primary-deep); border: 1px solid var(--pw-line);
    font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pw-chip-gold { background: #FFF7DD; color: #8A6800; border-color: rgba(222, 167, 0, .3); }

/* ── Hero ──────────────────────────────────────────────────────────── */
.pw-hero { position: relative; }
.pw-cover {
    position: relative;
    margin: 0 calc(var(--pw-gutter) * -1);
    aspect-ratio: 16 / 9;
    max-height: 300px;
    width: calc(100% + var(--pw-gutter) * 2);
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    background: linear-gradient(135deg, #FFE1EA 0%, #FFB8CA 55%, #FF8FAB 100%);
}
.pw-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pw-cover::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 45%;
    background: linear-gradient(180deg, rgba(253, 242, 248, 0) 0%, rgba(253, 242, 248, .55) 100%);
}
.pw-topbar {
    position: absolute; top: 12px; inset-inline: 0; z-index: 2;
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.pw-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .86); color: var(--pw-text); text-decoration: none;
    font-size: 13px; font-weight: 700; box-shadow: 0 4px 14px rgba(28, 32, 47, .08);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pw-pill img { width: 22px; height: 22px; object-fit: contain; }
.pw-brand { font-size: 15px; }

.pw-profile {
    position: relative; z-index: 1;
    margin-top: -64px;
    padding: 58px 18px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: var(--pw-shadow);
    text-align: center;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.pw-logo {
    position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
    width: 100px; height: 100px; border-radius: 50%; overflow: hidden;
    border: 4px solid #fff; background: var(--pw-blush);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 26px rgba(255, 0, 44, .18);
    font-size: 40px; font-weight: 700; color: var(--pw-primary);
}
.pw-logo img { width: 100%; height: 100%; object-fit: cover; }
.pw-profile h1 { font-size: 25px; font-weight: 700; }
.pw-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0 10px; }
.pw-meta { display: flex; justify-content: center; align-items: flex-start; gap: 5px; color: var(--pw-muted); font-size: 14px; margin-top: 4px; }
.pw-meta .pw-icon { width: 16px; height: 16px; margin-top: 3px; color: var(--pw-primary); }
.pw-rating { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 8px; font-size: 15px; }
.pw-rating b { font-weight: 700; }
.pw-stars { color: var(--pw-gold); letter-spacing: 1px; font-size: 17px; line-height: 1; }
.pw-stars .off { color: #EADFE5; }
.pw-bio { margin-top: 12px; font-size: 15px; line-height: 1.85; white-space: pre-line; }
.pw-hero-cta { display: flex; gap: 10px; margin-top: 16px; }
.pw-hero-cta .pw-btn { flex: 1; }

/* ── Section navigation ───────────────────────────────────────────── */
.pw-nav {
    position: sticky; top: 0; z-index: 5;
    margin: 14px calc(var(--pw-gutter) * -1) 0;
    padding: 10px var(--pw-gutter);
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    background: rgba(253, 242, 248, .82);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.pw-nav::-webkit-scrollbar { display: none; }
.pw-nav a {
    flex: none; padding: 6px 14px; border-radius: 999px; text-decoration: none;
    background: var(--pw-card); border: 1px solid var(--pw-petal); color: var(--pw-text);
    font-size: 14px; font-weight: 600;
}

/* ── Sections ─────────────────────────────────────────────────────── */
.pw-section { margin-top: 26px; }
.pw-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pw-section h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pw-section h2::before { content: ''; width: 6px; height: 20px; border-radius: 6px; background: linear-gradient(180deg, var(--pw-primary), #FF7A92); }
.pw-section-note { color: var(--pw-muted); font-size: 13px; }
.pw-card {
    background: var(--pw-card); border-radius: var(--pw-radius); box-shadow: var(--pw-shadow);
    border: 1px solid rgba(255, 211, 222, .6);
}

/* Horizontal scroll-snap strips (no script). */
.pw-strip {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--pw-gutter) * -1); padding: 4px var(--pw-gutter) 14px;
    scrollbar-width: none; overscroll-behavior-x: contain;
}
.pw-strip::-webkit-scrollbar { display: none; }
.pw-strip > * { scroll-snap-align: start; flex: none; }

/* Banners */
.pw-banner {
    position: relative; width: 86%; aspect-ratio: 16 / 9; border-radius: var(--pw-radius); overflow: hidden;
    background: linear-gradient(135deg, #FFE1EA, #FF8FAB); box-shadow: var(--pw-shadow); color: #fff; text-decoration: none;
}
.pw-strip > .pw-banner:only-child { width: 100%; }
.pw-banner img, .pw-banner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #2a1a22; }
.pw-banner-text {
    position: absolute; inset: auto 0 0 0; padding: 26px 16px 12px;
    background: linear-gradient(180deg, rgba(28, 32, 47, 0) 0%, rgba(28, 32, 47, .7) 100%);
    pointer-events: none;
}
.pw-banner-text b { display: block; font-size: 17px; line-height: 1.4; }
.pw-banner-text span { display: block; font-size: 13px; opacity: .92; }

/* Offers */
.pw-offer { width: 248px; display: flex; flex-direction: column; overflow: hidden; }
.pw-offer-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #FFE1EA 0%, #FFB8CA 55%, #FF8FAB 100%); }
.pw-offer-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pw-offer-media .pw-badge { position: absolute; top: 10px; inset-inline-start: 10px; }
.pw-offer-media .pw-badge-big {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 34px; font-weight: 700; text-shadow: 0 4px 18px rgba(217, 0, 38, .35);
}
.pw-badge {
    display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--pw-primary); color: #fff;
    font-size: 13px; font-weight: 700; box-shadow: 0 6px 14px rgba(255, 0, 44, .25);
}
.pw-offer-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pw-offer-body h3 {
    font-size: 16px; font-weight: 700;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pw-offer-services { color: var(--pw-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-offer-when { display: flex; gap: 5px; align-items: flex-start; color: var(--pw-muted); font-size: 12.5px; line-height: 1.6; }
.pw-offer-when .pw-icon { width: 14px; height: 14px; margin-top: 2px; color: var(--pw-gold); }
.pw-offer-body .pw-btn { margin-top: auto; }
.pw-offer-body .pw-price { margin: 4px 0 8px; }

.pw-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pw-price strong { color: var(--pw-primary); font-size: 17px; font-weight: 700; white-space: nowrap; }
.pw-price del { color: var(--pw-faint); font-size: 13px; white-space: nowrap; }

/* Services */
.pw-group + .pw-group { margin-top: 14px; }
.pw-group { padding: 6px 14px; }
.pw-group h3 { font-size: 16px; font-weight: 700; padding: 10px 0 4px; color: var(--pw-primary-deep); }
.pw-service {
    display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center;
    padding: 12px 0;
}
.pw-service.no-photo { grid-template-columns: minmax(0, 1fr) auto; }
.pw-service + .pw-service { border-top: 1px solid var(--pw-line); }
.pw-service-photo { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--pw-blush); }
.pw-service-photo img { width: 100%; height: 100%; object-fit: cover; }
.pw-service h4 { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.pw-service p { color: var(--pw-muted); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pw-service-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 3px; font-size: 12.5px; color: var(--pw-muted); }
.pw-service-meta .pw-icon { width: 14px; height: 14px; }
.pw-service-meta span { display: inline-flex; align-items: center; gap: 4px; }
.pw-service-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: end; }
.pw-service-side .pw-price { flex-direction: column; align-items: flex-end; gap: 0; }
.pw-tag { padding: 0 8px; border-radius: 999px; background: #FFF7DD; color: #8A6800; font-weight: 700; font-size: 12px; }

/* Gallery */
.pw-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pw-gallery a { position: relative; display: block; aspect-ratio: 1; border-radius: var(--pw-radius-sm); overflow: hidden; background: var(--pw-blush); }
.pw-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.pw-gallery a:hover img { transform: scale(1.04); }

/* Team */
.pw-member { width: 124px; padding: 14px 10px; text-align: center; }
.pw-member-photo {
    width: 76px; height: 76px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden;
    background: var(--pw-blush); border: 3px solid #fff; box-shadow: 0 6px 16px rgba(255, 0, 44, .14);
    display: flex; align-items: center; justify-content: center; color: var(--pw-primary); font-size: 28px; font-weight: 700;
}
.pw-member-photo img { width: 100%; height: 100%; object-fit: cover; }
.pw-member b { display: block; font-size: 14.5px; line-height: 1.4; }
.pw-member span { display: block; color: var(--pw-muted); font-size: 12.5px; line-height: 1.5; }

/* Reviews */
.pw-score { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 10px; }
.pw-score-value { font-size: 38px; font-weight: 700; line-height: 1; color: var(--pw-text); }
.pw-score .pw-stars { font-size: 19px; }
.pw-reviews { display: grid; gap: 10px; }
.pw-review { padding: 14px 16px; }
.pw-review-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pw-review-head .pw-stars { font-size: 15px; }
.pw-review p { margin-top: 6px; font-size: 14.5px; line-height: 1.8; white-space: pre-line; }
.pw-review footer { margin-top: 6px; font-size: 13px; color: var(--pw-muted); }
.pw-review footer b { color: var(--pw-text); }

/* Hours */
.pw-hours { padding: 6px 16px; }
.pw-hours-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; font-size: 14.5px; }
.pw-hours-row + .pw-hours-row { border-top: 1px solid var(--pw-line); }
.pw-hours-row .pw-day { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.pw-hours-row .pw-times { text-align: end; }
.pw-hours-row.closed .pw-times { color: var(--pw-faint); }
.pw-hours-row.today {
    margin: 0 -10px; padding: 9px 10px; border-radius: 14px; background: var(--pw-blush); border-top-color: transparent;
}
.pw-hours-row.today + .pw-hours-row { border-top-color: transparent; }
.pw-hours-row.today .pw-day { color: var(--pw-primary-deep); }
.pw-today { font-size: 11.5px; padding: 0 8px; border-radius: 999px; background: var(--pw-primary); color: #fff; font-weight: 700; }

/* Location */
.pw-location { padding: 14px; }
.pw-location-line { display: flex; gap: 6px; align-items: flex-start; font-size: 14.5px; }
.pw-location-line .pw-icon { color: var(--pw-primary); margin-top: 4px; }
.pw-map { margin: 12px 0 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--pw-blush); }
.pw-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.pw-location .pw-btn { margin-top: 12px; }

/* Share */
.pw-share { padding: 14px; }
.pw-share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-share-buttons .pw-btn { flex: 1 1 30%; min-width: 96px; }
.pw-link {
    margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--pw-blush); border: 1px dashed var(--pw-petal);
    font-size: 14px; text-align: center; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all;
}

/* Footer */
.pw-footer { margin-top: 30px; text-align: center; }
.pw-app { padding: 18px 16px; }
.pw-app h2 { font-size: 18px; font-weight: 700; }
.pw-app p { color: var(--pw-muted); font-size: 14px; margin-top: 4px; }
.pw-stores { display: flex; gap: 10px; margin-top: 14px; }
.pw-store {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    padding: 8px 10px; border-radius: 16px; text-decoration: none; color: #fff; background: var(--pw-text);
    font-weight: 700; font-size: 14px;
}
.pw-store svg { width: 20px; height: 20px; flex: none; }
.pw-after { color: var(--pw-muted); font-size: 13px; line-height: 1.7; margin-top: 12px !important; }
.pw-colophon { margin-top: 18px; color: var(--pw-muted); font-size: 13px; }
.pw-colophon b { color: var(--pw-primary-deep); }
.pw-colophon a { color: var(--pw-primary-deep); font-weight: 700; }

/* Sticky booking bar */
.pw-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
    padding: 10px var(--pw-gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .9);
    border-top: 1px solid rgba(255, 211, 222, .8);
    box-shadow: 0 -10px 30px rgba(255, 0, 44, .08);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.pw-bar-inner { max-width: calc(var(--pw-width) - var(--pw-gutter) * 2); margin: 0 auto; display: flex; gap: 10px; }
.pw-bar .pw-btn { flex: 1; white-space: nowrap; }
.pw-bar .pw-btn-soft { font-size: 15px; padding-inline: 12px; }
@media (max-width: 420px) {
    .pw-bar .pw-btn-soft .pw-icon { display: none; }
}

@media (min-width: 600px) {
    .pw-cover { margin-top: 16px; border-radius: 30px; width: 100%; margin-inline: 0; }
    .pw-topbar { inset-inline: 12px; }
    .pw-nav { margin-inline: 0; border-radius: 0 0 18px 18px; }
    .pw-banner { width: 80%; }
}

@media (max-width: 360px) {
    :root { --pw-gutter: 12px; }
    .pw-profile h1 { font-size: 22px; }
    .pw-bar .pw-btn { font-size: 14px; padding-inline: 12px; }
}
