/* ═══════════════════════════════════════════════════════════════
   ДИАНТУС — фирменный стиль
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg:            #f5efe4;
    --bg-soft:       #faf6ef;
    --bg-card:       #fffdf8;
    --bg-warm:       #ede4d3;
    --primary:       #4a6741;
    --primary-dark:  #35492f;
    --primary-light: #8ba38c;
    --primary-pale:  #d8e2d0;
    --primary-mist:  #ecf1e8;
    --accent:        #c97b4a;
    --accent-light:  #e0a878;
    --accent-pale:   #f4e2d2;
    --rose:          #c88a92;
    --rose-light:    #e5b8bd;
    --rose-pale:     #f4e0e3;
    --bronze:        #8c6d52;
    --bronze-light:  #b8997a;
    --bronze-pale:   #e8dcca;
    --text:          #2b2b2b;
    --text-muted:    #6e6a60;
    --text-soft:     #8a857a;
    --border:        #e5dcc9;
    --border-soft:   #efe7d5;
    --shadow-sm: 0 2px 8px  rgba(74, 103, 65, .06);
    --shadow-md: 0 8px 24px rgba(74, 103, 65, .08);
    --shadow-lg: 0 20px 40px rgba(74, 103, 65, .12);
}

* { box-sizing: border-box; }

body {
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI',
                 Roboto, sans-serif;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 12% 8%,  rgba(200, 138, 146, .10) 0, transparent 35%),
        radial-gradient(circle at 88% 92%, rgba(139, 163, 140, .10) 0, transparent 40%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, .brand {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: .2px;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

main { flex: 1; }

hr {
    border: none;
    border-top: 1px solid var(--border);
    opacity: 1;
}

/* ── БАННЕР ── */
.supply-banner {
    background: linear-gradient(90deg,
                var(--primary-dark) 0%,
                var(--primary) 50%,
                var(--bronze) 100%);
    color: #fff;
    padding: 12px 0;
    font-size: 14px;
    box-shadow: 0 2px 12px rgba(53, 73, 47, .25);
}
.supply-banner__icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px;
    animation: pulse 2s infinite ease-in-out;
}
.supply-banner__text { text-align: center; }
.supply-banner__text strong { color: #fff; font-weight: 600; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

/* ── КНОПКИ ── */
.btn-primary {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 30px;
    padding: 10px 26px;
    font-weight: 600;
    letter-spacing: .2px;
    box-shadow: 0 4px 14px rgba(74, 103, 65, .28);
    transition: all .25s ease;
}
.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(74, 103, 65, .38);
    color: #fff;
}
.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    padding: 8px 22px;
    font-weight: 600;
    background: transparent;
    transition: all .25s ease;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}
.btn-outline-secondary {
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    border-radius: 30px;
    background: var(--bg-card);
}
.btn-outline-secondary:hover {
    background: var(--bg-warm);
    color: var(--primary-dark);
    border-color: var(--bronze-light);
}
.btn-outline-success {
    border: 1.5px solid var(--primary-light);
    color: var(--primary);
    border-radius: 30px;
}
.btn-outline-success:hover {
    background: var(--primary-mist);
    color: var(--primary-dark);
}
.btn-outline-danger {
    border: 1.5px solid var(--rose);
    color: var(--rose);
    border-radius: 30px;
}
.btn-outline-danger:hover {
    background: var(--rose-pale);
    color: #a95f68;
}
.btn-outline-warning {
    border: 1.5px solid var(--accent-light);
    color: var(--accent);
    border-radius: 30px;
}
.btn-outline-warning:hover {
    background: var(--accent-pale);
    color: #a55f35;
}
.btn-success {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 30px;
}
.btn-success:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary {
    background: var(--text-soft);
    border: none;
    border-radius: 30px;
}
.btn-secondary:hover { background: var(--text-muted); }
.btn-link { color: var(--rose); text-decoration: none; }
.btn-link:hover { color: #a95f68; text-decoration: underline; }

/* ── КАРТОЧКИ ── */
.card {
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    transition: transform .3s ease, box-shadow .3s ease;
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* ── ФОРМЫ ── */
.form-control, .form-select {
    border-radius: 12px;
    border: 1.5px solid var(--border);
    padding: 10px 16px;
    background: var(--bg-card);
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: var(--text-soft); }
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 .2rem rgba(139, 163, 140, .22);
    background: #fff;
}
.form-label { color: var(--primary-dark); }
.form-text  { color: var(--text-soft); font-size: .8rem; }

/* ── УТИЛИТЫ ── */
.text-primary-custom { color: var(--primary) !important; }
.table thead th {
    background: var(--primary-mist);
    border: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.table > :not(caption) > * > * {
    border-bottom-color: var(--border-soft);
}
.alert { border: none; border-radius: 14px; }
.alert-info    { background: var(--primary-mist); color: var(--primary-dark); border-left: 3px solid var(--primary); }
.alert-warning { background: var(--accent-pale);  color: #8a5427;            border-left: 3px solid var(--accent); }
.alert-danger  { background: var(--rose-pale);    color: #97454e;            border-left: 3px solid var(--rose); }
.alert-success { background: var(--primary-pale); color: var(--primary-dark); border-left: 3px solid var(--primary); }

.badge.bg-secondary { background: var(--text-soft) !important; }
.badge.bg-success   { background: var(--primary) !important; }
.badge.bg-warning   { background: var(--accent) !important; }
.badge.bg-primary   { background: var(--bronze) !important; }
.badge.bg-danger    { background: var(--rose) !important; }
.badge.bg-dark      { background: var(--primary-dark) !important; }
.badge.bg-light     { background: var(--bg-warm) !important; color: var(--text) !important; }

/* ── ШАПКА ── */
.app-header {
    background: var(--bg-card);
    box-shadow: 0 2px 20px rgba(74, 103, 65, .08);
    padding: 14px 20px 10px;
    border-bottom: 1px solid var(--border-soft);
    position: relative;
}
.app-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--bronze-light) 50%, transparent 100%);
    opacity: .5;
}
.app-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.app-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    letter-spacing: .5px;
}
.app-logo:hover { color: var(--primary); }
.app-logo__icon {
    height: 46px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(74, 103, 65, .15));
}
.login-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 6px 16px rgba(74, 103, 65, .18));
}
.app-header__right { display: flex; gap: 8px; align-items: center; }
.app-header__icon {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    background: var(--primary-mist);
    position: relative;
    transition: background .2s, transform .2s, color .2s;
    border: 1px solid transparent;
}
.app-header__icon:hover {
    background: var(--primary-pale);
    color: var(--primary-dark);
    transform: translateY(-1px);
    border-color: var(--primary-light);
}
.app-header__badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--rose); color: #fff;
    font-size: .7rem; padding: 2px 6px; border-radius: 10px;
    border: 2px solid var(--bg-card);
    font-weight: 600;
}
.app-header__company {
    text-align: center;
    color: var(--text-muted);
    font-size: .82rem;
    margin-top: 6px;
    font-style: italic;
    letter-spacing: .3px;
}

/* ── НИЖНЯЯ НАВИГАЦИЯ ── */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg-card);
    display: flex; justify-content: space-around;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(74, 103, 65, .10);
    border-top: 1px solid var(--border-soft);
    z-index: 100;
}
.bottom-nav__item {
    color: var(--text-soft);
    text-decoration: none;
    display: flex; flex-direction: column; align-items: center;
    font-size: .72rem;
    padding: 4px 12px;
    position: relative;
    transition: color .2s;
}
.bottom-nav__item.active { color: var(--primary); }
.bottom-nav__item.active i { transform: scale(1.1); }
.bottom-nav__item i { transition: transform .2s; font-size: 1.1rem; margin-bottom: 2px; }
.bottom-nav__badge {
    position: absolute; top: 0; right: 4px;
    background: var(--rose); color: #fff;
    font-size: .65rem; padding: 1px 5px; border-radius: 8px;
    font-weight: 600;
}
.has-bottom-nav main { padding-bottom: 80px; }

/* ── ПОДВАЛ ── */
.app-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-soft);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    color: var(--text-soft);
    font-size: .85rem;
    font-style: italic;
    letter-spacing: .2px;
}
.app-footer::before {
    content: '❦';
    display: block;
    font-size: 1.6rem;
    color: var(--bronze-light);
    margin-bottom: 8px;
    opacity: .6;
}
.app-footer a { color: var(--primary); }

/* ── КАТАЛОГ ── */
.catalog-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 1rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-soft);
    position: relative;
}
.catalog-header::after {
    content: '';
    position: absolute; left: 0; bottom: -1px;
    width: 80px; height: 2px;
    background: var(--bronze);
}
.catalog-title { font-size: 2rem; margin: 0; }
.catalog-count {
    background: var(--primary-mist);
    color: var(--primary-dark);
    padding: 5px 14px;
    border-radius: 14px;
    font-weight: 600;
    font-size: .85rem;
    border: 1px solid var(--primary-pale);
}
.category-tabs {
    display: flex; gap: 8px; overflow-x: auto;
    padding-bottom: 8px; margin-bottom: 14px;
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
    padding: 7px 16px;
    background: var(--bg-card);
    border-radius: 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .85rem;
    white-space: nowrap;
    border: 1px solid var(--border);
    transition: all .2s;
}
.category-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary-dark);
    background: var(--primary-mist);
}
.category-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 3px 10px rgba(74, 103, 65, .25);
}
.level-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.level-tab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px;
    background: var(--bg-card);
    border-radius: 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .8rem;
    border: 1px solid var(--border);
    transition: all .2s;
}
.level-tab:hover { border-color: var(--primary-light); }
.level-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 3px 10px rgba(74, 103, 65, .25);
}
.level-tab__dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--text-soft);
    box-shadow: 0 0 0 2px rgba(0,0,0,.04);
}
.level-tab--big    .level-tab__dot { background: var(--primary); }
.level-tab--medium .level-tab__dot { background: var(--accent); }
.level-tab--small  .level-tab__dot { background: var(--bronze); }
.level-tab--out    .level-tab__dot { background: var(--text-soft); }
.level-tab__count {
    background: rgba(74, 103, 65, .08);
    padding: 0 7px;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 600;
}
.level-tab.active .level-tab__count {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}
.catalog-search { display: flex; gap: 8px; margin-bottom: 18px; }
.catalog-search__input { flex: 1; position: relative; }
.catalog-search__input i {
    position: absolute; left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--bronze-light);
    font-size: .95rem;
}
.catalog-search__input input {
    width: 100%;
    padding: 11px 44px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    transition: all .2s;
}
.catalog-search__input input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 .2rem rgba(139, 163, 140, .2);
}
.btn-clear {
    width: 46px; height: 46px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--rose);
    text-decoration: none;
    transition: all .2s;
}
.btn-clear:hover {
    background: var(--rose-pale);
    border-color: var(--rose-light);
    color: #a95f68;
}

/* ── КАРТОЧКА ТОВАРА ── */
.product-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.product-card {
    background: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
    display: flex; flex-direction: column;
    transition: transform .3s, box-shadow .3s;
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.product-card::before {
    content: '';
    position: absolute; top: 0; left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bronze-light), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.product-card:hover::before { opacity: 1; }
.product-card--out { opacity: .7; }
.product-card__image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--primary-mist) 100%);
    text-decoration: none;
}
.product-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.05); }
.product-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    color: var(--primary-light);
    opacity: .7;
}
.product-card__badge {
    position: absolute; top: 10px; right: 10px;
    padding: 4px 11px;
    border-radius: 12px;
    font-size: .72rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: .3px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.product-card__badge--out    { background: var(--text-soft); }
.product-card__badge--big    { background: var(--primary); }
.product-card__badge--medium { background: var(--accent); }
.product-card__badge--small  { background: var(--bronze); }
.product-card__body {
    padding: 14px;
    display: flex; flex-direction: column; gap: 7px;
}
.product-card__name {
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: .95rem;
    line-height: 1.35;
    font-family: 'Playfair Display', Georgia, serif;
}
.product-card__name:hover { color: var(--primary); }
.product-card__specs,
.product-detail__specs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
    font-size: .82rem;
}
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.spec-label {
    color: var(--text-soft);
    white-space: nowrap;
}
.spec-value {
    color: var(--text);
    font-weight: 600;
    text-align: right;
}
.spec-value--stock {
    color: var(--primary);
    font-weight: 700;
}
.product-card__price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 4px;
    font-family: 'Playfair Display', Georgia, serif;
}
.product-card__form { display: flex; gap: 6px; margin-top: 10px; }

.qty-control {
    display: flex; flex: 1; align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-soft);
}
.qty-control button {
    width: 32px; height: 36px;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 1.15rem;
    cursor: pointer;
    transition: background .2s;
}
.qty-control button:hover { background: var(--primary-mist); }
.qty-control input {
    flex: 1; width: 40px;
    text-align: center;
    border: none;
    padding: 0 4px;
    font-weight: 600;
    background: transparent;
    color: var(--text);
    -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
.btn-cart {
    width: 40px; height: 36px;
    border: none; border-radius: 10px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: #fff;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 3px 8px rgba(74, 103, 65, .25);
}
.btn-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(74, 103, 65, .35);
}
.btn-cart--disabled {
    padding: 8px 14px;
    background: var(--bg-warm);
    color: var(--text-soft);
    border: none;
    border-radius: 10px;
    cursor: not-allowed;
    font-size: .85rem;
}

/* ── ПАГИНАЦИЯ ── */
.pagination-nav {
    display: flex; justify-content: center; align-items: center;
    gap: 14px; margin-top: 28px;
}
.page-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all .2s;
}
.page-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}
.page-info {
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'Playfair Display', Georgia, serif;
}

/* ── ПУСТОЕ СОСТОЯНИЕ ── */
.empty-state {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state i {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 18px;
    opacity: .6;
}
.empty-state h4 {
    color: var(--primary-dark);
    font-family: 'Playfair Display', Georgia, serif;
}

/* ── ДЕТАЛЬНАЯ СТРАНИЦА ── */
.product-detail { max-width: 640px; margin: 0 auto; }
.product-detail__image {
    aspect-ratio: 1;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-warm), var(--primary-mist));
    margin-bottom: 22px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
}
.product-detail__image img {
    width: 100%; height: 100%; object-fit: cover;
}
.product-detail__name {
    font-size: 2rem;
    margin: 0 0 14px;
    color: var(--primary-dark);
}
.product-detail__price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    font-family: 'Playfair Display', Georgia, serif;
}
.product-detail__desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 16px 0;
    font-size: .95rem;
}
.product-detail__form {
    display: flex; gap: 10px; align-items: center; margin-top: 20px;
}
.qty-control--lg { height: 54px; }
.qty-control--lg button { width: 48px; height: 54px; font-size: 1.3rem; }
.qty-control--lg input  { font-size: 1.15rem; }

.back-link {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 18px;
    font-size: .9rem;
    transition: color .2s, transform .2s;
}
.back-link:hover { color: var(--primary-dark); transform: translateX(-3px); }
.back-link i { font-size: .8rem; }

.supply-hint {
    background: var(--primary-mist);
    color: var(--primary-dark);
    border-left: 3px solid var(--bronze);
    padding: 10px 14px;
    font-size: .85rem;
    border-radius: 8px;
}

/* ── КОРЗИНА ── */
.cart-items {
    display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px;
}
.cart-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-card);
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
}
.cart-item:hover { box-shadow: var(--shadow-md); }
.cart-item__image {
    width: 68px; height: 68px; border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-warm), var(--primary-mist));
    flex-shrink: 0;
}
.cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { flex: 1; }
.cart-item__name {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary-dark);
    font-family: 'Playfair Display', Georgia, serif;
}
.cart-item__price { font-size: .85rem; color: var(--text-muted); }
.cart-item__sum {
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
    font-family: 'Playfair Display', Georgia, serif;
}
.cart-item__stems {
    color: var(--text-soft);
    font-size: .78rem;
    margin-left: 6px;
}
.cart-item__remove {
    width: 34px; height: 34px;
    border: none;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s, color .2s;
}
.cart-item__remove:hover { background: var(--rose-pale); color: var(--rose); }

.cart-summary {
    background: var(--bg-card);
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}
.cart-summary__row {
    display: flex; justify-content: space-between;
    padding: 7px 0;
    font-size: .95rem;
    color: var(--text-muted);
}
.cart-summary__row--total {
    border-top: 1px dashed var(--border);
    padding-top: 14px;
    margin-top: 8px;
    font-size: 1.2rem;
    color: var(--text);
    align-items: baseline;
}
.cart-summary__row--total strong {
    color: var(--primary-dark);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
}
.cart-actions {
    display: flex; gap: 12px; justify-content: space-between;
}
.cart-actions .btn { flex: 1; }

/* ── ЗАКАЗЫ ── */
.orders-list { display: flex; flex-direction: column; gap: 14px; }
.order-card {
    background: var(--bg-card);
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.order-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.order-card::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--bronze-light), var(--bronze));
}
.order-card__head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.order-card__head strong {
    color: var(--primary-dark);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
}
.order-card__meta { font-size: .82rem; color: var(--text-soft); }
.order-card__sum {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 6px;
    font-family: 'Playfair Display', Georgia, serif;
}
.order-card__comment {
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
    font-style: italic;
}

/* ── PENDING ── */
.pending-card {
    background: var(--bg-card);
    border-radius: 22px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    padding: 64px 32px 54px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}
.pending-card::before,
.pending-card::after {
    content: '';
    position: absolute;
    width: 220px; height: 220px;
    border-radius: 50%;
    opacity: .08;
}
.pending-card::before { top: -60px; left: -60px; background: var(--rose); }
.pending-card::after  { bottom: -60px; right: -60px; background: var(--primary); }
.pending-icon {
    font-size: 100px;
    color: var(--bronze-light);
    line-height: 1;
    margin-bottom: 30px;
    position: relative; z-index: 1;
}
.pending-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 34px;
    color: var(--primary-dark);
    margin-bottom: 18px;
    position: relative; z-index: 1;
}
.pending-text {
    font-size: 16px;
    color: var(--text);
    max-width: 420px;
    margin: 0 auto 10px;
    position: relative; z-index: 1;
}
.pending-hint {
    font-size: 14px;
    color: var(--text-soft);
    max-width: 420px;
    margin: 0 auto;
    font-style: italic;
    position: relative; z-index: 1;
}

/* ── ПОДСКАЗКА ПОД СЧЁТЧИКОМ ── */
.qty-hint {
    display: block;
    font-size: .72rem;
    color: var(--text-soft);
    margin-top: 4px;
    text-align: center;
}
.qty-hint__packs {
    color: var(--primary);
    font-weight: 700;
}
.qty-hint strong {
    color: var(--primary);
}

/* ── ПРОФИЛЬ ── */
.profile-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.profile-stat i {
    font-size: 1.4rem;
    color: var(--bronze-light);
    margin-bottom: 8px;
}
.profile-stat__value {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-dark);
}
.profile-stat__label {
    font-size: .78rem;
    color: var(--text-soft);
    margin-top: 2px;
}

/* ── КОНТАКТЫ ── */
.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contacts-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
}
.contacts-item:last-child { border-bottom: none; }
.contacts-item > i {
    width: 42px; height: 42px;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--primary-mist);
    color: var(--primary);
    font-size: 1rem;
}
.contacts-item__label {
    font-size: .75rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}
.contacts-item__value {
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}
a.contacts-item__value:hover { color: var(--primary); }
.contacts-steps {
    padding-left: 20px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: .95rem;
}
.contacts-steps li::marker { color: var(--bronze); font-weight: 700; }

/* ── УВЕДОМЛЕНИЯ ── */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.notification-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-card);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: box-shadow .2s;
}
.notification-card:hover { box-shadow: var(--shadow-md); }
.notification-card--unread {
    border-left: 4px solid var(--primary);
    background: linear-gradient(90deg, var(--primary-mist) 0%, var(--bg-card) 30%);
}
.notification-card__icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--primary-mist);
    color: var(--primary);
    font-size: 1rem;
}
.notification-card__body { flex: 1; }
.notification-card__text {
    font-size: .95rem;
    color: var(--text);
    margin-bottom: 4px;
}
.notification-card__date {
    font-size: .78rem;
    color: var(--text-soft);
    font-style: italic;
}
.notification-card__remove {
    width: 30px; height: 30px;
    border: none;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s, color .2s;
}
.notification-card__remove:hover {
    background: var(--rose-pale);
    color: var(--rose);
}

/* ── НУМЕРАЦИЯ В ТАБЛИЦЕ ПОСТАВКИ ── */
.supply-items-table__num {
    width: 56px;
    text-align: center;
    padding-left: 8px !important;
    padding-right: 8px !important;
}
.supply-items-table__num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-mist);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: .82rem;
    border: 1px solid var(--primary-pale);
    font-family: 'Playfair Display', Georgia, serif;
}
.supply-items-table__stems {
    color: var(--primary);
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .supply-items-table th:nth-child(6),
    .supply-items-table td:nth-child(6) {
        display: none;
    }
}

/* ── КАРТА НА КОНТАКТАХ ── */
.map-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-warm);
    min-height: 360px;
}
.map-container iframe {
    width: 100%;
    height: 360px;
    border: none;
    display: block;
}
@media (max-width: 576px) {
    .map-container,
    .map-container iframe {
        min-height: 280px;
        height: 280px;
    }
}

/* ── МОБИЛЬНАЯ АДАПТАЦИЯ ── */
@media (max-width: 576px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card__body { padding: 10px; }
    .product-card__name { font-size: .85rem; }
    .product-card__price { font-size: 1rem; }
    .catalog-title { font-size: 1.5rem; }
    .app-logo { font-size: 1.3rem; gap: 8px; }
    .app-logo__icon { height: 34px; }
    .login-logo { max-width: 220px; }
    .product-detail__name { font-size: 1.5rem; }
    .product-detail__price { font-size: 1.5rem; }
    .profile-stat { padding: 14px; }
    .profile-stat__value { font-size: 1.2rem; }
}
/* ═══════════════════════════════════════════════════════════════
   НОВЫЙ ДИЗАЙН КАТАЛОГА (по референсу)
   ═══════════════════════════════════════════════════════════════ */

/* Верхняя панель */
.catalog-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
}
.catalog-top-bar .catalog-title {
    font-size: 1.6rem;
    margin: 0;
}

/* Горизонтальный скролл категорий */
.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 8px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}
.category-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.category-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s;
}
.category-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-dark);
    background: var(--primary-mist);
}
.category-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}

/* Сетка товаров */
.product-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr); /* Всегда 2 колонки на мобильных */
    margin-top: 16px;
}
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
    }
}

/* Карточка товара */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.product-card__image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f9f9f9;
    overflow: hidden;
}
.product-card__image {
    display: block;
    width: 100%;
    height: 100%;
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card__image img {
    transform: scale(1.04);
}
.product-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--primary-light); opacity: 0.6;
}

/* Кнопка "+" на картинке */
.quick-add-btn {
    position: absolute;
    top: 8px; left: 8px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    color: #333;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.2s;
    z-index: 2;
}
.quick-add-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Тело карточки */
.product-card__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card__name {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    color: #222;
    text-decoration: none;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__name:hover {
    color: var(--primary);
}

/* Характеристики */
.product-card__specs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}
.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #777;
}
.spec-label { color: #999; }
.spec-value { font-weight: 500; color: #333; text-align: right; }
.spec-value--stock { color: #2e7d32 !important; } /* Зеленый для наличия */

/* Блок цены */
.product-card__price-block {
    margin-top: auto;
    margin-bottom: 10px;
}
.product-card__price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
}
.product-card__price-sub {
    font-size: 0.7rem;
    color: #999;
    margin-top: -2px;
}

/* Форма добавления: количество + корзина */
.product-card__form {
    margin-top: auto;
}
.qty-cart-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f4f4f4;
    border-radius: 10px;
    padding: 3px;
}

/* Контрол количества */
.qty-cart-group .qty-control {
    display: flex;
    align-items: center;
    flex-grow: 1;
    background: transparent;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}
.qty-cart-group .qty-control button {
    width: 28px;
    height: 32px;
    border: none;
    background: transparent;
    color: #444;
    font-size: 1rem;
    cursor: pointer;
}
.qty-cart-group .qty-control button:hover {
    background: #e0e0e0;
}
.qty-cart-group .qty-control input {
    flex: 1;
    width: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.85rem;
    color: #222;
    -moz-appearance: textfield;
}
.qty-cart-group .qty-control input::-webkit-outer-spin-button,
.qty-cart-group .qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}

/* Зеленая кнопка корзины */
.btn-cart-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.btn-cart-icon:hover {
    background: var(--primary-dark);
}

/* Заглушка, если нельзя заказать */
.btn-cart--disabled {
    width: 100%;
    padding: 8px;
    background: #eee;
    color: #999;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: not-allowed;
}