﻿* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --green: #1a6b3c;
  --green-dark: #0f4a26;
  --green-light: #2d8f54;
  --gold: #c9a84c;
  --bg: #f5f7f5;
  --text: #1a1a1a;
  --gray: #666;
  --light-gray: #e0e0e0;
  --white: #ffffff;
}
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Header */
.header { background: var(--green-dark); color: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.header-top { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo { font-size: 1.6rem; font-weight: bold; color: var(--gold); padding: 14px 0; }
.logo span { color: var(--white); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--white); font-size: .95rem; padding: 18px 0; transition: color .2s; }
.nav a:hover { color: var(--gold); }
.header-icons { display: flex; gap: 20px; align-items: center; }
.header-icons a { color: var(--white); font-size: 1.1rem; position: relative; }
.cart-count { background: var(--gold); color: var(--green-dark); border-radius: 50%; font-size: .7rem; padding: 1px 7px; position: absolute; top: -8px; right: -10px; font-weight: bold; }
.search-bar { display: flex; align-items: center; gap: 8px; margin: 0 20px; }
.search-bar input { padding: 7px 14px; border: none; border-radius: 4px; width: 200px; font-size: .9rem; }
.search-bar button { background: var(--gold); border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-weight: 600; color: var(--green-dark); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: var(--white); text-align: center; padding: 80px 20px; }
.hero h1 { font-size: 2.8rem; margin-bottom: 16px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: .9; }
.btn { display: inline-block; background: var(--gold); color: var(--green-dark); padding: 14px 36px; border-radius: 4px; font-weight: 700; font-size: 1rem; cursor: pointer; border: none; transition: background .2s; }
.btn:hover { background: #d4b85e; }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--green-dark); }

/* Section */
.section { max-width: 1200px; margin: 50px auto; padding: 0 20px; }
.section-title { text-align: center; font-size: 2rem; color: var(--green-dark); margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--gray); margin-bottom: 40px; }

/* Categories */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card { background: var(--white); border-radius: 10px; overflow: hidden; text-align: center; padding: 30px 20px; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; cursor: pointer; }
.category-card:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.category-icon { font-size: 3rem; margin-bottom: 12px; }
.category-card h3 { color: var(--green-dark); font-size: 1.1rem; }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.product-img { width: 100%; height: 220px; object-fit: cover; background: var(--light-gray); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.product-info { padding: 16px; }
.product-info h3 { font-size: 1rem; color: var(--text); margin-bottom: 6px; }
.product-brand { color: var(--gray); font-size: .85rem; margin-bottom: 8px; }
.product-price { font-size: 1.3rem; font-weight: bold; color: var(--green); }
.product-price .old-price { font-size: .9rem; color: var(--gray); text-decoration: line-through; font-weight: normal; margin-left: 8px; }
.product-rating { color: var(--gold); font-size: .85rem; margin: 6px 0; }
.add-cart-btn { width: 100%; background: var(--green); color: var(--white); border: none; padding: 10px; border-radius: 4px; cursor: pointer; font-weight: 600; margin-top: 10px; transition: background .2s; }
.add-cart-btn:hover { background: var(--green-dark); }

/* Features */
.features { background: var(--white); padding: 50px 20px; }
.features-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.feature-item i { font-size: 2.5rem; color: var(--green); margin-bottom: 12px; }
.feature-item h3 { color: var(--green-dark); margin-bottom: 6px; }
.feature-item p { color: var(--gray); font-size: .9rem; }

/* Newsletter */
.newsletter { background: var(--green-dark); color: var(--white); text-align: center; padding: 60px 20px; }
.newsletter h2 { font-size: 2rem; margin-bottom: 12px; }
.newsletter p { margin-bottom: 25px; opacity: .9; }
.newsletter form { display: flex; max-width: 500px; margin: 0 auto; gap: 10px; }
.newsletter input { flex: 1; padding: 12px 18px; border: none; border-radius: 4px; font-size: 1rem; }

/* Footer */
.footer { background: #0a2e18; color: var(--white); padding: 50px 20px 20px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h3 { color: var(--gold); margin-bottom: 16px; font-size: 1.1rem; }
.footer-col a { display: block; color: #b0c4b8; margin-bottom: 8px; font-size: .9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { max-width: 1200px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid #1a4a30; text-align: center; color: #80908a; font-size: .85rem; }

/* Product Detail */
.detail-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.detail-img { background: var(--white); border-radius: 10px; height: 450px; display: flex; align-items: center; justify-content: center; font-size: 8rem; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.detail-info h1 { font-size: 1.8rem; margin-bottom: 8px; }
.detail-info .brand { color: var(--gray); margin-bottom: 12px; }
.detail-info .price { font-size: 2rem; color: var(--green); font-weight: bold; margin: 16px 0; }
.detail-info .price .old-price { font-size: 1.1rem; color: var(--gray); text-decoration: line-through; font-weight: normal; margin-left: 10px; }
.detail-info .desc { margin: 20px 0; color: var(--gray); line-height: 1.8; }
.qty-selector { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.qty-btn { width: 36px; height: 36px; border: 1px solid var(--light-gray); background: var(--white); cursor: pointer; font-size: 1.2rem; border-radius: 4px; }
.qty-input { width: 60px; height: 36px; text-align: center; border: 1px solid var(--light-gray); border-radius: 4px; font-size: 1rem; }
.detail-features { margin-top: 20px; }
.detail-features li { padding: 6px 0; color: var(--gray); }
.detail-features li::before { content: "✓ "; color: var(--green); font-weight: bold; }

/* Cart */
.cart-container { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.cart-table { width: 100%; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.cart-table th { background: var(--green-dark); color: var(--white); padding: 16px; text-align: left; }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--light-gray); }
.cart-item-img { font-size: 2.5rem; }
.cart-summary { background: var(--white); border-radius: 10px; padding: 30px; margin-top: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.cart-summary h2 { margin-bottom: 20px; color: var(--green-dark); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--gray); }
.summary-total { border-top: 2px solid var(--light-gray); padding-top: 14px; font-size: 1.3rem; font-weight: bold; color: var(--text); }
.remove-btn { color: #c0392b; cursor: pointer; background: none; border: none; font-size: .9rem; }
.empty-cart { text-align: center; padding: 60px 20px; color: var(--gray); }
.empty-cart a { color: var(--green); font-weight: 600; }

/* About */
.about-hero { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: var(--white); text-align: center; padding: 60px 20px; }
.about-content { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.about-content p { margin-bottom: 16px; color: var(--gray); line-height: 1.8; }

/* Contact */
.contact-container { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.contact-form { background: var(--white); border-radius: 10px; padding: 40px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--green-dark); }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--light-gray); border-radius: 4px; font-size: 1rem; }
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 30px; text-align: center; }
.contact-info-item { background: var(--white); border-radius: 10px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.contact-info-item h3 { color: var(--green-dark); margin-bottom: 8px; }

/* Toast */
.toast { position: fixed; bottom: 30px; right: 30px; background: var(--green-dark); color: var(--white); padding: 16px 28px; border-radius: 6px; box-shadow: 0 4px 20px rgba(0,0,0,.3); z-index: 999; opacity: 0; transform: translateY(20px); transition: all .3s; }
.toast.show { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .categories, .products-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .search-bar input { width: 140px; }
  .detail-container { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .categories, .products-grid, .features-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
