/* ============================================================
   НЕМАРКЕТ.РФ — СТИЛЬ ВКОНТАКТЕ (2006-2016)
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    background: #DAE2EC;
    color: #222222;
    font-size: 13px;
    line-height: 1.4;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    background: #DAE2EC;
}
::-webkit-scrollbar-thumb {
    background: #B3C6D9;
    border: 1px solid #9BB0C6;
}
::-webkit-scrollbar-thumb:hover {
    background: #A0B6CE;
}
::-webkit-scrollbar-track {
    background: #EDEEF0;
}

/* ============================================================
   ШАПКА (НОВАЯ)
   ============================================================ */
header {
    background: #4C75A3;
    border-bottom: 2px solid #3B5C7E;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.header-top {
    max-width: 980px;
    margin: 0 auto;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 0 rgba(0,0,0,0.2);
    user-select: none;
}
.logo span {
    font-weight: 400;
}
.logo .lock {
    font-size: 18px;
    margin-right: 4px;
}

/* Сердечко избранного в шапке */
.header-fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    position: relative;
    display: flex;
    align-items: center;
    transition: opacity 0.15s;
}
.header-fav-btn:hover {
    opacity: 0.8;
}
.header-fav-btn svg {
    width: 26px;
    height: 26px;
    stroke: #FFFFFF;
    stroke-width: 2;
    fill: none;
}
.header-fav-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #E53935;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 16px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #C62828;
}

.header-bottom {
    max-width: 980px;
    margin: 0 auto;
    padding: 6px 15px 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- ПОИСК (ШИРОКИЙ, ВЫСОКИЙ) ---------- */
.search-box {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #3B5C7E;
    border-radius: 0;
    background: #FFFFFF;
    font-size: 15px;
    font-family: Tahoma, Arial, sans-serif;
    color: #222222;
    outline: none;
    height: 42px;
    min-width: 150px;
}
.search-box:focus {
    border-color: #2B4A6A;
    background: #FFFFFF;
}
.search-box::placeholder {
    color: #888888;
    font-size: 14px;
}

/* ---------- КНОПКА КАТЕГОРИЙ ---------- */
.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    height: 42px;
    background: #3B5C7E;
    border: 1px solid #2D4A68;
    color: #FFFFFF;
    font-size: 14px;
    font-family: Tahoma, Arial, sans-serif;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    border-radius: 0;
    flex-shrink: 0;
}
.header-btn:hover {
    background: #2D4A68;
}
.header-btn:active {
    background: #1F3A54;
}
.header-btn svg {
    width: 18px;
    height: 18px;
    stroke: #FFFFFF;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}
.btn-label {
    font-size: 14px;
    font-weight: 400;
}

/* ============================================================
   БАННЕР "УСТАНОВИТЕ ПРИЛОЖЕНИЕ"
   ============================================================ */
.app-banner {
    max-width: 980px;
    margin: 10px auto 0 auto;
    padding: 0 15px;
}
.app-banner-content {
    background: #FFFFFF;
    border: 1px solid #B8C9DA;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.app-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}
.app-info {
    flex: 1;
    min-width: 0;
}
.app-title {
    font-size: 15px;
    font-weight: 700;
    color: #222222;
}
.app-desc {
    font-size: 12px;
    color: #666666;
}
.app-install-btn {
    padding: 6px 18px;
    background: #4C75A3;
    color: #FFFFFF;
    border: 1px solid #3B5C7E;
    cursor: pointer;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}
.app-install-btn:hover {
    background: #3B5C7E;
}
.app-close-btn {
    background: none;
    border: none;
    color: #999999;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    flex-shrink: 0;
}
.app-close-btn:hover {
    color: #222222;
}
.app-banner.hidden {
    display: none;
}

/* ============================================================
   БАННЕР "ПРИГЛАШАЕМ ПРОДАВЦОВ"
   ============================================================ */
.seller-banner {
    max-width: 980px;
    margin: 8px auto 0 auto;
    padding: 0 15px;
}
.seller-banner-content {
    background: #FFFFFF;
    border: 1px solid #B8C9DA;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #4C75A3;
}
.seller-banner-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}
.seller-banner-info {
    flex: 1;
    min-width: 0;
}
.seller-banner-title {
    font-size: 15px;
    font-weight: 700;
    color: #222222;
}
.seller-banner-desc {
    font-size: 12px;
    color: #666666;
}
.seller-banner-btn {
    padding: 6px 18px;
    background: transparent;
    color: #4C75A3;
    border: 1px solid #4C75A3;
    cursor: pointer;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s;
}
.seller-banner-btn:hover {
    background: #4C75A3;
    color: #FFFFFF;
}

/* ============================================================
   ЛЕНТА
   ============================================================ */
main {
    max-width: 980px;
    margin: 12px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

/* ============================================================
   КАРТОЧКА ТОВАРА (ИЗОБРАЖЕНИЕ ПОЛНОСТЬЮ)
   ============================================================ */
.product-card {
    background: #FFFFFF;
    border: 1px solid #B8C9DA;
    cursor: pointer;
    transition: border-color 0.15s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.product-card:hover {
    border-color: #4C75A3;
}
.product-card .media {
    position: relative;
    background: #EDEEF0;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card .media img,
.product-card .media video {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Изображение полностью заполняет рамку */
    display: block;
}
.product-card .media video {
    background: #000000;
}

/* ---------- БЕЙДЖИ ---------- */
.pinned-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #4C75A3;
    color: #FFFFFF;
    font-size: 10px;
    padding: 2px 8px;
    font-weight: 700;
    border: 1px solid #3B5C7E;
    letter-spacing: 0.3px;
}
.time-label {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.75);
    color: #FFFFFF;
    font-size: 11px;
    padding: 2px 8px;
    border: 1px solid rgba(255,255,255,0.15);
    font-weight: 700;
}
.time-label.expired {
    background: #E53935;
}

/* ---------- ИНФО КАРТОЧКИ ---------- */
.product-card .info {
    padding: 8px 10px 10px 10px;
    background: #FFFFFF;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.product-card .title {
    font-size: 13px;
    font-weight: 400;
    color: #222222;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .price {
    font-size: 18px;
    font-weight: 700;
    color: #222222;
    margin-top: 2px;
}

/* ---------- SPINNER ---------- */
#loaderSpinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 0;
    color: #666666;
    font-size: 12px;
}
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #B8C9DA;
    border-top-color: #4C75A3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- ПУСТОЙ СОСТОЯНИЕ ---------- */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border: 1px solid #B8C9DA;
    color: #666666;
    font-size: 14px;
}
.empty-state .icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

/* ============================================================
   МОДАЛЬНЫЕ ОКНА (FULL SCREEN)
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: #EDEEF0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: modalFade 0.2s ease;
}
@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-header {
    background: #4C75A3;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom: 2px solid #3B5C7E;
    min-height: 44px;
}
.modal-header .modal-article {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 400;
    text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.modal-header .modal-article span {
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 26px;
    font-weight: 400;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.15s;
    font-family: Tahoma, Arial, sans-serif;
}
.close-btn:hover {
    opacity: 1;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #EDEEF0;
    -webkit-overflow-scrolling: touch;
}

/* ---------- МЕДИА ---------- */
.modal-media-wrapper {
    background: #000000;
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}
.media-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}
.media-slider .slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}
.media-slider .slide img,
.media-slider .slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.media-slider .slide video {
    background: #000000;
}

.modal-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 4px 0;
    background: #EDEEF0;
}
.modal-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #B8C9DA;
    cursor: pointer;
    border: 1px solid #9BB0C6;
    transition: background 0.15s;
}
.modal-dots .dot.active {
    background: #4C75A3;
    border-color: #3B5C7E;
}

/* ---------- КОНТЕНТ ---------- */
.modal-product-title {
    font-size: 18px;
    font-weight: 700;
    padding: 12px 16px 4px 16px;
    color: #222222;
}
.modal-product-price {
    font-size: 24px;
    font-weight: 700;
    padding: 0 16px 8px 16px;
    color: #222222;
}
.modal-timer {
    padding: 0 16px 8px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #E53935;
}
.modal-timer.expired {
    color: #888888;
}
.modal-product-desc {
    padding: 0 16px 12px 16px;
    font-size: 13px;
    color: #444444;
    line-height: 1.5;
    border-bottom: 1px solid #D0D9E3;
}
.modal-delivery {
    padding: 10px 16px;
    font-size: 13px;
    color: #222222;
    border-bottom: 1px solid #D0D9E3;
}
.modal-delivery .delivery-item {
    display: inline-block;
    background: #FFFFFF;
    padding: 2px 10px;
    margin: 2px 4px 2px 0;
    border: 1px solid #B8C9DA;
    font-size: 12px;
}

/* ---------- ПРОДАВЕЦ ---------- */
.seller-block {
    padding: 10px 16px;
    border-bottom: 1px solid #D0D9E3;
    cursor: pointer;
    background: #FFFFFF;
    margin: 0;
}
.seller-block:hover {
    background: #F5F7FA;
}
.seller-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.seller-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4C75A3;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid #3B5C7E;
}
.seller-name {
    font-weight: 700;
    font-size: 13px;
    color: #222222;
}
.seller-arrow {
    margin-left: auto;
    font-size: 12px;
    color: #888888;
    transition: transform 0.2s;
}
.seller-arrow.open {
    transform: rotate(180deg);
}
.seller-details {
    display: none;
    padding-top: 8px;
    font-size: 12px;
    color: #555555;
    border-top: 1px solid #EDEEF0;
    margin-top: 8px;
}
.seller-details.open {
    display: block;
}
.seller-details div {
    padding: 2px 0;
}
.seller-details .label {
    color: #888888;
}
.badge-item {
    display: inline-block;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 4px;
    border: 1px solid #B8C9DA;
    background: #FFFFFF;
}
.badge-item.docs {
    border-color: #4C75A3;
    color: #4C75A3;
}
.badge-item.trusted {
    border-color: #E53935;
    color: #E53935;
}

/* ---------- МЕТА ---------- */
.modal-meta {
    padding: 6px 16px;
    font-size: 11px;
    color: #888888;
    border-bottom: 1px solid #D0D9E3;
}

/* ---------- КНОПКА КУПИТЬ ---------- */
.btn-buy {
    display: block;
    margin: 12px 16px;
    padding: 10px 20px;
    background: #4C75A3;
    color: #FFFFFF;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #3B5C7E;
    transition: background 0.15s;
    font-family: Tahoma, Arial, sans-serif;
}
.btn-buy:hover {
    background: #3B5C7E;
}
.btn-buy:active {
    background: #2D4A68;
}
.btn-buy.hidden {
    display: none;
}

/* ---------- ДЕЙСТВИЯ ---------- */
.modal-bottom-actions {
    display: flex;
    gap: 4px;
    padding: 8px 16px 12px 16px;
    border-top: 1px solid #D0D9E3;
    background: #FFFFFF;
    flex-wrap: wrap;
}
.action-btn {
    flex: 1;
    min-width: 80px;
    padding: 6px 10px;
    background: #EDEEF0;
    border: 1px solid #B8C9DA;
    color: #222222;
    font-size: 12px;
    font-family: Tahoma, Arial, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s;
    border-radius: 0;
}
.action-btn:hover {
    background: #DAE2EC;
}
.action-btn:active {
    background: #C8D3E0;
}
.action-btn .action-icon {
    font-size: 16px;
}
.action-btn.faved {
    background: #FFEBEE;
    border-color: #E53935;
}
.action-btn.faved .action-label {
    color: #E53935;
}

.modal-swipe-hint {
    text-align: center;
    padding: 8px 16px 16px 16px;
    font-size: 11px;
    color: #999999;
    border-top: 1px solid #D0D9E3;
    background: #FFFFFF;
}

/* ---------- АНИМАЦИИ ---------- */
.modal-body.slide-up .modal-product-title,
.modal-body.slide-up .modal-product-price,
.modal-body.slide-up .modal-timer,
.modal-body.slide-up .modal-product-desc,
.modal-body.slide-up .modal-delivery,
.modal-body.slide-up .seller-block,
.modal-body.slide-up .modal-meta,
.modal-body.slide-up .btn-buy,
.modal-body.slide-up .modal-bottom-actions {
    animation: slideUp 0.25s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-body.slide-down .modal-product-title,
.modal-body.slide-down .modal-product-price,
.modal-body.slide-down .modal-timer,
.modal-body.slide-down .modal-product-desc,
.modal-body.slide-down .modal-delivery,
.modal-body.slide-down .seller-block,
.modal-body.slide-down .modal-meta,
.modal-body.slide-down .btn-buy,
.modal-body.slide-down .modal-bottom-actions {
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   МОДАЛКА КАТЕГОРИЙ / ИЗБРАННОГО / ЖАЛОБ
   ============================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    padding: 12px 16px;
}
.cat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #FFFFFF;
    border: 1px solid #B8C9DA;
    cursor: pointer;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    color: #222222;
    transition: background 0.15s;
    border-radius: 0;
    text-align: left;
}
.cat-btn:hover {
    background: #EDEEF0;
}
.cat-btn.active {
    background: #DAE2EC;
    border-color: #4C75A3;
}
.cat-btn .cat-icon {
    font-size: 18px;
}
.cat-btn .cat-check {
    margin-left: auto;
    font-size: 14px;
}

/* Избранное */
#favoritesList {
    padding: 12px 16px;
}
.favorites-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.fav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    border: 1px solid #B8C9DA;
    padding: 6px 8px 6px 6px;
}
.fav-click {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-width: 0;
}
.fav-click img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #B8C9DA;
    flex-shrink: 0;
}
.fav-info {
    flex: 1;
    min-width: 0;
}
.fav-title {
    font-size: 13px;
    color: #222222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fav-price {
    font-size: 15px;
    font-weight: 700;
    color: #222222;
}
.fav-remove {
    background: none;
    border: none;
    color: #888888;
    font-size: 18px;
    cursor: pointer;
    padding: 0 6px;
    flex-shrink: 0;
}
.fav-remove:hover {
    color: #E53935;
}
.fav-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888888;
}
.fav-load-more {
    text-align: center;
    padding: 12px 0 20px 0;
}
.fav-load-more button {
    padding: 6px 24px;
    background: #FFFFFF;
    border: 1px solid #B8C9DA;
    cursor: pointer;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    color: #222222;
}
.fav-load-more button:hover {
    background: #EDEEF0;
}

/* Жалоба */
#complaintModal .modal-body {
    padding: 16px;
}
#complaintModal select,
#complaintModal textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #B8C9DA;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    margin-bottom: 10px;
    background: #FFFFFF;
    border-radius: 0;
}
#complaintModal textarea {
    resize: vertical;
}
.btn-send {
    padding: 8px 24px;
    background: #4C75A3;
    color: #FFFFFF;
    border: 1px solid #3B5C7E;
    cursor: pointer;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
}
.btn-send:hover {
    background: #3B5C7E;
}
.complaint-result {
    margin-top: 10px;
    padding: 8px 12px;
    text-align: center;
    display: none;
}
.complaint-result.success {
    display: block;
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    color: #2E7D32;
}
.complaint-result.error {
    display: block;
    background: #FFEBEE;
    border: 1px solid #EF9A9A;
    color: #C62828;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #FFFFFF;
    padding: 10px 24px;
    font-size: 13px;
    font-family: Tahoma, Arial, sans-serif;
    border-radius: 0;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
}
.toast.show {
    opacity: 1;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 680px) {
    main {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 8px;
        padding: 0 8px;
        margin: 8px auto;
    }
    .header-top {
        padding: 6px 10px;
    }
    .header-bottom {
        padding: 4px 10px 8px 10px;
        gap: 5px;
    }
    .logo {
        font-size: 16px;
    }
    .search-box {
        height: 36px;
        font-size: 14px;
        padding: 8px 12px;
    }
    .search-box::placeholder {
        font-size: 13px;
    }
    .header-btn {
        height: 36px;
        padding: 6px 12px;
        font-size: 13px;
    }
    .header-btn .btn-label {
        display: none;
    }
    .header-btn svg {
        width: 20px;
        height: 20px;
    }
    .header-fav-btn svg {
        width: 22px;
        height: 22px;
    }
    .product-card .title {
        font-size: 12px;
    }
    .product-card .price {
        font-size: 16px;
    }
    .app-banner-content {
        flex-wrap: wrap;
        padding: 10px 12px;
    }
    .app-install-btn {
        padding: 4px 14px;
        font-size: 12px;
    }
    .seller-banner-content {
        flex-wrap: wrap;
        padding: 10px 12px;
    }
    .seller-banner-btn {
        padding: 4px 14px;
        font-size: 12px;
    }
    .modal-product-title {
        font-size: 16px;
    }
    .modal-product-price {
        font-size: 20px;
    }
    .modal-header {
        padding: 6px 10px;
        min-height: 38px;
    }
    .modal-header .modal-article {
        font-size: 12px;
    }
    .close-btn {
        font-size: 22px;
    }
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 420px) {
    main {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 0 6px;
    }
    .product-card .info {
        padding: 6px 8px 8px 8px;
    }
    .product-card .price {
        font-size: 14px;
    }
    .modal-bottom-actions .action-btn {
        font-size: 11px;
        padding: 4px 6px;
    }
    .modal-bottom-actions .action-label {
        font-size: 10px;
    }
    .app-banner-content {
        flex-direction: column;
        text-align: center;
    }
    .seller-banner-content {
        flex-direction: column;
        text-align: center;
    }
}