/*
Theme Name: ASVNT Select
Theme URI: https://asvnt.com
Author: ASVNT
Description: Mobile-first architectural product catalogue for ASVNT.
Version: 1.0.0
Text Domain: asvnt-select
*/

:root {
  --ink: #17191c;
  --body: #4d5258;
  --muted: #858a91;
  --line: #e6e4df;
  --paper: #f7f6f2;
  --white: #fff;
  --copper: #a87945;
  --copper-dark: #805b34;
  --radius: 10px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.site-shell { min-height: 100vh; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(23, 25, 28, .08);
  background: rgba(247, 246, 242, .94);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(calc(100% - 32px), var(--max));
  height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: block;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-weight: 700; letter-spacing: .08em; }
.brand-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-link { padding: 9px 12px; color: var(--body); font-size: 13px; }
.contact-button, .button-primary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--copper);
  cursor: pointer;
}
.contact-button:hover, .button-primary:hover { background: var(--copper-dark); }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero::before {
  inset: 0;
  opacity: .35;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(168, 121, 69, .28) 58% 58.3%, transparent 58.3%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 14vw);
}
.hero::after {
  right: -110px;
  bottom: -220px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(168,121,69,.55);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max));
  min-height: 470px;
  margin: auto;
  padding: 96px 0 74px;
  display: grid;
  align-content: center;
}
.eyebrow { color: #caa473; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { max-width: 820px; margin: 16px 0 20px; font: 500 clamp(38px, 6vw, 78px)/1.08 Georgia, "Noto Serif SC", serif; letter-spacing: -.025em; }
.hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.68); font-size: clamp(15px, 2vw, 18px); line-height: 1.8; }
.hero-search { max-width: 620px; margin-top: 38px; display: flex; border-radius: 8px; background: #fff; overflow: hidden; }
.hero-search input { min-width: 0; flex: 1; padding: 0 18px; border: 0; outline: 0; }
.hero-search button { min-width: 94px; border-radius: 0; }

.section { width: min(calc(100% - 32px), var(--max)); margin: auto; padding: 72px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font: 500 clamp(28px, 4vw, 44px)/1.15 Georgia, "Noto Serif SC", serif; }
.section-heading p { max-width: 540px; margin: 0; color: var(--muted); line-height: 1.7; }
.catalog-heading { align-items: center; }
.catalog-heading-copy p { margin-top: 9px; }
.favorite-drawer-trigger { min-height: 42px; padding: 0 16px; border: 1px solid #d8c4ad; border-radius: 99px; color: var(--copper-dark); background: var(--white); cursor: pointer; white-space: nowrap; }
.favorite-drawer-trigger:hover { color: #fff; border-color: var(--copper); background: var(--copper); }

.category-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.category-card {
  min-height: 132px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .2s ease, border-color .2s ease;
}
.category-card:hover { transform: translateY(-3px); border-color: var(--copper); }
.category-card span { color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.category-card strong { font-size: 18px; }
.category-card b { color: var(--copper); font-weight: 500; }

.catalog-layout { display: grid; grid-template-columns: 250px 1fr; align-items: start; gap: 30px; }
.catalog-filter {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.filter-head strong { font-size: 16px; }
.filter-clear { color: var(--copper-dark); font-size: 12px; }
.filter-group { padding: 14px 0; border-top: 1px solid var(--line); }
.filter-group summary { display: flex; cursor: pointer; list-style: none; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 650; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "+"; color: var(--muted); font-size: 18px; font-weight: 400; }
.filter-group[open] summary::after { content: "−"; }
.filter-options { display: grid; gap: 9px; padding-top: 13px; }
.filter-option { display: flex; align-items: center; gap: 9px; color: var(--body); font-size: 13px; }
.filter-group[hidden], .filter-option[hidden] { display: none !important; }
.filter-option input { accent-color: var(--copper); }
.catalog-filter form.is-live-filtering .filter-submit { display: none; }
.mobile-filter-columns { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-chip { padding: 7px 10px; border-radius: 99px; background: #eee9e2; color: var(--copper-dark); font-size: 12px; }
.catalog-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.catalog-meta select { padding: 9px 30px 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.catalog-results { transition: opacity .18s ease; }
.catalog-results.is-loading { opacity: .42; pointer-events: none; }
.catalog-load-more { padding: 26px 0 4px; display: flex; justify-content: center; }
.catalog-load-more button { min-width: 180px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--white); cursor: pointer; }
.catalog-load-more button:disabled { cursor: wait; opacity: .7; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.product-preview { width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: zoom-in; }
.product-image { position: relative; aspect-ratio: 1; overflow: hidden; background: #eceae5; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.025); }
.product-badge { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: 99px; color: #fff; background: rgba(23,25,28,.78); font-size: 10px; }
.product-info { min-height: 48px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-title { min-width: 0; margin: 0; overflow: hidden; font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.product-actions { flex: 0 0 auto; }
.product-actions button { min-width: 0; min-height: 30px; padding: 3px 5px; display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 0; color: var(--muted); background: transparent; box-shadow: none; cursor: pointer; font-size: 13px; white-space: nowrap; appearance: none; -webkit-appearance: none; -webkit-tap-highlight-color: transparent; }
.product-actions button:hover { color: var(--muted); background: transparent; }
.product-like > span { position: relative; width: 15px; height: 15px; display: inline-grid; place-items: center; line-height: 1; transform-origin: 50% 65%; }
.product-like > span svg { width: 100%; height: 100%; display: block; overflow: visible; fill: transparent; stroke: #95999f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: fill .18s ease, stroke .18s ease, transform .18s ease; }
.product-like > b { color: #686b70; font-weight: 500; }
.product-actions button.is-active { color: var(--muted); font-weight: 400; }
.product-like.is-active > span svg { fill: #ff2442; stroke: #ff2442; }
.product-like.is-like-animating > span { animation: asvnt-heart-pop .55s cubic-bezier(.2,.9,.25,1.35); }
.product-like.is-unlike-animating > span { animation: asvnt-heart-unlike .32s ease-out; }
.product-like.is-like-animating > span::after { content: ""; position: absolute; top: 50%; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: #ff2442; box-shadow: 0 -15px #ff2442, 11px -11px #ff7b8d, 15px 0 #ff2442, 11px 11px #ff7b8d, 0 15px #ff2442, -11px 11px #ff7b8d, -15px 0 #ff2442, -11px -11px #ff7b8d; transform: translate(-50%,-50%) scale(.2); animation: asvnt-heart-burst .52s ease-out forwards; pointer-events: none; }
@keyframes asvnt-heart-pop { 0% { transform: scale(1); } 28% { transform: scale(.72); } 62% { transform: scale(1.42); } 82% { transform: scale(.92); } 100% { transform: scale(1); } }
@keyframes asvnt-heart-burst { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.2) rotate(0); } 22% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.35) rotate(18deg); } }
@keyframes asvnt-heart-unlike { 0% { transform: scale(1); } 45% { transform: scale(.72); } 100% { transform: scale(1); } }
.product-actions button.is-loading { opacity: .55; cursor: wait; }
.product-actions button:disabled:not(.is-active) { opacity: .55; cursor: wait; }
.product-actions b { font-weight: 650; }
.empty-catalog { grid-column: 1/-1; min-height: 330px; padding: 46px 24px; display: grid; place-items: center; text-align: center; border: 1px dashed #cbc7bf; border-radius: var(--radius); background: rgba(255,255,255,.45); }
.empty-mark { width: 76px; height: 76px; margin: 0 auto 20px; border: 1px solid var(--copper); border-radius: 50%; display: grid; place-items: center; color: var(--copper); font: 28px Georgia,serif; }
.empty-catalog h3 { margin: 0 0 8px; font: 500 28px Georgia,"Noto Serif SC",serif; }
.empty-catalog p { max-width: 460px; margin: 0; color: var(--muted); line-height: 1.7; }

.single-product-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); gap: 50px; }
.single-product-image { overflow: hidden; border-radius: var(--radius); background: #eceae5; cursor: zoom-in; }
.single-product-image img { width: 100%; height: auto; }
.single-product-info { position: sticky; top: 94px; align-self: start; }
.single-product-info h1 { margin: 10px 0 16px; font: 500 clamp(32px,5vw,54px)/1.12 Georgia,"Noto Serif SC",serif; }
.single-product-info .description { color: var(--body); line-height: 1.8; }
.spec-list { margin: 28px 0; border-top: 1px solid var(--line); }
.spec-row { padding: 13px 0; display: grid; grid-template-columns: 90px 1fr; border-bottom: 1px solid var(--line); font-size: 13px; }
.spec-row span { color: var(--muted); }

.site-footer { margin-top: 40px; padding: 56px 0 28px; color: rgba(255,255,255,.7); background: var(--ink); }
.footer-inner { width: min(calc(100% - 32px), var(--max)); margin: auto; }
.footer-main { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 40px; padding-bottom: 40px; }
.footer-title { color: #fff; font: 500 28px Georgia,"Noto Serif SC",serif; }
.footer-text { max-width: 520px; line-height: 1.8; }
.footer-links { display: grid; align-content: start; gap: 10px; font-size: 13px; }
.footer-links strong { margin-bottom: 4px; color: #fff; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; }
.footer-registration { margin-top: 14px; text-align: center; font-size: 12px; }
.footer-registration a { color: inherit; }
.footer-registration a:hover { color: #fff; }

.mobile-bottom-nav { display: none; }
.mobile-filter-backdrop, .mobile-filter-close, .mobile-filter-done, .mobile-search-backdrop, .mobile-search-panel { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px 120px; background: rgba(5,6,7,.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 9px; }
.lightbox img { max-width: calc(100vw - 240px); max-height: 84vh; object-fit: contain; border-radius: 4px; cursor: zoom-out; touch-action: none; user-select: none; -webkit-user-drag: none; transition: transform .12s ease-out; box-shadow: 0 22px 70px rgba(0,0,0,.5); }
.lightbox img.is-pinching { transition: none; }
.lightbox img.is-swiping { transition: none; }
.lightbox img.is-gallery-transitioning { pointer-events: none; will-change: transform, opacity; }
.lightbox figcaption { min-height: 18px; color: rgba(255,255,255,.82); font-size: 13px; letter-spacing: .04em; }
.lightbox-favorite { min-height: 38px; padding: 7px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; color: #fff; background: rgba(0,0,0,.3); cursor: pointer; font-size: 13px; }
.lightbox-favorite:hover, .lightbox-favorite.is-active { border-color: var(--copper); background: rgba(168,121,69,.82); }
.lightbox-zoom-hint { color: rgba(255,255,255,.48); font-size: 11px; }
.lightbox-close { position: fixed; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); z-index: 12; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; background: rgba(10,11,12,.72); box-shadow: 0 6px 22px rgba(0,0,0,.32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; font-size: 26px; line-height: 1; -webkit-tap-highlight-color: transparent; }
.lightbox-nav { position: absolute; top: 50%; min-width: 82px; padding: 12px 14px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.28); border-radius: 99px; color: #fff; background: rgba(0,0,0,.28); cursor: pointer; }
.lightbox-nav:hover { background: rgba(168,121,69,.75); }
.lightbox-nav:disabled { opacity: .3; cursor: default; }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox.is-single .lightbox-nav { display: none; }
body.lightbox-open { overflow: hidden; }

.favorite-drawer-layer { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.favorite-drawer-layer.is-open { visibility: visible; pointer-events: auto; }
.favorite-drawer-backdrop { position: absolute; inset: 0; width: 100%; border: 0; opacity: 0; background: rgba(5,6,7,.52); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); transition: opacity .22s ease; cursor: default; }
.favorite-drawer-layer.is-open .favorite-drawer-backdrop { opacity: 1; }
.favorite-drawer { position: absolute; top: 0; right: 0; width: min(460px, 100%); height: 100%; padding: 24px; display: grid; grid-template-rows: auto minmax(0,1fr) auto; color: var(--ink); background: var(--paper); box-shadow: -24px 0 70px rgba(0,0,0,.2); transform: translateX(100%); transition: transform .25s ease; }
.favorite-drawer-layer.is-open .favorite-drawer { transform: translateX(0); }
.favorite-drawer-head { padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.favorite-drawer-head span { color: var(--copper); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.favorite-drawer-head h2 { margin: 4px 0 0; font: 500 28px/1.2 Georgia,"Noto Serif SC",serif; }
.favorite-drawer-head h2 b { font: inherit; }
.favorite-drawer-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--body); background: var(--white); cursor: pointer; font-size: 22px; }
.favorite-drawer-list { min-height: 0; padding: 18px 2px; display: grid; align-content: start; gap: 10px; overflow-y: auto; }
.favorite-item { padding: 9px; display: grid; grid-template-columns: 82px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.favorite-item-preview { width: 82px; height: 82px; padding: 0; overflow: hidden; border: 0; border-radius: 6px; background: #eceae5; cursor: zoom-in; }
.favorite-item-preview img { width: 100%; height: 100%; object-fit: cover; }
.favorite-item-info { min-width: 0; }
.favorite-item-info span { color: var(--copper-dark); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.favorite-item-info strong { margin-top: 6px; display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.favorite-remove { padding: 7px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.favorite-remove:hover { color: var(--copper-dark); }
.favorite-drawer-empty { padding: 70px 24px; display: none; align-self: start; justify-items: center; text-align: center; color: var(--muted); }
.favorite-drawer-empty.is-visible { display: grid; }
.favorite-drawer-empty > span { color: var(--copper); font-size: 44px; }
.favorite-drawer-empty strong { margin-top: 12px; color: var(--ink); }
.favorite-drawer-empty p { max-width: 290px; margin: 8px 0 0; font-size: 13px; line-height: 1.7; }
.favorite-drawer-foot { padding-top: 16px; display: grid; grid-template-columns: auto auto 1fr; gap: 8px; border-top: 1px solid var(--line); }
.favorite-drawer-foot > button { min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); cursor: pointer; font-size: 12px; }
.favorite-drawer-foot .button-primary { color: #fff; border-color: var(--copper); background: var(--copper); }
.favorite-drawer-foot button:disabled { opacity: .45; cursor: default; }
body.favorite-drawer-open { overflow: hidden; }

@media (max-width: 1000px) {
  .category-row { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .catalog-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .mobile-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 70; height: calc(66px + env(safe-area-inset-bottom)); padding: 6px 5px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); border-top: 1px solid rgba(23,25,28,.08); background: rgba(255,255,255,.96); box-shadow: 0 -8px 28px rgba(23,25,28,.07); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .mobile-bottom-nav-item { position: relative; min-width: 0; min-height: 54px; padding: 3px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 10px; color: #696b67; background: transparent; cursor: pointer; font-size: 11px; line-height: 1.15; }
  .mobile-bottom-nav-item svg { width: 24px; height: 24px; display: block; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-bottom-nav-item.is-active, .mobile-bottom-nav-item:active { color: var(--ink); font-weight: 650; }
  .mobile-bottom-nav-item.is-active svg { stroke-width: 2.4; }
  .mobile-bottom-nav-icon { position: relative; display: block; }
  .mobile-bottom-nav-icon > b { position: absolute; top: -5px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 99px; color: #fff; background: #e34d59; font-size: 9px; font-weight: 700; line-height: 1; }
  .mobile-bottom-nav-icon > b.is-empty { display: none; }
  .header-inner { width: min(calc(100% - 24px), var(--max)); height: 60px; }
  .brand-sub, .header-link { display: none; }
  .contact-button { min-height: 36px; padding: 0 13px; font-size: 12px; }
  .hero-inner { width: min(calc(100% - 28px), var(--max)); min-height: 430px; padding: 64px 0 48px; }
  .hero h1 { font-size: clamp(38px, 13vw, 58px); }
  .hero-search { margin-top: 28px; }
  .hero-search { display: none; }
  .section { width: min(calc(100% - 24px), var(--max)); padding: 48px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 10px; }
  .catalog-heading { display: none; }
  #catalog.section { padding-top: 18px; }
  .category-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-right: 0; overflow: visible; }
  .category-card { min-width: 0; min-height: 118px; padding: 16px; }
  .catalog-layout { display: block; }
  .catalog-filter { position: fixed; right: 8px; bottom: calc(66px + env(safe-area-inset-bottom)); left: 8px; z-index: 85; max-height: min(78dvh, 720px); margin: 0; padding: 20px 12px 12px; display: block; overflow-y: auto; overscroll-behavior: contain; border-radius: 18px 18px 0 0; box-shadow: 0 -18px 55px rgba(15,16,18,.18); visibility: hidden; pointer-events: none; transform: translateY(calc(100% + 90px)); transition: transform .28s cubic-bezier(.22,.8,.25,1), visibility 0s linear .28s; }
  .catalog-filter::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; border-radius: 99px; background: #d3d1cc; transform: translateX(-50%); }
  .catalog-filter.is-mobile-open { visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
  .catalog-filter form { display: block; overflow: visible; }
  .catalog-filter .filter-head { position: sticky; top: -20px; z-index: 3; min-width: 0; padding: 19px 42px 14px 4px; display: flex; gap: 12px; background: var(--white); }
  .mobile-filter-close { position: absolute; top: 12px; right: 0; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--body); background: var(--white); cursor: pointer; font-size: 21px; line-height: 1; }
  .mobile-filter-done { position: sticky; bottom: 0; z-index: 3; width: 100%; margin-top: 10px; display: flex; box-shadow: 0 -10px 18px var(--white); }
  .mobile-filter-backdrop { position: fixed; inset: 0 0 calc(66px + env(safe-area-inset-bottom)); z-index: 80; width: 100%; padding: 0; display: block; border: 0; opacity: 0; visibility: hidden; pointer-events: none; background: rgba(10,11,12,.4); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: opacity .22s ease, visibility 0s linear .22s; }
  .mobile-filter-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  body.mobile-filter-open { overflow: hidden; }
  .mobile-search-backdrop { position: fixed; inset: 0 0 calc(66px + env(safe-area-inset-bottom)); z-index: 80; width: 100%; padding: 0; display: block; border: 0; opacity: 0; visibility: hidden; pointer-events: none; background: rgba(10,11,12,.4); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: opacity .22s ease, visibility 0s linear .22s; }
  .mobile-search-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .mobile-search-panel { position: fixed; right: 8px; bottom: calc(66px + env(safe-area-inset-bottom)); left: 8px; z-index: 85; min-height: 190px; padding: 24px 18px 22px; display: block; border: 1px solid var(--line); border-radius: 18px 18px 0 0; color: var(--ink); background: var(--white); box-shadow: 0 -18px 55px rgba(15,16,18,.18); visibility: hidden; pointer-events: none; transform: translateY(calc(100% + 90px)); transition: transform .28s cubic-bezier(.22,.8,.25,1), visibility 0s linear .28s; }
  .mobile-search-panel::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; border-radius: 99px; background: #d3d1cc; transform: translateX(-50%); }
  .mobile-search-panel.is-open { visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
  .mobile-search-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .mobile-search-head span { display: block; color: var(--copper); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
  .mobile-search-head strong { margin-top: 4px; display: block; font-size: 20px; }
  .mobile-search-close { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--body); background: var(--white); cursor: pointer; font-size: 21px; line-height: 1; }
  .mobile-search-form { margin-top: 18px; display: grid; grid-template-columns: minmax(0,1fr) auto; overflow: hidden; border: 1px solid #d8d5cf; border-radius: 9px; background: var(--white); }
  .mobile-search-form input { min-width: 0; height: 48px; padding: 0 13px; border: 0; outline: 0; background: transparent; font-size: 14px; }
  .mobile-search-form .button-primary { min-height: 48px; border-radius: 0; }
  body.mobile-search-open { overflow: hidden; }
  .mobile-filter-columns { display: grid; grid-template-columns: minmax(105px,.85fr) minmax(0,2.15fr); border-top: 1px solid var(--line); }
  .has-mobile-filter-columns > .filter-group { display: none !important; }
  .mobile-filter-column { min-width: 0; padding: 8px 6px; border-right: 1px solid var(--line); }
  .mobile-filter-column:last-child { border-right: 0; }
  .mobile-filter-category, .mobile-filter-option { width: 100%; margin: 0 0 5px; padding: 9px 7px; border: 0; border-radius: 6px; color: var(--body); background: transparent; text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
  .mobile-filter-category.is-active { color: #fff; background: var(--copper); }
  .mobile-filter-option { display: flex; align-items: flex-start; gap: 6px; }
  .mobile-filter-option span { flex: 0 0 13px; width: 13px; height: 13px; margin-top: 2px; border: 1px solid #8d8b86; border-radius: 3px; background: #fff; }
  .mobile-filter-option.is-active span { border-color: var(--copper); background: var(--copper); box-shadow: inset 0 0 0 3px #fff; }
  .mobile-filter-option b { min-width: 0; font-weight: 400; line-height: 1.45; overflow-wrap: anywhere; }
  .mobile-filter-related section + section { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  .mobile-filter-related section > strong { display: block; margin: 0 0 6px; font-size: 12px; }
  .catalog-filter .filter-group { width: 100%; min-width: 0; padding: 14px 4px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
  .catalog-filter .filter-options { max-height: none; overflow: visible; }
  .catalog-filter .filter-submit { display: none !important; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .product-info { min-height: 44px; padding: 7px 9px; gap: 5px; }
  .product-actions button { min-width: 0; padding: 3px 4px; font-size: 12px; }
  .product-like > span { width: 14px; height: 14px; }
  .product-title { font-size: 13px; }
  .single-product-layout { display: block; }
  .single-product-info { position: static; padding-top: 26px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { display: block; line-height: 1.8; }
  .lightbox { padding: 70px 12px 84px; }
  .lightbox img { max-width: 94vw; max-height: 76vh; }
  .lightbox-nav { top: auto; bottom: 18px; min-width: 92px; transform: none; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
  .favorite-drawer-layer { inset: 0 0 calc(66px + env(safe-area-inset-bottom)); }
  .favorite-drawer-backdrop { background: rgba(10,11,12,.4); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
  .favorite-drawer { top: auto; right: 8px; bottom: 0; left: 8px; width: auto; height: min(78dvh, 720px); padding: 24px 14px 14px; border: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -18px 55px rgba(15,16,18,.18); transform: translateY(calc(100% + 90px)); }
  .favorite-drawer::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; border-radius: 99px; background: #d3d1cc; transform: translateX(-50%); }
  .favorite-drawer-layer.is-open .favorite-drawer { transform: translateY(0); }
  .favorite-drawer-head h2 { font-size: 24px; }
  .favorite-item { grid-template-columns: 72px minmax(0,1fr) auto; gap: 9px; }
  .favorite-item-preview { width: 72px; height: 72px; }
  .favorite-drawer-foot { grid-template-columns: 1fr 1fr; }
  .favorite-drawer-foot .favorite-share { grid-column: 1/-1; }
}

@media (hover: hover) and (pointer: fine) {
  .product-like:hover:not(.is-active) > span svg { stroke: #ff2442; }
}

@media (prefers-reduced-motion: reduce) {
  .product-like.is-like-animating > span, .product-like.is-like-animating > span::after, .product-like.is-unlike-animating > span { animation: none; }
}

@media (max-width: 520px) {
  .category-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 340px) {
  .category-row { grid-template-columns: 1fr; }
}
