:root {
  --bg: #ffffff;
  --bg-soft: #f4faf6;
  --bg-mint: #e8f6ee;
  --ink: #0d1f17;
  --muted: #5a6b62;
  --line: rgba(13, 31, 23, 0.1);
  --green: #0f8a4b;
  --green-deep: #0a5c32;
  --green-bright: #14b866;
  --green-glow: rgba(15, 138, 75, 0.16);
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(10, 92, 50, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Outfit", sans-serif;
  --display: "Syne", sans-serif;
  --header-h: 118px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 90% -10%, var(--green-glow), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(15, 138, 75, 0.06), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 48%, #ffffff 100%);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-deep);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--green);
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.muted {
  color: var(--muted);
}

/* -------- motion -------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* -------- header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header .shell {
  position: relative;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(10, 92, 50, 0.06);
  background: rgba(255, 255, 255, 0.97);
}

.header-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.7rem 0 0.55rem;
}

.header-top {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem 1.15rem;
  align-items: center;
  font-weight: 600;
  font-size: 0.92rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.main-nav a.is-active {
  color: var(--green-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-phone {
  font-weight: 700;
  color: var(--green-deep);
  white-space: nowrap;
  font-size: 0.92rem;
}

.header-cart {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-deep);
  flex-shrink: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.header-cart:hover {
  background: var(--bg-mint);
  border-color: rgba(15, 138, 75, 0.35);
  color: var(--green-deep);
}

.header-cart-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(15, 138, 75, 0.28);
}

.header-cart-badge:not(.is-on),
.header-cart-badge[hidden] {
  display: none;
}

.header-search {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.search-form {
  display: flex;
  gap: 0.4rem;
  min-width: 0;
}

.search-form.ghost-search {
  display: block;
}

.ghost-search-field {
  position: relative;
  min-width: 0;
}

.ghost-search-field input {
  width: 100%;
}

.ghost-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding: 0 1rem;
  pointer-events: none;
  color: var(--muted);
  font: inherit;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.18s var(--ease);
}

.ghost-placeholder.is-hidden {
  opacity: 0;
}

.ghost-static {
  flex-shrink: 0;
  white-space: nowrap;
}

.ghost-words {
  position: relative;
  display: block;
  height: 1.25em;
  min-width: 8.5em;
  overflow: hidden;
  line-height: 1.25;
}

.ghost-word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  will-change: transform, opacity;
}

.ghost-word.is-in {
  animation: ghost-word-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ghost-word.is-out {
  animation: ghost-word-out 0.38s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes ghost-word-in {
  from {
    transform: translateY(-120%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes ghost-word-out {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(120%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ghost-word.is-in,
  .ghost-word.is-out {
    animation: none;
  }

  .ghost-word.is-in {
    transform: none;
    opacity: 1;
  }
}

.search-form input,
.hero-search input,
.page-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.72rem 1rem;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-form input:focus,
.hero-search input:focus,
.page-search input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-glow);
}

.btn,
.search-form button,
.hero-search button,
.page-search button,
.btn-primary {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 14px;
  padding: 0.72rem 1.05rem;
  background: linear-gradient(135deg, var(--green-bright), var(--green-deep));
  color: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
  box-shadow: 0 12px 28px rgba(15, 138, 75, 0.22);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn:hover,
.search-form button:hover,
.hero-search button:hover,
.page-search button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  color: var(--green-deep);
  border: 1px solid rgba(15, 138, 75, 0.28);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--bg-mint);
}

.header-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

/* -------- hero -------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(8, 40, 24, 0.88) 0%, rgba(10, 70, 40, 0.55) 45%, rgba(8, 40, 24, 0.35) 100%),
    url("/img/hero-build.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
  pointer-events: none;
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-inner {
  padding: 7rem 0 4.5rem;
  max-width: 720px;
}

.hero-brand {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
  animation: fadeUp 0.9s var(--ease) both;
}

.hero-lead {
  margin: 1.15rem 0 1.6rem;
  font-size: 1.12rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.86);
  animation: fadeUp 0.9s 0.1s var(--ease) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.9s 0.18s var(--ease) both;
}

.hero-search {
  display: flex;
  gap: 0.5rem;
  width: min(520px, 100%);
  position: relative;
}

.hero-search .ghost-search-field {
  flex: 1;
  min-width: 0;
}

.hero-search .ghost-search-field input {
  width: 100%;
}

.hero-search .ghost-type-ph {
  color: rgba(40, 55, 48, 0.55);
}

.ghost-caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  background: currentColor;
  vertical-align: -0.12em;
  animation: ghost-caret-blink 1s steps(1) infinite;
}

.ghost-type-ph.is-hidden .ghost-caret {
  animation: none;
  opacity: 0;
}

@keyframes ghost-caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ghost-caret {
    animation: none;
    opacity: 0.7;
  }
}

.hero-search input {
  background: rgba(255, 255, 255, 0.96);
}

.hero .btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* -------- sections -------- */
.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.5rem 0 3.5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h1,
.section-head h2,
.page-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-link {
  font-weight: 700;
  color: var(--green);
}

.text-link:hover {
  color: var(--green-deep);
}

.section-intro {
  max-width: 42rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

/* -------- category / product grids -------- */
.category-grid,
.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.category-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.category-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 96px;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  color: inherit;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--green-glow);
  transition: transform 0.35s var(--ease);
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 138, 75, 0.35);
  box-shadow: 0 24px 50px rgba(10, 92, 50, 0.12);
}

.category-tile:hover::before {
  transform: scale(1.35);
}

.category-name {
  position: relative;
  font-weight: 700;
  font-size: 1.02rem;
}

.category-count {
  position: relative;
  min-width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg-mint);
  color: var(--green-deep);
  font-size: 0.85rem;
  font-weight: 800;
}

.product-card {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 138, 75, 0.3);
}

.product-card a {
  display: block;
  color: inherit;
  padding: 0 0 1.1rem;
}

.product-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s var(--ease);
  background: linear-gradient(180deg, #fff, var(--bg-soft));
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-media.is-empty,
.product-detail-media.is-empty {
  background: var(--bg-soft);
}

.product-media.is-empty img,
.product-detail-media.is-empty img {
  object-fit: contain;
  background: transparent;
  padding: 0.75rem;
}

.showcase-media.is-empty {
  background: var(--bg-soft);
}

.showcase-media.is-empty img {
  object-fit: contain;
  padding: 0.75rem;
  opacity: 1;
  background: transparent;
}

.product-card h3 {
  margin: 0.95rem 1rem 0.35rem;
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 700;
}

.product-card .muted,
.product-card .price {
  margin: 0.25rem 1rem 0;
}

.price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-deep);
}

.price-lg {
  font-size: 2rem;
  margin-top: 1rem;
}

/* -------- service strip -------- */
.service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.service-item {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-item strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-index {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: var(--bg-mint);
  color: var(--green-deep);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* -------- catalog / product / info -------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--green);
}

.product-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.product-detail-media {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-search {
  display: flex;
  gap: 0.5rem;
  max-width: 560px;
  margin: 1rem 0 0;
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  align-items: start;
}

.info-main,
.info-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-main {
  padding: 1.6rem 1.7rem 2rem;
}

.info-aside {
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.info-main h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 1.6rem 0 0.6rem;
}

.info-main ul {
  padding-left: 1.15rem;
}

.info-main li {
  margin: 0.35rem 0;
}

.info-aside h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
}

.info-aside a {
  display: block;
  padding: 0.45rem 0;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.info-aside a:hover,
.info-aside a.is-active {
  color: var(--green);
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  background: #fff;
  color: var(--green-deep);
  font-weight: 700;
}

.site-footer .contact-pill {
  color: var(--green-deep);
  background: #fff;
}

.site-footer .contact-pill:hover {
  color: var(--green);
  background: var(--bg-mint);
}

.info-aside a.btn {
  color: #fff;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  line-height: 1.2;
}

.info-aside a.btn:hover {
  color: #fff;
}

.info-main a.btn,
.info-main a.btn-primary {
  color: #fff;
}

.info-main a.btn:hover,
.info-main a.btn-primary:hover {
  color: #fff;
}

/* -------- footer -------- */
.site-footer {
  margin-top: 3rem;
  background:
    radial-gradient(600px 240px at 10% 0%, rgba(20, 184, 102, 0.18), transparent 60%),
    linear-gradient(180deg, #0a5c32 0%, #073d22 100%);
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a {
  color: #d8ffe9;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  padding: 2.75rem 0 2rem;
}

.footer-brand {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}

.footer-col h4 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0 1.4rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-legal {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
  max-width: 78rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-legal p {
  margin: 0;
}

/* -------- suggest -------- */
.suggest-wrap {
  position: relative;
  flex: 1;
}

.suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-height: 280px;
  overflow: auto;
  z-index: 30;
}

.suggest-list li a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  background: transparent;
}

.suggest-list li a:hover {
  background: var(--bg-mint);
  color: var(--green-deep);
}

/* -------- responsive -------- */
@media (max-width: 1100px) {
  .header-phone {
    display: none;
  }
}

@media (max-width: 980px) {
  .header-top {
    grid-template-columns: 1fr auto;
  }

  .header-search {
    display: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.35rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--line);
    overflow: visible;
    z-index: 50;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.65rem 0.2rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .service-strip,
  .footer-grid,
  .info-layout,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .info-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    padding-top: 5.5rem;
  }

  .brand-logo {
    height: 2.35rem;
  }

  .header-actions .btn {
    padding-inline: 0.8rem;
  }

  .header-actions .btn.header-auth:last-of-type {
    padding-inline: 0.85rem;
  }
}

/* -------- auth -------- */
.auth-shell {
  display: grid;
  place-items: center;
  min-height: 60vh;
}

.auth-card {
  width: min(480px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.6rem 1.8rem;
}

.auth-form {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.25rem;
}

.auth-field {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.auth-field input {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-glow);
}

.auth-hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-person {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem 1rem;
  margin: 0;
}

.auth-person legend {
  padding: 0 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.auth-radio {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.auth-switch {
  margin: 1.15rem 0 0;
  text-align: center;
}

.auth-alert {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
}

.auth-alert.is-error {
  background: #fff1f0;
  color: #a32016;
  border: 1px solid rgba(163, 32, 22, 0.18);
}

.auth-alert.is-ok {
  background: var(--bg-mint);
  color: var(--green-deep);
  border: 1px solid rgba(15, 138, 75, 0.2);
}

.profile-list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.profile-list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.profile-list dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.profile-list dd {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 640px) {
  .profile-list > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* -------- cart -------- */
.product-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}

.product-qty {
  width: 4.5rem;
}

.btn.is-added {
  filter: brightness(1.08);
}

.cart-empty {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: 1.5rem 0 2rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.5rem;
  align-items: start;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: #fff;
}

.cart-thumb {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-mint);
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-info a {
  font-weight: 700;
  color: var(--ink);
}

.cart-info a:hover {
  color: var(--green-deep);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-qty-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
}

.cart-qty-btn:hover {
  background: var(--bg-mint);
  border-color: rgba(15, 138, 75, 0.28);
}

.cart-qty-input {
  width: 3.4rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.3rem;
  font: inherit;
  font-weight: 700;
}

.cart-line-sum {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  min-width: 6.5rem;
}

.cart-remove {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  padding: 0;
}

.cart-remove:hover {
  color: #a32016;
}

.cart-summary {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: #fff;
  box-shadow: var(--shadow);
}

.cart-summary h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
}

.cart-summary-note {
  margin: 0;
  font-size: 0.9rem;
}

.cart-fulfill {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.1rem;
}

.fulfill-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0.2rem;
  border-radius: 999px;
  background: #eef5ef;
  border: 1px solid var(--line, #d5e3d8);
}

.fulfill-toggle-btn {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #5b6b60);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.fulfill-toggle-btn.is-active {
  color: #143d22;
}

.fulfill-toggle-thumb {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: calc(50% - 0.2rem);
  height: calc(100% - 0.4rem);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 61, 34, 0.12);
  transition: transform 0.22s ease;
  pointer-events: none;
}

.cart-fulfill[data-mode="pickup"] .fulfill-toggle-thumb {
  transform: translateX(100%);
}

.fulfill-panel {
  display: none;
  gap: 0.7rem;
}

.cart-fulfill[data-mode="delivery"] .fulfill-panel[data-fulfill-panel="delivery"],
.cart-fulfill[data-mode="pickup"] .fulfill-panel[data-fulfill-panel="pickup"] {
  display: grid;
}

.fulfill-panel[hidden] {
  display: none !important;
}

.cart-delivery {
  display: grid;
  gap: 0.45rem;
}

.cart-delivery-line {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.cart-delivery-line > span {
  display: inline;
}

.cart-delivery-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.2rem;
  padding: 0;
  border: 1px solid var(--line-strong, #9ab3a0);
  border-radius: 999px;
  background: #f4faf5;
  color: var(--green-ink, #1f5b34);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}

.cart-delivery-info:hover,
.cart-delivery-info[aria-expanded="true"] {
  border-color: var(--green, #2f7a45);
  background: #e8f5ea;
}

.cart-delivery-tip {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #f3f8f4;
  color: var(--muted, #5b6b60);
  font-size: 0.82rem;
  line-height: 1.4;
}

.cart-address {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 138, 75, 0.14);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 250, 246, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.cart-address-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.cart-address-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 11px;
  background: rgba(15, 138, 75, 0.1);
  color: var(--green-deep);
  flex-shrink: 0;
}

.cart-address-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.cart-address-label {
  margin: 0;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.cart-address-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

.cart-address-field {
  position: relative;
}

.cart-address-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(13, 31, 23, 0.12);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(13, 31, 23, 0.03);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.cart-address-input::placeholder {
  color: #8a9a91;
}

.cart-address-input:hover {
  border-color: rgba(15, 138, 75, 0.28);
}

.cart-address-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 138, 75, 0.14);
}

.cart-address-field:focus-within .cart-address-input {
  border-color: var(--green);
}

.cart-address-suggest {
  position: absolute;
  z-index: 8;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid rgba(13, 31, 23, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 36px rgba(10, 92, 50, 0.12);
  max-height: 240px;
  overflow: auto;
}

.cart-address-suggest[hidden] {
  display: none !important;
}

.cart-address-suggest li + li {
  margin-top: 0.1rem;
}

.cart-address-suggest li button {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.15rem 0.55rem;
  align-items: start;
  width: 100%;
  padding: 0.6rem 0.65rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.cart-address-suggest li button::before {
  content: "";
  grid-row: 1 / span 2;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.45;
  justify-self: center;
}

.cart-address-suggest li button:hover,
.cart-address-suggest li button.is-active {
  background: var(--bg-mint);
}

.cart-address-suggest li button:hover::before,
.cart-address-suggest li button.is-active::before {
  opacity: 1;
}

.cart-address-suggest strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.cart-address-suggest span {
  grid-column: 2;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.3;
}

.cart-delivery.is-loading,
.cart-address.is-loading {
  opacity: 0.65;
}

.cart-address.is-confirmed {
  border-color: rgba(15, 138, 75, 0.28);
  background:
    linear-gradient(165deg, #ffffff 0%, #eef8f1 100%);
}

.cart-address.is-confirmed .cart-address-icon {
  background: rgba(15, 138, 75, 0.16);
  color: var(--green);
}

.linkish {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-ink, #1f5b34);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.cart-summary .btn,
.cart-summary .btn-ghost {
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media (max-width: 860px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-row {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "thumb info"
      "qty sum";
  }

  .cart-thumb { grid-area: thumb; }
  .cart-info { grid-area: info; }
  .cart-qty { grid-area: qty; }
  .cart-line-sum {
    grid-area: sum;
    justify-items: start;
  }

  .cart-summary {
    position: static;
  }
}

/* -------- hero showcase -------- */
.hero.hero-showcase {
  min-height: 0;
  height: calc(100svh - var(--header-h));
  max-height: calc(100svh - var(--header-h));
  align-items: stretch;
}

.hero-showcase-inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: center;
  height: 100%;
  padding: 1.25rem 0 1.5rem;
}

.hero-kicker {
  margin: 0 0 0.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-showcase-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-lead-compact {
  margin: 0.7rem 0 1rem;
  font-size: 0.98rem;
  max-width: 28rem;
}

.hero-showcase-stage {
  min-width: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: calc(var(--radius) + 4px);
  padding: 0.85rem;
  backdrop-filter: blur(8px);
}

.showcase-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
  font-size: 0.86rem;
}

.showcase-nav {
  display: inline-flex;
  gap: 0.35rem;
}

.showcase-nav-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.showcase-nav-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.showcase-viewport {
  overflow: hidden;
}

.showcase-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.showcase-track::-webkit-scrollbar {
  display: none;
}

.showcase-slide {
  flex: 0 0 min(240px, 72%);
  scroll-snap-align: start;
}

.showcase-card {
  display: grid;
  gap: 0.45rem;
  height: 100%;
  padding: 0.65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.showcase-card:hover {
  color: var(--ink);
}

.showcase-card h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.showcase-media {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-mint);
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.showcase-dots button {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.showcase-dots button.is-active {
  background: #fff;
  width: 1rem;
}

.showcase-empty {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  padding: 1.25rem 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

/* -------- admin -------- */
.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-sidebar-title {
  margin: 0 0 0.65rem;
  padding: 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.admin-nav-link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.admin-nav-link:hover {
  background: var(--bg-mint);
  color: var(--green-deep);
}

.admin-nav-link.is-active {
  background: linear-gradient(135deg, rgba(15, 138, 75, 0.14), rgba(15, 138, 75, 0.06));
  color: var(--green-deep);
}

.admin-content {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.admin-search {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: #fff;
}

.admin-search:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-glow);
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  background: var(--bg-soft);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  word-break: break-all;
}

.admin-role {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-role.is-admin {
  background: rgba(15, 138, 75, 0.12);
  color: var(--green-deep);
}

.admin-inline-form {
  margin: 0;
}

.admin-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-mint);
}

.admin-pager {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.markup-global {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: #fff;
  box-shadow: var(--shadow);
}

.markup-global h2 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.markup-global-copy p {
  margin: 0;
}

.markup-hint {
  margin: 0;
  font-size: 0.88rem;
}

.markup-field {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-weight: 700;
  color: var(--muted);
}

.markup-field input {
  width: 5.2rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}

.markup-field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.markup-field input.is-saving {
  opacity: 0.65;
}

.markup-field input.is-saved {
  border-color: var(--green);
  background: #f2fbf5;
}

.markup-field input.is-error {
  border-color: #c0392b;
  background: #fff5f4;
}

.markup-tree {
  display: grid;
  gap: 0.35rem;
}

.markup-node {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.markup-node-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  padding-left: calc(0.7rem + var(--depth, 0) * 0.85rem);
}

.markup-toggle {
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}

.markup-toggle.is-open {
  transform: rotate(90deg);
  background: var(--bg-mint);
}

.markup-node-main {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.markup-node-main strong {
  font-size: 0.95rem;
}

.markup-node-main .muted {
  font-size: 0.78rem;
}

.markup-node-body {
  border-top: 1px solid var(--line);
  padding: 0.55rem 0.7rem 0.75rem;
  padding-left: calc(0.7rem + var(--depth, 0) * 0.85rem);
  background: linear-gradient(180deg, #f7fbf8 0%, #fff 100%);
}

.markup-node-body[hidden] {
  display: none !important;
}

.markup-children {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.markup-products-status {
  margin: 0.35rem 0;
  font-size: 0.88rem;
}

.markup-product-list {
  display: grid;
  gap: 0.35rem;
}

.markup-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(13, 31, 23, 0.08);
  background: #fff;
}

.markup-product-info {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.markup-product-info a {
  font-weight: 600;
  color: var(--ink);
}

.markup-product-info a:hover {
  color: var(--green-deep);
}

.markup-product-info .muted {
  font-size: 0.78rem;
}

.admin-carousel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-carousel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.admin-carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-carousel-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
}

.admin-carousel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.admin-carousel-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.admin-carousel-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-mint);
}

.admin-carousel-item.is-missing {
  opacity: 0.75;
}

.admin-actions {
  position: relative;
  margin-top: 1rem;
  display: inline-block;
}

.admin-actions-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 20;
  min-width: 240px;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.45rem;
}

.admin-actions-menu[hidden] {
  display: none !important;
}

.admin-actions-title {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-actions-status {
  margin: 0.35rem 0 0;
  min-height: 1.2em;
  font-size: 0.86rem;
}

.admin-actions-status.is-ok {
  color: var(--green-deep);
}

.admin-actions-status.is-error {
  color: #a32016;
}

@media (max-width: 900px) {
  .hero.hero-showcase {
    height: auto;
    max-height: none;
    min-height: calc(100svh - var(--header-h));
  }

  .hero-showcase-inner {
    grid-template-columns: 1fr;
    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }

  .admin-carousel-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    padding-top: 1rem;
  }
}

/* -------- city select -------- */
.header-city {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 10.5rem;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-deep);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 1;
  min-width: 0;
}

.header-city span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-city:hover {
  background: var(--bg-mint);
  border-color: rgba(15, 138, 75, 0.35);
}

body.city-modal-open {
  overflow: hidden;
}

.city-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 28, 18, 0.48);
  backdrop-filter: blur(4px);
}

.city-modal[hidden] {
  display: none !important;
}

.city-modal-card {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.35rem 1.45rem;
}

.city-picker-card {
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
}

.city-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.city-modal-close:hover {
  background: var(--bg-mint);
  color: var(--ink);
}

.city-modal-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

.city-modal-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.15;
}

.city-modal-text {
  margin: 0.65rem 0 1.15rem;
}

.city-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.city-picker-filters {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.city-picker-search,
.city-picker-region {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: #fff;
}

.city-picker-search:focus,
.city-picker-region:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-glow);
}

.city-picker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  display: grid;
  gap: 0.35rem;
  min-height: 0;
}

.city-picker-item {
  width: 100%;
  display: grid;
  gap: 0.15rem;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.city-picker-item strong {
  font-weight: 700;
}

.city-picker-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.city-picker-item:hover {
  border-color: rgba(15, 138, 75, 0.28);
  background: var(--bg-mint);
}

@media (max-width: 640px) {
  .header-city {
    max-width: 7.5rem;
    padding-inline: 0.55rem;
  }
}

/* -------- support widget -------- */
.support-widget {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.support-fab {
  position: relative;
  width: 3.6rem;
  height: 3.6rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, var(--green-bright), var(--green-deep));
  box-shadow:
    0 14px 34px rgba(15, 138, 75, 0.34),
    0 0 0 6px rgba(15, 138, 75, 0.12);
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}

.support-fab:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.05);
}

.support-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(20, 184, 102, 0.45);
  animation: supportPulse 2.4s var(--ease) infinite;
  pointer-events: none;
}

.support-widget.is-online .support-fab-pulse {
  border-color: rgba(20, 184, 102, 0.7);
}

@keyframes supportPulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

.support-panel {
  width: min(320px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 22px 50px rgba(10, 92, 50, 0.16);
  padding: 1.1rem 1.05rem 1rem;
  position: relative;
  animation: supportPanelIn 0.28s var(--ease) both;
}

.support-panel[hidden] {
  display: none !important;
}

@keyframes supportPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.support-panel-close {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.support-panel-close:hover {
  background: var(--bg-mint);
  color: var(--ink);
}

.support-panel-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

.support-panel-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.2;
}

.support-panel-status {
  margin: 0.55rem 0 0.9rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

.support-channels {
  display: grid;
  gap: 0.5rem;
}

.support-channel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.support-channel:hover {
  background: var(--bg-mint);
  border-color: rgba(15, 138, 75, 0.28);
  color: var(--ink);
  transform: translateY(-1px);
}

.support-channel-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #2aabee;
  color: #fff;
}

.support-channel-icon-max {
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.support-channel-icon-max img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.support-channel-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.support-channel-text strong {
  font-weight: 800;
}

.support-channel-text span {
  color: var(--muted);
  font-size: 0.84rem;
}

.support-panel-hours {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
}

.support-tip {
  position: relative;
  width: min(280px, calc(100vw - 5.5rem));
  margin-right: 0.35rem;
  padding: 0.85rem 1.85rem 0.85rem 0.95rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(10, 92, 50, 0.14);
  animation: supportTipIn 0.35s var(--ease) both;
}

.support-tip[hidden] {
  display: none !important;
}

.support-tip::after {
  content: "";
  position: absolute;
  right: 1.35rem;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

.support-tip-close {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.support-tip-close:hover {
  background: var(--bg-mint);
  color: var(--ink);
}

.support-tip-text {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}

.support-tip-cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  background: linear-gradient(135deg, var(--green-bright), var(--green-deep));
  color: #fff;
}

.support-tip-cta:hover {
  filter: brightness(1.05);
}

@keyframes supportTipIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-fab-pulse,
  .support-panel,
  .support-tip {
    animation: none;
  }
}

/* -------- blog -------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.blog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(10, 92, 50, 0.12);
}

.blog-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(145deg, var(--bg-mint), #fff);
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.03);
}

.blog-card-body {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1.05rem 1.1rem 1.15rem;
}

.blog-card-date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--green);
}

.blog-card-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.blog-card-title a {
  color: var(--ink);
}

.blog-card-title a:hover {
  color: var(--green-deep);
}

.blog-card-preview {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-more {
  margin-top: 0.25rem;
  font-weight: 700;
  color: var(--green-deep);
}

.blog-post {
  width: min(760px, 100%);
}

.blog-post-header {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.blog-post-date {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--green);
}

.blog-post-cover {
  margin: 0 0 1.35rem;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: var(--bg-mint);
  border: 1px solid var(--line);
}

.blog-post-cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-post-content {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
}

.blog-post-content > *:first-child {
  margin-top: 0;
}

.blog-post-content h2,
.blog-post-content h3 {
  margin: 1.6rem 0 0.7rem;
  font-family: var(--display);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.blog-post-content h2 {
  font-size: 1.35rem;
}

.blog-post-content h3 {
  font-size: 1.15rem;
}

.blog-post-content p {
  margin: 0 0 1rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

.blog-post-content li {
  margin: 0.3rem 0;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0.5rem 0 1rem;
}

.blog-post-content a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
}

.blog-post-content th,
.blog-post-content td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
}

.blog-post-content th {
  background: var(--bg-soft);
}

.blog-post-back {
  margin: 2rem 0 0;
}

@media (max-width: 860px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
