:root {
    --primary: #1a1a1a;
    --accent: #8b5a2b;
    --accent-hover: #6d4621;
    --bg: #f9f9f7;
    --text: #4a4a4a;
    --border: #eee;
    --card-shadow: 0 5px 15px rgba(0,0,0,0.05);
    --card-shadow-hover: 0 15px 35px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; max-width: 1400px; margin: 0 auto;
    border-bottom: 1px solid var(--border);
    background: #fff;
    position: sticky; top: 0; z-index: 100;
    transition: box-shadow 0.3s ease;
}
header.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: 2px; color: var(--primary); cursor: pointer; transition: color 0.3s ease; }
.logo:hover { color: var(--accent); }
nav { display: flex; align-items: center; gap: 30px; }
nav a { text-decoration: none; color: var(--text); font-size: 0.9rem; transition: color 0.3s ease; position: relative; }
nav a:hover { color: var(--accent); }
nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px; background: var(--accent);
    transition: width 0.3s ease;
}
nav a:hover::after { width: 100%; }
.cart-btn { position: relative; cursor: pointer; transition: transform 0.3s ease; }
.cart-btn:hover { transform: scale(1.1); }
.cart-count {
    position: absolute; top: -8px; right: -12px;
    background: var(--accent); color: #fff;
    width: 20px; height: 20px; border-radius: 50%;
    font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.hero {
    height: 70vh; min-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../image/image_552f6522(1).png');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer { 0% { left: -100%; } 100% { left: 100%; } }
.hero h1 { font-size: 3rem; margin-bottom: 15px; letter-spacing: 1px; animation: fadeInUp 0.8s ease; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; animation: fadeInUp 0.8s ease 0.2s both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.btn {
    padding: 15px 40px; background: var(--accent); color: #fff;
    text-decoration: none; border-radius: 4px; font-weight: 600; transition: all 0.3s ease;
    display: inline-block; border: none; cursor: pointer; font-size: 1rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 5px 20px rgba(139,90,43,0.4); }

.section { padding: 60px 5%; max-width: 1400px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; color: var(--primary); position: relative; }
.section-title::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px; background: var(--accent);
}

.filter-bar { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn { 
    padding: 10px 20px; border: 1px solid #ddd; background: #fff; 
    border-radius: 25px; cursor: pointer; transition: all 0.3s ease; 
    font-size: 0.9rem; position: relative; overflow: hidden;
}
.filter-btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--accent); opacity: 0; transition: opacity 0.3s ease;
}
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.filter-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { 
    background: #fff; border-radius: 12px; overflow: hidden; 
    box-shadow: var(--card-shadow); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    cursor: pointer; position: relative;
}
.card:hover { 
    transform: translateY(-8px); box-shadow: var(--card-shadow-hover); 
}
.card img { 
    width: 100%; height: 280px; object-fit: cover; transition: transform 0.5s ease; 
}
.card:hover img { transform: scale(1.05); }
.card-info { padding: 20px; }
.card-info h3 { margin-bottom: 8px; color: var(--primary); font-size: 1rem; }
.card-info p { font-size: 0.85rem; color: #888; margin-bottom: 10px; }
.card-info .price { color: var(--accent); font-weight: bold; font-size: 1.1rem; }
.card-stock { font-size: 0.75rem; color: #aaa; margin-top: 5px; }

footer {
    background: var(--primary); color: #ccc; padding: 60px 5% 30px; margin-top: 60px;
}
.footer-content {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px;
}
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.footer-col a { display: block; color: #aaa; text-decoration: none; margin-bottom: 10px; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { font-size: 0.9rem; line-height: 1.8; }
.copyright { text-align: center; padding-top: 40px; margin-top: 40px; border-top: 1px solid #333; font-size: 0.8rem; color: #666; }

.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    background: #fff; width: 90%; max-width: 500px; border-radius: 12px; padding: 30px;
    position: relative; animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 15px; right: 15px; font-size: 1.5rem; cursor: pointer; color: #888; transition: color 0.3s ease; }
.modal-close:hover { color: var(--primary); }
.modal h3 { margin-bottom: 20px; color: var(--primary); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { 
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.9rem; 
    transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,90,43,0.1); }
.modal-btn { width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: all 0.3s ease; }
.modal-btn:hover { background: var(--accent-hover); }

.toast {
    position: fixed; top: 20px; right: 20px; background: var(--accent); color: #fff;
    padding: 15px 30px; border-radius: 6px; z-index: 2000; animation: slideInRight 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.about-section { max-width: 800px; margin: 0 auto; text-align: center; }
.about-section p { margin-bottom: 20px; text-align: left; }
.about-section img { width: 100%; max-width: 600px; border-radius: 12px; margin: 30px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.contact-section { max-width: 600px; margin: 0 auto; }
.contact-form { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

@media (max-width: 1024px) { 
    .grid { grid-template-columns: repeat(2, 1fr); } 
}
@media (max-width: 600px) { 
    .grid { grid-template-columns: 1fr; } 
    .hero h1 { font-size: 2rem; }
    header { flex-direction: column; gap: 15px; padding: 15px 5%; }
    nav { flex-wrap: wrap; justify-content: center; }
}
