@charset "utf-8";
:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #1b3026;
  background: #f6f6f0;
  --forest: #153a2d;
  --forest-deep: #102f24;
  --sage: #e7ede3;
  --paper: #fffefa;
  --muted: #5e6b61;
  --line: #dce1d8;
  --gold: #f7cd6e;
  --radius: 16px;
  --shadow: 0 12px 32px #17362b0b;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button, a { touch-action: manipulation; }
a { color: var(--forest); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #a86c17;
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
small { color: var(--muted); }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; background: var(--paper); padding: 12px; top: 10px; left: 10px; }
.loading { min-height: 70vh; display: grid; place-items: center; color: var(--muted); }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.eyebrow i { background: #5e8056; width: 7px; height: 7px; border-radius: 50%; }
.brand { display: inline-flex; gap: 10px; align-items: center; line-height: 1; flex-shrink: 0; }
.brand strong { display: block; font-size: 1.6rem; letter-spacing: -.065em; }
.brand small { display: block; color: currentColor; opacity: .72; font-size: .57rem; font-weight: 800; letter-spacing: .13em; margin-top: 5px; }
.brand-dot { color: #aa7021; }
.button { min-height: 43px; padding: 9px 15px; border-radius: 10px; border: 1px solid transparent; text-decoration: none;
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-weight: 700; font-size: .91rem; white-space: nowrap; }
.button svg, nav svg { flex-shrink: 0; }
.button.primary { background: var(--forest); color: #fff; }
.button.primary:hover:not(:disabled) { background: #245641; }
.button.secondary { border-color: var(--line); background: var(--paper); color: var(--forest); }
.button.secondary:hover:not(:disabled), .button.subtle:hover:not(:disabled) { background: var(--sage); }
.button.subtle { color: var(--forest); background: transparent; }
.button.amber { background: var(--gold); color: #273424; }
.button.amber:hover { background: #ffe099; }
.button.danger { color: #872d2d; background: #f7e7e2; }
.button.danger:hover { background: #f2d9d1; }
.wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.auth { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); min-height: 100vh; }
.auth-visual { background: radial-gradient(ellipse at 80% 65%, #25513d, var(--forest-deep) 65%);
  color: #fcfcf3; min-height: 630px; padding: clamp(30px, 5vw, 78px); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; gap: 36px; }
.auth-visual .brand-dot, .auth-copy em, .hero em { color: var(--gold); }
.auth-visual .eyebrow, .hero .eyebrow { color: #d6e7cc; }
.auth-visual .eyebrow i, .hero .eyebrow i { background: var(--gold); }
.auth-copy { position: relative; z-index: 1; margin-top: -60px; }
.auth-copy h1, .hero h1 { font-size: clamp(3.5rem, 7vw, 7.1rem); font-weight: 740; line-height: .94; letter-spacing: -.077em; margin: 17px 0 20px; }
.auth-copy em, .hero em { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.065em; }
.auth-copy p, .hero p { max-width: 34ch; color: #e0eade; font-size: 1.06rem; line-height: 1.55; }
.auth-art { position: absolute; z-index: -1; width: min(75%, 550px); bottom: 5%; right: -5%; opacity: .86; }
.auth-caption { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: #d4e3ce; }
.auth-entry { display: grid; place-items: center; background: #fbfaf4; padding: clamp(24px, 5vw, 72px); }
.auth-panel { width: min(100%, 406px); }
.auth-icon { background: var(--sage); color: var(--forest); width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 24px; }
.auth-panel h2 { font-size: clamp(1.85rem, 4vw, 2.8rem); line-height: 1.08; letter-spacing: -.06em; margin-top: 8px; }
.auth-panel > p { color: var(--muted); line-height: 1.55; margin: 13px 0 23px; }
.auth-footer { padding-top: 27px; margin-top: 27px; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
.auth-footer span { margin: 0 5px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 680; min-width: 0; }
label small { font-size: .78rem; font-weight: 400; line-height: 1.4; }
input:not([type="checkbox"]), select, textarea { min-width: 0; width: 100%; padding: 10px 12px; border: 1px solid #cbd5c9; border-radius: 9px;
  background: #fff; color: #192e25; min-height: 43px; }
input::placeholder, textarea::placeholder { color: #69766d; opacity: 1; }
input[type="file"] { padding: 8px; }
textarea { resize: vertical; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-label { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.check-label input { width: 17px; height: 17px; accent-color: var(--forest); }
.form-error { padding: 10px 12px; color: #842d22; background: #faeee9; border-radius: 8px; font-size: .88rem; line-height: 1.45; }
.topbar { background: #fcfcf6; border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1360px; padding: 13px 32px; margin: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
nav { display: flex; justify-content: center; gap: 5px; }
nav button { display: inline-flex; align-items: center; gap: 7px; color: #52645a; background: transparent; padding: 9px 12px; min-height: 41px;
  border: 0; border-radius: 10px; white-space: nowrap; font-weight: 650; font-size: .89rem; }
nav button:hover, nav [aria-current="page"] { background: var(--sage); color: var(--forest-deep); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.cart-button { background: var(--forest); color: white; padding-inline: 12px; }
.cart-button:hover { background: #265742; }
.cart-button b { display: grid; place-items: center; min-width: 23px; min-height: 23px; border-radius: 9px; padding: 0 3px; color: #2f331c; background: var(--gold); font-size: .73rem; }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: #ece8d9; border: 1px solid #ddd7c2; color: #433b24; font-weight: 750; font-size: .87rem; }
.avatar:hover:not(.static) { background: #e5dec7; }
.wrap { max-width: 1264px; margin: 0 auto; padding: 0 28px; }
main.wrap { min-height: 65vh; padding-bottom: 50px; }
main.wrap:focus { outline: none; }
.page-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
.page-footer .wrap { padding-block: 20px; display: flex; justify-content: space-between; gap: 12px; }
.page-footer b { color: #8a622a; }
.hero { margin: 27px 0 39px; min-height: 330px; display: grid; align-items: center; border-radius: 23px; overflow: hidden;
  background: radial-gradient(ellipse at 75% 50%, #26563f, var(--forest-deep) 72%); color: #fffdf0; position: relative; isolation: isolate; }
.hero-copy { padding: clamp(24px, 5vw, 62px); }
.hero h1 { font-size: clamp(2.65rem, 5.8vw, 5rem); margin: 12px 0 15px; }
.hero p { margin-bottom: 20px; }
.hero-art { position: absolute; right: 0; bottom: -2%; width: 51%; height: 105%; object-fit: contain; z-index: -1; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-top: 42px; margin-bottom: 24px; }
.page-heading h1, .catalog-tools h2 { font-size: clamp(2.05rem, 5vw, 3.65rem); letter-spacing: -.066em; line-height: 1.1; margin: 8px 0; }
.page-heading p { color: var(--muted); line-height: 1.5; }
.catalog-tools { display: flex; justify-content: space-between; align-items: end; gap: 16px; scroll-margin-top: 20px; }
.catalog-tools h2 { font-size: 2.3rem; }
.search { display: flex; align-items: center; padding-left: 12px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; width: min(350px, 100%); gap: 3px; color: var(--muted); }
.search svg { flex-shrink: 0; }
.search input { border: 0; background: transparent; padding-inline: 7px 11px; font-weight: 500; }
.search input:focus-visible { outline-offset: -2px; }
.toolbar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.select-filter { min-width: min(190px, 100%); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; }
.pills button { background: var(--paper); border: 1px solid var(--line); color: var(--forest); min-height: 37px; padding: 6px 13px;
  border-radius: 999px; font-size: .86rem; font-weight: 680; overflow-wrap: anywhere; }
.pills [aria-pressed="true"] { color: #fff; background: var(--forest); border-color: var(--forest); }
.result-count { color: var(--muted); margin: 13px 0; font-size: .86rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 14px; }
.product-card, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.product-card { display: flex; flex-direction: column; overflow: hidden; }
.product-photo { display: grid; place-items: center; position: relative; aspect-ratio: 16 / 9; min-height: 85px; overflow: hidden; }
.product-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tone-0 { background: #e4ede2; color: #486950; }
.tone-1 { background: #f2e7cf; color: #806335; }
.tone-2 { background: #f4e3dc; color: #925b4c; }
.tone-3 { background: #e1ebe9; color: #406962; }
.product-photo.mini { width: 48px; height: 48px; min-height: 0; border-radius: 9px; flex-shrink: 0; }
.product-copy { flex: 1; padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.product-copy .eyebrow { letter-spacing: .08em; }
.product-copy h3 { font-size: 1.18rem; margin: 4px 0 6px; overflow-wrap: anywhere; }
.product-copy p { color: var(--muted); font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.product-foot { display: flex; justify-content: space-between; gap: 8px; align-items: end; margin-top: auto; padding-top: 17px; }
.product-foot strong { display: block; font-size: 1.19rem; }
.product-foot small { display: block; margin-top: 3px; }
.add { background: #e4ede1; color: var(--forest); min-height: 40px; padding: 7px 10px; font-size: .86rem; display: flex; align-items: center;
  justify-content: center; gap: 4px; border-radius: 9px; border: 1px solid transparent; font-weight: 700; }
.add:hover:not(:disabled) { background: #d3e3cc; }
.empty { display: grid; place-items: center; text-align: center; padding: 40px 20px; border: 1px dashed #c9d4c8;
  border-radius: var(--radius); background: #fdfdf7; margin-top: 12px; gap: 9px; }
.empty-icon, .metric-icon, .order-symbol { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; background: var(--sage); color: #305640; flex-shrink: 0; }
.empty p { color: var(--muted); line-height: 1.45; }
.empty .button { margin-top: 5px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.metric { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; gap: 11px; padding: 14px; min-width: 0; }
.metric b { display: block; font-size: 1.43rem; }
.metric span { color: var(--muted); font-size: .87rem; line-height: 1.15; }
.order-list { display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(85px, auto) auto; align-items: center; gap: 14px; padding: 13px 15px; }
.order-label { min-width: 0; overflow-wrap: anywhere; }
.order-label h3 { font-size: .96rem; }
.order-label h3 span { color: #526057; font-weight: 550; margin-left: 6px; }
.order-label small, .order-meta small { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.order-label svg { flex-shrink: 0; }
.order-total small, .record small, .cart-item small, .timeline small, .order-items small, .account-info small { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.badge { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  padding: 6px 9px; font-weight: 750; font-size: .75rem; }
.status-requested { background: #f7ebcc; color: #684d19; }
.status-confirmed { background: #e4eee4; color: #26573e; }
.status-preparing { background: #e8ebf9; color: #3d4d84; }
.status-delivered { background: #d8ebe1; color: #1b5338; }
.status-cancelled { background: #f6e6e0; color: #813928; }
.table { display: grid; }
.record { display: flex; align-items: center; gap: 13px; padding: 13px 15px; }
.record + .record { border-top: 1px solid var(--line); }
.record-main { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.record-price { min-width: 96px; }
.history { margin-top: 19px; padding: 14px; }
.history summary { font-weight: 700; }
.history summary span { font-weight: 400; color: var(--muted); font-size: .83rem; margin-left: 8px; }
.history ul, .import-preview, .order-items { padding: 0; margin: 10px 0 0; list-style: none; }
.history li { padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.history li span { margin-left: 6px; }
.history li small { display: block; margin-top: 3px; }
.history p { margin-top: 10px; color: var(--muted); }
dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 18px; color: inherit; background: var(--paper); box-shadow: 0 18px 95px #0c251f4a; }
dialog::backdrop { background: #0a231ab8; }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 8px; align-items: center;
  background: var(--paper); border-bottom: 1px solid var(--line); padding: 13px 19px; }
.dialog-head h2 { font-size: 1.37rem; letter-spacing: -.035em; }
.icon-button { width: 37px; height: 37px; display: grid; place-items: center; background: var(--sage); border-radius: 9px; color: var(--forest); border: 0; }
.dialog-body { padding: 17px 19px 20px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.dialog-lead { color: var(--muted); line-height: 1.45; }
.download-link { display: inline-flex; gap: 6px; align-items: center; width: fit-content; }
.import-preview li, .order-items li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 8px 0; overflow-wrap: anywhere; }
.import-preview li span { color: var(--muted); font-size: .82rem; }
.cart-items { display: grid; }
.cart-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cart-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; }
.stepper b { min-width: 25px; text-align: center; }
.stepper button { width: 34px; height: 35px; display: grid; place-items: center; background: transparent; border: 0; color: var(--forest); }
.stepper button:hover:not(:disabled) { background: var(--sage); }
.cart-total { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 12px 13px; border-radius: 9px; background: var(--sage); }
.cart-total strong { font-size: 1.22rem; }
.cart-note, .order-meta, .account-info { display: flex; align-items: center; gap: 7px; }
.cart-note { color: var(--muted); font-size: .85rem; }
.cart-note svg { flex-shrink: 0; }
.warning { color: #8b3429; }
.order-meta, .account-info { justify-content: space-between; }
.order-meta > div, .account-info > div { min-width: 0; overflow-wrap: anywhere; }
.order-note { padding: 10px 12px; background: #f4f3e9; border-radius: 9px; margin-top: 11px; overflow-wrap: anywhere; }
.order-note b { display: block; font-size: .83rem; margin-bottom: 4px; }
.timeline { padding: 15px 0 9px; }
.timeline h3 { font-size: 1rem; }
.timeline ol { list-style: none; padding: 0 0 0 8px; margin: 9px 0 0; }
.timeline li { position: relative; border-left: 1px solid #a8bba6; padding: 0 0 12px 16px; font-size: .89rem; overflow-wrap: anywhere; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5e8056; position: absolute; top: 6px; left: -4.5px; }
.account-info { margin-bottom: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.logout-row { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 9px; }
.toast { position: fixed; right: 19px; bottom: 19px; z-index: 4; max-width: min(420px, calc(100% - 38px)); color: #fff; background: var(--forest-deep);
  border: 1px solid #64816a; border-radius: 11px; padding: 11px 14px; box-shadow: 0 8px 24px #132b2845; }
.toast-error { background: #7b3229; border-color: #a96860; }
@media (max-width: 940px) {
  .top-inner { padding-inline: 18px; }
  nav button { padding-inline: 8px; }
  .auth-art { width: 85%; right: -15%; opacity: .65; }
}
@media (max-width: 740px) {
  .auth { display: block; }
  .auth-visual { min-height: 245px; padding: 20px 22px; gap: 21px; }
  .auth-copy { margin: 0; }
  .auth-copy h1 { font-size: clamp(2.45rem, 10vw, 3.35rem); margin: 8px 0 9px; }
  .auth-copy p { font-size: .92rem; max-width: 27ch; }
  .auth-art { width: min(56%, 290px); right: -8%; bottom: -4%; opacity: .75; }
  .auth-caption { display: none; }
  .auth-entry { padding: 25px 21px 34px; }
  .auth-icon { display: none; }
  .top-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding: 9px 15px 6px; }
  nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; overflow-x: auto; scrollbar-width: thin; }
  nav button { min-height: 37px; }
  .top-actions { grid-column: 2; grid-row: 1; }
  .wrap { padding-inline: 15px; }
  .hero { margin: 15px 0 22px; min-height: 255px; }
  .hero-copy { padding: 21px; }
  .hero h1 { font-size: clamp(2.25rem, 7.6vw, 3.85rem); }
  .hero p { font-size: .9rem; max-width: 28ch; }
  .hero-art { right: -9%; width: 56%; opacity: .65; }
  .page-heading { padding-top: 25px; align-items: flex-start; flex-direction: column; }
  .catalog-tools { flex-wrap: wrap; gap: 8px; }
  .metric { padding: 9px; gap: 6px; flex-direction: column; align-items: start; }
  .metric-icon { width: 32px; height: 32px; border-radius: 8px; }
  .metric span { font-size: .76rem; }
  .order-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .order-row .order-symbol { display: none; }
  .order-total { grid-column: 1; grid-row: 2; }
  .order-row .button { grid-column: 2; grid-row: 2; }
  .record { flex-wrap: wrap; gap: 8px; padding: 11px; }
  .record .record-main { flex-basis: min(55%, 270px); }
  .record .actions { margin-left: auto; }
}
@media (max-width: 420px) {
  .cart-button span { display: none; }
  .hero-art { right: -16%; opacity: .48; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .search { width: 100%; }
  .fields { grid-template-columns: 1fr; }
  .dialog-body { padding-inline: 13px; }
  .dialog-actions .button { white-space: normal; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-copy { padding: 9px; }
  .product-foot { flex-wrap: wrap; }
}

