/* ============ Reset & base ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: #2b2b2b;
  line-height: 1.6;
  background: #fbfaf7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1150px; margin: 0 auto; padding: 0 20px; }

:root {
  --green: #2e7d52;
  --green-dark: #235f3f;
  --cream: #f6f3ec;
  --text-muted: #6b6b6b;
}

/* ============ Header ============ */
.site-header { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.logo img { height: 68px; }
.logo-fallback { font-size: 22px; font-weight: 700; color: var(--green); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-weight: 500; color: #333; position: relative; }
.site-nav a:hover { color: var(--green); }
.cart-link { display: flex; align-items: center; gap: 6px; }
.cart-badge { background: var(--green); color: #fff; font-size: 12px; border-radius: 50%; padding: 2px 7px; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 16px 20px; gap: 16px; display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }
  .site-nav.open { display: flex; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-block; background: var(--green); color: #fff !important;
  padding: 12px 26px; border-radius: 30px; font-weight: 600; border: none; cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--green-dark); }
.btn-outline { background: transparent; border: 2px solid var(--green); color: var(--green) !important; }
.btn-outline:hover { background: var(--green); color: #fff !important; }
.btn-small { padding: 8px 18px; font-size: 14px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  background-color: var(--cream);
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.55) 55%, rgba(255,255,255,0.15) 100%);
}
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-text { flex: 1 1 420px; }
.hero-text h1 { font-size: 40px; color: var(--green-dark); margin-bottom: 18px; line-height: 1.25; }
.hero-text p { color: var(--text-muted); margin-bottom: 26px; font-size: 17px; max-width: 480px; }

/* ============ Sections ============ */
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 30px; color: var(--green-dark); margin-bottom: 10px; }
.section-title p { color: var(--text-muted); }

/* ============ Feature strip ============ */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { text-align: center; background: #fff; padding: 26px 16px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.feature img { height: 46px; margin: 0 auto 14px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--text-muted); }
@media (max-width: 800px) { .features { grid-template-columns: repeat(2, 1fr); } }

/* ============ Product grid ============ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06); transition: transform .15s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); }
.product-card .thumb { background: var(--cream); padding: 22px; text-align: center; }
.product-card .thumb img { height: 160px; margin: 0 auto; object-fit: contain; }
.product-card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 16px; margin-bottom: 8px; }
.product-card .price { color: var(--green); font-weight: 700; font-size: 18px; margin: 8px 0 14px; }
.product-card .body p.desc { color: var(--text-muted); font-size: 13px; flex: 1; margin-bottom: 14px; }

/* ============ Single product ============ */
.product-single { display: flex; gap: 50px; flex-wrap: wrap; }
.product-single .image { flex: 1 1 360px; background: var(--cream); border-radius: 12px; padding: 40px; text-align: center; }
.product-single .image img { max-height: 340px; margin: 0 auto; }
.product-single .info { flex: 1 1 380px; }
.product-single .info h1 { font-size: 30px; color: var(--green-dark); margin-bottom: 12px; }
.product-single .info .price { font-size: 26px; color: var(--green); font-weight: 700; margin-bottom: 18px; }
.product-single .info .cat { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; display: block; }
.product-single .info .desc { margin-bottom: 26px; color: #444; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.qty-row input { width: 70px; padding: 10px; border: 1px solid #ddd; border-radius: 6px; text-align: center; }

/* ============ Tables (cart/checkout) ============ */
table.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
table.cart-table th, table.cart-table td { padding: 14px; border-bottom: 1px solid #eee; text-align: left; }
table.cart-table img { height: 60px; }
.cart-summary { max-width: 380px; margin-left: auto; background: #fff; padding: 24px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.cart-summary .total { font-weight: 700; font-size: 18px; border-top: 1px solid #eee; padding-top: 12px; }
.remove-link { color: #b23; font-size: 13px; }

/* ============ Forms ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 700px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }
.alert-success { background: #e5f6ec; color: var(--green-dark); border: 1px solid #b7e3c9; }
.alert-error { background: #fdecea; color: #b23; border: 1px solid #f5c6c2; }

/* ============ Misc content pages ============ */
.faq-item { background: #fff; padding: 20px 24px; border-radius: 10px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.faq-item h3 { color: var(--green-dark); margin-bottom: 8px; }
.about-block { max-width: 800px; margin: 0 auto 40px; text-align: center; }
.category-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; justify-content: center; }
.category-pills a { padding: 8px 18px; border-radius: 20px; background: #fff; border: 1px solid #ddd; font-size: 14px; }
.category-pills a.active, .category-pills a:hover { background: var(--green); color: #fff !important; border-color: var(--green); }

/* ============ Footer ============ */
.site-footer { background: #1f2d24; color: #cfe0d4; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 50px 20px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
.footer-col h4 { color: #fff; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: #cfe0d4; margin-bottom: 8px; font-size: 14px; }
.footer-logo { background: #fff; display: inline-block; padding: 12px 18px; border-radius: 10px; margin-bottom: 16px; }
.footer-logo img { height: 60px; display: block; }
.footer-bottom { text-align: center; padding: 18px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; text-align: center; } }

.breadcrumb { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.breadcrumb a { color: var(--green); }

/* ============ Legal pages ============ */
.legal-content { background: #fff; padding: 36px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.legal-content p { margin-bottom: 14px; color: #333; }
.legal-content strong { color: var(--green-dark); }
.legal-content a { color: var(--green); text-decoration: underline; }
