/* --- 1. CẤU HÌNH BIẾN MÀU SẮC --- */
:root {
    --primary: #ff4757; /* Đỏ cam */
    --secondary: #ffa502; /* Vàng cam */
    --dark: #2f3542;
    --light: #f1f2f6;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

/* --- 2. HIỆU ỨNG GLASSMORPHISM HEADER --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    position: relative;
    padding: 5px 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    animation: shimmer 3s linear infinite;
}

.logo::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-image: url('image/svg-icon.jpg'); /* Thay đổi đường dẫn đến ảnh logo của bạn */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 24px;
    margin-right: 8px;
    -webkit-text-fill-color: initial;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 71, 87, 0.5));
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.nav-links { display: flex; gap: 25px; }
.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary);
    transition: width 0.3s ease, left 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* --- 3. HERO SECTION (ẢNH NẰM SAU LÀM NỀN) --- */
.hero {
    position: relative;
    height: 90vh; /* Chiều cao màn hình */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), image-set('image/ba-mia.jpg'); /* Thay đổi đường dẫn đến ảnh nền của bạn */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Hiệu ứng Parallax khi cuộn */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    /* Hiệu ứng bóng chữ phát sáng */
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.8);
    animation: popIn 1s ease forwards;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    animation: slideUp 1.2s ease forwards;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- CẤU HÌNH ICON BAY DẠNG ẢNH --- */
.floating-icon {
    position: absolute;
    opacity: 0.8; /* Tăng độ rõ lên một chút cho ảnh */
    animation: float 6s infinite ease-in-out;
    z-index: 1;
}

/* Style riêng cho thẻ IMG bên trong */
.floating-icon img {
    width: 60px; /* Kích thước mặc định của icon */
    height: auto;
    display: block;
    /* Tạo bóng đổ cho ảnh để nó nổi lên trên nền */
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
}

/* Vị trí các icon */
.icon-1 { top: 20%; left: 10%; animation-delay: 0s; }

.icon-2 { top: 60%; right: 15%; animation-delay: 1s; }
.icon-2 img { width: 90px; } /* Icon này to hơn (ví dụ đùi gà) */

.icon-3 { bottom: 10%; left: 30%; animation-delay: 2s; }

.icon-4 { top: 15%; right: 25%; animation-delay: 1.5s; }
.icon-4 img { width: 50px; } /* Icon này nhỏ hơn (ví dụ ớt) */


/* Nút kêu gọi hành động */
.btn-shine {
    position: relative;
    padding: 15px 45px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    overflow: hidden;
    display: inline-block;
    transition: transform 0.3s;
    box-shadow: 0 10px 20px rgba(255, 71, 87, 0.4);
    animation: pulseBtn 2s infinite;
}
.btn-shine::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}
.btn-shine:hover::before { left: 100%; }
.btn-shine:hover { transform: translateY(-5px); }

/* Sóng lượn cuối banner */
.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}
.wave-bottom svg {
    display: block;
    width: 100%;
    height: 100px;
}

/* --- 4. SẢN PHẨM --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; color: var(--primary); }
.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: #fff;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    overflow: hidden;
}
.card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

.ribbon {
    position: absolute; top: 20px; right: -35px;
    background: var(--primary); color: #fff;
    padding: 5px 40px; transform: rotate(45deg);
    font-weight: bold; font-size: 14px; z-index: 10;
}

.card-img-box { height: 280px; overflow: hidden; }
.card-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img-box img { transform: scale(1.1) rotate(2deg); }

.card-content { padding: 25px; text-align: center; }
.card-title { font-size: 1.4rem; margin-bottom: 10px; font-weight: 800; }
.price-tag { color: var(--secondary); font-size: 1.2rem; font-weight: 700; display: block; margin-bottom: 20px; }

.add-btn {
    background: #fff; color: var(--primary);
    border: 2px solid var(--primary); padding: 10px 25px;
    border-radius: 30px; font-weight: bold; cursor: pointer;
    transition: 0.3s;
}
.add-btn:hover { background: var(--primary); color: #fff; }

/* --- 5. FOOTER (MỚI: BỔ SUNG ĐỊA CHỈ & THÔNG TIN) --- */
footer { 
    background: var(--dark); 
    color: #fff; 
    padding: 60px 20px 20px; 
    margin-top: 50px;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Chia cột tự động */
    gap: 40px;
    text-align: left;
}

.footer-section h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 10px;
}

/* Gạch chân nhỏ dưới tiêu đề footer */
.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-section p {
    margin-bottom: 12px;
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section i {
    color: var(--primary);
    width: 20px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(10deg); } }
@keyframes pulseBtn { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Responsive Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .nav-links { display: none; }
    .footer-container { text-align: left; }
}