/*
EcoServic product-catalog css
*/

:root {
    --pc-accent: #2563eb;
    --pc-accent-hover: #1d4ed8;
    --pc-bg: #f8fafc;
    --pc-border: #e2e8f0;
    --pc-text: #1e293b;
    --pc-radius: 3px;
}
.pc-archive { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.pc-archive__title { font-size: 1.75rem; margin-bottom: 8px; }
.pc-archive__desc { color: #64748b; margin-bottom: 24px; }

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.pc-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 24px; }
.pc-breadcrumb-btn { display: inline-block; background: var(--pc-accent); color: #fff; padding: 6px 16px; border-radius: 3px; font-size: 0.85rem; text-decoration: none; cursor: pointer; border: none; transition: background 0.2s; }
a.pc-breadcrumb-btn:hover { background: var(--pc-accent-hover); }
.pc-breadcrumb-btn--current { background: #dc2626; cursor: default; }
.pc-breadcrumb-sep { color: #94a3b8; font-size: 0.9rem; }

/* ===== КАТЕГОРИИ ===== */
.pc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-bottom: 30px; }
.pc-cat-card { text-align: center; text-decoration: none; color: var(--pc-text); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); padding: 16px; transition: box-shadow 0.2s, transform 0.2s; background: #fff; }
.pc-cat-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.pc-cat-card__img-wrap { width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 3px; margin-bottom: 10px; }
.pc-cat-card__img, .pc-cat-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.pc-cat-card__placeholder { width: 100%; height: 100%; background: #f1f5f9; border-radius: 3px; }
.pc-cat-card__name { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.pc-cat-card__count { display: block; font-size: 0.8rem; color: #94a3b8; }

/* ===== LAYOUT ===== */
.pc-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; }
@media (max-width: 900px) { .pc-layout { grid-template-columns: 1fr; } .pc-filters { order: 2; } }

/* ===== ФИЛЬТРЫ ===== */
.pc-filters { background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); padding: 24px; position: sticky; top: 20px; align-self: start; }
.pc-filters__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pc-filters__header h2 { font-size: 1.2rem; }
.pc-filter-group { margin-bottom: 20px; }
.pc-filter-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.pc-filter-input, .pc-filter-select { width: 100%; padding: 9px 12px; border: 1px solid var(--pc-border); border-radius: 3px; font-size: 0.9rem; box-sizing: border-box; }
.pc-filter-input:focus, .pc-filter-select:focus { outline: 2px solid var(--pc-accent); border-color: transparent; }
.pc-price-range { display: flex; align-items: center; gap: 8px; }
.pc-price-input { width: calc(50% - 10px) !important; }
.pc-price-slider { margin-top: 12px; position: relative; height: 30px; }
.pc-price-slider input[type="range"] { position: absolute; width: 100%; height: 4px; -webkit-appearance: none; appearance: none; background: var(--pc-border); border-radius: 3px; pointer-events: none; top: 12px; }
.pc-price-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--pc-accent); cursor: pointer; pointer-events: auto; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.pc-price-slider input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--pc-accent); cursor: pointer; pointer-events: auto; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25); }

/* ===== TOOLBAR ===== */
.pc-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.pc-toolbar__count { font-size: 0.9rem; color: #64748b; white-space: nowrap; }
.pc-toolbar__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pc-toolbar__sort { padding: 7px 10px; border: 1px solid var(--pc-border); border-radius: 3px; font-size: 0.9rem; }
.pc-view-toggle { display: flex; gap: 4px; }
.pc-view-btn { border: 1px solid var(--pc-border); background: #fff; padding: 6px 12px; border-radius: 3px; cursor: pointer; font-size: 1rem; color: #64748b; }
.pc-view-btn.active { background: var(--pc-accent); color: #fff; border-color: var(--pc-accent); }

/* ===== ПОИСК ===== */
.pc-search-form { display: flex; align-items: stretch; }
.pc-search-input { padding: 9px 12px; border: 1px solid var(--pc-border); border-right: none; border-radius: 8px 0 0 8px; font-size: 0.9rem; width: 280px; max-width: 100%; box-sizing: border-box; }
.pc-search-input:focus { outline: 2px solid var(--pc-accent); border-color: transparent; }
.pc-search-btn { display: flex; align-items: center; justify-content: center; border: 1px solid var(--pc-border); border-left: none; border-radius: 0 8px 8px 0; background: var(--pc-accent); color: #fff; cursor: pointer; padding: 0 12px; transition: background 0.2s; }
.pc-search-btn:hover { background: var(--pc-accent-hover); }
.pc-search-btn svg { width: 18px; height: 18px; }

/* ===== КНОПКИ ===== */
.pc-btn { display: inline-block; background: var(--pc-accent); color: #fff; padding: 10px 22px; border: none; border-radius: 3px; font-size: 0.95rem; cursor: pointer; text-decoration: none; transition: background 0.2s; text-align: center; }
.pc-btn:hover { background: var(--pc-accent-hover); }
.pc-btn--small { padding: 7px 16px; font-size: 0.85rem; }
.pc-btn--large { padding: 14px 32px; font-size: 1.05rem; width: 100%; }
.pc-btn--block { width: 100%; }
.pc-btn--add { background: #16a34a; }
.pc-btn--add:hover { background: #15803d; }
.pc-btn--in-request { background: #fb923c !important; color: #fff !important; cursor: default !important; }
.pc-btn--in-request:hover { background: #f97316 !important; }
.pc-btn--reset { background: #dc2626; margin-top: 10px; }
.pc-btn--reset:hover { background: #b91c1c; }

/* ===== GRID VIEW ===== */
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pc-card { background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); padding: 8px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: box-shadow 0.2s, transform 0.2s; }
.pc-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.pc-card__img { width: 250px; height: 250px; object-fit: cover; border-radius: 3px; margin-bottom: 8px; }
.pc-card__img--empty { background: #f1f5f9; }
.pc-card__link { text-decoration: none; color: inherit; }
.pc-card__title { font-size: 1.1rem; margin: 4px 0; }
.pc-card__sku { font-size: 0.85rem; color: #64748b; margin: 4px 0; }
.pc-card__excerpt { font-size: 0.85rem; color: #475569; line-height: 1.5; margin: 4px 0;; }
.pc-card__prices { margin: 4px 0;; display: flex; gap: 8px; align-items: center; justify-content: center; }
.pc-card__price { font-size: 1.2rem; font-weight: 700; color: var(--pc-accent); }
.pc-card__oldprice { font-size: 0.95rem; color: #94a3b8; text-decoration: line-through; }
.pc-card__actions { display: flex; gap: 8px; }


/* ===== LIST VIEW (компактный) ===== */
.pc-list { display: flex; flex-direction: column; gap: 10px; }
.pc-list-item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); padding: 12px; transition: box-shadow 0.2s; align-items: stretch; }
.pc-list-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.pc-list-item__img-wrap { flex-shrink: 0; }
.pc-list-item__img { width: 120px; height: 120px; object-fit: cover; border-radius: 3px; display: block; }
.pc-list-item__img--empty { background: #f1f5f9; }
.pc-list-item__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pc-list-item__title { font-size: 1rem; margin: 0 0 4px; }
.pc-list-item__title a { text-decoration: none; color: var(--pc-text); }
.pc-list-item__title a:hover { color: var(--pc-accent); }
.pc-list-item__sku { font-size: 0.8rem; color: #64748b; margin-bottom: 4px; }
.pc-list-item__excerpt { font-size: 0.85rem; color: #475569; line-height: 1.4; margin: 0 0 8px; flex: 1; }
.pc-list-item__prices { display: flex; gap: 8px; align-items: center; }
.pc-list-item__actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; flex-shrink: 0; }
.pc-list-item__actions .pc-btn { width: 130px; }
@media (max-width: 600px) { .pc-list-item { flex-direction: column; } .pc-list-item__img { width: 100%; height: 160px; } .pc-list-item__actions { flex-direction: row; } .pc-list-item__actions .pc-btn { flex: 1; width: auto; } }


/* ===== КОНТЕНТ ===== */
.pc-content { min-height: 400px; }
.pc-loading { opacity: 0.5; pointer-events: none; }
.pc-no-results { grid-column: 1 / -1; text-align: center; font-size: 1.1rem; color: #94a3b8; padding: 40px 20px; }

/* ===== ПАГИНАЦИЯ ===== */
.pc-pagination { margin-top: 30px; text-align: center; }
.pc-pagination a, .pc-pagination span { display: inline-block; padding: 7px 13px; margin: 0 2px; border: 1px solid var(--pc-border); border-radius: 3px; text-decoration: none; color: var(--pc-text); font-size: 0.9rem; }
.pc-pagination a:hover, .pc-pagination .current { background: var(--pc-accent); color: #fff; border-color: var(--pc-accent); }

/* ===== КАРТОЧКА ТОВАРА ===== */
.pc-single { max-width: 1100px; margin: 0 auto; padding: 30px 20px; }
.pc-back { display: inline-block; margin-bottom: 20px; color: var(--pc-accent); text-decoration: none; }
.pc-product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 768px) { .pc-product { grid-template-columns: 1fr; } }
.pc-product__main-img { margin-bottom: 16px; }
.pc-product__img { width: 600px; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--pc-radius); display: block; cursor: zoom-in; }
.pc-product__img--empty { background: #f1f5f9; cursor: default; }
.pc-product__gallery { display: flex; gap: 10px; flex-wrap: wrap; }
.pc-gallery-thumb { border: 2px solid transparent; border-radius: 3px; padding: 0; cursor: pointer; background: none; overflow: hidden; }
.pc-gallery-thumb.active { border-color: var(--pc-accent); }
.pc-gallery-thumb__img { width: 150px; height: 150px; object-fit: cover; border-radius: 3px; display: block; }
.pc-product__title { font-size: 1.6rem; margin-bottom: 12px; }
.pc-product__meta { font-size: 0.95rem; margin-bottom: 8px; }
.pc-product__meta-label { font-weight: 600; color: #64748b; }
.pc-product__meta a { color: var(--pc-accent); text-decoration: none; }
.pc-product__meta a:hover { text-decoration: underline; }
.pc-product__sku { color: #64748b; margin-bottom: 12px; }
.pc-product__short { margin-bottom: 20px; line-height: 1.6; color: #475569; }
.pc-product__prices { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.pc-product__price { font-size: 1.8rem; font-weight: 700; color: var(--pc-accent); }
.pc-product__oldprice { font-size: 1.2rem; color: #94a3b8; text-decoration: line-through; }

/* ===== ВКЛАДКИ ===== */
.pc-tabs { margin-bottom: 40px; }
.pc-tabs__nav { display: flex; gap: 0; border-bottom: 2px solid var(--pc-border); margin-bottom: 20px; }
.pc-tabs__btn { padding: 12px 24px; border: none; background: none; cursor: pointer; font-size: 1rem; color: #64748b; border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; }
.pc-tabs__btn.active { color: var(--pc-accent); border-bottom-color: var(--pc-accent); }
.pc-tabs__panel { display: none; line-height: 1.7; }
.pc-tabs__panel.active { display: block; }

/* ===== ХАРАКТЕРИСТИКИ ===== */
.pc-specs-table { width: 100%; border-collapse: collapse; }
.pc-specs-table tr { border-bottom: 1px solid var(--pc-border); }
.pc-specs-table__name { padding: 12px 16px; font-weight: 600; width: 40%; background: var(--pc-bg); }
.pc-specs-table__value { padding: 12px 16px; }

/* ===== ФОРМА ЗАЯВКИ ===== */
.pc-request__form { display: grid; gap: 16px; max-width: 1200px; }
.pc-field { display: flex; flex-direction: column; }
.pc-field label { font-size: 0.9rem; font-weight: 600; margin-bottom: 5px; }
.pc-field input, .pc-field textarea { padding: 10px 14px; border: 1px solid var(--pc-border); border-radius: 3px; font-size: 0.95rem; font-family: inherit; }
.pc-field input:focus, .pc-field textarea:focus { outline: 2px solid var(--pc-accent); border-color: transparent; }
.pc-request__msg { margin-top: 8px; font-size: 0.95rem; }
.pc-request__msg--ok { color: #16a34a; }
.pc-request__msg--err { color: #dc2626; }

/* Рамки для полей формы заявки */
#pc-checkout-form input,
#pc-checkout-form textarea,
#pc-checkout-form select {
    border: 1px solid #ccc;           /* серая рамка */
    border-radius: 3px;               /* чуть скруглённые углы (опционально) */
    padding: 8px 10px;                /* внутренние отступы для комфорта */
    box-sizing: border-box;          /* чтобы padding не ломал ширину */
}

/* Эффект при фокусе (когда кликают на поле) */
#pc-checkout-form input:focus,
#pc-checkout-form textarea:focus,
#pc-checkout-form select:focus {
    outline: none;                   /* убираем стандартную обводку браузера */
    border-color: #007bff;           /* цвет рамки при фокусе — синий */
    box-shadow: 0 0 4px rgba(0,123,255,0.2); /* лёгкий ореол */
}

/* ===== ЛАЙТБОКС ===== */
.pc-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 99999; display: flex; align-items: center; justify-content: center; }
.pc-lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 3px; }
.pc-lightbox__close { position: absolute; top: 20px; right: 30px; background: none; border: none; color: #fff; font-size: 3rem; cursor: pointer; line-height: 1; }
.pc-lightbox__prev, .pc-lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 2.5rem; cursor: pointer; padding: 16px 20px; border-radius: 3%; }
.pc-lightbox__prev { left: 20px; }
.pc-lightbox__next { right: 20px; }
.pc-lightbox__prev:hover, .pc-lightbox__next:hover { background: rgba(255,255,255,0.3); }

/* ===== БЕЙДЖ В МЕНЮ ===== */
.pc-request-badge { display: inline-flex; align-items: center; justify-content: center; background: #dc2626; color: #fff; border-radius: 50%; min-width: 20px; height: 20px; font-size: 0.75rem; font-weight: 700; padding: 0 4px; margin-left: 4px; }
.pc-nav-request a { display: flex; align-items: center; }

/* ===== СТРАНИЦА ОФОРМЛЕНИЯ ЗАЯВКИ ===== */
.pc-request-page { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.pc-request-page__title { font-size: 1.6rem; margin-bottom: 24px; }
.pc-request-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.pc-request-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--pc-border); border-radius: 3px; padding: 12px 16px; }
.pc-request-item__img { width: 80px; height: 80px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.pc-request-item__img--empty { background: #f1f5f9; }
.pc-request-item__body { flex: 1; }
.pc-request-item__title { font-weight: 600; font-size: 0.95rem; margin: 0 0 4px; }
.pc-request-item__title a { text-decoration: none; color: var(--pc-text); }
.pc-request-item__price { font-size: 0.9rem; color: var(--pc-accent); font-weight: 600; }
.pc-request-item__remove { background: none; border: none; color: #dc2626; cursor: pointer; font-size: 1.2rem; padding: 4px 8px; flex-shrink: 0; }
/* Две колонки: список 2/3, форма 1/3 */
.pc-request-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}
.pc-request-items-col {
    flex: 2;
    min-width: 0;
}
.pc-request-form-col {
    flex: 1;
    min-width: 0;
}
@media (max-width: 767px) {
    .pc-request-items-col,
    .pc-request-form-col {
        flex: 1 1 100%;
    }
}
/* Блок количества товара в заявке */
.pc-request-item__qty {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.pc-qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    border-radius: 3px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    transition: background 0.15s;
}

.pc-qty-btn:hover {
    background: #e8e8e8;
}

.pc-qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    -moz-appearance: textfield;
}

.pc-qty-input::-webkit-outer-spin-button,
.pc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* На мобилках делаем компактнее */
@media (max-width: 600px) {
    .pc-qty-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .pc-qty-input {
        width: 42px;
        height: 28px;
    }
}


/* ===== ПРОГРЕСС-БАР ===== */
.pc-progress { position: relative; height: 28px; background: #f0f0f1; border-radius: 3px; overflow: hidden; margin-top: 12px; }
.pc-progress__bar { height: 100%; background: #2271b1; border-radius: 3px; transition: width 0.3s ease; min-width: 0; }
.pc-progress__text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.8rem; color: #1e293b; font-weight: 600; white-space: nowrap; text-shadow: 0 1px 2px rgba(255,255,255,0.5); }

/* ===== ШОРТКОДЫ КАТЕГОРИЙ ===== */
.pc-categories-list, .pc-subcategories-list { list-style: none; padding: 0; margin: 0; }
.pc-categories-list li, .pc-subcategories-list li { margin-bottom: 6px; }
.pc-categories-list a, .pc-subcategories-list a { text-decoration: none; color: var(--pc-text); }
.pc-categories-list a:hover, .pc-subcategories-list a:hover { color: var(--pc-accent); }

/* ===== АДМИН ===== */
.pc-ie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; }
@media (max-width: 782px) { .pc-ie-grid { grid-template-columns: 1fr; } }
.pc-ie-card { background: #fff; border: 1px solid #ccd0d4; border-radius: 3px; padding: 24px; }
.pc-ie-card h2 { margin-top: 0; }
.pc-ie-hint { font-size: 0.9rem; color: #646970; line-height: 1.6; margin-bottom: 16px; }
.pc-ie-hint code { background: #f0f0f1; padding: 2px 6px; border-radius: 3px; }
.pc-ie-checkbox { margin: 12px 0; }
.pc-ie-checkbox span { color: #646970; font-size: 0.85rem; }
.pc-ie-label { display: block; margin-bottom: 12px; }
.pc-ie-select { width: 100%; max-width: 300px; }
.pc-ie-result { margin-top: 16px; font-size: 0.9rem; }
.pc-ie-result--ok { color: #00a32a; }
.pc-ie-result--err { color: #d63638; }
.pc-ie-result__detail { margin-top: 10px; padding: 12px; background: #f0f0f1; border-radius: 3px; font-size: 0.85rem; max-height: 200px; overflow-y: auto; }
.pc-ie-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #f0f0f1; border-top-color: #2271b1; border-radius: 50%; animation: pc-spin 0.6s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes pc-spin { to { transform: rotate(360deg); } }

/* ===== СТАТИСТИКА ===== */
.pc-stats { display: flex; gap: 20px; margin-bottom: 30px; }
@media (max-width: 782px) { .pc-stats { flex-direction: column; } }
.pc-stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 3px; padding: 24px 32px; text-align: center; min-width: 140px; }
.pc-stat-card__num { display: block; font-size: 2rem; font-weight: 700; color: #2271b1; line-height: 1.2; }
.pc-stat-card__label { display: block; font-size: 0.9rem; color: #646970; margin-top: 4px; }

/* ===== ОПАСНАЯ ЗОНА ===== */
.pc-danger-zone { max-width: 800px; background: #fef2f2; border: 1px solid #fca5a5; border-radius: 3px; padding: 28px; }
.pc-danger-zone__title { color: #b91c1c; margin-top: 0; }
.pc-danger-zone__warn { display: flex; align-items: flex-start; gap: 8px; color: #991b1b; font-size: 0.9rem; margin-bottom: 24px; padding: 12px 16px; background: #fee2e2; border-radius: 6px; }
.pc-danger-actions { display: flex; flex-direction: column; gap: 16px; }
.pc-danger-action { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #fca5a5; border-radius: 3px; padding: 16px 20px; }
.pc-danger-action p { margin: 0; font-size: 0.95rem; }
.pc-danger-action--full { border-color: #dc2626; background: #fff5f5; }
.pc-danger-action--full p { font-weight: 600; }
.pc-danger-btn { border-color: #fca5a5 !important; color: #b91c1c !important; background: #fff !important; flex-shrink: 0; }
.pc-danger-btn:disabled { opacity: 0.5; cursor: default !important; }
.pc-danger-btn--all { background: #dc2626 !important; color: #fff !important; border-color: #dc2626 !important; font-weight: 600; }
@media (max-width: 600px) { .pc-danger-action { flex-direction: column; gap: 12px; } .pc-danger-btn { width: 100%; text-align: center; } }

.pc-menu-request a::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M19 13h-6v6H9v-6H3v-2h6V5h4v6h6v2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M19 13h-6v6H9v-6H3v-2h6V5h4v6h6v2z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
    background-color: #333; /* цвет иконки */
    vertical-align: middle;
    margin-right: 6px;
}
/* === Слайдер брендов === */
.pc-brands-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 10px 50px;
}
.pc-brands-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.pc-brands-track::-webkit-scrollbar { display: none; }
.pc-brand-slide {
    flex: 0 0 160px;
    scroll-snap-align: start;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
}
.pc-brand-slide:hover { transform: translateY(-3px); }
.pc-brand-slide__img {
    width: 160px;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.pc-brand-slide__img img {
    max-width: 100%;
    max-height: 100%;
	border-radius: 3px;
    object-fit: contain;
}
.pc-brand-slide__placeholder {
    font-size: 36px;
    font-weight: 700;
    color: #aaa;
}
.pc-brand-slide__name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.pc-brand-slide__count {
    font-size: 12px;
    color: #999;
}
.pc-brands-btn {
    position: absolute;
    top: 60px;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}
.pc-brands-btn:hover {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}
.pc-brands-btn--prev { left: 5px; }
.pc-brands-btn--next { right: 5px; }
@media (max-width: 768px) {
    .pc-brand-slide, .pc-brand-slide__img { width: 130px; }
    .pc-brand-slide__img { height: 100px; }
    .pc-brands-btn { width: 34px; height: 34px; font-size: 12px; top: 50px; }
}
@media (max-width: 480px) {
    .pc-brand-slide, .pc-brand-slide__img { width: 110px; }
    .pc-brand-slide__img { height: 88px; }
    .pc-brands-btn { width: 30px; height: 30px; font-size: 11px; top: 44px; }
}
/* Кнопка "Загрузить ещё" */
.pc-load-more-wrap {
    text-align: center;
    margin: 30px 0;
}
.pc-load-more-btn {
    min-width: 200px;
}
.pc-load-more-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Галерея слева от основной картинки */
.pc-product__media {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pc-product__gallery-col {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 500px;
}

.pc-gallery-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: none;
    display: block;
}

.pc-gallery-thumb.active {
    border-color: #6982ff;
}

.pc-gallery-thumb__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pc-product__main-img-col {
    flex: 1;
    min-width: 300px;
}

.pc-product__img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 4px;
}

/* Адаптив: на мобильных галерея сверху */
@media (max-width: 600px) {
    .pc-product__media {
        flex-direction: column;
    }
    .pc-product__gallery-col {
        flex: 0 0 auto;
        flex-direction: row;
        overflow-x: auto;
        max-height: none;
        order: 2;
    }
    .pc-product__main-img-col {
        order: 1;
    }
}
/* ===== СЧЁТЧИК + КНОПКА НА СТРАНИЦЕ ТОВАРА ===== */
.pc-product__actions {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin-top: 16px;
}

.pc-single-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Перебиваем стили из заявки — только на странице товара */
.pc-product__actions .pc-qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    border-radius: 3px;
}

.pc-product__actions .pc-qty-input {
    width: 64px;
    height: 40px;
    text-align: center;
    padding: 0;
    margin: 0;
}

@media (max-width: 576px) {
    .pc-product__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .pc-single-qty {
        width: 100%;
        justify-content: center;
    }
}
/* Бейдж скидки */
.pc-card,
.pc-list-item {
    position: relative;
}

.pc-discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #e53935;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 3px;
    z-index: 5;
    line-height: 1;
    white-space: nowrap;
}
.pc-card__img-wrap {
    position: relative;
    overflow: hidden;
}

.pc-list-item__img-wrap {
    position: relative;
    overflow: hidden;
}