/* ===== SHOP MODERNO - ESTILO REACT/NEXT.JS ===== */

/* Garantir fonte Inter */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Ocultar elementos antigos do plugin e WooCommerce padrão */
.filter-group,
.popover,
#sidebar-categories,
.woof_container,
.old-shop-layout,
.woocommerce-result-count:not(.products-result-count .woocommerce-result-count),
.woocommerce-ordering:not(.filter-content .woocommerce-ordering),
.woocommerce-products-header {
    display: none !important;
}

/* Resetar estilos do WooCommerce padrão */
.woocommerce ul.products,
.woocommerce-page ul.products {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Garantir que apenas nosso layout apareça */
.spartan-shop-wrapper {
    display: block !important;
}

.spartan-shop-container {
    display: grid !important;
}

.spartan-shop-wrapper {
    background: #ffffff;
    min-height: 100vh;
    padding: 40px 0;
}

.spartan-shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    overflow: hidden;
    align-items: start;
}

/* ===== BOTÃO FILTROS MOBILE ===== */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 12px 18px;
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mobile-filter-toggle:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mobile-filter-toggle svg {
    width: 20px;
    height: 20px;
}

/* Overlay para sidebar mobile */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-overlay.active {
    display: block;
    opacity: 1;
}

/* Botão fechar sidebar mobile */
.close-filters {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-filters:hover {
    background: white;
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.close-filters svg {
    width: 18px;
    height: 18px;
    stroke: #6b7280;
}

/* ===== SIDEBAR DE FILTROS ===== */
.shop-sidebar {
    position: sticky;
    top: 0;
    height: fit-content;
    align-self: start;
    margin-top: 0;
    padding-top: 0;
}

.sidebar-inner {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: none;
    margin-top: 0;
}

.filter-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.filter-section:first-child {
    margin-top: 0;
    padding-top: 0;
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Título do filtro de preço menor */
.filter-section:has(.price_slider_wrapper) .filter-title,
.filter-price-section .filter-title,
.filter-price-title {
    font-size: 11px !important;
}

.filter-price-section .filter-title svg,
.filter-price-title svg {
    width: 14px !important;
    height: 14px !important;
}

/* Título do widget de preço do WooCommerce */
.filter-price-section h3,
.filter-price-section .widget-title,
.price_slider_wrapper h3,
.woocommerce .widget_price_filter .widget-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 0 16px 0 !important;
}

.filter-title svg {
    color: #05307A;
    flex-shrink: 0;
}

.filter-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== NOVO SISTEMA DE FILTROS (sp-) ===== */

/* Busca AJAX */
.shop-search-box {
    position: relative;
}

.shop-search-box input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
    transition: all 0.2s;
}

.shop-search-box input:focus {
    outline: none;
    border-color: #05307A;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(5, 48, 122, 0.1);
}

.shop-search-box input::placeholder {
    color: #9ca3af;
}

.shop-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    stroke: #9ca3af;
    pointer-events: none;
}

.shop-search-spinner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: #05307A;
    border-radius: 50%;
    animation: shop-spin 0.6s linear infinite;
}

@keyframes shop-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Lista de Categorias */
.sp-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-cat-item {
    margin-bottom: 2px;
    position: relative;
}

.sp-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.sp-cat-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.sp-cat-item.sp-active > .sp-cat-link {
    background: #eff6ff;
    color: #05307A;
    font-weight: 600;
}

.sp-cat-count {
    font-size: 11px;
    color: #9ca3af;
    margin-left: 8px;
}

.sp-cat-item.sp-active > .sp-cat-link .sp-cat-count {
    color: #05307A;
}

/* Toggle Button */
.sp-cat-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    z-index: 2;
}

.sp-cat-toggle:hover {
    background: #e5e7eb;
    color: #374151;
}

.sp-cat-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.sp-cat-item.sp-open > .sp-cat-toggle svg {
    transform: rotate(180deg);
}

/* Subcategorias */
.sp-subcat-list {
    display: none;
    list-style: none;
    padding: 4px 0 4px 20px;
    margin: 0;
    border-left: 2px solid #e5e7eb;
    margin-left: 12px;
}

.sp-cat-item.sp-open > .sp-subcat-list {
    display: block;
}

.sp-subcat-item {
    margin-bottom: 1px;
}

.sp-subcat-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    color: #6b7280;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.sp-subcat-item a:hover {
    background: #f3f4f6;
    color: #111827;
}

.sp-subcat-item.sp-active a {
    background: #eff6ff;
    color: #05307A;
    font-weight: 600;
}

.sp-subcat-item .sp-cat-count {
    font-size: 10px;
}

/* Filtro de Preço - MELHORADO */
.price_slider_wrapper {
    padding: 16px 0;
}

.price_slider {
    margin-bottom: 24px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
}

.price_slider .ui-slider-range {
    background: linear-gradient(135deg, #05307A 0%, #042559 100%);
    border-radius: 3px;
}

.price_slider .ui-slider-handle {
    width: 18px;
    height: 18px;
    background: white;
    border: 3px solid #05307A;
    border-radius: 50%;
    cursor: pointer;
    top: -6px;
    transition: all 0.2s;
}

.price_slider .ui-slider-handle:hover,
.price_slider .ui-slider-handle:focus {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(5, 48, 122, 0.1);
}

.price_slider_amount {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price_slider_amount .price_label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #05307A;
}

.price_slider_amount input[type="text"] {
    display: none;
}

.price_slider_amount button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #05307A 0%, #042559 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.price_slider_amount button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 48, 122, 0.3);
}

/* Ordenação - DESIGN SOFISTICADO */
.woocommerce-ordering {
    position: relative;
}

.woocommerce-ordering::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6b7280;
    pointer-events: none;
    transition: all 0.3s;
}

.woocommerce-ordering:hover::after {
    border-top-color: #05307A;
}

.woocommerce-ordering select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
}

.woocommerce-ordering select:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    color: #05307A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: #05307A;
    box-shadow: 0 0 0 4px rgba(5, 48, 122, 0.1);
    background: white;
}

.woocommerce-ordering select option {
    padding: 12px;
    background: white;
    color: #374151;
    font-weight: 500;
}

.woocommerce-ordering select option:hover,
.woocommerce-ordering select option:checked {
    background: linear-gradient(135deg, #05307A 0%, #042559 100%);
    color: white;
}

/* Título de Ordenação */
.filter-section:has(.woocommerce-ordering) .filter-title {
    margin-bottom: 12px;
}

/* Botão Limpar Filtros */
.filter-actions {
    margin-top: 20px;
}

.clear-filters-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #ef4444;
}

/* ===== ÁREA PRINCIPAL ===== */
.shop-main {
    min-height: 600px;
    width: 100%;
    overflow: hidden;
}

/* Header da Shop */
.shop-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.shop-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.shop-description {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

/* ===== BANNER DE CATEGORIA (Imagem + Título + Descrição) ===== */

/* Vídeo de Categoria */
.category-video-wrapper {
    width: 100%;
    margin-bottom: 24px;
}

.category-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.category-video-container iframe,
.category-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Banner com Imagem */
.category-header-box {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    text-align: left;
}

.category-header-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
}

.category-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-header-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.category-header-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.category-header-description {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.category-header-description p {
    margin: 0 0 8px 0;
}

.category-header-description p:last-child {
    margin-bottom: 0;
}

/* Responsivo - Banner de Categoria */
@media (max-width: 768px) {
    .category-header-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
        gap: 16px;
    }
    
    .category-header-image {
        width: 100px;
        height: 100px;
    }
    
    .category-header-title {
        font-size: 20px;
    }
    
    .category-header-description {
        font-size: 13px;
    }
}

/* Ocultar título duplicado quando o banner de categoria está presente */
.category-header-box ~ .shop-header-left .shop-title {
    display: none;
}

.shop-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.products-result-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* ===== GRID DE PRODUTOS ===== */
.products-grid,
.products-grid::before,
.products-grid::after {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    margin-bottom: 48px !important;
    list-style: none !important;
    padding: 0 !important;
}

.products-grid::before,
.products-grid::after {
    content: none !important;
    display: none !important;
}

/* Forçar grid mesmo se for UL */
ul.products.products-grid,
.products-grid ul.products,
.woocommerce .products-grid,
.woocommerce-page .products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 48px 0 !important;
    clear: both !important;
}

.woocommerce .products-grid::before,
.woocommerce .products-grid::after {
    display: none !important;
}

/* Card do Produto */
.product-card,
.products-grid > li,
.products-grid > .product,
li.product {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    list-style: none !important;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #05307A;
}

.product-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Imagem do Produto */
.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #ffffff; /* Alterado para branco */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garante que a imagem caiba sem cortar */
    transition: transform 0.4s ease;
}

/* Ocultar categoria nos cards (segurança) */
.product-category {
    display: none !important;
}

/* Ocultar ordenação e filtros padrão se sobrarem */
.woocommerce-ordering,
.woocommerce-result-count {
    display: none !important;
}

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

/* Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.badge-out-of-stock {
    background: #6b7280;
    color: white;
}

.badge-featured {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* Botões de Ação */
.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.action-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2.5 !important;
    min-width: 20px !important;
    min-height: 20px !important;
}

.action-btn:hover {
    background: #05307A;
    border-color: #05307A;
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(5, 48, 122, 0.3);
}

/* Informações do Produto - CENTRALIZADO */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex: 1;
}

.product-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.product-category a {
    color: #05307A;
    text-decoration: none;
    transition: color 0.2s;
}

.product-category a:hover {
    color: #042559;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    width: 100%;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #05307A;
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 4px 0;
    width: 100%;
}

.product-rating .star-rating {
    font-size: 14px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #05307A;
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price del {
    font-size: 16px;
    color: #9ca3af;
    font-weight: 500;
}

.product-price ins {
    text-decoration: none;
}

/* Ocultar preço para usuários deslogados */
body:not(.logged-in) .product-price,
body:not(.logged-in) .price {
    display: none !important;
}

/* ===== PAGINAÇÃO SOFISTICADA ===== */
.shop-pagination {
    display: flex;
    justify-content: center;
    margin-top: 64px;
    padding: 32px 0;
}

.woocommerce-pagination,
nav.woocommerce-pagination {
    width: 100%;
    text-align: center;
}

.woocommerce-pagination ul,
.woocommerce-pagination ul.page-numbers {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-right: none !important;
    border-left: none !important;
}

.woocommerce-pagination li {
    margin: 0 !important;
    display: inline-block;
    border: none !important;
    border-right: none !important;
}

.woocommerce-pagination a,
.woocommerce-pagination span,
.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 16px !important;
    background: white !important;
    border: 2px solid #e5e7eb !important;
    border-right: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    color: #6b7280 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
    line-height: 1 !important;
    box-shadow: none !important;
}

.woocommerce-pagination a:hover,
.woocommerce-pagination a.page-numbers:hover {
    background: #f9fafb !important;
    border-color: #05307A !important;
    color: #05307A !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 48, 122, 0.15) !important;
}

.woocommerce-pagination span.current,
.woocommerce-pagination span.page-numbers.current {
    background: linear-gradient(135deg, #05307A 0%, #042559 100%) !important;
    border-color: #05307A !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(5, 48, 122, 0.3) !important;
}

/* Setas de navegação */
.woocommerce-pagination a.prev,
.woocommerce-pagination a.next {
    padding: 0 12px !important;
}

.woocommerce-pagination a.prev::before {
    content: '←';
    font-size: 18px;
    font-weight: 700;
}

.woocommerce-pagination a.next::before {
    content: '→';
    font-size: 18px;
    font-weight: 700;
}

/* Reticências */
.woocommerce-pagination span.dots {
    pointer-events: none !important;
    border: none !important;
    background: transparent !important;
    color: #9ca3af !important;
    box-shadow: none !important;
}

/* ===== NENHUM PRODUTO ENCONTRADO ===== */
.no-products-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.no-products-found svg {
    color: #d1d5db;
    margin-bottom: 24px;
}

.no-products-found h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}

.no-products-found p {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px 0;
    max-width: 500px;
}

.back-to-shop-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #05307A 0%, #042559 100%);
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.back-to-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 48, 122, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .spartan-shop-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* Mostrar botão de filtros no mobile */
    .mobile-filter-toggle {
        display: flex !important;
    }
    
    /* Garantir que sidebar não apareça */
    .shop-content-wrapper {
        grid-template-columns: 1fr !important;
    }
    
    /* ===== SIDEBAR MOBILE - ESTILO INLINE COM CHIPS ===== */
    .shop-sidebar {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        margin-bottom: 20px;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
        overflow: visible !important;
        z-index: 1 !important;
    }
    
    .close-filters {
        display: none !important;
    }
    
    .shop-sidebar.active {
        left: auto !important;
    }
    
    .sidebar-inner {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 16px !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
    }
    
    /* Seção de busca no mobile */
    .shop-search-section {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }
    
    .shop-search-section .filter-title {
        font-size: 10px;
        margin-bottom: 10px;
    }
    
    .shop-search-box input {
        padding: 10px 36px 10px 12px;
        font-size: 13px;
    }
    
    .filter-section {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }
    
    .filter-section .filter-title {
        font-size: 10px;
        margin-bottom: 12px;
    }
    
    /* Categorias em chips horizontais */
    .sp-cat-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .sp-cat-list::-webkit-scrollbar {
        display: none;
    }
    
    .sp-cat-item {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .sp-cat-link {
        padding: 10px 16px;
        border: 1px solid #e5e7eb;
        border-radius: 20px;
        background: #fff;
        white-space: nowrap;
        font-size: 13px;
    }
    
    .sp-cat-item.sp-active > .sp-cat-link {
        border-color: #05307A;
        background: #eef2ff;
    }
    
    /* Esconder contador e toggle no mobile */
    .sp-cat-count,
    .sp-cat-toggle {
        display: none !important;
    }
    
    /* Esconder subcategorias no mobile */
    .sp-subcat-list {
        display: none !important;
    }
    
    /* Esconder botão de filtros mobile (não precisa mais) */
    .mobile-filter-toggle {
        display: none !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .spartan-shop-wrapper {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .spartan-shop-container {
        padding: 0 12px;
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    .shop-main {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }
    
    .shop-header {
        flex-direction: column;
        gap: 16px;
    }
    
    /* Sidebar mobile - Colapsável */
    .shop-sidebar {
        order: -1;
    }
    
    .sidebar-inner {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }
    
    /* Botão toggle de filtros */
    .shop-mobile-filter-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 16px;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        cursor: pointer;
        transition: all 0.2s;
        margin-bottom: 0;
    }
    
    .shop-mobile-filter-toggle:hover {
        background: #f3f4f6;
    }
    
    .shop-mobile-filter-toggle.active {
        background: #05307A;
        color: white;
        border-color: #05307A;
        border-radius: 12px 12px 0 0;
    }
    
    .shop-mobile-filter-toggle svg {
        transition: transform 0.2s;
    }
    
    .shop-mobile-filter-toggle.active svg {
        transform: rotate(180deg);
        stroke: white;
    }
    
    .shop-filter-toggle-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    /* Container colapsável */
    .shop-filters-collapsible {
        display: none !important;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-top: none;
        border-radius: 0 0 12px 12px;
    }
    
    .shop-filters-collapsible.open {
        display: flex !important;
    }
    
    .filter-section {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }
    
    .filter-title {
        display: none !important;
    }
    
    /* Categorias em lista vertical */
    .sp-cat-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px;
        max-height: 200px;
        overflow-y: auto;
    }
    
    .sp-cat-item {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .sp-cat-link {
        padding: 12px 14px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
    }
    
    .sp-cat-item.sp-active > .sp-cat-link {
        border-color: #05307A;
        background: #eef2ff;
    }
    
    .sp-cat-count {
        display: inline-block !important;
    }
    
    .sp-cat-toggle {
        display: none !important;
    }
    
    .sp-subcat-list {
        display: none !important;
    }
    
    /* Ver mais/menos */
    .shop-show-more-cats {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px;
        background: transparent;
        border: 1px dashed #d1d5db;
        border-radius: 10px;
        color: #6b7280;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .shop-show-more-cats:hover {
        background: #f3f4f6;
        border-color: #9ca3af;
        color: #374151;
    }
    
    .shop-show-more-cats svg {
        transition: transform 0.2s;
    }
    
    .shop-show-more-cats.expanded svg {
        transform: rotate(180deg);
    }
    
    /* Limitar categorias visíveis */
    .sp-cat-list:not(.expanded) .sp-cat-item:nth-child(n+5) {
        display: none !important;
    }
    
    /* 2 cards no mobile - FORÇAR */
    .products-grid,
    ul.products.products-grid,
    .products-grid ul.products,
    .woocommerce .products-grid,
    .woocommerce-page .products-grid,
    .products-grid::before,
    .products-grid::after {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .product-card,
    .products-grid > li,
    .products-grid > .product,
    li.product {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .product-title {
        font-size: 13px;
    }
    
    .product-price {
        font-size: 16px;
    }
}

/* Desktop: esconder botões mobile */
@media (min-width: 769px) {
    .shop-mobile-filter-toggle {
        display: none !important;
    }
    
    .shop-show-more-cats {
        display: none !important;
    }
    
    .shop-filters-collapsible {
        display: block !important;
    }
}

@media (max-width: 480px) {
    /* Manter 2 cards mesmo em telas pequenas - FORÇAR */
    .products-grid,
    ul.products.products-grid,
    .products-grid ul.products,
    .woocommerce .products-grid,
    .woocommerce-page .products-grid,
    .products-grid::before,
    .products-grid::after {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .shop-title {
        font-size: 24px;
    }
}

/* ===== SHOP HIGHLIGHTS CAROUSEL ===== */
.shop-highlights-carousel {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    /* Mantém a proporção mas limita altura máxima em desktop */
    max-height: 400px;
    background: #f3f4f6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.shop-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.shop-carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.shop-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.shop-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #111827;
    transition: all 0.2s;
    z-index: 10;
    opacity: 0; /* Só mostra no hover do carrossel */
}

.shop-highlights-carousel:hover .shop-carousel-btn {
    opacity: 1;
}

.shop-carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    color: #05307A;
}

.shop-carousel-btn.prev { left: 20px; }
.shop-carousel-btn.next { right: 20px; }

/* ===== CATEGORY BANNER ===== */
.category-banner-wrapper {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    background: #f9fafb;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.category-video-container,
.category-image-container {
    width: 100%;
    position: relative;
}

.category-video-container iframe,
.category-video-container video {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
    max-height: 500px; /* Limite para não ficar gigante */
}

.category-image-container img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .shop-highlights-carousel {
        aspect-ratio: 16/9;
        max-height: auto;
        margin-bottom: 24px;
    }
    
    .shop-carousel-btn {
        opacity: 1; /* Sempre visível no mobile */
        width: 36px;
        height: 36px;
    }
    
    .shop-carousel-btn.prev { left: 10px; }
    .shop-carousel-btn.next { right: 10px; }
    
    .category-banner-wrapper {
        margin-bottom: 24px;
        border-radius: 12px;
    }

    /* Diminuir botões e ícones dos cards no mobile */
    .action-btn {
        width: 32px !important;
        height: 32px !important;
    }
    
    .action-btn svg {
        width: 16px !important;
        height: 16px !important;
        stroke-width: 2 !important;
    }
}
