/* SW Liketoys — опт. Скорость: системные шрифты, без картинок-украшений */
* { 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: #1d2433; background: #f5f7fb;
}
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.sw-wrap { max-width: 1280px; margin: 0 auto; padding: 0 14px; }

/* Шапка */
.sw-header { background: #16213e; color: #fff; }
.sw-header-in { display: flex; align-items: center; gap: 16px; padding: 10px 14px; flex-wrap: wrap; }
.sw-logo { display: flex; align-items: center; background: #fff; border-radius: 10px; padding: 5px 12px; }
.sw-logo-img { height: 34px; display: block; }
.sw-logo span { color: #4ecca3; }
.sw-search { display: flex; flex: 1; min-width: 220px; gap: 0; }
.sw-search input {
    flex: 1; padding: 9px 12px; border: 0; border-radius: 10px 0 0 10px; font-size: 15px; min-width: 0;
}
.sw-search button {
    padding: 9px 16px; border: 0; border-radius: 0 10px 10px 0; background: #e94560;
    color: #fff; font-weight: 700; cursor: pointer; font-size: 15px;
}
.sw-header-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sw-header-links a { color: #cdd6ea; font-weight: 600; }
.sw-header-links a:hover { color: #fff; }
.sw-user { color: #4ecca3; font-weight: 700; }

/* Контент */
.sw-main { padding-top: 18px; padding-bottom: 40px; min-height: 60vh; }
h1 { font-size: 24px; margin: 0 0 14px; }
h2 { font-size: 19px; margin: 22px 0 10px; }

/* Плитки разделов */
.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 #dde3ee; border-radius: 12px;
    padding: 14px; font-weight: 700; color: #1d2433;
}
.sw-sections a:hover { border-color: #1d4ed8; text-decoration: none; }
.sw-sections .cnt { color: #8a93a8; font-weight: 400; font-size: 13px; display: block; margin-top: 4px; }
.sw-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 22px; }
.sw-quick a {
    display: block; background: #16213e; color: #fff; border-radius: 12px; padding: 14px;
    font-weight: 800; text-align: center; font-size: 16px;
}
.sw-quick a:hover { background: #1d4ed8; text-decoration: none; }

/* Таблица каталога (опт) */
.sw-table-wrap { overflow-x: auto; background: #fff; border: 1px solid #dde3ee; border-radius: 12px; }
table.sw-table { border-collapse: collapse; width: 100%; min-width: 760px; }
table.sw-table th {
    position: sticky; top: 0; z-index: 2;
    background: #eef2f7; text-align: left; padding: 9px 10px; font-size: 13px;
    color: #5d6880; text-transform: uppercase; letter-spacing: .3px; border-bottom: 2px solid #dde3ee;
    white-space: nowrap;
}
table.sw-table td { padding: 5px 8px; border-bottom: 1px solid #eef1f7; vertical-align: middle; }
table.sw-table tr:hover td { background: #f8fafd; }
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: 8px; background: #eef2f7; display: block; }
.sw-art { color: #e94560; font-weight: 800; white-space: nowrap; }
.sw-name { font-weight: 600; min-width: 200px; }
.sw-name small { display: block; color: #8a93a8; font-weight: 400; }
.sw-price { white-space: nowrap; font-weight: 800; color: #16213e; }
.sw-stock { white-space: nowrap; }
.sw-instock { color: #128a48; font-weight: 700; }
.sw-outstock { color: #b3bccd; }
.sw-qty {
    width: 64px; padding: 7px 8px; border: 1px solid #c8d0e0; border-radius: 8px;
    font-size: 15px; text-align: center;
}
.sw-btn {
    background: #e94560; color: #fff; border: 0; border-radius: 8px; padding: 8px 12px;
    font-weight: 700; cursor: pointer; white-space: nowrap; font-size: 14px;
}
.sw-btn:hover { background: #d13a54; }
.sw-added { color: #128a48; font-weight: 700; }

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

/* Футер */
.sw-footer { background: #16213e; color: #9aa7c4; margin-top: 30px; }
.sw-footer-in { padding: 18px 14px; display: grid; gap: 6px; font-size: 14px; }
.sw-footer a { color: #cdd6ea; }
.sw-copy { font-size: 12px; color: #6b7899; }

@media (max-width: 720px) {
    .sw-header-in { gap: 8px; }
    h1 { font-size: 20px; }
}
.sw-bannerlink { display: block; margin: 12px 0 4px; }
.sw-bannerlink img { width: 100%; display: block; border-radius: 12px; }

.sw-box { color: #5d6880; font-size: 13px; white-space: nowrap; }
.sw-crumbs a.sw-sort-active { color: #e94560; font-weight: 800; text-decoration: none; }
