:root {
  --green: #10634a;
  --deep: #0c3328;
  --cream: #fbf8f0;
  --gold: #ffd166;
  --ink: #192923;
  --muted: #58665f;
  --line: #e6e9e2;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--cream);
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  cursor: pointer;
}
button:disabled,
[aria-busy="true"] {
  cursor: not-allowed;
  opacity: 0.62;
}
.topbar {
  background: var(--deep);
  padding: 10px 20px;
  color: #fff;
  text-align: center;
  font-size: 0.84rem;
}
.topbar span {
  color: #d9e9e3;
}
.header {
  height: 78px;
  width: min(1180px, calc(100% - 36px));
  margin: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.65rem;
  color: var(--deep);
  font-weight: 900;
  letter-spacing: -1px;
  text-decoration: none;
}
.brand span {
  color: var(--green);
}
nav {
  display: flex;
  gap: 20px;
  flex: 1;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: #46534e;
}
nav a:hover {
  color: var(--green);
}
nav a[aria-current="page"] {
  color: var(--green);
}
.notification-badge {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border-radius: 20px;
  background: var(--gold);
  color: #1c2a22;
  font-size: 0.68rem;
  line-height: 1;
}
.notification-badge[hidden] {
  display: none;
}
.header-notification {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--green);
  font-size: 1.25rem;
  text-decoration: none;
}
.header-notification .notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
}
.cart-trigger {
  min-height: 44px;
  border: 0;
  background: #fff;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 1rem;
}
.account-trigger {
  min-height: 44px;
}
.cart-trigger b {
  background: var(--gold);
  padding: 2px 7px;
  border-radius: 30px;
  font-size: 0.75rem;
}
.app {
  min-height: calc(100vh - 120px);
}
.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}
.hero {
  min-height: 455px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, #f4ba4240 0 7%, transparent 7.5%),
    radial-gradient(circle at 72% 72%, #fbf8f01f 0 11%, transparent 11.5%),
    linear-gradient(115deg, #082e24 0%, #10634a 58%, #174f3f 100%);
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  letter-spacing: -0.06em;
  line-height: 0.96;
  margin: 10px 0 18px;
  max-width: 690px;
}
.hero h1 em {
  color: var(--gold);
  font-style: normal;
}
.hero-copy {
  max-width: 590px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0eee8;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--green);
  margin: 0;
}
.hero .eyebrow,
.seller-strip .eyebrow {
  color: var(--gold);
}
.button {
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  display: inline-block;
}
.primary {
  background: var(--gold);
  color: #1c2a22;
}
.button.danger {
  background: #fcebe8;
  color: #932f24;
}
.google-auth {
  background: #fff;
  border: 1px solid #d7dce5;
  color: #263149;
  justify-content: center;
  margin-top: .7rem;
  text-align: center;
}

.legal-page {
  background: #f6f8fb;
  color: #182230;
}

.legal-content {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  line-height: 1.65;
}

.legal-content .brand {
  display: inline-block;
  margin-bottom: 2rem;
  color: #0a6c55;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.legal-content h1,
.legal-content h2 {
  color: #102a43;
}

.legal-content h1 {
  margin-bottom: .25rem;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.15rem;
}
.google-auth span {
  color: #4285f4;
  font-size: 1.1em;
  font-weight: 800;
  margin-right: .45rem;
}
.secondary {
  background: #ffffff1b;
  border: 1px solid #ffffff66;
  color: #fff;
  margin-left: 8px;
}
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  margin-top: -40px;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 15px 35px #1b493b18;
}
.benefit {
  padding: 24px;
  border-right: 1px solid var(--line);
}
.benefit:last-child {
  border: 0;
}
.benefit b,
.benefit span {
  display: block;
}
.benefit span {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 7px;
}
.section {
  padding: 74px 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}
.section h2 {
  font-size: 2rem;
  letter-spacing: -0.045em;
  margin: 8px 0 0;
}
.categories {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-top: 25px;
}
.category {
  min-width: 0;
  background: #fff;
  border: 0;
  border-radius: 13px;
  padding: 18px 8px;
  font-weight: 800;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}
.category:hover {
  background: var(--green);
  color: #fff;
}
.category span {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 7px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 25px;
}
.product-grid > .empty {
  grid-column: 1 / -1;
}

.catalog-pagination {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.conversation-thread {
  display: grid;
  gap: 0.65rem;
  max-height: 48vh;
  overflow-y: auto;
  padding: 0.8rem;
  margin: 0.8rem 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafaf8;
}

.message-bubble {
  max-width: min(84%, 34rem);
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--line);
}

.message-bubble.mine {
  justify-self: end;
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

.message-bubble small {
  display: block;
  margin-top: 0.35rem;
  opacity: 0.75;
}

.message-attachments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.message-attachments img {
  display: block;
  width: 100%;
  max-height: 14rem;
  object-fit: cover;
  border-radius: 10px;
}
.attachment-preview {
  min-height: 1.25rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.attachment-preview:not(:empty) {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #f4f1e8;
}
.product {
  background: #fff;
  border: 1px solid #eff0ec;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.15s;
}
.product:hover {
  transform: translateY(-3px);
}
.product-image {
  height: 160px;
  background: linear-gradient(135deg, #e4eee6, #f7efdb);
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  border: 0;
  width: 100%;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info {
  min-width: 0;
  padding: 15px;
}
.meta {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.product h3 {
  font-size: 1rem;
  margin: 7px 0;
  overflow-wrap: anywhere;
}
.seller {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.8rem;
}
.product .meta,
.product .seller {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.card-actions,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-actions {
  flex-shrink: 0;
}
.icon-action {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--green);
  font-size: 1.3rem;
  line-height: 1;
}
.icon-action.is-active {
  border-color: #d87979;
  background: #fff2f2;
  color: #bc3333;
}
.add {
  min-height: 44px;
  border: 0;
  background: #e8f3ed;
  color: var(--green);
  font-weight: 800;
  padding: 8px;
  border-radius: 8px;
}
.price {
  font-weight: 900;
}
.old-price {
  font-size: 0.78rem;
  color: #68736d;
  text-decoration: line-through;
  margin-left: 5px;
}
.seller-strip {
  background: var(--green);
  color: white;
  padding: 75px 0;
}
.seller-strip h2 {
  font-size: 2.2rem;
  margin: 9px 0;
}
.seller-strip p:not(.eyebrow) {
  max-width: 600px;
  line-height: 1.6;
  color: #dcebe5;
}
.page-head {
  background: var(--deep);
  color: #fff;
  padding: 52px 0;
}
.page-head h1 {
  margin: 8px 0 0;
  font-size: 2.8rem;
}
.page-head .eyebrow {
  color: var(--gold);
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 8px;
}
.toolbar input,
.toolbar select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  background: #fff;
}
.toolbar input {
  min-width: min(370px, 100%);
  flex: 1;
}
.empty {
  padding: 55px 20px;
  text-align: center;
  border: 1px dashed #cbd5cd;
  color: var(--muted);
  border-radius: 12px;
}
.detail {
  padding: 55px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
}
.detail > * {
  min-width: 0;
}
.detail-visual {
  min-height: 390px;
  border-radius: 20px;
  background: linear-gradient(135deg, #deece2, #f5e8c8);
  display: grid;
  place-items: center;
  font-size: 9rem;
}
.detail-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  border-radius: inherit;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 6px;
}
.detail-gallery img {
  min-height: 180px;
}
.detail-gallery img:only-child {
  grid-column: 1 / -1;
  min-height: inherit;
}
.detail h1 {
  font-size: 2.6rem;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.detail .price {
  font-size: 1.8rem;
  display: block;
  margin: 20px 0;
}
.detail p {
  line-height: 1.65;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.detail-actions {
  flex-wrap: wrap;
  margin-top: 26px;
}
.safety-note {
  margin-top: 22px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: #fff9e8;
  border-radius: 4px;
  font-size: 0.85rem;
}
.dashboard {
  padding: 45px 0;
}
.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.listing-list {
  display: grid;
  gap: 10px;
}
.listing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.listing-row:last-child {
  border-bottom: 0;
}
.subcategory-row {
  margin-left: 24px;
  padding-left: 16px;
  border-left: 3px solid #dce9e1;
}
.category-field-row {
  margin-left: 48px;
  padding-left: 16px;
  border-left: 3px solid #f1d9a7;
}
.listing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.listing-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  color: var(--green);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}
.listing-actions button.danger {
  color: #9e3024;
  border-color: #efc8c2;
  background: #fcebe8;
}
.shop-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}
.shop-head > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.shop-avatar {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #e8f3ed;
  color: var(--green);
  font-size: 2rem;
  object-fit: cover;
}

.shop-banner {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 1.25rem;
  margin-bottom: 1rem;
}
.shop-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.message-history-control {
  margin: 0 0 12px;
  text-align: center;
}
.message-history-control .button {
  padding: 7px 12px;
  font-size: 0.8rem;
}
.verified-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  background: #e3f3e9;
  color: #147345;
  font-size: 0.72rem;
  font-weight: 900;
  vertical-align: middle;
}

.category-fields {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8faf8;
}

.category-fields[hidden] {
  display: none;
}

.category-fields h3,
.category-fields p {
  margin-top: 0;
}

.product-attributes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 14px;
  background: #f8faf8;
}

.product-attributes div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.product-attributes dt {
  color: var(--muted);
}

.product-attributes dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.admin-form input,
.admin-form select {
  min-width: 145px;
  flex: 1;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 30px 0;
}
.stat {
  background: #fff;
  border-radius: 13px;
  padding: 20px;
}
.stat small,
.stat b {
  display: block;
}
.stat b {
  font-size: 1.5rem;
  margin-top: 6px;
}
.panel {
  background: #fff;
  border-radius: 15px;
  padding: 24px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.panel-heading h2 {
  margin: 0;
}
.order-filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) repeat(2, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafcf9;
}
.order-filters label {
  margin: 0;
}
.order-filters input,
.order-filters select {
  width: 100%;
}
.seller-commerce-stats .stat b {
  font-size: 1.25rem;
}
.cart-page {
  padding: 45px 0;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 25px;
}
.cart-row {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.cart-row p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.remove {
  background: none;
  border: 0;
  color: #a03b2d;
  padding: 0;
}
.summary {
  background: #fff;
  border-radius: 15px;
  padding: 22px;
  height: max-content;
}
.summary p {
  display: flex;
  justify-content: space-between;
}
.summary .button {
  width: 100%;
  text-align: center;
}
.order {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.status {
  font-size: 0.75rem;
  background: #e3f3e9;
  color: #147345;
  padding: 5px 8px;
  border-radius: 20px;
  font-weight: 800;
}
.order-history {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.order-history small {
  color: var(--muted);
}
.admin-list {
  margin-top: 22px;
}
.admin-list .product {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
}
.admin-list .product-image {
  width: 80px;
  height: 80px;
  flex: none;
}
.admin-list .product-info {
  flex: 1;
}
.admin-actions button {
  margin-right: 8px;
  border: 0;
  border-radius: 7px;
  padding: 7px;
  font-weight: 700;
}
.admin-actions .danger {
  color: #9e3024;
  background: #fcebe8;
}
dialog {
  width: min(570px, calc(100% - 28px));
  border: 0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 80px #0006;
}
dialog::backdrop {
  background: #092c217a;
}
#mmSessionPrivacyShield[open] {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border-radius: 0;
  padding: 24px;
  overflow: hidden;
  background: #f4f8f5;
}
#mmSessionPrivacyShield:not([open]) {
  display: none;
}
#mmSessionPrivacyShield::backdrop {
  background: #f4f8f5;
}
#mmSessionPrivacyShield .panel {
  width: min(520px, 100%);
}
.dialog-title {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.dialog-title h2 {
  margin: 8px 0 0;
}
.close {
  border: 0;
  background: none;
  font-size: 1.6rem;
}
.notice {
  font-size: 0.84rem;
  background: #fff4d8;
  padding: 11px;
  border-radius: 8px;
  line-height: 1.45;
  color: #6c5b27;
}
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin: 13px 0;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin-top: 6px;
}
textarea {
  min-height: 72px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.commerce-fields,
.checkout-commerce-fields {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #d7e4dd;
  border-radius: 12px;
  background: #f7fbf8;
}

.checkout-delivery-options {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 1rem;
  background: #fffdf8;
}

.delivery-choice {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.delivery-choice select {
  min-height: 44px;
  width: 100%;
}
.commerce-fields-heading h3,
.checkout-commerce-fields h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--deep);
}
.commerce-fields-heading p,
.checkout-commerce-fields > p,
.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}
.commerce-stock-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.commerce-stock-grid small,
.checkout-commerce-fields label small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.4;
}
#checkoutDialog {
  width: min(650px, calc(100% - 28px));
  max-height: min(90vh, 820px);
  overflow-y: auto;
}
.checkout-address-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 4px !important;
  color: var(--muted);
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.checkout-address-divider::before,
.checkout-address-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.checkout-save-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  line-height: 1.35;
}
.checkout-save-address input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--green);
}
.purchase-box {
  display: grid;
  grid-template-columns: minmax(100px, 140px) minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #d7e4dd;
  border-radius: 12px;
  background: #f7fbf8;
}
.purchase-box label {
  margin: 0;
}
.purchase-box .button {
  min-height: 42px;
}
.cart-seller-group {
  margin: 16px 0;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.cart-seller-group h2 {
  margin: 0 -18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.quantity-control {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 10px;
}
.quantity-control label {
  margin: 0;
}
.quantity-control input {
  width: 86px;
}
.cart-warning {
  margin: 8px 0;
  color: #8b3b24 !important;
  font-weight: 700;
}
.cart-row.is-unavailable {
  opacity: 0.72;
}
.cart-sync {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}
.listing-commerce {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 0;
}
.listing-commerce span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6f1;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
}
.order-parent,
.seller-order-card {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.order-parent-head,
.seller-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.order-parent-head > div:last-child,
.seller-order-head > div:last-child {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}
.seller-order-groups {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.order-parent .seller-order-card {
  margin: 0;
  background: #fafcf9;
}
.order-items {
  margin: 14px 0;
  padding-left: 20px;
  line-height: 1.55;
}
.order-items a {
  color: var(--green);
  font-weight: 700;
}
.order-timeline {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}
.order-timeline > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.order-timeline small {
  color: var(--muted);
}
.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}
.delivery-private,
.payment-notice {
  margin-top: 13px;
  padding: 12px;
  border-radius: 10px;
  background: #f7f4e9;
}
.delivery-private p {
  margin: 5px 0;
}
.seller-order-detail:empty,
.customer-order-detail:empty {
  display: none;
}
.customer-order-detail:not(:empty) {
  margin-top: 14px;
  padding-top: 2px;
  border-top: 1px solid var(--line);
}
.order-pagination {
  margin-top: 20px;
}
.notification-center {
  max-width: 900px;
}
.notification-title,
.notification-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.notification-title h1 {
  margin-bottom: 0;
}
.notification-toolbar {
  margin: 22px 0 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.notification-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
}
.notification-filter input {
  width: 20px;
  height: 20px;
  margin: 0;
}
.notification-list {
  display: grid;
  gap: 12px;
}
.notification-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.notification-item.is-unread {
  border-color: #a9cfbf;
  background: #f3faf6;
  box-shadow: inset 4px 0 var(--green);
}
.notification-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #e8f3ed;
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 900;
}
.notification-content {
  min-width: 0;
}
.notification-content h2 {
  margin: 7px 0;
  font-size: 1.05rem;
}
.notification-content p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  line-height: 1.55;
}
.notification-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.notification-read-state {
  display: inline-block;
  margin-top: 9px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
}
.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}
.notification-actions .button,
.notification-title .button,
.notification-more .button {
  min-height: 44px;
}
.notification-more {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.admin-order-controls {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(220px, 1.5fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
}
.admin-order-controls label {
  margin: 0;
}
.narrow-page {
  max-width: 620px;
}
.stacked-form {
  display: grid;
  gap: 16px;
}
.footer {
  background: var(--deep);
  color: #d7e8e0;
  padding: 38px 0;
  margin-top: 50px;
}
.footer b {
  color: white;
}
.footer p {
  font-size: 0.84rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #d7e8e0;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mobile-nav {
  display: none;
}
@media (max-width: 980px) {
  .header {
    height: auto;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 14px;
  }
  .header > nav {
    order: 3;
    flex-basis: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 4px;
  }
}
@media (max-width: 760px) {
  body {
    padding-bottom: 76px;
  }
  .header {
    height: auto;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 14px;
  }
  .header > nav {
    display: none;
  }
  .account-trigger {
    min-height: 44px;
    padding: 10px 12px;
  }
  nav {
    order: 3;
    flex-basis: 100%;
    overflow: auto;
    gap: 16px;
  }
  .topbar span {
    display: none;
  }
  .benefits {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .benefit {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .product-image {
    height: 125px;
  }
  .detail,
  .cart-page {
    grid-template-columns: 1fr;
  }
  .detail {
    gap: 20px;
  }
  .detail-visual {
    min-height: 240px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .order-filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .order-filters .button,
  .order-filters input,
  .order-filters select {
    min-height: 44px;
  }
  .order-pagination {
    flex-wrap: wrap;
  }
  .listing-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .subcategory-row {
    margin-left: 8px;
    padding-left: 11px;
  }
  .category-field-row {
    margin-left: 16px;
    padding-left: 11px;
  }
  .shop-head {
    gap: 12px;
  }
  .listing-actions {
    justify-content: flex-start;
  }
  .section {
    padding: 50px 0;
  }
  .toolbar input {
    min-width: 100%;
  }
  .mobile-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    order: initial;
    flex-basis: auto;
    min-height: 66px;
    padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -5px 20px #19312616;
  }
  .mobile-nav.has-commerce-orders {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .mobile-nav a,
  .mobile-cart {
    position: relative;
    display: grid;
    place-items: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: var(--green);
    min-width: 0;
    overflow: hidden;
    font-size: 1.1rem;
    text-decoration: none;
  }
  .mobile-nav a[aria-current="page"] {
    color: #fff;
    border-radius: 12px;
    background: var(--green);
  }
  .mobile-nav .mobile-message-badge {
    position: absolute;
    top: -2px;
    right: 13px;
    color: #1c2a22;
  }
  .header-notification {
    display: inline-grid;
  }
  .mobile-nav span {
    font-size: 0.64rem;
    font-weight: 800;
  }
  .card-actions {
    gap: 4px;
    width: 100%;
    justify-content: flex-end;
  }
  .icon-action {
    width: 44px;
    height: 44px;
  }
  .detail-actions .button {
    width: 100%;
  }
  .commerce-fields,
  .checkout-commerce-fields {
    padding: 13px;
  }
  .commerce-fields .form-grid,
  #checkoutDialog .form-grid,
  .commerce-stock-grid,
  .purchase-box {
    grid-template-columns: 1fr;
    gap: 0;
  }
  #checkoutDialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    padding: 18px;
  }
  #checkoutDialog input,
  #checkoutDialog select,
  #checkoutDialog textarea,
  .commerce-fields input,
  .commerce-fields select,
  .purchase-box input,
  .purchase-box .button {
    min-height: 44px;
  }
  .quantity-control {
    align-items: center;
  }
  .quantity-control input {
    min-height: 44px;
  }
  .cart-seller-group {
    padding: 0 14px;
  }
  .cart-seller-group h2 {
    margin: 0 -14px;
    padding: 13px 14px;
  }
  .order-parent,
  .seller-order-card {
    padding: 14px;
  }
  .order-parent-head,
  .seller-order-head {
    flex-direction: column;
  }
  .order-parent-head > div:last-child,
  .seller-order-head > div:last-child {
    justify-items: start;
    text-align: left;
  }
  .admin-order-controls {
    grid-template-columns: 1fr;
  }
  .order-actions .button,
  .admin-order-controls .button,
  .notification-actions .button,
  .notification-title .button {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }
  .notification-item {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .notification-actions {
    display: grid;
  }
  .mobile-cart b {
    position: absolute;
    top: -2px;
    right: 13px;
    min-width: 16px;
    padding: 1px 4px;
    border-radius: 50px;
    background: var(--gold);
    font-size: 0.65rem;
  }
}
@media (max-width: 420px) {
  .shop-head {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
  .shop-head .detail-actions,
  .shop-stats {
    justify-content: center;
  }
}
@media (max-width: 340px) {
  .shop-head + .product-grid {
    grid-template-columns: 1fr;
  }
}
