/* Zomzem Theme basic styles */
:root {
    --primary: #8c3a1e;
    --secondary: #ffb703;
    --text: #1b1b1b;
    --muted: #6b7280;
    --bg: #ffffff;
    --zz-blue-light: #d4eafc;
    --zz-blue: #0f6bac;
    --zz-blue-dark: #0d5e9b;
    --zz-blue-transparent: rgb(167 211 241 / 11%);
    --zz-font-family: 'Philosopher', sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
}

.page-container {
    max-width: 85vw;
    margin: 0 auto;
    padding: 80px 40px 0 40px;
    /* Added top padding for fixed header */
    width: 100%;
    box-sizing: border-box;
}

/* Responsive adjustments matching header.css */
@media (max-width: 1400px) {
    .page-container {
        padding: 80px 40px 0 40px;
    }
}

@media (max-width: 1250px) {
    .page-container {
        padding: 100px 25px 0 25px;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 100px 0px 0 0px;
        /* Slightly less top padding on mobile */
    }
}

@media (max-width: 768px) {
    .page-container {
        max-width: 90vw;
    }
}

@media (max-width: 425px) {
    .page-container {
        max-width: 90vw;
    }
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: center;
    padding: 56px 0;
    min-height: calc(100vh - 80px);
    /* Full viewport height minus header (~80px) */
}

.hero h1 {
    font-size: 44px;
    line-height: 1.15;
    margin: 0 0 12px;
}

.hero p {
    font-size: 18px;
    color: var(--muted);
    margin: 0 0 20px;
}

.hero .cta {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
}

.footer {
    margin-top: 40px;
    padding: 24px 0;
    border-top: 1px solid #eee;
    color: #444;
}

.footer .cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    padding: 6px 8px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.muted {
    color: var(--muted);
}

/* Forms */
form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

form .row-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

label {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    display: block;
}

.note {
    font-size: 13px;
    color: var(--muted);
}

.alert {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1fae5;
    background: #ecfdf5;
    color: #065f46;
    margin-bottom: 12px;
}

.alert-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer .cols {
        grid-template-columns: 1fr;
    }

    form .row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.promotion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.promotion-grid .card img {
    padding: 0;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

@media (max-width: 960px) {
    .promotion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .promotion-grid {
        grid-template-columns: 1fr;
    }
}

.product-carousel-wrapper .card img {
    padding: 0;
    object-fit: cover;
}

.package-carousel-wrapper .card img {
    padding: 0;
    object-fit: cover;
}

.map-section {
    padding: 0;
    height: calc(100vh - 80px);
    /* Full viewport height minus header (~80px) */
}

/* ICON CONTACT */
.contact-buttons {
    position: fixed;
    right: 20px;
    bottom: 5vh;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: floating 3s ease-in-out infinite;
    text-decoration: none;
    position: relative;
}

.contact-btn:hover {
    transform: scale(1.1) translateY(-5px);
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); */
}

.contact-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.contact-btn:hover::before {
    opacity: 1;
}

.zalo-btn {
    background: linear-gradient(135deg, #0068FF, #0095FF);
    animation-delay: 0s;
}

.phone-btn {
    background: linear-gradient(135deg, #00D9FF, #00A3FF);
    animation-delay: 0.3s;
}

.messenger-btn {
    background: linear-gradient(135deg, #00B2FF, #006AFF);
    animation-delay: 0.6s;
}

.contact-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Toggle Button Styles */
.contact-toggle-btn {
    background: transparent;
    border: none;
    animation-delay: 0s;
    order: 1;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
    overflow: hidden;
    padding: 0;
}

.contact-toggle-btn .icon-open {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.contact-toggle-btn .icon-close {
    display: none;
    fill: white;
}

.contact-toggle-btn.active .icon-close {
    display: block;
}

.contact-toggle-btn.active .icon-open {
    display: none;
}

.contact-toggle-btn.active {
    background: linear-gradient(135deg, #0c8ce9, #0d5e9b);
}

/* Sub Buttons Container */
.contact-sub-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    order: 0;
    padding-bottom: 8px;
}

.contact-sub-buttons .contact-btn {
    transform: translateY(30px) scale(0.8);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease,
                visibility 0.3s ease;
}

.contact-sub-buttons.open .contact-btn {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-sub-buttons.open .contact-btn:nth-child(1) {
    transition-delay: 0.05s;
}

.contact-sub-buttons.open .contact-btn:nth-child(2) {
    transition-delay: 0.1s;
}

.contact-sub-buttons.open .contact-btn:nth-child(3) {
    transition-delay: 0.15s;
}

.back-to-top {
    position: fixed;
    right: 27px;
    bottom: 280px;
    width: 50px;
    height: 50px;
    background: #0c8ce9;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    font-size: 20px;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #0056b3;
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .contact-buttons {
        right: 15px;
        bottom: 15px;
        gap: 12px;
    }

    .contact-btn {
        width: 50px;
        height: 50px;
    }

    .contact-btn svg {
        width: 26px;
        height: 26px;
    }

    .back-to-top {
        right: 15px;
        bottom: 210px;
    }
}


/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 500;
    margin-top: 1.5rem;
}

.breadcrumbs a {
    color: var(--zz-blue-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: #999;
    font-size: 12px;
}

.breadcrumbs span:last-child {
    color: #333;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .breadcrumbs {
        margin: 3rem 15px;
    }
}

@media (max-width: 768px) {
    .breadcrumbs {
        margin: 2rem 15px;
        font-size: 13px;
        padding: 12px 0;
        margin-bottom: 20px;
    }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Allow clicks to pass through container */
}

.toast-message {
    background: white;
    color: #333;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #ccc;
    pointer-events: auto;
    /* Re-enable clicks on toasts */
}

.toast-message.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content i {
    font-size: 18px;
}

.toast-success {
    border-left-color: #28a745;
}

.toast-success i {
    color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-error i {
    color: #dc3545;
}

.toast-info {
    border-left-color: #17a2b8;
}

.toast-info i {
    color: #17a2b8;
}

.toast-warning {
    border-left-color: #ffc107;
}

.toast-warning i {
    color: #ffc107;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    line-height: 1;
}

.toast-close:hover {
    color: #333;
}