/**
 * economyshop - Zeina Style Adaptations
 * Tailored for Zeina modern layout, Tailwind variables and Dark Mode support.
 */

/* ==========================================================================
   1. SEÇÕES CENTRAIS (CARDS NATIVOS ZEINA)
   ========================================================================== */
.shop-section-card {
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    margin-bottom: 1.25rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s, border-color 0.2s;
}

:is(.dark .shop-section-card),
html.dark .shop-section-card {
    border-color: rgb(2 6 23 / 0.3);
    background-color: #0f172a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.shop-section-card .card-title {
    position: relative;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    background: #ffffff;
}

:is(.dark .shop-section-card .card-title),
html.dark .shop-section-card .card-title {
    border-color: rgba(255, 255, 255, 0.06);
    background-color: #0f172a;
    color: #f8fafc;
}

.shop-section-card .card-title h2 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    color: inherit;
}

.shop-section-card .shop-header-count {
    font-size: 0.8rem;
    font-weight: normal;
    color: #64748b;
    margin-left: 6px;
}

:is(.dark .shop-section-card .shop-header-count),
html.dark .shop-section-card .shop-header-count {
    color: #94a3b8;
}

.shop-section-content {
    padding: 1rem;
}

/* ==========================================================================
   2. CONTROLES DO CARROSSEL ZEINA
   ========================================================================== */
.shop-carousel-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-carousel-controls .shop-carousel-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-carousel-controls .shop-carousel-btn:hover {
    background: rgb(var(--color-primary, 59 130 246));
    border-color: rgb(var(--color-primary, 59 130 246));
    color: #ffffff;
}

:is(.dark .shop-carousel-controls .shop-carousel-btn),
html.dark .shop-carousel-controls .shop-carousel-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

:is(.dark .shop-carousel-controls .shop-carousel-btn:hover),
html.dark .shop-carousel-controls .shop-carousel-btn:hover {
    background: rgba(var(--color-primary, 59 130 246), 0.9);
    border-color: transparent;
    color: #ffffff;
}

/* ==========================================================================
   3. ABAS DE FILTRO DA VITRINE (SHOWCASE TABS)
   ========================================================================== */
.shop-zeina-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.shop-zeina-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    cursor: pointer;
}

.shop-zeina-tab:hover {
    background: #f1f5f9;
    color: rgb(var(--color-primary, 59 130 246));
    border-color: #cbd5e1;
}

.shop-zeina-tab.active {
    background: rgb(var(--color-primary, 59 130 246));
    border-color: rgb(var(--color-primary, 59 130 246));
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(var(--color-primary, 59 130 246), 0.35);
}

:is(.dark .shop-zeina-tab),
html.dark .shop-zeina-tab {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

:is(.dark .shop-zeina-tab:hover),
html.dark .shop-zeina-tab:hover {
    background: #1e293b;
    color: #f8fafc;
    border-color: #475569;
}

:is(.dark .shop-zeina-tab.active),
html.dark .shop-zeina-tab.active {
    background: rgba(var(--color-primary, 59 130 246), 0.9);
    border-color: transparent;
    color: #ffffff;
}

/* ==========================================================================
   4. CARDS DOS ITENS (.shop-card) - MODO CLARO E ESCURO
   ========================================================================== */
.shop-card {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: rgb(var(--color-primary, 59 130 246));
}

:is(.dark .shop-card),
html.dark .shop-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

:is(.dark .shop-card:hover),
html.dark .shop-card:hover {
    border-color: rgba(var(--color-primary, 59 130 246), 0.85);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

:is(.dark .shop-card.is-featured),
html.dark .shop-card.is-featured {
    border-color: #f59e0b;
}

:is(.dark .shop-card.is-on-sale),
html.dark .shop-card.is-on-sale {
    border-color: #ef4444;
    background: linear-gradient(180deg, #1e293b 0%, #2a151b 100%);
}

/* Títulos e textos dos cards */
:is(.dark .shop-card-title),
html.dark .shop-card-title {
    color: #f8fafc;
}

:is(.dark .shop-card-desc),
html.dark .shop-card-desc {
    color: #94a3b8;
}

:is(.dark .shop-card-icon-default),
html.dark .shop-card-icon-default {
    color: #64748b;
}

:is(.dark .shop-card-icon-wrapper),
html.dark .shop-card-icon-wrapper {
    background: #0f172a;
    border-color: #334155;
}

/* Área de Preço */
:is(.dark .shop-card-price-container),
html.dark .shop-card-price-container {
    background: #0f172a;
    border-color: #334155;
}

:is(.dark .shop-card-price),
html.dark .shop-card-price {
    color: #34d399;
}

:is(.dark .shop-card-old-price),
html.dark .shop-card-old-price {
    color: #64748b;
}

/* Meta Pills (Informações do Item) */
:is(.dark .shop-meta-pill),
html.dark .shop-meta-pill {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

:is(.dark .shop-meta-pill.pill-success),
html.dark .shop-meta-pill.pill-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

:is(.dark .shop-meta-pill.pill-danger),
html.dark .shop-meta-pill.pill-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

:is(.dark .shop-meta-pill.pill-warning),
html.dark .shop-meta-pill.pill-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

:is(.dark .shop-meta-pill.pill-price),
html.dark .shop-meta-pill.pill-price {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* Botões do Rodapé do Card */
.shop-card-footer .shop-btn.btn-buy {
    background: rgb(var(--color-primary, 59 130 246));
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.shop-card-footer .shop-btn.btn-buy:hover {
    background: rgba(var(--color-primary, 59 130 246), 0.85);
}

.shop-card-footer .shop-btn.btn-gift {
    background: #8b5cf6;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.shop-card-footer .shop-btn.btn-gift:hover {
    background: #7c3aed;
}

:is(.dark .shop-card-footer .shop-btn.btn-sold-out),
html.dark .shop-card-footer .shop-btn.btn-sold-out {
    background: #0f172a;
    border: 1px solid #334155;
    color: #64748b;
}

/* ==========================================================================
   5. ESTADO VAZIO (EMPTY STATE)
   ========================================================================== */
.shop-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: 12px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    margin: 1rem 0;
}

:is(.dark .shop-empty-state),
html.dark .shop-empty-state {
    background: #0f172a;
    border-color: #334155;
}

:is(.dark .shop-empty-state h3),
html.dark .shop-empty-state h3 {
    color: #f8fafc;
}

:is(.dark .shop-empty-state p),
html.dark .shop-empty-state p {
    color: #94a3b8;
}

/* ==========================================================================
   6. HARMONIZAÇÃO DE CABEÇALHO SUPERIOR EM MODO ESCURO
   ========================================================================== */
:is(.dark .shop-hero-header),
html.dark .shop-hero-header {
    background: #0f172a !important;
    border-color: rgb(2 6 23 / 0.3) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

:is(.dark .shop-hero-header .shop-brand-icon),
html.dark .shop-hero-header .shop-brand-icon {
    background: #1e293b !important;
    color: rgb(var(--color-primary, 59 130 246)) !important;
}

:is(.dark .shop-wallet-card),
html.dark .shop-wallet-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

:is(.dark .shop-wallet-label),
html.dark .shop-wallet-label {
    color: #94a3b8 !important;
}

:is(.dark .shop-wallet-amount),
html.dark .shop-wallet-amount {
    color: #34d399 !important;
}

:is(.dark .shop-nav-pill),
html.dark .shop-nav-pill {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

:is(.dark .shop-nav-pill:hover),
html.dark .shop-nav-pill:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

:is(.dark .shop-search-box .inputbox),
html.dark .shop-search-box .inputbox {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

:is(.dark .shop-toolbar-filters select),
html.dark .shop-toolbar-filters select {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

/* ==========================================================================
   7. BARRA DE CATEGORIAS (ZEINA PILLS & BADGES)
   ========================================================================== */
.shop-cat-nav-wrapper {
    margin-bottom: 1.25rem;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.shop-cat-nav,
.cat-pills-strip {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
    flex-wrap: wrap;
    padding: 2px 0 8px;
    margin-bottom: 0;
}

.shop-cat-pill,
.cat-pill-item {
    display: inline-flex !important;
    align-items: center;
    gap: 8px !important;
    padding: 8px 16px !important;
    border-radius: 12px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.4 !important;
}

.shop-cat-pill:hover,
.cat-pill-item:hover {
    background: #f8fafc !important;
    border-color: rgb(var(--color-primary, 59 130 246)) !important;
    color: rgb(var(--color-primary, 59 130 246)) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
}

.shop-cat-pill.is-active,
.shop-cat-pill.active,
.cat-pill-item.is-active,
.cat-pill-item.active {
    background: rgb(var(--color-primary, 59 130 246)) !important;
    border-color: rgb(var(--color-primary, 59 130 246)) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(var(--color-primary, 59 130 246), 0.35) !important;
}

.shop-cat-icon {
    font-size: 0.95rem;
    opacity: 0.85;
}

.shop-cat-name {
    line-height: 1;
}

.shop-cat-badge,
.cat-pill-item .badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px !important;
    border-radius: 10px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    margin-left: 4px !important;
    line-height: 1 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.shop-cat-pill:hover .shop-cat-badge,
.cat-pill-item:hover .badge {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

.shop-cat-pill.is-active .shop-cat-badge,
.shop-cat-pill.active .shop-cat-badge,
.cat-pill-item.active .badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.shop-cat-badge.badge-discount,
.cat-pill-item .badge[style*="background: #16a34a"],
.cat-pill-item .badge-discount {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* Categorias em Modo Escuro (Dark Mode) */
:is(.dark .shop-cat-pill),
:is(.dark .cat-pill-item),
html.dark .shop-cat-pill,
html.dark .cat-pill-item {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

:is(.dark .shop-cat-pill:hover),
:is(.dark .cat-pill-item:hover),
html.dark .shop-cat-pill:hover,
html.dark .cat-pill-item:hover {
    background: #1e293b !important;
    border-color: rgba(var(--color-primary, 59 130 246), 0.8) !important;
    color: #f8fafc !important;
}

:is(.dark .shop-cat-pill.is-active),
:is(.dark .shop-cat-pill.active),
:is(.dark .cat-pill-item.is-active),
:is(.dark .cat-pill-item.active),
html.dark .shop-cat-pill.is-active,
html.dark .shop-cat-pill.active,
html.dark .cat-pill-item.is-active,
html.dark .cat-pill-item.active {
    background: rgba(var(--color-primary, 59 130 246), 0.9) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(var(--color-primary, 59 130 246), 0.4) !important;
}

:is(.dark .shop-cat-badge),
:is(.dark .cat-pill-item .badge),
html.dark .shop-cat-badge,
html.dark .cat-pill-item .badge {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

:is(.dark .shop-cat-pill:hover .shop-cat-badge),
:is(.dark .cat-pill-item:hover .badge),
html.dark .shop-cat-pill:hover .shop-cat-badge,
html.dark .cat-pill-item:hover .badge {
    background: #334155 !important;
    color: #f1f5f9 !important;
}

:is(.dark .shop-cat-pill.is-active .shop-cat-badge),
:is(.dark .shop-cat-pill.active .shop-cat-badge),
:is(.dark .cat-pill-item.active .badge),
html.dark .shop-cat-pill.is-active .shop-cat-badge,
html.dark .shop-cat-pill.active .shop-cat-badge,
html.dark .cat-pill-item.active .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}
