/* Burte — production stylesheet.
   Design tokens are carried over 1:1 from the Claude Design prototype. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f4ede3;
  --surface: #faf6ee;
  --text: #2b2622;
  --muted: #595d6c;
  --faint: #75798c;
  --line: #e4dccf;
  --divider: color-mix(in srgb, #2b2622 14%, transparent);
  --footer: #e8e1d6;
  --accent: #6b5db3;
  --accent-strong: #5d5294;
  --accent-soft: #e7e5fe;
  --danger: #b3423f;
  --ok: #3f7a4f;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px;
  --shadow-sm: 0 0 0 1px #e4dccf;
  --shadow-md: 0 0 0 1px #d9d2c6, 0 6px 18px rgba(60,45,30,.10);
  --shadow-lg: 0 0 0 1px #d9d2c6, 0 16px 40px rgba(60,45,30,.18);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); text-wrap: pretty; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
p { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; margin: 0; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.skip:focus { top: 8px; }

/* — buttons & form controls — */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; cursor: pointer;
  font: 500 14px/1.2 var(--font); color: var(--text); background: transparent; border: 1px solid transparent;
  padding: 6px 12px; border-radius: var(--r-md); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { color: var(--accent); border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.btn-primary:active:not(:disabled) { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.btn-solid { color: #fff; background: var(--accent); border-color: var(--accent); }
.btn-solid:hover:not(:disabled) { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-secondary { border-color: var(--divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.btn-ghost { color: var(--accent); padding-inline: 6px; }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; font-size: 16px; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 12px; color: color-mix(in srgb, var(--text) 70%, transparent); }
.field > span small { color: var(--faint); font-size: 12px; }
.input { width: 100%; min-height: 40px; padding: 8px 10px; font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  color: var(--text); caret-color: var(--accent); background: var(--surface);
  border: 1px solid var(--divider); border-radius: var(--r-md); }
.input:hover { border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.input:focus-visible { border-color: var(--accent); outline-offset: 0; }
.input:user-invalid { border-color: var(--danger); }
textarea.input { min-height: 90px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* spam honeypot */
.form-msg { font-size: 14px; line-height: 22px; }
.form-msg.error { color: var(--danger); }
.form-msg.ok { color: var(--ok); }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }

/* — header — */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--divider); }
.site-header .inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { display: flex; align-items: center; height: 64px; }
.brand-link img { height: 40px; width: auto; mix-blend-mode: multiply; }
.main-nav { display: flex; gap: 32px; font-size: 14px; line-height: 20px; }
.main-nav a { color: var(--text); border-bottom: 1px solid transparent; padding-bottom: 2px; white-space: nowrap; }
.main-nav a:hover { color: var(--accent); }
.main-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 760px) {
  .site-header .inner { height: auto; flex-wrap: wrap; row-gap: 0; padding: 0 16px; }
  .brand-link { height: 56px; }
  .brand-link img { height: 34px; }
  .main-nav { order: 3; width: 100%; gap: 20px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
}
@media (max-width: 420px) {
  .main-nav { gap: 16px; font-size: 13px; }
  .main-nav::-webkit-scrollbar { display: none; }
}

/* — layout — */
main { max-width: var(--wrap); margin: 0 auto; padding: 24px 24px 0; display: flex; flex-direction: column; gap: 64px; min-height: 60vh; }
@media (max-width: 760px) { main { padding: 16px 16px 0; gap: 48px; } }
.kicker { font-size: 13px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.h-lg { font-size: 32px; line-height: 40px; }
.h-md { font-size: 24px; line-height: 32px; }
.h-sm { font-size: 22px; line-height: 30px; }
@media (max-width: 520px) { .h-lg { font-size: 26px; line-height: 34px; } }
.lead { font-size: 16px; line-height: 26px; color: var(--muted); max-width: 52ch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }

/* — cover — */
.cover { position: relative; aspect-ratio: 2.4 / 1; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); background: #efe6d8; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) { .cover { aspect-ratio: 16 / 10; } }

/* — products — */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.section-head .note { font-size: 14px; line-height: 20px; color: var(--faint); }
.shop { display: flex; flex-direction: column; gap: 24px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 24px; }
@media (max-width: 520px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.product-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 12px; color: var(--text);
  font-family: var(--font); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; width: 100%; }
.product-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.product-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.product-card .ph { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.product-card .ph img { width: 100%; height: 100%; object-fit: contain; }
.product-card .ph img.cover-fit { object-fit: cover; }
.product-card .meta { display: flex; flex-direction: column; gap: 4px; padding: 0 4px 4px; }
.product-card .name { font-size: 14px; line-height: 20px; }
.product-card .price { font-size: 15px; line-height: 20px; font-weight: 600; font-feature-settings: "tnum" 1; }
.badge { position: absolute; top: 8px; left: 8px; font-size: 11px; line-height: 16px; padding: 2px 8px; border-radius: 6px; background: var(--text); color: var(--bg); }
.product-card.is-soldout .ph img { opacity: .55; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; padding: 24px; font-size: 14px; line-height: 22px; color: var(--muted); }
.features strong, .values strong { display: block; margin-bottom: 4px; font-weight: 600; color: var(--text); }

/* — brand — */
.brand { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px 64px; align-items: center; }
.brand figure { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1; background: #efe6d8; }
.brand figure img { width: 100%; height: 100%; object-fit: cover; }
.brand .copy { display: flex; flex-direction: column; gap: 16px; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.values > div { padding: 24px; font-size: 14px; line-height: 22px; color: var(--muted); }
.values strong { font-size: 16px; line-height: 24px; margin-bottom: 8px; }

/* — lookbook — */
.lookbook { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.lookbook figure { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3 / 2; background: #efe6d8; }
.lookbook img { width: 100%; height: 100%; object-fit: cover; }

/* — contact — */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px 64px; align-items: start; }
.contact .copy { display: flex; flex-direction: column; gap: 16px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; font-size: 14px; line-height: 22px; color: var(--muted); margin-top: 8px; }
.contact-grid strong { display: block; margin-bottom: 2px; font-weight: 600; color: var(--text); }
.contact-grid a { color: var(--muted); }
.contact-grid a:hover { color: var(--accent); }
.stack-form { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.stack-form > .title { font-weight: 600; font-size: 16px; line-height: 24px; margin-bottom: 4px; }

/* — help — */
.help { display: flex; flex-direction: column; gap: 48px; max-width: 760px; }
.help .block { display: flex; flex-direction: column; gap: 12px; }
.help .body { font-size: 15px; line-height: 24px; color: var(--muted); white-space: pre-line; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { border-bottom: 1px solid var(--divider); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; line-height: 24px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 18px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 6px; font-size: 15px; line-height: 24px; color: var(--muted); }

/* — footer — */
.site-footer { margin-top: 64px; background: var(--footer); }
.site-footer .cols { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px 24px; font-size: 14px; line-height: 24px; }
.site-footer .col { display: flex; flex-direction: column; gap: 4px; }
.site-footer .col > strong { font-weight: 600; margin-bottom: 4px; }
.site-footer .col a, .site-footer .col p { color: var(--muted); }
.site-footer .col a:hover { color: var(--accent); }
.site-footer .wordmark { font-weight: 500; font-size: 20px; line-height: 28px; letter-spacing: .08em; text-transform: uppercase; color: var(--text) !important; }
.site-footer .socials { display: flex; gap: 16px; margin-top: 8px; }
.site-footer .bottom { border-top: 1px solid var(--divider); }
.site-footer .bottom > div { max-width: var(--wrap); margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; line-height: 20px; color: var(--faint); }

/* — product dialog — */
dialog.product-dialog { width: min(960px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: auto; }
dialog.product-dialog::backdrop { background: rgba(43,38,34,.45); }
.pd { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.pd .gallery { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.pd .main-img { aspect-ratio: 3 / 2; border-radius: var(--r-md); overflow: hidden; background: #fff; }
.pd .main-img img { width: 100%; height: 100%; object-fit: contain; }
.pd .main-img img.cover-fit { object-fit: cover; }
.pd .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pd .thumbs button { all: unset; box-sizing: border-box; cursor: pointer; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.pd .thumbs button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pd .thumbs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd .thumbs img.contain { object-fit: contain; background: #fff; }
.pd .info { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.pd .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pd .title { font-size: 24px; line-height: 32px; font-weight: 500; }
.pd .price { font-size: 18px; line-height: 24px; font-weight: 600; font-feature-settings: "tnum" 1; margin-top: 4px; }
.pd .desc { font-size: 15px; line-height: 24px; color: var(--muted); }
.pd .spec { font-size: 13px; line-height: 20px; color: var(--faint); }
.pd form { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--divider); }
.pd .qty-row { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.pd .total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--muted); }
.pd .total b { font-size: 17px; color: var(--text); font-feature-settings: "tnum" 1; }
.success { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-md); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); font-size: 15px; line-height: 24px; }
.success .oid { font-weight: 600; font-feature-settings: "tnum" 1; }

/* — admin — */
.admin { display: flex; flex-direction: column; gap: 24px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.admin-head .note { font-size: 13px; line-height: 20px; color: var(--faint); }
.tabs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tab { font: 500 13px/1 var(--font); padding: 8px 12px; border-radius: 6px; cursor: pointer; border: 1px solid var(--accent); color: var(--accent); background: transparent; }
.tab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-soft); }
.login-box { max-width: 360px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 13px; line-height: 20px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; font-weight: 500; }
.table td { padding: 10px 12px; border-top: 1px solid var(--divider); vertical-align: top; }
.table td.nowrap { white-space: nowrap; }
.pill { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); white-space: nowrap; }
.admin-form { display: flex; flex-direction: column; gap: 24px; }
.admin-form .panel { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.admin-form .panel > .title { font-weight: 600; font-size: 16px; }
.admin-form .hint { font-size: 13px; line-height: 20px; color: var(--faint); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cover-edit { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.cover-edit img { width: 240px; aspect-ratio: 2.4 / 1; object-fit: cover; border-radius: var(--r-sm); }
.p-edit { display: grid; grid-template-columns: 96px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 3fr); gap: 12px; align-items: start; }
@media (max-width: 760px) { .p-edit { grid-template-columns: 96px 1fr; } .p-edit .span-2 { grid-column: 1 / -1; } }
.p-edit .thumb { display: flex; flex-direction: column; gap: 6px; }
.p-edit .thumb img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: var(--r-sm); border: 1px solid var(--line); }
.file-btn { position: relative; overflow: hidden; font-size: 12px; min-height: 30px; padding: 4px 8px; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.save-bar { position: sticky; bottom: 0; display: flex; gap: 16px; align-items: center; padding: 12px 0; background: var(--bg); border-top: 1px solid var(--divider); }
.test-banner { position: fixed; left: 12px; bottom: 12px; z-index: 60; font-size: 12px; line-height: 18px; padding: 6px 10px; border-radius: 6px; background: #fff3cd; color: #6b5200; box-shadow: var(--shadow-md); }
