:root {
  --brand-green: #2e7d32;
  --brand-green-dark: #1b5e20;
  --brand-orange: #f57c00;
  --brand-red: #d32f2f;
  --bg-soft: #f6f9f6;
  --card-radius: 16px;
}

html { font-size: 17px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-soft);
  color: #2b2b2b;
  font-size: 1rem;
  line-height: 1.6;
}

/* Bigger, easier-to-read type across the board, with an extra bump on
   mobile devices where legibility matters most. */
h1, .h1 { font-size: 2.5rem; font-weight: 800; }
h2, .h2 { font-size: 2rem; font-weight: 800; }
h3, .h3 { font-size: 1.65rem; font-weight: 700; }
h5, .h5 { font-size: 1.25rem; }
p { font-size: 1.05rem; }
.small, small { font-size: .92rem !important; }
.btn { font-size: 1.05rem; }
.form-label { font-size: 1rem; font-weight: 600; }
.form-control, .form-select { font-size: 1.05rem; padding: .6rem .9rem; }

@media (max-width: 767.98px) {
  html { font-size: 18px; }
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.6rem; }
  h3, .h3 { font-size: 1.35rem; }
  p, body { font-size: 1.05rem; }
  .btn { font-size: 1.1rem; padding: .65rem 1.25rem; }
  .navbar-nav .nav-link { font-size: 1.15rem; padding-top: .5rem; padding-bottom: .5rem; }
}

.text-success { color: var(--brand-green) !important; }
.bg-success, .btn-success {
  background-color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
}
.btn-success:hover {
  background-color: var(--brand-green-dark) !important;
  border-color: var(--brand-green-dark) !important;
}
.btn-outline-success {
  color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
}
.btn-outline-success:hover {
  background-color: var(--brand-green) !important;
  color: #fff !important;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.hero h1 { font-weight: 800; }
.hero .badge-orange {
  background: var(--brand-orange);
  color: #fff;
  font-weight: 600;
}

/* Cards */
.product-card {
  border: 1px solid #edf2ed;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
  position: relative;
  background: #fff;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}
.product-card[data-href] {
  cursor: pointer;
}
.product-card[data-href]:focus-visible {
  outline: 3px solid var(--brand-green);
  outline-offset: 2px;
}
.product-card .product-img-wrap {
  position: relative;
  background: #eef3ee;
}
.product-card .product-img {
  height: 210px;
  width: 100%;
  object-fit: cover;
  background: #eef3ee;
  display: block;
}
.product-card .card-body {
  padding: 1.1rem 1.1rem 1.25rem;
}
.product-card .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-green-dark);
}
.badge-stock {
  font-size: .8rem;
  font-weight: 600;
}

/* Discount ribbon on the product image */
.discount-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  z-index: 2;
}

/* Price Was / Now blocks — used on cards, product page and packages */
.price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
}
.price-was {
  color: #9aa39a;
  text-decoration: line-through;
  font-size: .95rem;
  font-weight: 600;
}
.price-now {
  color: var(--brand-green-dark);
  font-weight: 800;
  font-size: 1.3rem;
}
.price-now-only { color: var(--brand-green-dark); }
.price-off-badge {
  background: #ffe9e9;
  color: var(--brand-red);
  font-weight: 800;
  font-size: .78rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  border: 1px solid #ffc9c9;
}
.price-block-lg .price-now { font-size: 2rem; }
.price-block-lg .price-was { font-size: 1.15rem; }
.price-block-sm .price-now { font-size: 1.1rem; }
.price-block-sm .price-was { font-size: .85rem; }

/* Why choose us icons */
.feature-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(46,125,50,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--brand-green);
  margin: 0 auto 1rem;
}

/* Footer */
.footer-link {
  color: #cfd8cf;
  text-decoration: none;
}
.footer-link:hover { color: #fff; }
.text-light-50 { color: rgba(255,255,255,0.6); }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  z-index: 999;
}
.whatsapp-float:hover { color: #fff; background: #1ebc59; }

/* Order summary box */
.order-summary {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e3e8e3;
  padding: 1.5rem;
}

/* Package pricing tiles (Buy 1 / Buy 2 / Buy 3 style tiers) */
.package-tiles { display: flex; flex-direction: column; gap: .9rem; }
.package-tile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #f8faf8;
  border: 2px solid #e3e8e3;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.package-tile:hover { transform: translateY(-2px); border-color: #bfe0c2; }
.package-tile.selected {
  border-color: var(--brand-green);
  background: #eefaf0;
  box-shadow: 0 4px 14px rgba(46,125,50,0.15);
}
.package-tile .package-label {
  font-weight: 800;
  font-size: 1.1rem;
  color: #1f2a1f;
}
.package-tile .package-price-now {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--brand-green-dark);
}
.package-tile .package-price-was {
  color: #9aa39a;
  text-decoration: line-through;
  font-size: .95rem;
  display: block;
}
.package-tile input[type="radio"] { transform: scale(1.3); accent-color: var(--brand-green); }

/* Admin: bulk-select rows (discount management / orders) */
.bulk-row-selected { background: #eefaf0 !important; }
.discount-badge-admin {
  background: #ffe9e9;
  color: var(--brand-red);
  font-weight: 700;
  font-size: .75rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  border: 1px solid #ffc9c9;
}

/* Admin */
.admin-sidebar {
  min-height: 100vh;
  background: var(--brand-green-dark);
}
.admin-sidebar a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1.2rem;
  border-radius: 8px;
  margin: 2px 10px;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.stat-card {
  border-radius: 14px;
  border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.stat-card .icon-box {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}
