:root {
    --bg-color: #ffffff;
    --bg-secondary: #f8f8f8;
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --accent-gold: #bfa16b;
    --accent-gold-dark: #9e8354;
    --accent-brown: #6f4e37;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg-color); color: var(--text-main); font-family: var(--font-sans); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; color: #000; }
.container { width: 90%; max-width: 1400px; margin: 0 auto; }

.section-title { font-size: 3rem; text-align: center; margin-bottom: 2rem; }
.subtitle { color: var(--accent-gold); text-transform: uppercase; letter-spacing: 4px; font-size: 0.85rem; display: block; margin-bottom: 1rem; text-align: center; font-weight: 600; }
.text-center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; font-weight: 300; }

.btn { display: inline-block; padding: 18px 45px; border: 1px solid #000; color: #000; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; transition: all 0.4s; cursor: pointer; background: transparent; }
.btn:hover { background: #000; color: #fff; }
.btn-hero { border-color: #fff; color: #fff; }
.btn-hero:hover { background: #fff; color: #000; }
.btn-gold { background: var(--accent-gold); border-color: var(--accent-gold); color: #fff; }
.btn-gold:hover { background: var(--accent-gold-dark); border-color: var(--accent-gold-dark); }

/* Preloader */
#preloader { position: fixed; inset: 0; background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); z-index: 9999; display: flex; justify-content: center; align-items: center; flex-direction: column; transition: opacity 1s; }
.loader-logo { font-family: var(--font-serif); font-size: 3.5rem; letter-spacing: 8px; color: #fff; font-weight: 700; margin-bottom: 40px; position: relative; opacity: 0; animation: fadeInLogo 1s forwards 0.3s; }
.loader-logo::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 60px; height: 2px; background: var(--accent-gold); }
.coffee-cup { width: 80px; height: 80px; position: relative; margin-bottom: 30px; opacity: 0; animation: fadeInCup 1s forwards 0.5s; }
.cup-body { width: 60px; height: 50px; border: 3px solid var(--accent-gold); border-radius: 0 0 15px 15px; position: absolute; bottom: 0; left: 10px; }
.cup-handle { width: 20px; height: 25px; border: 3px solid var(--accent-gold); border-left: none; border-radius: 0 15px 15px 0; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); }
.steam { position: absolute; width: 3px; height: 20px; background: var(--accent-gold); border-radius: 50%; opacity: 0.7; animation: steam 2s ease-in-out infinite; }
.steam:nth-child(1) { left: 20px; top: -5px; }
.steam:nth-child(2) { left: 30px; top: -5px; animation-delay: 0.3s; }
.steam:nth-child(3) { left: 40px; top: -5px; animation-delay: 0.6s; }
.loader-text { color: var(--accent-gold); font-size: 0.9rem; letter-spacing: 3px; text-transform: uppercase; margin-top: 20px; font-weight: 600; opacity: 0; animation: fadeInText 1s forwards 0.8s; }
.loading-dots span { animation: blink 1.4s infinite both; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes fadeInLogo { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInCup { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeInText { from { opacity: 0; } to { opacity: 1; } }
@keyframes steam { 0% { transform: translateY(0) scaleX(1); opacity: 0.7; } 50% { transform: translateY(-15px) scaleX(1.2); opacity: 0.3; } 100% { transform: translateY(-30px) scaleX(0.8); opacity: 0; } }
@keyframes blink { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Header */
header { position: fixed; top: 0; left: 0; width: 100%; padding: 20px 50px; z-index: 1000; display: flex; justify-content: space-between; align-items: center; transition: all 0.5s; background: #fff; color: #000; box-shadow: 0 2px 20px rgba(0,0,0,0.05); }
header.scrolled { padding: 15px 50px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.brand { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; letter-spacing: 3px; display: flex; align-items: center; }
.header-logo { height: 40px; width: auto; transition: all 0.3s; }
header.scrolled .header-logo { height: 35px; }
.nav-menu { display: flex; gap: 40px; align-items: center; }
.nav-menu a { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; position: relative; }
.nav-menu a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px; background: var(--accent-gold); transition: width 0.3s; }
.nav-menu a:hover::after { width: 100%; }
.cart-icon { position: relative; cursor: pointer; padding: 10px; }
.cart-count { position: absolute; top: 0; right: 0; background: var(--accent-gold); color: #fff; border-radius: 50%; width: 20px; height: 20px; display: none; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600; }

/* Hero */
.hero { height: 100vh; width: 100%; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; }
.hero-title { font-size: 5vw; margin-bottom: 1rem; opacity: 0; transform: translateY(30px); animation: fadeInUp 1s forwards 0.5s; text-shadow: 0 2px 10px rgba(0,0,0,0.3); color: #fff; }
.hero-sub { font-size: 1.2rem; letter-spacing: 5px; text-transform: uppercase; margin-bottom: 2rem; opacity: 0; animation: fadeInUp 1s forwards 0.8s; }

/* Hero Slider */
.hero-slider { position: relative; height: 100vh; overflow: hidden; }
.hero-slider .slide { position: absolute; inset: 0; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 1s ease; }
.hero-slider .slide.active { opacity: 1; }
.hero-slider .hero-content { text-align: center; color: #fff; }
.hero-slider .hero-title { font-size: 4.5vw; margin-bottom: 1rem; text-shadow: 0 2px 20px rgba(0,0,0,0.4); color: #fff; }
.hero-slider .hero-sub { font-size: 1.1rem; letter-spacing: 4px; margin-bottom: 2rem; max-width: 600px; }
.slider-nav button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: none; color: #fff; width: 50px; height: 50px; font-size: 1.5rem; cursor: pointer; transition: all 0.3s; backdrop-filter: blur(5px); }
.slider-nav button:hover { background: var(--accent-gold); }
.slider-prev { left: 30px; }
.slider-next { right: 30px; }
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }
.slider-dots .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.slider-dots .dot.active, .slider-dots .dot:hover { background: var(--accent-gold); transform: scale(1.2); }

/* Products */
.products-section { padding: 120px 0; background: var(--bg-color); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 60px; }
.product-card { background: #fff; border: 1px solid #f0f0f0; transition: all 0.3s; box-shadow: var(--shadow-soft); overflow: hidden; }
.product-card:hover { border-color: var(--accent-gold); transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.product-img { height: 350px; overflow: hidden; background: var(--bg-secondary); position: relative; display: block; cursor: pointer; }
.product-img img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.8s; }
.product-card:hover .product-img img { transform: scale(1.1); }
.product-badge { position: absolute; top: 20px; right: 20px; background: var(--accent-gold); color: #fff; padding: 8px 15px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.product-content { padding: 30px; }
.product-origin { color: var(--accent-gold); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; font-weight: 600; }
.product-name { font-size: 1.8rem; margin-bottom: 15px; color: #000; }
.product-name a { color: inherit; }
.product-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }
.product-features { display: flex; gap: 15px; margin-bottom: 25px; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; }
.product-features span { padding: 5px 12px; background: var(--bg-secondary); border-radius: 3px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid #eee; }
.product-price { font-size: 2rem; color: var(--accent-brown); font-family: var(--font-serif); font-weight: 600; }
.price-unit { font-size: 0.8rem; color: var(--text-muted); }
.add-to-cart { background: transparent; border: 2px solid #000; color: #000; padding: 12px 30px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; cursor: pointer; transition: all 0.3s; font-weight: 600; }
.add-to-cart:hover { background: #000; color: #fff; }

/* Stats */
.stats-section { padding: 100px 0; background: var(--text-main); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat-number { font-size: 4rem; font-family: var(--font-serif); color: var(--accent-gold); margin-bottom: 10px; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 2px; }

/* About */
.about-section { padding: 120px 0; background: var(--bg-secondary); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image img { width: 100%; height: 500px; object-fit: cover; }
.about-content h2 { font-size: 2.5rem; margin-bottom: 30px; }
.about-content p { color: var(--text-muted); margin-bottom: 30px; line-height: 1.9; }

/* Newsletter */
.newsletter-section { padding: 100px 0; background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); text-align: center; }
.newsletter-form { display: flex; justify-content: center; gap: 15px; margin-top: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }
.newsletter-form input { flex: 1; padding: 18px 25px; border: none; font-size: 1rem; }
.newsletter-form button { white-space: nowrap; }

/* Contact */
.contact-section { padding: 120px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; }
.contact-info h2 { font-size: 2.5rem; margin-bottom: 30px; }
.contact-list li { display: flex; gap: 20px; margin-bottom: 25px; align-items: flex-start; }
.contact-list li svg { color: var(--accent-gold); flex-shrink: 0; margin-top: 5px; }
.contact-list li strong { display: block; margin-bottom: 5px; }
.contact-list li span { color: var(--text-muted); }
.contact-form input, .contact-form textarea { width: 100%; padding: 18px 20px; border: 1px solid #e0e0e0; margin-bottom: 20px; font-family: inherit; font-size: 1rem; transition: border-color 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-gold); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form button { width: 100%; }

/* Footer */
footer { background: var(--text-main); color: #fff; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand h3 { font-size: 1.8rem; margin-bottom: 15px; color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.6); }
.footer-links h4, .footer-social h4 { font-size: 1rem; margin-bottom: 20px; color: #fff; }
.footer-links a { display: block; color: rgba(255,255,255,0.6); margin-bottom: 10px; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-gold); }
.social-icons a { display: inline-block; margin-right: 15px; color: rgba(255,255,255,0.6); transition: color 0.3s; }
.social-icons a:hover { color: var(--accent-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; color: rgba(255,255,255,0.4); font-size: 0.9rem; }

/* Cart Sidebar */
.cart-sidebar { position: fixed; right: -450px; top: 0; width: 450px; height: 100vh; background: #fff; box-shadow: -5px 0 30px rgba(0,0,0,0.2); z-index: 2000; transition: right 0.4s; display: flex; flex-direction: column; }
.cart-sidebar.active { right: 0; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1999; opacity: 0; visibility: hidden; transition: all 0.3s; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-header { padding: 30px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { font-size: 1.5rem; }
.close-cart { font-size: 1.5rem; cursor: pointer; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 1px solid #ddd; border-radius: 50%; transition: all 0.3s; }
.close-cart:hover { background: #000; color: #fff; border-color: #000; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 30px; }
.cart-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #f0f0f0; }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 5px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 1rem; font-weight: 600; margin-bottom: 5px; }
.cart-item-origin { font-size: 0.75rem; color: var(--accent-gold); margin-bottom: 10px; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 25px; height: 25px; border: 1px solid #ddd; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: all 0.3s; }
.qty-btn:hover { background: var(--accent-gold); color: #fff; border-color: var(--accent-gold); }
.qty-display { width: 40px; text-align: center; font-weight: 600; }
.remove-item { margin-left: auto; background: transparent; border: none; color: #999; cursor: pointer; font-size: 1.2rem; transition: color 0.3s; }
.remove-item:hover { color: #f44336; }
.cart-item-price { font-size: 1.1rem; font-weight: 600; color: var(--accent-brown); margin-top: 10px; }
.cart-footer { padding: 30px; border-top: 2px solid #eee; background: var(--bg-secondary); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 1.3rem; }
.cart-total-label { font-family: var(--font-serif); }
.cart-total-price { font-weight: 700; color: var(--accent-brown); font-family: var(--font-serif); }
.checkout-btn { display: block; text-align: center; width: 100%; }
.empty-cart { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-cart svg { width: 60px; height: 60px; margin-bottom: 20px; opacity: 0.3; }

/* Responsive */
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    header { padding: 20px 30px; }
    .nav-menu { display: none; }
}
@media (max-width: 768px) {
    .products-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .cart-sidebar { width: 100%; right: -100%; }
    .newsletter-form { flex-direction: column; }
    .contact-form .form-row { grid-template-columns: 1fr; }
}
