/* =============================================================
   WoW Bolivia — Store
   ============================================================= */

/* ---- Store header banner ---- */
.wb-store-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 22px 28px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.95) 0%, rgba(5, 25, 45, 0.9) 100%);
    border: 1px solid rgba(244, 191, 42, 0.15);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.wb-store-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(244, 191, 42, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.wb-store-header-info {
    flex: 1;
    min-width: 180px;
    position: relative;
    z-index: 1;
}

.wb-store-header-title {
    font-size: 22px;
    font-weight: 800;
    color: #f4bf2a;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.wb-store-header-sub {
    font-size: 13px;
    color: #5a7a8a;
    margin: 0;
}

.wb-store-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Botones votar / donar */
.wb-store-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none !important;
    border: 1px solid;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wb-store-header-btn--vp {
    background-color: rgba(2, 179, 234, 0.1);
    border-color: rgba(2, 179, 234, 0.35);
    color: #7ecfff !important;
}

.wb-store-header-btn--vp:hover {
    background-color: rgba(2, 179, 234, 0.22);
    border-color: rgba(2, 179, 234, 0.65);
}

.wb-store-header-btn--dp {
    background-color: rgba(117, 4, 4, 0.15);
    border-color: rgba(209, 0, 2, 0.3);
    color: #ff9090 !important;
}

.wb-store-header-btn--dp:hover {
    background-color: rgba(117, 4, 4, 0.28);
    border-color: rgba(209, 0, 2, 0.55);
}

/* Saldos */
.wb-store-balance {
    display: flex;
    align-items: center;
    gap: 0;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.wb-store-balance-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
}

.wb-store-balance-sep {
    width: 1px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.wb-store-balance-item > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wb-store-balance-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4a6a7a;
}

.wb-store-balance-value {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    color: #f4bf2a;
}

/* ---- Filter toolbar ---- */
.wb-store-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 14px 16px;
    background-color: rgba(5, 12, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
}

.wb-store-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #5a7a8a;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    margin: 0;
}

.wb-store-filter-group {
    display: flex;
    align-items: center;
    gap: 7px;
}

.wb-store-filter-search {
    flex: 1;
    min-width: 140px;
    position: relative;
}

.wb-store-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #3a5a6a;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

.wb-store-search-input {
    padding-left: 32px !important;
}

.wb-store-filter-toggles {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* Toggle buttons */
.wb-store-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid;
}

.wb-store-toggle-vp {
    background-color: rgba(2, 179, 234, 0.1);
    border-color: rgba(2, 179, 234, 0.3);
    color: #7ecfff !important;
}

.wb-store-toggle-vp.nice_active {
    background-color: rgba(2, 179, 234, 0.2);
    border-color: rgba(2, 179, 234, 0.6);
}

.wb-store-toggle-dp {
    background-color: rgba(244, 191, 42, 0.08);
    border-color: rgba(244, 191, 42, 0.25);
    color: #f4bf2a !important;
}

.wb-store-toggle-dp.nice_active {
    background-color: rgba(244, 191, 42, 0.18);
    border-color: rgba(244, 191, 42, 0.5);
}

/* ---- Store layout: items + cart ---- */
#store_content {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 20px;
    align-items: start;
}

/* ---- Accordion overrides ---- */
.wb-store-realm-block {
    margin-bottom: 16px;
}

.wb-store-accordion-item {
    background-color: rgba(5, 12, 22, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.wb-store-accordion-btn {
    background-color: rgba(244, 191, 42, 0.05) !important;
    color: #f4bf2a !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 13px 18px !important;
    border-bottom: 1px solid rgba(244, 191, 42, 0.1) !important;
    box-shadow: none !important;
}

.wb-store-accordion-btn::after {
    filter: invert(80%) sepia(30%) saturate(500%) hue-rotate(5deg) brightness(110%);
}

.wb-store-accordion-btn.collapsed {
    color: #7a9ab0 !important;
    background-color: transparent !important;
    border-bottom-color: transparent !important;
}

.wb-store-group-btn {
    font-size: 13px !important;
    color: #c0d4e0 !important;
    background-color: rgba(2, 179, 234, 0.04) !important;
    border-bottom-color: rgba(2, 179, 234, 0.08) !important;
    padding: 10px 18px !important;
}

.wb-store-group-btn.collapsed {
    color: #5a7a8a !important;
    background-color: transparent !important;
    border-bottom-color: transparent !important;
}

.wb-store-accordion-body {
    padding: 14px !important;
    background-color: rgba(3, 8, 16, 0.5) !important;
}

/* ---- Item grid ---- */
.wb-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
}

/* ---- Item card ---- */
.wb-store-card {
    display: flex;
    flex-direction: column;
    background-color: rgba(5, 18, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wb-store-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Icon area */
.wb-store-card-icon {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.wb-store-card-icon .item_icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wb-store-card-count {
    position: absolute;
    bottom: 4px;
    right: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    background-color: rgba(0,0,0,0.6);
    padding: 1px 4px;
    border-radius: 3px;
}

/* Quality color bar at bottom of icon */
.wb-store-card-quality-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.wb-store-card-quality-bar.q0 { background-color: #9d9d9d; }
.wb-store-card-quality-bar.q1 { background-color: #ffffff; }
.wb-store-card-quality-bar.q2 { background-color: #1eff00; }
.wb-store-card-quality-bar.q3 { background-color: #0070dd; }
.wb-store-card-quality-bar.q4 { background-color: #a335ee; }
.wb-store-card-quality-bar.q5 { background-color: #ff8000; }
.wb-store-card-quality-bar.q6 { background-color: #e6cc80; }
.wb-store-card-quality-bar.q7 { background-color: #00ccff; }

/* Card body */
.wb-store-card-body {
    padding: 8px 10px 4px;
    flex: 1;
}

.wb-store-card-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
    word-break: break-word;
}

/* Item quality link colors */
.wb-store-card-name.q0 { color: #9d9d9d !important; }
.wb-store-card-name.q1 { color: #ffffff !important; }
.wb-store-card-name.q2 { color: #1eff00 !important; }
.wb-store-card-name.q3 { color: #0070dd !important; }
.wb-store-card-name.q4 { color: #a335ee !important; }
.wb-store-card-name.q5 { color: #ff8000 !important; }
.wb-store-card-name.q6 { color: #e6cc80 !important; }
.wb-store-card-name.q7 { color: #00ccff !important; }

.wb-store-card-desc {
    font-size: 11px;
    color: #4a6a7a;
    margin: 3px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card actions */
.wb-store-card-actions {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wb-store-price-btn {
    display: flex !important;
    align-items: center;
    gap: 5px;
    width: 100%;
    justify-content: center;
    padding: 5px 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid;
}

.wb-store-price-btn--vp {
    background-color: rgba(2, 179, 234, 0.1) !important;
    border-color: rgba(2, 179, 234, 0.3) !important;
    color: #7ecfff !important;
}

.wb-store-price-btn--vp:hover {
    background-color: rgba(2, 179, 234, 0.22) !important;
    border-color: rgba(2, 179, 234, 0.6) !important;
}

.wb-store-price-btn--dp {
    background-color: rgba(244, 191, 42, 0.08) !important;
    border-color: rgba(244, 191, 42, 0.25) !important;
    color: #f4bf2a !important;
}

.wb-store-price-btn--dp:hover {
    background-color: rgba(244, 191, 42, 0.18) !important;
    border-color: rgba(244, 191, 42, 0.5) !important;
}

.wb-store-price-currency {
    font-size: 11px;
    opacity: 0.75;
}

/* ---- Cart sidebar ---- */
.wb-store-cart {
    position: sticky;
    top: 80px;
    background-color: rgba(5, 12, 22, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
}

.wb-store-cart-header {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #f4bf2a;
    background-color: rgba(244, 191, 42, 0.06);
    border-bottom: 1px solid rgba(244, 191, 42, 0.12);
    gap: 4px;
}

.wb-store-cart-count {
    background-color: rgba(2, 179, 234, 0.2);
    border: 1px solid rgba(2, 179, 234, 0.35);
    color: #7ecfff;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    padding: 0 6px;
}

.wb-store-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    min-height: 80px;
    max-height: 340px;
    scrollbar-width: thin;
    scrollbar-color: #1a4a6a #05121f;
}

.wb-store-cart-body::-webkit-scrollbar { width: 4px; }
.wb-store-cart-body::-webkit-scrollbar-track { background: #05121f; }
.wb-store-cart-body::-webkit-scrollbar-thumb { background-color: #1a4a6a; border-radius: 2px; }

.wb-store-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 16px;
    color: #2a4a5a;
    font-size: 13px;
    text-align: center;
}

.wb-store-cart-empty i {
    font-size: 28px;
    color: #1a3040;
}

/* Cart item rows injected by JS — style them */
#cart_items .cart_item,
#cart_items > div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
    color: #c0d4e0;
}

#cart_items .cart_item:last-child,
#cart_items > div:last-child {
    border-bottom: none;
}

/* Cart footer */
.wb-store-cart-footer {
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wb-store-cart-price-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #c0d4e0;
}

.wb-store-price-label {
    font-size: 11px;
    font-weight: 600;
    color: #4a6a7a;
    text-transform: uppercase;
}

#vp_price { color: #7ecfff; }
#dp_price { color: #f4bf2a; }

.wb-store-checkout-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
    padding: 9px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    background-color: #750404 !important;
    border: 1px solid #9a0606 !important;
    color: #fbe530 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wb-store-checkout-btn:hover {
    background-color: #8a0505 !important;
    border-color: #b00707 !important;
}

/* ---- Shared input/select small variants ---- */
.wb-select-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.wb-input-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    #store_content {
        grid-template-columns: 1fr;
    }

    .wb-store-cart {
        position: static;
        max-height: none;
    }

    .wb-store-cart-body {
        max-height: 240px;
    }
}

@media (max-width: 576px) {
    .wb-store-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wb-store-filter-bar {
        gap: 8px;
    }

    .wb-store-filter-toggles {
        margin-left: 0;
    }
}
