/*
Theme Name: AnNhien Theme
Theme URI: https://annhien.biz
Author: AnNhien Team
Description: Giao diện thảo mộc chữa lành, tối ưu tốc độ và UI/UX
Version: 1.0
Text Domain: annhien
*/

:root {
    --primary-color: #637748; /* Xanh thảo mộc */
    --secondary-color: #a47656; /* Nâu đất */
    --bg-light: #fcfaf6;
    --text-dark: #333333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Mulish', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--primary-color); }

/* --- Header --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: transparent;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}
.main-menu ul {
    list-style: none; display: flex; gap: 30px; margin: 0; padding: 0;
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding: 180px 20px 100px;
    background: url('images/hero-bg.jpg') no-repeat center bottom;
    background-size: cover;
    min-height: 60vh;
    position: relative;
    overflow: hidden;
}
.hero-section h1 { 
    font-size: 3.5rem; 
    margin-bottom: 15px; 
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(255,255,255,0.9), 0 1px 3px rgba(255,255,255,1); 
}
.hero-section p {
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(255,255,255,0.9);
}
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    margin-top: 20px;
}

/* --- Core Values --- */
.core-values { padding: 80px 20px; text-align: center; }
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
}
.value-item img { width: 60px; margin-bottom: 15px; }

/* --- Story Section --- */
.story-section {
    padding: 100px 20px;
    background: url('images/story-bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.story-card {
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(15px); 
    padding: 60px;
    border-radius: 40px; 
    max-width: 700px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 2px solid rgba(255,255,255,0.6); 
}

/* --- Products Section (Đã khôi phục Grid & Màu nền) --- */
.products-section { padding: 80px 20px; text-align: center; position: relative; overflow: hidden; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto 0;
}
.bg-green { background-color: #dbe4d3; }
.bg-yellow { background-color: #f4edd4; }
.bg-brown { background-color: #dcb394; }

/* --- Cập nhật Sản Phẩm hình vòm (Arch) --- */
.product-card {
    border-radius: 150px 150px 20px 20px; 
    padding: 40px 20px 30px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    border: 1px solid rgba(255,255,255,0.4); 
}
.product-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.product-card img { 
    width: 80%; 
    margin: 0 auto 15px;
    display: block;
    border-radius: 10px;
    mix-blend-mode: multiply; 
}
.product-card a { text-decoration: none; }

/* --- Tùy chỉnh Nút WooCommerce --- */
a.btn-primary.ajax_add_to_cart {
    display: inline-block;
    background: #fff;
    color: var(--text-dark);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
a.btn-primary.ajax_add_to_cart:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- Form Liên Hệ --- */
.annhien-form label { display: block; margin-bottom: 15px; font-weight: 600; color: var(--primary-color); }
.annhien-form input, .annhien-form textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 10px; margin-top: 8px; box-sizing: border-box; font-family: var(--font-body); outline: none; transition: 0.3s; }
.annhien-form input:focus, .annhien-form textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 5px rgba(99, 119, 72, 0.2); }
.annhien-form textarea { min-height: 120px; }


/* =========================================================
   HIỆU ỨNG HỌA TIẾT THẢO MỘC BỒNG BỀNH (BOTANICAL DECOR)
   ========================================================= */
.deco-item {
    position: absolute;
    z-index: 1;
    pointer-events: none; 
    opacity: 0.85; 
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.05)); 
}

/* --- Banner Chính --- */
.deco-hero-left { top: -20px; left: -5%; width: 350px; animation: float 8s ease-in-out infinite; }
.deco-hero-right { top: -50px; right: -2%; width: 250px; animation: float 7s ease-in-out infinite reverse; }

/* --- Câu chuyện AnNhien --- */
.deco-story-left { bottom: -60px; left: 2%; width: 280px; opacity: 0.7; animation: float 9s ease-in-out infinite; }

/* --- Sản phẩm nổi bật --- */
.deco-prod-left { top: -40px; left: -3%; width: 220px; animation: float 6s ease-in-out infinite; }
.deco-prod-right { bottom: -30px; right: -2%; width: 200px; animation: float 8s ease-in-out infinite reverse; }

/* Khung chuyển động lơ lửng */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Ẩn bớt họa tiết và căn chỉnh lưới trên điện thoại */
@media (max-width: 768px) {
    .products-grid { grid-template-columns: 1fr; } /* Chuyển sản phẩm thành 1 cột trên mobile */
    .deco-item { opacity: 0.3; width: 150px; }
    .deco-hero-left, .deco-prod-left { left: -50px; }
    .deco-hero-right, .deco-prod-right { right: -50px; }
}