/* ARVENODECOR commerce system — accessible action colors and mobile layouts. */
:root { --c-action:#6f512d; --c-action-hover:#594125; --nav-height:68px; }
.btn--primary { background:var(--c-action); box-shadow:none; }
.btn--primary:hover { background:var(--c-action-hover); }
.header__icon-btn,.burger,.pcard__fav,.pcard__cmp,.rail-nav button { min-width:48px; min-height:48px; }
.pcard__cmp { right:4rem; }
.catalog-search { margin-bottom:24px; position:relative; }
.catalog-search>label { display:block; font-weight:700; margin-bottom:8px; }
.search-field { display:flex; gap:8px; }
.search-field input { width:100%; min-width:0; border:1px solid #77736b; border-radius:8px; background:#fff; padding:14px 16px; font:inherit; }
.search-suggestions { position:absolute; top:100%; left:0; right:0; z-index:35; background:var(--c-chalk); border:1px solid var(--c-sand); box-shadow:var(--shadow-2); border-radius:8px; overflow:hidden; }
.search-suggestions a { display:flex; justify-content:space-between; gap:16px; padding:14px; border-bottom:1px solid var(--c-sand); }
.search-suggestions a:hover,.search-suggestions a:focus-visible { background:#e8e0d3; }
.search-suggestions small { white-space:nowrap; }
.filters fieldset { border:0; border-bottom:1px solid var(--c-sand); margin:0; padding-inline:0; min-width:0; }
.filters legend,.filters__group>label:not(.check) { font-weight:700; font-size:14px; margin-bottom:8px; }
.filters select { width:100%; margin-top:8px; padding:12px; border:1px solid #77736b; border-radius:6px; background:#fff; }
.filters .check { min-height:44px; }
.filter-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.filter-heading h2 { margin:0; font-size:24px; }
.filter-actions { display:grid; gap:8px; background:var(--c-chalk); padding-top:16px; }
.active-filters { color:#56564e; font-size:14px; margin-bottom:16px; }
.catalog-empty { grid-column:1/-1; padding:40px 24px; border:1px solid var(--c-sand); border-radius:16px; }
.catalog-pagination { text-align:center; margin-top:32px; }
.mobile-nav { display:none; }
.product-purchase-bar { display:none; }
.preview-notice { background:#e8e0d3; color:#26251f; padding:8px 20px; font-size:12px; text-align:center; }
.gallery__main { cursor:zoom-in; touch-action:pan-y; }
.image-dialog { border:0; padding:24px; width:min(100vw - 24px,1100px); max-height:90dvh; border-radius:16px; background:var(--c-chalk); }
.image-dialog::backdrop { background:rgb(0 0 0 / .7); }
.image-dialog img { max-height:75dvh; margin:auto; object-fit:contain; }
.image-dialog button { display:block; margin-left:auto; min-height:48px; }
.finance-warning { padding:16px; background:#f2e7d4; border-radius:8px; }
.account-panel [data-orders] { display:grid; gap:16px; }
.catalog-toolbar { min-width:0; }
.calc-table { table-layout:fixed; }
.calc-table td,.calc-table th { overflow-wrap:anywhere; }
@media(max-width:767px) {
 .header__inner { gap:8px; width:calc(100% - 24px); }
 .header__logo { flex:0 0 132px; }
 .header__logo img { width:132px; height:auto; }
 .header__actions { gap:0; }
 .header__actions [aria-label="Избранное"],.header__actions [aria-label="Личный кабинет"] { display:none; }
 body { padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom)); }
 .container { width:calc(100% - 32px); }
 .section { padding-block:40px; }
 .hero { min-height:560px; }
 .hero__title { font-size:clamp(40px,10vw,56px); }
 .header { --header-h:68px; }
 .mobile-nav { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); position:fixed; bottom:0; left:0; right:0; min-height:var(--nav-height); padding:6px 8px calc(6px + env(safe-area-inset-bottom)); background:var(--c-chalk); border-top:1px solid var(--c-sand); z-index:120; }
 .mobile-nav a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; font-size:10px; min-height:48px; }
 .mobile-nav svg { width:22px; height:22px; }
 .mobile-nav a[aria-current] { color:var(--c-action); font-weight:800; }
 .product-purchase-bar { display:flex; position:fixed; bottom:calc(var(--nav-height) + env(safe-area-inset-bottom)); left:0; right:0; padding:12px 16px; gap:16px; align-items:center; justify-content:space-between; background:var(--c-chalk); border-top:1px solid var(--c-sand); z-index:119; }
 body:has(.product-purchase-bar) { padding-bottom:calc(160px + env(safe-area-inset-bottom)); }
 .product-purchase-bar strong { display:block; font-size:18px; }
 .product-purchase-bar small { display:block; font-size:12px; color:#56564e; }
 .ai-fab { bottom:calc(var(--nav-height) + 16px + env(safe-area-inset-bottom)); }
 body:has(.product-purchase-bar) .ai-fab { display:none; }
 .cookie { left:16px; right:16px; bottom:calc(var(--nav-height) + 12px + env(safe-area-inset-bottom)); max-width:none; }
 body:has(.product-purchase-bar) .cookie { bottom:calc(160px + env(safe-area-inset-bottom)); }
 .account-nav { position:static; }
 .goods { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .pcard__body { padding:12px; }
 .pcard__foot { flex-wrap:wrap; gap:12px; }
 .pcard__buy { width:100%; min-height:48px; }
 .pcard__name { font-size:18px; overflow-wrap:anywhere; }
 .pcard__spec { overflow-wrap:anywhere; }
 .pcard__fav,.pcard__cmp { top:4px; }
 .pcard__fav { right:4px; }
 .pcard__cmp { right:54px; }
 .catalog-toolbar { gap:12px; }
 .catalog-toolbar select { max-width:100%; }
 .search-field .btn { padding-inline:16px; }
 .cart-item { grid-template-columns:70px minmax(0,1fr); }
 .cart-item>div:last-child { grid-column:2; text-align:left!important; }
 .cart-summary { position:static; }
 .calc-table { font-size:12px; }
 .calc-table th,.calc-table td { padding:8px 4px; }
 input,select,textarea { font-size:16px!important; }
}
@media(max-width:1023px) {
 .filters { padding:24px 20px calc(28px + env(safe-area-inset-bottom)); z-index:250; }
 .filter-actions { position:sticky; bottom:0; padding-bottom:12px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
.product-layout>.gallery{grid-column:1;grid-row:1}.product-layout>.buy-box{grid-column:2;grid-row:1 / 3}.product-layout>.product-details{grid-column:1;grid-row:2;min-width:0}
.room-upload-actions{display:flex;flex-wrap:wrap;gap:12px}#room-upload>p{margin-block:16px}#room-preview{margin:16px 0}#room-preview img{width:100%;max-height:440px;object-fit:contain;background:var(--c-chalk);border-radius:8px}#room-preview figcaption{font-size:13px;margin-top:8px;color:var(--c-muted)}
@media(max-width:767px){.product-layout{grid-template-columns:minmax(0,1fr)}.product-layout>.gallery{grid-column:1;grid-row:1}.product-layout>.buy-box{grid-column:1;grid-row:2;position:static}.product-layout>.product-details{grid-column:1;grid-row:3}.gallery__main{max-height:380px}}
