/* --- CSS THEO PHONG CÁCH E-COMMERCE TƯƠI SÁNG --- */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --clr-hero-bg: #3E6B46; 
    --clr-yellow: #EFB328; 
    --clr-yellow-hover: #DDA11B;
    --clr-green-light: #6BA848; 
    --clr-bg-main: #FFFFFF; 
    --clr-bg-card: #FAF8F5; 
    --clr-bg-card-orange: #FEF4E8; 
    --clr-text-dark: #212529; 
    --clr-text-gray: #6C757D; 
    --clr-footer-bg: #2C302B; 
    
    --font-heading: 'Baloo 2', cursive; 
    --font-body: 'Inter', sans-serif; 
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-main);
    color: var(--clr-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.text-yellow { color: var(--clr-yellow); }
.text-green { color: var(--clr-hero-bg); }
.text-light-green { color: var(--clr-green-light); }
.text-red { color: #E74C3C; }
.text-center { text-align: center; }
.mt-5 { margin-top: 50px; }

/* Thay ảnh thực tế */
.real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* --- KHU VỰC HERO --- */
.hero-wrapper {
    background-color: var(--clr-hero-bg);
    position: relative;
    padding-bottom: 25px; 
}

.navbar { padding: 20px 0; width: 100%; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: white;
}
.nav-links { display: flex; gap: 35px; }
.nav-links a { color: rgba(255,255,255,0.9); text-decoration: none; font-weight: 500; font-size: 1.05rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--clr-yellow); }

.nav-actions { display: flex; gap: 15px; }
.icon-btn {
    width: 42px; height: 42px; border-radius: 50%;
    background-color: rgba(255,255,255,0.1); color: white;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: all 0.3s ease;
}
.icon-btn.search-btn { background-color: white; color: var(--clr-hero-bg); }
.icon-btn:hover { background-color: var(--clr-yellow); color: white; transform: scale(1.05); }

/* Nội dung Hero */
.hero { display: flex; align-items: center; padding: 40px 20px 70px; }
.hero-content { flex: 1; color: white; z-index: 2; padding-right: 30px; }
.hero-title { font-family: var(--font-heading); font-size: 4rem; line-height: 1.15; margin-bottom: 10px; }
.hero-subtitle { font-family: var(--font-heading); font-size: 2.2rem; color: var(--clr-yellow); margin-bottom: 20px; line-height: 1.1; }
.hero-desc { font-size: 1.15rem; margin-bottom: 35px; opacity: 0.95; max-width: 520px; }

.btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 36px; border-radius: 40px; font-weight: 700;
    text-decoration: none; transition: all 0.3s ease;
    font-family: var(--font-heading); font-size: 1.2rem; border: none; cursor: pointer;
}
.btn-yellow { background-color: var(--clr-yellow); color: white; text-transform: uppercase; box-shadow: 0 4px 15px rgba(239, 179, 40, 0.4); }
.btn-yellow:hover { background-color: var(--clr-yellow-hover); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(239, 179, 40, 0.6); }

/* Hình ảnh Hero */
.hero-image { flex: 1; position: relative; display: flex; justify-content: flex-end; }
.hero-img-box {
    width: 480px; height: 480px; border-radius: 50%;
    background-color: var(--clr-bg-card);
    box-shadow: 0 25px 45px rgba(0,0,0,0.25);
    border: 8px solid rgba(255,255,255,0.2);
    position: relative; z-index: 2;
    overflow: hidden; /* Cắt ảnh tròn */
}
.leaf-1, .leaf-2 { position: absolute; color: rgba(255,255,255,0.4); font-size: 3.5rem; z-index: 1; }
.leaf-1 { top: 10%; left: 0%; transform: rotate(45deg); }
.leaf-2 { bottom: 0%; right: 25%; transform: rotate(-20deg); color: #8CBC56;}

.custom-shape-divider-bottom { position: absolute; bottom: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; transform: rotate(180deg); }
.custom-shape-divider-bottom svg { position: relative; display: block; width: calc(100% + 1.3px); height: 70px; }
.custom-shape-divider-bottom .shape-fill { fill: var(--clr-bg-main); }

/* --- KHU VỰC NỘI DUNG CHÍNH --- */
.main-content { padding: 60px 0; }

.features-row { display: flex; gap: 30px; margin-bottom: 30px; }
.feature-card { border-radius: 24px; display: flex; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.large-card { flex: 1; background-color: var(--clr-bg-card-orange); padding: 35px 40px; justify-content: space-between; align-items: center; transition: transform 0.3s; }
.large-card:hover { transform: translateY(-3px); }
.fc-content h3 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 8px; color: var(--clr-text-dark); }
.fc-content p { color: var(--clr-text-gray); font-size: 1rem; margin-top: 8px; }

.small-features-row { display: flex; gap: 20px; margin-bottom: 80px; }
.small-card {
    flex: 1; background-color: var(--clr-bg-card); flex-direction: column; align-items: center;
    text-align: center; padding: 30px 15px; gap: 15px; transition: all 0.3s;
}
.small-card:hover { background-color: white; box-shadow: 0 10px 25px rgba(0,0,0,0.06); transform: translateY(-5px); }
.small-card h4 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--clr-text-dark); }

/* Mới: Khu vực ảnh thực tế (Story Section) */
.story-section {
    display: flex; gap: 50px; align-items: center; margin-bottom: 80px;
    background-color: var(--clr-bg-card); border-radius: 30px; padding: 40px;
}
.story-content { flex: 1; }
.story-content h2 { font-family: var(--font-heading); font-size: 2.8rem; color: var(--clr-hero-bg); margin-bottom: 20px; line-height: 1.2; }
.story-content p { font-size: 1.1rem; color: var(--clr-text-dark); margin-bottom: 15px; }

.story-image-box {
    flex: 1; height: 350px; border-radius: 20px;
    overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: rotate(2deg); transition: transform 0.3s;
}
.story-image-box:hover { transform: rotate(0); }

/* Khu vực Menu / Grid Sản Phẩm */
.section-heading { text-align: center; margin-bottom: 50px; }
.section-heading h2 { font-family: var(--font-heading); font-size: 3rem; color: var(--clr-text-dark); margin-bottom: 5px; }
.heading-icons { display: flex; justify-content: center; gap: 15px; font-size: 1.4rem; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

.product-card {
    background-color: var(--clr-bg-card); border-radius: 20px; padding: 20px;
    position: relative; transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); background-color: white; }

.product-img-box {
    height: 180px; border-radius: 12px; margin-bottom: 15px;
    background-color: #EFEFEF; overflow: hidden; /* Chứa ảnh thật */
}

.product-info { text-align: left; }
.product-title { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 8px; color: var(--clr-text-dark); }
.product-desc {
    font-size: 0.9rem; color: var(--clr-text-gray); margin-bottom: 12px;
}

.price-row {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-top: 15px; border-top: 1px dashed #E0E0E0; padding-top: 15px;
}
.price-block { display: flex; flex-direction: column; }
.price { font-family: var(--font-heading); font-size: 1.5rem; color: var(--clr-text-dark); font-weight: 800; line-height: 1; }
.unit { font-size: 0.85rem; color: var(--clr-text-gray); font-weight: 600; margin-top: 2px; }

.btn-yellow-circle {
    width: 45px; height: 45px; border-radius: 50%; border: none;
    background-color: var(--clr-yellow); color: white; font-size: 1.3rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, background-color 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-yellow-circle:hover { transform: scale(1.1) rotate(90deg); background-color: var(--clr-yellow-hover); }

.promo-text {
    background-color: rgba(239, 179, 40, 0.15); color: var(--clr-text-dark);
    display: inline-flex; align-items: center; padding: 18px 40px;
    border-radius: 40px; font-size: 1.15rem; border: 1px dashed var(--clr-yellow);
}

/* --- VÙNG FOOTER --- */
.custom-shape-divider-top { position: relative; width: 100%; overflow: hidden; line-height: 0; margin-bottom: -1px; }
.custom-shape-divider-top svg { position: relative; display: block; width: calc(100% + 1.3px); height: 80px;  }
.custom-shape-divider-top .shape-fill { fill: var(--clr-footer-bg); }

.footer { background-color: var(--clr-footer-bg); color: rgba(255,255,255,0.7); padding: 30px 0 20px; }
.footer-content { display: flex; justify-content: space-between; gap: 50px; margin-bottom: 40px; }
.footer-col { flex: 1; }
.brand-col { flex: 2; }
.footer-logo { font-family: var(--font-heading); font-size: 2rem; color: white; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.brand-col p { font-size: 1rem; line-height: 1.8; }
.footer-col h4 { font-family: var(--font-heading); font-size: 1.4rem; color: white; margin-bottom: 20px; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 12px; transition: color 0.3s; font-size: 0.95rem; }
.footer-col a:hover { color: var(--clr-yellow); padding-left: 5px; }

.social-icons { display: flex; gap: 15px; margin-top: 25px; }
.social-icons a {
    width: 45px; height: 45px; border-radius: 50%; background-color: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; transition: all 0.3s ease;
}
.social-icons a:hover { background-color: var(--clr-yellow); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.95rem; }

/* Responsive */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .story-section { flex-direction: column; padding: 30px; }
    .story-image-box { width: 100%; height: auto; transform: none; }
}

@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding-top: 20px;}
    .hero-content { padding-right: 0; margin-bottom: 40px;}
    .hero-title { font-size: 3.5rem; }
    .hero-image { justify-content: center; display: none; } /* Giấu trên mobile cho gọn */
    
    .nav-links { display: none; }
    .features-row { flex-direction: column; }
    .small-features-row { flex-wrap: wrap; }
    .small-card { min-width: 45%; }
    
    .footer-content { flex-direction: column; gap: 30px; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .promo-text { font-size: 0.9rem; padding: 15px; }
}

/* --- NÚT LIÊN HỆ ĐỘNG (ZALO/CALL) --- */
.floating-contact { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 20px; z-index: 999; }
.float-btn {
    width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    text-decoration: none; position: relative; cursor: pointer; color: white;
}
.float-btn img { width: 35px; height: 35px; object-fit: contain; }
.float-btn i { font-size: 28px; }
.zalo-btn { background-color: #0068FF; }
.phone-btn { background-color: #28a745; }

/* Pulse Animation */
@keyframes pulse-zalo {
    0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(0, 104, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}
@keyframes pulse-phone {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.pulse-zalo { animation: pulse-zalo 2s infinite; }
.pulse-phone { animation: pulse-phone 2s infinite; animation-delay: 1s; } /* lệch nhịp 1s */

@media (max-width: 768px) {
    .floating-contact { bottom: 20px; right: 20px; gap: 15px; }
    .float-btn { width: 50px; height: 50px; }
    .float-btn img { width: 30px; height: 30px; }
    .float-btn i { font-size: 22px; }
}

/* --- CART MODAL & FORM STYLE --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(0,0,0,0.6); z-index: 1000;
    display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
    background-color: white; border-radius: 20px; width: 90%; max-width: 500px;
    max-height: 90vh; display: flex; flex-direction: column;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2); transform: translateY(20px);
    transition: transform 0.3s ease; overflow: hidden;
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-header {
    background-color: var(--clr-hero-bg); color: white; padding: 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-family: var(--font-heading); font-size: 1.5rem; margin: 0; }
#close-modal { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; transition: color 0.2s; }
#close-modal:hover { color: var(--clr-yellow); }

.modal-body { padding: 20px; overflow-y: auto; flex: 1; }

/* Các món trong giỏ */
.cart-items-container { margin-bottom: 20px; border-bottom: 1px solid #E0E0E0; padding-bottom: 15px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.cart-item-info { flex: 1; padding-right: 15px; }
.cart-item-title { font-weight: 600; color: var(--clr-text-dark); margin-bottom: 5px; }
.cart-item-price { color: var(--clr-text-gray); font-size: 0.9rem; }

.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 28px; height: 28px; border-radius: 5px; border: 1px solid #CCC; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: #EEE; }
.item-qty { font-weight: bold; width: 20px; text-align: center; }
.remove-item { color: var(--clr-text-gray); font-size: 1.1rem; cursor: pointer; border: none; background: none; }
.remove-item:hover { color: var(--clr-text-dark); }

.cart-total-row { display: flex; justify-content: space-between; font-size: 1.25rem; margin-bottom: 25px; align-items: center; }
#cart-total-price { font-family: var(--font-heading); font-size: 1.6rem; }

/* Form Order */
.checkout-form h4 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 15px; border-bottom: 2px dashed #E0E0E0; padding-bottom: 10px; display: inline-block; }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea {
    width: 100%; border: 1px solid #DDD; border-radius: 8px; padding: 12px 15px; font-family: var(--font-body); font-size: 1rem;
    background-color: #FAFAFA; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--clr-yellow); outline: none; background-color: white; }
.w-100 { width: 100%; justify-content: center; }
.submit-btn { padding: 14px 20px; font-size: 1.1rem; gap: 8px; }

/* Floating Cart Button (Góc dưới) */
.cart-btn { background-color: #E74C3C; position: relative; }
.cart-badge {
    position: absolute; top: -5px; right: -5px; background: var(--clr-yellow); color: var(--clr-text-dark);
    font-size: 0.85rem; font-weight: bold; width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
@keyframes pulse-cart {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}
.pulse-cart { animation: pulse-cart 2s infinite; animation-delay: 0.5s; }

/* Toast Success Message */
.toast {
    position: fixed; top: 20px; right: 20px; background-color: var(--clr-hero-bg); color: white;
    padding: 15px 25px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 15px; font-weight: 500; font-size: 1.05rem; z-index: 2000;
    transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast.show { transform: translateX(0); }
.toast i { font-size: 1.5rem; color: var(--clr-yellow); }
