/*
 * CLEAN HEADER CSS
 */

.site-header {
    background: #fff;
    /* border-bottom: 1px solid #f0f0f0; */
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 12px 0;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02); */
}

.site-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-header__logo img {
    height: 55px;
    object-fit: contain;
}

/* Navigation (Desktop) */
.site-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.site-header__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
}

.site-header__menu-item a {
    text-decoration: none;
    color: #444;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s;
    position: relative;
    display: block;
}

.site-header__menu-item.active>a,
.site-header__menu-item a:hover,
.site-header__submenu .site-header__submenu-item.active a {
    color: #3f462d;
}

.site-header__submenu .site-header__submenu-item.active a:after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    height: 2px;
    background-color: #3f462d;
}

.site-header__menu-item.active>a::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3f462d;
}

/* Actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header__search-btn,
.site-header__cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: color 0.3s;
    position: relative;
}

.site-header__search-btn:hover,
.site-header__cart-btn:hover {
    color: #3f462d;
}

.site-header__cart-btn .cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #3f462d;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.site-header__booking-btn {
    background-color: #e00;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.site-header__booking-btn:hover {
    background-color: #db0202;
    transform: translateY(-1px);
}

/* Mobile Hamburger */
.site-header__hamburger {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
}

.site-header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    transition: 0.3s;
}

/* Mobile Drawer */
.site-header__drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 1002;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.site-header__drawer.is-open {
    left: 0;
}

.site-header__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.site-header__overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.site-header__drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.site-header__drawer-logo img {
    height: 35px;
    object-fit: contain;
}

.site-header__drawer-close {
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.site-header__drawer-body {
    padding: 20px;
    overflow-y: auto;
}

.site-header__mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-header__mobile-menu li {
    border-bottom: 1px solid #f5f5f5;
}

.site-header__mobile-menu a {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.site-header__mobile-menu .mobile-menu__submenu a {
    font-size: 13px;
    padding: 10px 0;
}

.site-header__drawer-booking {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.site-header__booking-btn--mobile {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    background-color: #3f462d;
    box-shadow: 0 4px 14px rgba(120, 78, 47, 0.25);
}

.site-header__booking-btn--mobile:hover {
    background-color: #5d675b;
}

/* Responsive */
@media (max-width: 1024px) {
    .site-header__nav {
        display: none;
        /* Hide desktop menu on smaller screens */
    }

    .site-header__hamburger {
        display: flex;
        /* Show hamburger */
    }

    .site-header__actions .site-header__booking-btn {
        display: none !important;
        /* Hide booking btn in header actions on mobile/tablet */
    }
}

@media (max-width: 576px) {
    .site-header__logo img {
        height: 40px;
    }
}

/* Dropdown styles (Desktop) */
.site-header__menu-item--has-child {
    position: relative;
}

.site-header__menu-item--has-child>a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.site-header__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    max-width: 320px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.site-header__menu-item--has-child:hover>.site-header__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header__submenu-item {
    position: relative;
}

.site-header__submenu-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
}

.site-header__submenu-item a:hover {
    background: #f9f9f9;
    color: #3f462d;
}

.site-header__submenu-item--has-child>a {
    gap: 10px;
}

.site-header__sub-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 101;
}

.site-header__submenu-item--has-child:hover>.site-header__sub-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile Submenu Toggle Layout */
.mobile-menu__item-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-menu__item-wrap>a {
    flex: 1;
    min-width: 0;
}

.mobile-menu__toggle-btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 10px;
    margin-right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease;
}

.mobile-menu__toggle-btn svg {
    transition: transform 0.3s ease;
    color: #777;
}

.mobile-menu__toggle-btn:hover {
    color: #3f462d;
}

.mobile-menu__toggle-btn:hover svg {
    color: #3f462d;
}

.mobile-menu__has-child.open>.mobile-menu__item-wrap .mobile-menu__toggle-btn svg {
    transform: rotate(180deg);
}

.mobile-menu__submenu {
    list-style: disc;
    padding-left: 24px;
    display: none;
}

.mobile-menu__submenu>li {
    display: list-item;
    list-style-type: disc;
}

.mobile-menu__submenu>li::marker {
    color: #3f462d;
    font-size: 0.9em;
}

.mobile-menu__sub-submenu {
    list-style: circle;
    padding-left: 20px;
    display: none;
}

.mobile-menu__sub-submenu>li {
    display: list-item;
    list-style-type: circle;
}

.mobile-menu__has-child.open>.mobile-menu__submenu,
.mobile-menu__has-child.open>.mobile-menu__sub-submenu {
    display: block;
}

/* ====================================================
   Booking Modal (Yêu cầu nhận báo giá)
   ==================================================== */
#booking-modal {
    display: none;
}

#booking-modal.booking-modal,
.fancybox-slide--html .booking-modal.fancybox-content {
    max-width: 500px;
    width: 100%;
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 34px 28px 28px 28px !important;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.15) !important;
    overflow: visible !important;
}

/* Hide Fancybox default close button for booking-modal */
.booking-modal>.fancybox-close-small,
.fancybox-slide--html .booking-modal+.fancybox-close-small {
    display: none !important;
}

/* Custom Close Button */
.booking-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 10;
}

.booking-modal__close:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    transform: scale(1.05);
}

.booking-modal__header {
    text-align: center;
    margin-bottom: 22px;
    padding-right: 20px;
    padding-left: 20px;
}

.booking-modal__title {
    font-size: 23px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.booking-modal__subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Form Groups & Inputs */
.booking-form__group {
    margin-bottom: 14px;
}

.booking-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.booking-form__label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    line-height: 1.3;
}

.booking-form__label .required {
    color: #ef4444;
    margin-left: 2px;
}

.booking-form__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.booking-form__icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
}

.booking-form__icon svg {
    display: block;
}

.booking-form__input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 40px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
}

.booking-form__input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.booking-form__input:focus {
    background-color: #ffffff;
    border-color: #5d675b;
    box-shadow: 0 0 0 3px rgba(93, 103, 91, 0.15);
}

.booking-form__group:focus-within .booking-form__icon {
    color: #5d675b;
}

.booking-form__textarea {
    width: 100%;
    min-height: 85px;
    padding: 10px 14px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    resize: vertical;
    transition: all 0.2s ease;
}

.booking-form__textarea::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.booking-form__textarea:focus {
    background-color: #ffffff;
    border-color: #5d675b;
    box-shadow: 0 0 0 3px rgba(93, 103, 91, 0.15);
}

/* Submit Button */
.booking-form__submit {
    width: 100%;
    background-color: #5d675b;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(93, 103, 91, 0.35);
    margin-top: 14px;
}

.booking-form__submit svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.booking-form__submit:hover {
    background-color: #4a5248;
    box-shadow: 0 6px 18px rgba(93, 103, 91, 0.45);
}

.booking-form__submit:hover svg {
    transform: translateX(3px) translateY(-1px);
}

.booking-form__submit:active {
    transform: translateY(1px);
}

.booking-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Responsive */
@media (max-width: 575px) {

    #booking-modal.booking-modal,
    .fancybox-slide--html .booking-modal.fancybox-content {
        padding: 26px 18px 20px 18px !important;
        border-radius: 16px !important;
    }

    .booking-modal__title {
        font-size: 20px;
    }

    .booking-modal__subtitle {
        font-size: 13px;
    }

    .booking-form__row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}