/* =================== VARIÁVEIS CSS =================== */
:root {
    --gold-primary: #D4AF37;
    --gold-secondary: #B8860B;
    --dark-primary: #1a1a1a;
    --dark-secondary: #2c2c2c;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

/* =================== RESET E BASE =================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-primary);
    padding-top: 80px;
}

.container {
    max-width: 1200px;
}

/* =================== HEADER RESPONSIVO =================== */
.main-header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--gold-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 1040;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.logo-text {
    white-space: nowrap;
}

/* Menu Hambúrguer */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1040;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--gold-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Navegação */
.main-nav {
    transition: all 0.3s ease;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-list a:hover {
    color: var(--gold-primary);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-toggle {
    text-decoration: none !important;
    text-align: left;
    border: none !important;
    background: none !important;
    color: white !important;
    font-size: 0.9rem;
}

.user-toggle:hover {
    color: var(--gold-primary) !important;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1;
}

.dropdown-header {
    color: var(--gold-primary);
    font-weight: bold;
}

.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 200px;
}

.dropdown-item:hover {
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-secondary));
    color: white;
}

/* Overlay Mobile */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* =================== BOTÕES =================== */
.btn-gold {
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-secondary));
    border: none;
    color: white;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(45deg, var(--gold-secondary), var(--gold-primary));
    color: white;
    transform: translateY(-1px);
}

.btn-outline-gold {
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: white;
}

/* =================== CATALOG PAGE =================== */
.catalog-page {
    min-height: 100vh;
}

.catalog-hero {
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
    color: white;
    padding: 60px 0;
    margin-top: -80px;
    padding-top: 140px;
}

.catalog-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.catalog-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-form .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
}

.search-form .btn {
    border: none;
    padding: 15px 25px;
}

/* =================== FILTROS =================== */
.filters-sidebar {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filters-header {
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-secondary));
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.filter-group {
    border-bottom: 1px solid #eee;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-accordion-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 1.2rem 1.5rem;
    text-align: left;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.filter-accordion-btn:hover {
    background: var(--light-gray);
    color: var(--gold-primary);
}

.filter-accordion-btn i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.filter-accordion-btn[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

.filter-content {
    padding: 0 1.5rem 1.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0;
}

.filter-option input {
    margin: 0;
}

.filter-option label {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.parent-category {
    font-weight: 600;
}

.parent-category label {
    color: var(--gold-primary);
}

.subcategories {
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid #f0f0f0;
}

.subcategory label {
    color: #666;
    font-size: 0.9rem;
}

.category-group {
    margin-bottom: 1rem;
}

.price-range-inputs .form-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.price-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-actions {
    padding: 1.5rem;
    background: var(--light-gray);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-block {
    width: 100%;
}

/* Accordions */
.collapse {
    transition: all 0.3s ease;
    overflow: hidden;
}

.collapse:not(.show) {
    height: 0 !important;
}

.collapse.show {
    height: auto !important;
}

/* =================== TOOLBAR =================== */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.results-count {
    margin: 0;
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.view-options {
    display: flex;
    gap: 0.25rem;
}

.view-options .btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
}

.view-options .btn.active {
    background: var(--gold-primary);
    color: white;
    border-color: var(--gold-primary);
}

/* =================== PRODUCTS GRID =================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.products-list .product-card {
    display: flex;
    flex-direction: row;
    height: auto;
    max-width: none;
}

.products-list .product-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.products-list .product-info {
    flex: 1;
    padding: 1.5rem;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
}

.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-featured {
    background: var(--gold-primary);
    color: white;
}

.badge-sale {
    background: var(--danger);
    color: white;
}

.badge-stock {
    background: var(--warning);
    color: var(--dark-primary);
}

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-actions .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-sku {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.product-category {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-current, .price-sale {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.price-sale {
    color: var(--danger);
}

.price-original {
    font-size: 1.1rem;
    color: var(--medium-gray);
    text-decoration: line-through;
}

.product-description {
    color: var(--dark-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-footer .stock-info {
    font-size: 0.85rem;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 5rem 0;
}

.no-products i {
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.no-products h3 {
    color: var(--dark-primary);
    margin-bottom: 1rem;
}

/* =================== PAGINATION =================== */
.catalog-pagination {
    margin-top: 3rem;
}

.catalog-pagination .pagination {
    gap: 0.5rem;
}

.catalog-pagination .page-link {
    border: 1px solid #ddd;
    color: var(--dark-primary);
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
}

.catalog-pagination .page-item.active .page-link {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: white;
}

.catalog-pagination .page-link:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: white;
}

.pagination-info {
    color: var(--medium-gray);
}

/* =================== MOBILE RESPONSIVENESS =================== */
body.menu-open {
    overflow: hidden;
}

.mobile-filters-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1010;
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    font-weight: 600;
}

.mobile-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

@media (max-width: 991.98px) {
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
        padding: 100px 2rem 2rem;
        z-index: 1030;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-list a {
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    /* Mobile Filters */
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        z-index: 1040;
        transition: left 0.3s ease;
        border-radius: 0;
        max-height: none;
        margin-bottom: 0;
    }

    .filters-sidebar.active {
        left: 0;
        box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    }

    .mobile-filters-btn {
        display: block;
    }

    /* Toolbar Mobile */
    .catalog-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .toolbar-right {
        justify-content: space-between;
    }

    /* Products Grid Mobile */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .products-list .product-card {
        flex-direction: column;
    }

    .products-list .product-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .catalog-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .logo-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .logo-text {
        display: none;
    }

    .filters-sidebar {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-form .form-control {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

/* =================== UTILITIES =================== */
.text-gold {
    color: var(--gold-primary) !important;
}

.bg-gold {
    background: var(--gold-primary) !important;
    color: white !important;
}

.spinner-border.text-gold {
    color: var(--gold-primary) !important;
}

/* Landing Page Específico */
.landing-page {
    overflow-x: hidden;
}

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--gold-primary), #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-primary);
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
}
