/**
 * PureMati - Official Stylesheet (Serverbyt Shared Hosting Edition)
 * Earthy, organic, farm-fresh visual design with bilingual Marathi & English support.
 */

:root {
  --pm-green: #235c34;
  --pm-green-dark: #163f23;
  --pm-green-light: #e8f5ec;
  --pm-earth: #6b401e;
  --pm-earth-dark: #4a2910;
  --pm-earth-light: #f7f1eb;
  --pm-orange: #e06323;
  --pm-orange-hover: #c54f15;
  --pm-yellow: #f59e0b;
  --pm-bg-light: #faf9f5;
  --pm-border: #e6dfd5;
  --pm-text: #2c2925;
  --pm-text-muted: #6b665f;
  --pm-card-shadow: 0 4px 14px rgba(35, 92, 52, 0.08);
  --pm-radius: 12px;
}

body {
  font-family: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--pm-text);
  background-color: var(--pm-bg-light);
  line-height: 1.6;
  padding-bottom: 70px; /* Space for mobile bottom nav on small screens */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: var(--pm-green);
  text-decoration: none;
}
a:hover {
  color: var(--pm-green-dark);
}

/* ----------------------------------------------------
   TOPBAR & HEADER
---------------------------------------------------- */
.topbar {
  background-color: var(--pm-earth-dark);
  color: #fcefe4;
  font-size: 0.85rem;
  padding: 6px 0;
}
.topbar a {
  color: #fcefe4;
}
.topbar a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--pm-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.brand-logo img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.lang-switch-btn {
  border: 1px solid var(--pm-green);
  color: var(--pm-green);
  background: var(--pm-green-light);
  border-radius: 20px;
  padding: 4px 12px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.lang-switch-btn:hover {
  background: var(--pm-green);
  color: #ffffff;
}

.header-search-input {
  border-radius: 24px 0 0 24px;
  border: 1px solid var(--pm-border);
  padding-left: 18px;
}
.header-search-btn {
  border-radius: 0 24px 24px 0;
  background-color: var(--pm-green);
  border-color: var(--pm-green);
  color: #ffffff;
}
.header-search-btn:hover {
  background-color: var(--pm-green-dark);
  border-color: var(--pm-green-dark);
}

.cart-icon-wrapper {
  position: relative;
  display: inline-block;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--pm-orange);
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ----------------------------------------------------
   NAVIGATION BAR
---------------------------------------------------- */
.navbar-puremati {
  background-color: var(--pm-green);
}
.navbar-puremati .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}
.navbar-puremati .nav-link:hover,
.navbar-puremati .nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
}

/* ----------------------------------------------------
   HERO BANNER
---------------------------------------------------- */
.hero-banner {
  background: linear-gradient(135deg, #1b4929 0%, #2f693f 60%, #465b26 100%);
  color: #ffffff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
}
.hero-tagline-badge {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 1.2rem;
  opacity: 0.92;
  margin-bottom: 28px;
  max-width: 580px;
}
.btn-pm-primary {
  background-color: var(--pm-orange);
  border-color: var(--pm-orange);
  color: #ffffff;
  font-weight: 600;
  border-radius: 28px;
  padding: 10px 26px;
  transition: all 0.2s ease;
}
.btn-pm-primary:hover {
  background-color: var(--pm-orange-hover);
  border-color: var(--pm-orange-hover);
  color: #ffffff;
  transform: translateY(-1px);
}
.btn-pm-outline-light {
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: 600;
  border-radius: 28px;
  padding: 10px 26px;
}
.btn-pm-outline-light:hover {
  background-color: #ffffff;
  color: var(--pm-green-dark);
}

/* ----------------------------------------------------
   CATEGORY PILLS & CARDS
---------------------------------------------------- */
.category-card {
  background: #ffffff;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  padding: 18px 12px;
  text-align: center;
  transition: all 0.25s ease;
  display: block;
  color: var(--pm-text);
  box-shadow: var(--pm-card-shadow);
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--pm-green);
  box-shadow: 0 8px 20px rgba(35, 92, 52, 0.15);
  color: var(--pm-green);
}
.category-icon-circle {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--pm-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.category-icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

/* ----------------------------------------------------
   PRODUCT CARDS & GRID
---------------------------------------------------- */
.product-card {
  background: #ffffff;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--pm-card-shadow);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(35, 92, 52, 0.14);
  border-color: #c9decb;
}

.product-img-wrap {
  position: relative;
  padding-top: 75%;
  background-color: #f7faf7;
  overflow: hidden;
}
.product-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.badge-organic {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--pm-green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
}
.badge-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--pm-orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-unit {
  font-size: 0.8rem;
  color: var(--pm-text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pm-text);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}
.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--pm-green-dark);
}
.product-mrp {
  font-size: 0.88rem;
  color: var(--pm-text-muted);
  text-decoration: line-through;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  overflow: hidden;
  max-width: 110px;
}
.qty-stepper button {
  background: var(--pm-bg-light);
  border: none;
  width: 32px;
  height: 32px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-stepper button:hover {
  background: #e2ddd3;
}
.qty-stepper input {
  width: 44px;
  height: 32px;
  border: none;
  text-align: center;
  font-weight: 600;
}

/* ----------------------------------------------------
   STICKY MOBILE CART & BOTTOM NAV
---------------------------------------------------- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid var(--pm-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1040;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--pm-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}
.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--pm-green);
}
.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
}

.sticky-product-bar {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--pm-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1030;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}
@media (min-width: 992px) {
  .sticky-product-bar {
    display: none !important;
  }
}

/* ----------------------------------------------------
   ORDER TRACKING TIMELINE
---------------------------------------------------- */
.track-timeline {
  position: relative;
  padding: 20px 0;
}
.track-step {
  display: flex;
  margin-bottom: 24px;
  position: relative;
}
.track-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 18px;
  bottom: -16px;
  width: 3px;
  background: #e2ddd3;
}
.track-step.completed:not(:last-child)::before {
  background: var(--pm-green);
}
.track-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #e2ddd3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #a09a8f;
  margin-right: 16px;
  flex-shrink: 0;
  z-index: 2;
}
.track-step.completed .track-step-circle {
  background: var(--pm-green);
  border-color: var(--pm-green);
  color: #ffffff;
}
.track-step.active .track-step-circle {
  border-color: var(--pm-orange);
  color: var(--pm-orange);
  animation: pulse 1.5s infinite;
}

/* ----------------------------------------------------
   INVOICE STYLING
---------------------------------------------------- */
.invoice-box {
  background: #ffffff;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  padding: 36px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
@media print {
  body {
    background: #ffffff;
    padding: 0;
  }
  .no-print, .main-header, .topbar, footer, .mobile-bottom-nav {
    display: none !important;
  }
  .invoice-box {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
.main-footer {
  background-color: #1a3c23;
  color: #e5ece6;
  padding: 50px 0 24px;
  font-size: 0.92rem;
}
.main-footer h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.15rem;
}
.main-footer a {
  color: #c9d8cb;
  transition: color 0.2s ease;
}
.main-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: #a8bfa9;
}
