:root {
  --moss-950: #162017;
  --moss-900: #1d2b1e;
  --moss-800: #273a27;
  --moss-700: #365338;
  --moss-500: #6f8b5f;
  --leaf-100: #edf2e5;
  --leaf-50: #f7f8f0;
  --wood-700: #7a5638;
  --wood-500: #b8895e;
  --honey: #d8ae62;
  --amber: #c87932;
  --water: #5f9db0;
  --text: #243024;
  --muted: #65725f;
  --line: #d9ddcf;
  --paper: #fffdf4;
  --white: #ffffff;
  --danger: #a23b31;
  --ok: #286c3f;
  --shadow: 0 18px 38px rgba(22, 32, 23, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(247, 248, 240, 0.98), rgba(238, 241, 229, 0.98)),
    url("images/hero-forest.png") center top / 1400px auto fixed;
  min-height: 100vh;
}

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

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 253, 244, 0.96);
  border-bottom: 1px solid rgba(39, 58, 39, 0.12);
  backdrop-filter: blur(16px);
}

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

.topline {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff9dd;
  background: linear-gradient(90deg, var(--moss-950), var(--moss-700));
  font-size: 0.82rem;
  font-weight: 900;
}

.header-main {
  min-height: 72px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--moss-950);
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(216, 174, 98, 0.75);
  background: var(--moss-900);
}

.brand span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 3.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.brand.small span {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
}

.brand.small img {
  width: 38px;
  height: 38px;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(54, 83, 56, 0.22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--moss-900);
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  flex: 0 0 auto;
}

.icon-btn::before,
.icon-btn::after {
  content: "";
  display: block;
  pointer-events: none;
}

.icon-menu::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  transform: translate(-50%, -50%);
}

.icon-orders::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 2px 2px 5px 5px;
  transform: translate(-50%, -35%);
}

.icon-orders::after {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 9px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  transform: translateX(-50%);
}

.icon-close::before,
.icon-close::after,
.icon-clear::before,
.icon-clear::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.icon-close::before,
.icon-clear::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.icon-close::after,
.icon-clear::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.back-link {
  color: var(--moss-900);
  text-decoration: none;
  font-weight: 900;
  min-width: max-content;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  gap: 10px;
  padding-bottom: 14px;
}

.search-field input,
.sort-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(54, 83, 56, 0.22);
  border-radius: var(--radius);
  background: #fffef8;
  color: var(--moss-950);
  padding: 0 14px;
  outline: none;
}

.sort-select {
  font-weight: 800;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(12, 20, 13, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  width: min(86vw, 330px);
  min-height: 100%;
  background: var(--paper);
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  padding: 16px;
}

.drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.drawer-nav,
.category-list {
  display: grid;
  gap: 8px;
}

.drawer-nav {
  margin-top: 14px;
}

.category-btn {
  border: 1px solid rgba(54, 83, 56, 0.16);
  background: rgba(255, 255, 255, 0.6);
  color: var(--moss-900);
  border-radius: var(--radius);
  min-height: 44px;
  padding: 9px 12px;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.category-btn.active {
  background: #e8eedc;
  border-color: rgba(54, 83, 56, 0.4);
}

.hero {
  position: relative;
  min-height: clamp(400px, calc(100vh - 260px), 520px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid rgba(39, 58, 39, 0.16);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 28, 18, 0.78), rgba(16, 28, 18, 0.24) 54%, rgba(16, 28, 18, 0.38)),
    linear-gradient(0deg, rgba(22, 32, 23, 0.8), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(38px, 7vh, 76px) 0 clamp(34px, 6vh, 58px);
  color: var(--white);
}

.kicker,
.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--honey);
  font-size: 0.76rem;
  font-weight: 900;
}

.hero h1,
.catalog-head h2,
.filters h2,
.product-info h1,
.checkout-main h1,
.summary-panel h2,
.orders-page h1,
.status-card h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.7rem, 7vw, 5.45rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero p:not(.kicker) {
  max-width: 610px;
  margin: 18px 0 0;
  color: #fff7dc;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.5;
  font-weight: 800;
}

.btn {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  filter: grayscale(0.22);
  opacity: 0.58;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--moss-800), var(--moss-500));
  color: var(--white);
  box-shadow: 0 10px 22px rgba(22, 32, 23, 0.22);
}

.btn-light {
  background: #fffef7;
  color: var(--moss-950);
  border-color: rgba(54, 83, 56, 0.22);
}

.btn-block {
  width: 100%;
}

.hero .btn {
  margin-top: 24px;
  background: linear-gradient(135deg, var(--honey), var(--amber));
  color: #231a0d;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 0;
}

.trust-band article {
  min-height: 82px;
  border: 1px solid rgba(54, 83, 56, 0.14);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 253, 244, 0.78);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band strong {
  color: var(--moss-950);
  font-weight: 900;
}

.trust-band span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.shop-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  padding: 14px 0 46px;
}

.filters {
  position: sticky;
  top: 140px;
  align-self: start;
  border: 1px solid rgba(54, 83, 56, 0.14);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 253, 244, 0.84);
}

.filters h2,
.catalog-head h2 {
  margin: 0;
  color: var(--moss-950);
}

.filters h2 {
  font-size: 1.7rem;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
}

.catalog-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.result-count {
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  border: 1px solid rgba(54, 83, 56, 0.14);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(22, 32, 23, 0.08);
}

.product-card a {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.product-card figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  background: #e8eddf;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

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

.card-body {
  padding: 12px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tag {
  border-radius: 999px;
  padding: 3px 8px;
  background: #edf2e5;
  color: var(--moss-800);
  font-size: 0.72rem;
  font-weight: 900;
}

.product-card h3 {
  margin: 0;
  min-height: 46px;
  font-size: 1rem;
  line-height: 1.25;
}

.price-row {
  margin-top: 10px;
  display: grid;
  gap: 2px;
}

.price-now {
  color: var(--moss-950);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
}

.price-old,
.old-price {
  color: #8b806f;
  text-decoration: line-through;
  font-size: 0.86rem;
  font-weight: 800;
}

.mini-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.product-page {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  gap: 28px;
  padding: 24px 0 110px;
}

.product-media,
.product-info,
.checkout-main,
.summary-panel,
.status-card {
  border: 1px solid rgba(54, 83, 56, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 244, 0.88);
  box-shadow: var(--shadow);
}

.product-media {
  padding: 12px;
}

.gallery {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #edf2e5;
}

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

.thumb-row {
  margin-top: 10px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84px;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-row button {
  border: 2px solid transparent;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  background: #e8eddf;
  cursor: pointer;
}

.thumb-row button.active {
  border-color: var(--honey);
}

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

.product-info {
  padding: 18px;
}

.breadcrumbs {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.product-info h1 {
  margin: 0;
  color: var(--moss-950);
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.95;
}

.rating-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--wood-700);
  font-weight: 900;
}

.product-description {
  margin: 16px 0 0;
  color: #3b4638;
  line-height: 1.58;
  font-weight: 700;
}

.bullet-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
  color: var(--moss-900);
  font-weight: 800;
}

.bullet-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--honey);
  position: absolute;
  left: 0;
  top: 0.58em;
}

.quantity-box {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-weight: 900;
}

.stepper {
  display: inline-grid;
  grid-template-columns: 42px 46px 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fffef7;
}

.stepper button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--moss-900);
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.stepper strong {
  text-align: center;
}

.price-panel {
  margin: 16px 0;
  display: grid;
  gap: 4px;
}

.current-price {
  color: var(--moss-950);
  font-size: 2rem;
  line-height: 1;
}

.installment {
  color: var(--ok);
  font-weight: 900;
}

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  min-height: 72px;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px max(14px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-right));
  background: rgba(255, 253, 244, 0.97);
  border-top: 1px solid rgba(54, 83, 56, 0.14);
}

.sticky-bar span {
  color: var(--muted);
  font-weight: 900;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.7fr);
  gap: 18px;
  padding: 24px 0 70px;
}

.checkout-main,
.summary-panel {
  padding: 18px;
}

.checkout-main h1,
.summary-panel h2,
.orders-page h1,
.status-card h1 {
  margin: 0;
  color: var(--moss-950);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.98;
}

.form-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 5px;
  font-size: 0.86rem;
  color: var(--moss-900);
  font-weight: 900;
}

.form-grid input {
  width: 100%;
  min-height: 46px;
  border-radius: var(--radius);
  border: 1px solid rgba(54, 83, 56, 0.24);
  background: #fffef8;
  padding: 0 12px;
  outline: none;
}

.form-grid .form-action {
  grid-column: 1 / -1;
}

.message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 900;
}

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

.message.success {
  color: var(--ok);
}

.message.saving {
  color: #72500d;
}

.btn.is-saving {
  cursor: progress;
  opacity: 0.82;
}

.btn.is-saved {
  background: var(--ok);
  border-color: var(--ok);
  color: #fffef8;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(54, 83, 56, 0.1);
  color: var(--muted);
  font-weight: 900;
}

.summary-line strong {
  color: var(--moss-950);
  text-align: right;
}

.summary-line.total {
  border-bottom: 0;
  font-size: 1.12rem;
}

.quote-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
}

.quote-card {
  border: 1px solid rgba(54, 83, 56, 0.16);
  border-radius: var(--radius);
  background: #fffef8;
}

.quote-card label {
  min-height: 68px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
}

.quote-card strong,
.quote-card span {
  display: block;
}

.quote-card .quote-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.quote-price {
  color: var(--moss-950);
  white-space: nowrap;
}

.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 14px;
  background:
    linear-gradient(180deg, rgba(22, 32, 23, 0.58), rgba(22, 32, 23, 0.74)),
    url("images/hero-forest.png") center / cover;
}

.status-card {
  width: min(720px, 100%);
  padding: 22px;
  text-align: center;
}

.status-card > img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 2px solid var(--honey);
}

.status-card p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 800;
}

.status-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--moss-950) !important;
  background: #edf2e5;
}

.status-badge.ok {
  background: #e5f3df;
  color: var(--ok) !important;
}

.status-badge.error {
  background: #fae7df;
  color: var(--danger) !important;
}

.status-meta {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.status-meta div {
  border: 1px solid rgba(54, 83, 56, 0.14);
  border-radius: var(--radius);
  background: #fffef8;
  padding: 12px;
  min-width: 0;
}

.status-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-meta strong {
  display: block;
  margin-top: 4px;
  color: var(--moss-950);
  word-break: break-word;
}

.button-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.event-log {
  margin-top: 14px;
  max-height: 150px;
  overflow-y: auto;
  text-align: left;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.orders-page {
  padding: 24px 0 60px;
}

.orders-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.order-card,
.empty-box {
  border: 1px solid rgba(54, 83, 56, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 244, 0.9);
  padding: 16px;
  box-shadow: 0 12px 24px rgba(22, 32, 23, 0.08);
}

.order-card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.order-card p,
.empty-box p {
  margin: 4px 0;
  color: var(--muted);
  font-weight: 800;
}

.seller-page {
  padding: 24px 0 60px;
}

.seller-hero {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid rgba(54, 83, 56, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 253, 244, 0.94), rgba(241, 246, 230, 0.86)),
    url("images/hero-forest.png") center / cover;
}

.seller-hero h1,
.seller-sale h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.seller-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.seller-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.seller-hero .btn {
  width: fit-content;
}

.seller-sales-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.seller-sale {
  padding: 16px;
  border: 1px solid rgba(54, 83, 56, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 244, 0.9);
  box-shadow: var(--shadow-soft);
}

.seller-sale-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.seller-sale-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1;
}

.seller-sale-head > strong {
  font-size: 1.25rem;
  color: var(--moss-950);
  white-space: nowrap;
}

.seller-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf1e4;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.status-chip.ok {
  background: #dcebd6;
  color: #24522d;
}

.status-chip.warn {
  background: #fff0c9;
  color: #72500d;
}

.status-chip.error {
  background: #f6d6d1;
  color: #873325;
}

.seller-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.seller-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.seller-grid strong {
  color: var(--moss-950);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--paper);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 18px;
  background: #17291b;
  color: #fffef4;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fffef4;
  text-decoration: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.admin-brand img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
}

.admin-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-nav button,
.admin-sidebar-actions .btn {
  width: 100%;
  justify-content: flex-start;
}

.admin-nav button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #fffef4;
  padding: 10px 12px;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.admin-nav button.active,
.admin-nav button:hover {
  background: #fffef4;
  color: var(--moss-950);
}

.admin-sidebar-actions {
  display: grid;
  gap: 8px;
}

.admin-workspace {
  min-width: 0;
  padding: 22px;
}

.admin-workspace > .message:empty {
  display: none;
}

.admin-workspace > .message {
  position: sticky;
  top: 12px;
  z-index: 25;
  min-height: 0;
  margin: 0 0 14px;
  padding: 13px 16px;
  border: 1px solid rgba(54, 83, 56, 0.16);
  border-left: 5px solid var(--moss-700);
  border-radius: var(--radius);
  background: rgba(255, 253, 244, 0.98);
  box-shadow: 0 14px 32px rgba(22, 32, 23, 0.14);
  color: var(--moss-950);
}

.admin-workspace > .message.success {
  border-left-color: var(--ok);
  background: #edf7e6;
  color: #24522d;
}

.admin-workspace > .message.error {
  border-left-color: var(--danger);
  background: #fff0ed;
  color: var(--danger);
}

.admin-workspace > .message.saving {
  border-left-color: var(--honey);
  background: #fff7df;
  color: #72500d;
}

.admin-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 120;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(54, 83, 56, 0.18);
  border-left: 5px solid var(--moss-700);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 22px 46px rgba(22, 32, 23, 0.22);
  color: var(--moss-950);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast.success {
  border-left-color: var(--ok);
  background: #edf7e6;
  color: #24522d;
}

.admin-toast.error {
  border-left-color: var(--danger);
  background: #fff0ed;
  color: var(--danger);
}

.admin-toast.saving {
  border-left-color: var(--honey);
  background: #fff7df;
  color: #72500d;
}

.admin-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-panel-head h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  color: var(--moss-950);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-stats article,
.admin-card-flat {
  border: 1px solid rgba(54, 83, 56, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 244, 0.9);
  box-shadow: var(--shadow-soft);
}

.admin-stats article {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.admin-stats span {
  color: var(--muted);
  font-weight: 900;
}

.admin-stats strong {
  font-size: 1.7rem;
  color: var(--moss-950);
}

.admin-card-flat {
  padding: 16px;
}

.admin-card-flat h2,
.admin-form h2 {
  margin: 0 0 12px;
  color: var(--moss-950);
  font-size: 1.25rem;
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(54, 83, 56, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 244, 0.9);
  box-shadow: var(--shadow-soft);
}

.compact-form {
  margin-top: 14px;
}

.admin-form label,
.admin-toolbar label,
.theme-grid label {
  display: grid;
  gap: 6px;
  color: var(--moss-950);
  font-weight: 900;
}

.admin-form small {
  color: var(--muted);
  font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(54, 83, 56, 0.18);
  border-radius: var(--radius);
  background: #fffef8;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
}

.admin-form textarea {
  resize: vertical;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.admin-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-upload-row input[type="file"] {
  max-width: 320px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.theme-grid input {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: transparent;
  padding: 0;
}

.admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8eedc;
  color: var(--moss-950);
  font-weight: 900;
}

.btn.danger {
  color: #873325;
  border-color: rgba(135, 51, 37, 0.28);
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-page,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  body[data-page="product"] {
    padding-bottom: 84px;
  }

  .container {
    width: min(100% - 18px, 680px);
  }

  .topline {
    font-size: 0.74rem;
    gap: 10px;
  }

  .header-main {
    min-height: 64px;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .brand span {
    font-size: 1.3rem;
    white-space: normal;
    text-align: center;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .search-row {
    grid-template-columns: 1fr;
    max-height: 112px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition:
      max-height 0.22s ease,
      opacity 0.18s ease,
      transform 0.22s ease,
      padding-bottom 0.22s ease;
  }

  .site-header.search-collapsed .search-row {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }

  .hero {
    min-height: min(440px, calc(100vh - 178px));
  }

  .hero-content {
    padding-top: 38px;
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 15vw, 4.1rem);
  }

  .trust-band {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .trust-band article {
    min-height: 68px;
  }

  .shop-layout {
    grid-template-columns: 1fr;
    padding-top: 8px;
  }

  .filters {
    display: none;
  }

  .catalog-head {
    align-items: start;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .card-body {
    padding: 10px;
  }

  .product-card h3 {
    font-size: 0.9rem;
    min-height: 58px;
  }

  .price-now {
    font-size: 1.14rem;
  }

  .product-page {
    padding-top: 10px;
  }

  .product-info,
  .checkout-main,
  .summary-panel {
    padding: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .status-meta {
    grid-template-columns: 1fr;
  }

  .seller-sale-head {
    display: grid;
  }

  .seller-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  .admin-workspace {
    padding: 12px;
  }

  .admin-panel-head,
  .admin-toolbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-stats,
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-bar .btn {
    min-width: 132px;
  }

  .sticky-bar {
    display: flex;
  }
}

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

  .hero h1 {
    font-size: 2.55rem;
  }

  .brand span {
    font-size: 1.08rem;
  }
}
