/* Убираем синее подсвечивание при таче на мобильных */
button,
a,
.nav-item,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

button:focus,
button:active,
a:focus,
a:active {
    outline: none;
}

/* [GRP: OFFERS] */
/* [SEC: Offer Cards] */
.offer-card {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    color: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease, background-color .18s ease;
}

.offer-card:hover,
.offer-card:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.offer-card:active {
    transform: translateY(1px);
}

.offer-card.is-selected {
    border-color: var(--accent);
    background: #faf8ff;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.12);
}

.offer-left {
    min-width: 0;
}

.offer-desc {
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-main);
    word-break: break-word;
    /* -webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(1.45em * 2); */
}

.offer-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.price-som {
    font-size: 20px;
    font-weight: 800;
    color: var(--price-color);
    padding: 4px 10px;
    border-radius: 8px;
}

.price-dol {
    font-size: 11px;
    line-height: 1.2;
    color: var(--text-muted);
}

.offer-store-badge {
    display: inline-block;
    background: #f1f2f6;
    color: #444;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 20px;
    margin-top: 2px;
}

.offer-pick {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

.offer-card.is-selected .offer-pick {
    color: #059669;
}

/* [SEC: Buy Buttons Desktop] */
.desktop-actions {
    display: flex;
    margin-top: 20px;
}

.btn-buy-now,
.btn-add-cart {
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* РћСЂР°РЅР¶РµРІР°СЏ РєРЅРѕРїРєР° "РљСѓРїРёС‚СЊ СЃРµР№С‡Р°СЃ" */
.btn-buy-now {
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
    color: #fff;
    margin-right: 10px;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #FF6B35 0%, #FF5722 100%);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

/* Р¤РёРѕР»РµС‚РѕРІР°СЏ РєРЅРѕРїРєР° "Р’ РєРѕСЂР·РёРЅСѓ" */
.btn-add-cart {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* РЎРѕСЃС‚РѕСЏРЅРёРµ "Р’ РєРѕСЂР·РёРЅРµ" - Р·РµР»С‘РЅРѕРµ */
.btn-add-cart.btn-in-cart {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* OFFERS>[SEC: Cart Button States + Toast] В»В»В» */
.btn-buy-now,
.btn-add-cart {
    position: relative;
    transition: transform .12s ease, opacity .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.btn-buy-now:active,
.btn-add-cart:active {
    transform: translateY(1px) scale(.985);
}

.btn-buy-now.btn-busy,
.btn-add-cart.btn-busy {
    pointer-events: none;
    opacity: .92;
}

.btn-buy-now.btn-busy::after,
.btn-add-cart.btn-busy::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: cart-spin .6s linear infinite;
}

.btn-add-cart.btn-in-cart {
    background: #1f9d67;
    color: #fff;
    box-shadow: 0 8px 18px rgba(31, 157, 103, .18);
}

.btn-add-cart.btn-ok,
.btn-buy-now.btn-ok {
    animation: cart-pop .22s ease;
}

.cart-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 10px);
    background: rgba(31, 31, 31, .96);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 1200;
    white-space: nowrap;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cart-toast.err {
    background: rgba(176, 42, 55, .96);
}

@keyframes cart-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cart-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .cart-toast {
        bottom: 86px;
    }
}

/* OFFERS>[SEC: Cart Button States + Toast] В«В«В« */

/* OFFERS>[SEC: Bottom Navigation] В»В»В» */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        padding: 8px 0 12px;
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 11px;
        gap: 2px;
        flex: 1;
        position: relative;
        transition: color 0.2s ease;
    }

    .nav-item .material-icons-round {
        font-size: 24px;
        transition: transform 0.2s ease;
    }

    .nav-item:hover .material-icons-round,
    .nav-item:active .material-icons-round {
        transform: scale(1.1);
    }

    .nav-item:hover,
    .nav-item.active {
        color: var(--accent);
    }

    .nav-label {
        font-size: 10px;
        font-weight: 500;
    }

    /* Р‘РµР№РґР¶ РєРѕСЂР·РёРЅС‹ */
    .nav-cart {
        position: relative;
    }

    .nav-badge {
        position: absolute;
        top: -2px;
        right: 50%;
        transform: translateX(12px);
        background: #FF2465;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        opacity: 0;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-badge.show {
        opacity: 1;
        transform: translateX(12px) scale(1);
    }

    .nav-badge:empty,
    .nav-badge[data-count="0"],
    #nav-cart-badge:empty,
    #nav-cart-badge[data-count="0"] {
        opacity: 0 !important;
    }

    /* РћС‚СЃС‚СѓРї РґР»СЏ РєРѕРЅС‚РµРЅС‚Р° С‡С‚РѕР±С‹ РЅРµ РїРµСЂРµРєСЂС‹РІР°Р»СЃСЏ sticky bar + bottom nav */
    body {
        padding-bottom: 150px;
        /* 70px (sticky) + 75px (nav) + Р·Р°РїР°СЃ */
    }

    /* РџРѕРґРЅРёРјР°РµРј РјРѕР±РёР»СЊРЅС‹Р№ sticky bar РЅР°Рґ РЅРёР¶РЅРёРј РјРµРЅСЋ */
    .mobile-sticky-bar {
        bottom: 58px !important;
        padding-bottom: 8px !important;
        z-index: 999 !important;
        /* РЅРёР¶Рµ С‡РµРј bottom-nav (1000), РЅРѕ РІС‹С€Рµ РєРѕРЅС‚РµРЅС‚Р° */
    }

    .cart-toast {
        bottom: 145px !important;
        /* 75px (sticky) + 70px (nav) */
    }
}

/* OFFERS>[SEC: Bottom Navigation] В«В«В« */

/* [SEC: Sticky Mobile Bar] */
.mobile-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .desktop-actions {
        display: none;
    }

    .mobile-sticky-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        padding: 12px 16px;
        z-index: 1000;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    }

    .sticky-price-row {
        margin-bottom: 8px;
    }

    .sticky-price {
        font-size: 20px;
        font-weight: 700;
        color: var(--price-color);
    }

    .sticky-buttons {
        display: flex;
        gap: 10px;
    }

    .sticky-buttons .btn-buy-now {
        margin-right: 0;
    }
}
