/* Šviežia — dizaino sistema (šilti kreminiai tonai, editorial stilius) */
:root {
  --bg: #F4EFE6;
  --bg-2: #ECE4D5;
  --paper: #FBF8F2;
  --ink: #2B2420;
  --ink-2: #5E5249;
  --muted: #8C7F73;
  --line: #DCCFBA;
  --sand: #E7DCC8;
  --terracotta: #B5532E;
  --terracotta-d: #96401F;
  --olive: #5F6B3A;
  --olive-d: #4A5429;
  --ok: #4F7A3A;
  --warn: #C4862B;
  --accent: var(--terracotta);
  --accent-d: var(--terracotta-d);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 3px;
  --shadow: 0 18px 40px -22px rgba(43, 36, 32, .35);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}
body[data-mode="seller"] { --accent: var(--olive); --accent-d: var(--olive-d); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow {
  font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px;
}
.eyebrow.center { justify-content: center; }
.eyebrow svg { width: 13px; height: 13px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Mygtukai ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font: 500 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.sm { padding: 9px 14px; font-size: 11.5px; }
.btn.block { width: 100%; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink-2); transition: background .2s; }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn.danger:hover { color: #A33; background: #F3DDD5; }
.link { font-size: 13px; letter-spacing: .04em; border-bottom: 1px solid currentColor; padding-bottom: 2px; color: var(--ink-2); white-space: nowrap; }
.link:hover { color: var(--accent); }

/* ---------- Antraštė ---------- */
.announce {
  background: var(--ink); color: var(--bg); text-align: center;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 9px 16px;
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.announce .sep { opacity: .5; }
body[data-mode="seller"] .announce { background: var(--olive-d); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter); background: rgba(244, 239, 230, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font: 500 32px/1 var(--serif); letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 26px; flex: 1; }
.main-nav a { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.main-nav a:hover, .main-nav a.on { color: var(--ink); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.mode-switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.mode-switch button {
  position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  transition: color .25s;
}
.mode-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  background: var(--accent); border-radius: 999px; transition: transform .35s cubic-bezier(.6, .1, .2, 1), background .35s;
}
body[data-mode="buyer"] .mode-switch button[data-mode="buyer"],
body[data-mode="seller"] .mode-switch button[data-mode="seller"] { color: #fff; }
body[data-mode="seller"] .mode-thumb { transform: translateX(100%); }

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border: 1px solid var(--ink); border-radius: 999px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.cart-btn:hover { background: var(--ink); color: var(--paper); }
.cart-count {
  min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #fff;
  display: inline-grid; place-items: center; font-size: 11px; padding: 0 5px; letter-spacing: 0;
}
.cart-count.zero { background: var(--sand); color: var(--ink-2); }
.cart-btn.bump { animation: bump .45s; }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }
body[data-mode="seller"] .cart-btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img, .hero > .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 22, 16, .15) 0%, rgba(30, 22, 16, .25) 40%, rgba(30, 22, 16, .7) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) 56px; }
.hero .eyebrow { color: rgba(255, 255, 255, .85); }
.hero h1 { font-size: clamp(46px, 8vw, 104px); font-weight: 400; line-height: .95; }
.hero h1 em { color: #F3D9C4; }
.hero .lead { max-width: 560px; font-size: 17px; margin: 20px 0 36px; color: rgba(255, 255, 255, .9); }

.search {
  display: grid; grid-template-columns: 1.3fr 1.3fr 1fr auto; align-items: stretch;
  background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 20px; border-right: 1px solid var(--line); min-width: 0; }
.field > span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input[type="search"], .field input[type="text"] { border: 0; background: none; padding: 4px 0; font-size: 16px; outline: none; width: 100%; min-width: 0; }
.field b { color: var(--accent); font-weight: 600; }
.loc-wrap { position: relative; display: flex; align-items: center; gap: 4px; }
.loc-wrap .icon-btn { width: 32px; height: 32px; color: var(--accent); }
.rad input[type="range"] { width: 100%; accent-color: var(--accent); margin: 8px 0 2px; }
.search-btn { border-radius: 0 var(--radius) var(--radius) 0; padding: 0 30px; font-size: 13px; }
.suggest {
  position: absolute; top: calc(100% + 16px); left: -20px; right: -20px; z-index: 30;
  list-style: none; margin: 0; padding: 6px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); max-height: 320px; overflow: auto;
}
.suggest button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; text-align: left; border-radius: var(--radius); font-size: 14px; }
.suggest button:hover { background: var(--bg-2); }
.suggest button svg { color: var(--accent); width: 16px; height: 16px; }
.suggest small { display: block; color: var(--muted); font-size: 12px; }
.suggest .none { padding: 10px 12px; font-size: 13px; color: var(--muted); }

/* ---------- Kategorijos ---------- */
.cats { background: var(--paper); border-bottom: 1px solid var(--line); }
.cats-track { display: flex; gap: 6px; overflow-x: auto; padding: 14px var(--gutter); max-width: var(--max); margin: 0 auto; scrollbar-width: none; }
.cats-track::-webkit-scrollbar { display: none; }
.cat {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--ink-2); background: var(--bg); transition: all .2s;
}
.cat i { font-style: normal; font-size: 16px; line-height: 1; }
.cat:hover { border-color: var(--ink); color: var(--ink); }
.cat.special { background: transparent; border-style: dashed; }
.cat.active { background: var(--ink); border-color: var(--ink); color: var(--paper); border-style: solid; }

/* ---------- Sekcijos ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter); }
.section h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.results-head h2 { font-size: clamp(32px, 4.5vw, 54px); }
.sub { font-size: 26px; margin: 36px 0 18px; display: flex; align-items: baseline; gap: 10px; }
.sub span { font: 500 12px var(--sans); color: var(--muted); letter-spacing: .08em; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); }
.seg button svg { width: 15px; height: 15px; }
.seg button.on { background: var(--ink); color: var(--paper); }
.empty { padding: 36px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); }
.empty a { color: var(--accent); border-bottom: 1px solid; }

/* ---------- Tinkleliai ir kortelės ---------- */
.grid { display: grid; gap: 28px 22px; }
.grid.products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid.products.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.farms { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card { display: flex; flex-direction: column; background: transparent; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.card-media.sq { aspect-ratio: 1 / 1; }
.card-media img, .card-media .img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 26px; }
.card h4 { font: 500 20px/1.15 var(--serif); }
.meta { color: var(--muted); font-size: 13px; }
.rating { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.farm-link { font-size: 12.5px; color: var(--muted); }
.farm-link:hover { color: var(--accent); }
.badge-dist, .badge-eco {
  position: absolute; top: 12px; display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; letter-spacing: .03em;
}
.badge-dist { left: 12px; background: rgba(251, 248, 242, .95); color: var(--ink); }
.badge-dist svg { width: 13px; height: 13px; color: var(--accent); }
.badge-eco { right: 12px; background: var(--olive); color: #fff; }
.badge-eco svg { width: 13px; height: 13px; }
.badge-eco.sm { padding: 4px 8px; font-size: 10.5px; }
.hero-meta .badge-eco { position: static; vertical-align: middle; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { display: inline-block; font-size: 11px; letter-spacing: .04em; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--paper); }
.tag.ok { border-color: #BCD0AE; background: #E8EFDF; color: var(--ok); }
.tag.closed { color: var(--muted); }

.stock { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; border-radius: 4px; }
.stock.flash { animation: flash 1.4s; }
@keyframes flash { 0% { background: #F3DCC7; } 100% { background: transparent; } }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; flex-shrink: 0; }
.dot.low { background: var(--warn); }
.dot.off { background: #B9AEA3; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.price { font-weight: 600; font-size: 15px; }
.price small { font-weight: 400; color: var(--muted); font-size: 12px; }
.add-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); transition: background .2s, transform .2s; flex-shrink: 0;
}
.add-btn:hover { background: var(--accent); transform: rotate(90deg); }
.add-btn:disabled { background: var(--sand); color: var(--muted); cursor: not-allowed; transform: none; }

.img-ph {
  display: grid; place-items: center; font-size: 56px;
  background: radial-gradient(circle at 30% 30%, #EFD9C2, #D9B99B 60%, #C79C7A);
}
.cart-item .img-ph, .cart-farm .img-ph, .prow .img-ph, .chat-head .img-ph { font-size: 22px; }

/* ---------- Kaip veikia / reklamos ---------- */
.how { text-align: center; border-top: 1px solid var(--line); }
.how h2 { max-width: 720px; margin: 0 auto 48px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; }
.how-grid > div { border-top: 1px solid var(--ink); padding-top: 22px; }
.num { font: italic 400 44px/1 var(--serif); color: var(--accent); }
.how-grid h3 { font-size: 28px; margin: 14px 0 10px; }
.how-grid p { color: var(--ink-2); }

.split-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 0; padding-bottom: 0; }
.banner { position: relative; min-height: 360px; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--radius); color: #fff; }
.banner img, .banner .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.banner:hover img { transform: scale(1.04); }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(30, 22, 16, .7)); }
.banner > div { position: relative; z-index: 1; padding: 32px; }
.banner .eyebrow { color: rgba(255, 255, 255, .85); }
.banner h3 { font-size: 40px; margin-bottom: 8px; }
.banner span { font-size: 14px; opacity: .9; }

.farmer-cta { padding-bottom: 96px; }
.cta-inner { background: var(--olive); color: #F4EFE6; padding: clamp(36px, 6vw, 80px); border-radius: var(--radius); text-align: center; }
.cta-inner .eyebrow { color: rgba(244, 239, 230, .75); justify-content: center; }
.cta-inner h2 { max-width: 760px; margin: 0 auto 16px; }
.cta-inner p { max-width: 520px; margin: 0 auto 28px; opacity: .85; }

/* ---------- Renginiai ir receptai ---------- */
.date-badge {
  position: absolute; right: 12px; bottom: 12px; background: var(--paper); color: var(--ink);
  border-radius: var(--radius); padding: 8px 12px; text-align: center; line-height: 1;
}
.date-badge b { display: block; font: 500 30px/1 var(--serif); }
.date-badge span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.event-card .eyebrow { margin: 4px 0 0; }
.desc { color: var(--ink-2); font-size: 14px; }
.ingredients { list-style: none; margin: 6px 0; padding: 0; border-top: 1px solid var(--line); }
.ingredients li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ingredients li small { color: var(--muted); font-size: 12px; text-align: right; }
.ingredients li.ok span::before { content: '✓ '; color: var(--ok); }
.ingredients li.na { color: var(--muted); }
.steps { margin: 8px 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.steps li { margin-bottom: 6px; }
.recipe-card .btn { margin-top: auto; }

/* ---------- Puslapių antraštės ---------- */
.page-head, .farm-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.page-head > img, .page-head > .img-ph, .farm-hero > img, .farm-hero > .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head::after, .farm-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 22, 16, .1), rgba(30, 22, 16, .7)); }
.page-head-inner, .farm-hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 80px var(--gutter) 48px; }
.page-head .eyebrow, .farm-hero .eyebrow { color: rgba(255, 255, 255, .85); }
.page-head h1, .farm-hero h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 400; }
.page-head h1 em, .farm-hero h1 em { color: #F3D9C4; }
.page-head .lead { max-width: 560px; margin-top: 14px; font-size: 16px; opacity: .9; }
.back { display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; opacity: .85; }
.back:hover { opacity: 1; }
.hero-meta { margin-top: 14px; font-size: 14px; opacity: .92; }

/* ---------- Ūkio puslapis ---------- */
.farm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.intro { font: 400 24px/1.4 var(--serif); color: var(--ink); max-width: 760px; margin-bottom: 32px; }
.live-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3FA34D; box-shadow: 0 0 0 0 rgba(63, 163, 77, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(63, 163, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 163, 77, 0); } }
.farm-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.panel h3 { font-size: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel .tag { align-self: flex-start; }
.delivery-list { list-style: none; margin: 0; padding: 0; }
.delivery-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.delivery-list li:first-child { border-top: 0; }
.delivery-list svg { color: var(--accent); margin-top: 2px; }
.delivery-list b { display: block; font-weight: 500; font-size: 14px; }
.delivery-list span { font-size: 12.5px; color: var(--muted); }
.delivery-list em { font-style: normal; font-size: 13px; font-weight: 500; white-space: nowrap; }
.map { height: 520px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--sand); z-index: 0; }
.map.mini { height: 220px; border: 0; }
.map-panel { padding: 0; overflow: hidden; }
.map-off { padding: 40px; text-align: center; color: var(--muted); }
.farm-pin span {
  display: grid; place-items: center; width: 38px; height: 38px; font-size: 18px;
  background: var(--paper); border: 2px solid var(--accent); border-radius: 50%; line-height: 1;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); transition: transform .2s;
}
.farm-pin:hover span { transform: scale(1.12); }
.me-pin span { display: block; width: 20px; height: 20px; border-radius: 50%; background: #2F6FDB; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47, 111, 219, .25); }
.pop { display: flex; flex-direction: column; gap: 4px; font-family: var(--sans); }
.pop b { font: 500 18px var(--serif); }
.pop span { color: var(--muted); font-size: 12px; }
.pop a { color: var(--accent) !important; font-weight: 500; }
.leaflet-container { font-family: var(--sans); }

/* ---------- Krepšelis ---------- */
.overlay { position: fixed; inset: 0; background: rgba(30, 22, 16, .45); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 100;
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.6, .1, .2, 1);
  box-shadow: -20px 0 50px -30px rgba(0, 0, 0, .5);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 32px; }
.drawer-note { display: flex; align-items: center; gap: 8px; padding: 10px 24px; font-size: 12.5px; color: var(--olive); background: #E8EBDD; }
.drawer-note svg { width: 15px; height: 15px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.drawer-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: 14px; }
.drawer-foot .total { font: 500 28px var(--serif); }
.drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px; text-align: center; }
.serif-lg { font: 400 34px var(--serif); }
.cart-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-farm { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cart-farm img, .cart-farm .img-ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.cart-farm b { display: block; font: 500 21px/1.1 var(--serif); }
.cart-farm span { font-size: 12px; color: var(--muted); }
.cart-item { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; }
.cart-item img, .cart-item .img-ph { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius); }
.ci-info span { display: block; font-size: 14px; line-height: 1.3; }
.ci-info small { color: var(--muted); font-size: 12px; }
.ci-sum { font-size: 14px; font-weight: 500; min-width: 64px; text-align: right; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.stepper button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.stepper button:hover { background: var(--bg-2); }
.stepper button svg { width: 14px; height: 14px; }
.stepper span { min-width: 22px; text-align: center; font-size: 14px; }
.stepper input { width: 52px; text-align: center; border: 0; background: none; font-size: 14px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.del-opts { border: 0; margin: 12px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.del-opts legend { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.del-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; transition: border-color .2s; }
.del-opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.del-opt input { accent-color: var(--accent); }
.del-opt b { display: block; font-weight: 500; font-size: 13.5px; }
.del-opt small { color: var(--muted); font-size: 12px; }
.del-opt em { font-style: normal; font-size: 13px; font-weight: 500; }
.del-opt.disabled { opacity: .5; cursor: not-allowed; }
.group-sum { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* ---------- Modaliniai langai ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-card {
  width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--bg); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  animation: rise .35s cubic-bezier(.2, .7, .2, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.modal-head h2 { font-size: 34px; }
.modal-chat { padding: 0; display: flex; flex-direction: column; height: min(640px, calc(100vh - 32px)); overflow: hidden; }
.chat-head { padding: 16px 20px; margin: 0; border-bottom: 1px solid var(--line); justify-content: flex-start; }
.chat-head > div { flex: 1; min-width: 0; }
.chat-head h3 { font-size: 22px; }
.chat-head img, .chat-head .img-ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.chat-head .dot { margin-right: 6px; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.seller-chat .chat-body { height: 380px; flex: none; border: 1px solid var(--line); border-radius: var(--radius); }
.msg { max-width: 78%; align-self: flex-start; }
.msg p { background: var(--bg-2); padding: 10px 14px; border-radius: 14px 14px 14px 4px; font-size: 14px; }
.msg.mine { align-self: flex-end; text-align: right; }
.msg.mine p { background: var(--accent); color: #fff; border-radius: 14px 14px 4px 14px; text-align: left; }
.msg time { font-size: 11px; color: var(--muted); padding: 0 4px; }
.msg.typing p { display: flex; gap: 4px; padding: 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { opacity: .3; transform: translateY(-3px); } }
.chat-empty { margin: auto; text-align: center; color: var(--muted); font: italic 20px var(--serif); max-width: 280px; }
.quick { display: flex; gap: 6px; padding: 10px 20px 0; overflow-x: auto; scrollbar-width: none; }
.quick button { flex-shrink: 0; font-size: 12.5px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.quick button:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 14px 20px 18px; }
.seller-chat .chat-form { padding: 0; }
.chat-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); outline: none; }
.chat-form input:focus { border-color: var(--accent); }
.chat-with { display: flex; gap: 12px; align-items: center; }
.chat-with > svg { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--bg-2); }
.chat-with b { display: block; font-weight: 500; }

/* ---------- Formos ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea, .farm-select select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); outline: none; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.form .check { flex-direction: row; align-items: center; gap: 10px; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.form .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form .check.big { font: 500 20px var(--serif); }
.form .check.big svg { color: var(--accent); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.summary .total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 16px; }
.summary .total b { font: 500 24px var(--serif); }

.confirm { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0; }
.confirm-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: #fff; font-size: 30px; }
.confirm h2 { font-size: 36px; }
.confirm-list { list-style: none; padding: 0; margin: 8px 0; width: 100%; text-align: left; }
.confirm-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.confirm-list span { color: var(--ink-2); }
.confirm-list em { font-style: normal; font-weight: 600; }
.confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- Pranešimai ---------- */
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-size: 13.5px; box-shadow: var(--shadow); animation: rise .3s; transition: opacity .4s, transform .4s; text-align: center; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- Pardavėjo skydelis ---------- */
.seller { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 80px; }
.seller-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.seller-top h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 400; }
.farm-select { display: flex; flex-direction: column; gap: 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); min-width: 240px; }
.seller-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.seller-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.seller-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius); color: var(--ink-2); font-size: 14px; transition: background .2s, color .2s; }
.seller-nav a:hover { background: var(--bg-2); color: var(--ink); }
.seller-nav a.on { background: var(--ink); color: var(--paper); }
.seller-nav a span { flex: 1; }
.seller-nav .count { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--terracotta); color: #fff; font-size: 11px; display: grid; place-items: center; }
.seller-nav .preview { margin-top: 14px; border: 1px dashed var(--line); color: var(--olive); }
.seller-content { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: 34px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat b { font: 500 38px/1 var(--serif); }
.stat b small { font-size: 18px; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 10px; }
.dash-grid > div { display: flex; flex-direction: column; gap: 14px; }
.low-list { list-style: none; margin: 0; padding: 0; }
.low-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.low-list b { color: var(--warn); }
.preview-card .farm-card { pointer-events: none; }
.preview-card .card h3 { font-size: 22px; }

.ptable { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.prow { display: grid; grid-template-columns: 52px minmax(0, 1fr) 110px 130px 64px 40px; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.prow:first-child { border-top: 0; }
.prow.phead { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; }
.prow img, .prow .img-ph { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius); }
.prow.is-hidden > :not(.switch):not(.icon-btn) { opacity: .45; }
.pname b { display: block; font: 500 19px/1.2 var(--serif); }
.pname small { color: var(--muted); font-size: 12px; }
.pprice { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 10px; background: var(--bg); }
.pprice input { width: 100%; border: 0; background: none; padding: 8px 0; outline: none; font-size: 14px; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--sand); border-radius: 12px; transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.add-form h3 { font-size: 26px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); background: var(--paper); }
.chip span { color: var(--muted); margin-left: 4px; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.on span { color: var(--sand); }
.orders { display: flex; flex-direction: column; gap: 14px; }
.order-card { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.order-card.s-new { border-left-color: var(--terracotta); }
.order-card.s-prep { border-left-color: var(--warn); }
.order-card.s-ready, .order-card.s-sent { border-left-color: #4A7DB5; }
.order-card.s-done { border-left-color: var(--ok); }
.order-card.s-cancel { opacity: .6; }
.status { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--bg-2); white-space: nowrap; }
.status.s-new { background: #F5DED3; color: var(--terracotta-d); }
.status.s-prep { background: #F5E8CF; color: #8A5B12; }
.status.s-ready, .status.s-sent { background: #DCE7F3; color: #2E5C8E; }
.status.s-done { background: #E2ECD9; color: var(--ok); }
.order-items { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.order-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.order-meta span { display: flex; align-items: center; gap: 8px; }
.order-meta svg { width: 15px; height: 15px; color: var(--accent); }
.order-meta a { border-bottom: 1px solid var(--line); }
.note { font: italic 17px var(--serif); color: var(--ink-2); }
.order-total { font: 500 24px var(--serif); }
.actions { display: flex; gap: 8px; }

/* ---------- Nuotraukų suvienodinimas (šilta „editorial“ serija) ---------- */
.card-media img, .hero-img, .page-head > img, .farm-hero > img, .banner img,
.cart-item img, .cart-farm img, .prow img, .chat-head img, .credits img {
  filter: saturate(.9) sepia(.08) contrast(1.03);
}

/* ---------- Kiekio įvedimas ---------- */
.stepper.qty input { width: 56px; padding: 6px 0; font-weight: 500; border-radius: 4px; }
.stepper.qty input:focus { outline: none; background: var(--bg-2); }
.buy-row { flex-wrap: wrap; }
.buy-ctrl { margin-left: auto; }
.buy-ctrl .stepper { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.buy-ctrl .stepper button:hover { background: rgba(255, 255, 255, .12); }
.buy-ctrl .stepper input { width: 44px; color: var(--paper); }
.buy-ctrl .stepper input:focus { background: rgba(255, 255, 255, .12); }
.low-list li { grid-template-columns: 1fr auto; }

/* ---------- Pirkėjo profilis ---------- */
.user-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  border-radius: 999px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.user-btn:hover { background: var(--bg-2); color: var(--ink); }
.user-btn svg { width: 20px; height: 20px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 500 15px/1 var(--serif); letter-spacing: 0;
}
body[data-mode="seller"] .user-btn { display: none; }
.modal-lead { margin: -8px 0 18px; }
.modal-sub { font-size: 24px; margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.my-orders { list-style: none; margin: 0; padding: 0; }
.my-orders li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mo-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.as-buyer { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.as-buyer svg { color: var(--accent); }
.as-buyer span { flex: 1; }
.as-buyer .link { font-size: 12px; }
.credits-link { font-size: 12px !important; text-decoration: underline; margin-top: 12px; }
.credits { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.credits li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.credits img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius); }
.credits a { display: block; color: var(--ink); overflow-wrap: anywhere; }
.credits a:hover { color: var(--accent); }
.credits span { color: var(--muted); font-size: 12px; }

/* ---------- Darbo laikas ---------- */
.week { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.week li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.week li:last-child { border-bottom: 0; }
.week li.off b { color: var(--muted); font-weight: 400; }
.week li.today { color: var(--accent); }
.week li.today span::after { content: ' · šiandien'; font-size: 12px; }
.week b { font-weight: 500; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.profile-grid h3 { font-size: 24px; }
.form .hint { font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.form .counter { align-self: flex-end; font-size: 11px; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.hours-panel h3 svg { color: var(--accent); }
.saved { font-size: 12px; color: var(--ok); opacity: 0; transition: opacity .3s; }
.saved.show { animation: saved 1.8s; }
@keyframes saved { 10%, 70% { opacity: 1; } 100% { opacity: 0; } }
.presets { margin: 4px 0 6px; }
.presets .chip:hover { border-color: var(--accent); color: var(--accent); }
.hours-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.hours-row { display: grid; grid-template-columns: 104px auto 1fr; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hours-row .times { display: flex; align-items: center; gap: 6px; }
.hours-row input[type="time"] { padding: 7px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-size: 14px; color: var(--ink); min-width: 0; flex: 1; max-width: 140px; }
.hours-row input[type="time"]:focus { outline: none; border-color: var(--accent); }
.hours-row .dash { color: var(--muted); }
.hours-row .state { grid-column: 3; display: none; }
.hours-row.off .times { display: none; }
.hours-row.off .state { display: block; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 17px; }
.hours-row.off .day { color: var(--muted); }
.hours-summary { font-size: 13px; color: var(--ink-2); padding-top: 4px; }
.hours-summary b { font-weight: 500; color: var(--ink); }
@media (max-width: 1100px) { .profile-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .user-btn { padding: 4px; }
  .user-btn .user-label { display: none; }
  .hours-row { grid-template-columns: 1fr auto; row-gap: 8px; }
  .hours-row .times, .hours-row .state { grid-column: 1 / -1; }
  .hours-row input[type="time"] { max-width: none; }
  .buy-ctrl .stepper input { width: 34px; }
  .buy-ctrl .stepper button { width: 26px; height: 28px; }
}

/* ---------- Išankstiniai užsakymai ---------- */
.dot.pre { background: var(--olive); box-shadow: 0 0 0 3px rgba(95, 107, 58, .18); }
.badge-pre {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--olive-d);
  font-size: 11px; font-weight: 500; letter-spacing: .03em; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .35);
}
.badge-pre svg { width: 13px; height: 13px; }
.badge-pre.inline { position: static; box-shadow: none; background: #E8EBDD; padding: 3px 8px; }
.ready-note { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--olive-d); font-weight: 500; }
.ready-note svg { width: 14px; height: 14px; }
.pre-tag { font-style: normal; color: var(--olive-d); }
.pre-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.pre-line .link { font-size: 12px; color: var(--olive-d); }
.avail-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.avail-toggle label {
  display: grid !important; grid-template-columns: auto 1fr; gap: 10px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; color: var(--ink) !important; transition: border-color .2s, box-shadow .2s;
}
.avail-toggle label.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--paper); }
.avail-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.avail-toggle svg { width: 22px; height: 22px; color: var(--accent); }
.avail-toggle b { display: block; font: 500 19px/1.2 var(--serif); }
.avail-toggle small { font-size: 12px; color: var(--muted); }
.pre-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px dashed var(--olive); border-radius: var(--radius); background: #F1F2E8; }
.pre-q { font: 500 20px var(--serif); }
.date-chips .chip { display: inline-flex; align-items: center; gap: 6px; }
.date-chips .chip svg { width: 14px; height: 14px; }
#product-form[data-avail="now"] .pre-only, #product-form[data-avail="pre"] .now-only { display: none; }
.row-actions { display: flex; gap: 2px; }
.prow { grid-template-columns: 52px minmax(0, 1fr) 110px 150px 64px 84px; }

/* ---------- Diena ir laikas krepšelyje ---------- */
.slot-picker { margin: 4px 0 8px; display: flex; flex-direction: column; gap: 8px; }
.sp-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sp-days, .sp-times { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sp-days::-webkit-scrollbar, .sp-times::-webkit-scrollbar { display: none; }
.slot-picker .chip { flex-shrink: 0; padding: 7px 12px; font-size: 12.5px; }
.slot-picker .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sp-chosen { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); font-weight: 500; }
.sp-chosen svg { width: 15px; height: 15px; color: var(--accent); }
.sp-pre { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--olive-d); background: #E8EBDD; padding: 7px 10px; border-radius: var(--radius); }
.sp-pre svg { width: 14px; height: 14px; }

/* ---------- Kada ir kur ---------- */
.when { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.when svg { width: 16px; height: 16px; color: var(--accent); margin-top: 2px; }
.when b { color: var(--ink); font-weight: 500; }
.when.big { font-size: 14.5px; padding: 10px 12px; background: var(--bg); border-radius: var(--radius); }
.addr-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.addr-text { min-width: 0; }
.addr-text b { display: block; font: 500 20px/1.2 var(--serif); }
.addr { display: inline; font-size: 13.5px; color: var(--ink-2); user-select: all; -webkit-user-select: all; cursor: text; border-bottom: 1px dashed var(--line); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 8px 12px;
  border: 1px solid var(--ink); border-radius: 999px; font-size: 12px; letter-spacing: .04em; transition: background .2s, color .2s;
}
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn:hover { background: var(--ink); color: var(--paper); }
.order-items li > span:last-child { white-space: nowrap; }
.sum-farm { display: flex; flex-direction: column; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sum-edit { align-self: flex-start; font-size: 12px; }
.buyer-fields { display: flex; flex-direction: column; gap: 14px; }
.conf-order { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 10px; padding: 16px 0 !important; text-align: left; }

/* ---------- Mano užsakymai ---------- */
.section.narrow { max-width: 860px; }
.page-title { font-size: clamp(40px, 6vw, 64px); font-weight: 400; margin-bottom: 8px; }
.my-orders-link { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 14px; }
.my-orders-link span { flex: 1; }
.my-orders-link em { font-style: normal; color: var(--accent); }
.my-orders-link svg { color: var(--accent); }
.my-orders-link:hover { border-color: var(--ink); }
.my-order { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.my-order.fresh { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.my-order.s-cancel { opacity: .75; }
.new-tag { display: inline-block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #fff; }
.new-tag.pre { background: var(--olive); }
.cancel-note { font-size: 13px; color: var(--terracotta-d); background: #F5DED3; padding: 8px 12px; border-radius: var(--radius); }
.progress { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress li { position: relative; padding-top: 18px; font-size: 11.5px; color: var(--muted); text-align: center; }
.progress li span { position: absolute; top: 4px; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--sand); }
.progress li.done { color: var(--ink-2); }
.progress li.done span { background: var(--ok); }
.progress li.now { color: var(--accent); font-weight: 600; }
.progress li.now span { background: var(--accent); }
.reasons { display: flex; flex-direction: column; gap: 6px; }
.form .reason { flex-direction: row; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.form .reason:has(input:checked) { border-color: var(--accent); }
.reason input { accent-color: var(--accent); }
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); background: #F5DED3; color: var(--terracotta-d); font-size: 14px; }
.alert svg { width: 16px; height: 16px; }

/* ---------- Būsenos pranešimo juosta ---------- */
.update-bar { background: var(--olive); color: #F4EFE6; }
.ub-inner { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ub-dot { width: 9px; height: 9px; border-radius: 50%; background: #F3D9C4; animation: pulse 1.8s infinite; flex-shrink: 0; }
.ub-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; font-size: 13.5px; }
.ub-text b { font-weight: 600; }
.ub-text .muted { color: rgba(244, 239, 230, .7); font-weight: 400; }
.update-bar .addr { color: #fff; border-bottom-color: rgba(255, 255, 255, .4); }
.update-bar .copy-btn { border-color: rgba(244, 239, 230, .7); color: #F4EFE6; }
.update-bar .copy-btn:hover { background: #F4EFE6; color: var(--olive-d); }
.update-bar .icon-btn { color: #F4EFE6; }
.update-bar .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.avatar { position: relative; }
.notif-dot, .bn-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--terracotta); border: 2px solid var(--bg); }
.notif-dot { top: -2px; right: -2px; }
.bottom-nav .bn-dot { top: 2px; left: 50%; margin-left: 6px; }

@media (max-width: 860px) {
  .prow .row-actions { grid-area: del; }
}
@media (max-width: 640px) {
  .avail-toggle { grid-template-columns: 1fr; }
  .addr-copy { flex-direction: column; align-items: flex-start; }
  .copy-btn { align-self: flex-start; }
  .progress li { font-size: 10px; }
  .my-order .row-between { flex-wrap: wrap; }
  .my-order .actions { flex-wrap: wrap; width: 100%; }
  .my-order .actions .btn { flex: 1 1 auto; }
  .ub-inner { padding: 12px 16px; }
}

/* ---------- Poraštė ---------- */
.site-footer { background: var(--ink); color: #D9CFC2; padding: 64px var(--gutter) 28px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.1fr; gap: 40px; }
.site-footer .footer-contact a:not(.logo) { display: flex; align-items: center; gap: 8px; color: #E9E1D6; width: fit-content; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.site-footer .footer-contact a:not(.logo):hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .5); }
.footer-contact svg { width: 16px; height: 16px; color: var(--terracotta); }
.site-footer .fc-company { font: 500 20px/1.3 var(--serif); color: var(--bg); margin-bottom: 10px; }
.fc-company span { display: block; font: 400 13px/1.5 var(--sans); color: #BFB3A5; }
.site-footer .fc-note { margin: 12px 0 0; font-size: 12.5px; }
.site-footer .logo { color: var(--bg); display: inline-block; margin-bottom: 14px; }
.site-footer h4 { font: 500 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bg); margin-bottom: 14px; }
.site-footer a:not(.logo) { display: block; padding: 4px 0; font-size: 14px; color: #BFB3A5; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 14px; color: #BFB3A5; margin-bottom: 14px; max-width: 320px; }
.site-footer .btn-outline { border-color: #BFB3A5; color: #D9CFC2; }
.site-footer .btn-outline:hover { background: var(--bg); color: var(--ink); }
.footer-base { max-width: var(--max); margin: 48px auto 0 !important; padding-top: 22px; border-top: 1px solid #4A403A; font-size: 12px !important; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Mobili apatinė navigacija ---------- */
.bottom-nav { display: none; }

/* ---------- Prisitaikymas ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .farm-layout { grid-template-columns: 1fr; }
  .farm-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .search { grid-template-columns: 1fr; }
  .field { border-right: 0; border-bottom: 1px solid var(--line); }
  .search-btn { border-radius: 0 0 var(--radius) var(--radius); padding: 16px; }
  .suggest { left: -20px; right: -20px; top: calc(100% + 12px); }
  .how-grid { grid-template-columns: 1fr; gap: 28px; }
  .split-banner { grid-template-columns: 1fr; }
  .seller-layout { grid-template-columns: 1fr; gap: 20px; }
  .seller-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .seller-nav a { flex-shrink: 0; border: 1px solid var(--line); }
  .seller-nav .preview { margin-top: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .prow { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "img name del" "price stock vis"; row-gap: 10px; }
  .prow.phead { display: none; }
  .prow > img, .prow > .img-ph { grid-area: img; }
  .prow .pname { grid-area: name; }
  .prow .pprice { grid-area: price; grid-column: 1 / 2; width: 100%; min-width: 90px; }
  .prow .stepper { grid-area: stock; justify-self: start; }
  .prow .switch { grid-area: vis; }
  .prow .icon-btn { grid-area: del; }
}
@media (max-width: 640px) {
  body { padding-bottom: 68px; font-size: 14.5px; }
  .announce { font-size: 10px; gap: 6px; }
  .announce span:nth-child(n+4) { display: none; }
  .site-header { gap: 10px; padding: 12px 16px; }
  .logo { font-size: 26px; }
  .mode-switch button { padding: 7px 11px; font-size: 11px; }
  .cart-btn { display: none; }
  .hero { min-height: 0; }
  .hero-inner { padding: 80px 16px 32px; }
  .hero .lead { font-size: 15px; margin: 14px 0 24px; }
  .section { padding: 44px 16px; }
  .split-banner { padding: 0 16px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .grid.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .grid.farms, .grid.three, .grid.products.wide { grid-template-columns: 1fr; }
  .card h4 { font-size: 17px; }
  .price { font-size: 14px; }
  .price small { display: block; }
  .add-btn { width: 34px; height: 34px; }
  .map { height: 420px; }
  .banner { min-height: 280px; }
  .banner h3 { font-size: 32px; }
  .page-head, .farm-hero { min-height: 340px; }
  .page-head-inner, .farm-hero-inner { padding: 60px 16px 32px; }
  .intro { font-size: 20px; }
  .farm-side { grid-template-columns: 1fr; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-card { width: 100%; max-height: 92vh; border-radius: 12px 12px 0 0; padding: 22px 18px; }
  .modal-chat { height: 92vh; padding: 0; }
  .cart-item { grid-template-columns: 44px 1fr auto; }
  .ci-sum { grid-column: 2 / 4; text-align: left; font-size: 13px; color: var(--ink-2); }
  .seller { padding: 28px 16px 60px; }
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat b { font-size: 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .toasts { bottom: 84px; }

  .bottom-nav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--paper); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: 10.5px; color: var(--muted); }
  .bottom-nav a svg { width: 21px; height: 21px; }
  .bottom-nav a.on { color: var(--accent); }
  .bottom-nav i { position: absolute; top: 0; left: 50%; margin-left: 6px; font-style: normal; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; display: grid; place-items: center; }
  .bottom-nav i.zero { display: none; }
}
