:root {
  color-scheme: light;
  --ink: #183827;
  --muted: #4b6153;
  --paper: #f7f5ed;
  --line: #deded1;
  --green: #174c34;
  --light: #e8edde;
  --accent: #e8efad;
  --white: #fffdfa;
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #9c4935;
  outline-offset: 3px;
}
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.32; margin: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.skip {
  position: fixed; z-index: 3; inset-block-start: 12px; inset-inline-start: 12px; padding: .6rem 1rem;
  background: var(--white); transform: translateY(-180%);
}
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; min-height: 84px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; width: max-content; text-decoration: none; }
.brand b, .brand small { display: block; line-height: 1.35; }
.brand small { text-align: right; font-size: .69rem; color: var(--muted); letter-spacing: .06em; }
.brand-mark {
  display: grid; place-items: center; width: 43px; height: 43px; font-size: 1.55rem; font-weight: 700;
  color: var(--accent); background: var(--green); border-radius: 49% 49% 49% 16%; padding-block-end: 4px;
}
nav, .utility { display: flex; gap: clamp(.7rem, 2.1vw, 1.9rem); align-items: center; }
nav a, .utility a { font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
nav a:hover, .utility a:hover, [aria-current="page"] { text-decoration: underline !important; }
.utility { justify-content: flex-end; }
.cart-link { border: 1px solid var(--line); border-radius: 100px; padding: .45rem .75rem; }
#cart-count { margin-inline-start: .28em; min-width: 1.35em; display: inline-block; background: var(--light); text-align: center; border-radius: 50%; }
.hero {
  display: grid; grid-template-columns: .92fr 1.08fr; overflow: hidden;
  min-height: 477px; margin-top: 30px; background: var(--green); color: var(--white); border-radius: 24px;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(1.55rem, 5vw, 4rem);
}
.hero-copy h1 { color: #fffdf4; }
.eyebrow { font-size: .85rem; font-weight: 700; color: var(--accent); margin-bottom: 1.15rem; }
.eyebrow span { margin-inline: .25em; }
.hero-summary { font-size: 1rem; color: #ebeee3; margin: 1rem 0 1.7rem; max-width: 30ch; }
.hero-visual { min-height: 100%; position: relative; background: #e9e0c8; }
.hero-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.button {
  display: inline-flex; align-items: center; justify-content: center; width: fit-content;
  padding: .65rem 1.1rem; min-height: 44px; border: 1px solid transparent;
  border-radius: 8px; font-weight: 700; text-decoration: none; line-height: 1.35;
}
.primary { background: var(--green); color: var(--white); }
.primary:hover { background: #236142; }
.secondary { background: transparent; border-color: #9aaa9e; color: var(--ink); }
.secondary:hover { background: var(--light); }
.hero .primary { background: var(--accent); color: var(--ink); }
.hero .primary:hover { background: #f2f6ce; }
.catalog-note { color: var(--muted); font-size: .9rem; margin: 1rem 0 0; }
.section { margin-block: 2.9rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 1rem; }
.section-head a { color: var(--green); font-size: .9rem; font-weight: 700; }
.category-grid, .product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-tile {
  display: grid; grid-template-columns: 62px 1fr auto; gap: .65rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: .65rem .7rem; text-decoration: none; font-weight: 700;
}
.category-tile:hover { border-color: var(--green); }
.category-tile img { aspect-ratio: 1; width: 62px; object-fit: contain; border-radius: 7px; }
.arrow { font-size: 1.1rem; color: var(--muted); }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card-photo { display: block; background: #fff; }
.card-photo img { width: 100%; aspect-ratio: 1.16; object-fit: contain; }
.card-body { display: grid; gap: .55rem; padding: 1rem; flex: 1; grid-template-rows: auto 1fr auto; }
.category-label { color: var(--muted); font-size: .77rem; }
.card h3 { font-size: 1rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card-actions, .detail-actions, .page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.card-actions button {
  min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  color: var(--green); padding: .38rem .65rem; font-size: .8rem; font-weight: 700;
}
.card-actions button:hover, .card-actions button[aria-pressed="true"] { background: var(--light); }
.card-actions .save { width: 42px; font: 1.4rem/1 system-ui, sans-serif; }
.inner { min-height: 55vh; padding-block: 2rem 3.5rem; }
.page-intro { margin-bottom: 1.65rem; }
.page-intro h1 { font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: .55rem; }
.page-intro p:not(.trail) { color: var(--muted); margin: 0; }
.trail { font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
.filters {
  display: grid; grid-template-columns: minmax(10rem, 2fr) minmax(9rem, 1fr) auto; align-items: end;
  gap: .8rem; padding: 1rem; background: var(--light); border-radius: 12px;
}
.filters label { display: grid; gap: .32rem; font-size: .92rem; font-weight: 700; }
input, select { min-width: 0; border: 1px solid #a3b1a5; border-radius: 8px; background: var(--white); color: var(--ink); min-height: 44px; padding: .45rem .7rem; }
.results { margin: 1rem 0 .7rem; color: var(--muted); font-size: .88rem; }
.empty { border: 1px dashed #a3b1a5; padding: 1rem; color: var(--muted); border-radius: 8px; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 4vw, 3rem); align-items: center; }
.detail-photo { width: 100%; max-height: 480px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; }
.detail-copy h1 { margin-block: .45rem; font-size: clamp(2rem, 4vw, 3.7rem); }
.detail-copy p { color: var(--muted); }
.detail-actions, .page-actions { margin-block-start: 1.3rem; }
.item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.list-row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem;
  padding: .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
}
.row-product { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.row-product img { width: 64px; aspect-ratio: 1; object-fit: contain; }
.row-controls { display: flex; align-items: center; gap: .65rem; }
.quantity { width: 5.5rem; }
.remove { background: none; border: none; min-height: 44px; color: #8a3628; text-decoration: underline; }
.prose > p { max-width: 65ch; }
.site-footer { margin-top: 1.8rem; background: var(--light); border-top: 1px solid var(--line); }
.footer-inner { min-height: 115px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.1rem; padding-block: 1.25rem; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .84rem; }
.toast { position: fixed; inset: auto 1rem 1rem auto; opacity: 0; pointer-events: none; color: white; background: var(--green); border-radius: .55rem; padding: .65rem 1rem; }
.toast.visible { opacity: 1; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 48px); }
  .hero { min-height: 420px; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { grid-template-columns: 1fr auto; gap: .55rem; padding-block: .75rem; min-height: auto; }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .55rem; }
  .hero { margin-top: 16px; grid-template-columns: 1fr; min-height: 0; border-radius: 16px; }
  .hero-visual { min-height: 255px; min-height: clamp(205px, 57vw, 320px); }
  .hero-copy { padding: 1.4rem; }
  .hero-copy h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .section { margin-block: 2rem; }
  .section-head { gap: .5rem; }
  .category-grid, .product-grid { gap: 9px; }
  .category-tile { grid-template-columns: 42px 1fr; gap: .35rem; padding: .35rem; font-size: .8rem; }
  .category-tile img { width: 42px; }
  .category-tile .arrow { display: none; }
  .card-body { padding: .6rem; }
  .card-actions button { padding-inline: .35rem; }
  .card-actions { gap: .3rem; }
  .filters { grid-template-columns: 1fr auto; padding: .65rem; }
  .filters label:first-child { grid-column: 1 / -1; }
  .detail { grid-template-columns: 1fr; }
}

.price { margin: .36rem 0 0; font-weight: 700; }
.price small, .row-price { color: var(--muted); font-weight: 400; }
.row-price { display: block; margin-top: .2rem; }
.cart-subtotal { margin-top: 1rem; font-weight: 700; }
.text-tile { grid-template-columns: 1fr auto; min-height: 64px; padding-inline: 1rem; }
.text-tile .arrow { display: inline; }
.detail-copy .price { font-size: 1.25rem; color: var(--ink); }
.product-description { margin-top: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.gallery { display: flex; gap: .45rem; flex-wrap: wrap; padding-top: .65rem; }
.gallery-thumb { background: white; border: 1px solid var(--line); border-radius: 7px; padding: 3px; }
.gallery-thumb[aria-pressed="true"] { border: 2px solid var(--green); padding: 2px; }
.gallery-thumb img { height: 55px; width: 55px; object-fit: contain; }

.admin-panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1rem, 4vw, 2rem); }
.login-panel { max-width: 510px; margin-inline: auto; }
.admin-form { display: grid; gap: 1rem; }
.admin-form label { display: grid; align-content: start; gap: .3rem; font-weight: 700; }
.admin-form input:not([type="checkbox"],[type="radio"]), .admin-form select, .admin-form textarea { width: 100%; }
.admin-form textarea {
  padding: .6rem .7rem; resize: vertical; border: 1px solid #a3b1a5; border-radius: 8px;
  background: var(--white); color: var(--ink); font: inherit;
}
.admin-form small { color: var(--muted); }
.admin-form fieldset { min-inline-size: 0; border: 1px solid var(--line); border-radius: 8px; }
.admin-form legend { font-weight: 700; padding-inline: .4rem; }
.admin-form .choice { display: flex; align-items: center; gap: .55rem; }
.admin-form .choice input { min-height: 0; width: 1rem; height: 1rem; accent-color: var(--green); }
.admin-form .page-actions { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; }
.admin-gallery { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: .75rem; }
.admin-gallery > div { padding: .5rem; background: var(--paper); border-radius: 8px; font-size: .8rem; }
.admin-gallery img { height: 88px; object-fit: contain; background: white; margin-bottom: .4rem; }
.admin-link { margin: 1.1rem 0 0; font-size: .9rem; }
.admin-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; margin-bottom: 1rem; }
.admin-head .page-intro { margin-bottom: .55rem; }
.admin-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.admin-table table { width: 100%; text-align: start; border-collapse: collapse; background: var(--white); }
.admin-table td, .admin-table th { text-align: start; padding: .8rem; border-block-end: 1px solid var(--line); }
.admin-table thead { background: var(--light); }
.tag { background: var(--paper); border-radius: 100px; padding: .24rem .65rem; white-space: nowrap; }
.tag.live, .message { background: var(--light); }
.message { padding: .6rem .9rem; border-radius: 8px; }
.message.danger { color: #7b3021; background: #fae6e0; }
@media(max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .text-tile { padding-inline: .6rem; }
}


.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 1rem; align-items: start; }
.checkout-layout h2, .settings-panel h2 { font-size: 1.35rem; margin-block-end: .4rem; }
.checkout-summary button { margin-block-start: 1rem; }
.checkout-summary button:disabled { background: #dde3d9; color: var(--muted); cursor: default; }
.checkout-summary .edit-cart { margin-inline-start: .7rem; display: inline-block; }
.checkout-items { display: grid; gap: .4rem; list-style: none; padding: 0; margin-block: 1rem; }
.checkout-items li { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.checkout-items strong { white-space: nowrap; }
.order-totals { display: grid; gap: .4rem; margin-block: .9rem; }
.order-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.order-totals dd { margin: 0; }
.order-totals .total { font-weight: 700; border-block-start: 1px solid var(--line); padding-block-start: .55rem; }
.receipt { max-width: 640px; margin-inline: auto; }
.contact-details dd { white-space: pre-wrap; overflow-wrap: anywhere; text-align: end; }
.settings-panel { margin-block: .9rem; }
.settings-panel h3 { margin-block-start: 1.25rem; }
.zone-settings { border-block-start: 1px solid var(--line); padding-block: .55rem; }
.zone-settings summary { cursor: pointer; }
.zone-settings form { margin-block: .75rem .25rem; }
.inline-setting { grid-template-columns: minmax(9rem, 26rem) auto; align-items: end; justify-content: start; }
.order-filter { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; margin-block-end: 1rem; }
@media(max-width: 730px) {
  .checkout-layout { grid-template-columns: 1fr; }
}
@media(max-width: 420px) {
  .inline-setting { grid-template-columns: 1fr; }
}

