/* Monarca Barbershop — main stylesheet
   Palette taken from the shop's own logo: deep charcoal + antique gold.
   Deliberately restrained: no gradients, no glow, no glass panels. */

:root {
    --color-charcoal: #0e1815;
    --color-charcoal-light: #1a2b24;
    --color-gold: #b6902f;
    --color-gold-light: #cfa646;
    --color-cream: #faf7f0;

    /* Semantic tokens - these are what most rules below should use, so
       a theme switch only ever has to redefine values here. */
    --color-bg: var(--color-cream);
    --color-surface: #ffffff;
    --color-surface-alt: #f6f2e9;
    --color-heading: var(--color-charcoal);
    --color-text: #2a2a2a;
    --color-text-muted: #6b6b6b;
    --color-border: #e3ddd0;
    --color-selected-tint: #fbf6ea;

    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --radius: 4px;
    --max-width: 1120px;
}

/* Dark theme: applied by assets/js/theme.js via data-theme on <html>.
   The brand chrome (header/hero/footer/sidebar) is deliberately dark
   green in BOTH themes - only the page surfaces and text flip, tinted
   green rather than neutral gray so dark mode still reads as Monarca. */
[data-theme="dark"] {
    --color-bg: #0d1210;
    --color-surface: #172019;
    --color-surface-alt: #1c2b23;
    --color-heading: #f2efe8;
    --color-text: #d9d6ce;
    --color-text-muted: #9fada5;
    --color-border: #2a3a32;
    --color-selected-tint: rgba(182, 144, 47, 0.16);
}

/* Smooth, quick transition when the theme flips, without animating
   everything else on the page (hover states, layout, etc). */
body, .site-header, .site-footer, .admin-sidebar, .admin-main, .panel,
.stat-card, .admin-table, .style-card, .style-tile, .form-control, .auth-card,
.selectable-item, .barber-option, .time-slot, .info-strip {
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
    background: var(--color-charcoal);
    color: #fff;
    border-bottom: 1px solid #000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-logo {
    height: 56px;
    width: auto;
}

.site-header-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

img.site-logo-icon {
    height: 34px;
    width: 34px;
    border-radius: 6px;
    object-fit: cover;
}

.site-header-title {
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    letter-spacing: 0.04em;
    color: var(--color-gold-light);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-size: 14px;
    letter-spacing: 0.03em;
    color: #d9d9d9;
}

.main-nav a:hover { color: var(--color-gold-light); }

.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--color-gold);
    color: #1b1b1b;
}
.btn-primary:hover { background: var(--color-gold-light); }

.btn-outline {
    background: transparent;
    border-color: var(--color-gold);
    color: var(--color-gold-light);
}
.btn-outline:hover { background: rgba(182,144,47,0.1); }

.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- Theme toggle ---------- */
/* Icon-only circle, meant to sit inline in dark brand chrome (site
   header, admin sidebar, auth shell) - see includes/theme_toggle.php.
   Both icons are always in the DOM; CSS alone decides which shows,
   keyed off [data-theme], so there's no JS-dependent icon flash. */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: #f2efe8;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}
.theme-toggle-btn:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
.theme-toggle-btn .icon-sun,
.theme-toggle-btn .icon-moon { display: flex; }
.theme-toggle-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle-btn .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle-btn .icon-moon { display: flex; }

/* Floating variant, for pages with no header row to sit inline in
   (the staff login / accept-invite cards). */
.theme-toggle-btn--floating {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
}

/* ---------- Bottom tab bar (app-style mobile nav) ---------- */
/* Hidden by default (desktop uses .main-nav); shown on narrow screens
   in responsive.css, where .main-nav is hidden instead - see
   includes/bottom_tab_bar.php. */
.bottom-tab-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: var(--color-charcoal);
    border-top: 1px solid var(--color-charcoal-light);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-tab-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px 10px;
    font-size: 11px;
    color: #9fada5;
    letter-spacing: 0.01em;
}

.bottom-tab-bar a.active { color: var(--color-gold-light); }
.bottom-tab-bar .tab-icon { display: flex; line-height: 1; }
.bottom-tab-bar .tab-icon svg { display: block; }

/* ---------- PWA install affordance ---------- */
/* Shared by includes/pwa_install_button.php; shown/hidden by main.js */
.pwa-install-btn { white-space: nowrap; }
.pwa-ios-hint {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.4;
}
.site-header .pwa-ios-hint,
.admin-sidebar .pwa-ios-hint { color: #999; }
.admin-sidebar .pwa-install-btn { width: 100%; }

/* Mobile install bar (sits above the bottom tab bar) */
.pwa-install-bar { display: none; }
@media (max-width: 720px) {
    .pwa-install-bar:not([hidden]) {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(66px + env(safe-area-inset-bottom, 0px));
        z-index: 950;
        padding: 10px 12px;
        background: var(--color-charcoal);
        color: #fff;
        border: 1px solid var(--color-charcoal-light);
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    }
    .pwa-install-bar-text { flex: 1; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
    .pwa-install-bar-text span { font-size: 12px; color: #b9c5be; }
    .pwa-install-bar .pwa-install-bar-btn { width: auto; }
    .pwa-install-dismiss { background: none; border: 0; color: #9fada5; font-size: 22px; line-height: 1; padding: 4px 6px; cursor: pointer; }
}

.btn-dark {
    background: var(--color-charcoal);
    color: #fff;
    border-color: var(--color-charcoal);
}

/* ---------- Hero ---------- */

.hero {
    background: var(--color-charcoal);
    color: #fff;
    padding: 64px 0 72px;
    text-align: center;
}

.hero-logo {
    height: 96px;
    width: 96px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 24px;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 38px;
    margin: 0 0 14px;
    color: #fff;
}

.hero p {
    font-size: 16px;
    color: #c9c9c9;
    max-width: 560px;
    margin: 0 auto 28px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    margin: 0 auto;
}

.btn-block { display: block; width: 100%; }

/* ---------- Sections ---------- */

section { padding: 56px 0; }

.section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    margin: 0 0 8px;
    color: var(--color-heading);
}

.section-intro {
    color: var(--color-text-muted);
    margin: 0 0 32px;
    max-width: 640px;
}

/* ---------- Grid list (services / styles / barbers) ---------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.plain-item {
    border-bottom: 1px solid var(--color-border);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.plain-item .item-name {
    font-weight: 600;
    font-size: 16px;
}

.plain-item .item-desc {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.plain-item .item-price {
    font-weight: 600;
    color: var(--color-gold);
    white-space: nowrap;
}

.plain-item.has-thumb { align-items: center; }
.plain-item .item-main { flex: 1; min-width: 0; }
.plain-item .item-thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 10px;
    object-fit: cover;
    background: #1a1a1a;
    border: 1px solid var(--color-border);
}
@media (max-width: 520px) {
    .plain-item .item-thumb { width: 56px; height: 56px; flex-basis: 56px; }
}

.style-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-surface);
}

.style-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 260px;
    object-fit: cover;
    background: #eee;
}

.style-card .style-body {
    padding: 14px 16px 18px;
}

.style-card .style-name {
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 2px;
}

.style-card .style-meta {
    color: var(--color-text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

/* ---------- Haircut style tiles (home page) ---------- */

.styles-section {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 220px));
    gap: 20px;
    justify-content: start;
}

.style-tile {
    display: block;
    padding: 8px;
    color: inherit;
    text-decoration: none;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.style-tile:hover,
.style-tile:focus-visible {
    border-color: var(--color-gold);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    outline: none;
}

.style-media {
    aspect-ratio: 1 / 1;
    max-height: 210px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: var(--color-charcoal-light);
}

.style-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.style-media-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--color-gold-light);
}

.style-tile .style-body { padding: 10px 4px 4px; }

.style-tile .style-name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: var(--color-heading);
}

.style-tile .style-meta {
    margin: 2px 0 10px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.style-cta {
    display: block;
    text-align: center;
    padding: 8px 0;
    border-radius: 8px;
    background: var(--color-gold);
    color: #0e1815;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.style-tile:hover .style-cta { background: var(--color-gold-light); }

@media (max-width: 720px) {
    .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

.barber-card {
    text-align: center;
}

.barber-card img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: #ddd;
}

.barber-card .barber-name {
    font-weight: 600;
    font-size: 16px;
}

.barber-card .barber-specialty {
    color: var(--color-text-muted);
    font-size: 13px;
}

/* ---------- Info strip ---------- */

.info-strip {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.info-strip .grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.info-block h3 {
    font-size: 15px;
    margin: 0 0 6px;
    color: var(--color-heading);
}

.info-block p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--color-charcoal);
    color: #9a9a9a;
    padding: 32px 0;
    font-size: 13px;
    text-align: center;
}

.site-footer a { color: #cfa646; }

/* ---------- Forms (shared across booking / auth) ---------- */

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-heading);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: var(--color-surface);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-gold);
}

.form-error {
    color: #a33;
    font-size: 13px;
    margin-top: 6px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 18px;
}

.alert-error { background: #fbeaea; color: #9c2b2b; border: 1px solid #f0c9c9; }
.alert-success { background: #eaf6ea; color: #2b6b2b; border: 1px solid #c9e8c9; }

[data-theme="dark"] .alert-error { background: #402020; color: #e79b9b; border-color: #5a2f2f; }
[data-theme="dark"] .alert-success { background: #1c3320; color: #8fd28f; border-color: #2f5233; }

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-charcoal);
    padding: 20px;
}

.auth-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 36px 32px;
    max-width: 380px;
    width: 100%;
}

.auth-card .site-logo { margin: 0 auto 20px; }

.auth-card h1 {
    font-family: var(--font-heading);
    font-size: 22px;
    text-align: center;
    margin: 0 0 24px;
}

/* ---------- Empty state ---------- */

.empty-state {
    color: var(--color-text-muted);
    padding: 24px 0;
    font-size: 14px;
}

/* ---------- Our Barbers: compact team cards ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 14px 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.team-photo {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gold);
    background: var(--color-charcoal-light);
}
.team-photo-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    color: var(--color-gold-light);
}
.team-info { min-width: 0; }
.team-name { font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--color-heading); }
.team-specialty {
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 720px) {
    .team-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
    .team-card { flex-direction: row; text-align: left; align-items: center; gap: 14px; padding: 12px 16px; }
    .team-photo { width: 60px; height: 60px; flex-basis: 60px; }
}

/* ---------- Products ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.product-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-media { position: relative; aspect-ratio: 1 / 1; background: #1a1a1a; }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card.is-out .product-media img { opacity: 0.55; }
.product-tag {
    position: absolute; top: 8px; left: 8px;
    background: rgba(14, 24, 21, 0.88); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
    padding: 4px 9px; border-radius: 999px;
}
.product-body { padding: 10px 12px 14px; }
.product-name { font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--color-heading); }
.product-desc {
    margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--color-text-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-price { margin-top: 6px; font-weight: 700; color: var(--color-gold); }

/* ---------- Reviews ---------- */
.rating-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 20px; }
.rating-big { font-family: var(--font-heading); font-size: 34px; font-weight: 700; color: var(--color-heading); line-height: 1; }
.rating-stars { color: var(--color-gold); letter-spacing: 2px; font-size: 18px; }
.rating-count { color: var(--color-text-muted); font-size: 14px; }
.review-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 22px; }
@media (min-width: 720px) { .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review-card {
    margin: 0; padding: 16px 18px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.review-card blockquote { margin: 8px 0 12px; font-size: 14.5px; line-height: 1.55; color: var(--color-text); }
.review-card figcaption { font-weight: 700; font-size: 13.5px; color: var(--color-heading); }
.review-form-wrap > summary { display: inline-block; cursor: pointer; list-style: none; }
.review-form-wrap > summary::-webkit-details-marker { display: none; }
.review-form { max-width: 480px; margin-top: 16px; }
.star-input { display: flex; gap: 4px; }
.star-btn {
    background: none; border: none; padding: 2px; cursor: pointer;
    font-size: 30px; line-height: 1; color: var(--color-border);
}
.star-btn.on { color: var(--color-gold); }
.rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.review-msg { margin: 0 0 12px; font-size: 14px; }
.review-msg.ok { color: #2b6b2b; }
.review-msg.err { color: #9c2b2b; }
[data-theme="dark"] .review-msg.ok { color: #8fd28f; }
[data-theme="dark"] .review-msg.err { color: #e79b9b; }

/* ---------- About ---------- */
.about-text { max-width: 760px; }
.about-text p { margin: 0 0 14px; line-height: 1.7; color: var(--color-text); }
.info-block-wide { grid-column: 1 / -1; }

/* Services list with thumbnails on narrow phones keeps its row layout */
@media (max-width: 480px) {
    .plain-item.has-thumb { flex-direction: row; align-items: center; gap: 12px; }
    .plain-item.has-thumb .item-price { margin-left: auto; }
}

/* ---------- Staff login shortcut in the public header ---------- */
.site-header-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid rgba(207, 166, 70, 0.55);
    border-radius: 999px;
    color: #cfa646;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.site-header-login:hover { background: rgba(207, 166, 70, 0.14); }
@media (max-width: 380px) { .site-header-login span { display: none; } .site-header-login { padding: 8px; } }


/* ---------- Showcase cards (home page: services + haircut styles) ---------- */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
@media (min-width: 720px)  { .showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .showcase-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.showcase-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.25s ease, box-shadow 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}
.styles-section .showcase-card { background: var(--color-bg); }
.showcase-card:hover,
.showcase-card:focus-visible {
    border-color: var(--color-gold);
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
    outline: none;
}
.showcase-card:active { transform: scale(0.97); }

/* scroll-reveal (only armed when JS runs, so no-JS visitors still see everything) */
.showcase-anim .showcase-card { opacity: 0; transform: translateY(28px) scale(0.96); }
.showcase-anim .showcase-card.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.8,.2,1), border-color 0.25s ease, box-shadow 0.35s ease;
    transition-delay: calc(var(--i, 0) * 60ms), calc(var(--i, 0) * 60ms), 0s, 0s;
}
.showcase-anim .showcase-card.in:hover { transform: translateY(-4px); transition-delay: 0s; }

.showcase-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(110deg, #16211c 30%, #223229 50%, #16211c 70%);
    background-size: 200% 100%;
    animation: showcaseShimmer 1.4s linear infinite;
}
@keyframes showcaseShimmer { to { background-position: -200% 0; } }
.showcase-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 24, 21, 0.55), transparent 55%);
    pointer-events: none;
}
.showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 0.6s ease, transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.showcase-media img.loaded { opacity: 1; transform: scale(1); }
.showcase-card:hover .showcase-media img.loaded { transform: scale(1.08); }

.showcase-price {
    position: absolute;
    z-index: 1;
    left: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--color-gold);
    color: #0e1815;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.showcase-body { display: flex; flex-direction: column; flex: 1; padding: 11px 12px 12px; }
.showcase-name { font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--color-heading); }
.showcase-meta { margin-top: 3px; font-size: 12.5px; color: var(--color-text-muted); }
.showcase-desc {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 719px) { .showcase-desc { display: none; } }
.showcase-cta {
    margin-top: auto;
    padding-top: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-gold-light);
}
.showcase-cta span { display: inline-block; transition: transform 0.25s ease; }
.showcase-card:hover .showcase-cta span { transform: translateX(5px); }

@media (prefers-reduced-motion: reduce) {
    .showcase-card, .showcase-media, .showcase-media img, .showcase-cta span { animation: none !important; transition: none !important; }
    .showcase-anim .showcase-card { opacity: 1; transform: none; }
    .showcase-media img { opacity: 1; transform: none; }
}

/* ---------- Staff login pages: white + gold (matches the logo) ----------
   .auth-shell is only used by the staff login / barber login / accept-invite
   pages, so the public site and customer pages are unaffected. */
.auth-shell { background: #fdf9ec; }
.auth-card {
    background: #ffffff;
    border: 1px solid #eadfc0;
    border-top: 4px solid #cfa43a;
    box-shadow: 0 10px 30px rgba(150, 120, 30, 0.12);
}
.auth-card .site-logo { height: auto; width: 210px; max-width: 80%; display: block; margin: 0 auto 18px; }
.auth-card h1 { color: #1f1a0e; }
.auth-shell .btn-primary { background: #cfa43a; color: #1f1a0e; }
.auth-shell .btn-primary:hover { background: #dfb554; }
.auth-shell a { color: #8a6b1f; }
.auth-shell .form-control:focus { border-color: #cfa43a; outline: none; box-shadow: 0 0 0 3px rgba(207, 164, 58, 0.25); }
.theme-toggle-btn--floating { border-color: #e3d4a3; background: #fbf5e3; color: #7a5a0c; }
[data-theme="dark"] .auth-shell { background: #0e0e0e; }
[data-theme="dark"] .auth-card { background: #181818; border-color: #383221; border-top-color: #cfa43a; box-shadow: none; }
[data-theme="dark"] .auth-card h1 { color: #f6f0dc; }
[data-theme="dark"] .auth-shell a { color: #dfb554; }
[data-theme="dark"] .theme-toggle-btn--floating { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #f2efe8; }

/* =====================================================================
   WHITE + GOLD THEME — public site & customer pages
   Matches the Monarca logo (gold on white). No green anywhere in the
   brand chrome. Dark mode (theme toggle) = neutral black + the same gold.
   ===================================================================== */
:root {
    --color-charcoal: #1f1a0e;
    --color-charcoal-light: #faf3dc;
    --color-gold: #cfa43a;
    --color-gold-light: #dfb554;
    --color-cream: #ffffff;
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-surface-alt: #fbf6e6;
    --color-heading: #1f1a0e;
    --color-text: #2a2418;
    --color-text-muted: #6f6650;
    --color-border: #eadfc0;
    --color-selected-tint: #fcf7e8;
}
[data-theme="dark"] {
    --color-charcoal: #121212;
    --color-charcoal-light: #1e1e1e;
    --color-bg: #0e0e0e;
    --color-surface: #181818;
    --color-surface-alt: #202020;
    --color-heading: #f6f0dc;
    --color-text: #e2ddd0;
    --color-text-muted: #a79f8a;
    --color-border: #383221;
    --color-selected-tint: rgba(207, 164, 58, 0.16);
}

/* Header */
.site-header { background: #ffffff; color: #1f1a0e; border-bottom: 1px solid #eadfc0; }
.site-header-title { color: #1f1a0e; }
.main-nav a { color: #4a4130; }
.main-nav a:hover { color: #8a6b1f; }
.site-header-login { color: #8a6b1f; border-color: #cfa43a; }
.site-header-login:hover { background: #fbf3d9; }
.site-header .btn-outline, .main-nav .btn-outline { color: #8a6b1f; border-color: #cfa43a; }
.btn-outline { color: #8a6b1f; }
.btn-primary { color: #1f1a0e; }
.theme-toggle-btn { border-color: #e3d4a3; background: #fbf5e3; color: #7a5a0c; }
.theme-toggle-btn:hover { background: #f5e8bd; }
.site-header .lang-switch { border-color: #e3d4a3; background: #fbf5e3; }
.site-header .lang-switch a { color: #4a4130; }
.site-header .lang-switch a:hover { background: #f5e8bd; }
.site-header .lang-switch a.active { background: #cfa43a; color: #1f1a0e; }

/* Hero — shows the FULL logo, never cropped */
.hero { background: #ffffff; color: #1f1a0e; border-bottom: 1px solid #eadfc0; }
.hero h1 { color: #1f1a0e; }
.hero p { color: #6f6650; }
.hero-logo {
    width: 260px; max-width: 70%; height: auto;
    object-fit: contain; border-radius: 0; box-shadow: none;
    margin: 0 auto 20px;
}

/* Footer / mobile bars / misc dark chrome */
.site-footer { background: #fdf9ec; color: #6f6650; border-top: 1px solid #eadfc0; }
.site-footer a { color: #8a6b1f; }
.bottom-tab-bar { background: #ffffff; border-top: 1px solid #eadfc0; }
.bottom-tab-bar a { color: #6f6650; }
.bottom-tab-bar a.active { color: #8a6b1f; }
.style-media, .team-photo { background: #fbf3d9; }
.product-media, .plain-item .item-thumb { background: #fbf6e6; }
.product-tag { background: rgba(31, 26, 14, 0.85); }
.pwa-ios-hint, .site-header .pwa-ios-hint { color: #6f6650; }
.btn-dark { background: #1f1a0e; border-color: #1f1a0e; color: #fff; }
.plain-item .item-price { color: #8a6b1f; }

[data-theme="dark"] .site-header { background: #121212; color: #fff; border-bottom-color: #2a2a2a; }
[data-theme="dark"] .site-header-title { color: #fff; }
[data-theme="dark"] .main-nav a { color: #d9d9d9; }
[data-theme="dark"] .main-nav a:hover { color: #dfb554; }
[data-theme="dark"] .site-header-login,
[data-theme="dark"] .site-header .btn-outline,
[data-theme="dark"] .main-nav .btn-outline,
[data-theme="dark"] .btn-outline { color: #dfb554; }
[data-theme="dark"] .site-header-login:hover { background: rgba(223, 181, 84, 0.14); }
[data-theme="dark"] .theme-toggle-btn { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #f2efe8; }
[data-theme="dark"] .site-header .lang-switch { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); }
[data-theme="dark"] .site-header .lang-switch a { color: #f2efe8; }
[data-theme="dark"] .hero { background: #0e0e0e; color: #fff; border-bottom-color: #2a2a2a; }
[data-theme="dark"] .hero h1 { color: #f6f0dc; }
[data-theme="dark"] .hero p { color: #c9c9c9; }
[data-theme="dark"] .site-footer { background: #121212; color: #9a9a9a; border-top-color: #2a2a2a; }
[data-theme="dark"] .site-footer a { color: #dfb554; }
[data-theme="dark"] .bottom-tab-bar { background: #121212; border-top-color: #2a2a2a; }
[data-theme="dark"] .bottom-tab-bar a { color: #a79f8a; }
[data-theme="dark"] .bottom-tab-bar a.active { color: #dfb554; }
[data-theme="dark"] .style-media, [data-theme="dark"] .team-photo { background: #202020; }
[data-theme="dark"] .product-media, [data-theme="dark"] .plain-item .item-thumb { background: #1a1a1a; }
[data-theme="dark"] .pwa-ios-hint { color: #999; }
[data-theme="dark"] .plain-item .item-price { color: #dfb554; }
[data-theme="dark"] .btn-dark { background: #dfb554; border-color: #dfb554; color: #1f1a0e; }
