/* === СВЕТЛАЯ ТЕМА МАГАЗИНА === */
.shop-section {
    background: #fff;
    color: #222;
}
/* Компактные отступы для страниц магазина */
.shop-section.pad-top-5 {
    padding-top: 2vw;
}
.shop-section.pad-bot-5 {
    padding-bottom: 2.5vw;
}
.shop-section > .container {
    gap: 0.6vw;
}

/* === ЗАГОЛОВОК СТРАНИЦЫ === */
.shop-page-title {
    font-size: clamp(24px, 2.5vw, 42px);
    font-weight: 700;
    color: #222;
    margin: 0 0 1vw;
}

/* === СЕТКА КАТЕГОРИЙ (главная каталога) === */
.shop-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5vw;
    margin-top: 0.5vw;
}
.shop-category-card {
    display: flex;
    flex-direction: column;
}
.shop-category-card__image {
    display: block;
    width: 5.5vw;
    height: 5.5vw;
    margin-bottom: 0.5vw;
}
.shop-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.shop-category-card__name {
    font-size: clamp(13px, 0.95vw, 16px);
    font-weight: 600;
    color: #222;
    text-decoration: none;
    margin-bottom: 0.3vw;
}
.shop-category-card__name:hover {
    color: var(--accent-color);
}
.shop-category-card__products {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2vw;
}
.shop-category-card__products li a {
    font-size: clamp(12px, 0.85vw, 14px);
    color: #555;
    text-decoration: none;
    line-height: 1.25;
}
.shop-category-card__products li a:hover {
    color: var(--accent-color);
}
.shop-category-card__more {
    font-size: clamp(12px, 0.95vw, 15px);
    color: #888;
    text-decoration: none;
    margin-top: 0.4vw;
}
.shop-category-card__more:hover {
    color: var(--accent-color);
}

/* === КАТАЛОГ: СЕТКА КАРТОЧЕК ТОВАРОВ === */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18vw, 1fr));
    gap: 1.5vw;
    margin-top: 0.8vw;
}

/* === КАРТОЧКА ТОВАРА === */
.shop-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.shop-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.shop-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
.shop-card__image {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f8f8f8;
}
.shop-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-card__body {
    padding: 0.8vw 1vw;
    display: flex;
    flex-direction: column;
    gap: 0.4vw;
    flex: 1;
}
.shop-card__title {
    font-size: clamp(12px, 1vw, 16px);
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    color: #222;
}
.shop-card__price {
    font-size: clamp(16px, 1.4vw, 24px);
    font-weight: 700;
    color: #222;
    margin-top: auto;
}
.shop-card__unit {
    font-size: clamp(10px, 0.85vw, 14px);
    color: #888;
    font-weight: 400;
}

/* === КНОПКА "В КОРЗИНУ" И КОЛИЧЕСТВО (стиль ЛМ) === */
.shop-card__actions {
    padding: 0 1vw 1vw;
}
.shop-card__cart-btn {
    display: block;
    width: 100%;
    padding: 0.7vw 0;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: clamp(12px, 1vw, 16px);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
}
.shop-card__cart-btn:hover {
    background: #555;
}
.shop-card__qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    height: clamp(34px, 2.6vw, 42px);
}
.shop-card__qty-btn {
    background: none;
    border: none;
    width: clamp(34px, 2.6vw, 42px);
    height: 100%;
    font-size: clamp(16px, 1.2vw, 20px);
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.shop-card__qty-btn:hover {
    background: #f0f0f0;
}
.shop-card__qty-value {
    flex: 1;
    text-align: center;
    font-size: clamp(12px, 1vw, 16px);
    font-weight: 500;
    color: #222;
    white-space: nowrap;
}

/* === БЕЙДЖ КОРЗИНЫ В ШАПКЕ === */
.shop-cart-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--main-text-color);
    text-decoration: none;
}
.shop-cart-badge__count {
    position: absolute;
    top: -0.5vw;
    right: -0.7vw;
    background: var(--accent-color);
    color: #333;
    font-size: clamp(9px, 0.7vw, 12px);
    font-weight: 600;
    min-width: 1.2vw;
    height: 1.2vw;
    padding: 0 0.2vw;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.shop-cart-badge__count:empty,
.shop-cart-badge__count[data-count="0"] {
    display: none;
}

/* === ЗАГОЛОВКИ И ТЕКСТ В МАГАЗИНЕ === */
.shop-section .title-2,
.shop-section .title-3,
.shop-section .subtitle-2,
.shop-section .subtitle-3,
.shop-section .subtitle-4 {
    color: #222;
}
.shop-section a:not(.btn):not(.shop-add-to-cart):not(.shop-card__link):not(.shop-card__cart-btn) {
    color: #222;
}

/* === ФИЛЬТР КАТЕГОРИЙ (светлая тема) === */
.shop-section .btn-gallery.border-btn {
    color: #333;
    border-color: #ccc;
    border-width: 2px;
    border-style: solid;
    background: transparent;
}
.shop-section .btn-gallery.border-btn:hover,
.shop-section .btn-gallery.border-btn.active {
    background: transparent;
    color: #222;
    border-color: var(--accent-color);
    border-width: 2px;
}

/* === СТРАНИЦА ТОВАРА: 3-колоночный лейаут === */
.shop-product-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5vw;
    align-items: start;
    margin-bottom: 1.5vw;
}
.shop-product-gallery {
    min-width: 0;
}
.shop-main-image img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #f8f8f8;
}
.shop-thumbs {
    display: flex;
    gap: 0.8vw;
    margin-top: 1vw;
    overflow-x: auto;
    scrollbar-width: none;
}
.shop-thumbs::-webkit-scrollbar { display: none; }
.shop-thumb {
    flex-shrink: 0;
    width: 5vw;
    height: 5vw;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: border-color 0.2s ease;
    cursor: pointer;
}
.shop-thumb:hover,
.shop-thumb.active {
    border-color: #333;
}
.shop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === СРЕДНЯЯ КОЛОНКА: название + краткое описание === */
.shop-product-summary {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5vw;
}
.shop-product-summary__title {
    font-size: clamp(18px, 1.5vw, 28px);
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin: 0 0 1vw;
}
.shop-product-summary__desc {
    font-size: clamp(13px, 1vw, 16px);
    line-height: 1.6;
    color: #555;
    margin: 0 0 1vw;
}
.shop-summary-chars {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(12px, 0.9vw, 14px);
}
.shop-summary-chars tr:not(:last-child) {
    border-bottom: 1px solid #eee;
}
.shop-summary-chars td {
    padding: 6px 0;
    vertical-align: top;
}
.shop-summary-chars__key {
    color: #888;
    white-space: nowrap;
    padding-right: 12px;
}
.shop-summary-chars__val {
    color: #333;
    font-weight: 500;
}

/* === ПРАВАЯ КОЛОНКА: карточка цены === */
.shop-product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5vw;
    position: sticky;
    top: 100px;
}
.shop-product-card__sku {
    font-size: clamp(11px, 0.85vw, 14px);
    color: #888;
    margin-bottom: 0.8vw;
}
.shop-product-card__price {
    font-size: clamp(22px, 1.8vw, 32px);
    font-weight: 700;
    color: #222;
    margin-bottom: 1.2vw;
}
.shop-product-card__unit {
    font-size: clamp(13px, 1vw, 16px);
    color: #888;
    font-weight: 400;
}
.shop-product-card__btn {
    display: block;
    width: 100%;
    padding: 0.8vw 0;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
}
.shop-product-card__btn:hover {
    background: #555;
}
/* Qty selector в карточке товара */
.shop-product-card__actions {
    margin-bottom: 0.6vw;
}
.shop-product-card__qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    height: clamp(38px, 2.8vw, 46px);
}
.shop-product-card__qty-btn {
    background: none;
    border: none;
    width: clamp(38px, 2.8vw, 46px);
    height: 100%;
    font-size: clamp(18px, 1.3vw, 22px);
    font-weight: 400;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    font-family: inherit;
}
.shop-product-card__qty-btn:hover {
    background: #f0f0f0;
}
.shop-product-card__qty-value {
    flex: 1;
    text-align: center;
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 500;
    color: #222;
}
.shop-product-card__btn-oneclick {
    display: block;
    width: 100%;
    padding: 0.8vw 0;
    background: var(--accent-color);
    color: #222;
    border: none;
    border-radius: 6px;
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-align: center;
}
.shop-product-card__btn-oneclick:hover {
    opacity: 0.8;
}

/* === ТАБЫ ОПИСАНИЕ / ХАРАКТЕРИСТИКИ === */
.shop-product-details {
    margin-top: 0;
}

/* === МОДАЛЬНОЕ ОКНО «КУПИТЬ В ОДИН КЛИК» === */
.shop-oneclick-overlay {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 16%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.shop-oneclick-overlay.active {
    opacity: 1;
    visibility: visible;
}
.shop-oneclick-modal {
    background: #333;
    color: #fff;
    border-radius: 2vw;
    padding: 2em 1.5em;
    width: 90%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: perspective(800px) rotateX(-90deg) scale(0.5);
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.shop-oneclick-overlay.active .shop-oneclick-modal {
    transform: perspective(800px) rotateX(0deg) scale(1);
}
.shop-oneclick-modal__close {
    position: absolute;
    top: 0.1em;
    right: 0.3em;
    background: none;
    border: none;
    font-size: 5vh;
    color: #fdfdfd;
    cursor: pointer;
    line-height: 1;
    border-radius: 0;
}
.shop-oneclick-modal__close:hover {
    color: #ccc;
}
.shop-oneclick-modal__title {
    font-size: clamp(1.3rem, 2vw, 2.2rem);
    font-weight: 700;
    margin: 0 0 0.3em;
    text-align: center;
    color: #fff;
}
.shop-oneclick-modal__product {
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    color: #ccc;
    margin: 0 0 1.2em;
    text-align: center;
}
.shop-oneclick-modal__fields {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}
#oneclickForm input[type="text"],
#oneclickForm input[type="tel"] {
    display: block;
    width: 100%;
    padding: var(--bat-pad, 14px 20px);
    border: 1.2px solid var(--accent-color);
    border-radius: 20vw;
    background: transparent;
    color: #d0d0d0;
    font-size: clamp(14px, 1.1vw, 16px);
    font-family: inherit;
    box-sizing: border-box;
}
#oneclickForm input[type="text"]::placeholder,
#oneclickForm input[type="tel"]::placeholder {
    color: #aaa;
}
#oneclickForm input[type="text"]:focus,
#oneclickForm input[type="tel"]:focus {
    outline: none;
    border-color: #f8d987;
    border-width: 2px;
}
#oneclickForm .consent-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: clamp(11px, 0.85vw, 13px);
    color: #ccc;
}
#oneclickForm .consent-container a {
    color: var(--accent-color);
    text-decoration: underline;
}
.shop-oneclick-modal__submit {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: var(--accent-color);
    color: #222;
    border: none;
    border-radius: 50vw;
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.shop-oneclick-modal__submit:hover {
    opacity: 0.8;
}
.shop-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
}
.shop-tab {
    padding: 0.8vw 1.5vw;
    background: none;
    border: none;
    border-radius: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 600;
    font-family: inherit;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.shop-tab:hover {
    color: #333;
}
.shop-tab:focus,
.shop-tab:focus-visible {
    outline: none;
    box-shadow: none;
}
.shop-tab.active {
    color: #222;
    border-bottom-color: #333;
}
.shop-tab-content {
    display: none;
    padding: 1.5vw 0;
}
.shop-tab-content.active {
    display: block;
}
.shop-description-text {
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.6;
    color: #444;
}
.shop-description-text p {
    margin: 0 0 0.8em;
}
.shop-description-text h3 {
    font-size: clamp(14px, 1.05vw, 16px);
    font-weight: 700;
    color: #222;
    margin: 1.2em 0 0.5em;
}
.shop-description-text ul {
    padding-left: 1.5em;
    margin: 0.5em 0 0.8em;
}
.shop-description-text li {
    margin-bottom: 0.3em;
    line-height: 1.5;
}

/* === ТАБЛИЦА ХАРАКТЕРИСТИК === */
.shop-chars-table {
    width: 100%;
    border-collapse: collapse;
}
.shop-chars-table tr:nth-child(even) {
    background: #f9f9f9;
}
.shop-chars-table td {
    padding: 0.7vw 1vw;
    font-size: clamp(13px, 1vw, 16px);
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
.shop-chars-table__key {
    color: #666;
    width: 40%;
}
.shop-chars-table__val {
    color: #222;
    font-weight: 500;
}

/* === УПРАВЛЕНИЕ КОЛИЧЕСТВОМ (страница корзины) === */
.shop-qty-control {
    display: inline-flex;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}
.shop-qty-btn {
    background: transparent;
    color: #333;
    border: none;
    width: 2.5vw;
    height: 2.5vw;
    font-size: 1.2vw;
    cursor: pointer;
    transition: background 0.15s ease;
    min-width: 36px;
    min-height: 36px;
}
.shop-qty-btn:hover {
    background: #f0f0f0;
}
.shop-qty-input {
    width: 3vw;
    min-width: 44px;
    text-align: center;
    border: none;
    background: transparent;
    color: #222;
    font-size: clamp(13px, 1.1vw, 17px);
    font-family: inherit;
    -moz-appearance: textfield;
    outline: none;
}
.shop-qty-input::-webkit-outer-spin-button,
.shop-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* === ХЛЕБНЫЕ КРОШКИ === */
.shop-breadcrumbs {
    font-size: clamp(11px, 0.9vw, 14px);
    color: #888;
    margin-bottom: 0.5vw;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}
.shop-breadcrumbs a {
    color: #555;
    text-decoration: none;
    white-space: nowrap;
}
.shop-breadcrumbs a:hover {
    color: var(--accent-color);
}
.shop-breadcrumbs span {
    margin: 0 0.3vw;
}

/* === ОБЩИЕ СТИЛИ МАГАЗИНА === */
.shop-container {
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
}
/* Ограничиваем ширину каталога (общий .container внутри shop-section) */
.shop-section > .container {
    max-width: 1380px;
}
.shop-page-heading {
    font-size: clamp(20px, 1.8vw, 32px);
    font-weight: 700;
    color: #222;
    margin: 0 0 0.8vw;
}
.shop-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease;
}
.shop-btn:hover { background: #555; }
.shop-btn--primary { background: #333; }
.shop-btn--checkout {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: clamp(14px, 1.1vw, 17px);
    text-align: center;
    background: var(--accent-color);
    color: #222;
    font-weight: 400;
}
.shop-btn--checkout:hover {
    background: #c4f74a;
}
.shop-btn--disabled {
    background: #ccc;
    color: #888;
    pointer-events: none;
    cursor: not-allowed;
}

/* === LAYOUT КОРЗИНЫ (sidebar) === */
.shop-cart-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5vw;
    align-items: start;
}
.shop-cart-items {
    min-width: 0;
}
.shop-cart-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 1vw;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.shop-cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.shop-cart-product img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.shop-cart-product__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.shop-cart-product__info a {
    color: #222;
    text-decoration: none;
    font-size: clamp(12px, 0.95vw, 15px);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.shop-cart-product__info a:hover { color: #555; }
.shop-cart-product__price {
    font-size: clamp(11px, 0.8vw, 13px);
    color: #888;
}
.shop-cart-cell--total {
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}
.shop-cart-remove {
    background: none;
    border: none;
    color: #bbb;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}
.shop-cart-remove:hover { color: #e74c3c; }

/* Сайдбар корзины */
.shop-cart-sidebar {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.shop-cart-sidebar__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: clamp(14px, 1.1vw, 17px);
    color: #222;
}
.shop-cart-sidebar__total .cart-total-amount {
    font-size: clamp(20px, 1.6vw, 28px);
    font-weight: 700;
    color: #222;
}
.shop-min-order-warning {
    font-size: clamp(11px, 0.85vw, 13px);
    color: #e74c3c;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 6px;
}
.shop-cart-sidebar__continue {
    text-align: center;
    font-size: clamp(12px, 0.9vw, 14px);
    color: #888;
    text-decoration: none;
}
.shop-cart-sidebar__continue:hover { color: #333; }

/* === ЧЕКАУТ === */
.shop-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5vw;
    align-items: start;
}
.shop-checkout-order__title,
.shop-checkout-form-wrap__title {
    font-size: clamp(15px, 1.2vw, 20px);
    font-weight: 600;
    color: #222;
    margin: 0 0 12px;
}
.shop-checkout-items {
    margin-top: 0;
}
.shop-checkout-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: clamp(12px, 0.95vw, 15px);
    color: #333;
}
.shop-checkout-item__name {
    flex: 1;
    min-width: 0;
}
.shop-checkout-item__price {
    font-weight: 600;
    white-space: nowrap;
}
.shop-checkout-total {
    display: flex;
    justify-content: space-between;
    border-top: 2px solid #222;
    margin-top: 12px;
    padding-top: 12px;
    font-size: clamp(15px, 1.2vw, 20px);
    font-weight: 700;
    color: #222;
}

/* Форма оформления */
.shop-checkout-form-wrap {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 80px;
}
.shop-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.shop-checkout-form input[type="text"],
.shop-checkout-form input[type="tel"],
.shop-checkout-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: clamp(13px, 1vw, 15px);
    color: #333;
    background: #fff;
    outline: none;
    box-sizing: border-box;
}
.shop-checkout-form input:focus,
.shop-checkout-form textarea:focus {
    border-color: #333;
}
.shop-checkout-form textarea {
    resize: vertical;
}
.shop-checkout-form .consent-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: clamp(11px, 0.85vw, 13px);
}
.shop-checkout-form .consent-container label {
    color: #666;
}
.shop-checkout-form .consent-container a {
    color: #333;
}

/* === ФОРМЫ В МАГАЗИНЕ (общие) === */
.shop-section .consent-container label {
    color: #444;
}

/* === ФИЛЬТР КАТЕГОРИЙ === */
.shop-cat-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6vw;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.shop-cat-filter::-webkit-scrollbar { display: none; }
.shop-cat-filter .btn-gallery {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: clamp(12px, 0.9vw, 14px);
    min-height: clamp(36px, 2.8vw, 44px);
    box-sizing: border-box;
}
.shop-cat-filter__img {
    width: clamp(22px, 1.8vw, 30px);
    height: clamp(22px, 1.8vw, 30px);
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

/* === ПАГИНАЦИЯ === */
.shop-pagination {
    margin-top: 1.5vw;
    display: flex;
    justify-content: center;
    gap: 0.5vw;
}
.shop-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5vw;
    height: 2.5vw;
    padding: 0 0.5vw;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: clamp(12px, 1vw, 16px);
    transition: all 0.2s ease;
}
.shop-pagination .page-numbers.current,
.shop-pagination .page-numbers:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* === ПУСТАЯ КОРЗИНА === */
.shop-cart-empty {
    text-align: center;
    padding: 5vw 0;
}
.shop-cart-empty__text {
    font-size: clamp(16px, 1.3vw, 22px);
    color: #888;
    margin-bottom: 1.5vw;
}

/* === ПЛАВАЮЩИЙ ЛЕЙБЛ КОРЗИНЫ === */
.shop-floating-cart {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #333;
    color: #fff;
    padding: 10px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    z-index: 9990;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shop-floating-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}
.shop-floating-cart i {
    font-size: 16px;
}
.shop-floating-cart__count {
    background: var(--accent-color);
    color: #222;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.shop-floating-cart__total {
    white-space: nowrap;
}
.shop-floating-cart[data-count="0"] {
    display: none;
}

/* === УВЕДОМЛЕНИЯ === */
.shop-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99999;
    font-size: 14px;
    font-weight: 600;
    animation: shopSlideIn 0.3s ease-out;
    max-width: 320px;
}
.shop-notification--success {
    background: var(--accent-color);
    color: #333;
}
.shop-notification--error {
    background: #f44336;
    color: #fff;
}
@keyframes shopSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* === МОБИЛЬНАЯ ВЕРСИЯ === */
@media (max-width: 768px) {
    .shop-page-title {
        font-size: 7vw;
        margin-bottom: 4vw;
    }
    .shop-categories-grid {
        grid-template-columns: 1fr;
        gap: 4vw;
    }
    .shop-category-card__image {
        width: 18vw;
        height: 18vw;
    }
    .shop-category-card__name {
        font-size: 4.5vw;
    }
    .shop-category-card__products li a {
        font-size: 3.5vw;
    }
    .shop-category-card__more {
        font-size: 3.2vw;
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3vw;
    }
    .shop-card__image {
        padding: 2vw;
    }
    .shop-card__title { font-size: 3.5vw; }
    .shop-card__price { font-size: 4.5vw; }
    .shop-card__unit { font-size: 2.8vw; }
    .shop-card__actions { padding: 0 3vw 3vw; }
    .shop-card__cart-btn {
        padding: 2.5vw 0;
        font-size: 3.5vw;
        border-radius: 2vw;
    }
    .shop-card__qty-wrap {
        height: 10vw;
        border-radius: 2vw;
    }
    .shop-card__qty-btn {
        width: 10vw;
        font-size: 5vw;
    }
    .shop-card__qty-value {
        font-size: 3.5vw;
    }
    .shop-card__body { padding: 2vw 3vw; gap: 1.5vw; }

    .shop-cart-badge__count {
        font-size: 2.5vw;
        min-width: 4vw;
        height: 4vw;
        top: -2vw;
        right: -2vw;
    }

    .shop-product-top {
        grid-template-columns: 1fr;
        gap: 4vw;
    }
    .shop-product-summary__title { font-size: 5.5vw; }
    .shop-product-summary__desc { font-size: 3.5vw; }
    .shop-product-card {
        padding: 4vw;
        position: static;
    }
    .shop-product-card__price { font-size: 7vw; margin-bottom: 3vw; }
    .shop-product-card__unit { font-size: 3.5vw; }
    .shop-product-card__btn { padding: 3vw 0; font-size: 4vw; border-radius: 2vw; }
    .shop-product-card__btn-oneclick { padding: 3vw 0; font-size: 4vw; border-radius: 2vw; margin-top: 2vw; }
    .shop-product-card__qty-wrap { height: 12vw; border-radius: 2vw; }
    .shop-product-card__qty-btn { width: 12vw; font-size: 5vw; }
    .shop-product-card__qty-value { font-size: 4vw; }
    .shop-product-card__sku { font-size: 3vw; }
    .shop-product-details { margin-top: 5vw; }
    .shop-tabs { gap: 0; }
    .shop-tab { padding: 3vw 4vw; font-size: 3.8vw; }
    .shop-oneclick-modal { padding: 6vw; }
    .shop-oneclick-modal__close { font-size: 6vw; top: 2vw; right: 3vw; }
    .shop-oneclick-modal__title { font-size: 5vw; margin-bottom: 1vw; }
    .shop-oneclick-modal__product { font-size: 3.5vw; margin-bottom: 3vw; }
    #oneclickForm input { padding: 3vw; font-size: 4vw; margin-bottom: 2vw; border-radius: 2vw; }
    .shop-oneclick-modal__submit { padding: 3vw 0; font-size: 4vw; border-radius: 2vw; }
    .shop-tab-content { padding: 4vw 0; }
    .shop-description-text { font-size: 3.5vw; }
    .shop-description-text h3 { font-size: 4vw; }
    .shop-chars-table td { padding: 2.5vw 3vw; font-size: 3.3vw; }
    .shop-chars-table__key { width: 45%; }

    .shop-main-image img { border-radius: 4vw; padding: 3vw; }
    .shop-thumbs { gap: 2vw; }
    .shop-thumb { width: 15vw; height: 15vw; border-radius: 2vw; }
    .shop-specs-content { font-size: 3.5vw; }
    .shop-breadcrumbs { font-size: 3vw; margin-bottom: 3vw; display: flex; flex-wrap: wrap; align-items: center; }

    .shop-qty-btn { width: 10vw; height: 10vw; font-size: 4vw; }
    .shop-qty-input { width: 10vw; font-size: 3.5vw; }

    .shop-cart-layout {
        grid-template-columns: 1fr;
        gap: 4vw;
    }
    .shop-cart-sidebar {
        position: static;
    }
    .shop-cart-row {
        grid-template-columns: 1fr auto;
        gap: 2vw;
        padding: 3vw 0;
    }
    .shop-cart-cell--qty { grid-column: 1 / -1; }
    .shop-cart-cell--total { display: none; }
    .shop-cart-cell--remove {
        position: absolute;
        top: 12px;
        right: 0;
    }
    .shop-cart-row { position: relative; }
    .shop-cart-product img { width: 48px; height: 48px; }
    .shop-cart-remove { font-size: 18px; }

    .shop-checkout-layout {
        grid-template-columns: 1fr;
        gap: 4vw;
    }
    .shop-checkout-form-wrap {
        position: static;
    }

    .shop-pagination .page-numbers {
        min-width: 8vw; height: 8vw; font-size: 3.5vw;
    }
    .shop-checkout-item { font-size: 3.5vw; }

    .shop-floating-cart {
        bottom: 16px;
        right: 16px;
        padding: 8px 14px;
        font-size: 13px;
    }
    .shop-floating-cart__count {
        min-width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .shop-section.pad-top-5 { padding-top: 4vw; }
    .shop-section.pad-bot-5 { padding-bottom: 5vw; }
    .shop-page-heading { font-size: 6vw; margin-bottom: 3vw; }
    .shop-btn--checkout { padding: 12px; font-size: 4vw; }

    /* Floating cart above bottom bar */
    .shop-floating-cart {
        bottom: 72px;
    }
}

/* === МОБИЛЬНЫЙ НИЖНИЙ ТУЛБАР === */
.mobile-bottom-bar {
    display: none;
}
@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: block;
        position: fixed;
        bottom: 15px;
        left: 15px;
        right: 15px;
        z-index: 9995;
        background: #222;
        padding: 13px 12px;
        padding-bottom: calc(13px + env(safe-area-inset-bottom, 0px));
        border-radius: 18px;
    }
    .mobile-bottom-bar__inner {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        justify-content: center;
    }
    .mobile-bottom-bar__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        padding: 10px 13px;
        border-radius: 50px;
        text-decoration: none;
        font-family: inherit;
        font-size: 12.5px;
        font-weight: 600;
        white-space: nowrap;
        transition: opacity 0.2s;
    }
    .mobile-bottom-bar__btn:hover,
    .mobile-bottom-bar__btn:active {
        opacity: 0.7;
    }
    .mobile-bottom-bar__btn--accent,
    .mobile-bottom-bar__btn--accent:hover,
    .mobile-bottom-bar__btn--accent:active {
        background: var(--accent-color);
        color: #222;
    }
    .mobile-bottom-bar__btn--grey,
    .mobile-bottom-bar__btn--grey:hover,
    .mobile-bottom-bar__btn--grey:active {
        background: #888;
        color: #fff;
    }

    body {
        padding-bottom: 60px;
    }
}

/* Узкие экраны: три кнопки тулбара должны влезать в одну строку */
@media (max-width: 480px) {
    .mobile-bottom-bar {
        left: 10px;
        right: 10px;
        padding: 12px 10px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
    .mobile-bottom-bar__inner {
        gap: 5px;
    }
    .mobile-bottom-bar__btn {
        padding: 9px 9px;
        font-size: 11px;
    }
}
@media (max-width: 360px) {
    .mobile-bottom-bar {
        left: 8px;
        right: 8px;
        padding: 11px 8px;
        padding-bottom: calc(11px + env(safe-area-inset-bottom, 0px));
    }
    .mobile-bottom-bar__inner {
        gap: 4px;
    }
    .mobile-bottom-bar__btn {
        padding: 8px 7px;
        font-size: 10.5px;
    }
}
