
:root {
    --p: #9c7ad7;
    --pd: #684aa1;
    --ink: #2b2238;
    --muted: #756a82;
    --card: rgba(255,255,255,.82);
    --line: rgba(156,122,215,.22);
    --price-fill: #7b57bd;
    --price-fill-2: #c7a7ee;
    --price-shadow: rgba(104,74,161,.18);
    --price-ring: rgba(156,122,215,.24);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.sasa-witch-theme {
    min-height: 100vh;
    color: var(--ink);
    font-family: 'Noto Sans TC', sans-serif;
    background:
        linear-gradient(90deg, rgba(255,250,255,.9) 0%, rgba(255,250,255,.62) 44%, rgba(69,43,93,.18) 100%),
        url('../img/black-panther-shop-hero.jpg') center top / cover fixed no-repeat;
    overflow-x: hidden;
}

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 52px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
    padding: 10px 0 20px;
    border-bottom: 1px solid rgba(156,122,215,.24);
}

.logo,
.admin-link,
.primary-link { color: inherit; text-decoration: none; }
.logo-image-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo-img {
    display: block;
    width: clamp(252px, 32vw, 352px);
    height: auto;
    filter: drop-shadow(0 14px 28px rgba(87,63,128,.16));
}
.logo-mark { display: none; }

.top-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid rgba(156,122,215,.18);
    border-radius: 999px;
    color: #5f4689;
    background: rgba(255,255,255,.72);
    box-shadow: 0 14px 34px rgba(104,74,161,.08);
    backdrop-filter: blur(14px);
    font-weight: 800;
}

.brand-hero,
.header + div {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 0 clamp(18px, 3vw, 30px);
    padding: clamp(30px, 4.5vw, 48px) clamp(24px, 5vw, 64px) clamp(34px, 4.8vw, 54px);
    overflow: visible;
    border: 1px solid rgba(255,255,255,.46);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(104,74,161,.12);
    backdrop-filter: blur(10px);
    text-align: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin: 0 0 12px;
    color: #7d59b5;
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.brand-hero h1,
.header + div h1 {
    max-width: 100%;
    margin: 0;
    color: #4d2d78;
    font-size: clamp(2.45rem, 5.2vw, 4.45rem);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

.brand-hero h1 span,
.header + div h1 span {
    display: inline-block;
}

.brand-hero p:not(.hero-kicker),
.header + div p:not(.hero-kicker) {
    max-width: 700px;
    margin: 16px auto 0;
    color: #5d506d;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 2;
    font-weight: 500;
}
.hero-badges { display: none; }

.main-card,
.query-section {
    padding: clamp(24px, 5vw, 46px);
    border: 1px solid rgba(156,122,215,.18);
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 28px 80px rgba(104,74,161,.12);
    backdrop-filter: blur(18px);
}

.wizard-header { max-width: 720px; margin: 0 auto 30px; text-align: center; }
.wizard-header h2,
.query-header h2 {
    margin: 0;
    color: #352448;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 900;
}
.wizard-header p,
.query-header p,
.service-meta,
.summary-box p,
.footer { color: var(--muted); line-height: 1.8; }

.steps-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 34px;
}
.steps-container:before {
    content: '';
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(156,122,215,.2);
}
.step {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #8a7b98;
    font-weight: 800;
}
.step span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(156,122,215,.25);
    border-radius: 999px;
    background: #fff;
    transition: .22s;
}
.step.active span,
.step.completed span {
    border-color: var(--p);
    background: linear-gradient(135deg, #8d68cf, #d7bff4);
    color: #fff;
    box-shadow: 0 12px 28px rgba(104,74,161,.2);
}
.step.active label { color: #6b4aa4; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(156,122,215,.16);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(104,74,161,.08);
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(156,122,215,.4);
    box-shadow: 0 22px 54px rgba(104,74,161,.13);
}
.service-card.selected {
    border-color: var(--p);
    background: #fbf7ff;
    box-shadow: 0 0 0 3px rgba(156,122,215,.16), 0 22px 54px rgba(104,74,161,.13);
}
.service-image-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #f2eaf9;
    cursor: zoom-in;
    overflow: hidden;
}
.service-img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.service-zoom-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(49,34,63,.74);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(6px);
    transition: .22s;
}
.service-image-button:hover .service-zoom-hint { opacity: 1; transform: translateY(0); }
.service-info { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 16px; }
.service-name { color: #342642; font-size: 1.03rem; line-height: 1.55; font-weight: 900; }
.service-meta { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; align-items: stretch; margin-top: auto; font-weight: 800; }
.service-meta .price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.56);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--price-fill), var(--price-fill-2));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 22px var(--price-shadow), inset 0 1px 0 rgba(255,255,255,.3);
    transition: .16s;
}

.d-none { display: none !important; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.py-5 { padding: 40px 0; }
.text-accent { color: #7b57bd; }
.small { font-size: .9rem; }
.fw-bold { font-weight: 900; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 18px; }
.mt-2 { margin-top: 8px; }
.d-block { display: block; }
.cursor-pointer { cursor: pointer; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.custom-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(156,122,215,.22);
    border-radius: 14px;
    background: #fff;
    color: #342642;
    font-family: inherit;
    font-size: 1rem;
}
.custom-input:focus { border-color: var(--p); box-shadow: 0 0 0 4px rgba(156,122,215,.14); outline: none; }
.panther-calendar {
    padding: 20px;
    border: 1px solid rgba(156,122,215,.2);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(104,74,161,.1);
}
.cal-header,
.time-title-row,
.wizard-footer,
.query-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal-header { margin-bottom: 14px; color: #5f4689; font-size: 1.2rem; font-weight: 900; }
.cal-header button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #f3ecfb; color: #6b4aa4; cursor: pointer; }
.cal-days,
.cal-body { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-days { margin-bottom: 8px; color: #8b6ac7; font-weight: 900; }
.cal-body { gap: 2px; }
.cal-body .day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #faf6ff; color: #4a365f; cursor: pointer; font-weight: 800; }
.cal-body .day:hover,
.cal-body .day.selected { background: #7b57bd; color: #fff; }
.cal-body .day.disabled { opacity: .35; cursor: not-allowed; filter: grayscale(1); }
.time-title-row { margin: 20px 0 14px; }
.time-slots-section:focus { outline: 0; }
.time-title-row h4,
.time-group h4 { color: #352448; font-weight: 900; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; margin: 10px 0 18px; }
.time-btn { min-height: 42px; border: 1px solid rgba(156,122,215,.2); border-radius: 12px; background: #fff; color: #443154; font-family: inherit; font-weight: 900; cursor: pointer; }
.time-btn small { display: block; margin-top: 2px; font-size: .72rem; font-weight: 700; opacity: .78; }
.time-btn:hover,
.time-btn.selected { border-color: #7b57bd; background: #7b57bd; color: #fff; }
.time-btn:disabled { opacity: .32; cursor: not-allowed; }
.time-btn.selected:disabled { opacity: 1; cursor: default; }
.wizard-footer { margin-top: 22px; }
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 13px;
    font-family: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}
.btn-primary { border: 0; color: #fff; background: linear-gradient(135deg, #7651b8, #c5a3ee); box-shadow: 0 12px 24px rgba(104,74,161,.18); }
.btn-secondary,
.btn-outline { border: 1px solid rgba(156,122,215,.28); color: #6b4aa4; background: #fff; }
.btn-line { width: 100%; margin: 16px 0 10px; color: #fff; background: #06c755; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid label { color: #38294b; font-weight: 900; }
.summary-box { margin: 20px 0; padding: 18px; border: 1px dashed rgba(156,122,215,.32); border-radius: 18px; background: #fbf7ff; }
.summary-box h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #342642; }
.summary-box p { display: flex; justify-content: space-between; gap: 12px; }
.total-price-text { color: #6b4aa4 !important; font-size: 1.15rem; font-weight: 900; }
.success-message { max-width: 620px; margin: 0 auto; text-align: center; }
.check-icon { color: #7b57bd; font-size: 4rem; }
.query-section { margin-top: 26px; }
.query-header { margin-bottom: 18px; text-align: center; }
.query-box { max-width: 560px; margin: 0 auto; align-items: stretch; }
.booking-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid rgba(156,122,215,.18); border-radius: 14px; background: #fff; }
.footer { padding: 36px 0 0; color: #8b8196; text-align: center; font-size: .86rem; }
.image-viewer { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(43,34,56,.78); backdrop-filter: blur(10px); }
.image-viewer.is-open { display: flex; }
.image-viewer-panel { width: min(96vw, 980px); max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.image-viewer-panel img { display: block; max-width: 100%; max-height: calc(92vh - 70px); object-fit: contain; border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.32); background: #fff; }
.image-viewer-title { max-width: 920px; color: #fff; text-align: center; font-weight: 900; }
.image-viewer-close { position: fixed; top: 18px; right: 18px; width: 46px; height: 46px; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: #31223f; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; }
body.image-viewer-open { overflow: hidden; }

@media (max-width: 980px) and (min-width: 761px) {
    .header { align-items: flex-start; flex-direction: column; }
    .logo-img { width: clamp(252px, 48vw, 352px); }
    .top-nav { justify-content: flex-start; }
    .brand-hero,
    .header + div {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 760px) {
    body.sasa-witch-theme {
        background:
            linear-gradient(180deg, rgba(255,250,255,.92) 0%, rgba(255,250,255,.72) 46%, rgba(69,43,93,.16) 100%),
            url('../img/black-panther-shop-hero.jpg') center top / cover scroll no-repeat;
    }
    .site-shell { width: min(100% - 24px, 1120px); padding-top: 12px; }
    .header { align-items: stretch; flex-direction: column; padding-bottom: 20px; }
    .logo-image-link { justify-content: center; }
    .logo-img { width: min(312px, 72vw); }
    .top-nav, .admin-link { width: 100%; }
    .brand-hero,
    .header + div {
        align-items: center;
        min-height: 0;
        margin-bottom: 18px;
        padding: 24px 18px 28px;
        border-radius: 22px;
        text-align: center;
    }
    .brand-hero h1,
    .header + div h1 { max-width: 100%; font-size: clamp(2rem, 12vw, 3.4rem); white-space: normal; text-wrap: balance; }
    .brand-hero h1 span,
    .header + div h1 span { display: block; }
    .brand-hero h1 .hero-divider,
    .header + div h1 .hero-divider { display: none; }
    .brand-hero p:not(.hero-kicker),
    .header + div p:not(.hero-kicker) { max-width: 100%; line-height: 1.85; }
    .main-card, .query-section { padding: 22px 16px; border-radius: 20px; }
    .step label { font-size: .78rem; }
    .services-grid, .form-grid { grid-template-columns: 1fr; }
    .time-title-row, .wizard-footer, .query-box { align-items: stretch; flex-direction: column; }
    .btn-primary, .btn-secondary, .btn-outline { width: 100%; }
}
