/* Магазин: каталог, вещь, оформление, кабинет. Рациональная сетка, читаемые цены, почти незаметное движение. */

/* ================= каталог: заголовок капсом, фильтры строкой, карточки встык от края до края ================= */
.cat { padding-top: clamp(24px, 3vw, 40px); }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.cat-head h1 { font: 800 clamp(32px, 3vw, 44px)/1.05 var(--f-display); }
.cat-count { margin: 0; font: 500 11.5px/1.3 var(--f-mono); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.cat-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; font-size: 12.25px; }
.cat-drop button { font-size: 11px; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; text-transform: uppercase; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 10px; }
.cat-tabs a { padding: 10px 0; font: 500 12px/1.2 var(--f-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cat-tabs a[aria-current='page'] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) { .cat-tabs a:hover { color: var(--ink); } }
.cat-tabs a[data-c='sale'] { margin-left: auto; color: var(--wine); }
.cat-tabs a[data-c='sale'][hidden] + a[data-c='archive'] { margin-left: auto; }

.cat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 8px 0 14px; }
.cat-search { position: relative; display: flex; align-items: center; flex: 0 1 240px; }
.cat-search i { position: absolute; left: 0; font-size: 15px; pointer-events: none; }
.cat-search input { width: 100%; height: 36px; padding: 0 0 0 24px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; font-size: 14px; appearance: none; -webkit-appearance: none; }
.cat-search input:focus { outline: none; border-color: var(--ink); }
.cat-search input::placeholder { color: var(--muted); }
.recent { margin-top: clamp(56px, 6vw, 90px); }
.recent-title { font: 800 clamp(26px, 2.4vw, 36px)/1.1 var(--f-display); margin-bottom: 22px; }
.recent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; }
.cat-filter-btn, .cat-scrim, .cf-head, .cf-foot { display: none; }
.cat-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.cat-filters:focus { outline: none; }
.cf-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cf-label { font-size: 11px; text-transform: uppercase; }
.cf-sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.cf-size { min-width: 36px; height: 30px; padding: 0 9px; font-size: 11px; text-transform: uppercase; border: 1px solid var(--line-2); transition: border-color 0.2s, color 0.2s; touch-action: manipulation; }
@media (hover: hover) { .cf-size:hover { border-color: var(--ink); } }
.cf-size[aria-pressed='true'] { border-color: var(--wine); color: var(--wine); }
.cf-check { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; cursor: pointer; min-height: 30px; }
.cf-check input { appearance: none; width: 14px; height: 14px; margin: 0; border: 1px solid var(--line-2); display: grid; place-items: center; cursor: pointer; }
.cf-check input::before { content: ''; width: 6px; height: 6px; background: var(--ink); transform: scale(0); transition: transform 0.2s var(--ease); }
.cf-check input:checked { border-color: var(--ink); }
.cf-check input:checked::before { transform: scale(1); }
.cf-reset { font-size: 11px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.cat-sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; }
/* сортировка: текстом капсом со стрелкой, список падает под ней */
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 10px; height: 32px; font-size: 11px; text-transform: uppercase; color: var(--ink); }
.dd-chev { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); transition: transform 0.3s var(--ease); }
.dd.is-open .dd-chev { transform: translateY(1px) rotate(-135deg); }
.dd-list {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 190px; margin: 0; padding: 6px 0; list-style: none;
  background: #fff; border: 1px solid var(--line-2); animation: ddIn 0.2s var(--ease) both;
}
.dd-list:focus { outline: none; }
.dd-list [role='option'] { display: flex; align-items: center; min-height: 36px; padding: 0 16px; font-size: 11px; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.dd-list [role='option'].is-active { background: var(--paper-2); }
.dd-list [role='option'][aria-selected='true'] { text-decoration: underline; text-underline-offset: 3px; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .dd-list { animation: none; } .dd-chev { transition: none; } }

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; }
.cat-empty { grid-column: 1 / -1; padding: 88px 16px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.cat-empty p { font-size: 13px; text-transform: uppercase; margin: 0; }

/* ================= вещь: раскладка в product.css; здесь диалоги размера и «Сообщить о поступлении» ================= */
.sh-done { display: grid; gap: 14px; padding-top: 6px; }
.sh-done p { margin: 0; font-size: 15px; }
.sizehelp .select { appearance: none; height: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23121212' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 30px; }
.sizehelp .input { font-size: 16px; }
/* «Таблица размеров» справа в строке «Размер», как на референсе */
.sizehelp { border: 0; padding: 22px; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; background: #fff; color: var(--ink); }
.sizehelp::backdrop { background: rgba(18, 18, 18, 0.35); }
.sizehelp[open] { display: grid; gap: 14px; animation: shIn 0.3s var(--ease); }
@keyframes shIn { from { opacity: 0; transform: translateY(10px); } }
.sh-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -8px -10px 0 0; }
.sh-head h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.sh-item { margin: -6px 0 0; font-size: 12.25px; text-transform: uppercase; color: var(--muted); }
.sh-fit { margin: 0; font-size: 13px; }
.sh-fit b { font-weight: 700; }
.sh-table-wrap { overflow-x: auto; }
.sh-table { width: 100%; border-collapse: collapse; font-size: 12.25px; font-variant-numeric: tabular-nums; }
.sh-table caption { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; }
.sh-table th, .sh-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.sh-table thead th { font-weight: 400; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.sh-table tbody th { font-weight: 700; }
.sh-hint { margin: 0; font-size: 12px; color: var(--muted); }
.sh-ask { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ink); }
.sh-ask p { margin: 0; font-size: 13px; }
.sh-ask .btn i { font-size: 17px; }
.sh-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; }
.sh-grid .input, .sh-grid .select { height: 44px; }
.sh-grid .select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23121212' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 30px; }
@media (max-width: 560px) {
  .sizehelp { width: 100vw; max-width: 100vw; margin: auto 0 0; max-height: 88dvh; padding: 18px var(--pad) calc(18px + env(safe-area-inset-bottom)); }
  .sh-grid { grid-template-columns: 1fr 1fr; }
  .sh-grid .field:last-child { grid-column: 1 / -1; }
}
/* нижняя полоса покупки на телефоне */
.pd-bar { display: none; }

/* ================= оформление ================= */
.co { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.co-form { display: grid; gap: 44px; }
.co-block { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; }
.co-block legend { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; padding: 0; margin-bottom: 14px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.co-delivery { display: grid; border-top: 1px solid var(--line); }
.radio { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
@media (hover: hover) { .radio:hover b { color: var(--wine-ink); } }
.radio input, .check input { appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.radio input::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--wine); transform: scale(0); transition: transform 0.3s var(--ease); }
.radio input:checked { border-color: var(--wine); }
.radio input:checked::before { transform: scale(1); }
.radio b { display: block; font-weight: 500; }
.radio span { font-size: 14px; color: var(--muted); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; cursor: pointer; }
.check input { border-radius: 0; }
.check input::before { content: ''; width: 10px; height: 6px; border: 2px solid var(--cream); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform 0.25s var(--ease); }
.check input:checked { background: var(--wine); border-color: var(--wine); }
.check input:checked::before { transform: rotate(-45deg) scale(1); }
.check input:disabled { opacity: 0.4; }
.check small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.co-points { padding: 20px; background: var(--paper-2); }
.co-submit { min-height: 58px; font-size: 15px; }
.co-summary { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; background: var(--paper-2); }
.co-summary h2 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.co-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.co-line img { width: 56px; aspect-ratio: 3 / 4; object-fit: cover; }
.co-line b { display: block; font-size: 12.25px; font-weight: 400; text-transform: uppercase; }
.co-line span { font-size: 13px; color: var(--muted); }
.co-line .price { color: var(--ink); font-size: 14px; }
.co-totals { display: grid; gap: 10px; margin-top: 18px; font-size: 14px; }
.co-totals .sum-row span:last-child { color: var(--ink-2); }
.co-total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--ink); font-size: 16px; }
.co-done { padding: clamp(56px, 8vw, 120px) 0; max-width: 780px; }
.co-done .lead { margin: 22px 0 32px; }
.co-done-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.co-star { width: 72px; height: 72px; margin-bottom: 28px; color: var(--wine); animation: starIn 1s var(--ease) both; }
.co-star svg { width: 100%; height: 100%; fill: currentColor; }
@keyframes starIn { 0% { opacity: 0; transform: scale(0.3) rotate(-120deg); } 60% { opacity: 1; transform: scale(1.1) rotate(10deg); } 100% { transform: none; } }

/* ================= кабинет ================= */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs button { position: relative; padding: 12px 0; font: 500 16px/1 var(--f-sans); color: var(--muted); }
.tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform 0.4s var(--ease); }
.tabs button[aria-selected='true'] { color: var(--ink); }
.tabs button[aria-selected='true']::after { transform: scaleX(1); }
.acc-auth { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 120px); padding-top: clamp(40px, 6vw, 88px); align-items: start; }
.acc-rules { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 48ch; }
.acc-rules li { padding-left: 22px; position: relative; color: var(--ink-2); }
.acc-rules li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px; background: var(--ink); }
.acc-print { width: min(300px, 70%); margin: 44px 0 0 10%; transform: rotate(-3deg); }
.acc-forms { padding-top: 12px; }
.acc-form { display: grid; gap: 18px; }
.acc-form .btn { margin-top: 6px; }

.acc-head .lead { margin-top: 14px; }
.acc-head .acc-hi { color: var(--wine); }
.acc-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(24px, 4vw, 64px); align-items: start; }
.acc-balance { grid-column: 1; background: var(--wine); color: #fff; padding: clamp(24px, 3vw, 40px); position: relative; overflow: hidden; }
.acc-balance::after { content: ''; position: absolute; right: -24px; top: -26px; width: 300px; aspect-ratio: 280 / 74; background: currentColor; -webkit-mask: url('/media/brand/word.svg') no-repeat center / contain; mask: url('/media/brand/word.svg') no-repeat center / contain; opacity: 0.07; pointer-events: none; }
.acc-points { font: 400 clamp(56px, 6vw, 88px)/0.9 var(--f-sans); letter-spacing: -0.02em; margin: 0; font-variant-numeric: tabular-nums; }
.acc-points-label { margin: 10px 0 0; color: var(--on-wine-muted); }
.acc-level { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(251, 228, 227, 0.22); display: grid; gap: 4px; }
.acc-level p { margin: 0; }
.acc-level p + p { color: var(--on-wine-muted); font-size: 14px; }
/* Код из посылки выглядит как сама карточка: шоколадная, с тонкой внутренней рамкой */
.acc-code { grid-column: 2; grid-row: 1; padding: clamp(24px, 3vw, 36px); background: var(--night); color: var(--on-night); position: relative; }
.acc-code::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(255, 255, 255, 0.18); pointer-events: none; }
.acc-code h2 { color: var(--on-night); }
.acc-code p { margin: 0 0 18px; color: var(--on-night-2); }
.acc-code .input { background: transparent; border-color: rgba(246, 230, 226, 0.34); color: var(--on-night); }
.acc-code .input:focus { border-color: var(--on-night); box-shadow: inset 0 0 0 1px var(--on-night); }
.acc-code .btn { --bg: var(--blush); --fg: var(--night); --hv: var(--cream); position: relative; }
.acc-code .form-error { color: #f0a3aa; margin-top: 10px; }
.acc-code .ulink { color: var(--on-night); position: relative; }
.acc-code h2, .acc-orders h2, .acc-log h2, .acc-profile h2 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; position: relative; }
.acc-code-form { display: grid; grid-template-columns: 1fr auto; gap: 0; position: relative; }
/* карточка из посылки */
.qr-card { display: grid; gap: 14px; align-content: start; }
.qr-card p { margin: 0; }
.qr-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; position: relative; }
.qr-logo { display: block; font-size: 30px; color: var(--blush); }
.qr-icon { font-size: 46px; color: var(--on-night); opacity: 0.32; margin: -4px -4px 0 0; }
.qr-card h2 { margin: 0; }
.qr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; }
.qr-steps li { position: relative; padding-left: 22px; font-size: 15px; color: var(--on-night-2); }
.qr-steps li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--blush); }
.qr-steps a { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
.qr-note { color: var(--on-night-2); font-size: 14px; }
.acc-pitch .qr-card { margin-top: 36px; max-width: 480px; }
.acc-code-form .input { text-transform: uppercase; letter-spacing: 0.12em; }
.acc-code-form .btn { min-height: 52px; }
.acc-orders { grid-column: 1; margin-top: 32px; }
.acc-order { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.acc-order header { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.acc-order header b { font-size: 13px; font-weight: 400; color: var(--ink); }
.status { margin-left: auto; font: 500 13px/1 var(--f-sans); color: var(--ink); }
.status-done { color: var(--ok); }
.status-cancelled { color: var(--muted); text-decoration: line-through; }
.status-new, .status-confirmed, .status-paid, .status-shipped { color: var(--wine-ink); }
.acc-order-items { display: flex; gap: 8px; }
.acc-order-items img { width: 56px; aspect-ratio: 3 / 4; object-fit: cover; }
.acc-order footer { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-2); }
.acc-order footer small { display: block; text-align: right; color: var(--ok); font-size: 12px; }
.acc-reorder { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 0; font-size: 13px; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.acc-order footer > span:first-child { display: grid; justify-items: start; }
.acc-empty p { font-size: 13px; text-transform: uppercase; margin: 0 0 12px; }
.acc-log { grid-column: 2; margin-top: 32px; }
.acc-log ul { list-style: none; margin: 0; padding: 0; }
.acc-log li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.acc-log small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.acc-log .plus { color: var(--ok); font-weight: 500; }
.acc-log .minus { color: var(--muted); font-weight: 500; }
.acc-profile { grid-column: 1; margin-top: 32px; max-width: 520px; }
.acc-pass { margin-top: 28px; border-top: 1px solid var(--line); }
.acc-pass summary { cursor: pointer; padding: 16px 0; font-size: 15px; }
.acc-logout { margin-top: 28px; color: var(--muted); }

/* ================= планшет и телефон ================= */
@media (max-width: 1200px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .cat-tabs { gap: 0 18px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 6px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tabs a { padding: 12px 0; white-space: nowrap; }
  .cat-tabs a[data-c='sale'], .cat-tabs a[data-c='sale'][hidden] + a[data-c='archive'] { margin-left: 0; }

  /* фильтры на телефоне: кнопка и нижняя панель */
  .cat-tools { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); justify-content: space-between; padding: 10px 0; }
  .cat-filter-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; font-size: 11px; text-transform: uppercase; }
  .cat-filter-btn::before { content: ''; width: 14px; height: 9px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .cat-filter-n { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 9px; }
  .cat-sort-label { display: none; }
  .cat-search { flex: 1 1 100%; order: -1; }
  .cat-search input { height: 40px; font-size: 16px; text-transform: none; }
  .cat-search input::placeholder { color: var(--muted); }
  .dd-btn { height: 40px; }
  .dd-list [role='option'] { min-height: 44px; font-size: 12px; }
  .cat-scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(18, 18, 18, 0.3); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); }
  .cat-filters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; max-height: 82dvh; overflow-y: auto; overscroll-behavior: contain;
    display: grid; gap: 22px; align-items: start; padding: 0 var(--pad) calc(16px + env(safe-area-inset-bottom)); background: var(--paper);
    transform: translateY(102%); visibility: hidden; transition: transform 0.45s var(--ease), visibility 0s 0.45s;
  }
  .filters-open .cat-scrim { opacity: 1; pointer-events: auto; }
  .filters-open .cat-filters { transform: none; visibility: visible; transition: transform 0.45s var(--ease); }
  .cf-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); margin-right: -10px; }
  .cf-head b { font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; }
  .cf-group { display: grid; gap: 12px; }
  .cf-label { font-size: 11px; }
  .cf-size { min-width: 52px; height: 40px; font-size: 13px; }
  .cf-check { font-size: 11px; min-height: 44px; }
  .cf-check input { width: 18px; height: 18px; }
  .cf-reset { justify-self: start; font-size: 11px; }
  .cf-foot { display: block; position: sticky; bottom: 0; background: var(--paper); padding-top: 6px; }

  .co, .acc-auth, .acc-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-sticky, .co-summary { position: static; }
  .co-summary { order: -1; }
  .acc-balance, .acc-code, .acc-orders, .acc-log, .acc-profile { grid-column: 1; grid-row: auto; margin-top: 0; }
  .acc-print { display: none; }

  .pd-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
    transform: translateY(105%); transition: transform 0.4s var(--ease);
  }
  .pd-bar.show { transform: none; }
  .pd-bar b { display: block; font: 800 16px/1.1 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pd-bar span { font-size: 12px; color: var(--muted); }
  .pd-bar .btn { min-height: 46px; padding: 0 20px; }
}
@media (max-width: 760px) {
  .cat-grid, .catalog-grid, .recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
}
@media (max-width: 560px) {
  .co-grid { grid-template-columns: 1fr; }
  .acc-code-form { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 360px) {
  .cat-grid .card-name, .cat-grid .card-price { font-size: 12px; }
  .cat-tabs { gap: 0 14px; }
}
