﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Header */
header {
    background: linear-gradient(135deg, #3c80f9 0%, #3c80f9 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #BFFF00;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3c80f9;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 30px;
    flex: 1;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Header Navigation with Dropdowns */
.header-nav {
    display: flex;
    gap: 30px;
    flex: 1;
}

.nav-dropdown {
    position: relative;
}

.header-nav:not(.mobile) .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 8px 0;
    min-width: 200px;
    z-index: 1000;
    margin-top: 8px;
}

.header-nav:not(.mobile) .nav-dropdown.active .dropdown-menu {
    display: block;
}

.nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    transition: opacity 0.3s;
}

.nav-btn:hover {
    opacity: 0.8;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f0f0f0;
    color: #3c80f9;
}

.dropdown-menu li:first-child a {
    border-radius: 8px 8px 0 0;
}

.dropdown-menu li:last-child a {
    border-radius: 0 0 8px 8px;
}

/* ...existing code... */

.auth-buttons {
    display: none;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

/* Product page container - no sidebar */
.product-page {
    display: block;
}

.product-page .container {
    display: block !important;
    padding: 0 20px;
    max-width: 1400px;
    margin: 30px auto;
}

/* Adaptive container for tablets */
@media (max-width: 1200px) {
    .container {
        gap: 20px;
    }
}

/* When sidebar disappears, remove the gap */
@media (max-width: 980px) {
    .container {
        gap: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
        gap: 0;
        margin: 15px auto;
    }
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    color: #3c80f9;
    text-transform: uppercase;
}

.filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.filter-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    accent-color: #BFFF00;
}

.filter-item label {
    cursor: pointer;
    font-size: 13px;
    flex: 1;
}

.filter-loading {
    font-size: 13px;
    color: #999;
}

.price-range {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.price-range input {
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    min-width: 0;
}

.btn-apply-price {
    grid-column: 1 / -1;
    padding: 8px;
    background: #3c80f9;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-apply-price:hover {
    background: #3c80f9;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Toolbar */
.toolbar {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toolbar-left {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-left span {
    font-size: 13px;
    color: #666;
}

.search-box {
    flex: 1;
    max-width: 300px;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    background: white;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    background: white;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-toggle button {
    background: #f0f0f0;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.view-toggle button.active {
    background: #3c80f9;
    color: white;
}

/* Home Product Search (homepage, above category tiles) */
.home-search-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px 0;
    box-sizing: border-box;
}

.home-search-box {
    max-width: 640px;
    margin: 0 auto;
}

.home-search-input {
    width: 100%;
    padding: 14px 22px;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    font-size: 15px;
    box-sizing: border-box;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-search-input:focus {
    outline: none;
    border-color: #a8a8a8;
    box-shadow: 0 0 0 4px rgba(20, 20, 20, 0.05);
}

/* Результаты также используют класс .products-grid (см. products-grid ниже), чтобы карточки
   товаров были визуально и по вёрстке идентичны карточкам в категории — вплоть до тех же
   адаптивных breakpoint'ов. .home-search-results здесь только управляет показом/скрытием
   (комбинированный селектор нужен, чтобы перебить display:grid у .products-grid по специфичности). */
.home-search-results.products-grid {
    display: none;
    margin-top: 18px;
}

.home-search-results.products-grid.is-visible {
    display: grid;
}

.home-search-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #8a8a8a;
    padding: 20px 0;
}

/* Category Tiles (homepage) */
.category-tiles-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 0;
    box-sizing: border-box;
}

.category-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-tile {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #ececec;
    box-shadow: 0 1px 3px rgba(20, 20, 20, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.category-tile:hover {
    box-shadow: 0 14px 28px rgba(20, 20, 20, 0.1);
    border-color: #e0e0e0;
    transform: translateY(-5px);
}

.category-tile-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    padding: 16px;
}

.category-tile-image img {
    width: 100%;
    height: 100%;
    /* contain, а не cover: рамка вокруг фото должна быть одинаковой со всех сторон, а не
       зависеть от того, насколько по центру снят товар на конкретной исходной фотографии. */
    object-fit: contain;
    object-position: center;
    transition: transform 0.25s ease;
}

.category-tile:hover .category-tile-image img {
    transform: scale(1.04);
}

.category-tile-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid #f0f0f0;
}

.category-tile-name {
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    color: #1a1a1a;
    line-height: 1.3;
}

.category-tile-count {
    text-align: center;
    font-size: 13px;
    color: #8a8a8a;
}

.category-tile-hidden {
    display: none;
}

.category-tiles-more-wrap {
    display: flex;
    justify-content: center;
    padding: 24px 0 4px;
}

.category-tiles-show-more {
    padding: 12px 28px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: white;
    color: #222;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-tiles-show-more:hover {
    background: #f5f5f5;
    border-color: #b0b0b0;
}

/* Product Grid */
.products-grid {
    display: grid;
    /* Allow a bit smaller cards so layout wraps earlier on narrow screens and avoids horizontal scroll */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    flex-direction: row;
}

.products-grid.list-view .product-image {
    width: 200px;
    height: 160px;
    flex-shrink: 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    /* ensure cards can shrink inside grid cells on small screens */
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.product-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 220px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid #d0d0d0;
    border-radius: 11.616px;
    padding: 2px;
    box-sizing: border-box;
    max-width: 100%;
}

/* Defensive rules to prevent horizontal overflow on all viewports */
html {
    overflow-x: hidden;
}

.main-content,
.products-grid,
.product-card,
.product-image img {
    max-width: 100%;
}

/* Adaptive grid for different screen sizes - very detailed adaptation */
/* Using auto-fit for better distribution on narrower screens */

/* Desktop: large minmax */
@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
}

/* Large tablets */
@media (max-width: 1399px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
}

/* Medium tablets */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
        gap: 18px;
    }
}

/* Tablets before sidebar disappears */
@media (max-width: 1080px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
        gap: 16px;
    }
}

/* When sidebar disappears (980px) - full width now */
@media (max-width: 980px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
        gap: 16px;
    }
}

/* Below 900px */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 15px;
    }
}

/* Below 850px - aggressive for 5 cards becoming 4 */
@media (max-width: 850px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }
}

/* Below 800px */
@media (max-width: 800px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
        gap: 14px;
    }
}

/* Below 750px */
@media (max-width: 750px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 13px;
    }
}

/* Below 700px */
@media (max-width: 700px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
        gap: 12px;
    }
}

/* Below 650px */
@media (max-width: 650px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 550px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .product-image { height: 160px; }
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: white;
    display: block;
    padding: 2px;
    box-sizing: border-box;
    max-width: 100%;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #BFFF00;
    color: #3c80f9;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 0;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.product-full-price {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    margin-top: 8px;
    line-height: 1.4;
    flex: 1;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 12px;
}

.stars {
    color: #ffc107;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #3c80f9;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: baseline;
}

.price-label {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.price-value {
    font-size: 15px;
    font-weight: bold;
    color: #3c80f9;
}

.price-currency {
    font-size: 12px;
    color: #3c80f9;
    font-weight: bold;
}

.product-price-old {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.btn-add-cart {
    background: #BFFF00;
    color: #3c80f9;
    border: none;
    /* РЎС‚Р°РЅРґР°СЂС‚РЅС‹Рµ СЂР°Р·РјРµСЂС‹ РґР»СЏ РєРЅРѕРїРєРё РІ СЃРїРёСЃРєРµ С‚РѕРІР°СЂРѕРІ */
    padding: 8px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    flex: 1;
}

/* РЎС‚РёР»Рё РґР»СЏ РєРЅРѕРїРєРё РЅР° СЃС‚СЂР°РЅРёС†Рµ СЃРїРёСЃРєР° С‚РѕРІР°СЂРѕРІ (СѓРјРµРЅСЊС€РµРЅРѕ РЅР° 20%) */
.products-grid .btn-add-cart {
    /* РЈРјРµРЅСЊС€РµРЅРѕ РЅР° 20% РѕС‚ СЃС‚Р°РЅРґР°СЂС‚РЅС‹С… СЂР°Р·РјРµСЂРѕРІ */
    padding: 6.4px 9.6px;
    font-size: 12px;
}

/* РЎС‚РёР»Рё РґР»СЏ РєРЅРѕРїРєРё РЅР° СЃС‚СЂР°РЅРёС†Рµ С‚РѕРІР°СЂР° (СѓРІРµР»РёС‡РµРЅРѕ РЅР° 20%) */
.product-layout .btn-add-cart {
    /* РЈРІРµР»РёС‡РµРЅРѕ РЅР° 20% */
    padding: 9.6px 14.4px;
    font-size: 14.4px;
}

.btn-add-cart:hover {
    background: #a8e600;
    transform: scale(1.02);
}

/* Empty / Error state */
.products-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 15px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.pagination button {
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
    background: #3c80f9;
    color: white;
    border-color: #3c80f9;
}

.pagination button.active,
.pagination button:disabled.active {
    background: #3c80f9;
    color: white;
    border-color: #3c80f9;
    cursor: default;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: default;
}

.footer, footer {
    /* Ensure footer occupies full viewport width and uses box-sizing to include padding */
    background: #1a1a1a;
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    /* Central content with safe padding so it doesn't appear compressed to the left */
    max-width: 1400px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    /* Prevent children from forcing the column to overflow/squash the grid cell */
    min-width: 0;
}

.footer-column-title {
    margin-bottom: 15px;
    font-size: 14px;
    color: #BFFF00;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #BFFF00;
}

.footer-section h3 {
    display: none;
}

.footer-section a {
    display: none;
}

/* Mobile Filters Modal */
.mobile-filters-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}
/* Header burger (adaptive menu) */
.header-burger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 1000; /* ensure burger sits above other elements */
}

/* When nav becomes mobile, show it as a slide-out panel from the right.
   Panel width is limited to 80% of the viewport width (as requested). */
.header-nav.mobile {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 80%;
    background: white;
    color: #333;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 60px 16px 20px 16px; /* leave space for header */
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    overflow-y: auto;
    /* defensive: ensure readable on small screens */
    -webkit-overflow-scrolling: touch;
}

.header-nav.mobile .nav-dropdown {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
    position: relative;
}

.header-nav.mobile .nav-btn {
    color: #333;
    font-size: 16px;
    padding: 12px 0;
    text-align: left;
    width: 100%;
}

.header-nav.mobile .dropdown-menu {
    /* РџРѕ СѓРјРѕР»С‡Р°РЅРёСЋ РЅР° РјРѕР±РёР»СЊРЅРѕРј РїРѕРєР°Р·С‹РІР°РµРј С‚РѕР»СЊРєРѕ СЂР°Р·РґРµР»С‹, РїРѕРґСЂР°Р·РґРµР»С‹ СЃРєСЂС‹С‚С‹
       Рё СЂР°СЃРєСЂС‹РІР°СЋС‚СЃСЏ РїРѕ РєР»РёРєСѓ РЅР° СЂР°Р·РґРµР» */
    display: none;
    position: static;
    background: #f8f9fa;
    box-shadow: none;
    margin-top: 5px;
    min-width: auto;
    padding: 8px 0 8px 20px;
    border-radius: 0;
}

.header-nav.mobile .nav-dropdown.active .dropdown-menu {
    display: block;
}
.mobile-nav-close {
    position: absolute;
    top: 14px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
}
.mobile-nav-close:hover { color: #333; }

.header-nav.mobile .mobile-nav-close {
    display: flex;
}

/* Ensure close button sits above the burger when menu is open */
.header-nav.mobile .mobile-nav-close {
    z-index: 3000;
}

.header-nav.mobile .dropdown-menu a {
    padding: 8px 0;
    font-size: 13px;
    border-radius: 0 !important;
}

/* Small screens: hide regular header nav and show burger */
@media (max-width: 980px) {
    .header-burger {
        display: inline-flex;
    }
    /* hide normal nav on small screens but allow .header-nav.mobile to override
       (avoid using !important so JS/class toggle can show the mobile panel) */
    .header-nav:not(.mobile) {
        display: none;
    }
    .header-container {
        align-items: center;
    }
}

/* When mobile menu is open, hide the burger so it doesn't cover the close button */
.header-container.mobile-open .header-burger {
    visibility: hidden;
    pointer-events: none;
}

/* When there's enough space show header-nav normally and hide burger */
@media (min-width: 981px) {
    .header-nav.mobile {
        display: flex; /* defensive: if mobile class toggled, override */
        position: static;
        flex-direction: row;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
}

/* Product page styles (moved here to unify look) */
.product-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Для больших экранов — двухколоночная верстка: галерея слева, блок информации справа */
@media (min-width: 1100px) {
    .product-layout {
        grid-template-columns: 1fr 1fr !important;
        align-items: start;
    }

    /* Кнопка оформления — широкая и заметная, как в старом дизайне */
    .product-layout .btn-add-cart {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 10px;
        text-align: center;
    }
}

/* Для средних экранов — переходим на одноколонку раньше */
@media (max-width: 1099px) {
    .product-layout {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
}
.gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    height: min(55vh, 520px);
    min-height: 260px;
    max-height: 520px;
}

.main-image {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
}

.gallery-nav {
    background: rgba(60, 128, 249, 0.85);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(60, 128, 249, 1);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

/* Планшеты */
@media (max-width: 1100px) {
    .gallery-wrapper {
        min-height: 360px;
    }
}

/* Телефоны */
@media (max-width: 768px) {

    .gallery-wrapper {
        height: 330px;
        min-height: 330px;
        max-height: 330px;
    }

    .main-image {
        border-width: 1px;
    }

    .main-image img {
        transform: scale(1.20);
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {

    .gallery-wrapper {
        height: 290px;
        min-height: 290px;
        max-height: 290px;
    }

    .main-image img {
        transform: scale(1.25);
    }

    .gallery-nav {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }
}
.thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    border: 3px solid #e5e7eb;
    transition: all 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail.active {
    border-color: #3c80f9;
    box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(60, 128, 249, 0.3);
}

.thumbnail:hover {
    border-color: #3c80f9;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.product-header {
    border-bottom: 0px solid #e5e7eb;
    /* СѓРјРµРЅСЊС€Р°РµРј РѕС‚СЃС‚СѓРї РїРѕРґ Р·Р°РіРѕР»РѕРІРєРѕРј */
    padding-bottom: 3px;
}

.category {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Product page heading (h1) - larger than card names */
.info h1.product-name {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    /* СѓРјРµРЅСЊС€Р°РµРј РѕС‚СЃС‚СѓРї Рё РІС‹СЃРѕС‚Сѓ СЃС‚СЂРѕРє РґР»СЏ Р±РѕР»РµРµ РєРѕРјРїР°РєС‚РЅРѕРіРѕ РІРёРґР° */
    margin-bottom: 3px;
    line-height: 1.15;
}

.price {
    font-size: 1.5em;
    font-weight: bold;
    color: #3c80f9;
    /* СѓРјРµРЅСЊС€РёР» РѕС‚СЃС‚СѓРї РІРЅСѓС‚СЂРё РєР°СЂС‚РѕС‡РєРё С…Р°СЂР°РєС‚РµСЂРёСЃС‚РёРє РґР»СЏ РєРѕРјРїР°РєС‚РЅРѕРіРѕ РІРёРґР° */
    margin-top: 0px;
    margin-bottom: 0px;
}

.characteristics {
    background: #f8f9fa;
    /* СѓРјРµРЅСЊС€РёР» РѕС‚СЃС‚СѓРї РІРЅСѓС‚СЂРё РєР°СЂС‚РѕС‡РєРё С…Р°СЂР°РєС‚РµСЂРёСЃС‚РёРє (Р±С‹Р»Рѕ 8px, С‚РµРїРµСЂСЊ 4px) */
    padding: 14px;
    border-radius: 8px;
}

.characteristics h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.char-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* ...existing code... */

@media (min-width: 1100px) {
    .char-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 1099px) {
}

@media (max-width: 800px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }


    .info h1.product-name {
        font-size: 22px;
    }

    .price {
        font-size: 14px;
    }

    .thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-layout {
        padding: 15px;
        gap: 20px;
    }

    .char-grid {
        grid-template-columns: 1fr;
    }

    .info h1.product-name {
        font-size: 18px;
    }

    .product-page .breadcrumb {
        margin-top: 15px;
    }
}

@media (max-width: 400px) {

    .thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .product-layout {
        padding: 12px;
        gap: 15px;
    }

    .info h1.product-name {
        font-size: 16px;
    }

    .price {
        font-size: 12px;
    }

    .product-page .breadcrumb {
        margin-top: 10px;
    }
}
.char-item {
    display: flex;
    flex-direction: column;
    /* СѓРјРµРЅСЊС€РµРЅС‹ РІРµСЂС‚РёРєР°Р»СЊРЅС‹Рµ РѕС‚СЃС‚СѓРїС‹ РјРµР¶РґСѓ СЃС‚СЂРѕРєР°РјРё С…Р°СЂР°РєС‚РµСЂРёСЃС‚РёРє (Р±С‹Р»Рѕ 8px, С‚РµРїРµСЂСЊ 4px) */
    padding: 4px 0;
    border-bottom: 1px solid #e5e7eb;
}

.char-item-extra.is-hidden {
    display: none !important;
}

.char-name {
    /* РЈРІРµР»РёС‡РµРЅРѕ РЅР° 20% */
    font-size: 14.4px;
    color: #999;
    /* РЈРјРµРЅСЊС€РµРЅ РѕС‚СЃС‚СѓРї РІ 2 СЂР°Р·Р° (Р±С‹Р»Рѕ 3px) */
    margin-bottom: 1.5px;
}

.char-value {
    /* РЈРІРµР»РёС‡РµРЅРѕ РЅР° 20% */
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.char-toggle-btn {
    margin-top: 14px;
    border: 1px solid #3c80f9;
    color: #3c80f9;
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.char-toggle-btn:hover {
    background: #3c80f9;
    color: #fff;
}

.description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.6;
    font-size: 14px;
}

.description h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.description p {
    margin: 0 0 12px;
}

.description p:last-child {
    margin-bottom: 0;
}

/* HTML-РѕРїРёСЃР°РЅРёРµ С‚РѕРІР°СЂР° (sku_description_int) */
.description-content {
    line-height: 1.7;
    font-size: 14px;
    color: #444;
}

.description-content p {
    margin: 0 0 12px;
}

.description-content p:last-child {
    margin-bottom: 0;
}

.description-content strong,
.description-content b {
    font-weight: 600;
    color: #333;
}

.description-content em,
.description-content i {
    font-style: italic;
}

.description-content ul,
.description-content ol {
    margin: 10px 0 14px 20px;
    padding: 0;
}

.description-content ul li,
.description-content ol li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.description-content ul {
    list-style-type: disc;
}

.description-content ol {
    list-style-type: decimal;
}

.description-content h2,
.description-content h3,
.description-content h4 {
    font-weight: 600;
    color: #333;
    margin: 16px 0 8px;
}

.description-content h2 { font-size: 16px; }
.description-content h3 { font-size: 15px; }
.description-content h4 { font-size: 14px; }

.description-content a {
    color: #3c80f9;
    text-decoration: underline;
}

.description-content a:hover {
    color: #2a5fd8;
}

.seo-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seo-links a {
    color: #3c80f9;
    text-decoration: none;
    font-size: 14px;
}

.seo-links a:hover {
    text-decoration: underline;
}

/* Breadcrumb navigation */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    order: -1;
}

.product-page .breadcrumb {
    margin-bottom: 30px;
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
}

.breadcrumb a {
    color: #3c80f9;
    text-decoration: none;
    margin-right: 10px;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #2a5fd8;
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
}

@media (max-width: 800px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }

    .info h1.product-name {
        font-size: 22px;
    }

    .price {
        font-size: 14px;
    }



    .thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {


    .thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-layout {
        padding: 15px;
        gap: 20px;
    }

    .char-grid {
        grid-template-columns: 1fr;
    }

    .info h1.product-name {
        font-size: 18px;
    }

    .product-page .breadcrumb {
        margin-top: 15px;
    }
}

@media (max-width: 400px) {


    .thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .product-layout {
        padding: 12px;
        gap: 15px;
    }

    .info h1.product-name {
        font-size: 16px;
    }

    .price {
        font-size: 12px;
    }

    .product-page .breadcrumb {
        margin-top: 10px;
    }
}

.mobile-filters-modal.open {
    display: flex;
    align-items: flex-end;
}

.mobile-filters-content {
    width: 100%;
    max-width: 100%;
    background: white;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.mobile-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
}

.mobile-filters-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.mobile-filters-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-filters-close:hover {
    color: #333;
}

.mobile-filters-body {
    padding: 20px;
}

.mobile-filters-btn {
    display: none;
    background: none;
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    transition: all 0.2s;
}

.mobile-filters-btn:hover {
    background: #f0f0f0;
}

/* Order Modal */
.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.order-modal.open {
    display: flex !important;
}

.order-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.order-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: calc(28px * 1.15);
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-modal-close:hover {
    color: #333;
}

.order-modal-product {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.order-product-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
}

.order-product-info h3 {
    font-size: calc(16px * 1.15);
    margin-bottom: 8px;
    color: #333;
}

.order-product-info p {
    font-size: calc(12px * 1.15);
    color: #999;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.order-product-price {
    font-size: calc(14px * 1.15);
    font-weight: bold;
    color: #3c80f9;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: calc(13px * 1.15);
    font-weight: 600;
    color: #333;
}

        .form-group input,
        .form-group select,
        .form-group textarea {
            padding: 10px;
            border: 1px solid #d0d0d0;
            border-radius: 6px;
            font-size: calc(13px * 1.15);
            font-family: inherit;
            width: 100%; /* textarea and inputs should take full available width inside modal */
            box-sizing: border-box;
        }

        .form-group textarea {
            resize: vertical;
            min-height: 140px;
            line-height: 1.5;
            width: 100%;
            box-sizing: border-box;
        }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3c80f9;
    box-shadow: 0 0 0 3px rgba(60, 128, 249, 0.1);
}

/* Phone field validation styles */
.form-group input.phone-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.form-group.phone-error-group {
    position: relative;
}

.phone-error-hint {
    color: #dc3545;
    font-size: calc(12px * 1.15);
    margin-top: 4px;
    display: none;
}

.phone-error-hint.show {
    display: block;
}

.form-group label.has-error::after {
    content: ' *';
    color: #dc3545;
}

.form-group-checkbox {
    gap: 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-group-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #3c80f9;
    flex-shrink: 0;
}

.form-group-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0;
    cursor: pointer;
    font-size: calc(13px * 1.15);
    font-weight: normal;
    color: #333;
    line-height: 1.5;
}

.form-group-checkbox a {
    color: #3c80f9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.form-group-checkbox a:hover {
    color: #2a5fd8;
    text-decoration: underline;
}

.slider-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.slider {
    flex: 1;
}

.slider-value {
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: #3c80f9;
    min-width: 40px;
    text-align: center;
}

.order-submit-btn {
    padding: 12px 20px;
    background: #3c80f9;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: calc(14px * 1.15);
    transition: all 0.2s;
}

.order-submit-btn:hover:not(:disabled) {
    background: #2a5fd8;
}

.order-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.order-step {
    animation: slideUp 0.3s ease;
}

.delivery-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.delivery-method {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-method:hover {
    background: #f8f9fa;
    border-color: #3c80f9;
}

.delivery-method input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
    accent-color: #BFFF00;
}

.delivery-method-info {
    flex: 1;
}

.delivery-method-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.delivery-method-address {
    font-size: calc(12px * 1.15);
    color: #999;
}

.delivery-method-price {
    font-weight: bold;
    font-size: calc(14px * 1.15);
    color: #3c80f9;
    min-width: 80px;
    text-align: right;
}

.order-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.order-back-btn {
    background: #999;
    flex: 1;
}

.order-back-btn:hover:not(:disabled) {
    background: #777;
}

#order-send-btn {
    flex: 1;
}

.success-message {
    text-align: center;
    padding: 30px 20px;
}

.success-message h3 {
    color: #4caf50;
    font-size: calc(24px * 1.15);
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    font-size: calc(14px * 1.15);
    margin-bottom: 20px;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 980px) {
    .container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 20px;
    }

    .sidebar {
        display: none;
    }

    .mobile-filters-btn {
        display: inline-block;
    }

    /* hide regular nav on small screens; show mobile button instead
       (use :not(.mobile) to let .mobile class make the overlay visible) */
    .header-nav:not(.mobile) {
        display: none;
    }

    .header-container {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .header-container {
        gap: 10px;
        flex-wrap: wrap;
    }

    .logo {
        flex: 1;
    }

    /* hide regular nav on very small screens but allow overlay when .mobile class present */
    .header-nav:not(.mobile) {
        display: none;
    }

    .toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .toolbar-left {
        width: 100%;
        justify-content: space-between;
    }

    .sort-select {
        max-width: 150px;
    }

    .mobile-filters-btn {
        display: inline-block !important;
    }

    /* В режиме списка уменьшаем фото и отступы карточки для мобильной ширины */
    .products-grid.list-view .product-card {
        gap: 8px;
    }

.products-grid.list-view .product-image {
    width: 150px;
    height: 150px;
    min-height: 0;
    aspect-ratio: auto;
    flex-shrink: 0;
}

    .products-grid.list-view .product-info {
        padding: 10px;
        min-width: 0;
    }
}

@media (max-width: 400px) {
    .products-grid.list-view .product-image {
        width: 135px;
        height: 135px;
        min-height: 0;
        aspect-ratio: auto;
    }

    .products-grid.list-view .product-info {
        padding: 8px;
    }

    .product-name {
        font-size: 13px;
    }
}

/* Mobile Responsive Modal */
@media (max-width: 600px) {
     .order-modal-content {
         max-width: 100%;
         width: 95%;
         padding: 20px;
         border-radius: 16px;
     }

     .order-form {
         gap: 12px;
     }

     .form-group {
         gap: 6px;
     }

      .form-group input,
      .form-group select,
      .form-group textarea {
          padding: 8px;
          font-size: calc(12px * 1.15);
      }

      .form-group textarea {
          min-height: 100px;
      }

      .form-group input.phone-invalid {
          border-color: #dc3545 !important;
          box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
      }

       .form-group label {
           font-size: calc(12px * 1.15);
       }

       .form-group-checkbox label {
           font-size: calc(12px * 1.15);
       }

       .form-group-checkbox input[type="checkbox"] {
           width: 16px;
           height: 16px;
       }

       .order-modal-product {
          gap: 12px;
          margin-bottom: 20px;
      }

       .order-product-img {
           width: 70px;
           height: 70px;
       }

       .order-product-info h3 {
           font-size: calc(14px * 1.15);
           margin-bottom: 5px;
       }

       .order-product-info p {
           font-size: calc(11px * 1.15);
       }

       .order-product-price {
           font-size: calc(13px * 1.15);
       }

       .order-modal-actions {
           gap: 8px;
           margin-top: 15px;
       }

       .order-submit-btn,
       .order-back-btn {
           padding: 10px 16px;
           font-size: calc(13px * 1.15);
       }

       .order-modal-close {
           top: 10px;
           right: 10px;
           font-size: calc(24px * 1.15);
       }

       .delivery-method {
           padding: 10px;
           flex-wrap: wrap;
       }

       .delivery-method-price {
           min-width: 70px;
           font-size: calc(13px * 1.15);
       }

       .delivery-method-name {
           font-size: calc(13px * 1.15);
       }

       .delivery-method-address {
           font-size: calc(11px * 1.15);
           flex: 0 0 100%;
           margin-top: 5px;
       }

       .delivery-methods {
           gap: 10px;
           margin: 15px 0;
       }

       .success-message {
           padding: 20px 15px;
       }

       .success-message h3 {
           font-size: calc(20px * 1.15);
           margin-bottom: 10px;
       }

       .success-message p {
           font-size: calc(13px * 1.15);
           margin-bottom: 15px;
       }
  }

@media (max-width: 400px) {
     .order-modal-content {
         width: 100%;
         padding: 15px;
         margin: 0 10px;
     }

     .order-modal-product {
         margin-bottom: 15px;
     }

     .order-product-img {
         width: 60px;
         height: 60px;
     }

     .form-group input,
     .form-group select,
     .form-group textarea {
         padding: 7px;
         font-size: calc(11px * 1.15);
     }

     .form-group textarea {
         min-height: 90px;
     }

     .order-submit-btn,
     .order-back-btn {
         padding: 9px 12px;
         font-size: calc(12px * 1.15);
     }

     .delivery-method {
         padding: 8px;
     }

      .delivery-method input[type="radio"] {
          margin-right: 8px;
      }

      .form-group-checkbox input[type="checkbox"] {
          width: 15px;
          height: 15px;
      }

      .form-group-checkbox label {
          font-size: calc(11px * 1.15);
      }
 }

