/* ============================================================
   BRPFM — Design System
   Tema: Luxury Dark / Gold Accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --font-primary: 'Poppins', sans-serif;
    --font-mono: 'DM Mono', monospace;
    
    --bg-sidebar:        #0d0c10;
    --bg-main:           #1a1a21;
    --bg-card:           #24242c;
    --bg-card-hover:     #2a2a34;
    --border-subtle:     rgba(255,255,255,0.07);
    --border-card:       #3c3c48;

    --gold:              #c39655;
    --gold-light:        #e0b872;
    --gold-bg:           rgba(195,150,85,0.12);

    --text-primary:      #f0f0f5;
    --text-secondary:    #9898a6;
    --text-dim:          #5c5c6b;

    --sidebar-width:     260px;
    --topbar-height:     58px;

    --radius-sm:         8px;
    --radius-md:         12px;
    --radius-lg:         16px;

    --shadow-card:       0 4px 24px rgba(0,0,0,0.35);
    --shadow-sidebar:    4px 0 32px rgba(0,0,0,0.5);

    --transition:        0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Tipografia Poppins ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

.sidebar-brand, .brand-icon, .fw-bold { font-family: var(--font-primary); font-weight: 700; }

.ed-modal-title, .ed-modal-section-title { font-family: var(--font-primary); font-weight: 600; }

/* ── Mobile Top Bar ────────────────────────────────────────── */
.mobile-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-height);
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    gap: 12px;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.mobile-user-avatar {
    width: 34px; height: 34px;
    background: var(--gold);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Hamburger ─────────────────────────────────────────────── */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Sidebar Overlay (mobile) ──────────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1099;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active { display: block; }

/* ── Layout Wrapper ────────────────────────────────────────── */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    box-shadow: var(--shadow-sidebar);
    transition: transform var(--transition);
    z-index: 1100;
}

/* Sidebar Close Button (mobile) */
.sidebar-close {
    display: none;
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--text-primary);
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background var(--transition);
}

.sidebar-close:hover { background: rgba(255,255,255,0.15); }

/* Brand */
.sidebar-brand {
    padding: 22px 20px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.brand-icon {
    background: var(--gold);
    color: #000;
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.brand-subtitle {
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    margin-top: 1px;
}

/* Menu */
.sidebar-menu {
    overflow-y: auto;
    flex-grow: 1;
    padding: 12px 0;
}

.sidebar-menu::-webkit-scrollbar { width: 4px; }
.sidebar-menu::-webkit-scrollbar-track { background: transparent; }
.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.menu-category {
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 16px 20px 6px;
    letter-spacing: 0.12em;
    opacity: 0.9;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0;
    transition: all var(--transition);
    position: relative;
    margin: 1px 8px;
    border-radius: var(--radius-sm);
}

.menu-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: color var(--transition);
}

.menu-link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.menu-link:hover i { color: var(--gold); }

.menu-link.active {
    background: var(--gold-bg);
    color: var(--gold-light);
    border: 1px solid rgba(195,150,85,0.2);
}

.menu-link.active i { color: var(--gold); }

/* User Profile */
.user-profile {
    padding: 14px 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.user-avatar {
    background: var(--gold);
    color: #000;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.68rem;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.logout-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color var(--transition);
}

.logout-link:hover { color: #ff6b6b; }

/* ── Main Content ──────────────────────────────────────────── */
.main-content {
    flex: 1 1 0;
    min-width: 0;
    padding: 32px 36px;
    overflow-y: auto;
    
}

/* Page Topbar (nav buttons) */
.page-topbar {
    margin-bottom: 24px;
}

.page-nav-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Page Header */
.page-header { margin-bottom: 28px; }

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 0.85rem;
    color: var(--gold);
    margin-top: 4px;
    font-weight: 500;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-custom-light {
    background: #fff;
    color: #111;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-custom-light:hover {
    background: #f0f0f0;
    color: #111;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-custom-gold {
    background: var(--gold);
    color: #000;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-custom-gold:hover {
    background: var(--gold-light);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(195,150,85,0.35);
}

/* ── Section Titles ────────────────────────────────────────── */
.section-title {
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    margin-top: 28px;
}

/* ── Dashboard Cards ───────────────────────────────────────── */
.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all var(--transition);
    cursor: pointer;
    height: 100%;
}

.dash-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    background: var(--bg-card-hover);
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.dash-icon-box {
    background: var(--gold-bg);
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(195,150,85,0.15);
}

.dash-icon-box i { color: var(--gold); font-size: 1.2rem; }

.dash-card-title {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

/* ── Stat Cards ────────────────────────────────────────────── */
.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px 22px;
    color: #111;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition);
}

.stat-card:hover { transform: translateY(-2px); }

.stat-card .stat-title {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.03em;
}

.stat-icon { color: var(--gold); font-size: 1.3rem; }

/* ── Clients Card / Table ──────────────────────────────────── */
.clients-card {
    background: #f4f4f8;
    border-radius: var(--radius-md);
    padding: 22px;
    color: #111;
}

.clients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

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

.form-search {
    width: 260px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.clients-table {
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: 0.85rem;
}

.clients-table thead { background: #eeeef2; }

.clients-table th {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
    padding: 12px 16px;
}

.clients-table td {
    vertical-align: middle;
    padding: 12px 16px;
}

.clients-table tbody tr {
    border-top: 1px solid #f0f0f4;
    transition: background var(--transition);
}

.clients-table tbody tr:hover { background: #fafafa; }

/* ── Badges ────────────────────────────────────────────────── */
.badge-warning {
    background: #f4b54a;
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #d4f5df;
    color: #0a7a34;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

/* ── Clients Card Header ───────────────────────────────────── */
.clients-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

/* Search wrapper */
.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.85rem;
    pointer-events: none;
}

.form-search {
    width: 280px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid #ddd;
    padding-left: 30px !important;
}

/* ── Table Badges ──────────────────────────────────────────── */
.badge-table {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 8px;
    white-space: nowrap;
}

.badge-convidar {
    background: var(--gold);
    color: #000;
}

.badge-desativar {
    background: transparent;
    color: #555;
    border: 1px solid #ccc;
}

.client-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.text-mono {
    font-family: 'DM Mono', monospace;
    font-size: 0.82rem;
    color: #444;
}

.text-truncate-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-muted-table { color: #999; }

/* ── Modal Dark ────────────────────────────────────────────── */
.modal-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
}

.modal-dark-header {
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-subtle);
    padding: 18px 24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-dark-body {
    background: var(--bg-card);
    padding: 24px;
}

.modal-dark-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 16px 24px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.form-label-dark {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-dark {
    background: var(--bg-main) !important;
    border: 1px solid var(--border-card) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.875rem;
    transition: border-color var(--transition);
}

.form-dark:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(195,150,85,0.15) !important;
    outline: none;
}

.form-dark::placeholder { color: var(--text-dim) !important; }

/* ── View Button ───────────────────────────────────────────── */
.btn-view {
    background: #2d6cdf;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: none;
    transition: all var(--transition);
}

.btn-view:hover {
    background: #1c56c7;
    color: #fff;
    transform: translateY(-1px);
}

/* ── Scrollbar (main area) ─────────────────────────────────── */
.main-content::-webkit-scrollbar { width: 6px; }
.main-content::-webkit-scrollbar-track { background: transparent; }
.main-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ============================================================
   RESPONSIVE — TABLET  (max 991px)
   ============================================================ */
@media (max-width: 991.98px) {

    .wrapper {
        display: block;             /* stack vertically, sidebar slides over */
        padding-top: var(--topbar-height);
    }

    /* Sidebar slides in from left */
    .sidebar {
        position: fixed;
        top: 0; left: 0;
        height: 100%;
        transform: translateX(-100%);
        border-right: none;
        box-shadow: var(--shadow-sidebar);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: flex;
    }

    .main-content {
        width: 100%;
        padding: 24px 20px;
        min-height: calc(100vh - var(--topbar-height));
    }

    .page-title { font-size: 1.35rem; }

    .form-search { width: 200px; }
}

/* ============================================================
   RESPONSIVE — MOBILE  (max 575px)
   ============================================================ */
@media (max-width: 575.98px) {

    .main-content { padding: 18px 14px; }

    .page-title { font-size: 1.2rem; }

    .page-nav-btns { gap: 8px; }
    .page-nav-btns .btn { font-size: 0.8rem; padding: 7px 14px; }

    .clients-header { flex-direction: column; align-items: flex-start; }

    .form-search { width: 100%; }

    .clients-table th,
    .clients-table td { padding: 10px 12px; font-size: 0.8rem; }

    .stat-card .stat-value { font-size: 1.5rem; }
}

/* ============================================================
   RESPONSIVE — LARGE DESKTOP  (min 1400px)
   ============================================================ */
@media (min-width: 1400px) {
    :root { --sidebar-width: 280px; }
    .main-content { padding: 40px 48px; }
}

/* Modal Overlay Escuro */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Oculto por padrão */
    justify-content: center;
    align-items: center;
    z-index: 1050;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Container do Modal */
.modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 8px;
    border: 1px solid #d4af37; /* Borda dourada baseada na imagem */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: none;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.btn-close-modal {
    background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #666;
}

.modal-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    overflow-y: auto; /* Permite rolar os campos caso a tela seja pequena */
}

.profile-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: #000;
}

/* Customização das Abas (Tabs) */
.custom-tabs {
    border-bottom: 1px solid #eee;
    flex-wrap: nowrap;
    overflow-x: auto; /* Abas roláveis no celular */
    white-space: nowrap;
}
.custom-tabs .nav-link {
    color: #666;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
.custom-tabs .nav-link.active {
    color: #000;
    font-weight: 600;
    border-bottom: 2px solid #d4af37;
    background: transparent;
}

/* Animação */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }





/*
Theme Name: BRPFM
Theme URI: https://brpfm.com
Author: Wagner Martins
Description: Tema administrativo do sistema BRPF
Version: 1.0
*/

/* ================================
   WRAPPER GERAL DE PÁGINA
   Cada template/shortcode é responsável
   pelo seu próprio container interno.
================================ */

.brpfm-page-wrap {
    background: #121212;
    min-height: calc(100vh - 70px); /* desconta o header sticky */
    padding: 30px 0;
}

/* ================================
BRPF Marketplace UI
================================ */

.brpfm-loja-wrap{
    max-width:1400px;
    margin:auto;
    padding:20px;
    font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
}

/* HEADER */

.brpfm-loja-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.brpfm-loja-title{
    font-size:26px;
    font-weight:700;
}

.brpfm-loja-count{
    color:#666;
    font-size:14px;
}

/* LAYOUT */

.brpfm-loja-layout{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:25px;
}

/* SIDEBAR */

.brpfm-loja-sidebar{
    padding: 20px;
    height: fit-content;
}


.brpfm-filter-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-weight:600;
    margin-bottom:15px;
}

.brpfm-filter-clear{
    font-size:13px;
    text-decoration:none;
    color:#888;
}

.brpfm-filter-clear:hover{
    color:#000;
}

.brpfm-filter-group{
    margin-bottom:16px;
}

.brpfm-filter-label{
    display:block;
    font-size:13px;
    font-weight:600;
    margin-bottom:6px;
}

.brpfm-filter-input{
    width:100%;
    padding:9px;
    border-radius:6px;
    border:1px solid #ddd;
    font-size:14px;
}

.brpfm-filter-input:focus{
    outline:none;
    border-color:#0073ff;
}

/* CHECKBOX */

.brpfm-check-group{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.brpfm-check-label{
    font-size:14px;
    cursor:pointer;
}

/* RANGE */

.brpfm-range{
    width:100%;
}

/* BUTTON */

.brpfm-btn{
    padding:10px 14px;
    border-radius:6px;
    text-align:center;
    cursor:pointer;
    border:none;
    font-weight:600;
}

.brpfm-btn-primary{
    background:#0073ff;
    color:#fff;
}

.brpfm-btn-primary:hover{
    background:#005fd1;
}

.brpfm-btn-secondary{
    background:#eee;
}

/* GRID */

.brpfm-product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:18px;
}

/* CARD */

.brpfm-product-card{
    display:block;
    text-decoration:none;
    color:inherit;
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    border:1px solid #eee;
    transition:all .2s ease;
}

.brpfm-product-card:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

/* IMAGE */

.brpfm-card-img{
    position:relative;
    height:180px;
    background:#f6f6f6;
}

.brpfm-card-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.brpfm-card-no-img{
    display:flex;
    align-items:center;
    justify-content:center;
    height:100%;
    font-size:40px;
    color:#bbb;
}

/* BADGES */

.brpfm-card-badge{
    position:absolute;
    top:8px;
    left:8px;
    background:#000;
    color:#fff;
    padding:3px 8px;
    font-size:11px;
    border-radius:4px;
}

.brpfm-badge-transf{
    background:#0073ff;
}

/* BODY */

.brpfm-card-body{
    padding:14px;
}

.brpfm-card-title{
    font-size:15px;
    font-weight:600;
    margin-bottom:8px;
}

/* SPECS */

.brpfm-card-specs{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:10px;
}

.brpfm-spec-tag{
    font-size:11px;
    background:#f2f2f2;
    padding:4px 7px;
    border-radius:4px;
}

/* PRICE */

.brpfm-card-price{
    font-size:18px;
    font-weight:700;
    color:#111;
    margin-bottom:10px;
}

/* FOOTER */

.brpfm-card-footer{
    display:flex;
    justify-content:space-between;
    font-size:12px;
    color:#666;
}

/* EMPTY */

.brpfm-loja-empty{
    text-align:center;
    padding:60px;
    background:#fafafa;
    border-radius:10px;
}

/* PAGINATION */

.brpfm-pagination{
    margin-top:25px;
    display:flex;
    justify-content:center;
}

/* ================================
RESPONSIVE
================================ */

@media (max-width:1024px){

.brpfm-loja-layout{
    grid-template-columns:1fr;
}

.brpfm-loja-sidebar{
    order:2;
}

}

@media (max-width:600px){

.brpfm-product-grid{
    grid-template-columns:repeat(2,1fr);
}

.brpfm-loja-header{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
}

}


/* ============================================================
   BRPFM — Single Product (Match Exato com a Imagem do App)
   ============================================================ */

.brpfm-product-app-container {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: calc(100vh - var(--topbar-height));
    background-color: var(--bg-main);
    padding: 40px;
    box-sizing: border-box;
}

.brpfm-product-app-container .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* --- GRID PRINCIPAL --- */

.brpfm-app-product-view {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    background-color: var(--bg-main);
    padding: 30px;
    font-family: var(--font-primary);
    color: var(--text-primary);
    max-width: 1400px;
    margin: 0 auto;
}

/* --- GALERIA --- */

.brpfm-app-gallery {
    max-width: 100%;
}

.brpfm-app-gallery .woocommerce-product-gallery__image {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-card);
}

.brpfm-app-gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.woocommerce div.product div.images {
    width: 100% !important;
}

/* --- DETALHES --- */

.brpfm-app-details {
    display: flex;
    flex-direction: column;
}

/* BADGES */

.brpfm-badges {
    margin-bottom: 15px;
}

.brpfm-badges .onsale {
    background: var(--gold);
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* TÍTULO E PREÇO */

.brpfm-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.brpfm-price-wrap .price {
    font-size: 26px !important;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px !important;
}

/* PILLS */

.brpfm-spec-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.brpfm-spec-pills .brpfm-pill,
.brpfm-spec-pills a {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
}

.brpfm-spec-pills a {
    border: none !important;
}

/* ESTOQUE */

.brpfm-stock-wrap {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brpfm-stock-wrap p.stock {
    margin: 0;
}

.stock.in-stock {
    color: #2ecc71;
    font-weight: 600;
}

.stock.out-of-stock {
    color: #e74c3c;
    font-weight: 600;
}

/* SEÇÕES */

.brpfm-section {
    margin-bottom: 30px;
}

.brpfm-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* TEXTO */

.brpfm-excerpt p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    opacity: 0.9;
    margin: 0;
    font-weight: 200;
}

/* --- GRID DE ESPECIFICAÇÕES --- */

.brpfm-technical-grid table.shop_attributes {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    border: none !important;
    margin: 0;
}

.brpfm-technical-grid table.shop_attributes tbody {
    display: contents;
}

.brpfm-technical-grid table.shop_attributes tr {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 12px;
    border-radius: 8px;
}

.brpfm-technical-grid table.shop_attributes th {
    border: none !important;
    padding-bottom: 4px !important;
    background: transparent !important;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: left;
}

.brpfm-technical-grid table.shop_attributes td {
    border: none !important;
    background: transparent !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.brpfm-technical-grid table.shop_attributes td p {
    margin: 0;
}

/* --- BOTÃO DE COMPRA --- */

.brpfm-actions-wrap form.cart {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.brpfm-actions-wrap .quantity {
    display: none;
}

.brpfm-actions-wrap .single_add_to_cart_button {
    width: 100%;
    background: var(--gold) !important;
    color: #000 !important;
    border: none;
    border-radius: 8px;
    padding: 18px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brpfm-actions-wrap .single_add_to_cart_button:hover {
    background: var(--gold-light) !important;
    transform: translateY(-2px);
}

/* --- WOOCOMMERCE --- */

.woocommerce-tabs {
    display: none !important;
}

/* --- SIDEBAR --- */

.sidebar {
    z-index: 999;
}

/* --- RESPONSIVO --- */

@media (max-width: 991px) {

    .brpfm-product-app-container {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .brpfm-app-product-view {
        grid-template-columns: 1fr;
    }

}

/* ===============================
TACTICAL PRODUCT PAGE
=============================== */

.tactical-product{

padding:50px 30px;

background:var(--bg-main);

}


.tactical-container{

max-width:1400px;

margin:auto;

}


.tactical-grid{

display:grid;

grid-template-columns:1.2fr 1fr;

gap:60px;

align-items:start;

}


/* GALERIA */

.tactical-gallery img{

border-radius:14px;

background:var(--bg-card);

border:1px solid var(--border-card);

}


/* INFO */

.tactical-title{

font-size:32px;

font-weight:800;

margin-bottom:10px;

}


.tactical-price{

font-size:28px;

font-weight:700;

margin-bottom:15px;

color:var(--gold);

}


.tactical-tags{

display:flex;

flex-wrap:wrap;

gap:8px;

margin-bottom:20px;

}

.tactical-tags a{

background:var(--bg-card);

border:1px solid var(--border-card);

padding:6px 12px;

border-radius:30px;

font-size:12px;

text-decoration:none;

color:var(--text-secondary);

}


.tactical-short-desc{

font-size:15px;

line-height:1.6;

color:var(--text-secondary);

margin-bottom:25px;

}


/* QUICK SPECS */

.tactical-quick-specs{

display:grid;

grid-template-columns:repeat(2,1fr);

gap:12px;

margin-bottom:30px;

}

.spec-item{

background:var(--bg-card);

border:1px solid var(--border-card);

padding:12px;

border-radius:10px;

display:flex;

flex-direction:column;

}

.spec-label{

font-size:11px;

color:var(--text-secondary);

text-transform:uppercase;

}

.spec-value{

font-size:15px;

font-weight:600;

}


/* BOTÃO */

.tactical-buy .single_add_to_cart_button{



padding:20px;

font-size:16px;

font-weight:700;

border-radius:10px;

background:var(--gold)!important;

color:#000!important;

text-transform:uppercase;

}

.tactical-buy .single_add_to_cart_button:hover{

background:var(--gold-light)!important;

transform:translateY(-2px);

}


/* SEÇÕES */

.tactical-section-title{

font-size:20px;

margin-bottom:20px;

font-weight:700;

}


.tactical-details{

margin-top:70px;

}

.tactical-description{

font-size:15px;

line-height:1.7;

color:var(--text-secondary);

}


/* GRID ESPECIFICAÇÕES */

.tactical-specs table{

width:100%;

border-collapse:collapse;

}

.tactical-specs th{

text-align:left;

padding:14px;

font-size:12px;

color:var(--text-secondary);

text-transform:uppercase;

}

.tactical-specs td{

padding:14px;

font-weight:600;

border-bottom:1px solid var(--border-card);

}


/* RESPONSIVO */

@media (max-width:980px){

.tactical-grid{

grid-template-columns:1fr;

gap:30px;

}

.tactical-title{

font-size:24px;

}

}
/* ==============================
MINI CART - TACTICAL STYLE
============================== */

.widget_shopping_cart,
.woocommerce-mini-cart{

background:#0f1115;

color:#fff;

width:380px;

max-width:100%;

height:100%;

display:flex;

flex-direction:column;

padding:20px;

}


/* LISTA PRODUTOS */

.woocommerce-mini-cart-item{

display:flex;

gap:12px;

align-items:center;

padding:12px 0;

border-bottom:1px solid rgba(255,255,255,0.06);

}


/* IMAGEM */

.woocommerce-mini-cart-item img{

width:60px;

height:60px;

object-fit:cover;

border-radius:8px;

background:#1a1d23;

border:1px solid rgba(255,255,255,0.08);

}


/* NOME PRODUTO */

.woocommerce-mini-cart-item a{

color:#fff;

font-weight:600;

font-size:14px;

text-decoration:none;

}


/* PREÇO */

.woocommerce-mini-cart-item .quantity{

color:#c9a24a;

font-size:13px;

margin-top:4px;

}


/* BOTÃO REMOVER */

.woocommerce-mini-cart-item .remove{

color:#ff4c4c!important;

font-size:18px;

margin-right:8px;

}


/* SUBTOTAL */

.woocommerce-mini-cart__total{

margin-top:auto;

padding-top:15px;

font-size:16px;

display:flex;

justify-content:space-between;

font-weight:600;

border-top:1px solid rgba(255,255,255,0.08);

}


/* BOTÕES */

.woocommerce-mini-cart__buttons{

display:flex;

flex-direction:column;

gap:10px;

margin-top:20px;

}


/* BOTÃO VER CARRINHO */

.woocommerce-mini-cart__buttons a:first-child{

border:1px solid #c9a24a;

background:transparent;

color:#c9a24a;

padding:12px;

border-radius:8px;

font-weight:600;

text-align:center;

transition:.3s;

}

.woocommerce-mini-cart__buttons a:first-child:hover{

background:#c9a24a;

color:#000;

}


/* BOTÃO FINALIZAR */

.woocommerce-mini-cart__buttons a.checkout{

background:#c9a24a;

color:#000;

padding:14px;

border-radius:8px;

font-weight:700;

text-align:center;

transition:.3s;

}

.woocommerce-mini-cart__buttons a.checkout:hover{

background:#e0b95c;

transform:translateY(-2px);

}


/* MOBILE */

@media(max-width:768px){

.widget_shopping_cart{

width:100%;

}

}