/* Shop User Styles */

.sfb-shop {
    margin-top: 2rem;
}

.sfb-card--shop {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #0f3460;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.sfb-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sfb-card__title {
    color: #fbbf24;
    font-weight: 700;
    margin: 0;
}

.sfb-card__subtitle {
    color: #cbd5f5;
    margin: 0.35rem 0 0;
}

.sfb-card__actions {
    display: flex;
    gap: 0.75rem;
}

.sfb-shop__layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
}

.sfb-shop__sidebar {
    background: rgba(15, 52, 96, 0.2);
    border: 1px solid rgba(15, 52, 96, 0.8);
    border-radius: 12px;
    padding: 0.75rem;
    max-height: 640px;
    overflow: auto;
}

.sfb-shop__sidebar-header h4 {
    color: #fbbf24;
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.sfb-shop__sidebar-header p {
    margin: 0 0 1rem;
    color: #cbd5f5;
    font-size: 0.85rem;
}

.sfb-shop__categories {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sfb-shop__category-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(15, 10, 27, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sfb-shop__category-item:hover {
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(251, 191, 36, 0.12);
}

.sfb-shop__category-item.is-active {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.2);
    color: #f8fafc;
}

.sfb-shop__category-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.2);
}

.sfb-shop__category-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sfb-shop__category-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.sfb-shop__category-meta {
    font-size: 0.75rem;
    color: #94a3b8;
}

.sfb-shop__controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: end;
}

.sfb-shop__filters {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.sfb-shop__filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: end;
    align-self: end;
}

.sfb-shop__filter-actions .sfb-btn {
    height: 42px;
}

.sfb-shop__grid-wrap {
    max-height: 700px;
    overflow: auto;
    padding-right: 0.25rem;
}

.sfb-shop__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 180px));
    gap: 0.6rem;
    justify-content: start;
    justify-items: start;
    align-content: start;
}

.sfb-shop__card {
    background-color: rgba(15, 52, 96, 0.25);
    border: 2px solid #0f3460;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
    max-width: 180px;
    transition: all 0.3s ease;
    position: relative;
}

.sfb-shop__card--raro,
.sfb-shop__card--rare {
    border-color: #3b82f6 !important;
    box-shadow: inset 0 0 8px rgba(59, 130, 246, 0.2), 0 0 16px rgba(59, 130, 246, 0.5) !important;
}

.sfb-shop__card--épico,
.sfb-shop__card--epic {
    border-color: #8b5cf6 !important;
    box-shadow: inset 0 0 8px rgba(139, 92, 246, 0.2), 0 0 16px rgba(139, 92, 246, 0.5) !important;
}

.sfb-shop__card--legendario,
.sfb-shop__card--legendary {
    border-color: #f59e0b !important;
    box-shadow: inset 0 0 8px rgba(245, 158, 11, 0.2), 0 0 20px rgba(245, 158, 11, 0.6) !important;
}

.sfb-shop__card--mítico,
.sfb-shop__card--mythic {
    border-color: #ef4444 !important;
    box-shadow: inset 0 0 8px rgba(239, 68, 68, 0.2), 0 0 20px rgba(239, 68, 68, 0.6) !important;
}

.sfb-shop__card--común,
.sfb-shop__card--common {
    border-color: #6b7280 !important;
    box-shadow: none !important;
}

.sfb-shop__card-img {
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    color: #94a3b8;
}

.sfb-shop__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfb-shop__card-body {
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sfb-shop__bp-rewards-wrap {
    margin-top: 0.25rem;
}

.sfb-shop__bp-rewards {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: grid;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #cbd5f5;
}

.sfb-shop__bp-rewards li {
    padding: 0.35rem 0.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
}

.sfb-shop__card-title {
    color: #f8fafc;
    font-size: 1.05rem;
    margin: 0;
}

.sfb-shop__card-desc {
    color: #94a3b8;
    margin: 0;
    font-size: 0.9rem;
}

.sfb-shop__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #e2e8f0;
    font-size: 0.85rem;
}

.sfb-shop__price {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #fbbf24;
}

.sfb-shop__currency-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) brightness(1.1);
}

.sfb-shop__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sfb-shop__actions .sfb-btn {
    flex: 1;
}

.sfb-shop__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.sfb-shop__page {
    color: #e2e8f0;
}

.sfb-shop__purchases {
    margin-top: 1rem;
}

.sfb-shop__table {
    display: grid;
    gap: 0.5rem;
}

.sfb-shop__table-head,
.sfb-shop__table-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.sfb-shop__table-head {
    color: #fbbf24;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #0f3460;
}

.sfb-shop__table-row {
    color: #e2e8f0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(15, 52, 96, 0.5);
}

.sfb-shop__empty {
    color: #94a3b8;
    text-align: center;
    padding: 2rem 0;
}

.sfb-btn {
    background-color: #fbbf24;
    border: 1px solid #fbbf24;
    color: #1f2937;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

@media (max-width: 960px) {
    .sfb-shop__layout {
        grid-template-columns: 1fr;
    }

    .sfb-shop__sidebar {
        max-height: none;
    }
}

.sfb-btn:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.sfb-btn--secondary {
    background-color: #334155;
    border-color: #334155;
    color: #e2e8f0;
}

.sfb-btn--secondary:hover {
    background-color: #475569;
    border-color: #475569;
}

@media (max-width: 768px) {
    .sfb-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sfb-shop__controls {
        grid-template-columns: 1fr;
    }

    .sfb-shop__filters {
        grid-template-columns: 1fr;
    }

    .sfb-shop__filter-actions {
        width: 100%;
    }

    .sfb-shop__filter-actions button {
        flex: 1;
    }

    .sfb-shop__table-head,
    .sfb-shop__table-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
