/* ==========================================================================
   ИЗОЛИРОВАННЫЕ СТИЛИ ОНЛАЙН-МАГАЗИНА FISHING ANALYZER PRO™ (DARK-GOLD LUXURY)
   ========================================================================== */

:root {
    color-scheme: dark;
    --store-gold: #d4af37;
    --store-gold-hover: #f3cf55;
    --store-gold-glow: rgba(212, 175, 55, 0.4);
    --store-bg: #120e0b;
    --store-card-bg: rgba(27, 22, 18, 0.85);
    --store-card-border: rgba(212, 175, 55, 0.25);
    --store-card-hover-border: rgba(212, 175, 55, 0.7);
    --store-text-main: #ffffff;
    --store-text-muted: #b3a79a;
}

select, option, optgroup {
    color-scheme: dark;
}

body.store-page-body {
    background-color: #0d0a08;
    background-image: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
                      radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    color: var(--store-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
}

.store-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px 80px 20px;
}

/* Верхняя панель навигации магазина */
.store-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(18, 14, 11, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    margin-bottom: 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.store-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.store-brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid var(--store-gold);
    box-shadow: 0 0 15px var(--store-gold-glow);
}

.store-brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff 40%, var(--store-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.store-nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Блок выбора валюты с элегантным некликабельным бейджем */
.store-currency-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 6px 3px 12px;
    border-radius: 12px;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
}

.store-currency-label {
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--store-gold);
    user-select: none;
    text-transform: uppercase;
}

.store-currency-select {
    color-scheme: dark;
    background: #1b1612;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    color: #ffd700;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.6);
}

.store-currency-select:hover,
.store-currency-select:focus {
    border-color: var(--store-gold);
    background: #251e17;
    box-shadow: 0 0 14px var(--store-gold-glow);
}

.store-currency-select option {
    background-color: #16120e;
    color: #ffffff;
    padding: 12px 16px;
    font-weight: 600;
}

.store-currency-select option:checked {
    background-color: #2a2016;
    color: #ffd700;
    font-weight: 800;
}

.store-lang-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.store-lang-btn:hover {
    border-color: var(--store-gold);
    background: rgba(212, 175, 55, 0.15);
}

.store-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--store-gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.2s ease;
}

.store-back-link:hover {
    color: var(--store-gold-hover);
    transform: translateX(-3px);
}

/* Главный заголовок магазина */
.store-hero {
    text-align: center;
    margin-bottom: 40px;
}

.store-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 20%, #d4af37 60%, #aa820a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 25px rgba(212, 175, 55, 0.2);
}

.store-hero p {
    color: var(--store-text-muted);
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Вкладки категорий магазина */
.store-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.store-tab-btn {
    background: rgba(27, 22, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--store-text-muted);
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
}

.store-tab-btn:hover {
    border-color: var(--store-gold);
    color: #fff;
    transform: translateY(-2px);
}

.store-tab-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(170, 130, 10, 0.15) 100%);
    border-color: var(--store-gold);
    color: var(--store-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

/* Сетка товаров */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Элитная симметричная раскладка 3 вверху + 2 VIP внизу по центру для 5 спонсоров */
.store-grid.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1060px;
    margin: 0 auto 40px auto;
}

.store-grid.sponsors-grid .store-card {
    flex: 0 1 calc(33.333% - 14px);
    min-width: 290px;
}

.store-grid.sponsors-grid .store-card.featured {
    flex: 0 1 calc(50% - 10px);
    min-width: 320px;
}

@media (max-width: 960px) {
    .store-grid.sponsors-grid .store-card,
    .store-grid.sponsors-grid .store-card.featured {
        flex: 1 1 100%;
        min-width: unset;
    }
}

/* Карточка товара */
.store-card {
    background: var(--store-card-bg);
    border: 1.5px solid var(--store-card-border);
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--store-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.store-card:hover {
    transform: translateY(-4px);
    border-color: var(--store-card-hover-border);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 20px rgba(212, 175, 55, 0.2);
}

.store-card:hover::before {
    opacity: 1;
}

.store-card.featured {
    border-color: var(--store-gold);
    background: linear-gradient(180deg, rgba(35, 27, 20, 0.95) 0%, rgba(20, 15, 12, 0.9) 100%);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.15);
}

.store-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
    color: #000;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

.store-card-header {
    margin-bottom: 14px;
}

.store-card-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: inline-block;
}

.store-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.store-duration-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--store-gold-bright);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 8px;
    margin-bottom: 8px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.store-card-desc {
    color: var(--store-text-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0;
}

.store-card-price-box {
    margin: 18px 0 14px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.store-price-main {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--store-gold);
    letter-spacing: -0.5px;
}

.store-price-period {
    color: var(--store-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.store-buy-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.store-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
    background: linear-gradient(135deg, #f3cf55 0%, #c49914 100%);
}

/* Секция промокодов */
.store-promo-section {
    max-width: 650px;
    margin: 0 auto;
    background: var(--store-card-bg);
    border: 1.5px solid var(--store-card-border);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.store-promo-input-group {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.store-promo-input {
    flex: 1;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    text-align: center;
    letter-spacing: 1px;
    transition: 0.2s ease;
}

.store-promo-input:focus {
    border-color: var(--store-gold);
    box-shadow: 0 0 15px var(--store-gold-glow);
    background: rgba(255, 255, 255, 0.08);
}

.store-promo-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.25s ease;
}

.store-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Модальное окно выбора метода оплаты */
.store-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.store-modal-box {
    background: #1a1410;
    border: 2px solid var(--store-gold);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    padding: 35px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.2);
    animation: storeModalFadeIn 0.3s ease;
}

@keyframes storeModalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.store-modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: var(--store-text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.store-modal-close-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.store-pay-option-btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.store-pay-paypal {
    background: #0070ba;
    color: #fff;
}
.store-pay-paypal:hover {
    background: #005ea6;
    box-shadow: 0 4px 20px rgba(0, 112, 186, 0.4);
}

.store-pay-lava {
    background: linear-gradient(135deg, #136b4f 0%, #1d9b6c 100%);
    border-color: #63f5b0;
    color: #ffffff;
}
.store-pay-lava:hover {
    background: linear-gradient(135deg, #0e563e 0%, #178a5e 100%);
    border-color: #7affc0;
    box-shadow: 0 4px 20px rgba(29, 155, 108, 0.45);
}

/* RTL поддержка для иврита и арабского */
body.rtl-mode {
    direction: rtl;
}
body.rtl-mode .store-back-link:hover {
    transform: translateX(3px);
}
body.rtl-mode .store-badge {
    right: auto;
    left: 15px;
}
body.rtl-mode .store-modal-close-btn {
    right: auto;
    left: 18px;
}

/* Адаптив под мобильные устройства и планшеты */
@media (max-width: 768px) {
    .store-container {
        padding: 15px 12px 60px 12px;
    }
    .store-hero h1 {
        font-size: 1.7rem;
        letter-spacing: 0.5px;
    }
    .store-hero p {
        font-size: 0.92rem;
    }
    .store-header-bar {
        flex-direction: column;
        gap: 16px;
        padding: 18px 15px;
        text-align: center;
    }
    .store-nav-controls {
        justify-content: center;
        width: 100%;
        gap: 10px;
    }
    .store-currency-wrapper {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    .store-currency-select {
        max-width: 220px;
    }
    .store-tabs {
        gap: 8px;
        margin-bottom: 25px;
    }
    .store-tab-btn {
        padding: 10px 16px;
        font-size: 0.86rem;
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
    }
    .store-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .store-card {
        padding: 24px 20px;
    }
    .store-price-main {
        font-size: 1.75rem;
    }
    .store-promo-section {
        padding: 30px 18px;
    }
    .store-promo-input-group {
        flex-direction: column;
    }
    .store-promo-btn {
        width: 100%;
        padding: 15px;
    }
    .store-modal-box {
        padding: 30px 20px;
    }
}

@media (max-width: 420px) {
    .store-tab-btn {
        flex: 1 1 100%;
    }
    .store-brand-title {
        font-size: 1.1rem;
    }
}
