/* SW Liketoys — опт. Вид в духе прежней версии (Aspro Max): белый верх, малиновая полоса меню #d2334d,
   лёгкая сетка без тяжёлых скриптов. Системные шрифты, инлайн-SVG. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.sw-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px; line-height: 1.45; color: #333; background: #f5f5f5;
}
a { color: #333; text-decoration: none; }
a:hover { color: #d2334d; text-decoration: none; }
img { max-width: 100%; }
.sw-wrap { max-width: 1280px; margin: 0 auto; padding: 0 14px; }

/* === Шапка: белый верх === */
.sw-topbar { background: #fff; border-bottom: 1px solid #ececec; }
.sw-topbar-in { display: flex; align-items: center; gap: 20px; padding: 12px 14px; flex-wrap: wrap; }
.sw-logo { display: flex; align-items: center; flex-shrink: 0; }
.sw-logo-img { height: 52px; display: block; }
.sw-search { display: flex; flex: 1; min-width: 240px; }
.sw-search input {
    flex: 1; padding: 10px 14px; border: 2px solid #d2334d; border-right: 0;
    border-radius: 4px 0 0 4px; font-size: 15px; min-width: 0; background: #fff; outline: none;
}
.sw-search button {
    padding: 10px 22px; border: 0; border-radius: 0 4px 4px 0; background: #d2334d;
    color: #fff; font-weight: 700; cursor: pointer; font-size: 15px; white-space: nowrap;
}
.sw-search button:hover { background: #b82b42; }
.sw-top-contacts { text-align: right; flex-shrink: 0; }
.sw-phone { display: block; font-size: 19px; font-weight: 800; color: #222; white-space: nowrap; }
.sw-phone:hover { color: #d2334d; }
.sw-callback { font-size: 13px; color: #d2334d; border-bottom: 1px dashed #d2334d; }
.sw-callback:hover { color: #b82b42; border-color: #b82b42; }
.sw-top-user { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.sw-top-user a { font-weight: 600; white-space: nowrap; }
.sw-login { display: inline-flex; align-items: center; gap: 6px; color: #222; }
.sw-login:hover { color: #d2334d; }
.sw-user { color: #888; font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-logout { color: #999; font-size: 13px; }

/* === Шапка: малиновая полоса меню === */
.sw-menubar { background: #d2334d; position: relative; }
.sw-menubar::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 26px;
    background: linear-gradient(to right, rgba(210, 51, 77, 0), #d2334d);
    pointer-events: none;
}
.sw-menubar-in { display: flex; align-items: stretch; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; padding-right: 26px; }
.sw-menubar a {
    color: #fff; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .4px;
    padding: 13px 16px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
    border-bottom: 3px solid transparent;
}
.sw-menubar a:hover { background: #b82b42; color: #fff; }
.sw-menubar a.sw-menu-catalog { padding-left: 0; }
.sw-menubar a.sw-menu-cart { margin-left: auto; }
.sw-menubar a.sw-menu-cart svg, .sw-menubar a.sw-menu-catalog svg { flex-shrink: 0; }

/* === Контент === */
.sw-main { padding-top: 18px; padding-bottom: 40px; min-height: 60vh; }
h1 { font-size: 26px; margin: 0 0 14px; color: #222; }
h2 { font-size: 21px; margin: 26px 0 12px; color: #222; text-transform: uppercase; letter-spacing: .3px; }

/* Слайдер-баннер (CSS-fade, без скриптов) */
.sw-slider { position: relative; margin: 16px 0 4px; border-radius: 6px; overflow: hidden; aspect-ratio: 1600 / 420; max-height: 420px; background: #fff; }
.sw-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-slider img:first-child { position: relative; }
.sw-slider img.sw-slide-n { animation: swFade 9s infinite; }
@keyframes swFade { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@media (max-width: 720px) { .sw-slider { aspect-ratio: auto; height: 180px; } }

/* Быстрая полоса оптовика (прайс-заказ/корзина/кабинет) */
.sw-quickbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.sw-quickbar a {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 9px 18px;
    font-weight: 700; color: #d2334d;
}
.sw-quickbar a:hover { background: #d2334d; border-color: #d2334d; color: #fff; }

/* Быстрые ссылки на /opt/ (карточки-кнопки) */
.sw-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 22px; }
.sw-quick a {
    display: block; background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 14px;
    font-weight: 700; text-align: center; color: #d2334d;
}
.sw-quick a:hover { background: #d2334d; border-color: #d2334d; color: #fff; }

/* Тизеры преимуществ — как на старом сайте */
.sw-tizers { background: #fff; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; margin-top: 16px; }
.sw-tizers-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 20px 14px; }
.sw-tizer { text-align: center; padding: 6px 10px; border-right: 1px solid #f0f0f0; }
.sw-tizer:last-child { border-right: 0; }
.sw-tizer svg { width: 46px; height: 46px; color: #d2334d; }
.sw-tizer b { display: block; margin: 8px 0 3px; font-size: 15px; color: #222; }
.sw-tizer span { color: #888; font-size: 13px; }

/* «Весь каталог» под плитками главной */
.sw-allcat { margin: 6px 0 10px; }
.sw-allcat a { font-weight: 700; color: #d2334d; font-size: 15px; }
.sw-allcat a:hover { color: #b82b42; }
.sw-arr { font-weight: 400; }

/* Плитки разделов */
.sw-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin: 14px 0 16px; }
.sw-tile {
    border: 1px solid #e3e3e3; border-radius: 6px; background: #fff; overflow: hidden;
    text-decoration: none; color: #333; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s;
}
.sw-tile:hover { border-color: #d2334d; box-shadow: 0 4px 14px rgba(210, 51, 77, .14); text-decoration: none; color: #333; }
.sw-tile-img { height: 150px; background: #f4f6fa; display: flex; align-items: center; justify-content: center; }
.sw-tile-img svg { width: 44px; height: 44px; color: #c3cad6; }
.sw-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-tile-name { padding: 10px 12px 4px; font-weight: 700; font-size: 14px; color: #222; }
.sw-tile-cnt { padding: 0 12px 12px; color: #999; font-size: 12px; }
.sw-sort-active { font-weight: 800; color: #d2334d; text-decoration: none; border-bottom: 2px solid #d2334d; }

/* Список разделов (свободный шаблон sw-list) */
.sw-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sw-sections a {
    display: block; background: #fff; border: 1px solid #e3e3e3; border-radius: 6px;
    padding: 14px; font-weight: 700; color: #333;
}
.sw-sections a:hover { border-color: #d2334d; color: #d2334d; }
.sw-sections .cnt { color: #999; font-weight: 400; font-size: 13px; display: block; margin-top: 4px; }

/* Таблица каталога (опт) */
.sw-table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; }
table.sw-table { border-collapse: collapse; width: 100%; min-width: 760px; }
table.sw-table th {
    position: sticky; top: 0; z-index: 2;
    background: #f2f2f2; text-align: left; padding: 9px 10px; font-size: 13px;
    color: #777; text-transform: uppercase; letter-spacing: .3px; border-bottom: 2px solid #e3e3e3;
    white-space: nowrap;
}
table.sw-table td { padding: 5px 8px; border-bottom: 1px solid #efefef; vertical-align: middle; }
table.sw-table tr:hover td { background: #fdf5f6; }
table.sw-table tr:target td { background: #fff7d6; }
@media (max-width: 900px) { .sw-table-wrap { max-height: 85vh; overflow: auto; } }
.sw-img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: #f2f2f2; display: block; }
.sw-art { color: #d2334d; font-weight: 800; white-space: nowrap; }
.sw-name { font-weight: 600; min-width: 200px; }
.sw-name small { display: block; color: #999; font-weight: 400; }
.sw-price { white-space: nowrap; font-weight: 800; color: #222; }
.sw-stock { white-space: nowrap; }
.sw-instock { color: #128a48; font-weight: 700; }
.sw-outstock { color: #b3b3b3; }
.sw-qty {
    width: 64px; padding: 7px 8px; border: 1px solid #ccc; border-radius: 4px;
    font-size: 15px; text-align: center;
}
.sw-btn {
    background: #d2334d; color: #fff; border: 0; border-radius: 4px; padding: 8px 14px;
    font-weight: 700; cursor: pointer; white-space: nowrap; font-size: 14px;
}
.sw-btn:hover { background: #b82b42; }
.sw-added { color: #128a48; font-weight: 700; }

/* Системные кнопки форм (авторизация, профиль, заказ) — в фирменный цвет */
.sw-main input[type="submit"]:not(.sw-btn),
.sw-main button[type="submit"]:not(.sw-btn) {
    background: #d2334d; color: #fff; border: 0; border-radius: 4px;
    padding: 10px 22px; font-weight: 700; font-size: 15px; cursor: pointer;
}
.sw-main input[type="submit"]:not(.sw-btn):hover,
.sw-main button[type="submit"]:not(.sw-btn):hover { background: #b82b42; }

/* Прочее */
.sw-crumbs { margin-bottom: 12px; color: #888; font-size: 13px; }
.sw-note { background: #fff; border: 1px solid #e3e3e3; border-left: 4px solid #d2334d; border-radius: 6px; padding: 12px 14px; margin-bottom: 16px; color: #555; }
.sw-total { background: #eafaf1; border: 1px solid #bfe8d2; color: #128a48; border-radius: 6px; padding: 10px 14px; margin-top: 12px; font-weight: 800; }
.sw-empty { color: #999; padding: 20px 0; }

/* Футер — тёмный, как в прежней версии */
.sw-footer { background: #23262d; color: #a9b1bd; margin-top: 34px; }
.sw-footer-in { display: grid; grid-template-columns: 1fr 1.2fr 1.3fr; gap: 24px; padding: 30px 14px 26px; }
.sw-footer-col { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.sw-footer-title { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; font-size: 14px; margin-bottom: 6px; }
.sw-footer-col a { color: #a9b1bd; }
.sw-footer-col a:hover { color: #fff; }
.sw-footer-col span { color: #8a93a1; }
.sw-footer-phone { font-size: 18px !important; font-weight: 800; color: #fff !important; }
.sw-copybar { background: #1b1e24; padding: 12px 0; font-size: 12px; color: #7b8492; }

/* Личный кабинет: сетка плиток и иконки (возврат вида старой темы, 18.09.2026) */
.sale-personal-section-row-flex{display:flex;flex-wrap:wrap;margin:0 -8px}
.sale-personal-section-row-flex .col-lg-4,.sale-personal-section-row-flex .col-md-6,.sale-personal-section-row-flex .col-sm-12,.sale-personal-section-row-flex .col-xs-6{padding:0 8px;box-sizing:border-box}
.sale-personal-section-row-flex .col-xs-6{width:50%}
.sale-personal-section-row-flex .col-sm-12{width:100%}
@media(min-width:768px){.sale-personal-section-row-flex .col-md-6{width:50%}}
@media(min-width:1200px){.sale-personal-section-row-flex .col-lg-4{width:33.3333%}}
.sale-personal-section-index-block-ico svg{width:64px;height:64px;display:block;margin:0 auto}
.sale-personal-section-index-block-link .sale-personal-section-index-block-name{color:#333}
.sale-personal-section-index-block-link:hover .sale-personal-section-index-block-name{color:#d2334d}

/* Адаптив */
@media (max-width: 1000px) {
    .sw-tizers-in { grid-template-columns: repeat(2, 1fr); }
    .sw-tizer { border-right: 0; }
}
@media (max-width: 860px) {
    .sw-footer-in { grid-template-columns: 1fr; gap: 18px; }
    .sw-topbar-in { gap: 12px; }
}
@media (max-width: 720px) {
    .sw-logo-img { height: 42px; }
    .sw-search { order: 3; flex-basis: 100%; }
    .sw-menubar a { padding: 12px 12px; font-size: 13px; }
    .sw-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .sw-tile-img { height: 110px; }
    h1 { font-size: 21px; }
}
@media (max-width: 480px) {
    .sw-tizers-in { grid-template-columns: 1fr; }
    .sw-top-contacts { text-align: left; }
}
