@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');
body {
    margin: 0;
    font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
    background: #f8fafc;
    color: #23272f;
    min-height: 100vh;
}
a {
    color: inherit;
    text-decoration: none;
    background: none;
    border: none;
    outline: none;
}
.header-wrap,
.footer-wrap,
.content-wrap {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.header-flex {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* Для контента и футера */
.content-inner,
.footer-inner {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}
header {
    background: linear-gradient(90deg, #9b59b6 0%, #bb8fce 100%);
    color: #fff;
    padding: 18px 0;
    box-shadow: 0 2px 8px rgba(155,89,182,0.08);
}
.header-wrap,
.header-flex {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
}

.site-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
}

.site-logo-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(155,89,182,0.10);
}

.site-title {
    font-size: 1.24em;
    font-weight: bold;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 2px;
    display: block;
}
.site-subtitle {
    display: block;
    font-size: 0.98em;
    color: #ffeaa7;
    font-weight: 400;
    letter-spacing: 0.1px;
    margin-top: 2px;
    line-height: 1.13;
}

.header-search {
    flex: 0 0 auto;
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    margin: 0 16px;
    position: relative;
}
.header-search input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 7px 11px;
    border: 1.5px solid #9b59b6;
    border-radius: 8px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    /* min-width: 250px; <-- УДАЛИ! */
    
}
.header-search input:focus {
    border-color: #bb8fce;
}
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    z-index: 300;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 14px rgba(155,89,182,0.14);
    border-radius: 0 0 8px 8px;
    display: none;
    box-sizing: border-box;
    padding-left: 11px;
    padding-right: 11px;
}
.search-results.active {
    display: block;
}
.search-results a {
    display: block;
    padding: 9px 13px;
    color: #23272f;
    text-decoration: none;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.15s;
    font-size: 1em;
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover {
    background: #d2b4de;
    color: #23272f;
}

.main-menu {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: 0; /* не auto! */
    min-width: 0;
}
.main-menu a {
    color: #fff;
    text-decoration: none;
    margin: 0 4px;
    font-weight: 500;
    font-size: 1.05em;
    letter-spacing: 0.3px;
    transition: color 0.2s, background 0.2s;
    padding: 6px 10px;
    border-radius: 5px;
    white-space: nowrap;
}
.main-menu a:hover {
    background: #fff;
    color: #9b59b6;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 14px;
    font-weight: 500;
    font-size: 1.08em;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
nav a:hover {
    color: #d2b4de;
}

/* Контент ограничен по ширине */
.content-wrap {
    flex: 1;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding-left: 32px;
}

.container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 24px 0;
}

.products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    /* Убираем align-items: center или stretch тут! */
    /* Нет margin, нет padding — пусть контейнер тянется */
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(155,89,182,0.08);
    padding: 18px 16px;
    width: 240px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    transition: box-shadow 0.2s, transform 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.product-card.big {
    position: relative;
    overflow: hidden;
}
/* ОПТИМИЗАЦИЯ */
/* Адаптив: на планшетах плитка по 2 в ряд */
@media (max-width: 900px) {
    .products-list {
        gap: 16px;
    }
    .product-card {
        width: 44vw;
        min-width: 160px;
        max-width: 340px;
    }
}
/* На мобиле — карточка одна в ряд и по центру */
@media (max-width: 600px) {
    .products-list {
        gap: 14px;
        justify-content: center;
        flex-direction: row;
    }
    .product-card {
        width: 97vw;
        max-width: 370px;
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
    }
}
/* */

.product-card:hover {
    box-shadow: 0 4px 16px rgba(155,89,182,0.18);
    transform: translateY(-2px) scale(1.03);
}
.product-card img {
    width: 95px;
    height: 95px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #f4f8fb;
}
.product-card strong {
    font-size: 1.1em;
    margin-bottom: 7px;
    display: block;
    color: #9b59b6;
}
.product-card .old-price {
    color: #aaa;
    text-decoration: line-through;
    margin-left: 8px;
    font-size: 15px;
}
.product-card .discount {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 8px;
    font-size: 15px;
}
.product-card a {
    margin-top: 10px;
    text-decoration: none;
    display: inline-block;
    background: #bb8fce;
    color: #23272f;
    font-weight: bold;
    padding: 7px 24px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.product-card a:hover {
    background: #9b59b6;
    color: #fff;
}
.product-ribbon {
    position: absolute;
    top: 0px;
    left: -17px;
    width: 95px;
    height: 28px;
    background: #fcb900;
    color: #23272f;
    font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-34deg);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(252,185,0,0.09);
    pointer-events: none;
    padding: 0;
    border-radius: 4px 0 0 4px;
}
.product-title {
    font-size: 1.19em;
    font-weight: 900;
    color: #23272f;
    margin-bottom: 6px;
    font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
    text-align: center;
    letter-spacing: 0.4px;
}
.product-desc {
    color: #7c7c7c;
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 7px;
}
.product-price {
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 1em;
    color: #7c7c7c;
    text-align: center;
}
.product-price .old-price {
    color: #aaa;
    text-decoration: line-through;
    margin-right: 10px;
    font-size: 14px;
    font-weight: 500;
}
.product-price .new-price {
    color: #9b59b6;
    font-weight: 900;
    font-size: 1em;
    letter-spacing: 0.6px;
}
.product-page {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(155,89,182,0.08);
    padding: 34px 28px;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}
.product-page h2 {
    margin-bottom: 16px;
    color: #9b59b6;
    font-size: 1.4em;
}
.product-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 19px;
    border-radius: 10px;
    background: #f4f8fb;
    box-shadow: 0 1px 6px rgba(155,89,182,0.10);
}
.product-prices {
    margin-top: 15px;
    font-size: 21px;
}
.product-prices .old-price {
    color: #aaa;
    text-decoration: line-through;
    margin-left: 12px;
    font-size: 16px;
}
.product-prices .discount {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 12px;
    font-size: 16px;
}

/* Сайдбар */
.main-layout {
    display: flex;
    align-items: flex-start;
    min-height: 80vh;
    width: 100%;
}

.sidebar {
    width: 330px;
    background: #f9e79f;
    color: #23272f;
    min-height: 80vh;
    box-shadow: 2px 0 12px rgba(155,89,182,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    background: #fcb900;
    color: #23272f;
    padding: 14px 18px;
    font-weight: bold;
    font-size: 1.13em;
    letter-spacing: 1px;
    border-bottom: 1px solid #ffeaa7;
    box-shadow: 0 2px 6px rgba(155,89,182,0.05);
}

.sidebar-menu-icon {
    font-size: 1.5em;
    margin-right: 9px;
}

.sidebar-title {
    font-weight: bold;
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.sidebar-list li {
    border-bottom: 1px solid #fffbe6;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    color: #23272f;
    text-decoration: none;
    transition: background 0.17s, color 0.17s;
    border-radius: 0 20px 20px 0;
}
.sidebar-link:hover {
    background: #bb8fce;
    color: #fff;
}

.sidebar-game-img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 7px;
    margin-right: 13px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(155,89,182,0.10);
    border: 1px solid #dfe6e9;
}

.sidebar-game-title {
    font-size: 1.03em;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Адаптивность */
@media (max-width: 1300px) {
    .header-wrap, .footer-wrap, .content-wrap {
        max-width: 100vw;
        padding-left: 8px;
        padding-right: 8px;
    }
    .container {
        padding-left: 0;
        padding-right: 0;
    }
}
@media (max-width: 900px) {
    .main-layout { flex-direction: column; }
    .sidebar { width: 100%; min-height: unset; position: static; box-shadow: none; }
    .sidebar-header { justify-content: center; }
    .container { padding-left: 0; padding-right: 0; }
    .content-wrap, .content-inner, .header-wrap, .footer-wrap, .footer-inner {
        max-width: 100vw;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Страница игры */
.game-page {
    padding: 0.25rem 1.5rem;
    padding-left: 0.5rem;
}
.game-info p {
    margin: 0 0 12px 0;
    line-height: 1.7;
}
.game-info br {
    line-height: 1.7;
}
.game-info span {
    color: #bb8fce;
}
.game-logo {
    width: 110px;
    height: 110px;
    margin: 12px 0 22px 0;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(155,89,182,0.10);
}

/* Страница товара */
.product-main-grid {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin: 40px 0 48px 0;
    width: 100%;
    box-sizing: border-box;
}
/*
.product-info-block,
.product-form-block {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 16px;
    padding: 32px 28px 28px 28px;
}
*/
.product-info-block {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(155,89,182,0.10);
    color: #23272f;
    padding: 32px 28px 28px 28px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-info-block h1 {
    font-size: 1.36em;
    margin-bottom: 16px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #9b59b6;
    text-align: center;
}
.product-buy-image {
    margin: 0 auto 18px auto;
    max-width: 130px;
    width: 100%;
    height: 130px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(155,89,182,0.10);
    background: #f8fafc;
    object-fit: contain;
    display: block;
}

.product-buy-desc {
    margin-bottom: 12px;
    font-size: 1.07em;
    color: #7c7c7c;
    line-height: 1.7;
    text-align: center;
    font-weight: 400;
}
/* Ленточка скидки */
.product-buy-ribbon {
    position: absolute;
    top: 0px;
    left: -19px;
    width: 95px;
    height: 28px;
    background: #fcb900;
    color: #23272f;
    font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-34deg);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(252,185,0,0.09);
    pointer-events: none;
    padding: 0;
    border-radius: 4px 0 0 4px;
}

/* Цены товара */
.product-buy-prices {
    margin: 14px auto 0 auto;
    text-align: center;
    display: flex;
    align-items: baseline;
    gap: 12px;
    justify-content: center;
}

.product-buy-old-price {
    color: #aaa;
    text-decoration: line-through;
    font-size: 1em;
    font-weight: 500;
}

.product-buy-price-main {
    color: #9b59b6;
    font-weight: 900;
    font-size: 1.16em;
    letter-spacing: 0.6px;
}
.product-form-block {
    background: #f9e79f;
    box-shadow: 0 2px 14px rgba(155,89,182,0.09);
    color: #23272f;
    padding: 1rem;
    border-radius: 14px;
}
.product-buy-form {
    margin-top: 4px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 1.08em;
    font-weight: 600;
    color: #23272f;
}
.form-group input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #7d3c98;
    border-radius: 8px;
    background: #fffbe6;
    color: #23272f;
    font-size: 1em;
    margin-top: 3px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.form-group input:focus {
    border-color: #9b59b6;
}
.form-note {
    font-weight: 400;
    font-size: 0.97em;
    color: #b58b00;
}
.product-buy-bottom {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}
.product-buy-price {
    font-size: 1.35em;
    font-weight: bold;
    color: #7d3c98;
    margin-right: 12px;
}
.product-buy-btn {
    background: #9b59b6;
    border: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px 32px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.product-buy-btn:hover {
    background: #fcb900;
    color: #23272f;
}
.product-buy-policies {
    margin-top: 19px;
}
.policy-link {
    color: #9b59b6;
    font-size: 1em;
    text-decoration: none;
    display: block;
    margin-bottom: 7px;
    transition: color 0.18s;
}
.policy-link.red {
    color: #e74c3c;
    font-weight: bold;
}
.policy-link:hover {
    text-decoration: underline;
    color: #23272f;
}

/* Адаптация для экранов от 1350px и ниже */
@media (max-width: 1350px) {
    .product-main-grid {
        gap: 18px;
        margin: 32px 0 40px 0;
    }
    .product-info-block,
    .product-form-block {
        padding: 18px 10px 18px 10px;
    }
}

/* Планшеты и ниже — блоки в столбик, отступы меньше */
@media (max-width: 900px) {
    .product-main-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .product-info-block,
    .product-form-block {
        min-width: 0;
        width: 100%;
    }
}
.mobile-menu-bars {
    display: none;
}
/* На телефонах — еще меньше паддинги */
@media (max-width: 600px) {
    .product-info-block,
    .product-form-block {
        padding: 10px 2vw 10px 2vw;
        border-radius: 10px;
    }
    .product-main-grid {
        margin: 10px 0 16px 0;
        gap: 10px;
    }
}
@media (max-width: 900px) {
    .header-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-left: 8px;
        padding-right: 8px;
    }
    .header-top {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 12px;
        padding-bottom: 8px;
    }
    .site-logo {
        justify-content: center;
        width: 100%;
        min-width: 0;
        gap: 8px;
    }
    .header-bottom {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    .header-search {
        flex: 1 1 0%;
        margin: 0;
        max-width: none;
        min-width: 0;
        width: 100%;
    }
    .header-search input {
        font-size: 1em;
    }
    .mobile-menu-bars {
        display: block;
        margin-left: 12px;
        margin-right: 0;
        width: 36px;
        height: 36px;
    }
    .main-menu {
        display: none !important;
    }
}
@media (max-width: 900px) {
    .header-bottom {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    .header-search {
        flex: 1 1 auto;
        margin: 0;
        max-width: none;
        min-width: 0;
        width: 100%;
    }
    .mobile-menu-bars {
        flex: 0 0 auto;
        display: block;
        margin-left: 12px;
        margin-right: 0;
        width: 36px;
        height: 36px;
        align-self: stretch;
    }
}
@media (min-width: 901px) {
    .header-flex {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
        padding-left: 24px;
        padding-right: 24px;
    }
    .header-top,
    .header-bottom {
        display: contents;
        padding: 0;
        margin: 0;
    }
    .header-search {
        min-width: 160px;
        width: auto;
        flex: 1 1 0;
        max-width: none;
        margin: 0 16px;
        display: flex;
    }
    .main-menu {
        display: flex !important;
        margin-left: auto;
        gap: 8px;
        flex-wrap: wrap;
    }
    .mobile-menu-bars {
        display: none !important;
    }
}

/* Главная страница */
.games-grid {
    display: flex;
    gap: 30px;
    padding: 28px 0 0 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    background: #f8fafc;
}

.game-card {
    background: #fff;
    border: none;
    border-radius: 14px;
    width: 200px;
    min-height: 190px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 22px;
    text-decoration: none;
    transition: box-shadow 0.18s, transform 0.18s;
    box-shadow: 0 2px 12px rgba(155,89,182,0.08);
    cursor: pointer;
}

.game-card:hover {
    box-shadow: 0 8px 28px rgba(155,89,182,0.13);
    transform: translateY(-3px) scale(1.03);
}

.game-card-img {
    width: 80px;
    height: 80px;
    border-radius: 9px;
    object-fit: cover;
    margin-top: 22px;
    margin-bottom: 13px;
    background: #f8fafc;
    box-shadow: 0 1px 6px rgba(155,89,182,0.08);
    display: block;
}

.game-card-title {
    width: 100%;
    color: #23272f;
    font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
    font-size: 1.07em;
    font-weight: 700;
    text-align: center;
    padding: 8px 0 4px 0;
    letter-spacing: 0.3px;
    background: none;
    border: none;
}
.game-card-choose {
    display: block;
    margin: 8px 0 0px 0;
    text-align: center;
    font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: #9b59b6;
    letter-spacing: 0.4px;
    cursor: pointer;
    background: none;
    border-radius: 7px;
    transition: color 0.18s;
}
.game-card:hover .game-card-choose {
    color: #bb8fce;
    text-decoration: underline;
}
@media (max-width: 900px) {
    .games-grid {
        gap: 18px;
        justify-content: center;
    }
    .game-card {
        width: 44vw;
        min-width: 140px;
        max-width: 190px;
    }
}
@media (max-width: 600px) {
    .games-grid {
        gap: 10px;
        justify-content: center;
    }
    .game-card {
        width: 48vw;            /* ~2 карточки в строке, с учётом gap */
        min-width: 140px;
        max-width: 220px;       /* чтобы не растягивались на планшете */
        margin-left: 0;
        margin-right: 0;
    }
    .game-card-img {
        width: 75px;
        height: 75px;
        margin-top: 16px;
        margin-bottom: 10px;
    }
}
@media (max-width: 470px) {
    .games-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding-left: 2px;
        padding-right: 2px;
        align-items: start;
    }
    .game-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 8px 4px 0 4px;
        border-radius: 10px;
        box-sizing: border-box;
    }
    .game-card-img {
        width: 54px;
        height: 54px;
        margin-top: 10px;
        margin-bottom: 6px;
        border-radius: 7px;
    }
    .game-card-title {
        font-size: 0.98em;
        padding: 4px 0 2px 0;
    }
    .game-card-choose {
        font-size: 0.96em;
        margin: 4px 0 0 0;
    }
}
/* */
@media (max-width: 900px) {
    .sidebar-list {
        display: none;
    }
    .sidebar-list.active {
        display: block;
    }
    .sidebar-header.sidebar-toggle {
        width: 100%;
        background: #fcb900;
        color: #23272f;
        font-weight: bold;
        font-size: 1.15em;
        border: none;
        padding: 16px 0;
        text-align: center;
        cursor: pointer;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sidebar-menu-icon {
        font-size: 1.35em;
        margin-right: 8px;
        transition: transform 0.18s;
    }
    .sidebar-toggle.open .sidebar-menu-icon {
        transform: rotate(180deg);
    }
}

/* Сортировка каталога */
.products-sort {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    color: #23272f;
    font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-selected {
    background: #bb8fce;
    border: none;
    color: #23272f;
    font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
    font-weight: 800;
    font-size: 0.97em;
    cursor: pointer;
    padding: 7px 18px 7px 14px;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(155,89,182,0.10);
    display: flex;
    align-items: center;
    transition: background 0.18s, color 0.18s;
}

.sort-selected .arrow-down {
    margin-left: 8px;
    font-size: 1.06em;
    transition: transform 0.13s;
    color: #23272f;
}

.sort-dropdown.open .arrow-down {
    transform: rotate(-180deg);
}

.sort-options {
    position: absolute;
    left: 0;
    top: 110%;
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(155,89,182,0.13);
    z-index: 100;
    padding: 4px 0;
    display: none;
    flex-direction: column;
    font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
    font-size: 0.99em;
    font-weight: 700;
}

.sort-dropdown.open .sort-options {
    display: flex;
}

.sort-options a {
    color: #23272f;
    background: #fff;
    font-size: 0.97em;
    font-weight: 700;
    padding: 9px 18px;
    text-decoration: none;
    display: block;
    border-radius: 6px;
    transition: background 0.16s, color 0.16s;
}

.sort-options a.active,
.sort-options a:hover {
    background: #bb8fce;
    color: #23272f;
}
/* Футер */
footer {
    background: #23272f;
    color: #fff;
    text-align: center;
    padding: 13px 0;
    margin-top: 40px;
    font-size: 15px;
    letter-spacing: 0.4px;
    box-shadow: 0 -2px 8px rgba(155,89,182,0.05);
}
/* Конец футера */

@media (max-width: 900px) {
    body {
        overflow-x: hidden !important;
    }
    .content-wrap,
    .content-inner,
    .container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .product-main-grid {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 18px;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .product-info-block,
    .product-form-block {
        width: 100% !important;
        max-width: 100% !important;      /* убираем ограничение 370px */
        margin: 0 !important;            /* убираем центрирование */
        box-sizing: border-box !important;
        padding: 18px 3vw !important;    /* аккуратный внутренний отступ */
    }
}
@media (max-width: 600px) {
    .product-info-block,
    .product-form-block {
        padding: 10px 2vw !important;
    }
}

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.98em;
    margin-bottom: 18px;
    gap: 6px;
    color: #7d3c98;
    font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
}
.breadcrumb-link {
    color: #9b59b6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}
.breadcrumb-link:hover {
    color: #fcb900;
    text-decoration: underline;
}
.breadcrumb-sep {
    color: #bbb;
    margin: 0 2px;
    font-size: 1.12em;
    font-weight: 700;
    user-select: none;
}
.breadcrumb-current {
    color: #23272f;
    font-weight: 900;
}
@media (max-width: 600px) {
    .breadcrumbs {
        font-size: 0.92em;
        margin-bottom: 12px;
    }
}
/* конец хлебных крошек */

/* выбор сервера в товаре */
.form-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #7d3c98;
    border-radius: 8px;
    background: #fffbe6;
    color: #23272f;
    font-size: 1em;
    margin-top: 3px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
    appearance: none;            /* убирает дефолтную стрелку в Chrome/Edge */
    -webkit-appearance: none;    /* убирает дефолтную стрелку в Safari */
    -moz-appearance: none;       /* убирает дефолтную стрелку в Firefox */
}

/* Кастомная стрелка для селекта */
.form-group {
    position: relative;
}
.form-group select {
    background-image:
      url("data:image/svg+xml;utf8,<svg fill='none' stroke='%239b59b6' stroke-width='2' viewBox='0 0 24 24' width='18' height='18' xmlns='http://www.w3.org/2000/svg'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px 18px;
    /* чтобы текст не залезал на стрелку */
    padding-right: 36px;
}

/* Фокус */
.form-group select:focus {
    border-color: #9b59b6;
}

/* Для мобильных — можно чуть уменьшить */
@media (max-width: 600px) {
    .form-group select {
        font-size: 0.97em;
        padding: 8px 9px;
    }
}
/* */
/* футер */
footer.footer-main {
  background: #23272f;
  color: #fff;
  margin-top: 40px;
  font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 0;
  padding-top: 34px;
  padding-bottom: 14px;
}

.footer-col {
  min-width: 180px;
  flex: 1 1 0;
  margin-bottom: 0;
  text-align: center;
}

.footer-logo-col {
  max-width: 320px;
  min-width: 180px;
  flex: 1 1 190px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  justify-content: center;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 1px 6px rgba(155,89,182,0.10);
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.footer-site-title {
  font-size: 1.12em;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
}

.footer-site-subtitle {
  font-size: 0.97em;
  color: #ffeaa7;
  font-weight: 400;
  letter-spacing: 0.1px;
}

.footer-desc {
  font-size: 0.98em;
  color: #d2b4de;
  margin-top: 3px;
  line-height: 1.5;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.footer-links a {
  color: #fcb900;
  text-decoration: none;
  transition: color 0.14s;
  font-size: 1em;
  font-weight: 500;
  text-align: center;
  margin: 2px 0;
}

.footer-links a:hover {
  color: #bb8fce;
  text-decoration: underline;
}

.footer-col-title {
  font-weight: bold;
  color: #bb8fce;
  margin-bottom: 8px;
  font-size: 1.07em;
  letter-spacing: 0.3px;
  text-align: center;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1em;
  margin-bottom: 2px;
  text-align: center;
}

.footer-contact-icon {
  min-width: 20px;
  text-align: center;
  font-size: 1.17em;
}

.footer-bottom {
  background: none;
  color: #bbb;
  text-align: center;
  padding: 13px 0 11px 0;
  font-size: 0.97em;
  letter-spacing: 0.3px;
  border-radius: 0;
}

.footer-dev {
  margin-left: 8px;
  color: #bb8fce;
  font-size: 0.98em;
}

/* Адаптив */
@media (max-width: 900px) {
  .footer-grid {
    flex-direction: column;
    gap: 22px;
    align-items: center;
    padding-top: 22px;
    padding-bottom: 7px;
  }
  .footer-col, .footer-logo-col {
    max-width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    font-size: 0.98em;
    margin-bottom: 0;
  }
  .footer-logo-img {
    width: 38px;
    height: 38px;
  }
  .footer-site-title {
    font-size: 1em;
  }
  .footer-site-subtitle {
    font-size: 0.93em;
  }
  .footer-bottom {
    font-size: 0.93em;
    padding-bottom: 8px;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    padding: 0 6px;
  }
  .footer-grid {
    gap: 16px;
    padding-top: 17px;
    padding-bottom: 0;
  }
  .footer-col, .footer-logo-col {
    font-size: 0.97em;
  }
  .footer-logo-img {
    width: 32px;
    height: 32px;
  }
  .footer-desc {
    font-size: 0.94em;
  }
}
/* */