/* =========================================================================
   «Барбер» — the Services, Team and Shop modules and the shared booking
   block re-dressed: framed cards, the serif for titles, the narrow sign
   face for prices and meta, arched photos for the masters.
   ========================================================================= */

/* ---- Services -------------------------------------------------------- */

body.bb-body .svc-card {
    border-radius: var(--bb-r);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
html[data-barber-cards="frame"] body.bb-body .svc-card {
    outline: 1px solid var(--bb-brass-dim);
    outline-offset: -7px;
}
body.bb-body .svc-card:hover { border-color: var(--bb-red); }
body.bb-body .svc-card__media { border-radius: 0; overflow: hidden; }
body.bb-body .svc-card__media img { transition: transform 600ms var(--ease), filter 600ms var(--ease); filter: sepia(0.15) contrast(1.05); }
body.bb-body .svc-card:hover .svc-card__media img { transform: scale(1.04); filter: none; }
body.bb-body .svc-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}
body.bb-body .svc-card__title a { color: var(--c-text-strong); }
body.bb-body .svc-card__text { color: var(--c-text-muted); }
body.bb-body .svc-card__amount { font-family: var(--bb-label); font-size: 1.1rem; font-weight: 500; letter-spacing: 0.03em; color: var(--bb-red); }
body.bb-body .svc-card__unit { font-family: var(--bb-label); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-muted); }
body.bb-body .svc-card__arrow { border-radius: 50%; border-color: var(--c-border-strong); color: var(--c-text-strong); }
body.bb-body .svc-card:hover .svc-card__arrow { background: var(--bb-red); border-color: var(--bb-red); color: var(--bb-cream); }
body.bb-body .svc-card__icon { border-radius: 50%; background: color-mix(in srgb, var(--bb-red) 12%, transparent); color: var(--bb-red); }
body.bb-body .svc-badge {
    border-radius: 0;
    font-family: var(--bb-label);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
body.bb-body .svc-badge--hit { background: var(--bb-red); color: var(--bb-cream); }
body.bb-body .svc-badge--new { background: var(--bb-brass); color: var(--bb-ink); }
body.bb-body :is(.svc-prices__price, .svc-price__value, .svc-hero__price, .svc-includes__amount, .svc-fact__value) { font-family: var(--bb-label); letter-spacing: 0.03em; color: var(--bb-red); }
html:not([data-barber-paper="on"]) body.bb-body :is(.svc-prices__price, .svc-price__value, .svc-hero__price, .svc-includes__amount, .svc-fact__value),
body.bb-body :is(.cms-tone-dark) :is(.svc-prices__price, .svc-price__value, .svc-includes__amount) { color: var(--bb-brass); }
body.bb-body :is(.svc-step__num, .svc-steps__num) { border-radius: 50%; background: var(--bb-red); color: var(--bb-cream); font-family: var(--bb-label); }
body.bb-body .svc-hero__title { font-weight: 900; }
body.bb-body .svc-hero__media img { border-radius: 0; }
html[data-barber-cards="frame"] body.bb-body .svc-hero__media {
    padding: 9px;
    border: 1px solid var(--bb-brass);
    border-radius: 999px 999px 3px 3px;
}
html[data-barber-cards="frame"] body.bb-body .svc-hero__media img { border-radius: 999px 999px 0 0; }

/* ---- Team ------------------------------------------------------------ */

body.bb-body .team-card {
    border-radius: var(--bb-r);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
}
body.bb-body .team-card__media,
body.bb-body .team-card__photo { border-radius: 0; }
html[data-barber-cards="frame"] body.bb-body .team-card { background: transparent; border: 0; text-align: center; }
html[data-barber-cards="frame"] body.bb-body .team-card__media {
    padding: 8px;
    border: 1px solid var(--bb-brass);
    border-radius: 999px 999px 3px 3px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--bb-brass) 16%, transparent), transparent 45%);
}
html[data-barber-cards="frame"] body.bb-body .team-card__photo { border-radius: 999px 999px 0 0; overflow: hidden; }
html[data-barber-cards="frame"] body.bb-body :is(.team-card__meta, .team-card__actions) { justify-content: center; }
body.bb-body .team-card__photo img { filter: sepia(0.25) contrast(1.05); transition: filter 500ms var(--ease), transform 600ms var(--ease); }
body.bb-body .team-card:hover .team-card__photo img { filter: none; transform: scale(1.03); }
body.bb-body .team-card__badge {
    border-radius: 0;
    background: var(--bb-red);
    color: var(--bb-cream);
    font-family: var(--bb-label);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
body.bb-body .team-card__name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
}
body.bb-body .team-card__name a { color: var(--c-text-strong); }
body.bb-body .team-card__position { color: var(--bb-brass); font-family: var(--bb-label); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
html[data-barber-paper="on"] body.bb-body .cms-tone-soft .team-card__position { color: var(--bb-red-lo); }
body.bb-body .team-card__meta { font-size: 0.86rem; color: var(--c-text-muted); }
body.bb-body .team-card__meta .cms-icon { color: var(--bb-brass); }
body.bb-body .team-card__actions .cms-btn { width: 100%; padding-inline: 0.8rem; }

/* Master's page: the portrait in the mirror frame. */
html[data-barber-cards="frame"] body.bb-body :is(.team-hero__photo, .team-profile__photo) {
    padding: 9px;
    border: 1px solid var(--bb-brass);
    border-radius: 999px 999px 3px 3px;
}
html[data-barber-cards="frame"] body.bb-body :is(.team-hero__photo, .team-profile__photo) img { border-radius: 999px 999px 0 0; }

/* ---- Shop ------------------------------------------------------------ */

body.bb-body .shop-card {
    border-radius: var(--bb-r);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
}
html[data-barber-cards="frame"] body.bb-body .shop-card {
    outline: 1px solid var(--bb-brass-dim);
    outline-offset: -7px;
}
body.bb-body .shop-card:hover { border-color: var(--bb-brass); }
body.bb-body .shop-card__media { border-radius: 0; background: var(--bb-surface); }
body.bb-body .shop-card__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
body.bb-body .shop-card__title a,
body.bb-body .shop-card__link { color: var(--c-text-strong); }
body.bb-body .shop-card__brand { font-family: var(--bb-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bb-brass); }
body.bb-body .shop-price__value,
body.bb-body .shop-price__now {
    font-family: var(--bb-label);
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--c-text-strong);
}
body.bb-body .shop-price__old,
body.bb-body .shop-price__was { font-family: var(--bb-label); color: var(--c-text-faint); }
body.bb-body .shop-price__off { background: var(--bb-red); color: var(--bb-cream); border-radius: 0; }
body.bb-body :is(.shop-sticker, .shop-stickers__item) {
    border-radius: 0;
    font-family: var(--bb-label);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
body.bb-body .shop-card__btn { min-height: 44px; }
body.bb-body :is(.shop-pick__chip, .shop-qty) { border-radius: var(--bb-r); }

/* Product and listing pages keep the dark leather; filters and tables in the sign face. */
body.bb-body :is(.shop-filter__title, .shop-specs__group, .shop-tabs__tab) {
    font-family: var(--bb-label);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---- Booking (shared block) -------------------------------------------- */

body.bb-body .cms-booking__legend {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1rem + 0.7vw, 1.6rem);
    font-weight: 700;
    color: var(--c-text-strong);
}
body.bb-body .cms-booking__num {
    display: inline-grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: var(--bb-red);
    color: var(--bb-cream);
    font-family: var(--bb-label);
    font-size: 1rem;
    font-weight: 500;
}
body.bb-body .cms-booking__sublegend {
    font-family: var(--bb-label);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}
body.bb-body :is(.cms-booking__card, .cms-booking__chip) {
    border-radius: var(--bb-r);
    background: var(--c-surface);
    border-color: var(--c-border);
}
body.bb-body .cms-booking__card-title { font-family: var(--font-display); font-weight: 700; color: var(--c-text-strong); }
body.bb-body .cms-booking__price { font-family: var(--bb-label); letter-spacing: 0.03em; color: var(--bb-brass); }
html[data-barber-paper="on"] body.bb-body .cms-tone-soft .cms-booking__price { color: var(--bb-red-lo); }
body.bb-body .cms-booking__radio:checked + :is(.cms-booking__card, .cms-booking__chip) {
    border-color: var(--bb-red);
    box-shadow: inset 0 0 0 1px var(--bb-red);
    background: color-mix(in srgb, var(--bb-red) 10%, var(--c-surface));
}
body.bb-body .cms-booking__radio:focus-visible + :is(.cms-booking__card, .cms-booking__chip) { outline: 2px solid var(--bb-brass); outline-offset: 2px; }
body.bb-body .cms-booking__avatar { border-radius: 50%; border: 1px solid var(--bb-brass-dim); }
body.bb-body .cms-booking__avatar img { filter: sepia(0.2); }
body.bb-body .cms-booking__chip-day { font-family: var(--font-display); font-weight: 800; }
body.bb-body :is(.cms-booking__chip-wd, .cms-booking__chip-mon) { font-family: var(--bb-label); letter-spacing: 0.08em; text-transform: uppercase; }
body.bb-body .cms-booking__summary {
    border-radius: var(--bb-r);
    border-top: 5px solid var(--bb-red);
}
body.bb-body .cms-booking__summary-title {
    font-family: var(--bb-label);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bb-brass);
}
body.bb-body .cms-booking__note .cms-icon { color: var(--bb-brass); }

/* Stickers in the template's colours. */
body.bb-body .shop-sticker { border-radius: 0; background: var(--bb-sunk); color: var(--bb-strong); }
body.bb-body .shop-sticker.shop-sticker--hit { background: var(--bb-red); color: var(--bb-cream); }
body.bb-body .shop-sticker.shop-sticker--new { background: var(--bb-brass); color: var(--bb-ink); }
body.bb-body .shop-sticker.shop-sticker--discount { background: var(--bb-cream); color: var(--bb-red-lo); }

@media (max-width: 40rem) {
    html[data-barber-cards="frame"] body.bb-body .team-card__media { max-width: 17rem; margin-inline: auto; }
    body.bb-body .svc-list--image .svc-card__media { aspect-ratio: 16 / 9; }
}
