
:root {
  --green: #26743b;
  --green-dark: #245d31;
  --green-deep: #173c24;
  --green-soft: #e8f3e7;
  --green-pale: #d8ebd5;
  --green-line: #c5dfc3;
  --whatsapp: #20a653;
  --ink: #263d2b;
  --muted: #748575;
  --muted-light: #9aaa9b;
  --white: #ffffff;
  --cream: #f2f8f0;
  --danger: #b44848;
  --shadow-soft: 0 10px 30px rgba(38, 116, 59, .08);
  --shadow-card: 0 4px 16px rgba(38, 116, 59, .06);
  --nav-height: 82px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: calc(var(--nav-height) + 26px + env(safe-area-inset-bottom));
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(32, 166, 83, .28);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  left: 1rem;
  top: -4rem;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: .75rem 1rem;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 0;
}

.page-width {
  max-width: 1160px;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--green-line);
}

.site-header .container {
  min-height: 78px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--green);
  font-size: 1.65rem;
}

.brand-sprout {
  position: absolute;
  top: -4px;
  right: -1px;
  color: var(--green-dark);
  font-size: .88rem;
  transform: rotate(-15deg);
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-name {
  font-family: Nunito, sans-serif;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.brand-tagline {
  color: var(--muted);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.page-shell {
  padding-top: 24px;
}

.app-view {
  min-height: 450px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-lg);
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  padding: 42px clamp(24px, 6vw, 70px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 555px;
}

.eyebrow,
.section-kicker,
.summary-kicker {
  color: var(--green);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin: 0 0 .7rem;
  text-transform: uppercase;
}

.eyebrow i {
  margin-right: .3rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Nunito, sans-serif;
  letter-spacing: -.04em;
}

.hero-panel h1 {
  max-width: 480px;
  color: var(--green-deep);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: .96;
  margin-bottom: .75rem;
}

.hero-subtitle {
  color: var(--muted);
  font-size: clamp(.94rem, 1.6vw, 1.07rem);
  max-width: 390px;
  margin-bottom: 1.25rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  color: var(--green-dark);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(38, 116, 59, .12);
  border-radius: 999px;
  padding: .45rem .7rem;
  font-size: .74rem;
  font-weight: 700;
}

.hero-pills i {
  color: var(--green);
}

.hero-art {
  position: absolute;
  right: 5%;
  top: 50%;
  width: 255px;
  height: 220px;
  transform: translateY(-50%);
  opacity: .95;
}

.hero-basket {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 125px;
  height: 88px;
  border-radius: 18px 18px 32px 32px;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 15px 25px rgba(38, 116, 59, .2);
  transform: translateX(-50%);
  font-size: 3.5rem;
}

.hero-basket::before {
  content: "";
  position: absolute;
  width: 76px;
  height: 47px;
  border: 7px solid var(--green-dark);
  border-bottom: 0;
  border-radius: 50px 50px 0 0;
  top: -38px;
}

.hero-basket i {
  transform: translateY(5px);
}

.hero-leaf {
  position: absolute;
  z-index: 3;
  width: 57px;
  height: 31px;
  border-radius: 100% 0 100% 0;
  background: #6fac61;
  transform: rotate(32deg);
}

.hero-leaf::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 30px;
  left: 28px;
  top: 2px;
  background: rgba(36, 93, 49, .3);
  transform: rotate(-37deg);
}

.hero-leaf-one {
  left: 62px;
  top: 44px;
  transform: rotate(-22deg);
}

.hero-leaf-two {
  right: 42px;
  top: 34px;
  background: #608a3d;
  transform: rotate(60deg) scale(.78);
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(38, 116, 59, .16);
  border-radius: 50%;
}

.hero-orbit-one {
  inset: 1px 17px 16px 22px;
  transform: rotate(-23deg);
}

.hero-orbit-two {
  inset: 22px 3px 8px 45px;
  transform: rotate(19deg);
}

.section-block {
  padding-top: 45px;
}

.section-heading-row,
.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading-row h2,
.panel-heading h1 {
  color: var(--green-deep);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1;
  margin-bottom: 0;
}

.result-count {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  margin-bottom: .2rem;
}

.discovery-tools {
  margin: 24px 0 22px;
  display: grid;
  gap: 14px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 50px;
  border: 1px solid var(--green-line);
  border-radius: 12px;
  background: var(--white);
  padding: .1rem .5rem .1rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-box:focus-within {
  border-color: rgba(38, 116, 59, .55);
  box-shadow: 0 0 0 4px rgba(38, 116, 59, .08);
}

.search-box>i {
  color: var(--green);
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: .9rem;
}

.search-box input::placeholder {
  color: var(--muted-light);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.icon-button:hover {
  color: var(--green);
  background: var(--green-soft);
  transform: translateY(-1px);
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.category-tab {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  padding: .48rem .75rem;
  font-size: .77rem;
  font-weight: 700;
  transition: all .2s ease;
}

.category-tab:hover {
  color: var(--green);
  background: var(--green-soft);
}

.category-tab.active {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 4px 10px rgba(38, 116, 59, .14);
}

.sort-select {
  display: flex;
  align-items: center;
  gap: .3rem;
  color: var(--muted);
  border: 1px solid var(--green-line);
  border-radius: 10px;
  background: var(--white);
  padding: .44rem .6rem;
}

.sort-select select {
  max-width: 110px;
  border: 0;
  outline: 0;
  appearance: none;
  color: var(--ink);
  background: transparent;
  font-size: .73rem;
  font-weight: 700;
  cursor: pointer;
}

.product-grid {
  margin-left: -6px;
  margin-right: -6px;
}

.product-grid>[class*="col-"] {
  padding-left: 6px;
  padding-right: 6px;
}

.product-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--green-line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover {
  border-color: #c8dfc9;
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.product-card-image-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--green-soft);
  text-align: left;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
  transition: transform .35s ease;
}

.product-card:hover .product-card-image {
  transform: scale(1.03);
}

.product-card-body {
  position: relative;
  display: flex;
  min-height: 144px;
  flex-direction: column;
  padding: 13px 13px 12px;
}

.product-category {
  color: var(--green);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.product-name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: Nunito, sans-serif;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: .5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin-top: auto;
  padding-right: 34px;
}

.product-price {
  color: var(--green-dark);
  font-family: Nunito, sans-serif;
  font-size: 1.02rem;
  font-weight: 900;
}

.product-unit {
  color: var(--muted);
  font-size: .67rem;
  font-weight: 600;
}

.product-card-actions {
  position: absolute;
  right: 10px;
  bottom: 9px;
  display: flex;
  align-items: center;
  gap: .15rem;
}

.product-card-actions .icon-button {
  width: 32px;
  height: 32px;
  font-size: .94rem;
}

.wishlist-button.is-active {
  color: #d15858;
}

.wishlist-button.is-active:hover {
  color: #b44848;
  background: #fff1f1;
}

.add-button {
  color: var(--white) !important;
  background: var(--green) !important;
}

.add-button:hover {
  background: var(--green-dark) !important;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 330px;
  border: 1px dashed #cfe2cf;
  border-radius: var(--radius-lg);
  background: var(--green-soft);
  text-align: center;
  padding: 44px 20px;
}

.empty-state.compact-empty {
  min-height: 250px;
}

.empty-icon,
.panel-heading-mark {
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--green-pale);
}

.empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.empty-state h2,
.empty-state h3 {
  color: var(--green-deep);
  font-size: 1.4rem;
  margin-bottom: .5rem;
}

.empty-state p {
  max-width: 360px;
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: .62rem .9rem;
  font-size: .82rem;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.button-primary:hover {
  color: var(--white);
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.button-outline {
  color: var(--green);
  background: transparent;
  border-color: #9bc39f;
}

.button-outline:hover {
  color: var(--green-dark);
  border-color: var(--green);
  background: var(--white);
}

.button-quiet {
  color: var(--green);
  background: var(--green-soft);
}

.button-icon-text {
  min-height: 40px;
}

.panel-heading {
  align-items: center;
  padding: 28px 0 29px;
  border-bottom: 1px solid var(--green-line);
}

.panel-heading h1 {
  margin-bottom: .35rem;
}

.panel-subtitle {
  color: var(--muted);
  font-size: .86rem;
  margin-bottom: 0;
}

.panel-heading-mark {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  font-size: 1.4rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 26px;
  padding-top: 25px;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--green-line);
  border-radius: 14px;
  background: var(--white);
  padding: 10px;
}

.cart-item-image {
  width: 74px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--green-soft);
}

.cart-item-info {
  min-width: 0;
}

.cart-item-name {
  overflow: hidden;
  color: var(--ink);
  font-family: Nunito, sans-serif;
  font-size: .94rem;
  font-weight: 800;
  margin-bottom: .22rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-price {
  color: var(--muted);
  font-size: .72rem;
  margin-bottom: .5rem;
}

.cart-item-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--green-line);
  border-radius: 7px;
  overflow: hidden;
}

.cart-item-controls button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 25px;
  border: 0;
  color: var(--green);
  background: var(--green-soft);
  font-size: .72rem;
}

.cart-item-controls button:hover {
  color: var(--white);
  background: var(--green);
}

.cart-item-controls span {
  min-width: 29px;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 800;
  text-align: center;
}

.cart-item-total {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: .45rem;
}

.cart-item-total strong {
  color: var(--green-dark);
  font-family: Nunito, sans-serif;
  font-size: .9rem;
  white-space: nowrap;
}

.remove-item {
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: .72rem;
}

.remove-item:hover {
  color: var(--danger);
}

.cart-summary {
  align-self: start;
  border: 1px solid var(--green-line);
  border-radius: var(--radius-md);
  background: var(--green-soft);
  padding: 20px;
}

.cart-summary h2 {
  color: var(--green-deep);
  font-size: 1.4rem;
  margin-bottom: 1.3rem;
}

.summary-kicker {
  margin-bottom: .45rem;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--green-line);
  padding: .85rem 0;
  font-size: .82rem;
}

.summary-line strong {
  color: var(--ink);
}

.summary-total {
  color: var(--ink);
  font-size: .95rem;
}

.summary-total strong {
  color: var(--green-dark);
  font-family: Nunito, sans-serif;
  font-size: 1.26rem;
}

.summary-note {
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.45;
  margin: .2rem 0 1.2rem;
}

.summary-note i {
  color: var(--green);
  margin-right: .2rem;
}

.account-card {
  max-width: 570px;
  margin: 26px auto 0;
  border: 1px solid var(--green-line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 5vw, 34px);
}

.demo-note {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  color: var(--muted);
  background: var(--green-soft);
  border-radius: 10px;
  padding: .75rem .85rem;
  font-size: .74rem;
  line-height: 1.45;
  margin-bottom: 1.2rem;
}

.demo-note i {
  flex: 0 0 auto;
  color: var(--green);
  font-size: .95rem;
}

.demo-note strong {
  color: var(--green-dark);
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border-bottom: 1px solid var(--green-line);
  margin-bottom: 1.35rem;
}

.account-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  padding: .6rem .3rem .8rem;
  font-size: .82rem;
  font-weight: 800;
}

.account-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  color: var(--ink);
  font-size: .77rem;
  font-weight: 800;
  margin-bottom: .38rem;
}

.form-field input {
  display: block;
  width: 100%;
  border: 1px solid var(--green-line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
  padding: .72rem .8rem;
  font-size: .84rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field input::placeholder {
  color: var(--muted-light);
}

.form-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(38, 116, 59, .08);
  outline: 0;
}

.form-field.has-error input {
  border-color: var(--danger);
}

.field-error {
  display: block;
  min-height: 0;
  color: var(--danger);
  font-size: .68rem;
  margin-top: .3rem;
}

.form-feedback {
  min-height: 22px;
  font-size: .76rem;
  margin: .35rem 0 .6rem;
}

.form-feedback.success {
  color: var(--green-dark);
}

.form-feedback.error {
  color: var(--danger);
}

.product-modal-content {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .84);
}

.modal-product-layout {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(0, 1.05fr);
}

.modal-image-wrap {
  min-height: 390px;
  background: var(--green-soft);
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.modal-product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 38px;
}

.modal-product-info h2 {
  color: var(--green-deep);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  margin-bottom: .8rem;
}

.modal-description {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.65;
  margin-bottom: 1.3rem;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  border-bottom: 1px solid var(--green-line);
  padding-bottom: 1.2rem;
  margin-bottom: 1.1rem;
}

.modal-price-row .product-price {
  font-size: 1.55rem;
}

.modal-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--green-line);
  border-radius: 10px;
  overflow: hidden;
}

.quantity-control button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  border: 0;
  color: var(--green);
  background: var(--green-soft);
}

.quantity-control button:hover {
  color: var(--white);
  background: var(--green);
}

.quantity-control span {
  min-width: 37px;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 800;
  text-align: center;
}

.modal-feedback {
  min-height: 20px;
  color: var(--green);
  font-size: .74rem;
  margin: .65rem 0 0;
}

.toast-region {
  position: fixed;
  z-index: 1060;
  right: 18px;
  bottom: calc(var(--nav-height) + 20px + env(safe-area-inset-bottom));
  display: grid;
  gap: 8px;
  max-width: min(300px, calc(100vw - 36px));
}

.toast-message {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--green-deep);
  border: 1px solid var(--green-line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: .72rem .85rem;
  font-size: .76rem;
  font-weight: 700;
  animation: toast-in .25s ease both;
}

.toast-message i {
  color: var(--green);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.whatsapp-button {
  position: fixed;
  z-index: 1020;
  left: max(18px, env(safe-area-inset-left));
  bottom: calc(var(--nav-height) + 18px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--white);
  background: var(--whatsapp);
  box-shadow: 0 8px 20px rgba(32, 166, 83, .28);
  font-size: 1.45rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-button:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 11px 23px rgba(32, 166, 83, .35);
}

.whatsapp-button.is-disabled {
  cursor: not-allowed;
  opacity: .55;
}

.whatsapp-button.is-disabled:hover {
  transform: none;
}

.bottom-nav {
  position: fixed;
  z-index: 1010;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: var(--nav-height);
  border-top: 1px solid var(--green-line);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -6px 24px rgba(38, 116, 59, .06);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 620px);
  min-height: var(--nav-height);
  margin: 0 auto;
}

.bottom-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border: 0;
  color: var(--muted-light);
  background: transparent;
  font-size: .64rem;
  font-weight: 700;
  transition: color .2s ease;
}

.bottom-nav-item:hover {
  color: var(--green);
}

.bottom-nav-item.active {
  color: var(--green);
}

.nav-icon {
  position: relative;
  font-size: 1.16rem;
  line-height: 1;
}

.nav-badge {
  position: absolute;
  top: -8px;
  right: -11px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  border: 2px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  font-size: .55rem;
  font-weight: 800;
}

@media (min-width: 576px) {
  .product-card-body {
    min-height: 151px;
    padding: 14px;
  }

  .product-name {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  :root {
    --nav-height: 76px;
  }

  .site-header .container {
    min-height: 84px;
  }

  .page-shell {
    padding-top: 30px;
  }

  .hero-panel {
    min-height: 300px;
  }

  .discovery-tools {
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: center;
  }

  .filter-row {
    justify-content: flex-end;
  }

  .bottom-nav-item {
    font-size: .69rem;
  }

  .whatsapp-button {
    left: max(28px, env(safe-area-inset-left));
    bottom: calc(var(--nav-height) + 24px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 767.98px) {
  .hero-art {
    right: -28px;
    opacity: .5;
    transform: translateY(-50%) scale(.77);
  }

  .hero-copy {
    max-width: 72%;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    order: -1;
  }
}

@media (max-width: 575.98px) {
  .page-shell {
    padding-top: 16px;
  }

  .hero-panel {
    min-height: 252px;
    padding: 30px 20px;
  }

  .hero-panel h1 {
    font-size: 2.35rem;
  }

  .hero-copy {
    max-width: 86%;
  }

  .hero-subtitle {
    font-size: .86rem;
  }

  .hero-art {
    right: -73px;
    transform: translateY(-50%) scale(.68);
  }

  .section-block {
    padding-top: 32px;
  }

  .section-heading-row {
    align-items: end;
  }

  .result-count {
    font-size: .68rem;
  }

  .discovery-tools {
    margin-top: 19px;
  }

  .filter-row {
    align-items: flex-start;
  }

  .category-tabs {
    gap: .2rem;
  }

  .category-tab {
    padding-left: .6rem;
    padding-right: .6rem;
  }

  .sort-select {
    padding: .44rem .48rem;
  }

  .sort-select select {
    max-width: 72px;
  }

  .product-card-body {
    min-height: 133px;
    padding: 10px;
  }

  .product-name {
    font-size: .82rem;
  }

  .product-price {
    font-size: .91rem;
  }

  .product-unit {
    display: block;
    max-width: 72px;
    line-height: 1.1;
  }

  .product-card-actions {
    right: 5px;
    bottom: 6px;
  }

  .product-card-actions .icon-button {
    width: 28px;
    height: 28px;
    font-size: .84rem;
  }

  .panel-heading {
    padding-top: 17px;
  }

  .panel-heading h1 {
    font-size: 2rem;
  }

  .panel-heading-mark {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .cart-item {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .cart-item-image {
    width: 58px;
    height: 58px;
  }

  .cart-item-name {
    font-size: .79rem;
  }

  .cart-item-price {
    font-size: .66rem;
  }

  .cart-item-total strong {
    font-size: .78rem;
  }

  .modal-product-layout {
    grid-template-columns: 1fr;
  }

  .modal-image-wrap,
  .modal-image-wrap img {
    min-height: 215px;
    height: 215px;
  }

  .modal-product-info {
    padding: 24px 20px 22px;
  }

  .modal-product-info h2 {
    font-size: 1.85rem;
  }

  .modal-description {
    font-size: .8rem;
  }

  .whatsapp-button {
    width: 46px;
    height: 46px;
    left: 14px;
    bottom: calc(var(--nav-height) + 12px + env(safe-area-inset-bottom));
    font-size: 1.25rem;
  }

  .toast-region {
    right: 12px;
    bottom: calc(var(--nav-height) + 12px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Quantity stepper shown directly on each product card */
.card-quantity-control{display:inline-flex;align-items:center;justify-content:space-between;gap:5px;min-width:94px;padding:3px;border:1px solid var(--green-line);border-radius:999px;background:#fff;color:var(--ink)}
.card-quantity-control button{width:27px;height:27px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--green-soft);color:var(--green-dark);font-size:15px}
.card-quantity-control button:disabled{opacity:.4;cursor:not-allowed}
.card-quantity-control span{min-width:14px;text-align:center;font-size:12px;font-weight:800}
.checkout-auth-content{max-width:100%;border:1px solid var(--green-line);border-radius:22px;overflow:hidden}
.checkout-auth-inner{padding:28px;max-width:470px;margin:auto;width:100%}
.checkout-auth-inner h2{font-size:1.55rem;font-weight:800;margin:0 0 8px;color:var(--ink)}
.checkout-auth-inner .panel-subtitle{margin-bottom:20px}
.checkout-auth-inner .demo-note{font-size:.72rem;line-height:1.5}
@media(max-width:420px){.card-quantity-control{min-width:82px;gap:2px}.card-quantity-control button{width:25px;height:25px}.checkout-auth-inner{padding:24px 18px}}
.brand-logo-wrap{width:52px;height:52px;overflow:hidden;border-radius:50%;background:#fff;border:1px solid var(--green-line)}
.brand-logo{width:100%;height:100%;object-fit:cover}
.language-toggle{border:1px solid var(--green-line);background:var(--green-soft);color:var(--green-dark);border-radius:999px;padding:.42rem .7rem;font-weight:800;font-size:.75rem;margin-inline-start:auto}
.language-toggle:hover{background:var(--green);color:#fff}
html[dir="rtl"] body{font-family:"Segoe UI",Tahoma,Arial,sans-serif}
html[dir="rtl"] .hero-copy,html[dir="rtl"] .section-heading,html[dir="rtl"] .account-panel,html[dir="rtl"] .cart-summary{text-align:right}
html[dir="rtl"] .bi-arrow-right::before{content:"\\f12f"}
/* Refined language switcher and direct quantity entry for the product modal. */
.language-toggle{display:inline-flex;align-items:center;justify-content:center;gap:.42rem;min-width:76px;padding:.52rem .78rem;border:1px solid rgba(38,116,59,.22);box-shadow:0 4px 12px rgba(38,116,59,.08);font-size:.78rem;letter-spacing:.02em;transition:transform .2s ease,background .2s ease,color .2s ease,box-shadow .2s ease}
.language-toggle i{font-size:1rem}.language-toggle:hover,.language-toggle:focus-visible{transform:translateY(-1px);box-shadow:0 7px 18px rgba(38,116,59,.18)}
.quantity-control input#modal-quantity{width:52px;height:38px;border:0;background:transparent;color:var(--ink);font-weight:800;text-align:center;outline:none;appearance:textfield}
.quantity-control input#modal-quantity::-webkit-outer-spin-button,.quantity-control input#modal-quantity::-webkit-inner-spin-button{appearance:none;margin:0}
.admin-language-toggle{margin-inline-start:1rem}
/* Mobile-first overflow protection: nothing essential is clipped or lost on narrow screens. */
html,body{max-width:100%;overflow-x:hidden}.container,.row>*{min-width:0}.site-header .container{gap:.7rem}.brand{min-width:0}.brand-copy{min-width:0}.brand-name,.brand-tagline{overflow-wrap:anywhere}.language-toggle{flex:0 0 auto}.product-card,.product-card-body,.product-meta,.product-card-actions{min-width:0}.product-card-actions{max-width:100%;flex-wrap:wrap}.product-unit{overflow-wrap:anywhere}.modal-dialog{width:auto;max-width:100%;margin:.6rem}.modal-content{max-width:100%;max-height:calc(100vh - 1.2rem);overflow-y:auto}.modal-product-info{min-width:0}.modal-description{overflow-wrap:anywhere}.bottom-nav-inner{min-width:0}.bottom-nav-item{min-width:0;overflow-wrap:anywhere}.bottom-nav-item>span:last-child{white-space:nowrap}.cart-item-info,.cart-item-total{min-width:0}.cart-item-total{overflow-wrap:anywhere}.cart-item-controls{max-width:100%}
@media(max-width:767.98px){
  .site-header .container{min-height:70px;padding-left:14px;padding-right:14px}
  .brand-logo-wrap{width:44px;height:44px}.brand-name{font-size:1.05rem}.brand-tagline{font-size:.61rem}
  .page-shell{width:100%;padding-left:14px;padding-right:14px}
  .discovery-tools{grid-template-columns:1fr;gap:12px}.filter-row{width:100%;justify-content:stretch;align-items:center;overflow:visible}.category-tabs{min-width:0;flex:1 1 auto;display:flex;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.category-tabs::-webkit-scrollbar{display:none}.category-tab{flex:0 0 auto;white-space:nowrap}.sort-select{flex:0 0 auto}.sort-select select{max-width:110px}
  .product-grid{--bs-gutter-x:.65rem;--bs-gutter-y:.75rem}.product-card-image-button{min-height:150px}.product-card-image{min-height:150px}.product-card-body{min-height:145px}.product-card-actions{position:static;margin-top:.55rem;justify-content:space-between;align-items:center}.card-quantity-control{min-width:0;flex:1 1 auto;max-width:118px}.product-card-actions .icon-button{flex:0 0 30px}
  .panel-heading{gap:12px}.panel-heading>div:first-child{min-width:0}.panel-heading-mark{flex:0 0 auto}
  .modal-actions-row{flex-wrap:wrap;gap:10px}.modal-actions-row .quantity-control{flex:0 0 auto}.modal-actions-row .button{flex:1 1 130px;min-width:0}.modal-product-info{padding:20px 16px 18px}.checkout-auth-inner{padding:22px 16px}.form-field input,.form-field textarea{max-width:100%}
  .toast-region{max-width:calc(100vw - 24px)}
}
@media(max-width:420px){
  .language-toggle{min-width:66px;padding:.45rem .55rem;font-size:.72rem}.language-toggle i{font-size:.9rem}.brand-logo-wrap{width:40px;height:40px}.brand-name{font-size:.98rem}.brand-tagline{display:none}
  .hero-panel{padding:26px 16px}.hero-copy{max-width:100%}.hero-panel h1{font-size:2rem}.hero-subtitle{max-width:230px}.hero-pills{gap:.35rem}.hero-pills span{font-size:.66rem;padding:.38rem .5rem}.hero-art{right:-108px;opacity:.28}
  .section-heading-row{gap:8px}.section-heading-row h2{font-size:1.5rem}.result-count{white-space:nowrap}
  .product-card-image-button,.product-card-image{min-height:128px;height:128px}.product-card-body{padding:8px;min-height:145px}.product-name{font-size:.78rem;line-height:1.25}.product-price{font-size:.84rem}.product-unit{font-size:.65rem}.product-card-actions{gap:4px}.card-quantity-control{max-width:100px}.card-quantity-control button{width:24px;height:24px}.card-quantity-control span{font-size:11px}.product-card-actions .icon-button{width:27px;height:27px}
  .bottom-nav{--nav-height:70px}.bottom-nav-item{font-size:.6rem}.bottom-nav-item .nav-icon{font-size:1.05rem}.bottom-nav-item>span:last-child{white-space:normal;text-align:center;line-height:1.05}.whatsapp-button{left:10px}
  .cart-item{grid-template-columns:48px minmax(0,1fr);position:relative;padding:10px}.cart-item-image{width:48px;height:48px}.cart-item-total{grid-column:2;align-items:flex-start;flex-direction:row;justify-content:space-between;width:100%;padding-top:2px}.cart-item-total strong{font-size:.78rem}.cart-item-controls{margin-top:5px}
  .modal-image-wrap,.modal-image-wrap img{min-height:170px;height:170px}.modal-product-info h2{font-size:1.5rem}.modal-price-row{flex-wrap:wrap}.quantity-control input#modal-quantity{width:45px}.checkout-auth-content{border-radius:16px}
}
/* Stable language layout and polished centered feedback cards. */
html[dir="ltr"] .site-header,html[dir="ltr"] .bottom-nav,html[dir="ltr"] .modal-content{direction:ltr}.button-order{background:linear-gradient(135deg,#f3b546,#df8b24);color:#fff;border:0}.button-order:hover{background:linear-gradient(135deg,#df8b24,#c87418);color:#fff}.toast-region{position:fixed;inset:0;z-index:2100;pointer-events:none;display:grid;place-items:center;padding:20px}.toast-message{pointer-events:auto;min-width:min(330px,calc(100vw - 32px));max-width:min(460px,calc(100vw - 32px));padding:18px 22px;border:1px solid rgba(51,126,67,.18);border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 22px 70px rgba(26,71,37,.2);color:var(--ink);text-align:center}.toast-message i{display:block;color:var(--green);font-size:1.55rem;margin-bottom:7px}.toast-message span{display:block;font-weight:700;line-height:1.5}
/* Account order history cards. */
.account-orders-panel{margin-top:18px;padding:22px;border:1px solid var(--green-line);border-radius:20px;background:linear-gradient(145deg,#fff,#f7fbf4);box-shadow:0 12px 30px rgba(35,93,48,.07)}.account-orders-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.account-orders-heading h2{margin:0;font-size:1.35rem;color:var(--ink)}.account-orders-heading>i{font-size:1.55rem;color:var(--green)}.account-orders-list{display:grid;gap:10px}.account-order-card{padding:14px;border:1px solid #e0ecdc;border-radius:14px;background:#fff}.account-order-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.account-order-top strong{font-size:.95rem}.account-order-top b{margin-inline-start:auto;color:var(--green)}.order-status-pill{padding:4px 8px;border-radius:999px;background:#e8f5e5;color:var(--green-dark);font-size:.68rem;font-weight:800}.account-order-meta{margin-top:6px;color:var(--muted);font-size:.72rem}.account-order-items{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.account-order-items span{padding:5px 8px;border-radius:8px;background:#f3f8f0;color:var(--ink);font-size:.7rem}.account-orders-empty{text-align:center;padding:20px;color:var(--muted)}.account-orders-empty i{display:block;color:var(--green);font-size:1.8rem;margin-bottom:6px}.account-orders-empty p{margin:0}
@media(max-width:575.98px){.account-orders-panel{padding:16px}.account-order-top b{margin-inline-start:0;width:100%}}
/* Persistent order details and user cancellation controls. */
.account-order-cancel{margin-top:12px;border:1px solid #efcaca;border-radius:9px;background:#fff7f7;color:#b84343;padding:7px 11px;font-size:.72rem;font-weight:800}.account-order-cancel:hover{background:#b84343;color:#fff}.account-order-confirm{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;padding:10px;border-radius:10px;background:#fff7e8;border:1px solid #f0dfb4;color:#765a25;font-size:.72rem}.account-order-confirm span{margin-inline-end:auto}.account-order-confirm .button{width:auto;min-width:100px;padding:7px 10px;font-size:.7rem}.account-order-confirm .button-quiet{background:#b84343;color:#fff}.account-order-confirm .button-outline{border-color:#cbbd9b;color:#765a25;background:transparent}

/* Google sign-in */
.google-auth{margin-top:14px}
.google-auth-or{display:flex;align-items:center;gap:10px;color:#758477;font-size:12px;margin-bottom:12px}
.google-auth-or::before,.google-auth-or::after{content:"";flex:1;height:1px;background:#dce9da}
.google-btn-slot{display:flex;justify-content:center;min-height:44px}
.account-user{display:flex;align-items:center;gap:14px;padding:16px 18px;margin-bottom:14px;border-radius:16px;background:#eef7ec;border:1px solid #dce9da}
.account-user i{font-size:28px;color:#25743f}
.account-user strong{display:block;color:#173c25}
.account-user small{color:#758477;word-break:break-all}

/* ---------- Privacy policy + footer ---------- */
html[lang="ar"] [data-lang-en], html[lang="en"] [data-lang-ar] { display: none !important; }
.policy-card {
  max-width: 820px;
  margin: 22px auto 0;
  border: 1px solid var(--green-line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 5vw, 38px);
}
.policy-body { color: var(--ink); line-height: 1.75; overflow-wrap: anywhere; }
.policy-body h2 { font-family: "Nunito", "DM Sans", sans-serif; font-weight: 800; font-size: 1.12rem; color: var(--green-dark); margin: 1.6rem 0 .5rem; }
.policy-body p, .policy-body li { font-size: .96rem; }
.policy-body ul { padding-inline-start: 1.25rem; margin-bottom: .75rem; }
.policy-body li + li { margin-top: .35rem; }
.policy-body a { color: var(--green); font-weight: 700; }
.policy-body code { background: var(--green-soft); color: var(--green-deep); padding: .08rem .38rem; border-radius: 6px; font-size: .88em; }
.policy-updated { display: inline-block; background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: .82rem !important; padding: .25rem .75rem; border-radius: 999px; margin-bottom: .6rem; }
.policy-back { margin-top: 1.8rem; }
.privacy-consent { display: flex; gap: .45rem; align-items: flex-start; color: var(--muted); font-size: .82rem; line-height: 1.5; margin: .2rem 0 .9rem; }
.privacy-consent i { color: var(--green); margin-top: .12rem; }
.privacy-consent a { color: var(--green); font-weight: 700; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.25rem; padding: 6px 16px 18px; color: var(--muted); font-size: .85rem; }
.site-footer a { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Delivery form */
.form-field select{display:block;width:100%;border:1px solid var(--green-line);border-radius:9px;color:var(--ink);background:var(--white);padding:.72rem .8rem;font-size:.84rem;transition:border-color .2s ease,box-shadow .2s ease}
.form-field select:focus,.form-field textarea:focus{border-color:var(--green);box-shadow:0 0 0 4px rgba(38,116,59,.08);outline:0}
.form-field textarea{display:block;width:100%;border:1px solid var(--green-line);border-radius:9px;color:var(--ink);background:var(--white);padding:.72rem .8rem;font-size:.84rem;resize:vertical}
.delivery-row{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem}
.delivery-remember{display:flex;align-items:center;gap:.5rem;font-size:.78rem;color:var(--ink);margin:0 0 .8rem;cursor:pointer}
.delivery-remember input{accent-color:var(--green);width:1rem;height:1rem}
#delivery-modal .modal-content{max-height:92vh;overflow-y:auto}
