/* --- 1. CẤU HÌNH CHUNG --- */

:root {
    --primary-blue: #0a2e5c;
    --light-blue: #e3f2fd;
    --accent-gold: #d4af37;
    --white: #ffffff;
    --text-dark: #333333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --font-cursive: 'Great Vibes', cursive;
    --font-soft: 'Quicksand', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}


/* Typography */

.section-title,
.page-header-title {
    font-family: var(--font-heading);
    font-weight: 700 !important;
    background: linear-gradient(to right, var(--primary-blue), #bf953f, var(--primary-blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.logo-text-huongspa,
.hero-title,
.gold-text-cursive {
    font-family: var(--font-cursive) !important;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 1px rgba(255, 215, 0, 0.2);
    font-weight: 400 !important;
    animation: shine 4s linear infinite;
}

.logo-text-huongspa {
    font-size: 2.4rem;
    line-height: 1;
    padding: 6px 12px;
    display: inline-block;
    vertical-align: middle;
}

.logo-text-zikii,
.zikii-logo-big,
.zikii-text {
    background: linear-gradient(to right, var(--primary-blue), #4facfe, var(--primary-blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-soft);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: shine 3s linear infinite;
}

.logo-text-zikii {
    font-size: 2rem;
    padding-right: 25px;
    border-right: 2px solid #ddd;
    line-height: 1;
}

.zikii-logo-big {
    font-size: 4rem;
    margin-bottom: 10px;
    display: inline-block;
}


/* --- HEADER --- */

header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo-area {
    display: flex;
    align-items: center;
    margin-right: 28px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 36px;
    flex: 2 1 auto;
    justify-content: center;
}

.nav-links a {
    white-space: nowrap;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    font-family: var(--font-soft);
    padding: 4px 6px;
    cursor: pointer;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent-gold);
}

.nav-icons {
    display: flex;
    align-items: center;
    white-space: nowrap;
}


/* SEARCH ICON STYLING */

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

.search-wrap:hover {
    background-color: #f0f8ff;
}

.search-wrap i {
    font-size: 1.4rem;
    color: var(--primary-blue);
}

.search-wrap input {
    display: none !important;
}

.cart-icon-wrap {
    position: relative;
    cursor: pointer;
    display: inline-block;
    margin-left: 15px;
}

.cart-icon-wrap i {
    font-size: 1.3rem;
    color: var(--primary-blue);
    transition: 0.3s;
}

.cart-icon-wrap:hover i {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent-gold);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.mobile-menu-btn {
    display: none;
    /* Mặc định ẨN nút mobile trên PC */
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    margin-right: 15px;
}


/* --- HERO --- */

.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 46, 92, 0.4), rgba(10, 46, 92, 0.2)), url('https://images.unsplash.com/photo-1600334089648-b0d9d3028eb2?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: zoomEffect 30s infinite alternate;
}

@keyframes zoomEffect {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.hero-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    padding: 60px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 60px rgba(10, 46, 92, 0.1);
    max-width: 900px;
    width: 90%;
    animation: fadeUp 1s ease-out;
}

.hero-welcome {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 5px;
}

.hero-title {
    font-size: 5.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    padding-bottom: 10px;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: #444;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-hero-primary {
    padding: 15px 45px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(10, 46, 92, 0.2);
    border: none;
}

.btn-hero-primary:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
}

.btn-hero-secondary {
    padding: 15px 45px;
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-hero-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}

.hero-trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 25px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
}

.trust-item i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}


/* --- CONTENT --- */

.brand-intro-section {
    background-color: #f0f8ff;
    padding: 50px 5%;
    text-align: center;
    border-bottom: 1px solid #daeaff;
}

.about-section {
    padding: 80px 5%;
    background-color: var(--white);
    scroll-margin-top: 100px;
}

.divider {
    width: 80px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 0 auto 30px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    padding: 20px;
}

.about-main-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    width: 100%;
}

.img-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 60%;
    background-color: var(--light-blue);
    border-radius: 20px;
    z-index: 1;
}

.about-text-content {
    text-align: left;
}

.about-subtitle {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-list i {
    color: var(--accent-gold);
    margin-right: 15px;
    font-size: 1.1rem;
}

.highlight-box {
    border-left: 4px solid var(--accent-gold);
    padding: 25px;
    background: #f8fcff;
    border-radius: 0 10px 10px 0;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.products-section {
    background-color: var(--light-blue);
    padding: 60px 5%;
    scroll-margin-top: 80px;
}

.services-section {
    padding: 60px 5%;
    background-color: var(--white);
    scroll-margin-top: 80px;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 5px;
    max-width: 1200px;
    margin: 0 auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

.scroll-container::-webkit-scrollbar {
    height: 6px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

.scroll-container .product-card,
.scroll-container .service-card {
    flex: 0 0 280px;
}

.product-card,
.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 46, 92, 0.15);
}

.product-img-wrap {
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.product-img-wrap img,
.service-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.1);
}

.service-img {
    height: 180px;
}

.product-info,
.service-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    color: var(--accent-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin: 0 0 10px 0;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
    line-height: 1.3;
}

.service-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 52px;
    line-height: 1.3;
}

.service-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.product-price {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-top: auto;
    padding-top: 5px;
}

.btn-add {
    margin-top: 10px;
    padding: 10px 0;
    width: 100%;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.btn-add:hover {
    background-color: var(--accent-gold);
}

.btn-book {
    margin-top: auto;
    width: 100%;
    padding: 10px 0;
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-book:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 46, 92, 0.15);
}

.view-all-container {
    text-align: center;
    margin-top: 20px;
}

.btn-view-all {
    background: transparent;
    border: 2px solid var(--text-dark);
    padding: 12px 40px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

.btn-view-all:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-view-all i {
    margin-left: 10px;
}

.full-page-header {
    background-color: #f0f8ff;
    padding: 40px 5%;
    text-align: center;
    border-bottom: 1px solid #daeaff;
}

.page-header-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb span {
    cursor: pointer;
    color: var(--primary-blue);
    font-weight: bold;
}

.breadcrumb span:hover {
    text-decoration: underline;
}

.full-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
}

footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 40px 5% 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 0.8fr;
    gap: 70px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.footer-col h4.brand-footer {
    font-size: 3rem !important;
    margin-bottom: 15px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.footer-col h4.brand-footer.logo-text-huongspa {
    font-size: 2.5rem !important;
    line-height: 0.8 !important;
    padding-bottom: 5px !important;
    margin-left: 0 !important;
    display: inline-block;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 1px rgba(255, 215, 0, 0.2);
    font-family: var(--font-cursive);
    font-weight: 400 !important;
    animation: shine 4s linear infinite;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.footer-col ul li {
    margin-bottom: 12px;
    color: #d0d0d0;
    font-size: 0.95rem;
}

.footer-col ul li:hover {
    color: var(--white);
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    font-size: 0.85rem;
    color: #ccc;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icons i {
    font-size: 1.3rem;
    transition: 0.3s;
    color: white;
}

.social-icons i:hover {
    color: var(--accent-gold);
    transform: translateY(-3px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.overlay.active {
    display: block;
}

.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: 0.4s;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.cart-modal.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cart-header h3 {
    color: var(--primary-blue);
}

.close-cart {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    flex-grow: 1;
    font-size: 0.9rem;
}

.cart-item-details b {
    color: var(--primary-blue);
}

.cart-remove {
    color: red;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
}

.cart-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.cart-total {
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.btn-checkout-zalo {
    background-color: var(--primary-blue);
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    display: block;
    transition: 0.3s;
}

.btn-checkout-zalo:hover {
    background-color: var(--accent-gold);
}


/* --- SEARCH OVERLAY CSS --- */

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-overlay.active {
    display: flex;
}

.search-modal {
    background: white;
    width: 90%;
    max-width: 720px;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.search-modal input[type="search"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.search-results {
    margin-top: 12px;
    max-height: 320px;
    overflow-y: auto;
}

.search-result {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result:hover {
    background: #f8fafc;
}

.search-no-results {
    color: #999;
    padding: 12px;
    text-align: center;
}


/* --- TOAST & NOTIFICATION --- */

.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid var(--light-blue);
    transition: bottom 0.5s;
    min-width: 320px;
    justify-content: center;
    font-family: var(--font-soft);
    font-weight: 600;
}

.toast-notification.show {
    bottom: 30px;
}

.toast-icon {
    font-size: 1.5rem;
    color: #4cd964;
}

.zalo-instruction-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 4000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.zalo-instruction-modal.active {
    display: flex;
    opacity: 1;
}

.zalo-modal-content {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s;
}

.zalo-instruction-modal.active .zalo-modal-content {
    transform: scale(1);
}

.success-circle {
    width: 70px;
    height: 70px;
    background: #e8f5e9;
    color: #4cd964;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.zalo-modal-content h3 {
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.step-box {
    background: #f8fcff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px dashed var(--light-blue);
    text-align: left;
}

.step-box i {
    color: var(--primary-blue);
}

.btn-open-zalo {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-open-zalo:hover {
    background: var(--accent-gold);
}

.close-instruction {
    display: inline-block;
    margin-top: 15px;
    color: #999;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}


/* --- PRODUCT DETAIL MODAL CSS --- */

.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2500;
    display: none;
    backdrop-filter: blur(5px);
}

.detail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px;
    z-index: 2600;
    display: none;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    opacity: 0;
}

.detail-modal.active {
    display: block;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.detail-overlay.active {
    display: block;
}

.close-detail {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #555;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.close-detail:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

.detail-grid {
    display: flex;
    flex-wrap: wrap;
}

.detail-img-col {
    flex: 1 1 400px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.detail-img-col img {
    max-height: 400px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.detail-info-col {
    flex: 1 1 400px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.detail-cat {
    color: var(--accent-gold);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    line-height: 1.2;
}

.detail-price {
    font-size: 1.8rem;
    color: #e53935;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.detail-desc {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.detail-highlights {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-blue);
}

.detail-highlights h4 {
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-family: var(--font-soft);
}

.detail-highlights ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.detail-highlights ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}


/* NÚT BẤM ĐÃ SỬA LỖI XUỐNG DÒNG */

.detail-actions {
    margin-top: auto;
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-detail-add,
.btn-detail-zalo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    /* Cấm xuống dòng */
    height: 50px;
    /* Chiều cao cố định */
    padding: 0 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-detail-add {
    flex: 2;
    background: #bf953f;
    /* Màu vàng nâu sang trọng */
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(10, 46, 92, 0.3);
}

.btn-detail-add:hover {
    background: #aa771c;
    transform: translateY(-3px);
}

.btn-detail-zalo {
    flex: 1;
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-detail-zalo:hover {
    background: var(--light-blue);
}


/* RESPONSIVE */

@media (max-width: 1100px) {
    .search-wrap {
        flex: 0 1 260px;
        max-width: 45vw;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }
    .mobile-menu-btn {
        display: block;
        order: 1;
    }
    .logo-area {
        order: 2;
        margin-right: 0;
    }
    .nav-icons {
        order: 3;
        gap: 0;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px 20px;
        z-index: 2000;
        transition: 0.3s;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        justify-content: flex-start;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-links a {
        padding: 15px 0;
        font-size: 1rem;
        width: 100%;
        display: block;
    }
    .logo-text-zikii {
        font-size: 1.4rem;
        padding-right: 10px;
    }
    .logo-text-huongspa {
        font-size: 1.6rem;
        margin: 0 5px;
    }
    /* Responsive Search */
    .search-wrap {
        display: block;
        margin-right: 15px;
        flex: none;
        min-width: auto;
    }
    .search-wrap i {
        display: block;
        font-size: 1.3rem;
        color: var(--primary-blue);
    }
    .hero {
        padding: 60px 15px;
        height: auto;
        min-height: 80vh;
    }
    .hero-card {
        padding: 30px 20px;
        width: 100%;
    }
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    .hero-desc {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        padding: 12px 20px;
    }
    .hero-trust-badges {
        gap: 15px;
        justify-content: space-around;
    }
    .trust-item {
        font-size: 0.8rem;
    }
    .brand-intro-section,
    .about-section,
    .products-section,
    .services-section,
    .full-page-header {
        padding: 40px 15px;
    }
    .section-title,
    .page-header-title {
        font-size: 2rem;
    }
    .zikii-logo-big {
        font-size: 2.5rem;
    }
    .about-subtitle {
        font-size: 1.4rem;
    }
    .scroll-container {
        gap: 15px;
        padding: 10px 5px 20px;
    }
    .scroll-container .product-card,
    .scroll-container .service-card {
        flex: 0 0 180px;
    }
    .product-img-wrap,
    .service-img {
        height: 160px;
    }
    .product-info,
    .service-info {
        padding: 10px;
    }
    .product-name {
        font-size: 1rem;
        min-height: 40px;
    }
    .service-name {
        font-size: 1.1rem;
        min-height: 44px;
    }
    .service-desc {
        font-size: 0.85rem;
        min-height: 38px;
    }
    .product-price {
        font-size: 1rem;
    }
    .btn-add,
    .btn-book {
        font-size: 0.85rem;
        padding: 8px 0;
        margin-top: 5px;
    }
    .full-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
        margin: 20px auto;
    }
    .full-grid-container .product-img-wrap,
    .full-grid-container .service-img {
        height: 150px;
    }
    .full-grid-container .product-info,
    .full-grid-container .service-info {
        padding: 10px;
    }
    .full-grid-container .product-name {
        font-size: 0.95rem;
        min-height: 40px;
    }
    .full-grid-container .service-name {
        font-size: 1rem;
        min-height: 44px;
    }
    .full-grid-container .btn-add,
    .full-grid-container .btn-book {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    .page-header-title {
        font-size: 1.8rem;
    }
    .about-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .about-text-content {
        text-align: left;
    }
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .social-icons {
        justify-content: center;
    }
    /* Sửa giỏ hàng mobile: Không full màn hình */
    .cart-modal {
        width: 320px !important;
        /* Hoặc 85% nếu thích linh hoạt */
        max-width: 85%;
        /* Đảm bảo không quá to trên máy nhỏ */
        right: -100% !important;
        /* Ẩn hẳn sang phải */
    }
    .cart-modal.active {
        right: 0 !important;
        /* Hiện ra sát lề phải */
    }
    /* Mobile Modal - Nút xếp chồng */
    .detail-info-col {
        padding: 25px;
    }
    .detail-title {
        font-size: 1.6rem;
    }
    .detail-img-col {
        padding: 10px;
        background: #fff;
    }
    .detail-img-col img {
        max-height: 250px;
    }
    .detail-actions {
        flex-direction: column;
        height: auto;
    }
    .btn-detail-add,
    .btn-detail-zalo {
        width: 100%;
        flex: none;
    }
}


/* ================================================= */


/* FIX LỖI: ẨN CÁC NÚT CỦA ĐIỆN THOẠI TRÊN MÁY TÍNH */


/* ================================================= */


/* Mặc định trên Máy tính: ẨN hết nút 3 gạch và nút X */

.mobile-menu-btn {
    display: none !important;
}


/* Ẩn luôn ô input tìm kiếm và nút X cũ nếu còn sót */

.search-wrap input,
.header-search-results,
#searchCloseBtn-old {
    display: none !important;
}


/* ================================================= */


/* MOBILE: MÀN HÌNH ĐIỆN THOẠI (< 768px) */


/* ================================================= */

@media (max-width: 768px) {
    /* 1. KHUNG CHỨA (Làm mốc tọa độ) */
    .nav-container {
        position: relative !important;
        height: 60px;
        /* Chiều cao cố định cho header mobile */
        padding: 0 15px !important;
        display: flex;
        /* Giữ flex để căn giữa dọc */
        align-items: center;
        justify-content: center;
        /* Mặc định căn giữa */
    }
    /* 2. NÚT MENU: ÉP SANG GÓC TRÁI */
    .mobile-menu-btn {
        display: block !important;
        position: absolute !important;
        /* Tách khỏi dòng chảy */
        left: 15px !important;
        /* Dính sát lề trái */
        top: 50%;
        transform: translateY(-50%);
        /* Căn giữa theo chiều dọc */
        font-size: 1.4rem;
        color: var(--primary-blue);
        cursor: pointer;
        z-index: 10;
    }
    /* 3. ICON PHẢI: ÉP SANG GÓC PHẢI */
    .nav-icons {
        position: absolute !important;
        /* Tách khỏi dòng chảy */
        right: 15px !important;
        /* Dính sát lề phải */
        top: 50%;
        transform: translateY(-50%);
        /* Căn giữa theo chiều dọc */
        display: flex !important;
        align-items: center;
        gap: 0 !important;
        z-index: 10;
    }
    /* 4. LOGO: NẰM CHÍNH GIỮA (Không position absolute để tránh đè nếu logo quá dài, nhưng ở đây dùng flex center của cha là được) */
    .logo-area {
        display: flex !important;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        margin: 0 !important;
        /* Nếu logo vẫn bị lệch, bỏ comment dòng dưới đây để ép cứng: */
        /* position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); */
    }
    .logo-text-zikii {
        font-size: 1.4rem !important;
        padding-right: 8px !important;
        border-right: 1px solid #ddd !important;
        line-height: 1 !important;
    }
    .logo-text-huongspa {
        font-size: 1.5rem !important;
        margin-left: 8px !important;
        line-height: 1 !important;
    }
    /* Tinh chỉnh Icon */
    .search-wrap {
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-right: 5px !important;
        width: 35px;
        height: 35px;
    }
    .cart-icon-wrap {
        margin-left: 0 !important;
        padding-left: 5px;
    }
    .search-wrap input,
    .header-search-results {
        display: none !important;
    }
    /* MENU DỌC (Giữ nguyên) */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px 20px;
        z-index: 2000;
        transition: 0.3s;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        justify-content: flex-start;
        display: flex !important;
    }
    .nav-links.active {
        left: 0;
    }
    /* Nút X trong menu dọc */
    .nav-links .mobile-menu-btn {
        position: absolute !important;
        /* Ghi đè lại để nút X nằm đúng chỗ trong menu */
        top: 20px !important;
        right: 20px !important;
        left: auto !important;
        /* Bỏ left của header */
        transform: none !important;
        color: #555;
    }
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-links a {
        padding: 15px 0;
        font-size: 1rem;
        width: 100%;
        display: block;
    }
    /* Modal hiển thị đẹp trên mobile */
    .detail-actions {
        flex-direction: column;
        height: auto;
    }
    .btn-detail-add,
    .btn-detail-zalo {
        width: 100%;
        flex: none;
    }
    .detail-info-col {
        padding: 20px;
    }
    .detail-img-col {
        padding: 0;
    }
}