:root {
  --pe-green-900: #143d1f;
  --pe-green-800: #1b5e20;
  --pe-green-700: #2e7d32;
  --pe-green-600: #388e3c;
  --pe-green-500: #43a047;
  --pe-green-100: #e8f5e9;
  --pe-green-50: #f3faf4;
  --pe-cream: #f7fbf7;
  --pe-ink: #1a2e22;
  --pe-muted: #5f7266;
  --pe-border: #d7e5da;
  --pe-shadow: 0 12px 40px rgba(27, 94, 32, 0.08);
  --pe-radius: 18px;
  --font-body: "Manrope", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  color: var(--pe-ink);
  background:
    radial-gradient(circle at top left, rgba(129, 199, 132, 0.18), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--pe-cream) 100%);
  min-height: 100vh;
}
h1, h2, h3, .display-font { font-family: var(--font-display); letter-spacing: -0.02em; }
a { color: var(--pe-green-700); text-decoration: none; }
a:hover { color: var(--pe-green-800); }

.btn-success {
  --bs-btn-bg: #2e7d32;
  --bs-btn-border-color: #2e7d32;
  --bs-btn-hover-bg: #1b5e20;
  --bs-btn-hover-border-color: #1b5e20;
  --bs-btn-active-bg: #1b5e20;
  --bs-btn-active-border-color: #1b5e20;
}
.btn-outline-success {
  --bs-btn-color: #2e7d32;
  --bs-btn-border-color: #2e7d32;
  --bs-btn-hover-bg: #2e7d32;
  --bs-btn-hover-border-color: #2e7d32;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #1b5e20;
  --bs-btn-active-border-color: #1b5e20;
  --bs-btn-active-color: #fff;
}
.text-success { color: #2e7d32 !important; }
.alert-success {
  --bs-alert-color: #1b5e20;
  --bs-alert-bg: #e8f5e9;
  --bs-alert-border-color: #c8e6c9;
}

.top-bar {
  background: linear-gradient(90deg, var(--pe-green-800), var(--pe-green-600));
  color: #fff;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.site-header .navbar { backdrop-filter: blur(8px); }
.brand-logo { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--pe-green-700), var(--pe-green-500));
  color: #fff; font-weight: 800; font-size: 0.95rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--pe-green-900); font-size: 1.05rem; }
.brand-text small { color: var(--pe-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.navbar-nav .nav-link {
  font-weight: 600; color: var(--pe-ink); padding: 0.55rem 0.9rem !important; border-radius: 999px;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover {
  background: var(--pe-green-100); color: var(--pe-green-800);
}
.header-search { position: relative; min-width: 220px; }
.header-search .form-control {
  border-radius: 999px; border-color: var(--pe-border); padding-right: 2.4rem;
}
.btn-search {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  border-radius: 999px; background: var(--pe-green-700); color: #fff; border: 0;
}
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--pe-green-50); color: var(--pe-green-800); position: relative;
}
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--pe-green-700); color: #fff;
  font-size: 0.68rem; min-width: 18px; height: 18px;
  border-radius: 999px; display: inline-grid; place-items: center; padding: 0 4px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 61, 31, 0.92) 0%, rgba(27, 94, 32, 0.78) 42%, rgba(20, 61, 31, 0.35) 68%, rgba(20, 61, 31, 0.15) 100%),
    url("../images/hero-banner.jpg") right center / cover no-repeat;
  transform: scale(1.02);
  animation: heroZoom 12s ease-in-out infinite alternate;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 640px; padding: 4.5rem 0; }
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: #fff;
  animation: rise 0.7s ease both;
}
.hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 3rem); font-weight: 700; margin-bottom: 1rem;
  animation: rise 0.8s ease 0.05s both;
}
.hero p { font-size: 1.08rem; opacity: 0.95; margin-bottom: 1.75rem; animation: rise 0.9s ease 0.1s both; }
.hero-actions { animation: rise 1s ease 0.18s both; }
@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}
.btn-pe {
  background: linear-gradient(135deg, var(--pe-green-700), var(--pe-green-500));
  border: 0; color: #fff; font-weight: 700; border-radius: 999px; padding: 0.75rem 1.4rem;
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.25);
}
.btn-pe:hover { color: #fff; filter: brightness(1.05); }
.btn-pe-outline {
  border: 2px solid rgba(255,255,255,0.85); color: #fff; font-weight: 700;
  border-radius: 999px; padding: 0.7rem 1.35rem; background: transparent;
}
.btn-pe-outline:hover { background: #fff; color: var(--pe-green-800); }
.btn-pe-light {
  background: #fff; color: var(--pe-green-800); border: 0; font-weight: 700;
  border-radius: 999px; padding: 0.7rem 1.35rem;
}

.section-pad { padding: 4rem 0; }
.section-title { margin-bottom: 0.4rem; }
.section-sub { color: var(--pe-muted); margin-bottom: 2rem; }

.category-card {
  display: block; border-radius: var(--pe-radius); overflow: hidden;
  background: #fff; border: 1px solid var(--pe-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--pe-shadow); color: inherit; }
.category-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--pe-green-50);
  padding: 10px;
}
.category-card .body { padding: 1rem 1.1rem 1.2rem; }
.category-card h3 { font-size: 1.1rem; margin: 0 0 0.35rem; }
.category-card p { margin: 0; color: var(--pe-muted); font-size: 0.9rem; }

.product-card {
  background: #fff; border: 1px solid var(--pe-border); border-radius: var(--pe-radius);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--pe-shadow); }
.product-card .img-wrap {
  aspect-ratio: 1/1; background: var(--pe-green-50); position: relative; overflow: hidden;
}
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover img { transform: scale(1.04); }
.discount-badge {
  position: absolute; top: 12px; left: 12px;
  background: #c62828; color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.55rem; border-radius: 999px;
}
.product-card .body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1rem; margin: 0 0 0.4rem; line-height: 1.35; }
.product-card h3 a { color: inherit; }
.product-card .short { color: var(--pe-muted); font-size: 0.86rem; margin-bottom: 0.7rem; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.price { color: var(--pe-green-800); font-weight: 800; font-size: 1.15rem; }
.mrp { color: #8a9a8e; text-decoration: line-through; font-size: 0.9rem; }
.pack-size { font-size: 0.82rem; color: var(--pe-muted); margin-bottom: 0.85rem; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.product-actions .btn { font-size: 0.84rem; font-weight: 700; border-radius: 999px; }

.why-grid .why-item {
  background: #fff; border: 1px solid var(--pe-border); border-radius: var(--pe-radius);
  padding: 1.4rem; height: 100%;
}
.why-item i {
  width: 48px; height: 48px; border-radius: 14px; display: inline-grid; place-items: center;
  background: var(--pe-green-100); color: var(--pe-green-700); margin-bottom: 0.85rem; font-size: 1.15rem;
}

.bulk-cta {
  background: linear-gradient(135deg, var(--pe-green-800), var(--pe-green-600));
  color: #fff; border-radius: 28px; padding: 2.5rem; position: relative; overflow: hidden;
}
.bulk-cta::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(255,255,255,0.08);
}

.page-hero {
  background: linear-gradient(120deg, var(--pe-green-100), #fff);
  border-bottom: 1px solid var(--pe-border); padding: 2.2rem 0;
}
.filter-box {
  background: #fff; border: 1px solid var(--pe-border); border-radius: var(--pe-radius); padding: 1.2rem;
}
.qty-control { display: inline-flex; align-items: center; gap: 0.35rem; }
.qty-control input {
  width: 64px; text-align: center; border: 1px solid var(--pe-border); border-radius: 10px; padding: 0.4rem;
}
.cart-table img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.summary-box {
  background: #fff; border: 1px solid var(--pe-border); border-radius: var(--pe-radius); padding: 1.4rem;
  position: sticky; top: 100px;
}
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 3px; background: var(--pe-border);
}
.timeline li { position: relative; padding-left: 48px; margin-bottom: 1.2rem; }
.timeline li .dot {
  position: absolute; left: 6px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--pe-border);
}
.timeline li.done .dot { background: var(--pe-green-600); border-color: var(--pe-green-600); }
.timeline li.current .dot { background: #fff; border-color: var(--pe-green-600); box-shadow: 0 0 0 4px rgba(46,125,50,0.2); }
.timeline li.cancelled .dot { background: #c62828; border-color: #c62828; }

.auth-card, .account-card {
  background: #fff; border: 1px solid var(--pe-border); border-radius: 24px; padding: 2rem;
  box-shadow: var(--pe-shadow);
}
.site-footer {
  background: linear-gradient(180deg, #102818, #0c1d12); color: rgba(255,255,255,0.86);
}
.site-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: rgba(255,255,255,0.78); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem 0; font-size: 0.9rem;
}
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 1050;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  font-size: 1.7rem; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
  animation: pulse 2.4s infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.05); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

.table-responsive { border-radius: 14px; }
.form-control, .form-select {
  border-radius: 12px; border-color: var(--pe-border); padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--pe-green-500); box-shadow: 0 0 0 0.2rem rgba(67, 160, 71, 0.15);
}
.badge-stock { font-weight: 600; }
.related-wrap { margin-top: 3rem; }

.policy-content h2 { color: var(--pe-green-800); }
.policy-content ul { padding-left: 1.2rem; }
.policy-content li { margin-bottom: 0.35rem; }
.footer-bottom a { color: rgba(255,255,255,0.86); }
.footer-bottom a:hover { color: #fff; }

.clients-section .clients-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.client-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius);
  background:
    linear-gradient(145deg, #ffffff 0%, var(--pe-green-50) 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.client-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--pe-shadow);
}
.client-mark {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--pe-green-800), var(--pe-green-500));
}
.client-mark-alt {
  background: linear-gradient(135deg, #1b5e20, #66bb6a);
}
.client-item h3 {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}
.client-item p {
  margin: 0;
  color: var(--pe-muted);
  font-size: 0.95rem;
}

@media (max-width: 991.98px) {
  .clients-section .clients-row { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .hero { min-height: auto; }
  .hero-content { padding: 3rem 0; }
  .product-actions { grid-template-columns: 1fr; }
  .section-pad { padding: 2.5rem 0; }
  .clients-section .clients-row { grid-template-columns: 1fr; }
}
