:root {
  --primary: #0C5A38;
  --accent: #FFDE00;
  --dark: #1a1a1a;
  --gray: #666;
  --light: #f5f5f5;
  --white: #fff;
  --header-h: 75px;
  --font: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top-bar {
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
  overflow: hidden;
}

.marquee {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header */
.site-header {
  background: var(--light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}

.logo img { max-height: 50px; width: auto; }

.main-nav { display: flex; gap: 28px; list-style: none; }

.main-nav a {
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}

.main-nav a:hover, .main-nav a.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-account {
  font-weight: 500;
  font-size: 14px;
  color: var(--dark);
  white-space: nowrap;
}

.header-account:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover { background: #094530; transform: translateY(-1px); }

.btn-accent {
  background: var(--accent);
  color: var(--dark);
}

.btn-accent:hover { background: #e6c800; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }

.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  padding: 4px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Banner */
.hero-banner {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 650px;
  padding: 60px 0;
}

.hero-subtitle {
  font-size: 16px;
  margin-bottom: 12px;
  opacity: .9;
}

.hero-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
}

/* Sections */
.section { padding: 60px 0; }

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 40px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--light);
  padding: 28px 20px;
  border-radius: 12px;
  text-align: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray); }

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.product-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--light);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.product-card:hover .product-image img { transform: scale(1.05); }

.product-info { padding: 16px; }

.product-info h3 { font-size: 16px; margin-bottom: 8px; }

.product-price {
  color: var(--primary);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
}

.product-actions { display: flex; gap: 8px; }

.product-actions .btn { flex: 1; padding: 10px; font-size: 13px; }

/* About */
.about-section {
  background: var(--light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text p { color: var(--gray); margin-bottom: 16px; }

/* Footer */
.site-footer {
  background: #222;
  color: #ccc;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 { color: white; margin-bottom: 16px; font-size: 16px; }

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
}

.us-time {
  font-size: 13px;
  color: var(--accent);
  margin-top: 8px;
}

/* Contact bar - repositioned to RIGHT side vertical to avoid blocking nav */
.contact-bar {
  position: fixed;
  right: 16px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  background: var(--accent);
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
  transition: all .2s;
  white-space: nowrap;
}

.contact-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateX(-4px);
}

.contact-btn svg { flex-shrink: 0; }

/* Forms */
.form-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--light);
}

.form-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  width: 100%;
  max-width: 480px;
}

.form-card.wide { max-width: 640px; }

.form-card h1 { font-size: 24px; margin-bottom: 8px; }
.form-card .subtitle { color: var(--gray); margin-bottom: 24px; font-size: 14px; }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 12px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  color: var(--primary);
}

.form-error {
  background: #fee;
  color: #c00;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.form-success {
  background: #efe;
  color: #060;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* Cart & Checkout */
.page-header {
  background: var(--light);
  padding: 30px 0;
  margin-bottom: 40px;
}

.page-header h1 { font-size: 28px; }

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.cart-table th, .cart-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.cart-table th { background: var(--light); font-weight: 600; }

.cart-product { display: flex; align-items: center; gap: 12px; }
.cart-product img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.cart-summary {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  margin-top: 24px;
  max-width: 400px;
  margin-left: auto;
}

.cart-summary .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cart-summary .total {
  font-size: 20px;
  font-weight: 600;
  border-top: 1px solid #eee;
  padding-top: 12px;
  color: var(--primary);
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
}

.product-detail-image {
  background: var(--light);
  border-radius: 16px;
  overflow: hidden;
}

.product-detail-image img { width: 100%; }

.product-detail-info h1 { font-size: 32px; margin-bottom: 12px; }

.product-detail-price {
  font-size: 28px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.product-detail-desc {
  color: var(--gray);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 { margin-bottom: 8px; }
.modal .subtitle { color: var(--gray); margin-bottom: 20px; font-size: 14px; }

/* Account */
.account-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.account-tabs button {
  background: none;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  border-bottom: 2px solid transparent;
}

.account-tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.order-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-paid { background: #d4edda; color: #155724; }
.status-unpaid { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-shipped { background: #d1ecf1; color: #0c5460; }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  z-index: 999;
  padding: 20px;
}

.mobile-nav.open { display: block; }

.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid #eee; }
.mobile-nav a { display: block; padding: 14px 0; font-weight: 500; }

/* Responsive */
@media (max-width: 1024px) {
  .features-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-actions .btn-accent { display: none; }
  .mobile-toggle { display: block; }

  .features-grid, .products-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .contact-bar {
    right: 10px;
    bottom: 70px;
  }

  .contact-btn span { display: none; }
  .contact-btn { padding: 12px; border-radius: 50%; width: 48px; height: 48px; justify-content: center; }

  .hero-banner { min-height: 300px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}
