:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  color: #20231f;
  background: #fcfcf9;
  font-size: 16px;
  --red: #b82432;
  --line: #e4e5de;
  --muted: #686d65;
  --green: #244b3d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 16px;
  color: inherit;
}
button:hover {
  border-color: #969d93;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d78149;
  outline-offset: 3px;
}
input,
select,
textarea {
  max-width: 100%;
  border: 1px solid #cdd1c8;
  border-radius: 8px;
  padding: 11px 13px;
  background: #fff;
  color: inherit;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
textarea {
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.9rem;
}
p {
  line-height: 1.7;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  line-height: 1.3;
}
h2 {
  font-size: 1.7rem;
}
h3 {
  font-size: 1.05rem;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
[hidden] {
  display: none !important;
}
.wrap {
  max-width: 1240px;
  margin: auto;
  padding-left: 32px;
  padding-right: 32px;
}
.announcement {
  overflow-wrap: anywhere;
  background: var(--green);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  padding: 10px;
  letter-spacing: 0.13em;
}
.site-header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-weight: 750;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 13px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}
.intro {
  background: #f0eddf;
  border: 1px solid #e9e5d4;
  border-radius: 4px;
  padding: 36px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 48px;
  overflow: hidden;
}
.eyebrow {
  color: var(--red);
  font-size: 0.75rem;
  letter-spacing: 0.19em;
  font-weight: 700;
  margin-bottom: 18px;
}
.intro h1 {
  font-size: 3.25rem;
  line-height: 1.28;
  margin-bottom: 20px;
  font-weight: 800;
}
.intro h1 span {
  color: var(--green);
}
.intro p:last-child {
  margin-bottom: 0;
  color: #545b4b;
}
.intro-stamp {
  display: flex;
  align-items: center;
  gap: 32px;
  transform: rotate(-5deg);
  margin-right: 30px;
}
.intro-stamp > span {
  font-family: serif;
  color: var(--red);
  font-size: 6rem;
  border: 3px solid var(--red);
  padding: 0 16px;
  line-height: 1.25;
  border-radius: 7px;
}
.intro-stamp p {
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  line-height: 2.1;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.section-title h2 {
  margin-bottom: 24px;
}
.section-title .eyebrow {
  margin-bottom: 8px;
}
.search {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.search input {
  width: 290px;
}
.catalog-tools {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 22px;
  align-items: center;
}
.catalog-tools nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.catalog-tools label {
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
  color: var(--muted);
}
.chip {
  border-radius: 24px;
  padding: 9px 22px;
}
.chip.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.muted {
  font-size: 0.88rem;
  color: var(--muted);
}
#rate-note {
  margin: 20px 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
}
.product-card {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  overflow: hidden;
  border-radius: 6px;
}
.product-photo {
  aspect-ratio: 1;
  background: #f0f1ed;
  overflow: hidden;
  border-radius: 6px;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-photo img {
  transform: scale(1.035);
}
.product-copy {
  padding: 17px 1px;
}
.product-category {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 7px;
}
.product-copy h3 {
  margin-bottom: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
}
.detail-link {
  font-size: 0.8rem;
  color: var(--muted);
}
.count {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 30px;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 65px 24px;
  background: #f3f4ef;
  border: 1px dashed #cfd3c9;
  border-radius: 8px;
  width: 100%;
  color: var(--muted);
}
.empty h3 {
  color: #333;
}
.no-photo {
  height: 100%;
  min-height: 80px;
  display: grid;
  place-items: center;
  background: #eef0e9;
  font-size: 0.85rem;
  color: #737a6d;
  text-align: center;
}
.notice {
  background: #edf5ee;
  border: 1px solid #b3d5bc;
  color: #235431;
  padding: 14px 18px;
  border-radius: 8px;
  margin: 16px 0;
}
.notice.error {
  background: #fff0ec;
  color: #992b23;
  border-color: #efbdb3;
}
.error-text {
  color: #a52025;
  font-size: 0.9rem;
}
.primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  font-weight: 600;
}
.primary:hover {
  background: #9f1a27;
  border-color: #9f1a27;
}
.danger {
  color: #ad2631;
}
footer {
  margin-top: 60px !important;
  border-top: 1px solid var(--line);
  padding-top: 28px !important;
  padding-bottom: 36px !important;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 38px;
  max-width: min(940px, calc(100vw - 32px));
  width: 940px;
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 30px 100px #0003;
}
dialog::backdrop {
  background: #17241c88;
  backdrop-filter: blur(4px);
}
.close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 1.5rem;
  line-height: 1;
  padding: 8px 12px;
  border: 0;
  background: #ffffffdf;
  z-index: 1;
}
#detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.detail-photo {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #eff1eb;
}
.detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.thumbnails button {
  width: 65px;
  height: 65px;
  padding: 0;
  overflow: hidden;
}
.thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-copy h2 {
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.big-price {
  font-size: 1.8rem;
  color: var(--red);
  font-weight: 700;
}
.description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.contact-box {
  background: #f0f2e9;
  padding: 16px;
  margin-top: 26px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.admin-body {
  background: #f5f6f2;
}
.admin-body .site-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.login-panel {
  max-width: 440px;
  margin: 70px auto;
  background: white;
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 12px;
}
.login-panel h1 {
  font-size: 2rem;
}
.login-panel form,
.settings-form {
  display: grid;
  gap: 22px;
}
.login-panel > p:last-child {
  margin: 24px 0 0;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.admin-heading h1 {
  margin-bottom: 28px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.stats > div {
  background: #fff;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stats span {
  color: var(--muted);
}
.stats strong {
  font-size: 2rem;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 14px 0;
}
.tabs .active {
  color: var(--red);
  border-bottom: 3px solid var(--red);
  font-weight: 700;
}
.admin-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  white-space: nowrap;
}
th {
  background: #eef0e9;
  font-weight: 500;
  color: #59614f;
}
th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
.table-product {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 320px;
  white-space: normal;
}
.table-product img,
.table-product .no-photo {
  width: 52px;
  height: 52px;
  min-height: 52px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  font-size: 0.7rem;
}
.table-product strong {
  overflow-wrap: anywhere;
}
.row-actions {
  display: flex;
  gap: 6px;
}
.row-actions button {
  padding: 7px 10px;
  font-size: 0.85rem;
}
.badge {
  padding: 5px 9px;
  border-radius: 5px;
  background: #f1f0ea;
  color: #6e695b;
  font-size: 0.8rem;
}
.badge.live {
  color: #246842;
  background: #eaf4ed;
}
.inline-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.category-row {
  display: flex;
  gap: 12px;
  max-width: 680px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.category-row input:first-child {
  flex: 1;
  min-width: 100px;
}
.category-row input[type="number"] {
  width: 100px;
}
.settings-form {
  max-width: 580px;
}
.settings-form button {
  justify-self: start;
}
.rate-box {
  border-top: 1px solid var(--line);
  margin: 32px 0;
  padding: 25px 0;
  max-width: 680px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
#product-form {
  display: grid;
  gap: 22px;
}
.image-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.image-list > div {
  width: 96px;
}
.image-list img {
  width: 96px;
  height: 96px;
  border-radius: 6px;
  object-fit: cover;
}
.image-list button {
  width: 100%;
  padding: 7px;
  font-size: 0.8rem;
}
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .intro-stamp {
    margin: 0;
    gap: 15px;
  }
  .intro-stamp > span {
    font-size: 4.5rem;
  }
  .intro-stamp p {
    font-size: 1rem;
  }
  .header-right {
    gap: 12px;
  }
  .header-right > label {
    display: none;
  }
  .intro {
    padding: 32px;
  }
  .intro h1 {
    font-size: 2.6rem;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
  .announcement {
    font-size: 0.75rem;
  }
  .site-header {
    height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 17px;
  }
  .brand {
    font-size: 1.2rem;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .header-right {
    font-size: 0.8rem;
    gap: 14px;
  }
  .header-right select {
    padding: 8px;
    font-size: 0.85rem;
  }
  .intro {
    margin-top: 4px;
    margin-bottom: 34px;
    padding: 25px;
  }
  .intro h1 {
    font-size: 2.35rem;
  }
  .intro-stamp p {
    display: none;
  }
  .intro-stamp > span {
    font-size: 3rem;
    padding: 0 9px;
  }
  .intro .eyebrow {
    font-size: 0.65rem;
  }
  .intro p:last-child {
    font-size: 0.85rem;
    max-width: 200px;
  }
  .section-title {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }
  .section-title h2 {
    margin-bottom: 15px;
  }
  .search {
    margin-bottom: 20px;
  }
  .search input {
    width: 100%;
  }
  .catalog-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .catalog-tools label {
    justify-content: flex-end;
    font-size: 0.85rem;
  }
  .chip {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  .catalog-tools nav {
    gap: 8px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }
  .product-copy {
    padding: 12px 0;
  }
  .product-price {
    font-size: 1.05rem;
  }
  .product-copy h3 {
    font-size: 0.95rem;
  }
  .empty {
    padding: 40px 18px;
  }
  .count {
    margin: 20px;
  }
  .intro-stamp {
    margin-left: 12px;
  }
  footer {
    flex-direction: column;
    gap: 10px;
  }
  dialog {
    padding: 35px 20px 24px;
  }
  #detail-body {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .detail-copy h2 {
    font-size: 1.4rem;
  }
  .login-panel {
    margin: 25px auto;
    padding: 24px;
  }
  .admin-heading h1 {
    font-size: 1.8rem;
  }
  .admin-heading .eyebrow {
    font-size: 0.65rem;
  }
  .admin-heading .primary {
    padding: 10px;
    font-size: 0.85rem;
  }
  .stats {
    gap: 9px;
  }
  .stats > div {
    padding: 13px;
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }
  .stats span {
    font-size: 0.8rem;
  }
  .stats strong {
    font-size: 1.6rem;
  }
  .category-row {
    flex-wrap: wrap;
  }
  .category-row input[type="number"] {
    width: 75px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .admin-filter input {
    min-width: 0;
    width: 100%;
  }
  .tabs {
    gap: 25px;
  }
  .table-scroll {
    margin-bottom: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.search {
  white-space: nowrap;
}
.search input {
  min-width: 0;
}

.header-right {
  flex-wrap: wrap;
  gap: 10px;
}
.site-header {
  min-height: 100px;
  height: auto;
  padding-top: 20px;
  padding-bottom: 20px;
}
.tabs {
  overflow: auto;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .header-right {
    justify-content: space-between;
    width: 100%;
  }
}

/* Storefront and touch layouts */
:root {
  --green: #214d40;
  --red: #a93930;
  --line: #e4e6dd;
  background: #fafaf6;
}
html {
  scroll-padding-top: 24px;
}
button,
input,
select {
  min-height: 44px;
}
button:disabled {
  cursor: not-allowed;
}
input[type="checkbox"] {
  min-height: 20px;
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -80px;
  z-index: 30;
  background: white;
  padding: 14px;
}
.skip-link:focus {
  top: 12px;
}
.storefront .site-header {
  gap: 20px;
  padding-block: 24px;
}
.brand {
  min-width: 0;
  overflow-wrap: anywhere;
  letter-spacing: 0.04em;
}
.brand img {
  flex-shrink: 0;
}
.header-right {
  justify-content: flex-end;
}
.shopping-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.browse-link {
  display: none;
}
.intro {
  position: relative;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 85% 30%, #e0e5c9 0%, transparent 55%), #f1eedf;
  padding: 52px 54px;
  margin: 8px 0 0;
  min-height: 330px;
}
.intro > div:first-child {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.intro h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  letter-spacing: -0.025em;
}
#description {
  max-width: 510px;
  overflow-wrap: anywhere;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 15px 22px;
  border-radius: 12px;
  font-size: 0.95rem;
  background: var(--green);
}
.hero-actions > span {
  font-size: 0.8rem;
  color: #666d58;
}
.intro-stamp {
  border: 1px solid #bdc6a5;
  background: #faf9eb99;
  border-radius: 50% 50% 16px 16px;
  padding: 40px 30px;
  box-shadow: 12px 14px 0 #bcc8a63d;
  flex-shrink: 0;
}
.intro-stamp > span {
  border-radius: 50%;
  padding: 8px 16px;
  font-size: 4.5rem;
}
.service-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 42px;
  font-size: 0.83rem;
  color: var(--muted);
}
.service-strip b {
  font-size: 0.72rem;
  color: var(--green);
  padding-right: 8px;
}
.catalog {
  scroll-margin-top: 20px;
}
.catalog .section-title h2 {
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}
.search input {
  background: #fff;
  border-radius: 12px;
  width: 310px;
}
.catalog-tools {
  border: 0;
  padding-bottom: 10px;
}
.catalog-tools nav {
  min-width: 0;
}
.catalog-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 8px;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--green);
  text-decoration: underline;
  padding-inline: 6px;
}
.catalog-summary .count {
  margin: 0 0 0 auto;
}
#rate-note {
  margin: 8px 0 24px;
  font-size: 0.78rem;
}
.product-grid {
  gap: 24px;
}
.product-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.product-card:hover {
  border-color: #a8bbab;
  box-shadow: 0 8px 24px #203a2310;
}
.product-photo {
  border-radius: 0;
  margin: 8px 8px 0;
  border-radius: 10px;
  background: #f4f4ed;
}
.product-photo img {
  object-fit: contain;
}
.product-copy {
  padding: 18px;
}
.product-copy h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
}
.product-category {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
.product-price {
  font-variant-numeric: tabular-nums;
}
.detail-link {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--green);
}
.empty {
  background: #f0f3ea;
  border-radius: 18px;
  padding-block: 65px;
}
.empty p {
  margin-bottom: 0;
}
dialog {
  border-radius: 22px;
  padding: 48px 32px 32px;
  overscroll-behavior: contain;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.close {
  position: sticky;
  display: block;
  margin: -34px -18px 6px auto;
  top: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px #0001;
  border-radius: 50%;
}
.detail-copy .primary {
  width: 100%;
  min-height: 50px;
}
#notice {
  scroll-margin-block: 24px;
}
.storefront #notice:not([hidden]) {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  z-index: 15;
  box-shadow: 0 8px 24px #0002;
}
.admin-body .tabs {
  gap: 8px;
  padding: 6px;
  background: #e9ece3;
  border: 0;
  border-radius: 14px;
}
.admin-body .tabs button {
  padding: 12px 18px;
  border-radius: 10px;
  flex-shrink: 0;
}
.admin-body .tabs .active {
  background: white;
  color: var(--green);
  border: 0;
  box-shadow: 0 2px 8px #0001;
}
.admin-body .stats > div {
  border-radius: 16px;
}
.admin-body #workspace > section {
  background: white;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.row-actions {
  flex-wrap: wrap;
}
.category-row {
  align-items: center;
}
.category-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
footer {
  overflow-wrap: anywhere;
}
@media (min-width: 641px) and (max-width: 1000px) {
  .site-header {
    flex-wrap: wrap;
  }
  .intro-stamp p {
    display: none;
  }
  .intro-stamp {
    padding: 28px;
    margin-right: 0;
  }
  .service-strip {
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .storefront {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }
  .storefront .site-header {
    padding-block: 18px;
    gap: 14px;
  }
  .storefront .header-right {
    width: 100%;
    justify-content: space-between;
  }
  .header-right select,
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .brand {
    font-size: 1.25rem;
    max-width: 100%;
  }
  .shopping-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: 1fr 1.35fr 1fr;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fffffff5;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px #2636260b;
    gap: 8px;
  }
  .shopping-actions button,
  .browse-link {
    font-size: 0.85rem;
    padding: 12px 5px;
    text-align: center;
    border-radius: 12px;
    min-height: 48px;
  }
  .browse-link {
    display: block;
    background: #f0f3ea;
  }
  .intro {
    border-radius: 20px;
    padding: 30px 24px;
    min-height: 0;
    margin-bottom: 0;
  }
  .intro h1 {
    font-size: 2.3rem;
    margin-bottom: 16px;
  }
  .intro-stamp {
    position: absolute;
    right: -18px;
    top: 25px;
    padding: 22px;
    opacity: 0.2;
    transform: rotate(10deg);
  }
  .intro-stamp > span {
    font-size: 3.2rem;
  }
  .intro p:last-child {
    max-width: none;
  }
  .hero-actions {
    margin-top: 24px;
    gap: 12px;
  }
  .hero-actions > span {
    max-width: 95px;
    line-height: 1.6;
  }
  .hero-link {
    padding: 13px 18px;
    gap: 18px;
    flex-shrink: 0;
  }
  .service-strip {
    display: grid;
    gap: 10px;
    padding: 20px 4px;
    margin-bottom: 28px;
    font-size: 0.78rem;
  }
  .catalog .section-title h2 {
    font-size: 1.6rem;
  }
  .search {
    font-size: 0.85rem;
  }
  .catalog-tools nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .chip {
    flex-shrink: 0;
    max-width: 230px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .catalog-tools {
    gap: 8px;
  }
  .catalog-summary {
    gap: 8px;
  }
  .catalog-summary .count {
    font-size: 0.78rem;
  }
  .product-grid {
    gap: 12px;
  }
  .product-card {
    border-radius: 13px;
  }
  .product-copy {
    padding: 12px;
  }
  .product-price {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }
  .detail-link {
    font-size: 0.72rem;
  }
  dialog {
    width: 100%;
    max-width: 100%;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    padding: 44px 20px calc(24px + env(safe-area-inset-bottom));
    border-bottom: 0;
  }
  .close {
    margin-right: -6px;
  }
  #detail-body {
    gap: 20px;
  }
  .detail-photo {
    max-height: 45dvh;
  }
  .form-grid > *,
  .settings-form > * {
    min-width: 0;
  }
  .admin-body #workspace > section {
    padding: 16px;
  }
  .admin-body .tabs {
    margin-inline: -4px;
  }
  .admin-body .tabs button {
    padding-inline: 14px;
  }
  .inline-form {
    flex-wrap: wrap;
  }
  .inline-form input {
    flex: 1;
    min-width: 120px;
  }
  .admin-filter select {
    width: 100%;
  }
  .settings-form button {
    width: 100%;
  }
  .admin-heading h1 {
    font-size: 1.6rem;
  }
  .stats > div {
    padding: 10px;
  }
  .category-row {
    gap: 8px;
  }
  .category-row button {
    flex-shrink: 0;
  }
  footer {
    margin-top: 36px !important;
  }
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notice-dismiss {
  flex-shrink: 0;
  border: 0;
  padding: 4px;
  width: 44px;
  background: transparent;
  font-size: 1.2rem;
}
@media (max-width: 640px) {
  #panel-products .table-scroll {
    border: 0;
    overflow: visible;
    background: transparent;
  }
  #panel-products table,
  #panel-products tbody {
    display: block;
    width: 100%;
  }
  #panel-products thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  #product-rows tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
  }
  #product-rows td {
    display: block;
    padding: 8px 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #product-rows td[data-label] {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  #product-rows td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    flex-shrink: 0;
  }
  #product-rows .table-product {
    max-width: none;
    align-items: flex-start;
  }
  #product-rows .row-actions {
    gap: 8px;
  }
  #product-rows .row-actions button {
    flex: 1;
  }
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  background: var(--green);
  color: white;
  border-radius: 12px;
}
#contact {
  scroll-margin-bottom: 110px;
}
@media (max-width: 640px) {
  .shopping-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* Share-only cart: no checkout or payment flow. */
#shopping-cart { width: 680px; }
#shopping-cart h2 { padding-right: 32px; }
#cart-items { list-style: none; padding: 0; margin: 24px 0; }
.cart-item { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item-copy { min-width: 0; overflow-wrap: anywhere; }
.cart-item h3 { margin: 0 0 8px; font-size: 1rem; }
.cart-item p { margin: 6px 0; }
.cart-item-actions { flex-shrink: 0; display: grid; gap: 8px; justify-items: end; }
.quantity-control { display: flex; align-items: center; gap: 4px; }
.quantity-control input { width: 64px; text-align: center; padding: 10px 3px; }
.quantity-control button { min-width: 42px; min-height: 44px; padding: 8px; }
.cart-summary { padding: 16px; background: #f0f3ea; border-radius: 16px; }
#cart-contact, #cart-status { overflow-wrap: anywhere; }
#cart-share-text { width: 100%; resize: vertical; margin: 10px 0; font-size: 16px; }
#cart-share-preview[hidden] { display: none; }
@media (max-width: 560px) {
  .cart-item { flex-direction: column; }
  .cart-item-actions { display: flex; justify-content: space-between; align-items: center; }
  #shopping-cart .row-actions { display: grid; grid-template-columns: 1fr; }
  #shopping-cart { padding: 24px 18px; }
}

/* Keep mobile actions on one row and put the catalog first. */
.catalog:focus { outline: none; }
.catalog-summary > label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: .85rem; }
@media (max-width: 760px) {
  .storefront .shopping-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .storefront .shopping-actions > * { min-width: 0; min-height: 44px; margin: 0; padding: 10px 8px; font-size: .9rem; white-space: nowrap; }
  .storefront { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .catalog .section-title { gap: 8px; }
  .catalog .section-title h2 { margin: 0; }
  .catalog .section-title .eyebrow { display: none; }
  .catalog .search { width: 100%; margin: 0 0 8px; gap: 8px; }
  .catalog .search input { min-width: 0; flex: 1; padding: 11px 12px; }
  .catalog-tools { margin-bottom: 0; padding-bottom: 4px; }
  .catalog-tools nav { width: 100%; max-width: 100%; padding: 2px 0 6px; }
  .catalog-tools .chip { padding: 9px 14px; min-height: 44px; }
  .catalog-summary { margin: 0; padding: 8px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .catalog-summary select { padding: 8px; min-height: 40px; max-width: 145px; }
  .catalog-summary .count { margin: 0; }
  #rate-note { margin: 0 0 14px; font-size: .75rem; }
  .product-grid { gap: 10px; }
  .product-copy { padding: 10px; }
  .product-copy h3 { font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
  #contact { scroll-margin-bottom: 90px; }
}
