/**
 * economyshop Stylesheet
 */

:root {
    --shop-primary: #3b82f6;
    --shop-success: #10b981;
    --shop-danger: #ef4444;
    --shop-warning: #f59e0b;
    --shop-dark: #1e293b;
    --shop-light: #f8fafc;
}

/* Tabs */
.shop-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.shop-tab-link {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none !important;
    transition: all 0.2s;
}

.shop-tab-link:hover {
    background: #f1f5f9;
    color: var(--shop-primary);
}

.shop-tab-link.active {
    background: var(--shop-primary);
    color: white;
}

.shop-tab-content {
    display: none;
}

.shop-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   CABEÇALHO E ESTRUTURA COM PADRÃO PROSILVER PHPBB (.panel.bg1, .bg2, .button, .forabg, .tabs)
   ========================================================================== */
.shop-hero-header {
    margin: 12px 0 16px;
}

.shop-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.shop-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.shop-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.shop-brand-text h2 {
    margin: 0 !important;
    border-bottom: none !important;
}

.shop-brand-text p {
    margin: 4px 0 0 !important;
    font-size: 0.92rem;
}

.shop-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-wallet-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 6px;
}

.shop-wallet-icon-inline {
    font-size: 1.25rem;
}

.shop-wallet-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.shop-wallet-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.8;
}

.shop-wallet-amount {
    font-size: 1.05rem;
    font-weight: 800;
}

.shop-nav-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    height: auto !important;
    padding: 8px 14px !important;
}

/* Barra de Busca e Ordenação Integrada no Cabeçalho */
.shop-hero-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}

.shop-search-box {
    float: none !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
}

.shop-search-box fieldset {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: none;
}

.shop-search-box input.inputbox.search {
    min-width: 240px;
}

.shop-toolbar-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-sort-fieldset {
    margin: 0 !important;
    padding: 0 !important;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-sort-fieldset label {
    padding-right: 0 !important;
    margin: 0;
}

/* Faixa de Categorias Separadas em Botões do Prosilver (.button + .badge) */
.cat-pills-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 12px;
    margin-bottom: 10px;
    scrollbar-width: thin;
}

.cat-pill-item {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 7px 14px !important;
    height: auto !important;
    white-space: nowrap;
}

.cat-pill-item .badge,
.cat-pill-item:hover .badge,
.cat-pill-item:focus .badge {
    text-shadow: none !important;
    filter: none !important;
}

.cat-pill-item.active {
    font-weight: 700 !important;
    box-shadow: inset 0 -2px 0 currentColor;
}

/* Abas Nativas do Prosilver (#tabs .tabs) */
.shop-prosilver-tabs {
    margin-bottom: 14px !important;
}

/* Seções com Cabeçalho Nativo Prosilver (.forabg) + Painel (.panel.bg1) */
.shop-section-modern {
    margin-bottom: 24px;
}

.shop-forabg-header {
    margin-bottom: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.shop-forabg-header li.header dl.row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-forabg-header li.header dt {
    width: auto !important;
    float: none !important;
}

.shop-forabg-header li.header dt .list-inner {
    margin-right: 0 !important;
    padding-left: 6px !important;
}

.shop-header-count {
    font-weight: normal;
    opacity: 0.85;
    text-transform: none;
    margin-left: 4px;
}

.shop-carousel-controls-dd {
    display: flex !important;
    align-items: center;
    gap: 6px;
    width: auto !important;
    float: none !important;
    padding-right: 6px !important;
}

.shop-carousel-btn {
    padding: 2px 8px !important;
    min-height: 24px !important;
    line-height: 1.2 !important;
}

.shop-section-panel {
    margin-top: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 30px;
    padding: 30px 40px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 16px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.shop-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.shop-header .shop-header-info h2 {
    color: #ffffff !important;
    margin: 0 0 5px 0 !important;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shop-header .shop-header-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.shop-btn-badge {
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-header-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.shop-header-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.shop-balance-card {
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.shop-balance-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 700;
    line-height: 1.1;
}

.shop-balance-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 5px;
}

.shop-balance-value small {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

/* Prosilver forabg + panel inner integration */
.shop-categories-box,
.shop-section-block {
    margin-bottom: 18px;
}

.shop-categories-panel,
.shop-section-panel {
    margin-bottom: 0 !important;
    border-radius: 5px;
}

/* Featured Items Autoplay Carousel */
.shop-carousel-controls-dd {
    float: right !important;
    width: auto !important;
    padding: 2px 6px !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.shop-carousel-btn {
    min-width: 26px;
    height: 24px;
    padding: 0 6px !important;
    line-height: 22px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.shop-carousel {
    position: relative;
    padding: 5px 0;
}

.shop-carousel-viewport {
    overflow: hidden;
    padding: 14px 6px 18px;
    margin: -10px -6px;
}

.shop-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.shop-carousel-slide {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
    display: flex;
}

.shop-carousel-slide > .shop-card {
    width: 100%;
}

@media (max-width: 980px) {
    .shop-carousel-slide {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 640px) {
    .shop-carousel-slide {
        flex: 0 0 100%;
    }
}

.shop-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.shop-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: #cbd5e1;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.shop-carousel-dot:hover {
    background: #94a3b8;
}

.shop-carousel-dot.is-active {
    width: 28px;
    background: var(--shop-primary);
}

.shop-section-title {
    margin: 40px 0 20px;
    border-left: 4px solid var(--shop-primary);
    padding-left: 15px;
}

.shop-section-title h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 !important;
    text-transform: none !important;
}

.shop-section-title p {
    color: #64748b;
    margin: 5px 0 0;
}

.shop-header-count {
    font-size: 0.85em;
    font-weight: normal;
    opacity: 0.85;
    margin-left: 6px;
    text-transform: none;
}

.shop-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 40px 0;
}

/* Back Button & Sort Container */
.shop-back-container {
    flex: 1;
}

.shop-sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-sort-container form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.shop-sort-container select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 0.9rem;
    cursor: pointer;
}

.shop-sort-container label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
}

/* Inventory & Shop Grid */
.panel .shop-inventory-grid,
.panel .shop-category-grid {
    padding: 10px 5px;
    margin-top: 0;
    margin-bottom: 0;
}

.shop-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.shop-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.shop-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--shop-primary);
}

/* Special States */
.shop-card.is-featured {
    border-color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.shop-card.is-featured::after {
    content: "\f005";
    font-family: FontAwesome;
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f59e0b;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border: 2px solid white;
}

.shop-card.is-on-sale {
    border-color: #ef4444;
    background: linear-gradient(to bottom, #ffffff, #fff5f5);
}

.shop-card.is-on-sale .shop-card-price {
    color: #ef4444;
    font-size: 1.6rem;
}

.shop-sale-timer {
    font-size: 0.85rem;
    color: #ef4444;
    font-weight: 700;
    margin-top: 5px;
    padding: 4px 10px;
    background: #fee2e2;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    /* For tooltip */
    cursor: help;
}

.shop-resale-badge {
    background: var(--shop-success);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.shop-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.shop-resale-icon-inline {
    color: var(--shop-success);
    font-size: 14px;
    margin-left: 5px;
    cursor: help;
}

.shop-sale-timer:hover .shop-tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.shop-card.is-discounted {
    border-style: solid;
}

.shop-card.is-featured:hover {
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
}

.shop-card-image {
    position: relative;
    height: 180px;
    width: 100%;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    /* Only crop the image part */
}

.shop-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.shop-card-icon-wrapper {
    position: absolute;
    top: 152px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 3px solid #ffffff;
    z-index: 5;
}

.shop-card-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.shop-card-body {
    padding: 45px 20px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

.shop-card-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.shop-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}


.shop-meta-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    color: #475569;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    position: relative;
    /* For tooltip positioning */
}

.shop-meta-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.shop-meta-pill i {
    color: #64748b;
    font-size: 1rem;
    transition: color 0.2s;
}

/* Custom Tooltip Styling */
.shop-tooltip-text {
    visibility: hidden;
    background-color: rgba(30, 41, 59, 0.98);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 12px;
    position: absolute;
    z-index: 100;
    /* Higher z-index */
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* Tooltip Arrow */
.shop-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(30, 41, 59, 0.95) transparent transparent transparent;
}

.shop-meta-pill:hover .shop-tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}


.pill-gift {
    background: #faf5ff;
    border-color: #f3e8ff;
}

.pill-gift i {
    color: #a855f7;
}

.pill-price {
    background: #f0fdf4;
    border-color: #dcfce7;
}

.pill-price i {
    color: #22c55e;
}

.pill-success {
    background: #f0fdf4;
    border-color: #dcfce7;
}

.pill-success i {
    color: #22c55e;
}

.pill-warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.pill-warning i {
    color: #d97706;
}

.pill-danger {
    background: #fef2f2;
    border-color: #fee2e2;
}

.pill-danger i {
    color: #ef4444;
}


.shop-pagination-row {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 15px 0;
    padding: 0 5px;
}

.shop-pagination-row .pagination {
    margin-left: auto;
}

.shop-pagination-row .shop-back-container {
    margin-right: 15px;
}

.shop-sort-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.shop-sort-container.bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    margin-top: 30px;
}

.display-options {
    font-size: 0.9em;
    color: #64748b;
}

.display-options select {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    margin: 0 5px;
}

.action-bar .pagination {
    margin: 0;
}

/* Premium Button System (Unified with ACP) */
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 15px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 0.95em;
    transition: all 0.2s;
    text-decoration: none !important;
    cursor: pointer;
    flex: 1;
    position: relative;
    white-space: nowrap;
}

.shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.shop-btn i {
    font-size: 1.1rem;
}

.shop-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.shop-btn:hover .shop-tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}


/* Logic Colors */
.btn-use:hover {
    background: #f0fdf4 !important;
    color: #10b981 !important;
    border-color: #bbf7d0 !important;
}

.btn-sell:hover {
    background: #fff7ed !important;
    color: #f97316 !important;
    border-color: #ffedd5 !important;
}

.btn-trash:hover {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border-color: #fecaca !important;
}

.btn-display:hover,
.btn-display.is-active {
    background: #eff6ff !important;
    color: #3b82f6 !important;
    border-color: #bfdbfe !important;
}

.btn-market:hover {
    background: #f0fdfa !important;
    color: #0d9488 !important;
    border-color: #99f6e4 !important;
}

.btn-refund:hover {
    background: #fffbeb !important;
    color: #d97706 !important;
    border-color: #fde68a !important;
}

.shop-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* Modal Form Styling */
.shop-swal-intro {
    font-size: 1.1em;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.shop-swal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    margin-top: 15px;
}

.shop-swal-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-swal-field label {
    font-size: 0.95em;
    font-weight: 600;
    color: #475569;
}

.shop-swal-field .swal2-input {
    margin: 0 !important;
    width: 100% !important;
    height: 45px !important;
    font-size: 1.1em !important;
    border-radius: 8px !important;
}

.shop-swal-form .shop-inventory-alert {
    margin-top: 5px;
    margin-bottom: 10px;
}

.shop-tax-notice {
    font-size: 0.85em;
    color: #64748b;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.shop-tax-notice i {
    color: #3b82f6;
}

.shop-market-tax-box {
    background: #fff7ed;
    border: 1px solid #ffedd5;
    color: #9a3412;
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    font-weight: 600;
}

.shop-market-tax-box i {
    font-size: 1.1em;
    color: #f97316;
}

.shop-badge-warning {
    background: #fffbeb !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
}

.shop-badge-danger {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border: 1px solid #fecaca !important;
}

.btn-display:hover i,
.btn-display.is-active i {
    color: #3b82f6 !important;
}

.btn-buy:hover {
    background: #f0fdf4 !important;
    color: #10b981 !important;
    border-color: #bbf7d0 !important;
}

.btn-gift:hover {
    background: #faf5ff !important;
    color: #a855f7 !important;
    border-color: #f3e8ff !important;
}

.btn-sold-out {
    cursor: not-allowed !important;
    opacity: 0.7;
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border: 1px solid #fecaca !important;
    pointer-events: none;
}

.shop-btn-primary {
    background: var(--shop-primary);
    color: #fff !important;
    border: none;
}

.shop-btn-primary:hover {
    background: #2563eb;
}

/* Empty state */
.shop-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
}

.shop-empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.shop-card-warning {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}

/* Category Grid */
.shop-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 0;
}

.shop-category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    text-decoration: none !important;
    color: inherit !important;
}

.shop-category-card:hover,
.shop-category-card.is-active {
    border-color: var(--shop-primary);
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.shop-category-card.is-active {
    background: #eff6ff;
    border-width: 2px;
    border-color: #3b82f6;
}

.shop-category-card.is-active .shop-category-name {
    color: #1d4ed8;
    font-weight: 800;
}

.shop-category-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.shop-category-card:hover .shop-category-icon,
.shop-category-card.is-active .shop-category-icon {
    background: #dbeafe;
    color: var(--shop-primary);
}

.shop-category-info {
    flex: 1;
    min-width: 0;
}

.shop-category-name {
    font-weight: 700;
    font-size: 0.98rem;
    color: #1e293b;
    display: block;
}

.shop-category-desc {
    font-size: 0.78rem;
    color: #64748b;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-category-count {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    display: block;
}

/* Price & Badges */
.shop-card-price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 15px 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}

.shop-card-price {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--shop-success);
}

.shop-card-old-price {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.shop-card-badge-floating {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

/* UCP Inventory Specific Overrides */
.shop-ucp-container .shop-inventory-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.shop-ucp-container .shop-card {
    padding: 0;
}

.shop-ucp-container .shop-card-image {
    height: 120px;
}

.shop-ucp-container .shop-card-icon-wrapper {
    top: 92px;
    width: 48px;
    height: 48px;
}

.shop-ucp-container .shop-card-icon {
    width: 30px;
    height: 30px;
}

.shop-ucp-container .shop-card-body {
    padding: 30px 12px 15px 12px;
}

.shop-ucp-container .shop-card-title {
    font-size: 1.1rem;
}

.shop-ucp-container .shop-card-desc {
    font-size: 0.85rem;
}

.shop-ucp-container .shop-btn {
    flex: 1;
    padding: 0 12px;
    height: 34px;
    font-size: 0.85em;
}

.shop-ucp-container .shop-card-footer {
    justify-content: center;
    flex-wrap: wrap;
}

/* Component Extensions */
.shop-card-icon-fa {
    font-size: 24px;
    color: #334155;
}

.shop-card-icon-default {
    font-size: 24px;
    color: #cbd5e1;
}

.shop-btn-full {
    flex: 1;
}

.shop-empty-btn {
    max-width: 200px;
    margin: 20px auto 0;
}

.badge-discount {
    background: #ef4444;
}

.sold-out-text {
    font-weight: 700;
    margin-left: 5px;
}

/* Item Config Form (UCP) */
.shop-item-config-group {
    margin-top: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.shop-config-title {
    color: #1e293b;
    border-left: 4px solid #3b82f6;
    padding-left: 10px;
    margin-bottom: 15px;
}

.shop-config-dl {
    margin-bottom: 10px;
}

.shop-config-dt {
    width: 40%;
}

/* Notices */
.shop-notice-center {
    text-align: center;
    padding: 40px 20px;
}

.shop-notice-icon {
    font-size: 3em !important;
    color: #3b82f6;
    margin-bottom: 15px;
    opacity: 0.5;
}

.shop-notice-title {
    font-size: 1.2em;
    color: #4b5563;
    margin-top: 10px;
}

.shop-notice-text {
    color: #94a3b8;
}

/* Utilities */
.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-40 {
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
}

.text-danger {
    color: #ef4444 !important;
}

.text-success {
    color: #10b981 !important;
}

.shop-shelf-icon {
    max-width: 24px;
    vertical-align: middle;
}

.shop-hidden {
    display: none !important;
}

/* Modal Inventory Alert */
.shop-inventory-alert {
    margin-top: 15px;
    padding: 12px 15px;
    background: #f8fafc;
    border-left: 4px solid #7066e0;
    border-radius: 8px;
    font-size: 0.9em;
    color: #475569;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
}

.shop-inventory-alert i {
    color: #7066e0;
    font-size: 1.1em;
}/* economyshop Name Effects (Ported from Flarum) */
.shop-effect-gold {
    color: #FFD700 !important;
    text-shadow: 0 0 6px #FFD700, 0 0 12px rgba(255, 215, 0, 0.5) !important;
}

.shop-effect-gold-pulse {
    color: #FFD700 !important;
    animation: shop-anim-gold-pulse 2s ease-in-out infinite !important;
}
@keyframes shop-anim-gold-pulse {
    0%, 100% { text-shadow: 0 0 4px #FFD700, 0 0 8px rgba(255, 215, 0, 0.3); }
    50%      { text-shadow: 0 0 12px #FFD700, 0 0 24px rgba(255, 215, 0, 0.8); }
}

.shop-effect-rainbow {
    background: linear-gradient(90deg, #ff0000, #ff8800, #ffee00, #00ff00, #00ddff, #0088ff, #aa00ff, #ff0088, #ff0000) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    animation: shop-anim-rainbow 3s linear infinite !important;
}
@keyframes shop-anim-rainbow { to { background-position: 200% center; } }

.shop-effect-neon {
    color: #fff !important;
    animation: shop-anim-neon 2.5s ease-in-out infinite !important;
}
@keyframes shop-anim-neon {
    0%, 100% { text-shadow: 0 0 4px #fff, 0 0 8px #00f6ff, 0 0 16px #00f6ff, 0 0 24px #0066ff; }
    50%      { text-shadow: 0 0 2px #fff, 0 0 4px #00f6ff, 0 0 8px #00f6ff, 0 0 12px #0066ff; }
}

.shop-effect-fire {
    background: linear-gradient(180deg, #fff200 0%, #ff8800 50%, #ff0000 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    animation: shop-anim-fire 1.5s ease-in-out infinite !important;
}
@keyframes shop-anim-fire {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.2); }
}

.shop-effect-glitch {
    color: #fff !important;
    animation: shop-anim-glitch 0.3s infinite !important;
}
@keyframes shop-anim-glitch {
    0%, 100% { text-shadow:  2px 0  #ff00ea, -2px 0  #00f6ff; }
    50%      { text-shadow: -2px 0  #ff00ea,  2px 0  #00f6ff; }
}

.shop-effect-sparkle {
    color: gold !important;
    position: relative !important;
    display: inline-block !important;
    text-shadow: 0 0 6px gold !important;
    padding: 8px !important;
}
.shop-effect-sparkle::before {
    content: '\2726' !important;
    position: absolute !important;
    top: -2px !important;
    left: -8px !important;
    color: #fff !important;
    font-size: 14px !important;
    text-shadow: 0 0 6px #fff, 0 0 12px gold !important;
    animation: shop-anim-sparkle 1.8s ease-in-out infinite !important;
}
.shop-effect-sparkle::after {
    content: '\2726' !important;
    position: absolute !important;
    bottom: -2px !important;
    right: -8px !important;
    color: #fff !important;
    font-size: 14px !important;
    text-shadow: 0 0 6px #fff, 0 0 12px gold !important;
    animation: shop-anim-sparkle 1.8s ease-in-out 0.9s infinite !important;
}
@keyframes shop-anim-sparkle {
    0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
    50%      { opacity: 1; transform: scale(1.2) rotate(180deg); }
}
/* economyshop Post Highlights (Ported from Flarum) */
.shop-posthl-base {
    outline: 2px solid var(--shop-posthl-color, #6cc04a);
    outline-offset: 4px;
}
.shop-posthl-gold-border    { --shop-posthl-color: #d6a200; }
.shop-posthl-silver-border  { --shop-posthl-color: #9da3ad; }
.shop-posthl-glow-blue      { --shop-posthl-color: #2f81f7; animation: shop-posthl-glow 2.5s ease-in-out infinite alternate; }
.shop-posthl-glow-purple    { --shop-posthl-color: #8b5cf6; animation: shop-posthl-glow 2.5s ease-in-out infinite alternate; }
.shop-posthl-glow-green     { --shop-posthl-color: #16a34a; animation: shop-posthl-glow 2.5s ease-in-out infinite alternate; }
.shop-posthl-ribbon-red     { --shop-posthl-color: #dc2626; outline-style: dashed !important; }
.shop-posthl-ribbon-gold    { --shop-posthl-color: #d6a200; outline-style: dashed !important; }
.shop-posthl-dashed-accent  { outline-style: dashed !important; }
.shop-posthl-shadow-soft    { outline: none !important; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10); }
.shop-posthl-gradient-edge  {
    outline: none !important;
    position: relative;
    background-image:
        linear-gradient(#fff, #fff),
        linear-gradient(135deg, #ff7e5f, #feb47b, #6dd5ed, #2193b0);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    border: 2px solid transparent;
}

@keyframes shop-posthl-glow {
    from { box-shadow: 0 0 0 0 var(--shop-posthl-color); opacity: 0.8; }
    to   { box-shadow: 0 0 0 8px var(--shop-posthl-color); opacity: 1; }
}

/* ==========================================================================
   VITRINE DE VENDAS NA ASSINATURA E PERFIL DO USUÁRIO
   ========================================================================== */
.shop-signature-showcase {
    margin: 12px 0 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    clear: both;
}

.shop-signature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0.85;
}

.shop-sig-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.shop-sig-link {
    font-size: 0.78rem;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.shop-sig-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.shop-signature-items {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-signature-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.shop-signature-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.12);
}

.shop-sig-icon-wrap {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-sig-icon-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    vertical-align: middle;
}

.shop-sig-info {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.2;
}

.shop-sig-item-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
}

.shop-sig-item-price {
    font-size: 0.72rem;
    color: #059669;
    font-weight: 800;
}
