:root {
  --green: #174d2a;
  --green-dark: #0c2b19;
  --lime: #94d500;
  --lime-light: #c4ed6d;
  --ink: #1c2b21;
  --muted: #788279;
  --line: #e5eae2;
  --paper: #fff;
  --bg: #f7f9f5;
  --red: #b33b35;
  --shadow: 0 16px 40px #162c1810;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    17px "DM Sans",
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.topbar {
  height: 78px;
  padding: 0 max(calc((100vw - 1200px) / 2), 5vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #edf0eb;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
}
.brand img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  object-position: center 34%;
  border-radius: 50%;
  background: #092a19;
  border: 2px solid var(--lime);
  box-shadow: 0 0 0 3px #94d50022;
}
.brand span {
  display: grid;
  gap: 1px;
}
.brand b {
  font:
    800 20px Manrope,
    sans-serif;
  letter-spacing: -0.6px;
}
.brand small {
  font-size: 12px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #839080;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}
.topbar nav a {
  transition: color 0.2s;
}
.topbar nav a:hover,
.back-link:hover {
  color: #67a300;
}
.cart-link {
  padding: 10px 14px;
  border-radius: 30px;
  background: #f2f7ed;
}
.cart-link span {
  margin-left: 6px;
  color: var(--green);
  font-weight: 800;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}
.hero {
  position: relative;
  overflow: hidden;
  margin: 28px auto 84px;
  max-width: 1200px;
  min-height: 410px;
  border-radius: 28px;
  background: linear-gradient(112deg, #0b2d1a 0%, #114927 66%, #183e25 100%);
  display: flex;
  align-items: center;
  padding: 60px 8%;
  color: #fff;
}
.hero > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 540px;
}
.eyebrow {
  display: block;
  color: #78a83a;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 13px;
}
.hero .eyebrow {
  color: var(--lime-light);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.hero h1 {
  font:
    800 clamp(38px, 5.5vw, 64px)/1.08 Manrope,
    sans-serif;
  letter-spacing: -2.4px;
  margin: 0 0 16px;
}
.hero p {
  color: #d0dbd1;
  margin-bottom: 28px;
}
.hero-art {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(34%, 330px);
  aspect-ratio: 1;
  border: 2px solid #94d50077;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 65px #94d50019;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.orb {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: #94d5000b;
  right: 21%;
  top: -270px;
}
.button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--lime);
  color: #142319;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  background: #a9e622;
}
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.button.secondary {
  background: #eef3ea;
  color: #2a5032;
}
.button.full {
  width: 100%;
}
.catalog-section {
  padding-bottom: 80px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-heading h2,
.order-section h2 {
  font:
    800 32px Manrope,
    sans-serif;
  letter-spacing: -1.1px;
  margin-bottom: 0;
}
.catalog-note {
  color: #929a91;
  font-size: 14px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 14px;
}
.search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}
.search > span {
  font-size: 27px;
  color: #7a887a;
  padding-left: 7px;
}
.search input,
.price-filter input,
.filter-bar input,
.admin-search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  padding: 9px 4px;
}
.price-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  border-left: 1px solid var(--line);
  padding-left: 13px;
  color: #889187;
  font-size: 13px;
}
.price-filter input {
  width: 75px;
  border: 1px solid #edf0eb;
  border-radius: 7px;
  padding: 8px;
  color: var(--ink);
}
.sort {
  display: grid;
  gap: 3px;
  border-left: 1px solid var(--line);
  padding-left: 13px;
  color: #889187;
  font-size: 12px;
}
.sort select {
  border: 0;
  outline: none;
  background: white;
  color: #26362a;
  font-weight: 600;
  font-size: 14px;
}
.category-pills {
  display: flex;
  gap: 9px;
  overflow: auto;
  padding: 19px 0 24px;
}
.pill {
  white-space: nowrap;
  border: 1px solid #e5eae2;
  border-radius: 30px;
  background: #fff;
  color: #556257;
  padding: 9px 15px;
  font-size: 14px;
}
.pill.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: white;
}
.pill small {
  margin-left: 7px;
  color: #a8b1a7;
}
.pill.active small {
  color: #c5e88d;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  background: #fff;
  border: 1px solid #edf0eb;
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.product-photo {
  height: 196px;
  background: #f0f4ee;
  position: relative;
  overflow: hidden;
  display: block;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-photo img {
  transform: scale(1.04);
}
.stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 6px;
  padding: 6px 9px;
  background: #fff;
  color: #885d43;
  font-size: 12px;
  font-weight: 700;
}
.product-info {
  padding: 16px;
}
.product-category {
  font-size: 12px;
  color: #82a550;
  font-weight: 700;
}
.product-info h3 {
  font:
    700 17px/1.4 Manrope,
    sans-serif;
  margin: 7px 0 5px;
}
.product-info > p {
  font-size: 13px;
  line-height: 1.5;
  color: #90978f;
  margin: 0 0 8px;
}
.option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #777f77;
  margin: 8px 0;
}
.option-label select {
  max-width: 150px;
  border: 1px solid #edf0eb;
  border-radius: 6px;
  padding: 5px;
  background: #fff;
  font-size: 12px;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.product-bottom > b {
  white-space: nowrap;
  font:
    800 19px Manrope,
    sans-serif;
}
.add-button {
  border: 1px solid #dce7d5;
  border-radius: 8px;
  background: #f6faf3;
  color: #285432;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.add-button:hover {
  border-color: #aed875;
  background: #f0f8e5;
}
.add-button span {
  font-size: 18px;
  margin-left: 4px;
}
.add-button:disabled {
  opacity: 0.6;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #687367;
  grid-column: 1/-1;
}
.empty-state > span {
  font-size: 44px;
  color: #a8c38a;
}
.empty-state h3 {
  font: 700 21px Manrope;
  color: var(--ink);
  margin: 10px 0;
}
.empty-state p {
  font-size: 15px;
}
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-top: 28px;
}
.page-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 36px;
  height: 36px;
}
.page-btn.active {
  background: var(--green);
  color: white;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #173c25;
  color: white;
  padding: 13px 20px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 20;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.loading {
  padding: 40px;
  text-align: center;
  color: #758274;
}
.page-intro {
  padding: 38px 0 24px;
}
.back-link {
  display: inline-block;
  color: #6f8f61;
  font-size: 14px;
  margin-bottom: 24px;
}
.page-intro h1,
.admin-head h1,
.invoice-head h1 {
  font:
    800 40px Manrope,
    sans-serif;
  letter-spacing: -1.5px;
  margin: 4px 0 8px;
}
.page-intro p,
.admin-head p {
  color: #838c83;
  font-size: 15px;
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 25px;
  align-items: start;
}
.cart-items {
  display: grid;
  gap: 9px;
}
.cart-row {
  display: grid;
  grid-template-columns: 64px minmax(100px, 1fr) auto auto auto 24px;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px;
}
.cart-row > img {
  width: 64px;
  height: 64px;
  border-radius: 9px;
  object-fit: cover;
  background: #edf3e8;
}
.cart-description {
  display: grid;
  gap: 5px;
}
.cart-description b {
  font-size: 14px;
}
.cart-description small {
  font-size: 12px;
  color: #879084;
}
.cart-row strong,
.cart-row > b {
  font-size: 14px;
  white-space: nowrap;
}
.quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.quantity button {
  border: 0;
  background: white;
  width: 29px;
  height: 32px;
}
.quantity input {
  width: 40px;
  min-width: 40px;
  text-align: center;
  border: 0;
  outline: 0;
}
.remove {
  border: 0;
  background: transparent;
  color: #a2aaa0;
  font-size: 22px;
}
.checkout-card,
.editor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 23px;
}
.checkout-card h2,
.editor-card h2 {
  font: 700 20px Manrope;
  margin-bottom: 20px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.summary-line span {
  color: #818a81;
}
.summary-line.total {
  font-size: 17px;
  border: 0;
  padding: 19px 0;
}
.summary-line.total b {
  font: 800 20px Manrope;
}
.text-button {
  display: block;
  border: 0;
  background: transparent;
  color: #859081;
  font-size: 13px;
  margin: 13px auto 0;
}
.order-section {
  padding: 65px 0 85px;
}
.order-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  max-width: 800px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid label,
.stack label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #59665a;
}
.form-grid input,
.form-grid select,
.stack input,
.stack select,
.stack textarea,
.inline-editor input,
.filter-bar input,
.filter-bar select,
.inline-form select {
  width: 100%;
  border: 1px solid #e6ebe3;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.form-grid input:focus,
.form-grid select:focus,
.stack input:focus {
  border-color: #91bf5b;
}
.wide {
  grid-column: 1/-1;
}
.consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  color: #7b847a;
  font-size: 13px;
}
.footer {
  display: flex;
  justify-content: space-between;
  padding: 25px 0 30px;
  border-top: 1px solid #e7ece4;
  color: #929a90;
  font-size: 12px;
}
.login-card,
.setup {
  max-width: 410px;
  margin: 8vh auto;
  background: #fff;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.login-card > .brand img,
.setup > img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center 34%;
  border-radius: 50%;
  background: #092a19;
}
.setup > img {
  display: block;
  margin-bottom: 16px;
}
.login-card h1,
.setup h1 {
  font: 800 27px Manrope;
  letter-spacing: -0.7px;
  margin: 25px 0;
}
.stack {
  display: grid;
  gap: 16px;
}
.login-card .back-link {
  margin: 24px 0 0;
}
.notice {
  padding: 12px 15px;
  border-radius: 9px;
  font-size: 14px;
  margin: 12px 0 18px;
}
.notice.error {
  background: #fff0ee;
  color: #9c3f37;
}
.notice.success {
  background: #f0f8e9;
  color: #3e762a;
}
.muted,
.setup > p {
  font-size: 14px;
  line-height: 1.7;
  color: #7d877c;
}
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 43px 0 23px;
}
.admin-head h1 small {
  font: 600 15px "DM Sans";
  color: #81907e;
  background: #eef3ea;
  border-radius: 20px;
  padding: 5px 10px;
  vertical-align: middle;
}
.admin-search {
  max-width: 400px;
  margin: 12px 0 18px;
}
.admin-search input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
}
.admin-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.admin-table th {
  padding: 14px;
  background: #f6f8f4;
  color: #7b8579;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.admin-table td {
  padding: 13px 14px;
  border-top: 1px solid #eff1ed;
  white-space: nowrap;
}
.table-product {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-product img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 7px;
}
.status-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 20px;
  background: #f7f0e9;
  color: #916440;
  font-size: 12px;
}
.status-pill.in-stock {
  background: #eff7e9;
  color: #477c31;
}
.small-action {
  border: 0;
  background: transparent;
  color: #46792f;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 7px;
}
.danger-text {
  color: #b44d43;
}
.inline-form {
  display: inline-flex;
}
.empty-admin {
  text-align: center;
  padding: 28px;
  color: #899288;
  font-size: 15px;
}
.editor-card {
  margin: 35px 0;
  padding: 26px;
}
.editor-card .form-grid {
  margin-bottom: 18px;
}
.check-row {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}
.check-row label {
  font-size: 13px;
  color: #617060;
}
.button-row {
  display: flex;
  gap: 10px;
}
.inline-editor {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}
.category-admin-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.category-admin-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 11px;
}
.category-admin-item > div {
  display: grid;
  gap: 4px;
  flex: 1;
}
.category-admin-item small,
.cell-sub {
  font-size: 12px;
  color: #8b9589;
  display: block;
  margin-top: 5px;
}
.category-icon {
  width: 37px;
  height: 37px;
  border-radius: 9px;
  background: #f0f7e8;
  display: grid;
  place-items: center;
  color: #6ea43c;
}
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: end;
  background: #fff;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 12px 0 18px;
}
.filter-bar label {
  display: grid;
  gap: 5px;
  min-width: 130px;
  color: #788378;
  font-size: 12px;
}
.filter-bar select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: white;
}
.inline-form select {
  padding: 7px;
  font-size: 12px;
}
.invoice-head {
  padding: 35px 0 25px;
}
.invoice-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.invoice-heading-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.invoice-brand-logo {
  display: block;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.invoice-title p {
  color: #849082;
  font-size: 14px;
}
.invoice-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 60px;
}
.invoice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 24px;
}
.invoice-grid > div {
  display: grid;
  gap: 7px;
}
.invoice-grid span {
  color: #899287;
  font-size: 12px;
}
.invoice-grid b {
  font-size: 15px;
}
.invoice-table {
  border-radius: 10px;
}
.invoice-total {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  padding-top: 18px;
  font-size: 14px;
  color: #7d887d;
}
.invoice-total b {
  font: 800 24px Manrope;
  color: var(--ink);
}
.settings-card {
  max-width: 600px;
}
.settings-card small {
  color: #889286;
  font-size: 12px;
  font-weight: 400;
}
.setup {
  max-width: 500px;
}
.setup .button {
  margin: 10px 0;
}
.setup .stack {
  margin: 18px 0;
}
.consent input,
.check-row input {
  accent-color: var(--green);
}
@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero {
    margin: 20px 18px 65px;
  }
  .hero-art {
    right: 4%;
    width: 30%;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .checkout-card {
    max-width: none;
  }
  .cart-row {
    grid-template-columns: 56px minmax(80px, 1fr) auto auto 22px;
  }
  .cart-row > img {
    width: 56px;
    height: 56px;
  }
  .cart-row > b {
    display: none;
  }
}
@media (max-width: 680px) {
  .topbar {
    height: 66px;
    padding: 0 17px;
  }
  .topbar nav {
    gap: 13px;
    font-size: 13px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .brand b {
    font-size: 17px;
  }
  .brand small {
    font-size: 10px;
  }
  .container {
    padding: 0 16px;
  }
  .hero {
    min-height: 390px;
    margin: 14px 10px 55px;
    padding: 36px 25px;
    align-items: flex-start;
  }
  .hero > div:first-child {
    padding-top: 10px;
  }
  .hero-art {
    right: 6%;
    bottom: 15px;
    top: auto;
    transform: none;
    width: 145px;
    opacity: 0.52;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero p {
    max-width: 245px;
    font-size: 15px;
  }
  .section-heading {
    align-items: start;
    gap: 10px;
  }
  .section-heading h2,
  .order-section h2 {
    font-size: 26px;
  }
  .catalog-note {
    max-width: 150px;
    text-align: right;
    line-height: 1.5;
    font-size: 12px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .search {
    flex-basis: 100%;
    border-bottom: 1px solid var(--line);
    padding-bottom: 7px;
  }
  .price-filter {
    border: 0;
    padding-left: 5px;
  }
  .sort {
    margin-left: auto;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-photo {
    height: 150px;
  }
  .product-info {
    padding: 11px;
  }
  .product-info h3 {
    font-size: 15px;
  }
  .product-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .add-button {
    width: 100%;
  }
  .product-bottom > b {
    font-size: 17px;
  }
  .option-label {
    font-size: 11px;
  }
  .option-label select {
    max-width: 112px;
  }
  .page-intro h1,
  .admin-head h1,
  .invoice-head h1 {
    font-size: 34px;
  }
  .cart-row {
    grid-template-columns: 50px minmax(60px, 1fr) auto 25px;
    gap: 8px;
  }
  .cart-row > img {
    width: 50px;
    height: 50px;
  }
  .cart-row > strong {
    display: none;
  }
  .quantity {
    grid-column: 2;
    grid-row: 2;
    width: max-content;
  }
  .cart-row > b {
    display: block;
    grid-column: 3;
    grid-row: 2;
  }
  .remove {
    grid-column: 4;
    grid-row: 1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .order-form {
    padding: 19px;
  }
  .footer {
    gap: 15px;
  }
  .admin-head {
    gap: 12px;
    align-items: flex-start;
  }
  .admin-head > .button {
    white-space: nowrap;
    padding: 11px;
  }
  .filter-bar {
    flex-wrap: wrap;
  }
  .filter-bar label {
    flex: 1;
  }
  .inline-editor {
    grid-template-columns: 1fr;
  }
  .category-admin-item {
    gap: 5px;
    flex-wrap: wrap;
  }
  .category-admin-item > div {
    min-width: 60%;
  }
  .invoice-title {
    align-items: flex-start;
    gap: 10px;
  }
  .invoice-title > .button {
    font-size: 12px;
    padding: 11px;
  }
  .invoice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .invoice-card {
    padding: 15px;
  }
  .login-card,
  .setup {
    margin: 5vh 14px;
    padding: 25px;
  }
} /* Customer-selectable product variants and package quantities */
.variant-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.variant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 31px;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid #e9eee5;
  border-radius: 9px;
  background: #fbfcfa;
}
.variant-label {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: #425343;
  overflow-wrap: anywhere;
}
.variant-row select {
  max-width: 150px;
  min-width: 92px;
  border: 1px solid #e3e9df;
  border-radius: 7px;
  padding: 7px 5px;
  background: #fff;
  font-size: 13px;
  color: #3e4d40;
}
.variant-add {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 8px;
  background: var(--lime);
  color: #18301e;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.variant-add:hover {
  background: #a9e622;
}
.variant-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.product-info h3 {
  margin-bottom: 9px;
}
.cart-description small {
  line-height: 1.5;
}
.cart-row > strong {
  white-space: nowrap;
}
.admin-table td small {
  white-space: normal;
}
@media (max-width: 680px) {
  .variant-row {
    grid-template-columns: minmax(54px, 1fr) minmax(75px, auto) 30px;
    gap: 4px;
    padding: 6px;
  }
  .variant-label {
    font-size: 13px;
  }
  .variant-row select {
    min-width: 75px;
    max-width: 100px;
    font-size: 12px;
  }
  .variant-add {
    width: 30px;
    height: 30px;
  }
  .product-card .product-info {
    padding: 10px;
  }
}
.catalog-calculator {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px 13px 22px;
  background: #fff;
  border: 1px solid #dfe8d9;
  border-radius: 16px;
  box-shadow: 0 14px 42px #142b1d2b;
}
.catalog-calculator[hidden] {
  display: none;
}
.catalog-calculator > div {
  white-space: nowrap;
}
.catalog-calculator > div span {
  font-size: 12px;
  color: #788477;
}
.catalog-calculator > div b {
  font-size: 18px;
  color: #183923;
}
.catalog-calculator .button {
  white-space: nowrap;
}
.catalog-calculator .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.catalog-section {
  padding-bottom: 125px;
}
@media (max-width: 560px) {
  .catalog-calculator {
    bottom: 8px;
    width: calc(100% - 18px);
    gap: 8px;
    padding: 10px;
    border-radius: 13px;
  }
  .catalog-calculator > div {
    gap: 2px;
  }
  .catalog-calculator > div span {
    font-size: 11px;
  }
  .catalog-calculator > div b {
    font-size: 15px;
  }
  .catalog-calculator .button {
    padding: 12px;
    font-size: 12px;
  }
  .catalog-section {
    padding-bottom: 100px;
  }
}
.variant-row {
  grid-template-columns: minmax(35px, 1fr) minmax(86px, auto) 78px;
}
.variant-quantity {
  display: flex;
  align-items: center;
  width: 78px;
  height: 34px;
  border: 1px solid #e3e9df;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.variant-quantity button {
  width: 24px;
  height: 32px;
  flex: none;
  border: 0;
  background: #f3f7ef;
  color: #345235;
  font-size: 17px;
  line-height: 1;
}
.variant-quantity button:hover:not(:disabled) {
  background: #e6f2d7;
}
.variant-quantity button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.variant-quantity input {
  width: 30px;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  text-align: center;
  font-size: 14px;
  background: transparent;
  -moz-appearance: textfield;
}
.variant-quantity input::-webkit-inner-spin-button,
.variant-quantity input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.variant-quantity input:disabled,
.variant-row select:disabled {
  background: #f3f4f1;
  color: #9da49b;
}
@media (max-width: 680px) {
  .variant-row {
    grid-template-columns: minmax(0, 1fr) minmax(65px, 72px) 72px;
    gap: 4px;
  }
  .variant-label {
    font-size: 13px;
  }
  .variant-row select {
    min-width: 0;
    max-width: 72px;
    padding: 6px 2px;
    font-size: 11px;
  }
  .variant-quantity {
    width: 72px;
  }
  .variant-quantity button {
    width: 22px;
  }
  .variant-quantity input {
    width: 28px;
    font-size: 13px;
  }
}
.minimum-order-note {
  margin: 0 0 14px;
  padding: 12px 15px;
  border-radius: 9px;
  background: #f0f7e9;
  color: #4c703a;
  font-size: 14px;
}
.minimum-order-note[hidden] {
  display: none;
}
.package-only-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 9px !important;
}
.package-only-check input {
  width: auto !important;
  accent-color: var(--green);
}
.catalog-minimum {
  margin: -10px 0 17px;
  color: #788477;
  font-size: 14px;
}
.order-success-mark {
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eff8e9;
  border: 3px solid #74b83d;
  box-shadow: 0 0 0 8px #74b83d18;
}
.order-success-mark svg {
  width: 68px;
  height: 68px;
  fill: none;
  stroke: #4b9c2c;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.setup:has(.order-success-mark) {
  text-align: center;
}
.setup:has(.order-success-mark) .eyebrow {
  margin-top: 4px;
}
.variant-subtotal {
  grid-column: 1/-1;
  padding-top: 2px;
  color: #7d887d;
  font-size: 12px;
  text-align: right;
} /* Единый шрифт сайта */
* {
  font-family: "Times New Roman", Times, serif !important;
} /* Catalog variants use a direct quantity stepper; package is inferred from product settings. */
.variant-row {
  grid-template-columns: minmax(0, 1fr) 78px;
}
.variant-row select {
  display: none;
}
.variant-subtotal {
  grid-column: 1/-1;
}
@media (max-width: 680px) {
  .variant-row {
    grid-template-columns: minmax(0, 1fr) 72px;
  }
  .variant-row select {
    display: none;
  }
}
.variant-editor {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafcf8;
}
.variant-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}
.variant-editor-head > div {
  display: grid;
  gap: 4px;
}
.variant-editor-head small {
  font-size: 13px;
  color: var(--muted);
}
.admin-variant-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.admin-variant-row label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #59665a;
}
.admin-variant-row input,
.admin-variant-row select {
  width: 100%;
  min-width: 0;
  border: 1px solid #e6ebe3;
  border-radius: 8px;
  padding: 10px;
  background: white;
  color: var(--ink);
}
.admin-variant-row .remove-admin-variant {
  padding: 10px;
}
.wholesale-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #54852e;
}
.variant-label .wholesale-hint {
  line-height: 1.35;
}
.variant-subtotal {
  font-size: 12px;
  color: #697669;
}
.retail-hint {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #244d2d;
}
.variant-row {
  min-height: 48px;
}
@media (max-width: 800px) {
  .admin-variant-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-variant-row .remove-admin-variant {
    justify-self: start;
  }
  .variant-editor-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
.invoice-product-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  white-space: normal !important;
}
.invoice-product-thumb {
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid #e6ebe3;
  background: #f4f6f2;
}
.product-photo[data-open-product] {
  cursor: zoom-in;
}
.photo-zoom-hint {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #102719c9;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.product-photo[data-open-product]:hover .photo-zoom-hint,
.product-photo[data-open-product]:focus-visible .photo-zoom-hint {
  opacity: 1;
}
.product-modal[hidden] {
  display: none;
}
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}
.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: #07170fbd;
  backdrop-filter: blur(4px);
}
.product-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(850px, 92vh);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 90px #0005;
  padding: 28px;
}
.product-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f0f4ec;
  color: #28442c;
  font-size: 30px;
  line-height: 1;
}
.product-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 30px;
  align-items: start;
}
.product-modal-image {
  min-height: 400px;
  max-height: 76vh;
  display: grid;
  place-items: center;
  background: #f5f7f2;
  border-radius: 14px;
  overflow: hidden;
}
.product-modal-image img {
  width: 100%;
  height: 100%;
  max-height: 76vh;
  object-fit: contain;
}
.product-modal-info {
  padding: 14px 24px 10px 0;
}
.product-modal-info h2 {
  font:
    700 30px "Times New Roman",
    serif;
  line-height: 1.2;
  margin: 7px 0 15px;
}
.product-modal-description {
  font-size: 16px;
  line-height: 1.55;
  color: #677367;
  white-space: pre-line;
}
.product-modal-info .variant-list {
  margin-top: 20px;
}
.product-modal-info .variant-row {
  grid-template-columns: minmax(0, 1fr) 78px;
  padding: 12px;
}
.product-modal-info .variant-label {
  font-size: 16px;
}
.product-modal-info .retail-hint {
  font-size: 16px;
}
.product-modal-info .wholesale-hint {
  font-size: 14px;
}
.product-modal-open {
  overflow: hidden;
}
@media (max-width: 760px) {
  .product-modal {
    padding: 10px;
  }
  .product-modal-panel {
    max-height: 96vh;
    padding: 16px;
    border-radius: 15px;
  }
  .product-modal-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .product-modal-image {
    min-height: 0;
    height: 38vh;
    max-height: 340px;
  }
  .product-modal-image img {
    max-height: 38vh;
  }
  .product-modal-info {
    padding: 0 2px 8px;
  }
  .product-modal-info h2 {
    font-size: 25px;
    padding-right: 45px;
  }
  .product-modal-info .variant-row {
    grid-template-columns: minmax(0, 1fr) 72px;
  }
}
.minimum-order-note,
.catalog-minimum {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: 9px;
  background: #c62828;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.minimum-order-note[hidden] {
  display: none;
}
.catalog-minimum {
  display: grid;
  gap: 4px;
  margin: -10px 0 17px;
}
.catalog-minimum span {
  font-size: 14px;
  font-weight: 600;
}
.minimum-order-note {
  box-shadow: 0 4px 12px #a51c1c25;
}
.stack label.field-error {
  color: #b42318;
}
.field-error input,
.field-error select,
.field-error textarea,
.admin-variant-row label.field-error input {
  border-color: #d92d20 !important;
  background: #fff1f0 !important;
  box-shadow: 0 0 0 2px #d92d2022;
}
.retained-photo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f3f8ed;
  border: 1px solid #dce9d1;
  border-radius: 9px;
  color: #4e7041;
  font-size: 13px;
}
.retained-photo img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

.catalog-calculator {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.calculator-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
}
.calculator-metrics > div {
  justify-items: center;
}
.catalog-calculator > #calculator-cart {
  align-self: center;
  min-width: 240px;
}
@media (max-width: 560px) {
  .catalog-calculator {
    gap: 8px;
    padding: 10px 14px;
  }
  .calculator-metrics {
    gap: 28px;
  }
  .catalog-calculator > #calculator-cart {
    width: 100%;
    min-width: 0;
    padding: 10px;
    font-size: 13px;
  }
}

.catalog-calculator {
  width: min(500px, calc(100% - 20px));
  padding: 14px 20px;
}
.catalog-calculator .calculator-metrics {
  gap: 32px;
}
.catalog-calculator > #calculator-cart {
  min-width: 240px;
}
@media (max-width: 560px) {
  .catalog-calculator {
    width: min(500px, calc(100% - 20px));
    padding: 10px 14px;
  }
  .catalog-calculator .calculator-metrics {
    gap: 20px;
  }
  .catalog-calculator > #calculator-cart {
    width: auto;
    min-width: 210px;
  }
}

.floating-socials {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-social {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 18px #0c221b35;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.floating-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px #0c221b45;
}
.floating-social svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.whatsapp-social {
  background: #25d366;
  color: #fff;
}
.instagram-social {
  background: #fff;
  color: #c13584;
  border: 2px solid #e8d3e0;
}
.instagram-social svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.instagram-social .instagram-dot {
  fill: currentColor;
  stroke: none;
}
@media (max-width: 560px) {
  .floating-socials {
    right: 12px;
    bottom: 94px;
    gap: 9px;
  }
  .floating-social {
    width: 48px;
    height: 48px;
  }
  .floating-social svg {
    width: 25px;
    height: 25px;
  }
}

.minimum-order-note,
.catalog-minimum {
  display: block;
  width: min(580px, 100%);
  margin: 0 auto 16px;
  padding: 17px 20px;
  border-radius: 9px;
  background: #ffe8e8;
  color: #f01818;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 2px 4px #132b181c;
}
.catalog-minimum {
  margin: -10px auto 18px;
}
.minimum-order-note[hidden] {
  display: none;
}
@media (max-width: 560px) {
  .minimum-order-note,
  .catalog-minimum {
    font-size: 17px;
    padding: 14px 15px;
  }
}

.quantity input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.quantity input[type="number"]::-webkit-inner-spin-button,
.quantity input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity input[data-cart-quantity] {
  width: 56px;
  min-width: 56px;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
  pointer-events: auto;
}

.catalog-calculator {
  z-index: 60;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: max-content;
  min-width: 290px;
  max-width: calc(100% - 24px);
  padding: 13px 22px;
  background: #f8fbf4;
  color: #183923;
  border: 1px solid #dce8d4;
  border-radius: 15px;
  box-shadow: 0 8px 24px #17382325;
  text-align: center;
}
.calculator-message {
  font-size: 17px;
  line-height: 1.4;
  color: #36543b;
  white-space: nowrap;
}
.calculator-message b {
  font-weight: 800;
  color: #173923;
}
.calculator-message span {
  font-size: inherit;
  color: inherit;
}
.catalog-calculator > #calculator-cart {
  min-width: 190px;
  width: auto;
  padding: 9px 18px;
  background: var(--lime);
  color: #173923;
  text-decoration: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
}
.catalog-calculator > #calculator-cart:hover {
  transform: translateY(-1px);
  background: #a9e622;
  color: #173923;
}
@media (max-width: 560px) {
  .catalog-calculator {
    bottom: 10px;
    min-width: 230px;
    max-width: calc(100% - 20px);
    padding: 11px 16px;
  }
  .calculator-message {
    font-size: 15px;
  }
  .catalog-calculator > #calculator-cart {
    padding: 2px 8px;
    font-size: 14px;
  }
}

.action-confirm[hidden] {
  display: none;
}
.action-confirm {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}
.action-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: #07170f99;
  backdrop-filter: blur(3px);
}
.action-confirm-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 27px;
  background: #fff;
  border: 1px solid #e3eadf;
  border-radius: 18px;
  box-shadow: 0 20px 70px #0004;
}
.action-confirm-panel .eyebrow {
  margin-bottom: 8px;
}
.action-confirm-panel h2 {
  margin: 0 0 9px;
  font:
    700 23px "Times New Roman",
    serif;
  color: #183923;
}
.action-confirm-panel p {
  margin: 0;
  color: #748174;
  font-size: 15px;
  line-height: 1.5;
}
.action-confirm-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.action-confirm-buttons .button {
  min-width: 105px;
}
.danger-button {
  background: #b33b35;
  color: #fff;
}
.danger-button:hover {
  background: #962e29;
}
.confirm-open {
  overflow: hidden;
}
@media (max-width: 480px) {
  .action-confirm-panel {
    padding: 22px;
  }
  .action-confirm-buttons {
    gap: 8px;
  }
  .action-confirm-buttons .button {
    min-width: 0;
    padding: 12px 15px;
  }
}

/* Keep the price range and sort controls aligned on the same mobile row. */
@media (max-width: 680px) {
  .filters {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.78fr) minmax(
        110px,
        1.35fr
      );
    align-items: center;
    column-gap: 8px;
    row-gap: 5px;
  }
  .search {
    grid-column: 1/-1;
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .price-filter {
    min-width: 0;
    gap: 4px;
    padding-left: 0;
    white-space: nowrap;
    font-size: 12px;
  }
  .price-filter input {
    width: clamp(40px, 12vw, 64px);
    min-width: 0;
    padding: 7px 4px;
    font-size: 13px;
  }
  .sort {
    min-width: 0;
    margin-left: 0;
    padding-left: 8px;
    gap: 2px;
    white-space: nowrap;
  }
  .sort select {
    width: 100%;
    min-width: 0;
    font-size: 13px;
  }
}
@media (max-width: 390px) {
  .filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr) minmax(98px, 1.2fr);
    column-gap: 5px;
    padding: 8px;
  }
  .price-filter {
    gap: 3px;
    font-size: 11px;
  }
  .price-filter input {
    width: clamp(34px, 11vw, 48px);
    font-size: 12px;
  }
  .sort {
    padding-left: 5px;
  }
  .sort select {
    font-size: 12px;
  }
}
.order-submit-status {
  margin: 12px 0 0;
  color: #b33b35;
}
.order-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #f7f9f5f2;
}
.order-success-panel {
  width: min(620px, 100%);
  padding: 34px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 55px #17382320;
}
.order-success-panel .order-success-mark {
  margin-bottom: 22px;
}
.order-success-panel h1 {
  margin: 0 0 14px;
  font-size: 34px;
}
.order-success-panel p {
  margin: 0 0 14px;
  color: var(--muted);
}
.order-success-panel > span {
  color: #71806f;
  font-size: 14px;
}

.invoice-share-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 22px 0;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 4px #132b1810;
}
.invoice-qr {
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #edf0eb;
  border-radius: 10px;
  padding: 6px;
}
.invoice-qr canvas,
.invoice-qr img {
  display: block;
  max-width: 100%;
  height: auto;
}
.invoice-share-content {
  display: grid;
  justify-items: center;
  gap: 15px;
  min-width: 0;
}
.whatsapp-send-button {
  background: #25c967;
  color: #fff;
  font-size: 17px;
  padding: 13px 24px;
  border-radius: 10px;
}
.whatsapp-send-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}
.whatsapp-send-button:hover {
  background: #20b85d;
}
.invoice-link-label {
  justify-self: start;
  color: var(--muted);
  font-size: 14px;
}
.invoice-link-input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #cfd7ce;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  color: var(--ink);
  font-size: 16px;
}
.invoice-copy-button {
  border: 0;
  background: none;
  padding: 4px;
  color: #2680c2;
  text-decoration: underline;
  font-size: 16px;
}
.invoice-copy-status {
  min-height: 18px;
  color: #398b36;
  font-size: 13px;
}
.invoice-manager-note {
  margin: 0;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 600px) {
  .invoice-share-card {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 15px;
    padding: 18px;
  }
  .invoice-qr {
    width: 144px;
    height: 144px;
  }
  .invoice-share-content {
    width: 100%;
    gap: 11px;
  }
  .whatsapp-send-button {
    width: 100%;
    justify-content: center;
  }
  .invoice-link-input {
    font-size: 13px;
    padding: 11px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.invoice-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.invoice-actions .button {
  text-align: center;
  padding: 10px 14px;
  font-size: 14px;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .invoice-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .invoice-title {
    flex-wrap: wrap;
  }
  .invoice-heading-main {
    gap: 11px;
  }
  .invoice-brand-logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
  .invoice-actions .button {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 13px;
  }
}

.admin-product-preview {
  cursor: pointer;
  border-radius: 8px;
  padding: 3px;
  transition: background 0.15s;
}
.admin-product-preview:hover,
.admin-product-preview:focus-visible {
  background: #f0f7e9;
  outline: 2px solid #94d500;
}
.admin-preview-status {
  display: inline-block;
  margin-bottom: 8px;
}
.admin-preview-variants {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.admin-preview-variant {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  background: #fafcf8;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.admin-preview-variant b {
  font-size: 16px;
}
.admin-preview-variant span {
  font-weight: 700;
  color: #315537;
}
.admin-preview-variant small {
  font-size: 14px;
  color: #54852e;
}
.admin-product-preview-modal .product-modal-info {
  padding-top: 18px;
}

.table-product > span {
  display: grid;
  gap: 3px;
}
.table-product small {
  color: var(--muted);
  font-size: 12px;
}
.admin-preview-article {
  display: block;
  margin: -4px 0 8px;
  color: #687568;
  font-size: 14px;
}

.admin-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-head-actions .button {
  white-space: nowrap;
}
@media (max-width: 680px) {
  .admin-head-actions {
    width: 100%;
  }
  .admin-head-actions .button {
    flex: 1 1 auto;
  }
}

.retained-photo[hidden] {
  display: none;
}
.retained-photo {
  grid-column: 1/-1;
}
.retained-photo img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border: 1px solid #dce7d5;
  border-radius: 8px;
}

.invoice-product-cell > span {
  display: grid;
  gap: 2px;
}
.invoice-article {
  font-size: 12px;
  color: #748174;
  white-space: nowrap;
}

.product-modal-article {
  margin: -7px 0 12px;
  color: #587044;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.product-modal-article[hidden] {
  display: none;
}
.product-card .variant-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  padding: 9px;
}
.product-card .variant-quantity {
  width: min(100%, 180px);
  height: 38px;
}
.product-card .variant-quantity button {
  width: 42px;
  height: 36px;
}
.product-card .variant-quantity input {
  flex: 1;
  width: auto;
  font-size: 16px;
}
.invoice-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.invoice-nav-links .button {
  padding: 9px 14px;
  font-size: 14px;
}
.order-result-page {
  min-height: 100svh;
  padding: 1px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.order-result {
  width: min(500px, calc(100% - 32px));
  max-width: 500px;
  margin: clamp(24px, 8vh, 72px) auto;
  padding: clamp(22px, 5vw, 38px);
  text-align: center;
}
.order-result h1 {
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.15;
}
.order-result > p {
  font-size: clamp(15px, 4vw, 17px);
  line-height: 1.55;
}
@media (max-width: 560px) {
  .order-result-page {
    padding: 0;
  }
  .order-result {
    width: calc(100% - 28px);
    margin: 24px auto;
    padding: 24px 18px;
    border-radius: 16px;
  }
  .order-result .order-success-mark {
    width: 88px;
    height: 88px;
    margin-bottom: 20px;
  }
  .order-result .order-success-mark svg {
    width: 58px;
    height: 58px;
  }
  .order-result .eyebrow {
    font-size: 11px;
  }
  .order-result .button {
    width: 100%;
  }
}
.order-success-overlay {
  padding: 14px;
}
.page-intro > .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0 0 24px;
  padding: 10px 15px;
  border: 1px solid #dce8d4;
  border-radius: 10px;
  background: #eef5e8;
  color: #285432;
  font-weight: 700;
  box-shadow: 0 2px 6px #1839230c;
}
.page-intro > .back-link:hover {
  background: #e5f0da;
  color: #173923;
}
@media (max-width: 560px) {
  .order-success-overlay {
    padding: 14px;
  }
  .order-success-panel {
    width: 100%;
    max-width: 420px;
    padding: 26px 18px;
    border-radius: 16px;
  }
  .order-success-panel .order-success-mark {
    width: 84px;
    height: 84px;
    margin-bottom: 18px;
  }
  .order-success-panel .order-success-mark svg {
    width: 56px;
    height: 56px;
  }
  .order-success-panel h1 {
    font-size: clamp(25px, 7vw, 31px);
  }
  .order-success-panel p {
    font-size: 15px;
    line-height: 1.5;
  }
  .order-success-panel > span {
    font-size: 13px;
  }
}

/* Compact responsive navigation menu. */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5f8f2;
  color: var(--green-dark);
}
.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.18s,
    opacity 0.18s;
}
@media (max-width: 680px) {
  .topbar {
    height: auto;
    min-height: 66px;
    padding: 10px 16px;
    position: sticky;
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: flex;
    flex: none;
  }
  .topbar nav {
    display: none;
  }
  .topbar.nav-open nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 18px #152d191c;
    font-size: 15px;
    z-index: 15;
  }
  .topbar.nav-open nav a {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f2ed;
  }
  .topbar.nav-open nav a:last-child {
    border-bottom: 0;
  }
  .topbar.nav-open .menu-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .topbar.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .topbar.nav-open .menu-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }
}
.sales-statistics {
  margin: 26px 0 30px;
  padding: 22px;
  background: #f1f5ee;
  border: 1px solid #e4eae0;
  border-radius: 16px;
}
.sales-statistics-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.sales-statistics-heading h2 {
  margin: 0 0 6px;
  font:
    700 25px "Times New Roman",
    serif;
  color: var(--ink);
}
.sales-statistics-heading p,
.never-sold-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.sales-periods {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #e7ede3;
  border-radius: 10px;
}
.sales-periods a {
  padding: 8px 12px;
  border-radius: 7px;
  color: #566457;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.sales-periods a.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 1px 4px #142b1d15;
}
.sales-statistics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.85fr);
  gap: 14px;
}
.sales-chart-card,
.never-sold-card {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sales-chart-card h3,
.never-sold-heading h3 {
  margin: 0;
  color: #26372b;
  font:
    700 18px "Times New Roman",
    serif;
}
.sales-chart-card h3 > span {
  margin-left: 7px;
  color: #899389;
  font:
    400 13px "Times New Roman",
    serif;
}
.sales-chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(60px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 220px;
  margin-top: 15px;
  padding-top: 6px;
  overflow-x: auto;
}
.sales-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 60px;
  height: 205px;
  text-align: center;
}
.sales-bar-value {
  display: grid;
  gap: 1px;
  margin-bottom: 6px;
  color: #315e35;
  font-size: 15px;
}
.sales-bar-value small {
  color: #82907d;
  font-size: 10px;
  font-weight: 400;
}
.sales-bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(48px, 76%);
  height: 130px;
  border-radius: 8px 8px 3px 3px;
  background: #f0f4ed;
}
.sales-bar-fill {
  width: 100%;
  min-height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #a5d93c, #4f9a36);
}
.sales-bar-rank {
  margin: 6px 0 2px;
  color: #91a08d;
  font-size: 11px;
}
.sales-bar-name {
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  color: #465448;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sales-empty {
  margin: 18px 0 5px;
  padding: 16px;
  border-radius: 8px;
  background: #f7f9f5;
  color: #778276;
  font-size: 14px;
}
.never-sold-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.never-sold-heading h3 {
  margin-bottom: 4px;
}
.never-sold-heading > b {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 50%;
  background: #fff1eb;
  color: #a45837;
  font-size: 15px;
}
.never-sold-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.never-sold-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f8faf7;
  color: #455346;
  font-size: 13px;
}
.never-sold-list li > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.never-sold-list img,
.never-sold-placeholder {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  object-fit: cover;
  background: #eef3ea;
}
.never-sold-placeholder {
  display: grid;
  place-items: center;
  color: #89a66e;
}
.never-sold-more {
  display: block;
  margin: 10px 0 0 9px;
  color: #778276;
  font-size: 12px;
}
@media (max-width: 760px) {
  .sales-statistics {
    padding: 16px 12px;
  }
  .sales-statistics-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .sales-statistics-heading h2 {
    font-size: 22px;
  }
  .sales-periods {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .sales-statistics-grid {
    grid-template-columns: 1fr;
  }
  .sales-chart {
    grid-template-columns: repeat(8, minmax(58px, 1fr));
    min-height: 200px;
  }
  .sales-bar-item {
    height: 188px;
  }
  .sales-bar-track {
    height: 115px;
  }
}
