:root {
  --ink: #183b35;
  --muted: #66756f;
  --green: #174c43;
  --mint: #e5eee8;
  --paper: #f6f7f2;
  --line: #dce3da;
  --white: #fff;
  --accent: #dce8b1;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
}
button:hover,
.button:hover {
  border-color: var(--green);
  background: #f1f5ee;
  text-decoration: none;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.primary:hover {
  background: #246454;
  color: #fff;
}
.quiet {
  background: transparent;
  border-color: transparent;
}
.danger {
  color: #9c3737;
}
.error {
  color: #a12727;
  white-space: pre-line;
}
.muted,
small {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
header {
  max-width: 1440px;
  margin: auto;
  padding: 22px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 44px;
  height: 44px;
}
.brand span {
  font-weight: 800;
  font-size: 25px;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  letter-spacing: 0.2px;
  font-size: 11px;
  font-weight: 400;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-actions select {
  background: transparent;
  width: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  min-height: 42px;
}
main {
  max-width: 1360px;
  margin: auto;
  padding: 0 34px 70px;
  min-height: 75vh;
}
footer {
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  padding: 24px;
  font-size: 12px;
}
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
  min-height: 75px;
  flex-wrap: wrap;
  font-size: 14px;
}
.nav-spacer {
  flex: 1;
}
.nav a {
  padding: 10px 0;
}
.hero {
  background: var(--green);
  border-radius: 18px;
  padding: 42px 48px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 11px;
  font-weight: bold;
}
.hero .eyebrow {
  color: #c6d8b6;
}
.hero h1 {
  font-size: clamp(30px, 3.3vw, 47px);
  line-height: 1.15;
  max-width: 760px;
  margin: 16px 0;
}
.hero p {
  color: #d0e0d7;
  margin-bottom: 0;
}
.hero-stat {
  min-width: 115px;
  text-align: center;
  border-inline-start: 1px solid #68877b;
  padding-inline-start: 35px;
}
.hero-stat strong {
  display: block;
  font-size: 52px;
  font-weight: 400;
}
.hero-stat span {
  color: #c6d8b6;
}
.search-wrap {
  display: flex;
  align-items: center;
  margin: 25px 0 30px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 4px 18px;
  gap: 12px;
}
.search-wrap span {
  font-size: 30px;
}
.search-wrap input {
  border: 0;
  background: transparent;
  padding: 12px 0;
  width: 100%;
  outline-offset: 3px;
}
.section-heading,
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0 18px;
}
.section-heading h2 {
  font-size: 22px;
  margin: 0;
}
.section-heading > span {
  font-size: 13px;
  color: var(--muted);
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 8px 0 20px;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 18px;
  line-height: 1.35;
}
.page-heading {
  align-items: flex-start;
}
.page-heading .actions {
  flex-shrink: 0;
}
.back {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 15px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  align-items: center;
  min-height: 142px;
  transition: transform 0.15s;
}
.category-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 6px 16px #173f3510;
}
.category-card img {
  width: 120px;
  height: 140px;
  object-fit: cover;
  background: #e9eee4;
}
.category-card div {
  padding: 15px;
}
.category-card h3 {
  margin: 0 0 6px;
}
.category-card span {
  font-size: 12px;
  color: var(--muted);
}
.category-card b {
  margin-inline-start: auto;
  padding: 15px;
  font-size: 20px;
  font-weight: 400;
}
.product-grid,
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}
.product-card {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  gap: 16px;
  padding: 15px;
}
.product-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}
.product-card h3 {
  margin: 4px 0 8px;
}
.product-card small {
  font-size: 11px;
}
.product-card p {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}
.offer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.offer-card:hover {
  text-decoration: none;
  box-shadow: 0 4px 16px #174c4314;
}
.offer-image {
  height: 210px;
  position: relative;
  background: var(--mint);
}
.offer-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.star {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background: white;
  border-radius: 50%;
  padding: 5px 10px;
  color: #a67d13;
}
.media-tags {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  background: #fff;
  border-radius: 6px;
  padding: 2px 8px;
}
.media-tags:empty {
  display: none;
}
.offer-content {
  padding: 20px;
}
.offer-content h3 {
  margin: 12px 0;
}
.offer-content p {
  margin: 8px 0;
  font-size: 14px;
}
.offer-content .price {
  font-size: 22px;
  font-weight: bold;
  text-align: start;
  color: var(--green);
}
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 5px;
  background: #eef0ea;
  color: #59675e;
}
.badge.suitable {
  background: #dceedd;
  color: #285d32;
}
.badge.alternative {
  background: #fff1ce;
  color: #785a16;
}
.badge.unsuitable {
  background: #f6dede;
  color: #9a3a3a;
}
.original {
  display: block;
  font-size: 11px;
  font-style: italic;
}
.product-detail {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 35px;
  margin: 10px 0 30px;
}
.product-main {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--mint);
}
.description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.notice {
  padding: 13px 17px;
  background: #eaf0de;
  border-radius: 8px;
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.check input {
  width: 18px;
  height: 18px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}
.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.big-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 10px;
  text-align: start;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  font-size: 14px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.vendor-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.media-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  min-width: 0;
}
.media-card img,
.media-card video {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}
.media-card audio {
  width: 100%;
}
.media-card p {
  font-size: 12px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.image-open {
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
  width: 100%;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 28px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  text-align: start;
}
th,
td {
  padding: 16px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
th {
  background: #edf1e7;
  font-size: 12px;
}
td a {
  text-decoration: underline;
}
.empty {
  padding: 25px;
  color: var(--muted);
  grid-column: 1/-1;
  background: #edf1e7;
  border-radius: 10px;
}
dialog {
  width: min(820px, calc(100% - 24px));
  max-height: 92dvh;
  border: 0;
  border-radius: 16px;
  padding: 30px;
  color: var(--ink);
  box-shadow: 0 20px 100px #0004;
}
dialog::backdrop {
  background: #102e27a6;
}
.dialog-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 12px;
  border: 0;
  font-size: 25px;
  background: transparent;
  padding: 2px 12px;
}
dialog h2 {
  margin: 0 35px 22px 0;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
}
legend {
  font-size: 14px;
  font-weight: bold;
  padding: 0 7px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  margin-bottom: 15px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cdd8ce;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
}
textarea {
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.language-fields {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.language-fields label {
  margin: 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.file-button {
  position: relative;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.pending-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.pending-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  overflow: hidden;
}
.pending-item img,
.pending-item video {
  height: 130px;
  width: 100%;
  object-fit: contain;
}
.pending-item audio {
  width: 100%;
}
.pending-item p {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.pending-item button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}
.lightbox {
  display: block;
  max-width: 100%;
  max-height: 80dvh;
  margin: auto;
  object-fit: contain;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-width: 1000px;
  margin: 65px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.login-visual {
  background: var(--green);
  color: white;
  padding: 45px;
  overflow: hidden;
}
.login-visual h1 {
  font-size: 38px;
  margin-top: 25px;
}
.login-visual p {
  color: #d0dfd1;
}
.login-visual img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 20px;
}
.login-form {
  padding: 50px 40px;
  align-self: center;
}
.login-form .primary {
  width: 100%;
}
.setup-message {
  margin: 60px auto;
  max-width: 700px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: var(--green);
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: 0 5px 20px #0002;
  z-index: 99;
  font-size: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 3px solid #91ae55;
  outline-offset: 3px;
}
[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}
[dir="rtl"] .price,
[dir="rtl"] .big-price {
  text-align: right;
}
.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
}
@media (max-width: 1050px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-grid,
  .offer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .media-grid,
  .vendor-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .hero {
    padding: 34px;
  }
  .category-card img {
    width: 100px;
  }
  .language-fields {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  header {
    padding: 15px 16px;
  }
  .brand span {
    font-size: 21px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .brand small {
    font-size: 10px;
  }
  .header-actions {
    gap: 2px;
  }
  .header-actions .quiet {
    padding: 8px;
    font-size: 12px;
  }
  .header-actions select {
    max-width: 100px;
    font-size: 13px;
  }
  main {
    padding: 0 16px 40px;
  }
  .nav {
    gap: 14px;
    padding: 12px 0;
    font-size: 13px;
  }
  .nav .quiet {
    font-size: 12px;
    padding: 5px;
    min-height: 34px;
  }
  .nav-spacer {
    display: none;
  }
  .hero {
    padding: 28px 24px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-stat {
    display: none;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .category-grid {
    gap: 10px;
  }
  .category-card {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .category-card img {
    width: 100%;
    height: 120px;
  }
  .category-card div {
    padding: 12px;
  }
  .category-card h3 {
    font-size: 15px;
  }
  .category-card b {
    display: none;
  }
  .product-grid,
  .offer-grid,
  .media-grid,
  .vendor-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    gap: 12px;
  }
  .offer-image {
    height: 230px;
  }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-main {
    height: 190px;
  }
  .product-detail h1 {
    font-size: 27px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px;
  }
  dialog {
    padding: 25px 18px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    margin: 25px auto;
  }
  .login-visual {
    padding: 25px;
  }
  .login-visual h1 {
    font-size: 30px;
    margin: 15px 0;
  }
  .login-visual img {
    display: none;
  }
  .login-form {
    padding: 30px 25px;
  }
  .login-visual p {
    margin-bottom: 0;
  }
  .pending-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .actions button,
  .actions .button {
    font-size: 13px;
  }
  dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  dd {
    margin-bottom: 12px;
  }
}
