/* --- BIẾN MÀU SẮC CHỦ ĐẠO --- */
:root {
    --primary: #f7cac9; /* Hồng phấn pastel */
    --primary-dark: #e89998;
    --secondary: #748cab; /* Xanh xám pastel thanh lịch */
    --text-main: #2b2d42;
    --text-muted: #6c757d;
    --bg-main: #fcfcfc;
    --white: #ffffff;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* --- RESET & CƠ BẢN --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    padding-top: 125px; /* Để tránh bị Header cố định che mất nội dung */
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- HEADER DESKTOP --- */
.c-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    z-index: 1000;
}

.c-header__main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 40px;
}

.c-header__logo a {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-main);
}

    .c-header__logo a span {
        color: var(--primary-dark);
    }

.c-header__brand {
    display: grid;
    gap: 2px;
    justify-items: center;
    color: var(--text-main);
    text-align: center;
}

.c-header__brand strong {
    color: var(--primary-dark);
    font-size: clamp(1rem, 2vw, 1.32rem);
    letter-spacing: 3px;
    line-height: 1.1;
}

.c-header__brand span {
    color: var(--secondary);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.c-header__action { justify-self: end; }

.c-action-btn {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 22px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

    .c-action-btn:hover {
        background: var(--secondary);
    }

/* Navigation Bar */
.c-nav-desktop {
    background: var(--primary);
}

.c-nav-desktop__list {
    display: flex;
    justify-content: center;
    list-style: none;
}

    .c-nav-desktop__list a {
        display: block;
        padding: 12px 24px;
        color: #4a4a4a;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s;
    }

        .c-nav-desktop__list a:hover {
            background: rgba(255,255,255,0.3);
            color: #000;
        }

/* --- HERO BANNER --- */
.c-hero {
    padding: 0 20px;
    margin-bottom: 50px;
}

.c-hero__image {
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.c-hero__tagline {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 4px 14px;
    border-radius: 20px;
}

.c-hero__heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.c-hero__copy {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 25px;
    opacity: 0.95;
}

.cta--hero {
    background: var(--white);
    color: var(--text-main);
    padding: 14px 34px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
}

    .cta--hero:hover {
        background: var(--primary);
        color: var(--white);
        transform: translateY(-3px);
    }

/* --- SERVICES CARD GROUP --- */
.c-cta-group {
    max-width: 1200px;
    margin: 0 auto 70px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.c-cta-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

    .c-cta-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 32px rgba(0,0,0,0.1);
    }

.c-cta-card__img-wrap {
    height: 220px;
    overflow: hidden;
}

.c-cta-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.c-cta-card:hover .c-cta-card__img {
    transform: scale(1.08);
}

.c-cta-card__body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.c-cta-card__title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.c-cta-card__desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.cta {
    align-self: center;
    padding: 10px 24px;
    border-radius: 25px;
    background: var(--primary);
    color: #333;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
}

    .cta:hover {
        background: var(--secondary);
        color: var(--white);
    }

/* --- WELCOME --- */
.c-welcome {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.c-welcome__sub {
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
}

.c-welcome__heading {
    font-size: 2.2rem;
    margin: 10px 0 18px;
    color: var(--text-main);
}

.c-welcome__text {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- FOOTER --- */
.c-footer {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-top: 1px solid #edeef0;
    color: var(--text-muted);
    font-size: 14px;
}

/* --- HAMBURGER BUTTON (MẶC ĐỊNH ẨN TRÊN DESKTOP) --- */
.c-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

    .c-hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--text-main);
        border-radius: 3px;
        transition: 0.3s;
    }

/* --- MOBILE DRAWER & OVERLAY --- */
.c-mobile-menu {
    position: fixed;
    top: 0;
    left: -290px; /* Ban đầu ẩn sang bên trái */
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: 4px 0 15px rgba(0,0,0,0.15);
    z-index: 2000;
    transition: left 0.35s ease;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
}

    .c-mobile-menu.is-open {
        left: 0; /* Trượt ra khi mở */
    }

.c-mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.c-mobile-menu__title {
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-dark);
}

.c-mobile-menu__close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    color: var(--text-main);
}

.c-mobile-menu__list {
    list-style: none;
}

    .c-mobile-menu__list li {
        margin-bottom: 15px;
    }

    .c-mobile-menu__list a {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-main);
        display: block;
        padding: 8px 0;
    }

        .c-mobile-menu__list a:hover {
            color: var(--primary-dark);
        }

.c-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

    .c-menu-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

/* --- RESPONSIVE CHO MÀN HÌNH ĐIỆN THOẠI & TABLET (<= 768px) --- */
@media (max-width: 768px) {
    body {
        padding-top: 75px;
    }

    .c-nav-desktop {
        display: none; /* Ẩn menu ngang trên mobile */
    }

    .c-hamburger {
        display: flex; /* Hiện nút 3 gạch */
    }

    .c-header__main {
        grid-template-columns: auto 1fr auto;
        padding: 12px 20px;
    }

    .c-header__logo a {
        font-size: 20px;
    }

    .c-header__brand {
        display: none;
    }

    .c-hero {
        padding: 0 10px;
    }

    .c-hero__image {
        height: 45vh;
        border-radius: 12px;
    }

    .c-cta-group {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

/* --- TRANG DỊCH VỤ, ĐẶT LỊCH & QUẢN LÝ --- */
.page-hero, .manager-header {
    max-width: 1120px;
    margin: 48px auto 32px;
    padding: 0 20px;
    text-align: center;
}

.page-hero h1, .manager-header h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 6px 0 14px; }
.page-hero > p:last-child, .manager-header > div > p:last-child { color: var(--text-muted); font-size: 1.08rem; max-width: 720px; margin: auto; }
.eyebrow { color: var(--primary-dark); font-size: .78rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.optional { color: var(--text-muted); font-size: .85em; font-weight: 400; }

.booking-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .8fr); gap: 30px; max-width: 1120px; margin: 0 auto 80px; padding: 0 20px; align-items: start; }
.booking-card, .contact-aside, .price-card, .shop-note { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); padding: 30px; }
.booking-form label { display: grid; gap: 7px; font-weight: 700; color: var(--text-main); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid__full { grid-column: 1 / -1; }
.booking-form input, .booking-form select, .booking-form textarea, .view-switcher input { width: 100%; border: 1px solid #dce1e7; border-radius: 9px; padding: 11px 12px; font: inherit; color: var(--text-main); background: #fff; }
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus, .view-switcher input:focus { outline: 3px solid rgba(232,153,152,.22); border-color: var(--primary-dark); }
.cta--submit { border: 0; cursor: pointer; margin-top: 24px; color: var(--text-main); }
.contact-aside { border-top: 5px solid var(--primary-dark); }
.contact-aside h2 { font-size: 1.4rem; margin-bottom: 10px; }.contact-aside p { color: var(--text-muted); margin-bottom: 20px; }.contact-aside__phone { margin-top: 22px; }.contact-aside__phone a { color: var(--primary-dark); font-weight: 800; }
.cta--zalo { background: #008fe5; color: #fff; display: inline-block; }.cta--zalo:hover { background: #0074b8; }
.notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; }.notice--success { color: #175c36; background: #e6f7ec; }.notice--error, .validation { color: #a62a35; background: #fff0f1; }.validation ul { margin: 0; padding-left: 18px; }.validation:not(:has(ul)) { display: none; }

.pricing-grid { max-width: 1120px; margin: 0 auto 80px; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }.price-card { text-align: center; display: flex; flex-direction: column; }.price-card--featured { border: 2px solid var(--primary-dark); transform: translateY(-8px); }.badge { align-self: center; background: var(--primary); border-radius: 99px; padding: 3px 12px; font-size: .8rem; font-weight: 700; }.price { font-size: 1.35rem; font-weight: 800; color: var(--primary-dark); margin: 12px 0; }.price-card ul { list-style: none; color: var(--text-muted); margin: 0 0 24px; padding: 0; flex-grow: 1; }.price-card li { padding: 8px 0; border-bottom: 1px solid #f0f1f3; }
.service-detail { max-width: 1120px; margin: 0 auto 80px; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }.service-detail h2, .shop-note h2 { font-size: 2rem; margin-bottom: 14px; }.service-detail p, .shop-note p { color: var(--text-muted); margin-bottom: 22px; }.service-detail img { height: 360px; width: 100%; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }.service-detail--reverse div { order: 2; }.shop-note { max-width: 680px; margin: 0 auto 80px; text-align: center; }

.manager-header { display: flex; justify-content: space-between; align-items: end; text-align: left; }.manager-header h1 { font-size: 2.3rem; }.manager-controls, .schedule-wrap { max-width: 1200px; margin: 0 auto 24px; padding: 0 20px; }.manager-controls { display: flex; justify-content: space-between; align-items: center; gap: 18px; }.view-switcher { display: flex; gap: 8px; }.view-switcher input { width: auto; }.view-switcher button { border: 1px solid #dce1e7; background: #fff; padding: 9px 13px; border-radius: 8px; cursor: pointer; font: inherit; }.view-switcher button.is-active { color: #fff; background: var(--primary-dark); border-color: var(--primary-dark); }.schedule-wrap { overflow-x: auto; padding-bottom: 60px; }.schedule { width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 0; background: #fff; box-shadow: var(--shadow); border-radius: 14px; overflow: hidden; }.schedule th, .schedule td { padding: 16px; border-bottom: 1px solid #edf0f2; text-align: left; vertical-align: top; }.schedule thead th { background: var(--text-main); color: #fff; }.schedule tbody th { width: 150px; background: #fafbfc; }.slot-empty { color: #7d8b96; font-style: italic; }.booking-item { display: grid; gap: 4px; padding: 12px; border-radius: 9px; border-left: 4px solid #e6b244; background: #fff9e8; }.booking-item--confirmed { border-color: #2d9d62; background: #edfbf3; }.booking-item a { color: var(--secondary); font-weight: 700; }.booking-item small { color: var(--text-muted); }.booking-item select { margin-top: 5px; max-width: 160px; padding: 5px; border: 1px solid #ccd4dc; border-radius: 5px; }

@media (max-width: 768px) { .booking-layout, .service-detail { grid-template-columns: 1fr; }.form-grid, .pricing-grid { grid-template-columns: 1fr; }.service-detail--reverse div { order: initial; }.service-detail img { height: 260px; }.price-card--featured { transform: none; }.manager-header, .manager-controls { display: grid; align-items: start; }.view-switcher { flex-wrap: wrap; } }

.login-shell { min-height: 65vh; display: grid; place-items: center; padding: 48px 20px; }
.login-card { width: min(100%, 430px); display: grid; gap: 15px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 32px; }
.login-card h1 { font-size: 1.7rem; }
.login-card > p:not(.eyebrow) { color: var(--text-muted); }
.login-card label { display: grid; gap: 7px; font-weight: 700; }
.login-card input { border: 1px solid #dce1e7; border-radius: 9px; padding: 11px 12px; font: inherit; }

/* Lịch quản lý dạng ô vuông, ưu tiên quét nhanh theo ngày */
.pending-alert { max-width: 1160px; margin: 0 auto 22px; padding: 15px 20px; display: flex; align-items: center; gap: 14px; border: 1px solid #f0c864; border-radius: 12px; color: #6b4a00; background: #fff7df; }
.pending-alert__icon { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; color: #fff; background: #d68700; font-weight: 900; }
.pending-alert div { display: grid; gap: 2px; flex: 1; }.pending-alert div span { font-size: .9rem; }.pending-alert a { color: #855900; font-weight: 800; text-decoration: underline; }.pending-alert--clear { color: #17603a; border-color: #9bd7b1; background: #ebf9ef; }.pending-alert--clear .pending-alert__icon { background: #268a50; }
.calendar-shell { max-width: 1160px; margin: 0 auto 42px; }.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }.calendar-weekdays { gap: 8px; margin-bottom: 8px; }.calendar-weekdays span { color: var(--text-muted); padding: 0 6px; font-size: .8rem; font-weight: 800; text-align: center; text-transform: uppercase; }.calendar-grid { gap: 8px; }.calendar-grid--day { grid-template-columns: minmax(260px, 430px); }.calendar-day { min-width: 0; aspect-ratio: 1 / 1; display: grid; grid-template-rows: auto 1fr 1fr; gap: 7px; padding: 9px; overflow: hidden; border: 1px solid #e3e8ed; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px rgba(25, 34, 50, .04); }.calendar-day > header { display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: .78rem; text-transform: capitalize; }.calendar-day > header strong { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: var(--text-main); background: #f4f5f7; font-size: .9rem; }.calendar-day--today { border: 2px solid var(--primary-dark); }.calendar-day--today > header strong { color: #fff; background: var(--primary-dark); }.calendar-day--outside { opacity: .38; background: #fafbfc; }.calendar-slot { min-height: 0; display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 5px; align-items: start; padding-top: 6px; border-top: 1px solid #eef0f2; }.calendar-slot__label { color: var(--secondary); font-size: .67rem; font-weight: 800; text-transform: uppercase; }.calendar-slot__empty { color: #a4afb8; font-size: .75rem; font-style: italic; }.calendar-booking { min-width: 0; display: grid; gap: 1px; padding: 5px 6px; border-left: 3px solid #d68700; border-radius: 5px; color: #5b4300; background: #fff5d5; font-size: .68rem; line-height: 1.25; }.calendar-booking--confirmed { border-color: #298a50; color: #155a32; background: #e5f7eb; }.calendar-booking strong, .calendar-booking span, .calendar-booking a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.calendar-booking a { color: inherit; font-weight: 700; }.calendar-booking select { width: 100%; min-width: 0; margin-top: 3px; padding: 3px; border: 1px solid rgba(0,0,0,.16); border-radius: 4px; color: inherit; background: rgba(255,255,255,.75); font: inherit; }.pending-list { max-width: 1160px; margin: 0 auto 75px; padding: 24px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }.pending-list h2 { margin-bottom: 14px; font-size: 1.35rem; }.pending-list > p { color: var(--text-muted); }.pending-list__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }.pending-list__items a { display: grid; gap: 4px; padding: 13px; border: 1px solid #f0c864; border-radius: 9px; background: #fff9e9; }.pending-list__items a:hover { border-color: #d68700; }.pending-list__items span { color: var(--text-muted); font-size: .9rem; }
@media (max-width: 900px) { .calendar-shell, .pending-alert { margin-left: 20px; margin-right: 20px; }.calendar-shell { overflow-x: auto; padding-bottom: 8px; }.calendar-grid, .calendar-weekdays { min-width: 760px; grid-template-columns: repeat(7, minmax(100px, 1fr)); }.calendar-grid--day { min-width: 0; grid-template-columns: minmax(260px, 430px); }.calendar-day { aspect-ratio: auto; min-height: 178px; } }
@media (max-width: 600px) { .pending-alert { align-items: flex-start; }.pending-alert a { display: none; }.calendar-shell { overflow-x: auto; padding-bottom: 8px; }.calendar-weekdays, .calendar-grid { min-width: 650px; grid-template-columns: repeat(7, minmax(88px, 1fr)); }.calendar-grid--day { min-width: 0; grid-template-columns: 1fr; }.calendar-weekdays { display: none; }.calendar-grid--day .calendar-day { min-height: 360px; }.pending-list { margin-left: 20px; margin-right: 20px; } }
