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

:root {
  --accent: #028a00;
  --accent-dark: #016600;
  --accent-light: #e8f5e8;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --bg: #ffffff;
  --bg-alt: #f7f9f7;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(2, 138, 0, 0.15);
  --radius: 10px;
  --max-width: 1200px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.logo span {
  color: var(--accent);
}

.nav-desktop {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-desktop a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 20px 20px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.nav-mobile a:hover {
  color: var(--accent);
}

.nav-mobile .legal-links {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--accent-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile .legal-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  border: none;
  padding: 4px 0;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--accent-light) 0%, #fff 60%);
  padding: 60px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.hero-text h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-cart {
  background: var(--accent);
  color: #fff;
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 20px;
}

.btn-cart:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* Section */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

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

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card-img {
  height: 180px;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.product-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}

.product-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 12px;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.product-card-link {
  display: block;
  color: inherit;
}

.product-card-link:hover h3 {
  color: var(--accent);
}

/* Product Detail */
.product-detail {
  padding: 40px 0 60px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-detail-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.product-detail-info h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.product-detail-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.product-detail-desc {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.product-specs {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.product-specs h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--text);
}

.specs-list {
  list-style: none;
}

.specs-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
}

.specs-list li:last-child {
  border-bottom: none;
}

.specs-list li span:first-child {
  color: var(--text-muted);
}

.breadcrumb {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item p,
.contact-item a {
  font-size: 1rem;
  color: var(--text);
}

.hours-list {
  list-style: none;
}

.hours-list li {
  padding: 4px 0;
  font-size: 0.95rem;
}

.contact-form {
  background: var(--bg-alt);
  padding: 32px;
  border-radius: var(--radius);
}

.contact-form h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 16px;
  border-radius: 6px;
  margin-top: 16px;
  font-weight: 500;
}

.form-success.show {
  display: block;
}

/* Legal */
.legal-page {
  padding: 40px 0 60px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-page p {
  margin-bottom: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-page ul {
  margin: 10px 0 14px 20px;
  color: var(--text-muted);
}

.legal-page ul li {
  margin-bottom: 6px;
}

.doc-id {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: #1a2e1a;
  color: #ccc;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #aaa;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #aaa;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #2e4a2e;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #888;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: #888;
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* Features strip */
.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}

.feature-item {
  text-align: center;
  padding: 20px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.3rem;
}

.feature-item h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Page hero */
.page-hero {
  background: var(--accent-light);
  padding: 40px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .product-detail-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .features-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .product-detail-img img {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .features-strip {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    flex-direction: column;
    gap: 8px;
  }

  .hero {
    padding: 40px 0;
  }

  .section {
    padding: 40px 0;
  }
}
