:root {
  --green-950: #002816;
  --green-900: #003d20;
  --green-850: #004a27;
  --green-800: #07552b;
  --green-700: #087a25;
  --green-600: #08a421;
  --green-300: #bee8b6;
  --leaf: #0fae2d;
  --blue-text: #344f91;
  --ink: #10151c;
  --muted: #50627b;
  --paper: #fffdf9;
  --cream: #fbf2e9;
  --card: rgba(255, 255, 255, .86);
  --line: rgba(10, 55, 33, .12);
  --shadow: 0 18px 50px rgba(23, 64, 38, .12);
  --shadow-strong: 0 26px 75px rgba(0, 54, 29, .22);
  --radius-card: 30px;
  --radius-large: 44px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }
* {
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  width: 0;
  height: 0;
}
html {
  min-height: 100%;
  background: #eff6ef;
  scrollbar-width: none;
}
html::-webkit-scrollbar { width: 0; height: 0; }
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at 8% 10%, rgba(185, 224, 175, .26), transparent 28%), #eff6ef;
  overflow-x: hidden;
  scrollbar-width: none;
}
body::-webkit-scrollbar { width: 0; height: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 4px solid rgba(0, 153, 25, .22); outline-offset: 3px; }

.mobile-shell {
  width: min(100%, 941px);
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow: clip;
  background: #fff;
  padding-bottom: calc(120px + var(--safe-bottom));
  box-shadow: 0 0 0 1px rgba(10, 77, 32, .06), 0 24px 90px rgba(3, 43, 23, .16);
}
.theme-light {
  background:
    radial-gradient(circle at -8% 10%, rgba(174, 209, 149, .25), transparent 16%),
    radial-gradient(circle at 106% 53%, rgba(183, 218, 163, .22), transparent 16%),
    linear-gradient(180deg, #fff 0%, #fbfdfb 52%, #fff 100%);
}
.theme-dark {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 33, 20, .98) 0, rgba(0, 63, 33, .92) 29%, rgba(0, 55, 28, .35) 48%, rgba(0, 35, 18, .96) 100%),
    url('../assets/images/bg_dark_greenhouse.png') center top / 100% auto no-repeat,
    #012714;
}

.light-leaf-page::before,
.light-leaf-page::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  opacity: .52;
  background:
    radial-gradient(ellipse at 20% 12%, rgba(141, 185, 109, .32) 0 6px, transparent 7px),
    radial-gradient(ellipse at 64% 20%, rgba(141, 185, 109, .22) 0 9px, transparent 10px),
    radial-gradient(ellipse at 34% 36%, rgba(174, 203, 149, .22) 0 8px, transparent 9px),
    radial-gradient(ellipse at 74% 50%, rgba(141, 185, 109, .22) 0 10px, transparent 11px),
    radial-gradient(ellipse at 30% 68%, rgba(174, 203, 149, .22) 0 9px, transparent 10px),
    radial-gradient(ellipse at 72% 86%, rgba(141, 185, 109, .20) 0 10px, transparent 11px);
  background-size: 72px 210px;
}
.light-leaf-page::before { left: -48px; }
.light-leaf-page::after { right: -48px; transform: scaleX(-1); }

.brand-header {
  position: relative;
  min-height: 198px;
  padding: 48px 56px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
  z-index: 4;
}
.brand-header-dark {
  min-height: 196px;
  padding-top: 58px;
  background: linear-gradient(180deg, rgba(0, 35, 20, .95), rgba(0, 55, 30, .74) 76%, transparent);
}
.brand-lockup {
  justify-self: center;
  transform: translateX(84px);
  text-align: center;
  color: var(--green-950);
  line-height: 1;
  user-select: none;
}
.brand-header-dark .brand-lockup { color: #fff; text-shadow: 0 4px 8px rgba(0,0,0,.55); }
.brand-wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  letter-spacing: .01em;
  font-size: clamp(29px, 5.9vw, 50px);
  white-space: nowrap;
}
.brand-slogan {
  margin-top: 12px;
  font-size: clamp(16px, 3vw, 28px);
  font-weight: 500;
  color: #00a71b;
  text-shadow: none;
}
.brand-header-dark .brand-slogan { color: #b9f000; }
.brand-rule {
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  gap: 16px;
  align-items: center;
  width: min(390px, 72vw);
  margin: 17px auto 0;
  color: var(--leaf);
}
.brand-rule span { height: 2px; background: linear-gradient(90deg, transparent, currentColor, transparent); opacity: .75; }
.brand-rule svg { width: 34px; height: 34px; stroke-width: 1.7; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  justify-self: end;
}
.header-button {
  position: relative;
  min-height: 76px;
  border: 3px solid var(--leaf);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  color: #0c321d;
  box-shadow: 0 9px 18px rgba(11, 71, 35, .12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 22px;
  font-size: 22px;
}
.brand-header-dark .header-button {
  background: rgba(5, 60, 32, .42);
  border-color: #ffd800;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,.32);
}
.icon-only { width: 82px; padding: 0; }
.header-button .icon { width: 34px; height: 34px; }
.profile-button .icon:first-child { width: 34px; height: 34px; }
.profile-button .icon:last-child { width: 18px; height: 18px; }
.floating-badge,
.cart-badge {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 39px;
  height: 39px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ffe100;
  color: #111;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,.12);
}
.floating-badge { right: -17px; top: -18px; }

.catalog-controls {
  position: relative;
  z-index: 3;
  padding: 10px 42px 0;
  display: grid;
  grid-template-columns: 72px 1fr 150px;
  gap: 26px;
  align-items: center;
}
.page-products .catalog-controls { margin-top: 24px; }
.catalog-controls-dark { padding-top: 10px; }
.image-timer,
.search-box,
.filter-button,
.chip,
.most-ordered-card,
.see-all-row button {
  border: 1px solid rgba(35, 72, 42, .10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 13px 30px rgba(20, 53, 34, .11);
  backdrop-filter: blur(10px);
}
.catalog-controls-dark .image-timer,
.catalog-controls-dark .search-box,
.catalog-controls-dark .filter-button,
.catalog-controls-dark .chip,
.catalog-controls-dark .most-ordered-card,
.catalog-controls-dark .see-all-row button {
  background: rgba(255,255,255,.93);
}
.image-timer {
  position: relative;
  height: 78px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #111;
  font-weight: 900;
}
.image-timer .icon { width: 37px; height: 37px; }
.image-timer small { font-size: 20px; margin-top: -12px; }
.search-box {
  height: 78px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 34px;
  color: #18233b;
}
.search-box .icon { width: 36px; height: 36px; }
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: clamp(17px, 3vw, 26px);
  color: #1d2636;
}
.search-box input::placeholder { color: #536585; opacity: 1; }
.filter-button {
  height: 78px;
  border-radius: 24px;
  color: #202024;
  font-size: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.filter-button .icon { width: 34px; height: 34px; }
.chips-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 6px 0 14px;
  scrollbar-width: none;
}
.chips-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-width: 130px;
  height: 67px;
  border-radius: 999px;
  color: #1f1f22;
  font-size: 21px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
}
.chip .icon { color: var(--leaf); width: 27px; height: 27px; }
.chip.active {
  background: linear-gradient(135deg, #006320, #00411f);
  color: #fff;
  box-shadow: 0 15px 28px rgba(0, 77, 27, .24);
}
.chip.active .icon { color: #dff7d5; }
.most-ordered-card {
  grid-column: 1 / -1;
  min-height: 126px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 74px 1fr auto 46px;
  align-items: center;
  gap: 22px;
  padding: 22px 32px;
  margin-top: 16px;
}
.badge-medal .icon { width: 58px; height: 58px; color: #0a2d18; }
.most-copy { display: grid; gap: 8px; }
.most-copy strong { font-size: clamp(22px, 4vw, 31px); color: #171719; }
.most-copy span { font-size: clamp(15px, 2.6vw, 22px); color: var(--blue-text); }
.sort-box { display: grid; gap: 7px; min-width: 225px; }
.sort-box span { color: var(--blue-text); font-size: 18px; }
.sort-box strong { color: #171719; font-size: clamp(21px, 3.6vw, 30px); }
.sort-arrow { border: 0; background: transparent; color: #111; padding: 8px; }
.sort-arrow .icon { width: 30px; height: 30px; }

.product-area { position: relative; z-index: 2; padding: 54px 45px 12px; }
.product-area-dark { padding-top: 38px; }
.see-all-row { display: flex; justify-content: flex-end; margin: 0 6px 18px; }
.see-all-row button {
  height: 63px;
  min-width: 168px;
  border-radius: 999px;
  color: #111;
  font-weight: 500;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}
.see-all-row .icon { width: 24px; height: 24px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.product-card {
  position: relative;
  min-height: 322px;
  border-radius: 26px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(22, 56, 35, .07);
  box-shadow: 0 14px 34px rgba(13, 47, 28, .10);
  overflow: hidden;
  padding: 74px 22px 18px 25px;
}
.product-card-dark {
  min-height: 470px;
  border-radius: 26px;
  background: rgba(255, 250, 240, .92);
  box-shadow: 0 18px 32px rgba(0,0,0,.28);
  padding-top: 214px;
}
.product-badge {
  position: absolute;
  top: 23px;
  left: 21px;
  z-index: 2;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: #0b8431;
  background: #ebf5e8;
  font-size: 14px;
  font-weight: 700;
}
.product-badge .icon { width: 19px; height: 19px; }
.favorite {
  position: absolute;
  z-index: 3;
  right: 20px;
  top: 20px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #0a0a0a;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.favorite .icon { width: 31px; height: 31px; stroke-width: 1.9; }
.product-photo {
  position: absolute;
  right: 16px;
  top: 64px;
  width: 50%;
  height: 145px;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}
.product-card-dark .product-photo {
  width: 74%;
  height: 210px;
  top: 30px;
  right: 12%;
}
.product-copy { position: relative; z-index: 2; max-width: 58%; }
.product-card-dark .product-copy { max-width: none; }
.product-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(18px, 3.4vw, 28px);
  line-height: 1.17;
  font-weight: 800;
  letter-spacing: 0;
  color: #111318;
}
.product-copy p { margin: 0 0 18px; font-size: 17px; color: #111; }
.price-row { display: flex; align-items: baseline; gap: 6px; color: #111; white-space: nowrap; }
.price-row strong { font-size: clamp(22px, 3.8vw, 31px); font-weight: 800; letter-spacing: 0; }
.price-row span { font-size: 16px; }
.unit-price { margin-top: 12px; color: red; font-size: clamp(16px, 2.8vw, 22px); }
.qty-stepper {
  position: absolute;
  left: 25px;
  bottom: 22px;
  min-width: 138px;
  height: 45px;
  border-radius: 999px;
  background: #f3f2ef;
  display: inline-flex;
  align-items: center;
  justify-content: space-around;
  color: #1d1d1d;
  font-size: 23px;
}
.qty-stepper button {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: inherit;
  width: 42px;
  height: 42px;
}
.qty-stepper .icon { width: 18px; height: 18px; }
.round-cart {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 67px;
  height: 67px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #0a7d25, #04501f);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 18px rgba(0, 84, 33, .26);
}
.round-cart .icon { width: 34px; height: 34px; }
.product-card-dark .round-cart { width: 82px; height: 82px; border-radius: 26px; }
.product-card-dark .qty-stepper { height: 58px; min-width: 156px; font-size: 28px; }
.product-card-dark .product-copy h3 { font-size: clamp(23px, 3.6vw, 31px); }
.product-card-dark .product-copy p { font-size: 20px; color: #09131a; }

.page-hero {
  position: relative;
  z-index: 2;
  padding: 44px 76px 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}
.page-hero h1 {
  margin: 0;
  color: var(--leaf);
  font-size: clamp(34px, 6vw, 58px);
  line-height: .95;
  letter-spacing: .01em;
  font-weight: 900;
}
.page-hero p {
  margin: 27px 0 0;
  font-size: clamp(19px, 3.4vw, 30px);
  line-height: 1.55;
  color: var(--blue-text);
}
.account-hero img { width: 380px; max-width: 42vw; filter: drop-shadow(0 22px 30px rgba(0,0,0,.12)); }
.order-hero img { width: 240px; max-width: 31vw; }
.order-hero { padding-top: 18px; padding-bottom: 48px; }
.section-card {
  position: relative;
  z-index: 2;
  margin: 0 61px 24px;
  border-radius: var(--radius-card);
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(22, 54, 34, .08);
  box-shadow: var(--shadow);
  padding: 28px 34px;
  backdrop-filter: blur(16px);
}
.section-title-row {
  display: flex;
  align-items: center;
  gap: 23px;
  min-height: 52px;
  color: var(--green-950);
}
.section-title-row > span:first-child .icon,
.section-title-row > span:first-child { width: 36px; height: 36px; color: var(--green-950); }
.section-title-row h2 {
  margin: 0;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: .01em;
}
.status-pill {
  margin-left: auto;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(14, 62, 28, .08);
  color: var(--blue-text);
  font-size: 15px;
}
.status-pill strong { color: var(--green-950); }
.status-pill i { width: 9px; height: 9px; background: #abd65c; border-radius: 999px; }
.status-pill .icon { width: 15px; height: 15px; }
.empty-panel {
  margin-top: 28px;
  min-height: 312px;
  border-radius: 18px;
  border: 1px solid rgba(6, 57, 29, .06);
  background: rgba(255,255,255,.56);
  display: grid;
  grid-template-columns: 310px 1fr;
  align-items: center;
  gap: 10px;
  padding: 28px;
}
.empty-panel img { width: 255px; justify-self: center; opacity: .92; }
.empty-copy h3 { margin: 0 0 14px; font-size: clamp(26px, 4vw, 36px); letter-spacing: 0; }
.empty-copy p { margin: 0 0 25px; font-size: clamp(18px, 3vw, 26px); line-height: 1.35; color: var(--blue-text); }
.primary-button,
.secondary-button,
.whatsapp-button,
.auth-primary,
.auth-secondary,
.logout-button,
.privacy-button {
  border: 0;
  min-height: 72px;
  border-radius: 16px;
  background: linear-gradient(145deg, #098a27, #005321);
  color: #fff;
  box-shadow: 0 12px 22px rgba(0, 84, 33, .24);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 26px;
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 500;
}
.primary-button .icon,
.secondary-button .icon,
.whatsapp-button .icon { width: 34px; height: 34px; }
.primary-button { width: 100%; justify-content: space-between; margin-bottom: 14px; }
.primary-button .icon:first-child { background:#fff; color:var(--green-800); border-radius:999px; padding: 5px; }
.secondary-button {
  width: 100%;
  background: rgba(255,255,255,.66);
  color: var(--green-900);
  border: 1px solid rgba(4, 63, 34, .14);
  box-shadow: none;
  justify-content: space-between;
}
.summary-card .section-title-row { margin-bottom: 18px; }
.summary-lines {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 10px;
  color: var(--blue-text);
  font-size: clamp(17px, 3vw, 24px);
}
.summary-lines strong { color: var(--green-950); font-weight: 800; }
.summary-lines .discount { color: red; }
.summary-lines .free { color: var(--leaf); }
.total-row {
  border-top: 1px solid rgba(31, 47, 31, .10);
  margin-top: 28px;
  padding-top: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--green-950);
}
.total-row span { font-size: clamp(26px, 4.2vw, 34px); font-weight: 900; }
.total-row strong { font-size: clamp(37px, 7vw, 58px); letter-spacing: 0; }
.whatsapp-button { width: 100%; margin-top: 20px; justify-content: space-between; }
.secure-note { color: var(--blue-text); margin: 14px 0 0; text-align: center; font-size: clamp(15px, 2.7vw, 20px); }
.secure-note .icon { width: 22px; height: 22px; vertical-align: -5px; }
.address-card { display: grid; grid-template-columns: 108px 1fr 34px; align-items: center; gap: 18px; }
.address-card h2 { margin:0 0 8px; color: var(--green-950); font-size: clamp(20px, 3.4vw, 28px); }
.address-card p { margin:0; color: var(--blue-text); font-size: clamp(16px, 2.8vw, 23px); line-height: 1.35; }
.address-card button { border:0; background:transparent; color: var(--green-950); }
.round-pin,
.home-circle {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--green-800);
  box-shadow: 0 13px 24px rgba(6, 55, 27, .10);
}
.round-pin .icon,
.home-circle .icon { width: 55px; height: 55px; }
.mini-badges { display:flex; gap:16px; flex-wrap:wrap; margin-top: 14px; }
.mini-badges span { min-height: 35px; border-radius:999px; background:#e9f7e5; color:#0c9a24; padding: 0 18px; display:inline-flex; align-items:center; gap:8px; font-weight:700; }
.mini-badges span + span { background:#f7f9ff; color:#4963b7; font-weight:500; }
.mini-badges .icon { width: 20px; height: 20px; }

.order-items { margin-top: 20px; border:1px solid rgba(26,57,36,.08); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.55); }
.order-item { min-height: 176px; display:grid; grid-template-columns: 155px 1fr 150px 150px; gap: 20px; align-items:center; padding: 18px 16px; border-bottom:1px solid rgba(25,57,37,.08); }
.order-item:last-child { border-bottom:0; }
.order-item img { width: 130px; height: 130px; object-fit: contain; }
.order-item-main h3 { margin:0 0 8px; font-size: clamp(18px, 3vw, 26px); letter-spacing:0; }
.order-item-main p { margin:0 0 14px; color: var(--blue-text); font-size: clamp(15px, 2.6vw, 20px); }
.order-item-main strong { color:red; font-size: clamp(15px, 2.6vw, 20px); font-weight:500; }
.order-stepper { position: static; justify-self: center; }
.order-subtotal { text-align:right; color: var(--blue-text); display:grid; gap: 6px; justify-items:end; }
.order-subtotal strong { color: var(--green-950); font-size: clamp(18px, 3vw, 26px); }
.trash-button { border:0; background:transparent; color:#445ec0; }
.trash-button .icon { width: 31px; height:31px; }

.profile-panel { margin-top: 26px; border: 1px solid rgba(25, 53, 32, .10); border-radius: 18px; overflow:hidden; background: rgba(255,255,255,.72); }
.profile-top { display:grid; grid-template-columns: 136px 1fr auto; gap: 28px; align-items:center; padding: 22px 26px; border-bottom:1px solid rgba(25, 53, 32, .10); }
.avatar { width: 115px; height: 115px; border-radius:999px; }
.profile-top h3 { margin:0 0 9px; font-size: clamp(20px, 3.6vw, 29px); }
.profile-top p { margin:5px 0; color: var(--blue-text); font-size: clamp(16px, 2.9vw, 22px); }
.profile-top strong { color: var(--leaf); }
.edit-profile { height: 63px; border-radius:999px; border:1px solid rgba(10, 65, 32, .12); background:#fff; color:var(--green-800); padding:0 24px; display:flex; align-items:center; gap:12px; font-weight:700; font-size:18px; }
.edit-profile .icon { width: 27px; height:27px; }
.profile-info-grid { display:grid; grid-template-columns: 1fr 1fr; }
.profile-info-grid div { min-height: 104px; display:flex; align-items:center; gap:24px; padding: 20px 30px; border-right:1px solid rgba(25,53,32,.09); border-bottom:1px solid rgba(25,53,32,.09); }
.profile-info-grid div:nth-child(2) { border-right:0; }
.profile-info-grid div:last-child { grid-column:1 / -1; border-bottom:0; }
.profile-info-grid .icon { width:36px; height:36px; color: var(--green-900); }
.profile-info-grid span { font-size: clamp(15px, 2.8vw, 21px); line-height:1.35; }
.profile-info-grid strong { font-weight:500; color:#111; }
.saved-address-row { margin-top: 18px; display:grid; grid-template-columns: 96px 1fr 34px; gap: 22px; align-items:center; }
.saved-address-row strong { color: var(--leaf); font-size: clamp(15px, 2.6vw, 20px); }
.saved-address-row p { margin:7px 0 0; line-height:1.35; font-size: clamp(16px, 2.8vw, 21px); }
.saved-address-row button { border:0; background:transparent; color:var(--green-950); }
.manage-addresses { width:100%; min-height:58px; margin-top: 20px; border-radius:14px; border:1px solid rgba(17,53,31,.08); background:rgba(255,255,255,.68); color:var(--green-900); display:flex; align-items:center; justify-content:space-between; padding:0 24px; font-size: clamp(16px, 3vw, 22px); }
.manage-addresses .icon { width:31px; height:31px; }
.quick-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin-top: 18px; }
.quick-grid button { min-height: 70px; border-radius:15px; border:1px solid rgba(19,53,33,.08); background:rgba(255,255,255,.68); color:#111; display:grid; grid-template-columns: 38px 1fr 24px; align-items:center; gap:15px; padding:0 25px; font-size: clamp(15px, 2.8vw, 21px); text-align:left; }
.quick-grid .icon { width:31px; height:31px; color: var(--green-900); }
.pref-row { min-height:58px; display:grid; grid-template-columns: 34px 1fr auto 72px; gap:18px; align-items:center; border-top:1px solid rgba(21,52,31,.08); color:#111; font-size: clamp(16px, 2.8vw, 21px); }
.pref-row:first-of-type { margin-top: 18px; }
.pref-row .icon { width:28px; height:28px; color: var(--green-800); }
.pref-row strong { color:var(--leaf); font-size: clamp(15px, 2.7vw, 20px); }
.switch { width:60px; height:36px; border-radius:999px; border:0; background:var(--leaf); padding:3px; display:flex; justify-content:flex-end; align-items:center; }
.switch i { width:30px; height:30px; border-radius:999px; background:#fff; display:block; }
.logout-button,
.privacy-button { margin: 0 84px 14px; width: calc(100% - 168px); }
.logout-button { min-height: 64px; font-weight:700; }
.privacy-button { min-height: 58px; background:#fff; color:var(--green-950); border:2px solid var(--leaf); box-shadow:none; font-weight:700; }
.logout-button .icon,
.privacy-button .icon { width:32px; height:32px; }

.auth-page { min-height: 100dvh; position:relative; display:grid; align-items:end; justify-items:center; padding: 0 0 56px; }
.login-page {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.07)), url('../assets/images/bg_login_farm_full.png') center / cover no-repeat;
}
.register-page {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0 35%, rgba(251,240,229,.93) 35% 100%), url('../assets/images/bg_register_hand_clover.png') center top / 100% auto no-repeat, #f8efe7;
  padding-bottom: 0;
}
.auth-card { background: #fffaf5; border: 1px solid rgba(82, 54, 25, .12); box-shadow: 0 22px 55px rgba(0,0,0,.20); }
.login-card { width:min(76%, 705px); border-radius: 33px; padding: 54px 43px 38px; margin-bottom: 34px; }
.auth-title-row { display:grid; grid-template-columns: 115px 1fr; align-items:center; gap: 20px; margin-bottom: 47px; }
.leaf-seal { width:105px; height:105px; border-radius:999px; display:grid; place-items:center; background:#fff; color:var(--green-800); box-shadow: 0 11px 22px rgba(0,0,0,.12); }
.leaf-seal .icon { width:54px; height:54px; fill: var(--green-800); stroke: var(--green-800); }
.auth-title-row h1 { margin:0 0 9px; color:#145d2f; font-size: clamp(27px, 4.6vw, 39px); line-height:1; }
.auth-title-row p { margin:0; color:#2d3e52; font-size: clamp(15px, 2.8vw, 22px); }
.auth-input { height:94px; border:1px solid rgba(72, 58, 38, .16); border-radius:17px; display:grid; grid-template-columns: 1fr 1px 70px; align-items:center; gap: 22px; padding-left: 34px; margin-bottom: 28px; color:var(--green-950); font-family: Georgia, "Times New Roman", serif; font-size: clamp(23px, 4vw, 34px); background: rgba(255,255,255,.38); }
.auth-input i { height:54px; background:rgba(92,74,52,.16); display:block; }
.auth-input .icon { width:42px; height:42px; color:var(--green-900); }
.remember-row { display:flex; align-items:center; justify-content:space-between; color:#2f3f52; font-size: clamp(15px, 2.8vw, 21px); margin: 5px 0 30px; }
.remember-row label { display:flex; align-items:center; gap:16px; }
.remember-row input { display:none; }
.remember-row label span { width:34px; height:34px; border-radius:5px; background:#236e3a; box-shadow: 0 5px 8px rgba(0,0,0,.16); position:relative; }
.remember-row label span::after { content:"✓"; color:#fff; position:absolute; inset:0; display:grid; place-items:center; font-weight:900; }
.remember-row button { border:0; background:transparent; color:var(--green-900); }
.auth-primary,
.auth-secondary { width:100%; min-height:72px; border-radius: 14px; margin-bottom: 24px; }
.auth-primary .icon { width:31px; height:31px; fill:#fff; }
.auth-secondary { background: rgba(255,255,255,.5); color:var(--green-900); border:1.7px solid var(--green-900); box-shadow:none; }
.auth-secondary .icon { width:31px; height:31px; }
.contact-link { margin: 4px auto 0; display:flex; align-items:center; gap:14px; border:0; background:transparent; color:var(--green-900); font-size: clamp(16px, 2.9vw, 22px); }
.contact-link .icon { width:24px; height:24px; }
.register-card { width:min(91%, 845px); min-height: 1050px; border-radius: 48px 48px 0 0; padding: 0 96px 55px; justify-self:center; align-self:end; }
.stepper { height: 82px; width: min(620px, 100%); margin: -34px auto 84px; display:flex; align-items:center; justify-content:center; filter: drop-shadow(0 12px 16px rgba(0,0,0,.12)); }
.stepper span { height:74px; min-width: 300px; border-radius:999px; background:rgba(255,255,255,.72); border:1px solid rgba(93,75,52,.12); display:flex; align-items:center; justify-content:center; gap:14px; color:var(--green-950); font-family: Georgia, "Times New Roman", serif; font-size: clamp(23px, 4vw, 34px); }
.stepper span + span { margin-left:-34px; padding-left:54px; color:#123533; }
.stepper span.active { z-index:1; background:linear-gradient(145deg,#006439,#003f27); color:#fff; box-shadow: inset 0 -8px 20px rgba(0,0,0,.18); }
.stepper b { width:48px; height:48px; border-radius:999px; background:#fff; color:var(--green-950); display:grid; place-items:center; font-family:Georgia,"Times New Roman",serif; }
.stepper span:not(.active) b { background:#fff; border:2px solid var(--green-950); }
.stepper .icon { width:42px; height:42px; opacity:.35; }
.form-intro { text-align:center; margin-bottom: 78px; color:#172839; }
.form-intro p { margin:20px 0 0; font-size: clamp(24px, 4.2vw, 34px); line-height:1.25; }
.mini-rule { width:260px; margin:0 auto; display:grid; grid-template-columns:1fr 34px 1fr; align-items:center; gap:14px; color:#b99721; }
.mini-rule span { height:1px; background:currentColor; }
.mini-rule .icon { width:34px; height:34px; }
.register-card .auth-input { height:98px; margin-bottom: 18px; background:rgba(255,255,255,.38); }
.register-card .continue { width:85%; margin:58px auto 0; border-radius:999px; justify-content:space-between; padding:0 34px 0 45%; font-family:Georgia,"Times New Roman",serif; font-size: clamp(29px, 4.8vw, 42px); }
.register-card .continue .icon { width:30px; height:30px; }

.bottom-nav {
  position: fixed;
  z-index: 20;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 941px);
  min-height: calc(101px + var(--safe-bottom));
  padding: 12px max(14px, var(--safe-left)) calc(12px + var(--safe-bottom)) max(14px, var(--safe-right));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  background: rgba(255,255,255,.93);
  border-radius: 25px 25px 0 0;
  box-shadow: 0 -14px 38px rgba(15, 46, 28, .10);
  border: 1px solid rgba(20, 60, 34, .08);
  backdrop-filter: blur(18px);
}
.bottom-nav-dark {
  background: rgba(0, 45, 27, .92);
  border-color: rgba(255, 255, 255, .10);
  box-shadow: 0 -16px 34px rgba(0,0,0,.45);
}
.bottom-item {
  border: 0;
  background: transparent;
  color: #4a5f91;
  border-radius: 22px;
  min-height: 78px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  font-size: 17px;
}
.bottom-nav-dark .bottom-item { color: #e5e8ed; }
.bottom-item.is-active {
  background: linear-gradient(135deg, rgba(231, 244, 223, .96), rgba(238, 247, 228, .78));
  color: var(--green-950);
}
.bottom-nav-dark .bottom-item.is-active {
  background: rgba(0, 54, 25, .75);
  color: #ffe100;
  outline: 2px solid #ffe100;
  outline-offset: -2px;
}
.bottom-icon { position:relative; display:grid; place-items:center; }
.bottom-icon .icon { width:32px; height:32px; }
.cart-badge { right:-24px; top:-16px; min-width:31px; height:31px; font-size:17px; }

.icon { display:inline-block; vertical-align:middle; flex:0 0 auto; }

.visual-lock-shell {
  width: min(100%, 941px);
  height: 100svh;
  min-height: 100svh;
  margin: 0 auto;
  padding-bottom: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}
.visual-target {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #fff;
}
.visual-target-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
}
.visual-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.visual-hotspot {
  position: absolute;
  border: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  pointer-events: auto;
}
.visual-hotspot:focus-visible {
  outline: 3px solid rgba(255, 225, 0, .78);
  outline-offset: -3px;
  border-radius: 16px;
}
.visual-bottom-hotspots {
  top: auto;
  bottom: 0;
  height: clamp(74px, 7.25svh, 122px);
}
.visual-bottom-hotspot {
  top: 0;
  bottom: 0;
  left: calc(var(--i) * 20%);
  width: 20%;
  height: 100%;
}
.visual-login-submit {
  left: 17%;
  right: 17%;
  bottom: 16.1%;
  height: 6.6%;
}
.visual-login-register {
  left: 17%;
  right: 17%;
  bottom: 7.55%;
  height: 6.4%;
}
.visual-login-contact {
  left: 34%;
  right: 34%;
  bottom: 2.35%;
  height: 4.8%;
}
.visual-register-continue {
  left: 22%;
  right: 22%;
  bottom: 6%;
  height: 6.8%;
}

@media (min-width: 721px) {
  .visual-lock-shell,
  .visual-target {
    height: 100vh;
    min-height: 100vh;
  }
  .mobile-shell {
    scrollbar-width: none;
  }
  .mobile-shell::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  .mobile-shell.page-login,
  .mobile-shell.page-register {
    padding-bottom: 0;
  }
  .page-hero h1 {
    white-space: nowrap;
  }
  .order-hero {
    grid-template-columns: 1fr 270px;
    padding: 26px 76px 34px;
  }
  .order-hero h1 {
    font-size: 50px;
  }
  .order-hero p {
    margin-top: 20px;
    font-size: 26px;
  }
  .order-hero img {
    width: 260px;
    max-width: none;
  }
  .account-hero {
    grid-template-columns: 430px 1fr;
    padding: 14px 68px 24px;
  }
  .account-hero h1 {
    font-size: 50px;
  }
  .account-hero p {
    margin-top: 22px;
    font-size: 26px;
    line-height: 1.45;
  }
  .account-hero img {
    width: 430px;
    max-width: none;
    margin-top: -58px;
    justify-self: end;
  }
  .empty-panel {
    min-height: 258px;
    grid-template-columns: 292px 1fr;
    padding: 18px;
  }
  .empty-panel img {
    width: 238px;
  }
  .empty-copy h3 {
    font-size: 31px;
  }
  .empty-copy p {
    margin-bottom: 20px;
    font-size: 23px;
  }
  .empty-copy .primary-button,
  .empty-copy .secondary-button {
    min-height: 64px;
    font-size: 25px;
    white-space: nowrap;
  }
  .whatsapp-button {
    white-space: nowrap;
  }
  .page-account .section-card {
    margin-bottom: 14px;
    padding: 22px 28px;
  }
  .page-account .profile-panel {
    margin-top: 16px;
  }
  .page-account .profile-top {
    grid-template-columns: 104px 1fr auto;
    gap: 18px;
    padding: 14px 20px;
  }
  .page-account .avatar {
    width: 86px;
    height: 86px;
  }
  .page-account .profile-top h3 {
    margin-bottom: 5px;
    font-size: 25px;
  }
  .page-account .profile-top p {
    margin: 3px 0;
    font-size: 19px;
  }
  .page-account .edit-profile {
    height: 54px;
    padding: 0 20px;
    font-size: 16px;
  }
  .page-account .profile-info-grid div {
    min-height: 74px;
    gap: 18px;
    padding: 12px 24px;
  }
  .page-account .saved-address-row {
    grid-template-columns: 76px 1fr 30px;
    gap: 18px;
    margin-top: 10px;
  }
  .page-account .home-circle {
    width: 74px;
    height: 74px;
  }
  .page-account .home-circle .icon {
    width: 43px;
    height: 43px;
  }
  .page-account .manage-addresses {
    min-height: 50px;
    margin-top: 12px;
  }
  .page-account .quick-grid {
    gap: 10px 16px;
    margin-top: 12px;
  }
  .page-account .quick-grid button {
    min-height: 54px;
  }
  .page-account .pref-row {
    min-height: 44px;
  }
  .page-account .logout-button {
    min-height: 56px;
  }
  .page-account .privacy-button {
    min-height: 52px;
  }
  .auth-card,
  .login-card,
  .register-card {
    background: #fffaf5;
  }
  .auth-input {
    background: #fffdf9;
  }
  .auth-secondary {
    background: #fffdf9;
  }
  .register-page {
    background:
      linear-gradient(180deg, rgba(255,255,255,0) 0 37%, rgba(251,240,229,.96) 37% 100%),
      url('../assets/images/bg_register_hand_clover.png') center top / 100% auto no-repeat,
      #f8efe7;
  }
}

@media (max-width: 720px) {
  body { background: #fff; }
  .mobile-shell {
    width: 100%;
    max-width: 100%;
    min-height: 100svh;
    box-shadow: none;
    padding-bottom: calc(82px + var(--safe-bottom));
    overflow-x: hidden;
  }
  .brand-header { padding: 28px 12px 10px; min-height: 142px; grid-template-columns: 1fr; }
  .brand-header-dark { min-height: 148px; padding-top: 33px; }
  .brand-lockup { transform: none; justify-self: start; max-width: 47vw; overflow: visible; }
  .brand-wordmark { font-size: clamp(14px, 4.4vw, 18px); }
  .brand-slogan { margin-top: 7px; font-size: clamp(9px, 2.9vw, 12px); }
  .brand-rule { width: min(168px, 43vw); grid-template-columns: 1fr 22px 1fr; gap: 8px; margin-top: 9px; }
  .brand-rule svg { width: 24px; height: 24px; }
  .header-actions { position: absolute; top: 27px; right: 8px; gap: 6px; }
  .header-button { min-height: 43px; border-width:2px; padding:0 7px; font-size: 14px; border-radius:12px; gap: 7px; }
  .icon-only { width: 43px; }
  .profile-button { min-width: 86px; }
  .header-button .icon,
  .profile-button .icon:first-child { width:22px; height:22px; }
  .profile-button .icon:last-child { width:13px; height:13px; }
  .floating-badge { min-width:28px; height:28px; font-size:15px; right:-10px; top:-14px; }
  .catalog-controls { padding: 8px 14px 0; grid-template-columns: 48px minmax(0, 1fr) 88px; gap: 8px; }
  .image-timer, .search-box, .filter-button { height: 56px; border-radius: 17px; }
  .image-timer .icon { width:27px; height:27px; }
  .image-timer small { font-size:14px; }
  .search-box { padding: 0 12px; gap: 8px; border-radius:999px; }
  .search-box .icon { width:25px; height:25px; }
  .search-box input { font-size: 14px; }
  .filter-button { font-size:15px; gap:7px; }
  .filter-button .icon { width:25px; height:25px; }
  .chips-row { gap: 12px; padding-bottom: 8px; }
  .chip { min-width: 95px; height: 48px; font-size:15px; padding:0 13px; gap:7px; }
  .most-ordered-card { grid-template-columns: 45px 1fr auto 28px; min-height:84px; gap:10px; padding:13px 17px; border-radius:21px; margin-top:8px; }
  .badge-medal .icon { width:42px; height:42px; }
  .most-copy strong { font-size:20px; }
  .most-copy span, .sort-box span { font-size:13px; }
  .sort-box { min-width: 112px; }
  .sort-box strong { font-size:18px; }
  .product-area { padding: 22px 14px 10px; }
  .product-grid { gap: 10px; }
  .product-card { min-height: 292px; padding:150px 12px 12px 14px; border-radius:18px; }
  .product-card-dark { min-height: 342px; padding-top:172px; }
  .product-badge { top:13px; left:13px; font-size:11px; height:29px; padding:0 9px; }
  .favorite { width:41px; height:41px; right:11px; top:12px; }
  .favorite .icon { width:23px; height:23px; }
  .product-photo {
    top: 47px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    height: 94px;
  }
  .product-card-dark .product-photo {
    top: 42px;
    left: 18px;
    right: 18px;
    width: calc(100% - 36px);
    height: 120px;
  }
  .product-copy,
  .product-card-dark .product-copy { max-width: none; }
  .product-copy h3 { font-size:16px; }
  .product-card-dark .product-copy h3 { font-size:18px; }
  .product-copy p, .product-card-dark .product-copy p { font-size:13px; margin-bottom:10px; }
  .price-row strong { font-size:17px; }
  .price-row span { font-size:12px; }
  .unit-price { font-size:13px; margin-top:7px; }
  .qty-stepper { left:12px; bottom:13px; min-width:86px; height:33px; font-size:16px; }
  .qty-stepper button { width:28px; height:28px; }
  .round-cart { width:48px; height:48px; right:13px; bottom:13px; }
  .round-cart .icon { width:25px; height:25px; }
  .see-all-row button { min-width: 120px; height:47px; font-size:15px; }
  .page-hero { padding: 20px 22px 24px; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .page-hero h1 { font-size: clamp(25px, 8.2vw, 34px); line-height: 1.03; }
  .page-hero p { margin-top: 13px; font-size: clamp(15px, 4.5vw, 19px); line-height: 1.35; }
  .order-hero img { width: 116px; max-width: 31vw; }
  .account-hero img { width: 146px; max-width: 39vw; }
  .section-card { margin: 0 14px 14px; padding: 17px 15px; border-radius:20px; }
  .section-title-row { gap:14px; }
  .section-title-row h2 { font-size: clamp(18px, 5.4vw, 23px); }
  .status-pill { height:34px; gap:7px; padding:0 10px; font-size:12px; }
  .empty-panel {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 190px;
    gap: 10px;
    padding: 13px;
    overflow: hidden;
  }
  .empty-panel img { width:104px; }
  .empty-copy { min-width: 0; }
  .empty-copy h3 { margin-bottom: 8px; font-size: clamp(18px, 5.2vw, 23px); line-height: 1.15; }
  .empty-copy p { margin-bottom: 12px; font-size: clamp(14px, 4.2vw, 17px); line-height: 1.28; }
  .primary-button, .secondary-button, .whatsapp-button, .auth-primary, .auth-secondary { min-height:48px; font-size:16px; }
  .empty-copy .primary-button,
  .empty-copy .secondary-button {
    min-height: 42px;
    gap: 8px;
    padding: 0 12px;
    font-size: clamp(14px, 4.3vw, 17px);
  }
  .empty-copy .primary-button .icon,
  .empty-copy .secondary-button .icon { width: 24px; height: 24px; }
  .address-card { grid-template-columns: 64px 1fr 22px; gap: 13px; }
  .round-pin, .home-circle { width:62px; height:62px; }
  .round-pin .icon, .home-circle .icon { width:36px; height:36px; }
  .order-item { grid-template-columns: 82px 1fr 82px; grid-template-areas: 'img main subt' 'img step subt'; min-height:126px; gap:10px; padding: 13px 10px; }
  .order-item img { grid-area: img; width:78px; height:82px; }
  .order-item-main { grid-area: main; }
  .order-stepper { grid-area: step; justify-self:start; }
  .order-subtotal { grid-area: subt; }
  .profile-top { grid-template-columns: 74px 1fr; gap:15px; }
  .avatar { width:72px; height:72px; }
  .edit-profile { grid-column:1/-1; justify-content:center; }
  .profile-info-grid, .quick-grid { grid-template-columns:1fr; }
  .profile-info-grid div:nth-child(2) { border-right: 1px solid rgba(25,53,32,.09); }
  .saved-address-row { grid-template-columns:64px 1fr 22px; }
  .logout-button, .privacy-button { margin-left: 22px; margin-right: 22px; width: calc(100% - 44px); }
  .login-card { width:min(86%, 705px); padding:34px 22px 28px; }
  .login-page {
    background:
      linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.12)),
      url('../assets/images/bg_login_farm_mobile_crop.png') center / cover no-repeat;
  }
  .auth-title-row { grid-template-columns:72px 1fr; gap:14px; margin-bottom:29px; }
  .leaf-seal { width:68px; height:68px; }
  .leaf-seal .icon { width:36px; height:36px; }
  .auth-input { height:72px; margin-bottom:18px; padding-left:22px; font-size:20px; grid-template-columns:1fr 1px 50px; }
  .auth-input .icon { width:31px; height:31px; }
  .register-card { width:100%; min-height: 825px; padding: 0 38px 42px; }
  .stepper { margin-bottom:48px; }
  .stepper span { min-width: 180px; height:58px; font-size:20px; }
  .stepper b { width:37px; height:37px; }
  .form-intro { margin-bottom:40px; }
  .register-card .continue { width:88%; padding-left: 34%; margin-top:34px; }
  .bottom-nav { min-height: calc(82px + var(--safe-bottom)); padding-top: 8px; }
  .bottom-item { min-height:64px; font-size:12px; }
  .bottom-icon .icon { width:26px; height:26px; }
}

@media (max-width: 390px) {
  .product-grid { gap: 8px; }
  .product-card { min-height: 238px; }
  .product-copy h3 { font-size:14px; }
  .catalog-controls { grid-template-columns: 48px 1fr 86px; }
  .filter-button span { display:none; }
  .most-ordered-card { grid-template-columns: 38px 1fr 28px; }
  .sort-box { display:none; }
}

/* Refinement pass: literal DOM mode is the default. Reference screenshots are no longer used as a full-page underlay. */
.mobile-shell {
  overflow-x: hidden;
  overflow-y: visible;
}
.brand-lockup,
.badge-medal,
.sort-box,
.product-badge,
.profile-info-grid button,
.status-pill button,
.round-pin,
.home-circle {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
}
.brand-lockup {
  display: block;
  cursor: pointer;
}
.brand-wordmark,
.brand-slogan,
.brand-rule {
  display: block;
}
.badge-medal {
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sort-box {
  text-align: left;
  cursor: pointer;
}
.product-badge {
  border: 0;
  cursor: pointer;
}
.status-pill button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue-text);
  cursor: pointer;
}
.profile-info-grid button {
  text-align: left;
  border-radius: 0;
}
.profile-info-grid div,
.profile-info-grid button {
  min-height: 104px;
  display:flex;
  align-items:center;
  gap:24px;
  padding: 20px 30px;
  border-right:1px solid rgba(25,53,32,.09);
  border-bottom:1px solid rgba(25,53,32,.09);
  background: transparent;
}
.profile-info-grid div:nth-child(2),
.profile-info-grid button:nth-child(2) { border-right:0; }
.profile-info-grid div:last-child,
.profile-info-grid button:last-child { grid-column:1 / -1; border-bottom:0; }
.profile-info-grid button .icon { width:36px; height:36px; color: var(--green-900); }
.profile-info-grid button span { font-size: clamp(15px, 2.8vw, 21px); line-height:1.35; }
.profile-info-grid button strong { font-weight:500; color:#111; }
.auth-input input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--green-950);
  font: inherit;
  font-family: Georgia, "Times New Roman", serif;
}
.auth-input input::placeholder {
  color: var(--green-950);
  opacity: 1;
}
.sort-menu {
  position: absolute;
  right: 68px;
  top: calc(100% - 12px);
  z-index: 7;
  min-width: 230px;
  border-radius: 18px;
  padding: 8px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(16, 54, 31, .12);
  box-shadow: 0 18px 38px rgba(9, 44, 24, .16);
}
.sort-menu button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  padding: 0 14px;
  color: #142019;
}
.sort-menu button:hover { background: #eef7ed; }
.favorite.is-favorite {
  color: #097820;
}
.favorite.is-favorite .icon {
  fill: rgba(9, 120, 32, .14);
}
.switch.off {
  justify-content: flex-start;
  background: #aeb6ad;
}
.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(116px + var(--safe-bottom));
  z-index: 60;
  transform: translate(-50%, 12px);
  min-width: min(78vw, 520px);
  max-width: min(88vw, 680px);
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(0, 54, 26, .94);
  color: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  font-weight: 700;
}
.app-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.visual-lock-shell {
  height: auto;
  min-height: 100svh;
  padding-bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.visual-target {
  height: auto;
  min-height: 100svh;
  overflow: visible;
}
.visual-target-image {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

@media (min-width: 721px) {
  .visual-lock-shell,
  .visual-target {
    height: auto;
    min-height: 100vh;
  }
}

@media (max-width: 720px) {
  .profile-info-grid div,
  .profile-info-grid button {
    min-height: 82px;
    gap: 18px;
    padding: 16px 20px;
  }
  .profile-info-grid button:nth-child(2) { border-right: 1px solid rgba(25,53,32,.09); }
  .app-toast {
    bottom: calc(92px + var(--safe-bottom));
    min-width: min(86vw, 420px);
    font-size: 13px;
  }
  .sort-menu {
    right: 18px;
    min-width: 190px;
  }
}

/* Pixel-perfect hard gate — default visual layer uses preserved 941x1672 target with transparent functional DOM hotspots. Use ?dom=1 for the editable literal-DOM reconstruction. */
.pixel-semantic-ledger {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.visual-lock-shell[data-pixel-perfect="true"] {
  --pixel-fit-width: min(100vw, calc(100svh * 941 / 1672), 941px);
  width: var(--pixel-fit-width);
  height: calc(var(--pixel-fit-width) * 1672 / 941);
  min-height: calc(var(--pixel-fit-width) * 1672 / 941);
  max-width: 941px;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.pixel-perfect-target {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: visible;
  background: transparent;
}
.pixel-perfect-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  object-position: top center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.pixel-hotspots {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}
.pixel-hotspot,
.pixel-input {
  position: absolute;
  z-index: 9;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: rgba(255,255,255,0);
  box-shadow: none;
  color: transparent;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
}
.pixel-hotspot span {
  color: transparent;
  opacity: 0;
  pointer-events: none;
}
.pixel-input {
  color: rgba(0, 47, 24, .92);
  caret-color: #00441f;
  font-size: clamp(12px, 3.3vw, 30px);
  font-family: Georgia, "Times New Roman", serif;
  padding-left: 22px;
}
.pixel-input::placeholder { color: transparent; }
.pixel-hotspot:focus-visible,
.pixel-input:focus-visible {
  outline: 3px solid rgba(255, 224, 0, .70);
  outline-offset: -3px;
  border-radius: 14px;
}
.visual-lock-shell[data-pixel-perfect="true"] .app-toast {
  bottom: 6%;
}
@media (width: 941px) and (height: 1672px) {
  .visual-lock-shell[data-pixel-perfect="true"] {
    --pixel-fit-width: 941px;
    width: 941px;
    height: 1672px;
    min-height: 1672px;
  }
}
@media (max-height: 980px) and (min-width: 721px) {
  body:has(.visual-lock-shell[data-pixel-perfect="true"]) {
    display: grid;
    place-items: start center;
    min-height: 100svh;
    background: #f4f6f1;
  }
}

/* Interaction refinement: pixel-perfect mode must not paint focus rings, typed search text, or caret over the preserved target image. Backend logic still receives the values through the invisible DOM controls. */
.visual-lock-shell[data-pixel-perfect="true"] .pixel-hotspot:focus-visible,
.visual-lock-shell[data-pixel-perfect="true"] .pixel-input:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}
.visual-lock-shell[data-pixel-perfect="true"] .pixel-input,
.visual-lock-shell[data-pixel-perfect="true"] .pixel-input:focus,
.visual-lock-shell[data-pixel-perfect="true"] .pixel-search-input,
.visual-lock-shell[data-pixel-perfect="true"] .pixel-search-input:focus {
  color: transparent !important;
  caret-color: transparent !important;
  text-shadow: none !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-text-fill-color: transparent !important;
}
.visual-lock-shell[data-pixel-perfect="true"] .pixel-input::selection {
  background: transparent !important;
  color: transparent !important;
}
