/* 1. Thiết lập chung & Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
:root {
    --color-primary-dark: #4B0082; /* Tím Đậm - Tông chính */
    --color-primary-light: #E6E6FA; /* Tím Nhạt/Lavender */
    --color-accent: #FFD700; /* Vàng - Màu nhấn tương phản */
    --color-text-dark: #333333;
    --color-text-light: #ffffff;
    --color-background: #f4f4f9;
}

/* THÊM HIỆU ỨNG CUỘN MƯỢT (SMOOTH SCROLL) */
html {
    scroll-behavior: smooth; 
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background);
}

/* 2. Cấu trúc Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    z-index: 1;
}

section {
    padding: 80px 0;
    text-align: center;
}

.overlay {
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.3;
  position: absolute;
}

/* 3. Header & Navigation */
header {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    opacity: 0.9;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-text-light);
    text-decoration: none;
}

nav a {
    color: var(--color-text-light);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--color-primary-light);
}

/* 4. Hero Section */
#hero {
    /* background: linear-gradient(135deg, var(--color-primary-dark), #6A5ACD); */
    background: url('./background_1.jpg') no-repeat center center/cover;
    color: var(--color-text-light);
    padding: 120px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-button {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #e0b300;
}

/* 5. Giới Thiệu & Sản phẩm */
h2 {
    font-size: 2.5em;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-sub-heading {
    color: #8A2BE2; /* Tím xanh */
    font-size: 1.1em;
    margin-bottom: 50px;
}

#introduction .intro-text {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
    text-align: left;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: var(--color-text-light);
    border: 2px solid var(--color-primary-light);
    border-radius: 12px;
    padding: 30px;
    width: 43%;
    min-width: 300px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.15);
    transform: translateY(-5px);
}

.product-card h3 {
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    font-size: 1.5em;
    margin-top: 0;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.product-card h3 span {
    margin-right: 10px;
}

.product-card ul {
    list-style-type: '— ';
    padding-left: 20px;
    margin: 10px 0;
}

.product-card ul li {
    margin-bottom: 8px;
    font-size: 0.95em;
    color: var(--color-text-dark);
}

/* 6. Thông tin Pháp lý */
#legal-info {
    background-color: var(--color-primary-light);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    background-color: var(--color-text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.legal-table th, .legal-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.legal-table th {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    font-weight: 600;
    width: 30%;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

/* 7. Footer & Liên hệ */
footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: 40px 0 20px;
    text-align: left;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
}

.footer-section {
    width: 30%;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-detail {
    margin: 5px 0;
}

.contact-detail a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-detail a:hover {
    color: var(--color-accent);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    font-size: 0.9em;
}
