:root {
    --ink: #181917;
    --muted: #55574f;
    --paper: #f7f7f3;
    --white: #fff;
    --line: #e1e2da;
    --yellow: #ffdf00;
    --soft-yellow: #fff9d5;
    --soft-green: #eaf3eb;
    --green: #285f3e;
    --radius: 15px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.55; }
main { flex: 1; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid #806000;
    outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.035em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.85rem); overflow-wrap: anywhere; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.24rem; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; vertical-align: middle; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; top: 0; padding: .7rem 1rem; background: var(--yellow); transform: translateY(-120%); }
.skip:focus { transform: translateY(0); }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; white-space: nowrap; }
.brand-logo { width: 112px; height: auto; }
.brand-name { padding-left: .85rem; border-left: 1px solid #d0d0c8; font-size: .91rem; font-weight: 700; }
.main-nav { display: flex; gap: clamp(.9rem, 2.5vw, 2rem); }
.main-nav a { display: inline-flex; align-items: center; min-height: 76px; position: relative; text-decoration: none; white-space: nowrap; font-size: .9rem; font-weight: 700; color: var(--muted); }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
.main-nav a[aria-current]::after { content: ''; position: absolute; height: 3px; inset: auto 0 0; background: var(--yellow); }
.internal, .text-button { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .86rem; font-weight: 700; }
.internal svg, .text-button svg { width: 16px; height: 16px; }
.text-button { border: 0; padding: .35rem 0; background: none; white-space: nowrap; }
.text-button:hover { text-decoration: underline; color: var(--ink); }
.main { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5.5rem); }
.muted, small { color: var(--muted); }
small { font-size: .84rem; }
.notice { padding: .85rem 1.1rem; background: #efefe7; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 1.4rem; }
.notice.success { background: var(--soft-green); color: var(--green); border-color: #cddfd0; }
.notice.error { color: #862723; background: #fff0ee; border-color: #efd2cd; }
.eyebrow { display: flex; gap: .65rem; align-items: center; text-transform: uppercase; letter-spacing: .15em; font-size: .73rem; font-weight: 800; }
.eyebrow span { width: 11px; height: 11px; background: var(--yellow); }
.catalog-hero, .login-intro { overflow: hidden; border-radius: var(--radius); border: 1px solid #eae7db; background: #f2f0e7; }
.catalog-hero { display: grid; grid-template-columns: 1.05fr 1fr; }
.catalog-hero > img { width: 100%; height: 100%; min-height: 325px; object-fit: cover; }
.intro-copy { display: grid; align-content: center; gap: 1.15rem; padding: clamp(1.55rem, 4.3vw, 4rem); }
.intro-copy > p:last-child { max-width: 29rem; color: var(--muted); font-size: 1.08rem; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); align-items: stretch; gap: 1.3rem; max-width: 1200px; margin: .65rem auto 0; }
.login-intro { display: flex; flex-direction: column; }
.login-intro .intro-copy { padding-block: clamp(1.7rem, 3.8vw, 3.35rem); }
.login-image { flex: 1; position: relative; min-height: 245px; }
.login-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.login-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.35rem, 3vw, 2.65rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem; }
.login-panel h2 { text-wrap: balance; }
.login-panel p { color: var(--muted); overflow-wrap: anywhere; }
.login-panel .fields { width: 100%; margin-top: .45rem; }
.login-panel ol { margin: .65rem 0 0; padding-inline-start: 1.35rem; }
.login-panel li + li { margin-top: .4rem; }
.feature-icon { display: inline-grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 10px; background: var(--yellow); }
.feature-icon svg { width: 21px; height: 21px; }
.window { display: flex; gap: .9rem; align-items: center; padding: .78rem 1rem; margin-block: 1.1rem 0; border: 1px solid #e9e1b8; border-radius: 11px; background: var(--soft-yellow); }
.window .feature-icon { width: 36px; height: 36px; background: #f7e881; }
.window .muted { font-size: .87rem; }
.window-open { background: var(--soft-green); border-color: #d3e2d4; }
.window-open .feature-icon { background: #d3e8d9; color: var(--green); }
.catalogue { margin-top: clamp(2rem, 4vw, 3.35rem); }
.section-head { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.search-form { position: relative; display: flex; width: min(300px, 100%); }
.search-form input { padding-right: 3.15rem; }
.search-form button { position: absolute; right: 4px; top: 4px; height: calc(100% - 8px); }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-block: 1.1rem 1rem; font-size: .85rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters a, .subnav a { display: inline-block; text-decoration: none; font-weight: 700; padding: .45rem .8rem; background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
.filters a:hover, .subnav a:hover { border-color: #a7a696; }
.filters a[aria-current], .subnav a[aria-current] { background: var(--yellow); border-color: var(--yellow); }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.05rem; }
.product { background: var(--white); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.product:hover { border-color: #bab9ad; }
.product-image-link { display: block; }
.product-image-link:focus-visible { outline-offset: -4px; }
.product-photo { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; aspect-ratio: 1.7; overflow: hidden; background: radial-gradient(ellipse at 50% 74%, #e1ded0, #f1f0e9 73%); color: #716d5c; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.product-photo > svg { width: 64px; height: 64px; stroke-width: 1; }
.product-info { padding: 1rem 1.15rem 1.05rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.product-info h3 { overflow-wrap: anywhere; }
.product-info h3 a { text-decoration: none; }
.product-info h3 a:hover { text-decoration: underline; }
.product-meta { display: flex; gap: .45rem .65rem; flex-wrap: wrap; align-items: center; justify-content: space-between; color: var(--muted); font-size: .82rem; font-weight: 700; }
.stock { display: inline-flex; gap: .35rem; align-items: center; color: var(--green); background: var(--soft-green); border-radius: 6px; padding: .16rem .45rem; white-space: nowrap; }
.stock span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock.sold { background: #eee; color: #61615a; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .65rem; margin-top: auto; }
.product-bottom small, .detail-price small, td small, th small { display: block; }
.product-bottom strong { font-size: 1.25rem; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 0; border-radius: 7px; background: var(--soft-yellow); }
.icon-button:hover { background: var(--yellow); }
.icon-button svg { width: 19px; height: 19px; }
.empty { border: 1px dashed #c8c8bd; border-radius: var(--radius); background: var(--white); padding: clamp(2rem, 6vw, 4.5rem) 1rem; display: grid; justify-items: center; gap: .8rem; text-align: center; }
.empty h1 { font-size: clamp(2rem, 5vw, 3rem); }
.back-link, .plain-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-underline-offset: .2em; }
.back-link { margin-bottom: 1.25rem; text-decoration: none; color: var(--muted); }
.back-link:hover { text-decoration: underline; }
.back-link svg, .plain-link svg { width: 19px; height: 19px; }
.detail { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(1.25rem, 5vw, 4rem); align-items: start; }
.detail-photo { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 1.2; }
.detail-photo > svg { width: 100px; height: 100px; }
.detail-info { display: grid; gap: .95rem; }
.detail-info .product-meta { justify-content: flex-start; }
.detail-info .notice { margin: 0; }
.detail-price { border-top: 1px solid var(--line); padding-top: .8rem; }
.detail-price strong { font-size: 2rem; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.order-form { display: flex; align-items: end; flex-wrap: wrap; gap: .85rem; }
.order-form label { width: 6.2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .65rem; background: var(--yellow); border: 1px solid var(--yellow); border-radius: 8px; text-decoration: none; padding: .7rem 1rem; min-height: 46px; font-size: .94rem; line-height: 1.25; font-weight: 800; text-align: center; }
.button:hover { background: #f2d100; border-color: #f2d100; }
.button svg { height: 19px; width: 19px; }
.button.full { width: 100%; justify-content: space-between; }
.fields { display: grid; gap: 1.05rem; }
label { display: grid; gap: .33rem; font-size: .92rem; font-weight: 700; }
label small { font-weight: 400; }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 46px; border: 1px solid #c8c9be; background: var(--white); border-radius: 8px; padding: .65rem .78rem; font-weight: 400; }
input[type=checkbox] { accent-color: #7c6400; width: 18px; height: 18px; }
input[type=file] { padding: .47rem; }
input[type=file]::file-selector-button { margin-right: .65rem; border: 0; padding: .32rem .55rem; border-radius: 4px; background: #efefe8; color: var(--ink); }
textarea { resize: vertical; }
input::placeholder { color: #6a6c63; }
.panel { margin-top: 1.5rem; padding: clamp(1rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); max-width: 750px; }
.panel h2 { margin-bottom: .3rem; font-size: 1.55rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: .9rem; }
.checkbox { display: flex; gap: .5rem; align-items: center; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.thumbnail { width: 140px; border-radius: 6px; }
.subnav { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.25rem 0; font-size: .9rem; }
.table-wrap { overflow-x: auto; margin-top: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .91rem; }
th, td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #efefe8; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
.table-action { margin-top: .3rem; }
.pagination { margin-top: 1rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-row { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; padding-block: .85rem; }
.footer-row strong { color: var(--ink); }
.footer-dot { display: inline-block; background: var(--yellow); width: 6px; height: 6px; margin-inline: .4rem; vertical-align: middle; }
@media (max-width: 850px) {
    .wrap { width: calc(100% - 44px); }
    .login-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header-row { flex-wrap: wrap; gap: 0 .8rem; padding-top: .9rem; min-height: 66px; }
    .header-row:has(.internal) { padding-bottom: .9rem; }
    .main-nav { order: 3; width: 100%; }
    .main-nav a { min-height: 44px; }
}
@media (max-width: 600px) {
    .wrap { width: calc(100% - 28px); }
    .main { padding-top: 1.2rem; }
    .brand-name { font-size: .82rem; padding-left: .55rem; }
    .brand { gap: .55rem; }
    .brand-logo { width: 85px; }
    .internal { font-size: .75rem; }
    .login-layout, .catalog-hero, .detail { grid-template-columns: 1fr; }
    .login-layout { margin-top: 0; }
    .login-panel { order: -1; }
    .login-image { min-height: 168px; }
    .catalog-hero > img { min-height: 0; height: clamp(145px, 43vw, 220px); object-position: center 54%; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .filter-row { align-items: flex-start; flex-direction: column; }
    .search-form { width: 100%; }
    .field-pair { grid-template-columns: 1fr; }
}
@media (max-width: 435px) {
    .products { grid-template-columns: 1fr; }
    .internal { max-width: 115px; line-height: 1.15; }
    .main-nav { gap: .7rem; }
    .main-nav a { font-size: .83rem; }
}
