/* ============================================================
   СтавИзба — Меню ресторана v1.1
   Точное воспроизведение стиля stavizba.ru
   Шрифты: Cormorant Garamond (заголовки) + PT Sans (текст)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=PT+Sans:ital,wght@0,400;0,700;1,400&display=swap');

/* ── CSS переменные — переопределяются из PHP/настроек ── */
.sivm-app {
    /* Цвета */
    --sivm-accent:        #7A1C1C;
    --sivm-accent-hover:  #8f2020;
    --sivm-accent-dark:   #5A1010;
    --sivm-gold:          #B8903A;
    --sivm-gold-light:    #d4ae5c;
    --sivm-cream:         #F5EFE6;
    --sivm-cream-mid:     #EDE5D8;
    --sivm-cream-dark:    #E0D4C0;
    --sivm-white:         #FFFFFF;
    --sivm-text:          #1E1008;
    --sivm-text-mid:      #4A2E1A;
    --sivm-text-light:    #8C6A4E;
    --sivm-text-muted:    #B09070;
    --sivm-border:        rgba(122,28,28,.13);
    --sivm-border-gold:   rgba(184,144,58,.35);
    --sivm-shadow-card:   0 1px 8px rgba(90,16,16,.08), 0 4px 18px rgba(90,16,16,.06);
    --sivm-shadow-hover:  0 4px 20px rgba(90,16,16,.16);

    /* Шрифты */
    --sivm-font-display:  'Cormorant Garamond', Georgia, serif;
    --sivm-font-body:     'PT Sans', Helvetica, sans-serif;

    /* Радиусы */
    --sivm-r-xs:  4px;
    --sivm-r-sm:  8px;
    --sivm-r-md:  12px;
    --sivm-r-lg:  16px;
    --sivm-r-xl:  24px;

    /* Применяем */
    font-family: var(--sivm-font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--sivm-text);
    background: var(--sivm-cream);
    position: relative;
    overflow: hidden;
    border-radius: var(--sivm-r-md);
    border: 1px solid var(--sivm-border);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sivm-app *, .sivm-app *::before, .sivm-app *::after {
    box-sizing: border-box; margin: 0; padding: 0;
}
.sivm-app .hidden { display: none !important; }

/* ================================================================
   TOP BAR
   ================================================================ */
.sivm-top-bar {
    background: var(--sivm-accent-dark);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 58px;
    border-bottom: 2px solid var(--sivm-gold);
}

/* ── Logo ── */
.sivm-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}
.sivm-logo-icon {
    color: var(--sivm-gold-light);
    flex-shrink: 0;
    opacity: .9;
}
.sivm-logo-name {
    display: block;
    font-family: var(--sivm-font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--sivm-gold-light);
    letter-spacing: .6px;
    line-height: 1.1;
}
.sivm-logo-sub {
    display: block;
    font-family: var(--sivm-font-body);
    font-size: 9px;
    color: rgba(212,174,92,.55);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 1px;
}

/* ── Mode toggle ── */
.sivm-mode-toggle {
    display: flex;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(212,174,92,.18);
    border-radius: var(--sivm-r-xl);
    padding: 3px;
    gap: 2px;
}
.sivm-mode-btn {
    padding: 6px 16px;
    border-radius: var(--sivm-r-xl);
    border: none;
    background: transparent;
    color: rgba(212,174,92,.65);
    font-family: var(--sivm-font-body);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    letter-spacing: .3px;
    line-height: 1.3;
}
.sivm-mode-btn.active {
    background: var(--sivm-gold);
    color: var(--sivm-accent-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.sivm-mode-btn:hover:not(.active) { color: var(--sivm-gold-light); }

/* ── Cart trigger ── */
.sivm-cart-trigger {
    position: relative;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(212,174,92,.25);
    border-radius: var(--sivm-r-xl);
    padding: 7px 16px;
    color: var(--sivm-gold-light);
    font-family: var(--sivm-font-body);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .2s;
    flex-shrink: 0;
    font-weight: 700;
}
.sivm-cart-trigger svg { flex-shrink: 0; }
.sivm-cart-trigger:hover { background: rgba(255,255,255,.15); }
.sivm-cart-sum { line-height: 1; }
.sivm-cart-count {
    background: var(--sivm-gold);
    color: var(--sivm-accent-dark);
    border-radius: var(--sivm-r-xl);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
    line-height: 1.6;
}

/* ================================================================
   TABLE BANNER
   ================================================================ */
.sivm-table-banner {
    background: var(--sivm-accent);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(184,144,58,.3);
}
.sivm-table-banner.hidden { display: none; }

.sivm-table-info { display: flex; align-items: center; gap: 14px; }
.sivm-table-num {
    background: var(--sivm-gold);
    color: var(--sivm-accent-dark);
    border-radius: var(--sivm-r-sm);
    padding: 5px 16px;
    font-family: var(--sivm-font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    min-width: 48px;
    text-align: center;
}
.sivm-table-info strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--sivm-font-display);
    letter-spacing: .3px;
}
.sivm-table-info span { color: rgba(255,255,255,.7); font-size: 12px; display: block; margin-top: 1px; }

.sivm-waiter-btn {
    background: var(--sivm-gold);
    color: var(--sivm-accent-dark);
    border: none;
    border-radius: var(--sivm-r-xl);
    padding: 10px 22px;
    font-family: var(--sivm-font-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .2px;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.sivm-waiter-btn:hover:not(:disabled) {
    background: var(--sivm-gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.28);
}
.sivm-waiter-btn:active { transform: translateY(0); }
.sivm-waiter-btn:disabled { opacity: .45; cursor: default; }

/* ================================================================
   CATEGORY NAV
   ================================================================ */
.sivm-cat-nav {
    background: var(--sivm-white);
    border-bottom: 1px solid var(--sivm-border);
    padding: 10px 16px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    align-items: center;
}
.sivm-cat-nav::-webkit-scrollbar { display: none; }

.sivm-cat-pill {
    flex-shrink: 0;
    padding: 7px 16px;
    border-radius: var(--sivm-r-xl);
    border: 1px solid var(--sivm-border);
    background: transparent;
    color: var(--sivm-text-mid);
    font-family: var(--sivm-font-body);
    font-size: 13px;
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    font-weight: 400;
}
.sivm-cat-pill:hover {
    border-color: var(--sivm-accent);
    color: var(--sivm-accent);
    background: rgba(122,28,28,.04);
}
.sivm-cat-pill.active {
    background: var(--sivm-accent);
    color: #fff;
    border-color: var(--sivm-accent);
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(122,28,28,.3);
}
.sivm-cat-img {
    width: 20px; height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* ================================================================
   SORT BAR
   ================================================================ */
.sivm-sort-bar {
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--sivm-border);
    background: var(--sivm-cream-mid);
    flex-wrap: wrap;
}
.sivm-count-label {
    font-size: 12px;
    color: var(--sivm-text-light);
    white-space: nowrap;
    font-family: var(--sivm-font-body);
}
.sivm-count-label strong { color: var(--sivm-text-mid); }

.sivm-sort-pills { display: flex; gap: 4px; }
.sivm-sort-pill {
    padding: 5px 14px;
    border-radius: var(--sivm-r-xl);
    border: 1px solid var(--sivm-border);
    background: var(--sivm-white);
    color: var(--sivm-text-mid);
    font-family: var(--sivm-font-body);
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all .15s ease;
    line-height: 1.4;
}
.sivm-sort-pill:hover { border-color: var(--sivm-accent); color: var(--sivm-accent); }
.sivm-sort-pill.active {
    background: var(--sivm-accent);
    color: #fff;
    border-color: var(--sivm-accent);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(122,28,28,.25);
}

/* ================================================================
   PRODUCT GRID
   ================================================================ */
.sivm-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--sivm-cream-dark) transparent;
    background: var(--sivm-cream);
}
.sivm-grid::-webkit-scrollbar       { width: 4px; }
.sivm-grid::-webkit-scrollbar-thumb { background: var(--sivm-cream-dark); border-radius: 4px; }

/* ── Product Card ── */
.sivm-card {
    background: var(--sivm-white);
    border-radius: var(--sivm-r-md);
    border: 1px solid rgba(122,28,28,.09);
    overflow: hidden;
    transition: border-color .22s, box-shadow .22s, transform .22s;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sivm-shadow-card);
}
.sivm-card:hover {
    border-color: rgba(122,28,28,.25);
    box-shadow: var(--sivm-shadow-hover);
    transform: translateY(-3px);
}
.sivm-card:focus-visible {
    outline: 2px solid var(--sivm-accent);
    outline-offset: 2px;
}

/* Image */
.sivm-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 66%;
    overflow: hidden;
    background: var(--sivm-cream-mid);
}
.sivm-card-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.sivm-card:hover .sivm-card-img { transform: scale(1.06); }
.sivm-card-img-placeholder {
    position: absolute; inset: 0;
    background: var(--sivm-cream-mid);
    display: flex; align-items: center; justify-content: center;
    font-size: 38px;
}

/* Badges */
.sivm-badge {
    position: absolute;
    top: 7px; left: 7px;
    font-family: var(--sivm-font-body);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: var(--sivm-r-xs);
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    z-index: 2;
    line-height: 1.4;
}
.sivm-badge--sale     { background: var(--sivm-accent); color: #fff; }
.sivm-badge--featured { background: var(--sivm-gold);   color: var(--sivm-accent-dark); }
.sivm-badge--new      { background: #1a6e38;            color: #fff; }

/* Out of stock */
.sivm-card--oos .sivm-card-img-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(245,239,230,.7);
    z-index: 1;
}
.sivm-oos-label {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    background: rgba(90,16,16,.85);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--sivm-r-xl);
    white-space: nowrap;
    z-index: 3;
    letter-spacing: .4px;
    text-transform: uppercase;
}

/* Body */
.sivm-card-body {
    padding: 10px 11px 11px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sivm-card-name {
    font-family: var(--sivm-font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--sivm-text);
    line-height: 1.3;
}
.sivm-card-desc {
    font-size: 11px;
    color: var(--sivm-text-light);
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sivm-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 6px;
}
.sivm-card-price {
    font-family: var(--sivm-font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--sivm-accent);
    line-height: 1;
    letter-spacing: .2px;
}
.sivm-card-price del {
    font-family: var(--sivm-font-body);
    font-size: 11px;
    color: var(--sivm-text-muted);
    font-weight: 400;
    text-decoration: line-through;
    margin-left: 4px;
}

/* Add button */
.sivm-add-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--sivm-accent);
    color: #fff;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .15s, box-shadow .15s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(122,28,28,.35);
    font-weight: 300;
}
.sivm-add-btn:hover:not(:disabled) {
    background: var(--sivm-accent-hover);
    transform: scale(1.12);
    box-shadow: 0 3px 12px rgba(122,28,28,.45);
}
.sivm-add-btn:active { transform: scale(.92); }
.sivm-add-btn:disabled { background: var(--sivm-cream-dark); color: var(--sivm-text-muted); cursor: default; box-shadow: none; }

/* Qty control */
.sivm-qty-ctrl { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.sivm-qty-btn {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--sivm-cream-mid);
    color: var(--sivm-accent);
    border: 1.5px solid var(--sivm-border);
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s ease;
    flex-shrink: 0;
    line-height: 1;
    font-weight: 700;
}
.sivm-qty-btn:hover {
    background: var(--sivm-accent);
    color: #fff;
    border-color: var(--sivm-accent);
}
.sivm-qty-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--sivm-text);
    min-width: 20px;
    text-align: center;
    font-family: var(--sivm-font-display);
}

/* Loader */
.sivm-loader {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 50px;
}
.sivm-loader-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--sivm-accent);
    opacity: .4;
    animation: sivm-bounce .9s ease infinite;
}
.sivm-loader-dot:nth-child(2) { animation-delay: .18s; }
.sivm-loader-dot:nth-child(3) { animation-delay: .36s; }
@keyframes sivm-bounce {
    0%,80%,100% { transform: translateY(0); opacity: .3; }
    40%         { transform: translateY(-14px); opacity: 1; }
}

/* Load more */
.sivm-load-more-wrap { padding: 12px 16px 16px; text-align: center; background: var(--sivm-cream); }
.sivm-load-more {
    background: transparent;
    border: 1.5px solid var(--sivm-accent);
    color: var(--sivm-accent);
    padding: 10px 32px;
    border-radius: var(--sivm-r-xl);
    font-family: var(--sivm-font-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    letter-spacing: .3px;
}
.sivm-load-more:hover { background: var(--sivm-accent); color: #fff; }

/* ================================================================
   CART PANEL
   ================================================================ */
.sivm-cart-panel {
    position: absolute;
    inset: 0;
    background: var(--sivm-cream);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    z-index: 50;
}
.sivm-cart-panel.open { transform: translateX(0); }

.sivm-cart-header {
    background: var(--sivm-accent-dark);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom: 2px solid var(--sivm-gold);
}
.sivm-cart-title {
    font-family: var(--sivm-font-display);
    color: var(--sivm-gold-light);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .4px;
}
.sivm-cart-close {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(212,174,92,.2);
    color: var(--sivm-gold-light);
    border-radius: 50%;
    width: 32px; height: 32px;
    font-size: 15px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
    line-height: 1;
}
.sivm-cart-close:hover { background: rgba(255,255,255,.2); }

.sivm-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
}
.sivm-empty-cart {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--sivm-text-muted);
    padding: 40px 0;
    text-align: center;
}
.sivm-empty-icon { font-size: 48px; opacity: .35; }
.sivm-empty-cart p { font-size: 14px; font-family: var(--sivm-font-display); font-style: italic; }

/* Cart item */
.sivm-cart-item {
    background: var(--sivm-white);
    border-radius: var(--sivm-r-sm);
    border: 1px solid var(--sivm-border);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: sivm-slide-up .2s ease;
}
@keyframes sivm-slide-up {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}
.sivm-ci-img {
    width: 46px; height: 46px;
    border-radius: var(--sivm-r-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.sivm-ci-placeholder {
    width: 46px; height: 46px;
    border-radius: var(--sivm-r-sm);
    background: var(--sivm-cream-mid);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.sivm-ci-info { flex: 1; min-width: 0; }
.sivm-ci-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--sivm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sivm-ci-price {
    font-size: 12px;
    color: var(--sivm-accent);
    font-weight: 700;
    margin-top: 2px;
    font-family: var(--sivm-font-display);
}

/* Promo */
.sivm-promo-row { padding: 0 12px 8px; flex-shrink: 0; }
.sivm-promo-wrap { display: flex; gap: 6px; }
.sivm-promo-input {
    flex: 1;
    padding: 9px 14px;
    border: 1.5px solid var(--sivm-border);
    border-radius: var(--sivm-r-xl);
    font-family: var(--sivm-font-body);
    font-size: 13px;
    color: var(--sivm-text);
    background: var(--sivm-white);
    outline: none;
    transition: border-color .2s;
}
.sivm-promo-input:focus { border-color: var(--sivm-accent); }
.sivm-promo-input::placeholder { color: var(--sivm-text-muted); }
.sivm-promo-apply {
    background: var(--sivm-cream-dark);
    border: 1.5px solid var(--sivm-border);
    border-radius: var(--sivm-r-xl);
    padding: 9px 16px;
    font-size: 13px;
    color: var(--sivm-accent);
    cursor: pointer;
    font-weight: 700;
    transition: all .15s ease;
    white-space: nowrap;
    font-family: var(--sivm-font-body);
}
.sivm-promo-apply:hover { background: var(--sivm-accent); color: #fff; border-color: var(--sivm-accent); }
.sivm-promo-msg { font-size: 12px; margin-top: 5px; padding: 0 4px; min-height: 18px; }
.sivm-promo-msg.ok   { color: #1a6e38; }
.sivm-promo-msg.fail { color: var(--sivm-accent); }

/* Cart footer */
.sivm-cart-footer {
    background: var(--sivm-white);
    border-top: 1px solid var(--sivm-border);
    padding: 14px 18px;
    flex-shrink: 0;
}
.sivm-totals { margin-bottom: 12px; }
.sivm-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: var(--sivm-text-mid);
    font-family: var(--sivm-font-body);
}
.sivm-total-row.main {
    border-top: 1px solid var(--sivm-border);
    margin-top: 8px;
    padding-top: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--sivm-text);
    font-family: var(--sivm-font-display);
}
.sivm-total-row.main .sivm-tv {
    color: var(--sivm-accent);
}

.sivm-order-btn {
    width: 100%;
    padding: 14px;
    background: var(--sivm-accent);
    color: #fff;
    border: none;
    border-radius: var(--sivm-r-xl);
    font-family: var(--sivm-font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    letter-spacing: .4px;
    box-shadow: 0 4px 16px rgba(122,28,28,.35);
}
.sivm-order-btn:hover {
    background: var(--sivm-accent-hover);
    box-shadow: 0 6px 20px rgba(122,28,28,.45);
}
.sivm-order-btn:active { transform: scale(.98); }

.sivm-table-foot-note {
    text-align: center;
    font-size: 11px;
    color: var(--sivm-text-light);
    margin-top: 10px;
    padding: 7px 10px;
    background: var(--sivm-cream-mid);
    border-radius: var(--sivm-r-sm);
    line-height: 1.4;
    border: 1px solid var(--sivm-border);
}

/* ================================================================
   WAITER MODAL
   ================================================================ */
.sivm-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(30,16,8,.6);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sivm-fade .2s ease;
    backdrop-filter: blur(2px);
}
.sivm-modal-overlay[hidden] { display: none; }
@keyframes sivm-fade { from { opacity: 0; } to { opacity: 1; } }

.sivm-modal {
    background: var(--sivm-cream);
    border-radius: var(--sivm-r-lg);
    padding: 32px 28px;
    width: 300px;
    text-align: center;
    border: 2px solid var(--sivm-gold);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    animation: sivm-modal-in .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes sivm-modal-in {
    from { transform: scale(.85); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.sivm-modal-icon  { font-size: 44px; margin-bottom: 14px; }
.sivm-modal-title {
    font-family: var(--sivm-font-display);
    font-size: 22px;
    color: var(--sivm-accent-dark);
    margin-bottom: 10px;
    font-weight: 700;
}
.sivm-modal-text {
    font-size: 14px;
    color: var(--sivm-text-mid);
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: var(--sivm-font-body);
}
.sivm-modal-ok {
    background: var(--sivm-accent);
    color: #fff;
    border: none;
    border-radius: var(--sivm-r-xl);
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--sivm-font-body);
    transition: background .15s;
    box-shadow: 0 4px 14px rgba(122,28,28,.4);
    letter-spacing: .4px;
}
.sivm-modal-ok:hover { background: var(--sivm-accent-hover); }

/* ================================================================
   TOAST
   ================================================================ */
.sivm-toast {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(70px);
    background: var(--sivm-accent-dark);
    color: var(--sivm-gold-light);
    padding: 10px 24px;
    border-radius: var(--sivm-r-xl);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--sivm-border-gold);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 200;
    white-space: nowrap;
    pointer-events: none;
    max-width: calc(100% - 32px);
    text-align: center;
    font-family: var(--sivm-font-body);
    letter-spacing: .2px;
}
.sivm-toast.show { transform: translateX(-50%) translateY(0); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 500px) {
    .sivm-top-bar    { padding: 0 12px; height: 54px; }
    .sivm-logo-name  { font-size: 17px; }
    .sivm-logo-sub   { display: none; }
    .sivm-mode-toggle { order: 3; width: 100%; justify-content: center; }
    .sivm-grid       { grid-template-columns: repeat(2, 1fr); max-height: 400px; padding: 12px; }
    .sivm-modal      { width: calc(100% - 28px); }
    .sivm-sort-bar   { padding: 8px 12px; }
    .sivm-waiter-btn { padding: 8px 14px; font-size: 12px; }
}

@media (max-width: 360px) {
    .sivm-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   PREMIUM STAVIZBA THEME — тёплая русская изба + ресторанный люкс
   Добавлено поверх базовых стилей. Без внешних изображений, только CSS.
   ============================================================ */
.sivm-app {
    --sivm-accent: #7f1f22;
    --sivm-accent-hover: #9a272b;
    --sivm-accent-dark: #3b0d0e;
    --sivm-gold: #c8a052;
    --sivm-gold-light: #f1d48a;
    --sivm-cream: #f8f1e5;
    --sivm-cream-mid: #efe1cc;
    --sivm-cream-dark: #dcc6a6;
    --sivm-text: #201109;
    --sivm-text-mid: #4e321e;
    --sivm-text-light: #856142;
    --sivm-border: rgba(76, 22, 11, .12);
    --sivm-border-gold: rgba(200, 160, 82, .48);
    --sivm-shadow-card: 0 18px 46px rgba(61, 22, 8, .10), 0 2px 0 rgba(255,255,255,.55) inset;
    --sivm-shadow-hover: 0 26px 70px rgba(61, 22, 8, .18), 0 0 0 1px rgba(200,160,82,.26);
    isolation: isolate;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(200,160,82,.38);
    background:
        radial-gradient(circle at 16% -10%, rgba(245, 211, 139, .38), transparent 34%),
        radial-gradient(circle at 105% 12%, rgba(127, 31, 34, .16), transparent 30%),
        linear-gradient(135deg, #fff8ea 0%, #f7eddc 45%, #ead8bc 100%);
    box-shadow: 0 30px 90px rgba(48, 17, 8, .16), 0 1px 0 rgba(255,255,255,.82) inset;
}
.sivm-app::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .42;
    background-image:
        linear-gradient(90deg, rgba(73,36,16,.055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(73,36,16,.04) 1px, transparent 1px),
        radial-gradient(circle at 24px 24px, rgba(127,31,34,.06) 1.5px, transparent 2px);
    background-size: 32px 32px, 32px 32px, 48px 48px;
}
.sivm-app::after {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(200,160,82,.22);
    border-radius: 20px;
}

.sivm-top-bar {
    height: 74px;
    padding: 0 26px;
    border-bottom: 1px solid rgba(241,212,138,.5);
    background:
        linear-gradient(90deg, rgba(59,13,14,.98), rgba(126,31,34,.96) 46%, rgba(59,13,14,.98)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 22px);
    box-shadow: 0 16px 40px rgba(59,13,14,.22), inset 0 -1px 0 rgba(255,255,255,.12);
    position: relative;
}
.sivm-top-bar::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 6px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(241,212,138,.78), transparent);
}
.sivm-logo { gap: 14px; }
.sivm-logo-icon {
    width: 36px;
    height: 36px;
    padding: 6px;
    color: var(--sivm-gold-light);
    border: 1px solid rgba(241,212,138,.38);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241,212,138,.18), rgba(0,0,0,.12));
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.25));
}
.sivm-logo-name {
    font-size: 28px;
    letter-spacing: 1px;
    color: #ffe2a0;
    text-shadow: 0 2px 16px rgba(0,0,0,.32);
}
.sivm-logo-sub {
    color: rgba(255,231,174,.78);
    letter-spacing: 2.8px;
    font-size: 10px;
}

.sivm-mode-toggle,
.sivm-cart-trigger {
    background: rgba(32, 9, 9, .34);
    border: 1px solid rgba(241,212,138,.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 10px 24px rgba(0,0,0,.18);
    backdrop-filter: blur(8px);
}
.sivm-mode-btn { padding: 9px 19px; color: rgba(255,231,174,.74); }
.sivm-mode-btn.active {
    background: linear-gradient(180deg, #f3d58c, #c49a43);
    color: #3b0d0e;
    box-shadow: 0 8px 20px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.45);
}
.sivm-cart-trigger {
    padding: 10px 18px;
    color: #ffe2a0;
    border-radius: 999px;
}
.sivm-cart-trigger:hover { transform: translateY(-1px); background: rgba(255,255,255,.13); }
.sivm-cart-count {
    background: linear-gradient(180deg, #f3d58c, #bd8e34);
    box-shadow: 0 4px 10px rgba(0,0,0,.22);
}

.sivm-table-banner {
    padding: 14px 26px;
    background: linear-gradient(90deg, #8a2427, #641618);
    border-bottom: 1px solid rgba(241,212,138,.38);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.sivm-table-num,
.sivm-waiter-btn,
.sivm-load-more,
.sivm-order-btn,
.sivm-modal-ok {
    background: linear-gradient(180deg, #f2d48a 0%, #c69b43 55%, #ad7e28 100%);
    color: #3b0d0e;
    border: 1px solid rgba(255,238,180,.5);
    box-shadow: 0 12px 26px rgba(74,30,10,.22), inset 0 1px 0 rgba(255,255,255,.5);
    text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.sivm-waiter-btn:hover:not(:disabled),
.sivm-load-more:hover,
.sivm-order-btn:hover,
.sivm-modal-ok:hover {
    color: #2c090a;
    filter: brightness(1.04);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(74,30,10,.28), inset 0 1px 0 rgba(255,255,255,.55);
}

.sivm-cat-nav {
    padding: 18px 24px 15px;
    background: linear-gradient(180deg, rgba(255,248,234,.92), rgba(239,225,204,.78));
    border-bottom: 1px solid rgba(200,160,82,.25);
    gap: 10px;
}
.sivm-cat-pill,
.sivm-sort-pill {
    border: 1px solid rgba(200,160,82,.32);
    background: rgba(255,255,255,.58);
    color: var(--sivm-text-mid);
    box-shadow: 0 6px 18px rgba(72, 31, 13, .06), inset 0 1px 0 rgba(255,255,255,.7);
}
.sivm-cat-pill:hover,
.sivm-sort-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(127,31,34,.38);
    background: #fffaf0;
}
.sivm-cat-pill.active,
.sivm-sort-pill.active {
    color: #fff8e7;
    border-color: rgba(241,212,138,.45);
    background: linear-gradient(180deg, #8f2529, #5c1416);
    box-shadow: 0 10px 24px rgba(95,20,22,.22), inset 0 1px 0 rgba(255,255,255,.12);
}
.sivm-cat-img {
    border: 1px solid rgba(200,160,82,.42);
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.sivm-sort-bar {
    padding: 14px 24px;
    background: rgba(255,250,240,.62);
    border-bottom: 1px solid rgba(200,160,82,.18);
}
.sivm-count-label {
    color: #694527;
    letter-spacing: .2px;
}

.sivm-grid {
    padding: 22px;
    gap: 18px;
    background: transparent;
}
.sivm-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(200,160,82,.26);
    background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,248,234,.9)),
        linear-gradient(135deg, rgba(200,160,82,.18), transparent 40%);
    box-shadow: var(--sivm-shadow-card);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.sivm-card::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
    z-index: 2;
    pointer-events: none;
}
.sivm-card:hover {
    transform: translateY(-6px);
    border-color: rgba(200,160,82,.55);
    box-shadow: var(--sivm-shadow-hover);
}
.sivm-card-img-wrap {
    height: 168px;
    background: radial-gradient(circle at 50% 22%, #fff5df, #dec39b);
}
.sivm-card-img-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(32,17,9,.34));
    opacity: .78;
}
.sivm-card-img { filter: saturate(1.06) contrast(1.04); }
.sivm-card-img-placeholder {
    background:
        radial-gradient(circle at center, rgba(255,255,255,.36), transparent 52%),
        linear-gradient(135deg, #ead7b7, #b98b46);
    color: rgba(72, 31, 13, .38);
    font-size: 44px;
}
.sivm-badge {
    z-index: 3;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    letter-spacing: .9px;
    border: 1px solid rgba(255,255,255,.42);
    box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.sivm-badge--sale,
.sivm-badge--featured,
.sivm-badge--new {
    background: linear-gradient(180deg, #f2d48a, #bd8e34);
    color: #3b0d0e;
}
.sivm-card-body { padding: 18px 17px 17px; }
.sivm-card-name {
    font-size: 21px;
    line-height: 1.05;
    color: #35160d;
    letter-spacing: .15px;
}
.sivm-card-name::after {
    content: "";
    display: block;
    width: 46px;
    height: 1px;
    margin-top: 9px;
    background: linear-gradient(90deg, rgba(200,160,82,.85), transparent);
}
.sivm-card-desc {
    margin-top: 10px;
    font-size: 13.5px;
    color: #765437;
    line-height: 1.52;
}
.sivm-card-bottom { margin-top: 16px; }
.sivm-card-price {
    font-size: 23px;
    color: #7f1f22;
    text-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.sivm-add-btn,
.sivm-qty-btn {
    background: linear-gradient(180deg, #8f2529, #5c1416);
    color: #ffe2a0;
    border: 1px solid rgba(241,212,138,.28);
    box-shadow: 0 10px 20px rgba(95,20,22,.25), inset 0 1px 0 rgba(255,255,255,.1);
}
.sivm-add-btn:hover:not(:disabled),
.sivm-qty-btn:hover {
    background: linear-gradient(180deg, #a72d31, #721a1d);
    color: #fff4d4;
    transform: translateY(-1px) scale(1.03);
}
.sivm-qty-num {
    min-width: 24px;
    color: #35160d;
    font-weight: 800;
}

.sivm-cart-panel {
    background:
        radial-gradient(circle at 0 0, rgba(241,212,138,.28), transparent 34%),
        linear-gradient(180deg, #fff9ee, #efe0c7);
    border-left: 1px solid rgba(200,160,82,.42);
    box-shadow: -28px 0 70px rgba(32,17,9,.24);
}
.sivm-cart-header {
    background: linear-gradient(90deg, #3b0d0e, #7f1f22);
    border-bottom: 1px solid rgba(241,212,138,.4);
}
.sivm-cart-title { color: #ffe2a0; font-size: 22px; }
.sivm-cart-close { color: #ffe2a0; }
.sivm-cart-item,
.sivm-promo-input,
.sivm-promo-apply,
.sivm-table-foot-note,
.sivm-total-row.main {
    border-color: rgba(200,160,82,.28);
    background: rgba(255,255,255,.56);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}
.sivm-ci-img,
.sivm-ci-placeholder {
    border-radius: 14px;
    border: 1px solid rgba(200,160,82,.24);
}
.sivm-total-row.main .sivm-tv { color: #7f1f22; }

.sivm-modal {
    background:
        radial-gradient(circle at 50% -20%, rgba(241,212,138,.36), transparent 42%),
        linear-gradient(180deg, #fff9ee, #efe0c7);
    border: 1px solid rgba(200,160,82,.68);
    border-radius: 26px;
}
.sivm-toast {
    background: linear-gradient(90deg, #3b0d0e, #7f1f22);
    color: #ffe2a0;
    border-color: rgba(241,212,138,.48);
    box-shadow: 0 18px 45px rgba(32,17,9,.32);
}

@media (max-width: 720px) {
    .sivm-top-bar { height: auto; min-height: 68px; flex-wrap: wrap; padding: 14px; }
    .sivm-logo-name { font-size: 24px; }
    .sivm-mode-toggle { order: 3; width: 100%; }
    .sivm-mode-btn { flex: 1; padding: 10px 8px; }
    .sivm-cart-trigger { margin-left: auto; }
    .sivm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px; max-height: none; }
    .sivm-card-img-wrap { height: 142px; }
    .sivm-card-name { font-size: 18px; }
    .sivm-card-price { font-size: 20px; }
    .sivm-sort-bar { align-items: flex-start; gap: 10px; }
    .sivm-sort-pills { width: 100%; overflow-x: auto; padding-bottom: 2px; }
}
@media (max-width: 420px) {
    .sivm-app { border-radius: 18px; }
    .sivm-grid { grid-template-columns: 1fr; }
    .sivm-card-img-wrap { height: 180px; }
    .sivm-logo-icon { width: 32px; height: 32px; }
    .sivm-logo-name { font-size: 22px; }
    .sivm-cart-panel { width: 100%; }
}

/* ============================================================
   v1.3 — IMPERIAL FULL WIDTH THEME
   Дорогой русский ресторан: цельная секция на всю ширину сайта,
   без ощущения «виджета в рамке».
   ============================================================ */
.sivm-app {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 1px solid rgba(191, 150, 75, .28) !important;
    border-bottom: 1px solid rgba(191, 150, 75, .28) !important;
    min-height: 720px;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 4%, rgba(255, 224, 154, .33), transparent 31%),
        radial-gradient(circle at 88% 3%, rgba(126, 31, 34, .18), transparent 27%),
        linear-gradient(180deg, #f5ecdf 0%, #fff9ef 22%, #efe0c7 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 28px 90px rgba(72, 31, 13, .13) !important;
}
.sivm-app::after {
    inset: 18px clamp(18px, 3vw, 54px) !important;
    border-radius: 0 !important;
    border-color: rgba(191,150,75,.22) !important;
}
.sivm-top-bar,
.sivm-table-banner,
.sivm-cat-nav,
.sivm-sort-bar,
.sivm-grid,
.sivm-load-more-wrap {
    padding-left: clamp(24px, 6vw, 112px) !important;
    padding-right: clamp(24px, 6vw, 112px) !important;
}
.sivm-top-bar {
    height: 88px !important;
    background:
        linear-gradient(90deg, #260708 0%, #6f171b 38%, #8e2227 50%, #6f171b 62%, #260708 100%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.065) 0 1px, transparent 1px 28px) !important;
}
.sivm-top-bar::before {
    content: "";
    position: absolute;
    left: clamp(24px, 6vw, 112px);
    right: clamp(24px, 6vw, 112px);
    top: 9px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,228,160,.72), transparent);
}
.sivm-logo-name {
    font-size: clamp(30px, 2.7vw, 46px) !important;
    font-weight: 700 !important;
    color: #ffe1a0 !important;
}
.sivm-logo-sub {
    font-size: 11px !important;
    color: rgba(255,229,171,.78) !important;
}
.sivm-cat-nav {
    padding-top: 24px !important;
    padding-bottom: 18px !important;
    background:
        linear-gradient(180deg, rgba(255,248,235,.92), rgba(239,224,199,.88)),
        repeating-linear-gradient(45deg, rgba(126,31,34,.025) 0 8px, transparent 8px 16px) !important;
}
.sivm-cat-pill,
.sivm-sort-pill {
    border-radius: 999px !important;
    background: rgba(255, 252, 245, .78) !important;
    border-color: rgba(184, 136, 52, .36) !important;
}
.sivm-cat-pill.active,
.sivm-sort-pill.active {
    background: linear-gradient(180deg, #941f25, #5b1114) !important;
    color: #fff2cf !important;
    border-color: rgba(255,225,160,.48) !important;
}
.sivm-sort-bar {
    background: rgba(255,250,241,.76) !important;
}
.sivm-grid {
    max-height: none !important;
    overflow: visible !important;
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)) !important;
    gap: clamp(20px, 2vw, 34px) !important;
    padding-top: 32px !important;
    padding-bottom: 54px !important;
}
.sivm-card {
    border-radius: 28px !important;
    min-height: 470px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,247,232,.92)),
        radial-gradient(circle at 50% -15%, rgba(210,164,78,.22), transparent 46%) !important;
    border: 1px solid rgba(184, 136, 52, .34) !important;
    box-shadow: 0 22px 58px rgba(65, 25, 9, .12), inset 0 1px 0 rgba(255,255,255,.82) !important;
}
.sivm-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 34px 90px rgba(65, 25, 9, .21), 0 0 0 1px rgba(198,154,67,.36) !important;
}
.sivm-card-img-wrap {
    height: 240px !important;
    padding-top: 0 !important;
}
.sivm-card-body {
    padding: 22px 22px 20px !important;
}
.sivm-card-name {
    font-family: var(--sivm-font-display) !important;
    font-size: 28px !important;
    line-height: .98 !important;
    font-weight: 700 !important;
    color: #2b1109 !important;
}
.sivm-card-desc {
    font-size: 15px !important;
    color: #725035 !important;
}
.sivm-card-price {
    font-size: 27px !important;
    color: #8a1f23 !important;
}
.sivm-add-btn,
.sivm-qty-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
}
.sivm-load-more-wrap {
    padding-bottom: 64px !important;
}
.sivm-cart-panel {
    right: clamp(24px, 6vw, 112px) !important;
    left: auto !important;
    width: min(440px, calc(100vw - 32px)) !important;
    height: calc(100% - 36px) !important;
    top: 18px !important;
    border-radius: 28px !important;
    border: 1px solid rgba(198,154,67,.45) !important;
    overflow: hidden !important;
}
@media (min-width: 1500px) {
    .sivm-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important; }
}
@media (max-width: 920px) {
    .sivm-top-bar { height: auto !important; }
    .sivm-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
    .sivm-card { min-height: 0; }
    .sivm-card-img-wrap { height: 190px !important; }
}
@media (max-width: 520px) {
    .sivm-app {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .sivm-grid { grid-template-columns: 1fr !important; }
    .sivm-card-img-wrap { height: 220px !important; }
    .sivm-cart-panel { inset: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; }
}

/* ============================================================
   v1.4 — SITE-INTEGRATED PREMIUM THEME
   Мягко встраивает меню в текущую шапку stavizba.ru: светлый фон,
   бордовые акценты, без тяжёлой отдельной полосы и без боковой
   корзины, торчащей из макета.
   ============================================================ */
.sivm-app {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    min-height: 720px;
    overflow: visible !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(179, 57, 39, .08), transparent 34%),
        radial-gradient(circle at 86% 10%, rgba(202, 160, 93, .18), transparent 30%),
        linear-gradient(180deg, #f5eee8 0%, #fbf5ec 31%, #f3e7d6 100%) !important;
    box-shadow: none !important;
}
.sivm-app::before { opacity: .18 !important; }
.sivm-app::after { display: none !important; }

.sivm-top-bar,
.sivm-table-banner,
.sivm-cat-nav,
.sivm-sort-bar,
.sivm-grid,
.sivm-load-more-wrap {
    padding-left: clamp(36px, 7vw, 118px) !important;
    padding-right: clamp(36px, 7vw, 118px) !important;
}

/* Верх плагина теперь продолжает сайт, а не спорит с его меню */
.sivm-top-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto !important;
    min-height: 74px;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    background:
        linear-gradient(180deg, rgba(248,241,233,.98), rgba(242,232,219,.96)) !important;
    border-top: 1px solid rgba(142, 31, 25, .14) !important;
    border-bottom: 1px solid rgba(142, 31, 25, .16) !important;
    box-shadow: 0 10px 34px rgba(57, 28, 16, .07) !important;
}
.sivm-top-bar::before {
    left: clamp(36px, 7vw, 118px) !important;
    right: clamp(36px, 7vw, 118px) !important;
    top: auto !important;
    bottom: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, #e32a22, rgba(142,31,25,.55), transparent) !important;
}
.sivm-logo-icon { color: #d92822 !important; width: 34px !important; height: 34px !important; }
.sivm-logo-name {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(28px, 2.15vw, 40px) !important;
    font-weight: 700 !important;
    letter-spacing: -.02em !important;
    color: #8b201b !important;
    text-shadow: none !important;
}
.sivm-logo-sub {
    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    color: rgba(139,32,27,.63) !important;
    letter-spacing: 2.8px !important;
}
.sivm-mode-toggle {
    background: #fff7ef !important;
    border: 1px solid rgba(139,32,27,.14) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 24px rgba(57,28,16,.06) !important;
}
.sivm-mode-btn {
    color: #8b201b !important;
    font-weight: 700 !important;
}
.sivm-mode-btn.active {
    background: linear-gradient(180deg, #b34828, #8f281b) !important;
    color: #fff7ef !important;
    box-shadow: 0 7px 18px rgba(143,40,27,.22) !important;
}
.sivm-cart-trigger {
    background: linear-gradient(180deg, #b34828, #8f281b) !important;
    color: #fff7ef !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 12px 22px !important;
    box-shadow: 0 10px 26px rgba(143,40,27,.22) !important;
}
.sivm-cart-count {
    background: #fff4db !important;
    color: #8f281b !important;
}

.sivm-cat-nav {
    position: sticky;
    top: 74px;
    z-index: 19;
    padding-top: 18px !important;
    padding-bottom: 16px !important;
    background: rgba(247, 239, 227, .94) !important;
    border-bottom: 1px solid rgba(174,124,62,.18) !important;
    backdrop-filter: blur(10px);
}
.sivm-cat-pill,
.sivm-sort-pill {
    background: rgba(255,255,255,.72) !important;
    border: 1px solid rgba(143,40,27,.16) !important;
    color: #52251a !important;
    box-shadow: 0 5px 16px rgba(57,28,16,.045) !important;
}
.sivm-cat-pill.active,
.sivm-sort-pill.active {
    background: linear-gradient(180deg, #a93624, #7f1c18) !important;
    color: #fff8ee !important;
    border-color: #a93624 !important;
}
.sivm-sort-bar {
    background: rgba(255, 250, 243, .72) !important;
    border-bottom: 1px solid rgba(174,124,62,.12) !important;
}
.sivm-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: clamp(22px, 2.1vw, 36px) !important;
    padding-top: 36px !important;
    padding-bottom: 58px !important;
    max-height: none !important;
    overflow: visible !important;
}
.sivm-card {
    border-radius: 22px !important;
    min-height: 452px !important;
    background: #fff9f0 !important;
    border: 1px solid rgba(174,124,62,.24) !important;
    box-shadow: 0 18px 46px rgba(77, 39, 17, .10) !important;
}
.sivm-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 26px 62px rgba(77,39,17,.16) !important;
}
.sivm-card-img-wrap { height: 230px !important; border-radius: 22px 22px 0 0 !important; }
.sivm-card-name {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 24px !important;
    line-height: 1.04 !important;
    color: #2a1710 !important;
}
.sivm-card-price { color: #9d2b1e !important; }
.sivm-add-btn,
.sivm-qty-btn {
    background: linear-gradient(180deg, #a93624, #7f1c18) !important;
    color: #fff8ee !important;
    box-shadow: 0 8px 18px rgba(127,28,24,.20) !important;
}

/* Корзина: закрыта полностью; открывается аккуратным премиальным drawer поверх сайта */
.sivm-cart-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    width: min(430px, 100vw) !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: #fff8ee !important;
    box-shadow: -28px 0 70px rgba(34, 15, 8, .22) !important;
    transform: translateX(calc(100% + 40px)) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    z-index: 999999 !important;
}
.sivm-cart-panel.open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}
.sivm-cart-header {
    background: linear-gradient(180deg, #a93624, #7f1c18) !important;
    border-bottom: 2px solid #d6ad63 !important;
}
.sivm-cart-title,
.sivm-cart-close { color: #fff4db !important; }
.sivm-cart-footer { background: #fffaf2 !important; }

@media (max-width: 920px) {
    .sivm-top-bar { position: relative; top: auto; gap: 14px; }
    .sivm-cat-nav { position: sticky; top: 0; }
    .sivm-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
    .sivm-card { min-height: 0 !important; }
    .sivm-card-img-wrap { height: 190px !important; }
}
@media (max-width: 560px) {
    .sivm-top-bar,
    .sivm-table-banner,
    .sivm-cat-nav,
    .sivm-sort-bar,
    .sivm-grid,
    .sivm-load-more-wrap { padding-left: 16px !important; padding-right: 16px !important; }
    .sivm-top-bar { align-items: stretch; }
    .sivm-mode-toggle { order: 3; width: 100%; justify-content: center; }
    .sivm-cart-trigger { margin-left: auto; }
    .sivm-grid { grid-template-columns: 1fr !important; }
    .sivm-card-img-wrap { height: 220px !important; }
}
