/* RESET & GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Vibrant Pastels */
    --vibrant-pink: #FF99C8;
    --vibrant-blue: #A9DEF9;
    --vibrant-yellow: #FCF6BD;
    --vibrant-mint: #D0F4DE;
    --vibrant-purple: #E4C1F9;
    
    --bg-white: #FFFFFF;
    --bg-offwhite: #FDFDFD;
    
    --text-main: #4A4A4A;
    --text-pink: #E05780; 
    --text-blue: #5B95C3; 
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-offwhite);
    line-height: 1.6;
    overflow-x: hidden;
}

main {
    overflow: hidden; /* Cắt đứt hoàn toàn dư thừa rớt border */
    position: relative;
}

/* Cute Headings */
h1, h2, h3, .logo, .badge-cute {
    font-family: 'Baloo 2', cursive;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 800px;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

.subtitle-text {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-family: 'Nunito', sans-serif;
}

@keyframes pulseVibrant {
    0% { transform: scale(1); box-shadow: 0 8px 20px rgba(255, 153, 200, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 15px 25px rgba(255, 153, 200, 0.8); }
    100% { transform: scale(1); box-shadow: 0 8px 20px rgba(255, 153, 200, 0.4); }
}

.btn-primary-vibrant {
    background-color: var(--vibrant-pink);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    animation: pulseVibrant 2s infinite ease-in-out;
}

.btn-primary-vibrant:hover {
    animation: none;
    transform: translateY(-5px) scale(1.08);
    background-color: #FF85BB;
}

.btn-secondary-vibrant {
    background-color: var(--vibrant-blue);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    box-shadow: 0 8px 20px rgba(169, 222, 249, 0.4);
}

.btn-secondary-vibrant:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(169, 222, 249, 0.6);
    background-color: #92CDFA;
}

.btn-buy {
    background-color: var(--vibrant-pink);
    color: white;
    width: 100%;
    margin-top: 15px;
    font-size: 1rem;
    padding: 12px;
}

.btn-buy:hover {
    background-color: #FF85BB;
}

/* FLOATING SOCIAL BUTTONS */
@keyframes jiggleSocial {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px) rotate(-5deg); }
    75% { transform: translateY(0) rotate(5deg); }
}

.floating-socials {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fb-btn {
    background-color: #1877F2;
    animation: jiggleSocial 3s infinite ease-in-out;
}
.fb-btn:hover { animation: none; transform: scale(1.15) rotate(-10deg); }

.zl-btn {
    background-color: #0088FF;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Nunito', sans-serif;
    animation: jiggleSocial 3s infinite ease-in-out 1.5s; /* Delay to make them alternate */
}
.zl-btn:hover { animation: none; transform: scale(1.15) rotate(-10deg); }

/* HEADER */
.cute-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 900;
    border-bottom: 3px solid var(--vibrant-pink);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2.2rem;
    color: var(--text-pink);
    font-weight: 700;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 15px;
    border-radius: 50%;
    object-fit: contain;
    background: white; /* help blend transparent logos */
    padding: 2px;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 800;
    margin: 0 20px;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-pink);
}

/* BACKGROUND BLOBS */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    border-radius: 50%;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-pink {
    top: -50px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: var(--vibrant-pink);
}

.shape-blue {
    top: 300px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--vibrant-blue);
    animation-delay: -3s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

/* CAROUSEL FIXES */
.swiper-button-next, .swiper-button-prev {
    color: var(--text-pink) !important;
    background: white;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.swiper-pagination-bullet-active {
    background-color: var(--text-pink) !important;
}

/* Scale Animation for Swiper Slide */
.swiper-slide-active .hero-img {
    animation: scaleUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* HERO SECTION */
.hero-section {
    padding-top: 100px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 20px 0 60px;
}

/* Animations */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.text-animate {
    animation: slideInLeft 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.img-animate {
    animation: slideInRight 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.hero-content {
    flex: 1 1 50%;
    max-width: 50%;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
}

@keyframes bounceWave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); color: var(--vibrant-purple); }
}

.highlight-pink { 
    color: var(--text-pink); 
    display: inline-block;
    animation: bounceWave 3s infinite ease-in-out;
}
.highlight-blue { color: var(--text-blue); }

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
    font-weight: 600;
}

.hero-image-wrap {
    flex: 1 1 50%;
    max-width: 50%;
    min-width: 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Thay thế Image Glass mờ bằng Frame nổi rõ ràng */
.image-frame-clear {
    background: white;
    padding: 15px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border: 3px solid var(--vibrant-pink);
    transform: rotate(3deg);
    transition: transform 0.5s;
    position: relative;
}
.image-frame-clear::after {
    content: '';
    position: absolute;
    top: -15px; left: -15px; right: -15px; bottom: -15px;
    background: var(--vibrant-yellow);
    border-radius: 40px;
    z-index: -1;
    opacity: 0.5;
    transform: rotate(-5deg);
}

.image-frame-clear:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-img {
    border-radius: 20px;
    width: 400px;
    height: 400px;
    object-fit: cover;
}

/* TITLES */
.section-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
}

.section-title span {
    color: var(--text-pink);
}

/* PAIN POINTS (Cau Chuyen) */
.pain-points {
    padding: 80px 0;
}

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

.glass-vibrant {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid white;
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.glass-vibrant:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.08);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--vibrant-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.pain-card:nth-child(1) .icon-box { background: var(--vibrant-pink); }
.pain-card:nth-child(2) .icon-box { background: var(--vibrant-yellow); color: var(--text-main); }
.pain-card:nth-child(3) .icon-box { background: var(--vibrant-blue); }

.glass-vibrant h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

/* SOLUTION */
.solution {
    padding: 80px 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255, 153, 200, 0.15));
}

.solution-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.img-rounded {
    border-radius: 30px;
    width: 100%;
}
.shadow-heavy { box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.tilt-right { transform: rotate(2deg); }

.solution-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #444;
}

.solution-content .large-text {
    font-size: 1.5rem;
    color: var(--text-pink);
    font-family: 'Baloo 2', cursive;
}

/* BENEFITS */
.benefits {
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.benefit-item {
    padding: 40px;
    border-radius: 30px;
    transition: transform 0.3s;
    border: 3px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.benefit-item:hover {
    transform: translateY(-8px);
}

.bg-pink-light { background-color: var(--vibrant-pink); }
.bg-pink-light h3, .bg-pink-light p { color: white; }
.bg-pink-light .b-icon { color: white; }

.bg-blue-light { background-color: var(--vibrant-blue); }
.bg-blue-light h3, .bg-blue-light p { color: windowtext; }
.bg-blue-light .b-icon { color: white; }

.b-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* PRODUCT LIST */
.products-section {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transition: transform 0.3s;
    position: relative;
    border: 3px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--vibrant-pink);
}

.limit-edition {
    border: 3px solid var(--vibrant-blue);
    background: #F0F8FF;
}

.discount-tag {
    position: absolute;
    top: 30px;
    right: 30px;
    background-color: var(--text-pink);
    color: white;
    font-family: 'Baloo 2', cursive;
    font-size: 1.1rem;
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(224, 87, 128, 0.4);
    font-weight: bold;
}

.tag-blue { background-color: #0088FF; box-shadow: 0 4px 10px rgba(0, 136, 255, 0.4); }

.product-img {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-img img {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    text-align: center;
}

.product-title {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.3;
}

.price-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-weight: 700;
    font-size: 1.2rem;
}

.new-price {
    color: var(--text-pink);
    font-weight: 800;
    font-size: 1.6rem;
}

/* SWIPER GALLERY */
.gallery-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-offwhite), var(--vibrant-purple) 200%);
    width: 100%;
}

.gallerySwiper {
    width: 100%;
    padding: 20px;
}

.gallery-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-img:hover {
    transform: scale(1.05) translateY(-10px);
}

/* CTA SECTION */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    text-align: center;
    padding: 60px 40px;
    border-radius: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* FOOTER */
.cute-footer {
    padding: 40px 0 20px;
    border-top: 3px dashed var(--vibrant-pink);
}

.footer-content .logo {
    margin-bottom: 10px;
}

.copyright {
    margin-top: 20px;
    color: #999;
    font-weight: 600;
}

/* ================================== */
/* MODAL ORDER FORM                   */
/* ================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none; /* Ẩn đi */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show-modal {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border: 4px solid var(--vibrant-pink);
    transform: translateY(50px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.show-modal .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-offwhite);
    border: none;
    font-size: 1.5rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.close-modal:hover {
    background: var(--vibrant-pink);
    color: white;
}

.order-form .form-group {
    margin-bottom: 15px;
}

.order-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.order-form input, .order-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #EEE;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.order-form input:focus, .order-form textarea:focus {
    outline: none;
    border-color: var(--vibrant-pink);
}

.order-form input[readonly] {
    background-color: var(--vibrant-mint);
    font-weight: bold;
    color: #333;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

#submitMsg {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    .solution-container {
        flex-direction: column;
    }
    .hero-container-flex {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-image-wrap {
        max-width: 100%;
    }
    .hero-img {
        width: 300px;
        height: 300px;
    }
    .nav-links {
        display: none; /* Giấu link trên mobile */
    }
}

@media (max-width: 768px) {
    .benefits-grid, .product-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .gallery-img {
        height: 250px;
    }
}
