/* ===================================================
    CSS/catalogo.css - CATÁLOGO PROFISSIONAL JAPA UNIVERSE
   =================================================== */

/* ===== VARIÁVEIS ADICIONAIS ===== */
:root {
    --success-color: #00a65a;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --info-color: #2196f3;
    --skeleton-color: #2a2a2a;
    --skeleton-highlight: #333;
    
    /* PALETA "DARK PREMIUM" JAPA UNIVERSE */
    --brand-orange: #FF6600;
    --brand-orange-light: #ff8533;
    --brand-orange-dark: #cc5200;
    
    /* Degradê sutil: Preto Fosco -> Marrom/Laranja Quase Preto */
    --card-bg-gradient: linear-gradient(165deg, #161616 0%, #241c19 100%);
    --card-border: #332e2b;
    --card-bg-start: #161616;
    --card-bg-end: #241c19;
}

/* ===== RESET E ESTILOS BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== HERO DO CATÁLOGO ===== */
.catalog-hero {
    background: linear-gradient(135deg, var(--surface) 0%, #0a0a0a 100%);
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.catalog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,102,0,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Bebas Neue', sans-serif;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* ===== ABAS TÊNIS/ROUPAS - DESIGN PREMIUM ===== */
.catalog-type-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 0 auto 40px;
    max-width: 600px;
    padding: 5px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 5;
    animation: tabFadeIn 0.6s ease forwards;
}

.type-tab {
    background: transparent;
    border: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #888;
    cursor: pointer;
    padding: 12px 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.type-tab i {
    margin-right: 10px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--brand-orange);
    opacity: 0.5;
}

.type-tab:hover {
    color: #fff;
}

.type-tab:hover i {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

.type-tab.active {
    background: var(--brand-orange);
    color: #000;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(255, 102, 0, 0.4);
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

.type-tab.active i {
    opacity: 1;
    color: #000;
    transform: scale(1.1);
}

/* Efeito de brilho na borda da aba ativa */
.type-tab.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--brand-orange), 
        rgba(255, 102, 0, 0.5),
        var(--brand-orange));
    border-radius: 52px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(4px);
    animation: tabGlow 2s ease-in-out infinite alternate;
}

@keyframes tabGlow {
    0% { opacity: 0.3; filter: blur(3px); }
    100% { opacity: 0.8; filter: blur(5px); }
}

@keyframes tabFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CONTROLES AVANÇADOS ===== */
.catalog-controls {
    margin-bottom: var(--space-xl);
    background: rgba(20,20,20,0.3);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
}

.search-wrapper {
    position: relative;
    margin-bottom: var(--space-md);
}

.search-wrapper i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.search-wrapper:focus-within i {
    color: var(--brand-orange);
}

.search-wrapper input {
    padding: 1rem 3rem 1rem 3.5rem;
    width: 100%;
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 1px var(--brand-orange), 0 4px 12px rgba(255,102,0,0.2);
}

.search-wrapper input::placeholder {
    color: var(--text-secondary);
    transition: opacity 0.3s ease;
}

.search-wrapper input:focus::placeholder {
    opacity: 0.7;
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.1);
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.filter-group {
    display: flex;
    gap: var(--space-sm);
    flex: 1;
}

.filter-select {
    flex: 1;
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0a0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
    background-size: 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 1px var(--brand-orange);
}

.filter-select:hover:not(:focus) {
    border-color: #555;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active,
.view-btn:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background: rgba(255, 102, 0, 0.1);
}

.view-btn:active {
    transform: scale(0.95);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 2rem;
    margin-top: 15px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-orange);
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: tagFadeIn 0.3s ease;
}

@keyframes tagFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.filter-tag button {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.filter-tag button:hover {
    background: rgba(0,0,0,0.2);
}

/* ===== GRID DE PRODUTOS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: var(--space-xl);
    transition: all 0.3s ease;
}

.products-grid[data-view="list"] {
    grid-template-columns: 1fr;
    gap: 16px;
}

/* ===== CARD DE PRODUTO PREMIUM ===== */
.product-card {
    background: var(--card-bg-gradient);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    height: 100%;
    min-height: 400px;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-orange);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 102, 0, 0.15);
    z-index: 5;
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

.badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.badge.new { background: var(--brand-orange); color: #000; }
.badge.sale { background: #e53935; color: white; }
.badge.limited { background: #fff; color: #000; }

/* ÁREA DA IMAGEM */
.product-image-wrapper {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    background-color: transparent;
    padding: 8px;
    flex-shrink: 0;
    cursor: pointer;
}

.product-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
    z-index: 1;
    transition: all 0.4s ease;
}

.product-card:hover .product-image-wrapper::after {
    transform: scaleY(1.5);
    opacity: 0.8;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 12px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    transform: scale(1.10);
    position: relative;
    z-index: 2;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.12) rotate(-3deg) translateY(-5px);
    filter: drop-shadow(0px 20px 25px rgba(0, 0, 0, 0.7));
}

/* INFORMAÇÕES DO PRODUTO */
.product-info {
    padding: 0 1.5rem 0.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-name {
    font-weight: 1000;
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-shipping-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00e676;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.product-shipping-tag i {
    font-size: 0.75rem;
    animation: truckShake 3s ease-in-out infinite;
}

@keyframes truckShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
}

.product-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 9px;
    padding-top: 3px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.current-price {
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--brand-orange);
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
}

.original-price {
    font-size: 0.7rem;
    color: #555;
    text-decoration: line-through;
}

/* RODAPÉ DO CARD */
.product-footer {
    padding: 0 1.5rem 1.5rem;
    background: transparent;
}

.add-to-cart-btn {
    width: 100%;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--brand-orange);
    color: var(--brand-orange);
    padding: 12px;
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 45px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-to-cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.add-to-cart-btn:hover:not([disabled]) {
    background: var(--brand-orange);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.4);
    transform: translateY(-2px);
}

.add-to-cart-btn:active { transform: translateY(0); }
.add-to-cart-btn[disabled] { border-color: #444; color: #666; cursor: not-allowed; }

.btn-text { margin: 0 auto; position: relative; z-index: 2; }
.btn-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; }
.add-to-cart-btn.loading .btn-text { opacity: 0; }
.add-to-cart-btn.loading .btn-loading { opacity: 1; }

/* MODO LISTA */
.products-grid[data-view="list"] .product-card {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    align-items: center;
    height: auto;
    min-height: auto;
    background: linear-gradient(90deg, var(--card-bg-start) 0%, var(--card-bg-end) 100%);
}

.products-grid[data-view="list"] .product-image-wrapper {
    height: 120px;
    padding: 0;
}

.products-grid[data-view="list"] .product-info {
    border: none;
}

.products-grid[data-view="list"] .product-shipping-tag {
    margin-bottom: 2px !important;
    display: flex;
}

.products-grid[data-view="list"] .product-price {
    margin-top: 0 !important;
    border: none;
    padding-top: 2px !important;
    gap: 5px !important;
}

.products-grid[data-view="list"] .product-footer {
    width: 180px;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: var(--skeleton-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, var(--skeleton-highlight), transparent);
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    100% { transform: translateX(100%); }
}

.skeleton-image {
    height: 240px;
    width: 100%;
    border-radius: 8px 8px 0 0;
}

.skeleton-text {
    height: 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--brand-orange);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 20px;
}

.empty-state .btn-outline {
    background: transparent;
    border: 2px solid var(--brand-orange);
    color: var(--brand-orange);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-state .btn-outline:hover {
    background: var(--brand-orange);
    color: #000;
}

/* ===== LOADING STATE ===== */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--card-border);
    border-top-color: var(--brand-orange);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== QUICK VIEW MODAL ===== */
.quickview-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1060;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    padding: var(--space-md);
}

.quickview-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.quickview-modal-content {
    background: var(--background);
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.4s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.quickview-modal-content .close-button {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    cursor: pointer;
}

.quickview-modal-content .close-button:hover {
    background: var(--brand-orange);
    color: #000;
    transform: scale(1.1) rotate(90deg);
}

.quickview-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
}

.quickview-gallery {
    position: relative;
    background: #fff;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 400px;
}

.quickview-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    max-height: 500px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.quickview-thumbnails {
    position: absolute;
    bottom: var(--space-sm);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0 var(--space-sm);
}

.quickview-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    object-fit: cover;
    background: #fff;
}

.quickview-thumbnail:hover,
.quickview-thumbnail.active {
    border-color: var(--brand-orange);
    transform: scale(1.05);
}

.quickview-details {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.quickview-brand {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.quickview-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}

.quickview-price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-xs) 0;
}

.quickview-current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-orange);
}

.quickview-original-price {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.quickview-discount {
    background: var(--error-color);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.quickview-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: var(--space-sm) 0;
    font-size: 0.9rem;
}

.quickview-shipping {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--success-color);
    font-weight: 600;
    margin: var(--space-sm) 0;
    font-size: 0.9rem;
}

.quickview-size-section {
    margin: var(--space-md) 0;
}

.quickview-size-title {
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.quickview-size-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
    gap: 0.6rem;
    margin-bottom: var(--space-sm);
}

.quickview-size-option {
    background: var(--surface);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 0.4rem;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.quickview-size-option:hover {
    border-color: var(--brand-orange);
    transform: translateY(-2px);
}

.quickview-size-option.selected {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #000;
    box-shadow: 0 0 15px rgba(255,102,0,0.3);
}

.quickview-size-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.quickview-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: auto;
}

.quickview-add-to-cart {
    flex: 1;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--brand-orange);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.quickview-add-to-cart:hover {
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.4);
    transform: translateY(-2px);
}

.quickview-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.quickview-feature {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.quickview-feature i {
    color: var(--brand-orange);
    font-size: 1rem;
}

.quickview-error {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
}

.quickview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    gap: var(--space-sm);
}

/* ===== NOTIFICAÇÕES ===== */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--success-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    color: #fff;
}

.notification.show {
    transform: translateX(0);
}

.notification-error {
    border-left-color: var(--error-color);
}

/* ===== PAGINAÇÃO ===== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    width: 100%;
}

.pagination-wrapper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-btn.active {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.4);
    transform: scale(1.05);
}

.page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    transform: translateY(-2px);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #333;
}

/* ===== BOTÃO CARREGAR MAIS ===== */
.load-more-btn {
    min-width: 200px;
    margin-top: 2rem;
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-btn:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,102,0,0.2);
}

/* ===== CART MODAL ===== */
.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    visibility: hidden;
}

.cart-modal.active {
    visibility: visible;
}

.cart-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-modal.active .modal-overlay {
    opacity: 1;
}

.cart-modal .modal-content {
    position: absolute;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--surface);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

.cart-modal.active .modal-content {
    right: 0;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--brand-orange);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0,0,0,0.2);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.shipping-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--brand-orange);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: var(--brand-orange-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,102,0,0.3);
}

/* ===== RESPONSIVIDADE ===== */

/* Tablets (768px - 992px) */
@media (max-width: 992px) {
    .catalog-type-tabs {
        max-width: 500px;
        gap: 10px;
    }

    .type-tab {
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .type-tab i {
        margin-right: 8px;
        font-size: 1.1rem;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-wrap: wrap;
    }

    .filter-select {
        min-width: 150px;
    }

    .products-grid[data-view="list"] .product-card {
        grid-template-columns: 120px 1fr auto;
        gap: 1rem;
    }
}

/* Celulares grandes (576px - 768px) */
@media (max-width: 768px) {
    .catalog-type-tabs {
        max-width: 100%;
        margin: 0 15px 30px;
        border-radius: 50px;
        padding: 4px;
    }

    .type-tab {
        font-size: 1rem;
        padding: 8px 12px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .type-tab i {
        margin-right: 6px;
        font-size: 1rem;
    }

    .type-tab.active::before {
        border-radius: 46px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 5px !important;
    }

    .product-card {
        min-height: auto !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: 0 !important;
        margin-bottom: 5px !important;
    }

    .product-image-wrapper {
        height: 160px !important;
        min-height: 160px !important;
        padding: 8px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .product-image-wrapper img {
        transform: scale(1.05) !important;
        max-height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    .product-info {
        padding: 8px 10px 5px !important;
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        gap: 4px !important;
    }

    .product-name {
        font-size: 12px !important;
        line-height: 1.3 !important;
        font-weight: 500 !important;
        margin: 0 0 3px 0 !important;
        height: auto !important;
        min-height: 32px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .product-shipping-tag {
        font-size: 10px !important;
        margin: 0 0 5px 0 !important;
        padding: 2px 6px !important;
        background: #e8f5e9 !important;
        color: #2e7d32 !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        width: fit-content !important;
        font-weight: 500 !important;
    }

    .product-price {
        margin: auto 0 0 0 !important;
        padding: 0 !important;
        border-top: none !important;
        display: flex !important;
        align-items: center !important;
    }

    .current-price {
        font-size: 16px !important;
        line-height: 1 !important;
        font-weight: 700 !important;
    }

    .product-footer {
        padding: 0 10px 10px !important;
        margin-top: auto !important;
    }

    .add-to-cart-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        min-height: 32px !important;
        width: 100% !important;
        background: #000 !important;
        color: #fff !important;
        border: none !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .add-to-cart-btn:hover {
        background: #333 !important;
    }

    .product-badges {
        top: 5px !important;
        left: 5px !important;
        z-index: 2 !important;
    }
    
    .badge {
        padding: 2px 5px !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        border-radius: 4px !important;
        margin-bottom: 3px !important;
    }

    .quickview-modal-content {
        max-width: 95%;
    }

    .quickview-content {
        grid-template-columns: 1fr;
    }

    .cart-modal .modal-content {
        max-width: 100%;
    }
}

/* Celulares pequenos (até 576px) */
@media (max-width: 576px) {
    .catalog-type-tabs {
        flex-direction: row;
        border-radius: 40px;
        gap: 5px;
        margin: 0 10px 25px;
        padding: 3px;
        position: sticky;
        top: 70px;
        z-index: 100;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
    }

    .type-tab {
        font-size: 0.85rem;
        padding: 8px 5px;
        letter-spacing: 0.5px;
    }

    .type-tab i {
        margin-right: 4px;
        font-size: 0.9rem;
    }

    /* Opção de esconder texto e mostrar só ícone */
    /*
    .type-tab span {
        display: none;
    }
    
    .type-tab i {
        margin-right: 0;
        font-size: 1.2rem;
    }
    */

    .filter-group {
        flex-direction: column;
        gap: 10px;
    }

    .filter-select {
        width: 100%;
    }

    .products-grid {
        gap: 8px !important;
    }

    .pagination-wrapper {
        gap: 5px;
    }
    
    .page-btn {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .view-controls {
        display: none; /* Esconde botões de visualização em mobile */
    }

    .notification {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Celulares muito pequenos (até 360px) */
@media (max-width: 360px) {
    .catalog-type-tabs {
        border-radius: 30px;
    }

    .type-tab {
        font-size: 0.75rem;
        padding: 6px 3px;
    }

    .type-tab i {
        font-size: 0.8rem;
    }

    .products-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Ajuste para telas com orientação paisagem em celulares */
@media (max-height: 480px) and (orientation: landscape) {
    .catalog-type-tabs {
        margin: 0 auto 20px;
    }
    
    .type-tab {
        padding: 6px 20px;
    }

    .quickview-modal-content {
        max-height: 85vh;
    }

    .quickview-gallery {
        min-height: 250px;
    }
}

/* Efeito hover suave para dispositivos touch */
@media (hover: hover) {
    .type-tab:hover:not(.active) {
        background: rgba(255, 102, 0, 0.1);
        color: var(--brand-orange);
    }

    .product-card:hover {
        transform: translateY(-8px);
    }
}

/* Suporte para telas de alta resolução */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animações adicionais */
@keyframes pricePulse {
    0% { text-shadow: 0 0 15px rgba(255,102,0,0.2); }
    50% { text-shadow: 0 0 25px rgba(255,102,0,0.4); }
    100% { text-shadow: 0 0 15px rgba(255,102,0,0.2); }
}

.current-price {
    animation: pricePulse 3s ease-in-out infinite;
}

/* Acessibilidade - foco visível */
:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .catalog-type-tabs,
    .catalog-controls,
    .product-footer,
    .pagination-container,
    .load-more-btn,
    .cart-modal,
    .quickview-modal-overlay,
    .notification {
        display: none !important;
    }

    .product-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .current-price {
        color: #000;
        text-shadow: none;
    }
}