/* src/styles.css */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Arial,
    "Noto Sans Devanagari",
    sans-serif;
  background: #f5f7f3;
  color: #213126;
}
a {
  color: #286b3f;
  text-decoration: none;
}
.topbar {
  min-height: 68px;
  background: #fff;
  border-bottom: 1px solid #dfe7df;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  font-size: 21px;
  font-weight: 800;
  color: #174b2a;
}
.topbar nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.topbar button,
.tabs button {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: #286b3f;
}
.container {
  max-width: 1780px;
  margin: auto;
  padding: 30px 20px;
}
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
  padding: 45px 0;
  align-items: center;
}
.hero h1 {
  font-size: 42px;
}
.hero p {
  font-size: 18px;
  line-height: 1.6;
}
.hero-card {
  background: #e7f2e7;
  border-radius: 24px;
  padding: 45px;
  text-align: center;
  font-size: 48px;
}
.hero-card b {
  font-size: 22px;
}
.pill,
.tag {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 20px;
  background: #e7f2e7;
  color: #286b3f;
  font-size: 12px;
  font-weight: 700;
}
.form-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.form-section-heading h2 {
  margin: 0;
}
.collapse-toggle {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .form-section-heading {
    align-items: flex-start;
  }
  .collapse-toggle {
    width: 100%;
  }
}
.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  background: #286b3f;
  color: #fff;
  padding: 5px 5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}
.btn-outline {
  border: 1px solid #286b3f;
  background: #fff;
  color: #286b3f;
  border-radius: 9px;
  padding: 8px 13px;
}
.full {
  width: 100%;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid #025a029d;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px #00000008;
}
.product-img {
  height: 130px;
  background: #eef5ed;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 40px;
  margin-bottom: 14px;
}
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 30px;
}
.auth {
  width: min(460px, 100%);
}
label {
  display: block;
  font-weight: 700;
  margin: 13px 0;
}
input,
select {
  width: 100%;
  padding: 12px;
  margin-top: 7px;
  border: 1px solid #cfd9cf;
  border-radius: 9px;
  background: #fff;
  font: inherit;
}
.tabs {
  display: flex;
  gap: 5px;
  background: #f0f4ef;
  padding: 5px;
  border-radius: 10px;
  margin: 18px 0;
}
.tabs button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
}
.tabs .active {
  background: #fff;
  font-weight: 700;
}
.alert {
  background: #fff0ed;
  color: #9a3a2c;
  padding: 11px;
  border-radius: 9px;
  margin: 12px 0;
}
.hint {
  background: #f4f7f3;
  padding: 10px;
  border-radius: 9px;
}
.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  background: mistyrose;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 30px;
  background: radial-gradient(black, transparent);
}
.stats .card {
  text-align: center;
}
.stats b {
  font-size: 28px;
  display: block;
}
.stats small {
  color: #657166;
}
.screen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.screen-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 105px;
}
.screen-card span {
  font-size: 12px;
  color: #77917d;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.module-icon {
  font-size: 32px;
}
.danger {
  border: 0;
  background: #fff0ed;
  color: #a43e30;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}
.empty {
  text-align: center;
  padding: 50px;
}
.page-title {
  margin: 28px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}
@media (max-width: 800px) {
  .hero,
  .grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .screen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    display: table-column;
  }
  .topbar {
    padding: 15px;
    align-items: flex-start;
    gap: 10px;
  }
  .topbar nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.product-groups-section {
  background: #fff;
  border: 1px solid #165216;
  border-radius: 18px;
  padding: 18px;
  margin: 25px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-heading h2 {
  margin: 4px 0;
}
.groups-scroll {
  display: ruby;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 12px;
  scrollbar-width: none;
}
.groups-scroll::-webkit-scrollbar {
  display: none;
}
.product-group {
  min-width: 122px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.group-image {
  width: 100px;
  height: 100px;
  margin: auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e5c34f;
  background: #f3eee2;
  display: grid;
  place-items: center;
  font-size: 48px;
}
.group-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.group-name {
  margin-top: 8px;
  background: #f2b632;
  color: #fff;
  border-radius: 18px;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: normal;
  min-height: 34px;
  display: grid;
  place-items: center;
}
.selected-group .group-image {
  box-shadow: 0 0 0 4px #dcefdc;
}
.active-filter {
  background: #e7f2e7;
}
.home-catalog {
  padding-top: 10px;
}
.product-catalog-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.product-card {
  background: #fff;
  border: 2px solid #dfe7df;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px #0000000a;
}
.catalog-image {
  background: #f1f5ef;
  display: grid;
  place-items: center;
  font-size: 100px;
  height: auto;
}
.catalog-image img {
  object-fit: cover;
  height: 200px;
  width: 200px;
  padding: auto;
  border-radius: 20px;
}
.product-card-body {
  padding: 8%;
  padding-top: 2%;
}
.product-card-body h2 {
  margin: 8px 0 9px;
  border-top-left-radius: 5%;
}
.farmer-name {
  font-size: 13px;
  color: #657166;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
.product-meta b {
  font-size: 18px;
  color: #286b3f;
}
.stock {
  font-size: 13px;
  color: #5f6d63;
}
.journey-section {
  margin-top: 35px;
}
.success {
  background: #e8f7ea;
  color: #246b35;
  padding: 11px;
  border-radius: 9px;
  margin: 12px 0;
}
.space-left {
  margin-left: 8px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
}
.check input {
  width: auto;
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 11px;
  border-bottom: 1px solid #e6ebe6;
}
.mini-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f5edcf;
}
.danger {
  cursor: pointer;
}
.farmer-name + .product-meta {
}
@media (max-width: 1000px) {
  .container {
    margin: 2%;
  }
  .product-meta b {
    font-size: 12px;
    color: #286b3f;
  }
  .product-meta span {
    font-size: 10px;
    color: #286b3f;
  }
  .product-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .catalog-image img {
    object-fit: cover;
    height: 90px;
    width: 90px;
    padding: auto;
    border-radius: 15px;
  }
  .product-meta b {
    font-size: 14px;
    color: #286b3f;
  }
  .product-meta span {
    font-size: 10px;
    color: #141815;
  }
  .home-catalog {
    max-width: 99%;
    padding-top: 10px;
  }
}
@media (max-width: 600px) {
  .product-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .product-meta b {
    font-size: 12px;
    color: #286b3f;
  }
  .product-meta span {
    font-size: 10px;
    color: #141815;
  }
  .group-image {
    width: 82px;
    height: 82px;
  }
  .product-group {
    min-width: 100px;
  }
}
.product-group-grid,
.sub-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.product-menu-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.product-menu-square:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.product-menu-square.active {
  border: 2px solid #2e7d32;
  background: #f1f8e9;
}
.menu-image {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.menu-image span {
  font-size: 45px;
}
.menu-name {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
.sub-group-section h3 {
  margin-top: 20px;
  margin-bottom: 5px;
}
@media (max-width: 100px) {
  .product-group-grid,
  .sub-group-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-menu-square {
    aspect-ratio: 1 / 1;
  }
  .menu-image {
    width: 80px;
    height: 80px;
  }
  .menu-name {
    font-size: 12px;
  }
}
.product-group-grid,
.sub-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.product-menu-square {
  min-height: 130px;
  width: 100%;
  border: 2px solid #e1e7e1;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s ease;
}
.product-menu-square:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .10);
}
.product-menu-square.active {
  border-color: #2e7d32;
  background: #f1f8e9;
  box-shadow: 0 0 0 2px #d7ead7;
}
.menu-image {
  width: 80px;
  height: 80px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.menu-image span {
  font-size: 46px;
}
.menu-name {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.farmer-product-card {
  cursor: pointer;
}
.product-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product-popup {
  width: min(850px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  position: relative;
  display: grid;
  grid-template-columns: 42% 58%;
}
.popup-close {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 2;
  border: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
}
.popup-image {
  min-height: 360px;
  background: #f1f5ef;
  display: grid;
  place-items: center;
  font-size: 90px;
}
.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.popup-body {
  padding: 28px;
}
.popup-body h2 {
  margin: 8px 0;
}
.popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}
.popup-grid div {
  padding: 12px;
  background: #f6f8f5;
  border-radius: 10px;
}
.popup-grid small,
.popup-grid b {
  display: block;
}
.popup-grid b {
  margin-top: 4px;
}
.popup-cart {
  margin-top: 18px;
}
.quantity-section {
  margin: 18px 0;
  padding: 16px 18px;
  background:
    linear-gradient(
      135deg,
      #f7fff7,
      #ffffff);
  border: 1px solid #dcefdc;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.08);
}
.quantity-section label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid #4caf50;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}
.quantity-control button {
  width: 46px;
  height: 44px;
  border: none;
  background: #f1f8e9;
  color: #2e7d32;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.totalAmount {
  font-family:
    Arial,
    "Noto Sans Devanagari",
    sans-serif;
  background: #f5f7f3;
  color: #213126;
}
.quantity-control button:hover {
  background: #4caf50;
  color: #ffffff;
}
.quantity-control button:active {
  transform: scale(0.92);
}
.quantity-control input {
  width: 70px;
  height: 44px;
  border: none;
  border-left: 1px solid #d9e9d9;
  border-right: 1px solid #d9e9d9;
  outline: none;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  background: #ffffff;
}
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quantity-control input[type=number] {
  -moz-appearance: textfield;
}
.quantity-section small {
  display: block;
  margin-top: 9px;
  text-align: center;
  color: #777;
  font-size: 12px;
}
.add-cart-btn {
  width: 100%;
  margin-top: 14px;
  padding: 13px 18px;
  border: none;
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      #2e7d32,
      #43a047);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(46, 125, 50, 0.25);
  transition: all 0.2s ease;
}
.add-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(46, 125, 50, 0.35);
}
.add-cart-btn:active {
  transform: scale(0.98);
}
.cart-product-image {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px;
  object-fit: cover;
  border-radius: 8px;
  padding: 2px;
  border: 1px solid #e0e8df;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}
.cart-product-details {
  flex: 1;
  min-width: 0;
}
.home-catalog {
  max-width: 80%;
  padding-top: 10px;
}
.home-topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0 16px;
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 235px;
}
.home-brand-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #edf6e8;
  font-size: 25px;
}
.home-brand strong {
  display: block;
  font-size: 21px;
  color: #225d31;
}
.home-brand small {
  display: block;
  color: #687768;
  font-size: 12px;
  margin-top: 3px;
}
.home-search-top {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
}
.home-cart-link {
  white-space: nowrap;
}
.home-offers {
  overflow: hidden;
  border-radius: 13px;
  margin: 0 0 16px;
  background: #e8f4df;
  color: #244f2b;
}
.home-offers-track {
  display: flex;
  width: max-content;
  animation: homeOfferSlide 27s linear infinite;
}
.home-offers:hover .home-offers-track {
  animation-play-state: paused;
}
.home-offer-slide {
  width: min(76vw, 480px);
  min-height: 82px;
  box-sizing: border-box;
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #cfe3c4;
}
.home-offer-slide span {
  font-size: 12px;
  font-weight: 700;
  color: #5b8a2a;
}
.home-offer-slide strong {
  font-size: 17px;
  margin: 3px 0;
}
.home-offer-slide small {
  color: #657766;
}
@keyframes homeOfferSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.home-layout {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.home-sidebar {
  position: sticky;
  top: 10px;
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  border-right: 1px solid #e1e6df;
  padding: 0 12px 18px 0;
}
.home-sidebar h3 {
  font-size: 14px;
  margin: 8px 0 12px;
  color: #536453;
}
.home-side-menu {
  width: 100%;
  min-height: 92px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 5px;
  margin-bottom: 7px;
  cursor: pointer;
  color: #303a30;
  font-weight: 600;
  font-size: 12px;
  text-align: center;
}
.home-side-menu:hover,
.home-side-menu.selected-group {
  background: #eff7e9;
  color: #4c8500;
  box-shadow: inset 3px 0 #5b9800;
}
.home-side-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3f5f2;
  font-size: 23px;
  overflow: hidden;
}
.home-side-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-main-content {
  min-width: 0;
}
.home-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
}
.home-welcome h1 {
  font-size: clamp(22px, 2.5vw, 32px);
  margin: 8px 0 5px;
}
.home-welcome p {
  color: #667266;
  margin: 0;
}
.home-product-count {
  min-width: 70px;
  text-align: center;
  background: #f1f7ed;
  border-radius: 12px;
  padding: 12px;
}
.home-product-count b {
  display: block;
  font-size: 22px;
  color: #397b24;
}
.home-product-count small {
  color: #657765;
}
.home-search-hint {
  background: #f5f9f1;
  padding: 10px 12px;
  border-radius: 9px;
  margin-bottom: 14px;
  color: #426b30;
}
.home-product-section {
  margin-top: 10px;
}
@media (max-width: 760px) {
  .home-topbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .home-brand {
    min-width: 0;
    flex: 1;
  }
  .home-search-top {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .home-layout {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 5px;
  }
  .home-sidebar {
    padding-right: 6px;
  }
  .home-sidebar h3 {
    font-size: 11px;
  }
  .home-side-menu {
    font-size: 10px;
    min-height: 78px;
  }
  .home-side-icon {
    width: 38px;
    height: 38px;
  }
  .home-offer-slide {
    width: 78vw;
    padding: 12px 16px;
  }
  .home-offer-slide strong {
    font-size: 14px;
  }
  .home-welcome {
    align-items: flex-start;
  }
  .home-welcome p {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .cart-product-image {
    width: 20px;
    height: 20px;
    min-width: 22px;
  }
  .cart-item {
    gap: 10px;
    padding: 10px;
  }
}
@media (max-width: 200px) {
  .product-group-grid,
  .sub-group-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-popup {
    grid-template-columns: 1fr;
  }
  .popup-image {
    min-height: 220px;
    max-height: 280px;
  }
  #mainMenuSection,
  #subMenuSection,
  #productListSection {
    scroll-margin-top: 70px;
  }
  html {
    scroll-behavior: smooth;
  }
}
.admin-dashboard {
  padding-bottom: 40px;
}
.admin-dashboard .dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.admin-stats .stat {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-stats .stat b {
  font-size: 30px;
  color: #367a1c;
}
.admin-stats .stat small {
  color: #64725d;
}
.admin-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}
.admin-menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 155px;
  padding: 18px;
  border: 1px solid #dfe8d9;
  border-radius: 14px;
  background: #fff;
  color: #25351f;
  text-decoration: none;
  box-shadow: 0 3px 14px #213d1108;
}
.admin-menu-card:hover {
  border-color: #7eae6a;
  transform: translateY(-2px);
}
.menu-icon {
  font-size: 28px;
}
.menu-title {
  font-weight: 800;
}
.menu-desc {
  font-size: 13px;
  color: #65735e;
  line-height: 1.4;
}
.menu-count {
  position: absolute;
  right: 14px;
  top: 14px;
  border-radius: 18px;
  background: #e4f5dc;
  color: #286b1b;
  padding: 4px 9px;
}
.menu-open {
  font-size: 13px;
  color: #367a1c;
  font-weight: 700;
  margin-top: auto;
}
.approval-panel {
  padding: 20px;
  margin: 18px 0;
  scroll-margin-top: 20px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.section-title h2 {
  margin: 0;
}
.section-title p {
  margin: 6px 0;
  color: #66735f;
}
.count-badge {
  border-radius: 20px;
  background: #fff0ce;
  color: #835700;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 13px;
}
.request-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid #e7ece3;
  flex-wrap: wrap;
}
.request-info {
  display: flex;
  flex: 1;
  min-width: 200px;
  flex-direction: column;
  gap: 5px;
}
.request-info span,
.request-info small {
  color: #66735f;
  overflow-wrap: anywhere;
}
.request-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}
.product-thumb-icons {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}
.empty-state {
  color: #66735f;
  padding: 12px 0;
}
.image-preview {
  display: flex;
  align-items: center;
  margin: 8px 0 16px;
}
.image-preview img {
  width: 120px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d8e0d8;
}
.admin-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d8e0d8;
}
input[type=file] {
  max-width: 100%;
  padding: 8px;
}
.admin-message {
  padding: 12px;
  background: #fff4dc;
  border-radius: 8px;
  color: #73520d;
}
@media (max-width: 900px) {
  .admin-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .admin-menu-grid {
    grid-template-columns: 1fr;
  }
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .approval-panel {
    padding: 13px;
  }
  .request-actions {
    width: 100%;
  }
}
@media screen and (max-width: 600px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
  }
  .container.home-catalog {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px;
    overflow-x: clip;
  }
  .popup-image img {
    width: 60%;
    height: 60%;
    object-fit: cover;
  }
  .home-topbar {
    width: 100%;
    min-width: 0;
    padding: 8px 0 12px;
    gap: 10px;
    align-items: center;
  }
  .home-brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 7px;
  }
  .home-brand strong {
    font-size: 18px;
    line-height: 1.2;
  }
  .home-brand small {
    display: none;
  }
  .home-brand-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    font-size: 21px;
  }
  .home-cart-link {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 8px;
    font-size: 13px;
  }
  .home-search-top {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    order: 3;
    margin: 0;
  }
  .home-search-top input {
    width: 100%;
    min-width: 0;
    font-size: 14px;
  }
  .home-offers {
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
  }
  .home-offer-slide {
    width: 82vw;
    max-width: 340px;
    min-height: 76px;
    padding: 10px 13px;
  }
  .home-offer-slide strong {
    font-size: 14px;
  }
  .home-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }
  .home-sidebar {
    position: static;
    top: auto;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    padding: 4px 2px 10px;
    border-right: 0;
    border-bottom: 1px solid #e1e6df;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .home-sidebar h3 {
    display: none;
  }
  .home-side-menu {
    flex: 0 0 82px;
    width: 82px;
    min-width: 82px;
    min-height: 76px;
    margin: 0;
    padding: 6px 4px;
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .home-side-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }
  .home-main-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }
  .home-welcome {
    width: 100%;
    gap: 8px;
    margin: 4px 0 14px;
  }
  .home-welcome > div:first-child {
    min-width: 0;
  }
  .home-welcome h1 {
    font-size: 23px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .home-welcome p {
    font-size: 13px;
    line-height: 1.5;
  }
  .home-product-count {
    min-width: 55px;
    padding: 8px;
  }
  .home-product-count b {
    font-size: 20px;
  }
  .home-product-section,
  .home-results-heading {
    width: 100%;
    min-width: 0;
  }
  .home-results-heading h2 {
    font-size: 21px;
    line-height: 1.3;
  }
  .product-catalog-grid.home-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .product-catalog-grid .product-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 14px;
  }
  .product-catalog-grid .catalog-image {
    width: 100%;
    height: 125px;
    min-width: 0;
    overflow: hidden;
  }
  .product-catalog-grid .catalog-image img {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .product-catalog-grid .product-card-body {
    min-width: 0;
    padding: 9px;
  }
  .product-catalog-grid .product-card-body h2 {
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .product-catalog-grid .farmer-name,
  .product-catalog-grid .stock,
  .product-catalog-grid .product-card-body small {
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .product-catalog-grid .product-meta {
    display: block;
    margin: 8px 0;
  }
  .product-catalog-grid .product-meta b {
    display: block;
    font-size: 15px;
    overflow-wrap: anywhere;
  }
  .product-catalog-grid .product-meta span {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    overflow-wrap: anywhere;
  }
  .product-catalog-grid .product-card-body .btn {
    display: block;
    width: 100%;
    padding: 9px 5px;
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .product-popup-backdrop {
    padding: 10px;
  }
  .product-popup {
    width: 100%;
    max-width: 100%;
    max-height: 94vh;
    grid-template-columns: minmax(0, 1fr);
    overflow-y: auto;
  }
  .popup-image {
    min-height: 180px;
    max-height: 240px;
  }
  .popup-body {
    padding: 16px;
    min-width: 0;
  }
  .popup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}
@media screen and (max-width: 360px) {
  .container.home-catalog {
    padding: 8px;
  }
  .home-brand strong {
    font-size: 16px;
  }
  .home-cart-link {
    font-size: 12px;
    padding: 7px 5px;
  }
  .product-catalog-grid.home-product-grid {
    gap: 7px;
  }
  .product-catalog-grid .catalog-image {
    height: 105px;
  }
  .product-catalog-grid .product-card-body {
    padding: 7px;
  }
  .product-catalog-grid .product-card-body h2 {
    font-size: 16px;
  }
}
@media screen and (max-width: 600px) {
  .product-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    overflow-y: auto;
    box-sizing: border-box;
  }
  .product-popup-backdrop * {
    box-sizing: border-box;
  }
  .product-popup {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    min-width: 0;
    max-height: calc(100dvh - 24px);
    margin: auto;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 18px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
  }
  .popup-close {
    position: sticky;
    top: 8px;
    align-self: flex-end;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin: 8px 8px -44px 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #214b31;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    font-size: 20px;
    line-height: 1;
    z-index: 5;
  }
  .popup-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: clamp(170px, 42vw, 240px);
    min-height: 170px;
    max-height: 240px;
    flex: 0 0 auto;
    margin: 0;
    padding: 12px;
    overflow: hidden;
    background: #f4f7f1;
    font-size: 64px;
  }
  .popup-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
  }
  .popup-body {
    width: 100%;
    min-width: 0;
    padding: 18px 16px 20px;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .popup-body .tag {
    display: inline-block;
    max-width: calc(100% - 42px);
    margin: 2px 0 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e8f3e8;
    color: #24683c;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
  }
  .popup-body h2 {
    margin: 6px 0 8px;
    padding-right: 4px;
    color: #203b2b;
    font-size: 22px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .popup-body p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.55;
    color: #59665d;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .popup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    min-width: 0;
    margin: 14px 0;
  }
  .popup-grid div {
    min-width: 0;
    padding: 11px 10px;
    border-radius: 11px;
    background: #f3f7f1;
    overflow-wrap: anywhere;
  }
  .popup-grid small {
    display: block;
    color: #68766b;
    font-size: 12px;
    line-height: 1.35;
  }
  .popup-grid b {
    display: block;
    margin-top: 5px;
    color: #245f38;
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .popup-body .btn,
  .popup-body .btn-outline,
  .popup-body button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .popup-body .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 10px 13px;
  }
  .quantity-section {
    width: 100%;
    min-width: 0;
    margin: 14px 0;
    padding: 12px;
  }
  .quantity-control {
    max-width: 100%;
    flex-wrap: wrap;
  }
}
@media screen and (max-width: 360px) {
  .product-popup-backdrop {
    padding: 7px;
  }
  .product-popup {
    max-height: calc(100dvh - 14px);
    border-radius: 14px;
  }
  .popup-image {
    height: 165px;
    min-height: 165px;
    padding: 8px;
  }
  .popup-body {
    padding: 14px 12px 16px;
  }
  .popup-body h2 {
    font-size: 20px;
  }
  .popup-grid {
    gap: 7px;
  }
  .popup-grid div {
    padding: 9px 8px;
  }
  .popup-grid b {
    font-size: 14px;
  }
}
.cart-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) minmax(150px, auto) minmax(115px, auto) minmax(100px, auto) minmax(88px, auto);
  align-items: center;
  column-gap: 14px;
  row-gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}
.cart-product-info {
  display: contents;
}
.cart-product-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.cart-product-main b {
  overflow-wrap: anywhere;
}
.cart-product-image {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: cover;
  border-radius: 7px;
}
.cart-adjustments {
  display: flex;
  align-items: end;
  gap: 8px;
  min-width: 0;
}
.cart-measure-control,
.cart-qty {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cart-measure-control {
  min-width: 0;
}
.cart-measure-control label,
.cart-qty label {
  font-size: 11px;
  line-height: 1.2;
  color: #64748b;
}
.cart-measure-control select {
  width: fit-content;
  min-height: 30px;
  padding: 4px 20px 4px 6px;
  font-size: 12px;
  line-height: 1.2;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
}
.cart-qty input {
  width: 58px;
  height: 30px;
  box-sizing: border-box;
  padding: 4px 5px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
}
.cart-selected-measurement {
  font-size: 11px;
  color: #176b3a;
  white-space: nowrap;
}
.cart-line-total {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  white-space: nowrap;
}
.cart-row > button {
  grid-column: 5;
  justify-self: end;
  white-space: nowrap;
  padding: 6px 9px;
  font-size: 12px;
}
@media (max-width: 760px) {
  .cart-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
  .cart-product-info {
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
    gap: 7px;
  }
  .cart-adjustments {
    align-items: end;
  }
  .cart-selected-measurement {
    white-space: normal;
  }
}
.measurement-dropdown {
  width: fit-content;
  height: 30px;
  padding: 3px 6px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
}
.out-of-stock {
  display: inline-block;
  color: #dc2626;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
