:root {
    --primary-color: #8b5e3c;
    --accent-color: #d4af37;
    --bg-light: #faf8f5;
    --text-dark: #2b2b2b;
    --card-bg: #ffffff;
    --shadow: 0 8px 24px rgba(0,0,0,0.06);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #efe2d3 0%, #e1d0bd 100%);
    text-align: center;
    padding: 80px 20px;
    position: relative;
}

.hero .sub-title {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 600;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin: 10px 0;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #6e482d;
}

/* Navigation Tabs */
.category-nav {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-nav .container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    border: 1px solid #e0e0e0;
    background: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Product Grid */
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 40px 20px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%; /* Ratio 1:1 */
    overflow: hidden;
    background-color: #f0f0f0;
    cursor: pointer; /* Đổi con trỏ chỉ tay để người dùng biết bấm được */
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-img-wrapper:hover img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-color);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    z-index: 2;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 6px;
}

.product-note {
    font-size: 0.85rem;
    color: #777;
    margin-top: auto;
}

/* Policy Section */
.policy-section {
    background: #fff;
    padding: 50px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.policy-section h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.policy-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.policy-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.policy-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: #aaa;
    text-align: center;
    padding: 25px 20px;
    font-size: 0.9rem;
}

footer strong {
    color: #fff;
}

/* Giao diện Phóng to Ảnh (Modal / Lightbox) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.88); 
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.modal-caption {
    margin-top: 15px;
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: var(--accent-color);
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}