@font-face { font-family: Faberge; src: url('/assets/faberge-regular.otf') format('opentype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Faberge; src: url('/assets/faberge-italic.otf') format('opentype'); font-style: italic; font-weight: 400; font-display: swap; }
:root {
  --paper: #f8f7f3;
  --white: #fff;
  --ink: #20271e;
  --forest: #243520;
  --muted: #687064;
  --line: #dedfd8;
  --display: Faberge, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, .product-card:focus-visible { outline: 2px solid #8b7651; outline-offset: 3px; }
.app-shell { width: min(100% - 40px, 1120px); margin: 0 auto; }
.preview-note { padding: 7px 12px; background: #746b57; color: #fff; font-size: 10px; text-align: center; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; flex-direction: column; gap: 0; line-height: 1; }
.brand span { font: 400 20px/1 var(--display); letter-spacing: .045em; }
.brand small { padding-top: 4px; font: 600 9px/1 var(--sans); letter-spacing: .34em; }
.channel-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; font-weight: 600; }
.channel-link span { font-size: 19px; font-weight: 400; }
.feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 410px; margin-top: 14px; overflow: hidden; background: var(--forest); }
.feature-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(28px, 5vw, 58px); color: #f6f3e9; }
.feature-logo { display: block; flex: none; width: 100%; height: auto; margin-bottom: auto; }
.feature-overline { margin: 18px 0 9px; color: #c9c5b8; font-size: 9px; letter-spacing: .16em; }
.feature h2 { max-width: 550px; margin: 0; font: 400 clamp(36px, 4.5vw, 62px)/1.02 var(--display); }
.feature-facts { margin: 17px 0 0; color: #e1e1d8; font-size: 12px; }
.feature-actions { width: 100%; margin-top: 20px; }
.feature-actions > button { min-height: 44px; padding: 6px 0; border: 0; border-bottom: 1px solid #c5b386; background: transparent; color: #f6f3e9; font-size: 12px; }
.feature button span { padding-left: 13px; }
.feature-pagination { display: flex; align-items: center; gap: 14px; margin-top: 13px; color: #d4d1c5; font-size: 10px; letter-spacing: .08em; }
.feature-pagination button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #a5a899; background: transparent; color: #f6f3e9; font-size: 20px; line-height: 1; }
.feature-pagination span { padding: 0 !important; }
.feature-image { position: relative; min-height: 410px; overflow: hidden; background: #dddcd2; }
.feature-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.feature-image span { position: absolute; right: 15px; bottom: 14px; padding: 5px 8px; background: #f8f7f3ed; color: var(--ink); font-size: 10px; }
.catalog { padding: 38px 0 76px; scroll-margin-top: 10px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.section-heading h1 { margin: 0; font: 400 clamp(32px, 4vw, 45px)/1.07 var(--display); }
.section-description { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.catalog-count { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-bottom: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.catalog-count strong { color: var(--ink); font: 400 25px/1 var(--display); }
.searchbox { display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 0 15px; border: 1px solid var(--line); background: var(--white); }
.search-icon { color: var(--forest); font-size: 23px; line-height: 1; }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.searchbox input::placeholder { color: #858b82; }
.searchbox kbd { color: var(--muted); font-size: 10px; }
.filters-row { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-top: 15px; }
.category-list { display: flex; gap: 7px; min-width: 0; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.category-list::-webkit-scrollbar { display: none; }
.category-chip { flex: 0 0 auto; min-height: 39px; padding: 0 13px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 11px; white-space: nowrap; }
.category-chip.active { border-color: var(--forest); background: var(--forest); color: var(--white); }
.catalog-controls { display: flex; flex: 0 0 auto; gap: 15px; }
.availability, .sort-control { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.availability select, .sort-control select { min-height: 39px; padding: 0 8px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 11px; }
.availability select { max-width: 135px; }
.sort-control select { max-width: 171px; }
.catalog-meta { display: flex; align-items: center; justify-content: space-between; min-height: 30px; gap: 15px; margin: 10px 0 14px; color: var(--muted); font-size: 11px; }
.clear-button { min-height: 36px; padding: 5px 0; border: 0; background: transparent; color: var(--forest); font-size: 11px; text-decoration: underline; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 31px 14px; }
.product-card { min-width: 0; cursor: pointer; }
.product-photo { position: relative; overflow: hidden; aspect-ratio: 3/4; background: #e9e8e1; }
.product-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.product-card:hover .product-photo img { transform: scale(1.025); }
.tag { position: absolute; top: 8px; left: 8px; padding: 5px 7px; background: #f8f7f3ed; color: var(--ink); font-size: 9px; }
.card-info { padding-top: 9px; }
.card-category { color: var(--muted); font-size: 10px; }
.card-title { margin: 2px 0 0; font: 500 15px/1.3 var(--sans); }
.card-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.card-price { font-size: 12px; font-weight: 650; white-space: nowrap; }
.card-article { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.load-more { display: block; min-height: 44px; margin: 32px auto 0; padding: 8px 20px; border: 1px solid var(--forest); background: transparent; color: var(--forest); font-size: 12px; }
.load-more span { padding-left: 8px; }
.load-more:disabled { opacity: .5; }
.empty-state { padding: 50px 18px; border-top: 1px solid var(--line); text-align: center; }
.empty-state h2 { margin: 0; font: 400 27px/1.15 var(--display); }
.empty-state p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.empty-state button { min-height: 44px; margin-top: 14px; padding: 8px 15px; border: 1px solid var(--forest); background: transparent; color: var(--forest); font-size: 12px; }
.contact-strip { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 20px; padding: 28px; background: #e9ece7; }
.contact-strip h2 { margin: 0; font: 400 29px/1.1 var(--display); }
.contact-strip > p { max-width: 280px; margin: 0; color: var(--muted); font-size: 11px; }
.contact-strip > a { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--forest); font-size: 11px; white-space: nowrap; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 27px 0 34px; color: var(--muted); font-size: 10px; }
.footer span:first-child { color: var(--forest); font: 400 14px/1 var(--display); }
.footer a { color: var(--forest); }
.product-dialog { width: min(880px, calc(100% - 28px)); max-width: 880px; max-height: min(94dvh, 820px); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 25px 90px #111b1480; }
.product-dialog::backdrop { background: #111a12b8; }
.dialog-close { position: absolute; z-index: 4; top: 12px; right: 12px; width: 42px; height: 42px; border: 0; background: var(--white); color: var(--ink); font-size: 25px; }
.dialog-layout { display: grid; grid-template-columns: 52% 48%; max-height: min(94dvh, 820px); overflow: auto; }
.dialog-media { min-width: 0; background: #e9e8e1; }
.dialog-image { position: relative; height: min(65dvh, 610px); min-height: 380px; }
.dialog-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-prev, .gallery-next { position: absolute; top: 50%; width: 40px; height: 40px; transform: translateY(-50%); border: 0; background: #f8f7f3ed; color: var(--forest); font: 28px/1 var(--display); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-count { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 5px 9px; background: #f8f7f3ed; font-size: 10px; }
.gallery-thumbs { display: flex; gap: 5px; overflow-x: auto; padding: 8px; }
.gallery-thumbs button { flex: 0 0 55px; width: 55px; height: 65px; padding: 0; border: 2px solid transparent; background: transparent; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--forest); }
.gallery-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dialog-details { padding: 44px 35px 30px; }
.dialog-details h2 { margin: 0; font: 400 38px/1.08 var(--display); }
.dialog-price { margin: 16px 0 20px; font-size: 16px; font-weight: 650; }
.dialog-status { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.dialog-facts { display: grid; gap: 10px; margin: 20px 0 0; }
.dialog-facts div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; font-size: 12px; }
.dialog-facts dt { color: var(--muted); }
.dialog-facts dd { margin: 0; }
.dialog-description { margin: 22px 0 0; font-size: 12px; }
.dialog-actions { display: grid; gap: 12px; margin-top: 24px; }
.source-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; border-bottom: 1px solid var(--line); font-size: 12px; }
.manager-button { min-height: 46px; padding: 9px 14px; border: 0; background: var(--forest); color: var(--white); font-size: 12px; text-align: left; }
.manager-button span { float: right; }
.manager-button:disabled { opacity: .5; cursor: wait; }
.toast { position: fixed; z-index: 10; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; max-width: 90vw; padding: 11px 16px; transform: translate(-50%, 16px); background: #1c2719; color: var(--white); font-size: 12px; opacity: 0; pointer-events: none; text-align: center; transition: .2s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-strip { grid-template-columns: 1fr 1fr; }
  .contact-strip > a { justify-self: start; }
}
@media (max-width: 600px) {
  .app-shell { width: auto; margin: 0 14px; }
  .topbar { min-height: 59px; }
  .brand span { font-size: 17px; }
  .brand small { font-size: 8px; }
  .feature { grid-template-columns: 56% 44%; min-height: 282px; margin: 8px -14px 0; }
  .feature-copy { padding: 16px 12px 16px 15px; }
  .feature-overline { margin-top: 16px; font-size: 7px; }
  .feature h2 { font-size: clamp(23px, 7vw, 33px); }
  .feature-facts { margin-top: 8px; font-size: 9px; }
  .feature-actions { margin-top: 8px; }
  .feature-actions > button { font-size: 10px; text-align: left; }
  .feature-pagination { gap: 9px; margin-top: 7px; font-size: 9px; }
  .feature-pagination button { width: 31px; height: 31px; font-size: 18px; }
  .feature-image { min-height: 282px; }
  .feature-image span { right: 5px; bottom: 5px; padding: 4px; font-size: 8px; }
  .catalog { padding: 25px 0 54px; }
  .section-heading { align-items: start; gap: 10px; margin-bottom: 16px; }
  .section-heading h1 { font-size: 30px; }
  .section-description { max-width: 260px; font-size: 10px; }
  .catalog-count { padding-top: 16px; font-size: 9px; }
  .catalog-count strong { font-size: 20px; }
  .searchbox { min-height: 46px; padding: 0 12px; }
  .searchbox kbd { display: none; }
  .filters-row { display: block; margin-top: 11px; }
  .category-list { margin-right: -14px; padding-right: 14px; }
  .category-chip { min-height: 40px; padding: 0 11px; font-size: 10px; }
  .catalog-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 9px; }
  .availability, .sort-control { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; min-height: 0; font-size: 10px; }
  .availability select, .sort-control select { width: 100%; max-width: none; min-width: 0; font-size: 10px; }
  .catalog-meta { margin: 4px 0 9px; font-size: 10px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 10px; }
  .card-title { font-size: 13px; }
  .card-category, .card-article { font-size: 9px; }
  .card-price { font-size: 11px; }
  .card-bottom { display: block; }
  .card-article { display: block; margin-top: 2px; }
  .contact-strip { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 -14px; padding: 23px 16px; }
  .contact-strip h2 { font-size: 27px; }
  .contact-strip > a { margin-top: 3px; }
  .footer { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
  .footer span:nth-child(2) { grid-column: 1; grid-row: 2; }
  .footer a { grid-column: 2; grid-row: 1; }
  .product-dialog { width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; }
  .dialog-layout { display: block; height: 100dvh; max-height: none; overflow-y: auto; }
  .dialog-image { height: min(54dvh, 490px); min-height: 255px; }
  .gallery-thumbs button { flex-basis: 48px; width: 48px; height: 58px; }
  .dialog-details { padding: 24px 20px calc(32px + env(safe-area-inset-bottom)); }
  .dialog-details h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
