/* ===========================
   Reset & Base
=========================== */
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #fdfcfb 0%, #f9fafb 50%, #ffffff 100%);
  color: #333;
  line-height: 1.6;
}

a {
  color: #047857; /* fresh green */
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ===========================
   Header
=========================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #065f46; /* deep green */
  color: white;
  padding: 18px 24px;
  border-bottom: 4px solid #34d399; /* accent */
}
header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
header a {
  color: #fef9c3; /* warm cream accent */
  margin-left: 18px;
  font-weight: 500;
}

/* ===========================
   Section Wrapper
=========================== */
section {
  background: #f9fafb;
  padding: 30px 25px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}
section h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #065f46;
  margin: 0 0 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #d1fae5; /* soft mint */
}

/* ===========================
   Product Grid & Cards
=========================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  justify-content: center;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card h3 {
  margin: 18px;
  font-size: 1.2rem;
  color: #111827;
}
.card p {
  margin: 0 18px 14px;
  font-size: 0.95rem;
  color: #4b5563;
}
.card strong {
  color: #065f46;
  font-size: 1rem;
}

/* Add-to-cart inside card */
.card form {
  margin: auto 18px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.card input[type="number"] {
  width: 60px;
  padding: 6px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}
.card button {
  background: #10b981; /* emerald */
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
}
.card button:hover {
  background: #059669;
}

/* ===========================
   Product Detail Page
=========================== */
.product-detail {
  max-width: 850px;
  margin: 40px auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 25px;
}
.product-detail img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}
.product-detail h1 {
  font-size: 2rem;
  margin: 0 0 15px;
  color: #065f46;
}
.product-detail p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #4b5563;
}
.product-detail strong {
  color: #065f46;
  font-size: 1.1rem;
}
.product-detail form {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}
.product-detail button {
  background: #10b981;
  padding: 10px 18px;
  border-radius: 6px;
}
.product-detail button:hover {
  background: #059669;
}

/* ===========================
   Tables (Cart, Orders, Admin)
=========================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}
table th, table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
table th {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
}
table tr:last-child td {
  border-bottom: none;
}

/* ===========================
   Forms (Checkout, Admin Login)
=========================== */
.form {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form label {
  font-weight: 500;
  margin-bottom: 4px;
  color: #065f46;
}
.form input[type="text"],
.form input[type="number"],
.form input[type="password"],
.form textarea,
.form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}
.form button {
  background: #10b981;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 6px;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.form button:hover {
  background: #059669;
}

/* ===========================
   Global Buttons
=========================== */
button, .btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-weight: 500;
}
button:hover, .btn:hover {
  background: #059669;
}