:root {
  /* Dark theme: palette sampled from the original chainyi-omut.ru design */
  --bg: #222222;
  --surface: #252525;
  --surface-2: #292929;
  --surface-3: #303030;
  --text: #eee9e9;
  --muted: #aaa4a6;
  --faint: #777274;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --accent: #9e2849;
  --accent-2: #d04759;
  --accent-ink: #ffffff;
  --danger: #d16975;
  --shadow: 0 24px 80px rgba(0,0,0,.38);
  --glass: rgba(34,34,34,.84);
  --max: 1240px;
  --radius: 24px;
}

html[data-theme="light"] {
  --bg: #efe9de;
  --surface: #f8f4ec;
  --surface-2: #fffaf1;
  --surface-3: #e4ded2;
  --text: #172624;
  --muted: #62716e;
  --faint: #899592;
  --line: rgba(23,38,36,.12);
  --line-strong: rgba(23,38,36,.2);
  --accent: #b86f40;
  --accent-2: #9b7a3e;
  --accent-ink: #fff8ef;
  --shadow: 0 24px 70px rgba(43,40,31,.14);
  --glass: rgba(248,244,236,.84);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(circle at 12% 8%, rgba(158,40,73,.13), transparent 31%), radial-gradient(circle at 88% 18%, rgba(208,71,89,.07), transparent 34%); }
html[data-theme="light"] body::before { background: radial-gradient(circle at 12% 8%, rgba(199,130,79,.10), transparent 30%), radial-gradient(circle at 88% 18%, rgba(32,96,93,.14), transparent 35%); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; transform: translateY(-140%); background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: none; }

.announcement { border-bottom: 1px solid var(--line); background: #1b1b1b; color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .035em; }
html[data-theme="light"] .announcement { background: #18393a; color: rgba(255,255,255,.82); }
.announcement__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--glass); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header__inner { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand__mark { width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--accent-2); position: relative; overflow: hidden; }
.brand__mark::before, .brand__mark::after { content: ""; position: absolute; border: 1px solid currentColor; border-radius: 50%; }
.brand__mark::before { width: 26px; height: 10px; transform: rotate(-10deg); }
.brand__mark::after { width: 12px; height: 26px; transform: rotate(28deg); }
.brand__text strong { display: block; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
.brand__text small { display: block; margin-top: -2px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .18em; }
.desktop-nav { justify-self: center; display: flex; align-items: center; gap: 28px; }
.desktop-nav a { color: var(--muted); font-size: 13px; transition: .18s; }
.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--text); }
.desktop-nav a.is-active { position: relative; }
.desktop-nav a.is-active::after { content:""; position:absolute; left:0; right:0; bottom:-10px; height:1px; background:var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .theme-btn, .menu-btn { width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; border-radius: 50%; display: grid; place-items: center; transition: .18s; position: relative; }
.icon-btn:hover, .theme-btn:hover, .menu-btn:hover { background: var(--surface-3); border-color: var(--line-strong); }
.icon-btn svg, .theme-btn svg, .menu-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cart-btn { min-height: 40px; border: 1px solid var(--line-strong); background: var(--surface-2); padding: 0 13px 0 15px; border-radius: 999px; display: flex; align-items: center; gap: 9px; }
.cart-count { min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: white; font-size: 10px; font-weight: 700; }
.count-badge { position: absolute; right: -3px; top: -5px; min-width: 17px; height: 17px; border-radius: 9px; padding: 0 4px; background: var(--accent); color: white; font-size: 9px; display: grid; place-items: center; }
.menu-btn { display: none; }

main { min-height: 65vh; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); text-transform: uppercase; font-size: 10px; letter-spacing: .18em; font-weight: 700; }
.eyebrow::before { content:""; width: 24px; height: 1px; background: currentColor; opacity:.65; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
.section { padding: 92px 0; }
.section--tight { padding: 68px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 30px; }
.section-head h2 { margin: 8px 0 0; font-size: clamp(36px, 5vw, 60px); line-height: .98; }
.section-head p { color: var(--muted); max-width: 590px; margin: 12px 0 0; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.link-arrow::after { content:"→"; transition:.18s; }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover::after { transform: translateX(3px); }

.btn { min-height: 46px; border-radius: 999px; padding: 0 20px; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 12px; font-weight: 700; transition: .18s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--wide { width: 100%; }
.btn--small { min-height: 38px; padding-inline: 14px; font-size: 11px; }

.hero { padding: 60px 0 40px; }
.hero__shell { min-height: 610px; border: 1px solid var(--line); border-radius: 36px; overflow: hidden; display: grid; grid-template-columns: 1.04fr .96fr; background: var(--surface); box-shadow: var(--shadow); }
.hero__copy { padding: 74px 68px 64px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(58px, 7vw, 100px); line-height: .86; margin: 20px 0 28px; max-width: 720px; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero__copy > p { max-width: 610px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero__meta { margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 34px; flex-wrap: wrap; }
.hero__meta div { min-width: 120px; }
.hero__meta strong { display:block; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.hero__meta span { color: var(--muted); font-size: 10px; }
.hero__image { position: relative; min-height: 520px; overflow: hidden; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.76) contrast(1.04) brightness(.74); }
html[data-theme="light"] .hero__image img { filter: saturate(.78) contrast(1.02) brightness(.94); }
.hero__image::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, var(--surface) 0%, transparent 18%, transparent 74%, rgba(20,20,20,.20) 100%), linear-gradient(0deg, rgba(15,15,15,.58), transparent 42%); pointer-events:none; }
.hero__stamp { position:absolute; right:24px; bottom:24px; width:92px; height:92px; border-radius:50%; border:1px solid rgba(255,255,255,.35); color:white; display:grid; place-items:center; z-index:2; font-family:Georgia,serif; font-size:35px; backdrop-filter:blur(6px); background:rgba(18,18,18,.30); }

.category-row { display:grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.category-chip { min-height: 108px; border:1px solid var(--line); border-radius:20px; padding:18px; background:var(--surface); position:relative; overflow:hidden; transition:.2s; }
.category-chip:hover { transform: translateY(-3px); border-color:var(--line-strong); background:var(--surface-2); }
.category-chip strong { display:block; font-family:Georgia,serif; font-size:19px; font-weight:500; }
.category-chip span { display:block; color:var(--muted); font-size:10px; margin-top:5px; }
.category-chip::after { content:"↗"; position:absolute; right:15px; bottom:12px; color:var(--accent); }

.product-grid { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:14px; }
.product-card { border:1px solid var(--line); background:var(--surface); border-radius:22px; overflow:hidden; min-width:0; display:flex; flex-direction:column; transition:.2s; position:relative; }
.product-card:hover { transform:translateY(-4px); border-color:var(--line-strong); box-shadow:0 18px 45px rgba(0,0,0,.16); }
.product-card__image { aspect-ratio: 1 / .86; background:var(--surface-3); position:relative; overflow:hidden; }
.product-card__image img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.product-card:hover .product-card__image img { transform:scale(1.025); }
.product-card__image::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(18,18,18,.48),transparent 42%); pointer-events:none; }
.product-card__badge { position:absolute; left:12px; top:12px; z-index:2; padding:7px 9px; border-radius:999px; background:rgba(30,30,30,.80); color:#f5ede1; backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.14); font-size:8px; text-transform:uppercase; letter-spacing:.12em; }
.favorite-btn { position:absolute; z-index:3; right:11px; top:11px; width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.2); background:rgba(24,24,24,.66); color:white; display:grid; place-items:center; backdrop-filter:blur(6px); }
.favorite-btn svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.6; }
.favorite-btn.is-active svg { fill:currentColor; }
.product-card__body { padding:17px 17px 15px; display:flex; flex-direction:column; flex:1; }
.product-card__meta { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.11em; }
.product-card h3 { font-size:22px; line-height:1.02; margin:9px 0 7px; min-height:44px; }
.product-card h3 small { display:block; font-family:inherit; color:var(--muted); font-size:14px; margin-top:4px; }
.product-card__note { color:var(--muted); font-size:11px; line-height:1.5; min-height:49px; }
.product-card__footer { margin-top:auto; padding-top:14px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:10px; }
.product-card__price { font-weight:800; font-size:14px; }
.product-card__actions { display:flex; gap:6px; }
.round-btn { width:34px; height:34px; border-radius:50%; border:1px solid var(--line); background:transparent; display:grid; place-items:center; }
.round-btn:hover { background:var(--surface-3); }
.round-btn svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; }

.editorial-band { background:var(--surface); border-block:1px solid var(--line); }
.editorial-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:40px; align-items:center; }
.editorial-image { min-height:440px; border-radius:28px; overflow:hidden; position:relative; }
.editorial-image img { width:100%; height:100%; object-fit:cover; filter:saturate(.72) brightness(.74); }
html[data-theme="light"] .editorial-image img { filter:saturate(.8) brightness(.95); }
.editorial-copy { padding:40px 0; }
.editorial-copy h2 { font-size:clamp(40px,5vw,68px); line-height:.98; margin:14px 0 20px; max-width:620px; }
.editorial-copy p { color:var(--muted); max-width:620px; line-height:1.75; }
.editorial-list { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin:30px 0; }
.editorial-list div { border:1px solid var(--line); border-radius:18px; padding:18px; background:var(--surface-2); }
.editorial-list strong { display:block; font-family:Georgia,serif; font-weight:500; font-size:17px; }
.editorial-list span { color:var(--muted); font-size:10px; }

.page-hero { padding:58px 0 26px; }
.page-hero__box { border:1px solid var(--line); border-radius:30px; background:var(--surface); padding:54px 58px; overflow:hidden; position:relative; }
.page-hero__box::after { content:"茶"; position:absolute; right:28px; top:50%; transform:translateY(-54%); font-family:Georgia,serif; font-size:180px; color:var(--surface-3); line-height:1; pointer-events:none; }
.page-hero h1 { font-size:clamp(52px,7vw,92px); line-height:.92; margin:13px 0 16px; position:relative; z-index:1; }
.page-hero p { color:var(--muted); max-width:700px; font-size:15px; position:relative; z-index:1; }

.category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.category-card { min-height:350px; border:1px solid var(--line); border-radius:26px; overflow:hidden; position:relative; background:var(--surface); display:flex; align-items:flex-end; }
.category-card img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:saturate(.72) brightness(.54); transition:transform .45s ease; }
html[data-theme="light"] .category-card img { filter:saturate(.78) brightness(.78); }
.category-card:hover img { transform:scale(1.035); }
.category-card::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(20,20,20,.88),rgba(20,20,20,.04) 72%); }
.category-card__copy { position:relative; z-index:2; padding:26px; color:white; }
.category-card h2 { margin:0 0 8px; font-size:31px; }
.category-card p { color:rgba(255,255,255,.68); font-size:11px; max-width:310px; }
.category-card span { display:inline-flex; margin-top:10px; font-size:10px; text-transform:uppercase; letter-spacing:.15em; color:#efc98c; }

.catalog-shell { padding:38px 0 90px; }
.catalog-toolbar { border:1px solid var(--line); background:var(--surface); border-radius:20px; padding:14px; display:flex; align-items:center; gap:10px; margin-bottom:16px; position:sticky; top:92px; z-index:20; }
.catalog-search { min-height:44px; border:1px solid var(--line); background:var(--surface-2); border-radius:999px; display:flex; align-items:center; gap:8px; padding:0 16px; flex:1; min-width:160px; }
.catalog-search svg { width:17px; height:17px; fill:none; stroke:currentColor; opacity:.6; }
.catalog-search input { flex:1; min-width:0; border:0; outline:0; background:transparent; font-size:12px; }
.select { min-height:44px; border:1px solid var(--line); background:var(--surface-2); border-radius:999px; padding:0 34px 0 14px; font-size:11px; outline:none; }
.filter-toggle { display:none; }
.catalog-layout { display:grid; grid-template-columns:230px 1fr; gap:22px; align-items:start; }
.filters { border:1px solid var(--line); background:var(--surface); border-radius:22px; padding:20px; position:sticky; top:167px; }
.filter-block + .filter-block { border-top:1px solid var(--line); margin-top:19px; padding-top:19px; }
.filter-block h3 { font-family:inherit; font-size:10px; text-transform:uppercase; letter-spacing:.15em; color:var(--muted); margin-bottom:12px; }
.check-list { display:grid; gap:8px; }
.check { display:flex; align-items:center; gap:9px; font-size:11px; color:var(--muted); cursor:pointer; }
.check input { accent-color:var(--accent); }
.check:has(input:checked) { color:var(--text); }
.range-row input { width:100%; accent-color:var(--accent); }
.range-meta { display:flex; justify-content:space-between; margin-top:7px; font-size:10px; color:var(--muted); }
.filter-reset { margin-top:18px; border:0; background:transparent; padding:0; color:var(--accent-2); font-size:10px; }
.results-meta { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:6px 0 14px; color:var(--muted); font-size:10px; }
.empty { border:1px dashed var(--line-strong); border-radius:24px; padding:70px 30px; text-align:center; color:var(--muted); }
.empty h3 { color:var(--text); font-size:30px; margin-bottom:8px; }

.product-page { padding:44px 0 90px; }
.breadcrumbs { display:flex; flex-wrap:wrap; gap:7px; color:var(--muted); font-size:10px; margin-bottom:22px; }
.breadcrumbs span { opacity:.55; }
.product-layout { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr); gap:28px; align-items:start; }
.product-gallery { display:grid; gap:10px; }
.product-main-image { min-height:620px; border:1px solid var(--line); border-radius:28px; overflow:hidden; background:var(--surface); position:relative; }
.product-main-image img { width:100%; height:100%; min-height:620px; object-fit:cover; }
.product-main-image::after { content:""; position:absolute; inset:0; box-shadow:inset 0 -100px 120px rgba(20,20,20,.22); pointer-events:none; }
.image-source-note { font-size:9px; color:var(--muted); display:flex; justify-content:space-between; gap:15px; align-items:center; }
.image-source-note a { color:var(--accent-2); }
.product-info { border:1px solid var(--line); border-radius:28px; background:var(--surface); padding:34px; position:sticky; top:100px; }
.product-info h1 { font-size:clamp(42px,5vw,66px); line-height:.93; margin:13px 0 10px; }
.product-info h1 small { display:block; font-size:.46em; color:var(--muted); margin-top:8px; }
.product-info__note { color:var(--muted); font-size:14px; line-height:1.65; }
.product-tags { display:flex; flex-wrap:wrap; gap:7px; margin:20px 0; }
.product-tags span { border:1px solid var(--line); border-radius:999px; padding:7px 10px; color:var(--muted); font-size:9px; }
.product-price { border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:18px 0; margin:20px 0; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.product-price span { color:var(--muted); font-size:10px; }
.product-price strong { font-size:26px; }
.packaging { margin-bottom:18px; }
.packaging > span { display:block; font-size:10px; color:var(--muted); margin-bottom:8px; }
.segmented { display:flex; flex-wrap:wrap; gap:7px; }
.segmented button { border:1px solid var(--line); background:transparent; border-radius:999px; min-height:36px; padding:0 12px; font-size:10px; }
.segmented button.is-active { background:var(--surface-3); border-color:var(--line-strong); }
.buy-row { display:grid; grid-template-columns:1fr auto; gap:8px; }
.buy-row .favorite-product { width:46px; border-radius:50%; }
.product-details { margin-top:28px; display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.detail-card { border:1px solid var(--line); border-radius:24px; background:var(--surface); padding:28px; }
.detail-card h2 { font-size:30px; margin-bottom:12px; }
.detail-card p { color:var(--muted); font-size:13px; line-height:1.72; }
.brew-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.brew-grid div { background:var(--surface-2); border:1px solid var(--line); border-radius:16px; padding:15px; }
.brew-grid small { display:block; color:var(--muted); font-size:8px; text-transform:uppercase; letter-spacing:.14em; }
.brew-grid strong { display:block; margin-top:5px; font-size:12px; }

.footer { border-top:1px solid var(--line); padding:58px 0 24px; background:#1b1b1b; color:#eee8dc; }
html[data-theme="light"] .footer { background:#18393a; }
.footer__grid { display:grid; grid-template-columns:1.5fr repeat(3,1fr); gap:34px; }
.footer__brand p { color:rgba(255,255,255,.48); max-width:340px; font-size:11px; line-height:1.6; margin-top:15px; }
.footer__col strong { display:block; font-size:10px; text-transform:uppercase; letter-spacing:.14em; color:rgba(255,255,255,.45); margin-bottom:13px; }
.footer__col a, .footer__col span, .footer__col button { display:block; border:0; background:transparent; padding:0; margin:7px 0; color:rgba(255,255,255,.72); font-size:11px; text-align:left; }
.footer__bottom { margin-top:44px; padding-top:18px; border-top:1px solid rgba(255,255,255,.1); display:flex; justify-content:space-between; gap:16px; color:rgba(255,255,255,.35); font-size:9px; }

.overlay { position:fixed; inset:0; z-index:80; background:rgba(0,0,0,.55); backdrop-filter:blur(5px); opacity:0; pointer-events:none; transition:.2s; }
.overlay.is-open { opacity:1; pointer-events:auto; }
.drawer { position:fixed; z-index:90; top:0; bottom:0; right:0; width:min(440px,100%); background:var(--surface); border-left:1px solid var(--line); transform:translateX(104%); transition:.28s cubic-bezier(.2,.8,.2,1); display:flex; flex-direction:column; box-shadow:var(--shadow); }
.drawer.is-open { transform:none; }
.drawer__head { min-height:86px; padding:20px 22px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.drawer__head h2 { margin:0; font-size:28px; }
.close-btn { width:38px; height:38px; border-radius:50%; border:1px solid var(--line); background:transparent; font-size:20px; }
.drawer__body { flex:1; overflow:auto; padding:16px 22px; }
.drawer__footer { border-top:1px solid var(--line); padding:18px 22px 22px; }
.cart-item { display:grid; grid-template-columns:62px 1fr auto; gap:11px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); }
.cart-item__img { width:62px; height:62px; border-radius:12px; overflow:hidden; background:var(--surface-3); }
.cart-item__img img { width:100%; height:100%; object-fit:cover; }
.cart-item strong { display:block; font-family:Georgia,serif; font-size:14px; font-weight:500; line-height:1.18; }
.cart-item small { color:var(--muted); font-size:9px; }
.qty { display:flex; align-items:center; gap:6px; margin-top:6px; }
.qty button { width:23px; height:23px; border-radius:50%; border:1px solid var(--line); background:transparent; }
.cart-item__end { text-align:right; font-size:10px; align-self:stretch; display:flex; flex-direction:column; justify-content:space-between; align-items:flex-end; }
.remove { border:0; background:transparent; color:var(--danger); font-size:9px; padding:0; }
.cart-total { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.cart-empty { min-height:58vh; display:grid; place-items:center; text-align:center; color:var(--muted); }
.cart-empty strong { display:block; color:var(--text); font-family:Georgia,serif; font-size:28px; font-weight:500; }

.search-modal { position:fixed; z-index:100; left:50%; top:12vh; width:min(760px,calc(100% - 30px)); background:var(--surface); border:1px solid var(--line); border-radius:24px; box-shadow:var(--shadow); transform:translate(-50%,-20px); opacity:0; pointer-events:none; transition:.2s; overflow:hidden; }
.search-modal.is-open { opacity:1; pointer-events:auto; transform:translate(-50%,0); }
.search-modal__top { padding:18px; display:flex; gap:10px; border-bottom:1px solid var(--line); }
.search-modal__top input { flex:1; min-width:0; border:1px solid var(--line); background:var(--surface-2); border-radius:999px; outline:0; padding:0 16px; }
.search-results { max-height:58vh; overflow:auto; padding:10px; }
.search-result { display:grid; grid-template-columns:58px 1fr auto; gap:12px; align-items:center; padding:9px; border-radius:14px; }
.search-result:hover { background:var(--surface-2); }
.search-result img { width:58px; height:58px; border-radius:10px; object-fit:cover; }
.search-result strong { display:block; font-family:Georgia,serif; font-size:15px; font-weight:500; }
.search-result span { color:var(--muted); font-size:9px; }
.search-result b { font-size:10px; }

.mobile-menu { position:fixed; z-index:95; inset:79px 0 auto; background:var(--surface); border-bottom:1px solid var(--line); padding:18px 20px 24px; transform:translateY(-125%); transition:.25s; }
.mobile-menu.is-open { transform:none; }
.mobile-menu a { display:flex; justify-content:space-between; padding:14px 0; border-bottom:1px solid var(--line); font-family:Georgia,serif; font-size:22px; }

.toast { position:fixed; z-index:120; left:50%; bottom:24px; transform:translate(-50%,90px); opacity:0; background:var(--text); color:var(--bg); border-radius:999px; padding:11px 15px; font-size:10px; transition:.2s; box-shadow:var(--shadow); }
.toast.is-visible { transform:translate(-50%,0); opacity:1; }

@media (max-width: 1080px) {
  .product-grid { grid-template-columns:repeat(3,1fr); }
  .category-row { grid-template-columns:repeat(3,1fr); }
  .hero__copy { padding:58px 45px; }
  .category-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 820px) {
  .container { width:min(calc(100% - 28px),var(--max)); }
  .announcement__inner span:last-child, .desktop-nav, .header-actions .icon-btn:first-child { display:none; }
  .header__inner { min-height:68px; grid-template-columns:1fr auto; gap:12px; }
  .header-actions { justify-self:end; }
  .theme-btn { display:none; }
  .menu-btn { display:grid; }
  .cart-btn > span:first-child { display:none; }
  .brand__text strong { font-size:18px; }
  .brand__mark { width:37px; height:37px; }
  .hero { padding-top:30px; }
  .hero__shell { grid-template-columns:1fr; border-radius:26px; }
  .hero__copy { padding:48px 28px 36px; }
  .hero h1 { font-size:clamp(55px,17vw,90px); }
  .hero__image { min-height:360px; }
  .hero__image::after { background:linear-gradient(180deg,var(--surface) 0%,transparent 18%,rgba(18,18,18,.38) 100%); }
  .section { padding:68px 0; }
  .section-head { align-items:flex-start; flex-direction:column; margin-bottom:22px; }
  .product-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .product-card h3 { font-size:19px; min-height:39px; }
  .product-card__note { display:none; }
  .category-row { grid-template-columns:repeat(2,1fr); }
  .editorial-grid { grid-template-columns:1fr; }
  .editorial-image { min-height:330px; }
  .page-hero__box { padding:40px 26px; border-radius:24px; }
  .page-hero__box::after { font-size:120px; right:8px; }
  .category-grid { grid-template-columns:1fr; }
  .category-card { min-height:300px; }
  .catalog-toolbar { top:78px; flex-wrap:wrap; border-radius:18px; }
  .catalog-search { flex-basis:100%; }
  .filter-toggle { display:inline-flex; }
  .catalog-layout { grid-template-columns:1fr; }
  .filters { display:none; position:static; }
  .filters.is-open { display:block; }
  .product-layout { grid-template-columns:1fr; }
  .product-main-image, .product-main-image img { min-height:470px; }
  .product-info { position:static; }
  .product-details { grid-template-columns:1fr; }
  .footer__grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 520px) {
  .announcement { display:none; }
  .site-header { top:0; }
  .header__inner { min-height:64px; }
  .mobile-menu { top:64px; }
  .hero__copy { padding:38px 22px 30px; }
  .hero__copy > p { font-size:14px; }
  .hero__meta { margin-top:34px; gap:18px; }
  .hero__image { min-height:300px; }
  .category-row { grid-template-columns:1fr 1fr; }
  .category-chip { min-height:96px; padding:14px; }
  .product-grid { grid-template-columns:1fr 1fr; }
  .product-card__body { padding:12px; }
  .product-card__meta { font-size:7px; }
  .product-card h3 { font-size:17px; }
  .product-card__footer { align-items:flex-end; }
  .product-card__actions .round-btn:first-child { display:none; }
  .editorial-list { grid-template-columns:1fr; }
  .catalog-toolbar .select { flex:1; }
  .page-hero { padding-top:30px; }
  .page-hero h1 { font-size:50px; }
  .product-main-image, .product-main-image img { min-height:360px; }
  .product-info { padding:24px; }
  .product-info h1 { font-size:43px; }
  .brew-grid { grid-template-columns:1fr; }
  .footer__grid { grid-template-columns:1fr; }
  .footer__bottom { flex-direction:column; }
}

/* v2 details */
.favorite-product svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; }
.favorite-product.is-active { background:var(--surface-3); border-color:var(--accent); color:var(--accent); }
.favorite-product.is-active svg { fill:currentColor; }
.product-main-image { aspect-ratio: 1.08 / 1; }
.product-main-image img { position:absolute; inset:0; }
.product-card__image img[data-fallback], .product-main-image img[data-fallback], .search-result img[data-fallback], .cart-item__img img[data-fallback] { background:var(--surface-3); }
@media (max-width: 520px) {
  .image-source-note { align-items:flex-start; flex-direction:column; }
  .product-main-image { aspect-ratio: 1 / 1; }
}
