/*
 * Base Styles - Reset & Typography
 * Dùng chung cho tất cả các trang
 */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }
h5 { font-size: 18px; font-weight: 500; }
h6 { font-size: 16px; font-weight: 500; }

p {
    margin-bottom: var(--space-md);
    color: var(--gray-700);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--primary);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

::selection {
    background: var(--gold-200);
    color: var(--gray-900);
}

/* Container & Layout */
.container,
.azezy-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-md);
    width: 100%;
}

.container-sm {
    max-width: var(--container-sm);
}

/* Site Content */
.site-content {
    padding: var(--space-xl) 0 var(--space-3xl);
    min-height: 60vh;
}

/* Trang chủ: hero-grid sát header */
body.home .site-content,
body.front-page .site-content {
    padding-top: 0;
}

/* Trang có page-header-premium: sát header */
body.blog .site-content,
body.archive .site-content,
body.single-post .site-content,
body.search .site-content,
body.page-template-page-lien-he .site-content,
body.page-lien-he .site-content,
body.page-template-page-lien-he-php .site-content {
    padding-top: 0;
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Grid System */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}
