/* AZTEX Catalog - Main Styles */

/* Reset and Base Styles */
:root {
    --accent: #FF6B35;
    --accent-hover: #E55A2B;
    --accent-light: rgba(255,107,53,0.1);
    --bg: #0b0f12;
    --card: #0f1720;
    --glass: rgba(255,255,255,0.04);
    --glass-hover: rgba(255,255,255,0.08);
    --muted: rgba(255,255,255,0.7);
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.8);
    --text-muted: rgba(255,255,255,0.6);
    --border: rgba(255,255,255,0.1);
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.4);
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
    --gradient-secondary: linear-gradient(135deg, #00BFFF 0%, #0080FF 100%);
    --gradient-bg: linear-gradient(135deg, #041014 0%, #0a1a2e 25%, #16213e 50%, #0e1b2e 75%, #0a1a20 100%);
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color-scheme: dark;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,107,53,0.15) 0%, transparent 50%), 
                radial-gradient(circle at 80% 70%, rgba(0,191,255,0.1) 0%, transparent 50%), 
                radial-gradient(circle at 50% 50%, rgba(255,140,105,0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(20, 25, 45, 0.95) 0%, rgba(15, 20, 35, 0.95) 50%, rgba(10, 15, 25, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 25px 0 15px 0; /* Restaurado para posição original */
    box-shadow: var(--shadow), 0 0 30px rgba(255,107,53,0.1);
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,107,53,0.1) 0%, transparent 50%), 
                radial-gradient(circle at 70% 80%, rgba(0,191,255,0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}



.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 20px; /* Restaurado para posição original */
}

/* Header Top - Logo and Buttons Row */
.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    position: relative;
}

/* Back Button - positioned absolute left */
.back-btn {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: none;
    padding: 8px;
}

.back-btn:hover {
    background: none;
    border: none;
    color: var(--text-primary);
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Logo Styles */
.logo {
    text-align: center;
}

/* View Toggle positioned absolute */
.view-toggle {
    position: absolute;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    background: none;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* AZTEX Logo Styles */
.aztex-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Zoom functionality is now always enabled */

/* Keep search bar unchanged during search */
body.search-active .search-input {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

body.search-active .search-input:focus {
    border-color: #8b7355 !important;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* Fix mobile search bar outline - border always visible */
.search-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none !important;
    border: 1px solid #8b7355 !important;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    -webkit-tap-highlight-color: transparent !important;
    transform: none !important;
    zoom: 1 !important;
}

.search-input:focus {
    border: 1px solid #8b7355 !important;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transform: none !important;
    zoom: 1 !important;
}

.search-input:active {
    border: 1px solid #8b7355 !important;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    outline: none !important;
    transform: none !important;
    zoom: 1 !important;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #555;
    letter-spacing: 2px;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    background: linear-gradient(45deg, #666, #333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(1px 1px 2px rgba(255,255,255,0.5));
}

.logo .subtitle {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.contact-info {
    text-align: right;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.tagline {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: #666;
    font-size: 1.2rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    letter-spacing: 1px;
}

/* Search Bar Styles */
.search-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar {
    width: 100%;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 50px 8px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.95rem;
    background: var(--glass);
    transition: all 0.3s ease;
    outline: none;
    box-shadow: var(--shadow);
    font-weight: 400;
    color: var(--text-primary);
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background: var(--glass-hover);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus + .search-icon {
    color: var(--accent);
}/* Catego
ries Bar Styles */
.categories-container {
    position: fixed;
    top: 170px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(20, 25, 45, 0.95) 0%, rgba(15, 20, 35, 0.95) 50%, rgba(10, 15, 25, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 6px 0; /* Reduzido de 8px 0 para 6px 0 */
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow), 0 0 20px rgba(255,107,53,0.08);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.categories-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,107,53,0.08) 0%, transparent 50%), 
                radial-gradient(circle at 80% 70%, rgba(0,191,255,0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}


.categories-container.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.categories-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    gap: 20px;
    position: relative;
}

.categories-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), transparent);
    z-index: 2;
    pointer-events: none;
    opacity: var(--show-left-indicator, 0);
    transition: opacity 0.3s ease;
}

.categories-content::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
    z-index: 2;
    pointer-events: none;
    opacity: var(--show-right-indicator, 0);
    transition: opacity 0.3s ease;
}

.categories-bar {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(139, 115, 85, 0.3) transparent; /* Firefox */
    -ms-overflow-style: auto; /* IE and Edge */
    flex: 1;
    padding: 8px 15px;
    scroll-behavior: smooth;
    /* Otimizações para scroll fluido */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    /* Melhora performance */
    will-change: scroll-position;
    transform: translateZ(0);
}

.categories-bar::-webkit-scrollbar {
    height: 6px; /* Chrome, Safari and Opera */
}

.categories-bar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.categories-bar::-webkit-scrollbar-thumb {
    background: rgba(139, 115, 85, 0.4);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.categories-bar::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 115, 85, 0.6);
}

.category-item {
    padding: 6px 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--text-secondary);
    border: none;
    text-align: center;
    font-size: 0.63rem;
    letter-spacing: 0.35px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
    position: relative;
    /* Scroll snap para alinhamento perfeito */
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.category-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6B35, #FFA078);
    border-radius: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
}

.category-item:hover {
    background: transparent;
    color: var(--text-primary);
    transform: translateY(-1px);
}

.category-item:hover::after {
    width: 100%;
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.8);
}

.category-item.active {
    background: transparent;
    color: var(--text-primary);
    transform: translateY(-1px);
    font-weight: 700;
    position: relative;
}

.category-item.active::after {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35, #FFA078);
    box-shadow: 0 0 15px rgba(255, 107, 53, 1), 0 0 25px rgba(255, 107, 53, 0.5);
}






.view-btn {
    width: auto;
    height: auto;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px;
}

.view-btn:hover {
    background: none;
    color: var(--text-primary);
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.view-btn.active {
    background: none;
    color: #FF6B35;
    border: none;
    text-shadow: 0 0 12px rgba(255, 107, 53, 0.8);
    font-weight: 700;
    position: relative;
    transform: scale(1.15);
}

.view-btn.active::before {
    display: none;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: 0;
    margin-top: 220px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(20, 25, 45, 0.95) 0%, rgba(15, 20, 35, 0.95) 50%, rgba(10, 15, 25, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255,107,53,0.1);
    z-index: 5;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,107,53,0.08) 0%, transparent 50%), 
                radial-gradient(circle at 70% 80%, rgba(0,191,255,0.05) 0%, transparent 50%);
    border-radius: 20px;
    z-index: -1;
    pointer-events: none;
}

/* Products Grid Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}


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

/* Product Card Styles */
.product-card {
    background: linear-gradient(135deg, rgba(245, 243, 235, 0.98) 0%, rgba(240, 238, 230, 0.98) 50%, rgba(235, 233, 225, 0.98) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(139, 115, 85, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    height: 200px;
    display: flex;
    flex-direction: row;
    border: 2px solid #FF6B35;
}

.product-card::before {
    display: none;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,53,0.05) 0%, transparent 50%, rgba(0,191,255,0.03) 100%);
    border-radius: 16px;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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


.product-card::before {
    display: none;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 115, 85, 0.25);
    border-color: #E55A2B;
}

.product-card:hover::before {
    display: none;
}

.product-image {
    width: 45%;
    height: 100%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border-radius: 18px 0 0 18px;
    z-index: 1;
}

/* Camera Placeholder */
.camera-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #ccc;
    display: none;
    background: #f5f5f5;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
}

.product-image.no-image .camera-placeholder,
.list-item-image.no-image .camera-placeholder {
    display: flex;
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 184, 148, 0.4);
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 2;
}

.product-info {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Product Info Panel - Unified Container */
.product-info-panel {
    background: transparent;
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: none;
    padding: 0px;
    margin-top: 4px;
    flex-shrink: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 0px;
    font-size: 0.7rem;
    color: var(--text-muted);
    overflow: hidden;
    min-width: 0;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: #FF6B35;
    font-size: 0.75rem;
    width: 10px;
    flex-shrink: 0;
    margin-right: 3px;
}

.info-item .info-label {
    font-size: 0.7rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 2px;
}

.info-item strong {
    color: #4a4a4a;
    font-weight: 600;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-item .unit-price-value {
    color: #4a4a4a;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-item .package-price-value {
    color: #FF6B35;
    font-weight: 700;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* Product Info Sections */
.product-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3px;
    padding-bottom: 2px;
    border-bottom: 1px solid #f0f0f0;
    gap: 6px;
}

.product-category-badge {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Remove tags from cards (product badge and category) */
.product-badge,
.product-category-badge {
    display: none !important;
}

.product-code {
    font-size: 0.8rem;
    color: #FF6B35;
    font-weight: 500;
}

.product-code span {
    color: #FF6B35;
    font-weight: 600;
    font-size: 0.85rem;
}

.product-main-info {
    margin-bottom: 3px;
}

/* Brand and Package one below the other */
.brand-and-package {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 2px;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: #4a4a4a;
    margin-bottom: 8px;
    margin-top: -8px;
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    max-width: 100%;
    word-wrap: break-word;
    max-height: none;
    display: block;
}

.product-brand {
    font-size: 0.65rem;
    color: #8b7355;
    font-weight: 500;
}

.product-brand span {
    color: #4a4a4a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.7rem;
}

.product-package-info {
    background: rgba(212, 175, 55, 0.08);
    padding: 4px 6px;
    border-radius: 6px;
    border-left: 2px solid #d4af37;
    margin-bottom: 3px;
}

.package-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.55rem;
    color: #8b7355;
}

.package-qty i {
    color: #d4af37;
    font-size: 0.6rem;
}

.package-qty strong {
    color: #4a4a4a;
}

.product-pricing {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(139, 115, 85, 0.08) 100%);
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    margin-top: 6px;
}

.unit-price, .package-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 4px;
    font-size: 0.65rem;
    color: #8b7355;
    overflow: hidden;
    min-width: 0;
}

.package-price {
    margin-bottom: 0;
    font-size: 0.7rem;
}

.unit-price i, .package-price i {
    color: #d4af37;
    font-size: 0.65rem;
    width: 10px;
    flex-shrink: 0;
}

.unit-price .price-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.6rem;
    color: #8b7355;
}

.package-price .price-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.65rem;
    color: #8b7355;
}

.unit-price strong {
    color: #4a4a4a;
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.package-price strong {
    color: #d4af37;
    font-weight: 700;
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    flex-shrink: 0;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-category {
    font-size: 0.65rem;
    color: #8b7355;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.color-options {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #e8e4df;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-dot:hover {
    transform: scale(1.1);
    border-color: #8b7355;
}

/* ========================================
   PRODUCTS LIST STYLES
   ======================================== */

/* Products List Container */
.products-list {
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
    backdrop-filter: none;
    border-radius: 16px;
    overflow: visible;
    box-shadow: none;
    border: none;
    position: relative;
}

.products-list::before {
    display: none;
}

/* List Header */
.list-header {
    display: grid;
    grid-template-columns: 180px 1fr 120px 100px 120px 120px;
    gap: 15px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--text-primary);
    padding: 10px 0px 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border-radius: 12px 12px 0 0;
}

.list-col {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.list-col-image {
    justify-content: center;
}

.list-col-package,
.list-col-price,
.list-col-total {
    justify-content: center;
}

/* List Body */
.list-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* List Item */
.list-item {
    display: grid;
    grid-template-columns: 180px 1fr 120px 100px 120px 120px;
    gap: 15px;
    padding: 8px 0px 8px 20px;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    align-items: center;
    background: linear-gradient(135deg, rgba(245, 243, 235, 0.98) 0%, rgba(240, 238, 230, 0.98) 50%, rgba(235, 233, 225, 0.98) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    border-radius: 12px;
    margin-bottom: 6px;
    border: 2px solid #FF6B35;
    position: relative;
    overflow: hidden;
}

.list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 115, 85, 0.25);
    border-color: #E55A2B;
    background: linear-gradient(135deg, rgba(245, 243, 235, 1) 0%, rgba(240, 238, 230, 1) 50%, rgba(235, 233, 225, 1) 100%);
    backdrop-filter: blur(15px) saturate(180%);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,53,0.05) 0%, transparent 50%, rgba(0,191,255,0.03) 100%);
    border-radius: 12px;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.list-item:hover::after {
    opacity: 1;
}

/* List Item Columns */
.list-item-image {
    width: 100%;
    height: 100px;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    margin: -8px 0 -8px -20px;
    padding: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.15);
    border: none;
    transition: all 0.3s ease;
}

.list-item-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(139, 115, 85, 0.25);
    border-color: rgba(255, 107, 53, 0.5);
}

.list-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px 0 0 12px;
    transition: transform 0.3s ease;
}

.list-item:hover .list-item-image img {
    transform: scale(1.05);
}

.list-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.list-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4a4a4a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}

.list-item-code {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.list-item-brand {
    font-size: 0.7rem;
    color: #666;
}

.list-item-description {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-item-category {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.list-category-badge {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    text-align: center;
}

.list-item-package {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.list-package-qty {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4a4a4a;
}

.list-package-label {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.list-item-price,
.list-item-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.list-price-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4a4a4a;
}

.list-total-value {
    font-size: 1rem;
    font-weight: 700;
    color: #FF6B35;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.list-price-label {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* List Item Badge */
.list-item-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 184, 148, 0.4);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0 40px;
    gap: 15px;
}

.pagination button {
    padding: 8px 14px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text-secondary);
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.7rem;
}

.pagination button:hover,
.pagination button.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4), 0 0 20px rgba(255,107,53,0.2);
    position: relative;
}

.pagination button:hover::before,
.pagination button.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    border-radius: 50px;
    z-index: -1;
    pointer-events: none;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 20px;
}/* Responsi
ve Styles */

/* Desktop specific rules */
@media (min-width: 1025px) {
    .product-name {
        margin-top: -2px;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-content {
        padding: 0 30px;
    }

    .search-container {
        padding: 0 30px;
    }

    .categories-bar {
        padding: 0 30px;
    }

    .main-content {
        padding: 0 30px;
        margin-top: 260px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 1080px;
        margin: 0 auto;
        width: 100%;
    }

    /* ========================================
       LARGE TABLET CARD IMPROVEMENTS
       ======================================== */

    .product-card {
        height: 180px;
        min-height: 180px;
        flex-direction: row;
        padding: 0;
        border-radius: 14px;
        box-shadow: 0 5px 20px rgba(139, 115, 85, 0.14);
        border: 2px solid #FF6B35;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        overflow: hidden;
        position: relative;
        background: linear-gradient(135deg, rgba(245, 243, 235, 0.98) 0%, rgba(240, 238, 230, 0.98) 50%, rgba(235, 233, 225, 0.98) 100%);
        backdrop-filter: blur(15px) saturate(180%);
    }

    .product-card::before {
        display: none;
    }

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(139, 115, 85, 0.2);
        border-color: #E55A2B;
    }

    .product-card:hover::before {
        display: none;
    }

    .product-card:active {
        transform: translateY(-2px) scale(1.006);
        transition: all 0.1s ease;
    }

    .product-image {
        width: 44%;
        height: 100%;
        border-radius: 14px 0 0 14px;
        overflow: hidden;
        position: relative;
        z-index: 1;
    }

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

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

    .product-info {
        width: 56%;
        height: auto;
        border-radius: 0 14px 14px 0;
        justify-content: space-between;
        padding: 12px 14px;
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        overflow: visible;
        min-width: 0;
    }

    .product-badge {
        font-size: 0.6rem;
        padding: 4px 8px;
        top: 10px;
        right: 10px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    }

    .product-header {
        justify-content: flex-start;
        margin-bottom: 6px;
        gap: 6px;
    }

    .product-category-badge {
        font-size: 0.45rem;
        padding: 2px 5px;
        border-radius: 8px;
        background: linear-gradient(135deg, #8b7355 0%, #a68b5b 100%);
        color: white;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    .product-code {
        font-size: 0.6rem;
        text-align: left;
        flex-shrink: 0;
        margin-bottom: 6px;
        color: #FF6B35;
    }

    .product-code span {
        font-size: 0.65rem;
        font-weight: 700;
        color: #FF6B35;
    }

    .product-name {
        font-size: 0.675rem;
        line-height: 1.2;
        white-space: normal;
        overflow: visible;
        margin-bottom: 6px;
        margin-top: -6px;
        word-wrap: break-word;
        max-height: none;
        display: block;
        font-weight: 700;
        color: #4a4a4a;
    }

    .product-info-panel {
        padding: 0px;
        margin-top: auto;
        flex-shrink: 0;
        background: transparent;
        border-radius: 9px;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        gap: 0px;
        overflow: visible;
        min-width: 0;
    }

    .info-item {
        display: flex;
        align-items: center;
        gap: 0px;
        margin-bottom: 3px;
        font-size: 0.55rem;
        color: var(--text-muted);
        overflow: visible;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .info-item i {
        font-size: 0.7rem;
        width: 9px;
        color: #FF6B35;
        flex-shrink: 0;
        margin-right: 2px;
    }

    .info-item .info-label {
        font-size: 0.5rem;
        color: #666;
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
        margin-right: 1px;
        flex-shrink: 0;
    }

    .info-item strong {
        font-size: 0.55rem;
        color: #4a4a4a;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .info-item .unit-price-value {
        font-size: 0.58rem;
        color: #4a4a4a;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .info-item .package-price-value {
        font-size: 0.65rem;
        color: #FF6B35;
        font-weight: 700;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
        flex-shrink: 0;
        min-width: max-content;
    }

    .product-pricing {
        padding: 3px 5px;
        margin-top: 5px;
    }

    .product-package-info {
        padding: 2px 4px;
        margin-bottom: 5px;
        background: rgba(139, 115, 85, 0.08);
        border-radius: 6px;
        border-left: 2px solid #d4af37;
    }

    /* Touch feedback improvements */
    .product-card {
        -webkit-tap-highlight-color: rgba(139, 115, 85, 0.06);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* iPad Air - SOLUÇÃO ROBUSTA - Múltiplas media queries para garantir detecção */
@media screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape),
       screen and (min-width: 1024px) and (max-width: 1366px) and (min-height: 768px) and (max-height: 1024px),
       screen and (width: 1024px) and (height: 768px),
       screen and (width: 1180px) and (height: 820px),
       screen and (width: 1640px) and (height: 1180px),
       screen and (device-width: 768px) and (device-height: 1024px) and (orientation: landscape) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr) !important; /* 4 colunas para iPad Air landscape */
        gap: 16px !important; /* Gap otimizado */
        max-width: 1200px !important; /* Largura máxima adequada */
    }
    
    .product-card {
        height: 180px !important; /* Altura corrigida para iPad Air */
        min-height: 180px !important;
        flex-direction: row !important;
        padding: 0 !important;
        border-radius: 16px !important;
        box-shadow: 0 5px 20px rgba(139, 115, 85, 0.14) !important;
        border: 2px solid #FF6B35 !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        overflow: hidden !important;
        position: relative !important;
        background: linear-gradient(135deg, rgba(245, 243, 235, 0.98) 0%, rgba(240, 238, 230, 0.98) 50%, rgba(235, 233, 225, 0.98) 100%) !important;
        backdrop-filter: blur(15px) saturate(180%) !important;
    }
    
    .product-image {
        width: 40% !important; /* Proporção otimizada para iPad Air */
        height: 100% !important;
        border-radius: 16px 0 0 16px !important;
        overflow: hidden !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .product-info {
        width: 60% !important; /* Mais espaço para conteúdo */
        height: auto !important;
        border-radius: 0 16px 16px 0 !important;
        justify-content: space-between !important;
        padding: 10px 12px !important;
        position: relative !important;
        z-index: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
        min-width: 0 !important;
    }
    
    .product-name {
        font-size: 0.675rem !important; /* Tamanho legível */
        line-height: 1.3 !important;
        white-space: normal !important;
        overflow: visible !important;
        margin-bottom: 6px !important;
        margin-top: -6px !important;
        word-wrap: break-word !important;
        max-height: none !important;
        display: block !important;
        font-weight: 700 !important;
        color: #4a4a4a !important;
    }
    
    .product-code {
        font-size: 0.65rem !important;
        text-align: left !important;
        flex-shrink: 0 !important;
        margin-bottom: 6px !important;
        color: #FF6B35 !important;
    }
    
    .product-code span {
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        color: #FF6B35 !important;
    }
    
    .info-item {
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
        margin-bottom: 3px !important;
        font-size: 0.6rem !important;
        color: var(--text-muted) !important;
        overflow: visible !important;
        min-width: 0 !important;
        flex-wrap: nowrap !important;
    }
    
    .info-item i {
        font-size: 0.7rem !important;
        width: 10px !important;
        color: #FF6B35 !important;
        flex-shrink: 0 !important;
        margin-right: 3px !important;
    }
    
    .info-item .info-label {
        font-size: 0.55rem !important;
        color: #666 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        margin-right: 2px !important;
        flex-shrink: 0 !important;
    }
    
    .info-item strong {
        font-size: 0.6rem !important;
        color: #4a4a4a !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .info-item .unit-price-value {
        font-size: 0.65rem !important;
        color: #4a4a4a !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .info-item .package-price-value {
        font-size: 0.7rem !important;
        color: #FF6B35 !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        flex-shrink: 0 !important;
        min-width: max-content !important;
    }
    
    .product-pricing {
        padding: 4px 6px !important;
        margin-top: 6px !important;
    }
    
    .product-package-info {
        padding: 3px 5px !important;
        margin-bottom: 6px !important;
        background: rgba(139, 115, 85, 0.08) !important;
        border-radius: 6px !important;
        border-left: 2px solid #d4af37 !important;
    }
    
    /* Ajustes específicos para a imagem do caminhão no iPad Air */
    .frete-truck {
        max-width: 120% !important; /* Aumenta significativamente o tamanho */
        height: auto !important;
        transform: translateY(-40px) scale(1.2) !important; /* Sobe e aumenta ainda mais */
        border-radius: 20px !important;
        transition: all 0.4s ease !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    .frete-truck:hover {
        transform: translateY(-40px) scale(1.25) rotateY(5deg) !important; /* Mantém posição elevada no hover */
    }
    
    .frete-image {
        position: relative !important;
        text-align: center !important;
        overflow: visible !important; /* Permite que a imagem ampliada seja visível */
        margin-top: -20px !important; /* Sobe ainda mais o container */
    }
    
    .frete-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 60px !important; /* Reduz um pouco o gap para acomodar a imagem maior */
        max-width: 1400px !important;
        margin: 0 auto !important;
        padding: 0 40px !important;
        align-items: center !important;
        position: relative !important;
        z-index: 1 !important;
    }
}

/* FORÇA BRUTA - iPad Air - Se as outras não funcionaram, esta DEVE funcionar */
@media only screen and (min-width: 1020px) and (max-width: 1030px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px !important;
        max-width: 1200px !important;
    }
    
    .product-card {
        height: 180px !important;
        min-height: 180px !important;
        border-radius: 16px !important;
    }
    
    .product-image {
        width: 40% !important;
    }
    
    .product-info {
        width: 60% !important;
        padding: 10px 12px !important;
    }
    
    .frete-truck {
        max-width: 120% !important;
        transform: translateY(-40px) scale(1.2) !important;
    }
    
    .frete-image {
        margin-top: -20px !important;
        overflow: visible !important;
    }
}

/* ALTERNATIVA UNIVERSAL - Para QUALQUER iPad em landscape */
@media only screen and (orientation: landscape) and (min-width: 1000px) and (max-width: 1400px) and (min-height: 700px) and (max-height: 900px) {
    body.ipad-detected .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px !important;
        max-width: 1200px !important;
    }
    
    body.ipad-detected .product-card {
        height: 180px !important;
        min-height: 180px !important;
        border-radius: 16px !important;
    }
    
    body.ipad-detected .product-image {
        width: 40% !important;
    }
    
    body.ipad-detected .product-info {
        width: 60% !important;
        padding: 10px 12px !important;
    }
    
    body.ipad-detected .frete-truck {
        max-width: 120% !important;
        transform: translateY(-40px) scale(1.2) !important;
    }
    
    body.ipad-detected .frete-image {
        margin-top: -20px !important;
        overflow: visible !important;
    }
}

/* Tablet Small */
@media (max-width: 768px) and (min-width: 481px) {
    .header-content {
        padding: 0 25px;
        flex-direction: column;
        gap: 15px;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .search-container {
        top: 160px;
        padding: 0 25px;
    }

    .search-bar {
        padding: 0 25px;
    }

    .categories-container {
        top: 220px;
        padding: 0 25px;
    }

    .categories-bar {
        padding: 0 20px;
        gap: 12px;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
    }

    .categories-bar::-webkit-scrollbar {
        height: 5px;
    }

    .categories-bar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.25);
        border-radius: 2.5px;
    }

    .categories-bar::-webkit-scrollbar-thumb {
        background: rgba(139, 115, 85, 0.45);
        border-radius: 2.5px;
    }

    .category-item {
        padding: 8px 14px;
        font-size: 0.85rem;
        scroll-snap-align: start;
        min-width: fit-content;
    }

    .main-content {
        margin-top: 280px;
        padding: 20px 25px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        max-width: 900px;
        margin: 0 auto;
        width: 100%;
    }

    /* ========================================
       TABLET CARD IMPROVEMENTS
       ======================================== */

    .product-card {
        height: 220px;
        flex-direction: row;
        padding: 0;
        border-radius: 16px;
        box-shadow: 0 6px 25px rgba(139, 115, 85, 0.16);
        border: 1px solid rgba(139, 115, 85, 0.12);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        position: relative;
        background: linear-gradient(135deg, rgba(245, 243, 235, 0.98) 0%, rgba(240, 238, 230, 0.98) 50%, rgba(235, 233, 225, 0.98) 100%);
        backdrop-filter: blur(15px) saturate(180%);
    }

    .product-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.04) 0%, rgba(139, 115, 85, 0.04) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 0;
    }

    .product-card:hover {
        transform: translateY(-6px) scale(1.015);
        box-shadow: 0 10px 35px rgba(139, 115, 85, 0.22);
        border-color: rgba(139, 115, 85, 0.2);
    }

    .product-card:hover::before {
        display: none;
    }

    .product-card:active {
        transform: translateY(-3px) scale(1.008);
        transition: all 0.1s ease;
    }

    .product-image {
        width: 42%;
        height: 100%;
        border-radius: 16px 0 0 16px;
        overflow: hidden;
        position: relative;
        z-index: 1;
    }

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

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

    .product-info {
        width: 58%;
        height: auto;
        border-radius: 0 16px 16px 0;
        justify-content: space-between;
        padding: 14px 16px;
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
    }

    .product-badge {
        font-size: 0.65rem;
        padding: 5px 10px;
        top: 12px;
        right: 12px;
        border-radius: 14px;
        box-shadow: 0 3px 10px rgba(212, 175, 55, 0.35);
    }

    .product-header {
        justify-content: flex-start;
        margin-bottom: 8px;
        gap: 8px;
    }

    .product-category-badge {
        font-size: 0.5rem;
        padding: 2px 6px;
        border-radius: 8px;
        background: linear-gradient(135deg, #8b7355 0%, #a68b5b 100%);
        color: white;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    .product-code {
        font-size: 0.7rem;
        margin-bottom: 8px;
        color: #FF6B35;
    }

    .product-code span {
        font-size: 0.75rem;
        font-weight: 700;
        color: #FF6B35;
    }

    .product-name {
        font-size: 0.8rem;
        line-height: 1.25;
        white-space: normal;
        overflow: visible;
        margin-bottom: 8px;
        margin-top: -8px;
        word-wrap: break-word;
        max-height: none;
        display: block;
        font-weight: 700;
        color: #4a4a4a;
    }

    .product-info-panel {
        padding: 0px;
        margin-top: auto;
        flex-shrink: 0;
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(139, 115, 85, 0.05) 100%);
        border-radius: 10px;
        border: 1px solid rgba(212, 175, 55, 0.15);
        box-shadow: 0 2px 6px rgba(139, 115, 85, 0.08);
        display: flex;
        flex-direction: column;
        gap: 0px;
    }

    .info-item {
        display: flex;
        align-items: center;
        gap: 0px;
        margin-bottom: 3px;
        font-size: 0.5rem;
        color: var(--text-muted);
        overflow: hidden;
        min-width: 0;
    }

    .info-item i {
        font-size: 0.65rem;
        width: 8px;
        color: #FF6B35;
        flex-shrink: 0;
        margin-right: 2px;
    }

    .info-item .info-label {
        font-size: 0.44rem;
        color: #666;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 1px;
    }

    .info-item strong {
        font-size: 0.48rem;
        color: #4a4a4a;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .info-item .unit-price-value {
        font-size: 0.52rem;
        color: #4a4a4a;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .info-item .package-price-value {
        font-size: 0.62rem;
        color: #FF6B35;
        font-weight: 700;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-pricing {
        padding: 4px 6px;
        margin-top: 6px;
    }

    .product-package-info {
        padding: 2px 4px;
        margin-bottom: 6px;
        background: rgba(139, 115, 85, 0.08);
        border-radius: 6px;
        border-left: 2px solid #d4af37;
    }

    /* Touch feedback improvements */
    .product-card {
        -webkit-tap-highlight-color: rgba(139, 115, 85, 0.08);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* Mobile */
@media (max-width: 480px) {
    /* Estilos para área de resultados de pesquisa em mobile */
    #searchResultsCounter {
        top: 180px !important; /* Posição próxima da barra de pesquisa */
        padding: 3px 15px !important; /* Padding reduzido */
        font-size: 0.8rem !important; /* Fonte um pouco menor */
    }
    
    .header-content {
        padding: 0 15px;
        flex-direction: column;
        gap: 20px; /* Restaurado para posição original */
    }

    .logo h1 {
        font-size: 1.6rem;
    }
    
    /* Lista Mobile - Mantém altura, ajusta largura */
    .list-item {
        grid-template-columns: 85px 1fr 70px 80px;
        gap: 8px;
        padding: 12px 0px 12px 10px;
        border-radius: 12px;
        margin-bottom: 12px;
        width: 100%;
        max-width: calc(100vw - 30px);
        height: auto;
        min-height: 97px; /* Altura mínima aumentada para acomodar imagens maiores */
    }
    
    .list-item-image {
        width: 100%;
        height: 97px;
        border-radius: 12px 0 0 12px;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(139, 115, 85, 0.12);
        border: none;
        margin: -12px 0 -12px -10px;
        padding: 0;
        overflow: hidden;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .list-item-image:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(139, 115, 85, 0.2);
        border-color: rgba(255, 107, 53, 0.5);
    }
    
    .list-item-image img {
        border-radius: 12px 0 0 12px;
        object-position: center;
        transition: transform 0.3s ease;
    }
    
    .list-item:hover .list-item-image img {
        transform: scale(1.05);
    }
    
    .list-item-info {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 2px;
        min-width: 0;
        padding-top: 0; /* Remove padding para alinhar com o topo dos preços */
        align-self: flex-start; /* Força alinhamento ao topo */
    }
    
    .list-item-name {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 2px;
        overflow: visible;
        text-overflow: unset;
        display: block;
        white-space: nowrap;
    }
    
    .list-item-code {
        font-size: 0.7rem;
        margin-bottom: 1px;
    }
    
    .list-item-brand,
    .list-item-description {
        display: none; /* Oculta para economizar espaço */
    }
    
    .list-item-category {
        display: none; /* Oculta categoria em mobile */
    }
    
    .list-item-package {
        display: none; /* Oculta embalagem em mobile */
    }
    
    .list-item-price {
        text-align: center;
    }
    
    .list-price-value {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .list-price-label {
        font-size: 0.6rem;
        margin-top: 1px;
    }
    
    .list-item-total {
        text-align: center;
    }
    
    .list-total-value {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--accent);
    }
    
    /* Headers da lista em mobile */
    .list-header {
        grid-template-columns: 85px 1fr 70px 80px;
        gap: 8px;
        padding: 8px 0px 8px 10px;
        font-size: 0.7rem;
        max-width: calc(100vw - 30px);
    }
    
    .list-col-category,
    .list-col-package {
        display: none;
    }
    
    /* Reduzir tamanho dos botões em 30% */
    .back-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .view-btn {
        width: 28px;
        height: 24px;
        font-size: 11px;
        min-width: 28px;
        min-height: 24px;
        pointer-events: auto;
        z-index: 10;
        cursor: pointer;
    }
    
    .category-item {
        padding: 8px 12px; /* Aumentado de 5px 10px para 8px 12px */
        font-size: 0.7rem; /* Aumentado de 0.53rem para 0.7rem */
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    
    .pagination button {
        padding: 7px 12px;
        font-size: 0.6rem;
    }
    
    .back-to-top-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .back-to-first-page-btn {
        padding: 6px 10px;
        font-size: 7.7px;
    }
    
    /* Botões dos modais */
    .modal-close {
        width: 21px;
        height: 21px;
        font-size: 8.3px;
    }
    
    .media-nav-btn {
        width: 29.75px;
        height: 29.75px;
        font-size: 10.2px;
    }
    
    .zoom-close {
        width: 29.75px;
        height: 29.75px;
        font-size: 9.95px;
    }
    
    .zoom-btn {
        width: 25.5px;
        height: 25.5px;
        font-size: 8.5px;
    }
    
    .zoom-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 9.95px;
    }

    .search-container {
        top: 150px; /* Restaurado para posição original */
        padding: 0 20px;
    }

    .search-input {
        padding: 10px 15px;
        font-size: 16px !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        outline: none !important;
        border: 1px solid #8b7355 !important;
        box-shadow: 0 2px 8px rgba(139, 115, 85, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
        -webkit-tap-highlight-color: transparent !important;
        transform: none !important;
        zoom: 1 !important;
        -webkit-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }

    .search-input:focus {
        border: 1px solid #8b7355 !important;
        box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
        transform: none !important;
        zoom: 1 !important;
        font-size: 16px !important;
        -webkit-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }

    .search-input:active {
        border: 1px solid #8b7355 !important;
        box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
        outline: none !important;
        transform: none !important;
        zoom: 1 !important;
        font-size: 16px !important;
        -webkit-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }

    .categories-container {
        top: 170px; /* Subido para ocupar o espaço vazio */
        padding: 0;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
        left: 0;
        right: 0;
    }

    .categories-content {
        padding: 0 10px;
        margin: 0;
    }

    .categories-bar {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 10px; /* Eliminado padding vertical completamente */
        gap: 4px; /* Reduzido ainda mais de 6px para 4px */
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        width: 100%;
        box-sizing: border-box;
    }

    .categories-bar::-webkit-scrollbar {
        height: 4px;
    }

    .categories-bar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
    }

    .categories-bar::-webkit-scrollbar-thumb {
        background: rgba(139, 115, 85, 0.5);
        border-radius: 2px;
    }

    .category-item {
        flex-shrink: 0;
        padding: 8px 14px; /* Aumentado de 3px 8px para 8px 14px */
        font-size: 0.85rem; /* Aumentado de 0.75rem para 0.85rem */
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        /* Scroll snap para alinhamento perfeito */
        scroll-snap-align: start;
        scroll-snap-stop: normal;
        white-space: nowrap;
        scroll-snap-align: start;
        min-width: fit-content;
        max-width: calc(100vw - 40px);
        box-sizing: border-box;
        text-align: center;
        position: relative;
    }

    .main-content {
        margin-top: 220px; /* Ajustado para acompanhar as categorias subidas */
        padding: 15px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
        margin: 0 auto;
    }

    /* ========================================
       MOBILE CARD IMPROVEMENTS
       ======================================== */
    
    .product-card {
        height: 200px; /* Mantém altura original */
        flex-direction: row;
        padding: 0;
        border-radius: 18px;
        box-shadow: 0 8px 30px rgba(139, 115, 85, 0.18);
        border: 2px solid #FF6B35;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        overflow: hidden;
        position: relative;
        background: linear-gradient(135deg, rgba(245, 243, 235, 0.98) 0%, rgba(240, 238, 230, 0.98) 50%, rgba(235, 233, 225, 0.98) 100%);
        backdrop-filter: blur(15px) saturate(180%);
        width: 100%;
        max-width: calc(100vw - 30px); /* Largura responsiva */
    }

    .product-card::before {
        display: none;
    }

    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(139, 115, 85, 0.25);
        border-color: #E55A2B;
    }

    .product-card:hover::before {
        display: none;
    }

    .product-card:active {
        transform: translateY(-2px) scale(1.005);
        transition: all 0.1s ease;
    }

    .product-image {
        width: 45%; /* Mantém proporção original */
        height: 100%;
        margin-bottom: 0;
        border-radius: 18px 0 0 18px;
        overflow: hidden;
        position: relative;
        z-index: 1;
        flex-shrink: 0;
    }

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

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

    .product-info {
        width: 55%; /* Mantém proporção original */
        padding: 12px 14px;
        justify-content: space-between;
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        min-width: 0; /* Permite texto truncar */
        margin-top: -8px; /* Sobe o texto do card */
    }

    /* Mobile Typography Optimizations */
    .product-name {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 8px;
        margin-top: -5px;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        overflow: visible;
        max-height: none;
        display: block;
        /* Remove limitação de linhas para mostrar toda a descrição */
    }

    .product-code {
        font-size: 0.7rem;
        margin-bottom: 2px;
        opacity: 0.8;
    }

    .product-info-panel {
        gap: 6px; /* Aumenta o espaçamento entre itens */
        margin-top: auto; /* Empurra para baixo */
    }

    .info-item {
        font-size: 0.65rem;
        padding: 2px 0; /* Aumenta o padding vertical */
        line-height: 1.3;
        margin-bottom: 0; /* Remove margin negativo */
    }

    .info-item i {
        font-size: 0.7rem;
        width: 12px;
    }

    .info-label {
        font-size: 0.65rem;
    }

    .unit-price-value,
    .package-price-value {
        font-size: 0.8rem;
        font-weight: 600;
    }

    .product-category-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        border-radius: 8px;
    }

    .product-badge {
        font-size: 0.55rem;
        padding: 3px 6px;
        top: 8px;
        right: 8px;
    }
}

/* Mobile Extra Small - Telas muito pequenas */
@media (max-width: 400px) {
    .main-content {
        padding: 10px;
    }

    .products-grid {
        gap: 12px;
    }

    /* Cards Extra Small */
    .product-card {
        height: 200px; /* Mantém altura mesmo em telas pequenas */
        border-radius: 16px;
        border-width: 2px;
        max-width: calc(100vw - 20px); /* Largura ainda mais restrita */
    }

    .product-image {
        width: 45%; /* Mantém proporção */
        border-radius: 16px 0 0 16px;
    }

    .product-info {
        width: 55%; /* Mantém proporção */
        padding: 10px 12px; /* Reduz padding */
        margin-top: -6px; /* Sobe o texto do card */
    }

    /* Typography para telas muito pequenas */
    .product-name {
        font-size: 0.75rem;
        line-height: 1.35;
        margin-bottom: 5px;
        margin-top: -4px;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        overflow: visible;
        max-height: none;
        display: block;
        /* Remove limitação de linhas para mostrar toda a descrição */
    }

    .product-code {
        font-size: 0.65rem;
        margin-bottom: 1px;
    }

    .product-info-panel {
        gap: 5px; /* Aumenta o espaçamento entre itens */
    }

    .info-item {
        font-size: 0.6rem;
        padding: 1.5px 0; /* Aumenta o padding vertical */
        line-height: 1.2;
        margin-bottom: 0; /* Remove margin negativo */
    }

    .info-item i {
        font-size: 0.65rem;
        width: 10px;
    }
    
    /* Lista Extra Small */
    .list-item {
        grid-template-columns: 70px 1fr 65px 75px;
        gap: 6px;
        padding: 10px 0px 10px 8px;
        max-width: calc(100vw - 20px);
        min-height: 80px;
        margin-bottom: 10px;
    }
    
    .list-item-image {
        width: 100%;
        height: 80px;
        border-radius: 12px 0 0 12px;
        box-shadow: 0 2px 6px rgba(139, 115, 85, 0.1);
        border: none;
        margin: -10px 0 -10px -8px;
        padding: 0;
        overflow: hidden;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .list-item-image img {
        border-radius: 12px 0 0 12px;
        object-position: center;
    }
    
    .list-item-info {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 1px;
        min-width: 0;
        padding-top: 0; /* Remove padding para alinhar com o topo dos preços */
        align-self: flex-start; /* Força alinhamento ao topo */
    }
    
    .list-item-name {
        font-size: 0.8rem;
        line-height: 1.1;
        overflow: visible;
        text-overflow: unset;
        display: block;
        white-space: nowrap;
    }
    
    .list-item-code {
        font-size: 0.65rem;
    }
    
    .list-price-value {
        font-size: 0.75rem;
    }
    
    .list-total-value {
        font-size: 0.8rem;
    }
    
    .list-header {
        grid-template-columns: 70px 1fr 65px 75px;
        gap: 6px;
        padding: 6px 0px 6px 8px;
        font-size: 0.65rem;
        max-width: calc(100vw - 20px);
    }

    .product-card {
        height: 200px; /* Mantém altura mesmo em telas pequenas */
        border-radius: 16px;
        border-width: 2px;
        max-width: calc(100vw - 20px); /* Largura ainda mais restrita */
    }

    .product-image {
        width: 45%; /* Mantém proporção */
        border-radius: 16px 0 0 16px;
    }

    .product-info {
        width: 55%; /* Mantém proporção */
        padding: 12px 14px;
    }

    .product-name {
        font-size: 0.85rem;
        line-height: 1.1;
        max-height: none;
        margin-bottom: 4px;
        margin-top: -4px;
        overflow: visible;
        display: block;
    }

    .product-code {
        font-size: 0.7rem;
        margin-bottom: 3px;
    }

    .info-item {
        font-size: 0.65rem;
        padding: 1px 0;
    }

    .info-item i {
        font-size: 0.65rem;
        width: 10px;
    }

    .info-label {
        font-size: 0.6rem;
    }

    .unit-price-value,
    .package-price-value {
        font-size: 0.75rem;
    }

    .product-category-badge {
        font-size: 0.55rem;
        padding: 1px 4px;
    }
}

/* Modal Scrollbar Styles */
.modal-details::-webkit-scrollbar {
    width: 6px;
}

.modal-details::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.modal-details::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.modal-details::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Firefox scrollbar */
.modal-details {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
}

/* ========================================
   MODAL STYLES
   ======================================== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 243, 235, 0.95) 0%, rgba(240, 238, 230, 0.95) 50%, rgba(235, 233, 225, 0.95) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Container */
.modal-container {
    background: linear-gradient(135deg, rgba(245, 243, 235, 0.98) 0%, rgba(240, 238, 230, 0.98) 50%, rgba(235, 233, 225, 0.98) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    max-width: 1200px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 20px rgba(139, 115, 85, 0.1);
    border: 2px solid #FF6B35;
    overflow: visible;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 138, 101, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 191, 255, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 248, 220, 0.05) 100%);
    border-radius: 20px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
    filter: blur(1px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 13px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Modal Content */
.modal-content {
    display: flex;
    height: auto;
    min-height: 500px;
    max-height: 80vh;
    position: relative;
    z-index: 2;
}

/* Modal Media Section */
.modal-media {
    flex: 1;
    background: #000;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Media Gallery */
.media-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main-media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.main-media video,
.main-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-media video {
    background: #000;
}

/* Media Thumbnails */
.media-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.8);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.media-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.media-thumbnails::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.media-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item.active {
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.thumbnail-item:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.thumbnail-item img,
.thumbnail-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item.video::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    text-shadow: 0 0 4px rgba(0,0,0,0.8);
}

/* Media Navigation */
.media-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.media-nav-btn {
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    opacity: 0.8;
}

.media-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    opacity: 1;
    transform: scale(1.1);
}

.media-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.media-nav-btn.prev-media {
    left: 20px;
}

.media-nav-btn.next-media {
    right: 20px;
}

/* Modal Details Section */
.modal-details {
    flex: 0 0 400px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(245, 243, 235, 0.9) 0%, rgba(240, 238, 230, 0.9) 50%, rgba(235, 233, 225, 0.9) 100%);
    border-radius: 0 20px 20px 0;
    overflow-y: auto;
}

/* Modal Header */
.modal-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-product-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4a4a4a;
    margin-bottom: 10px;
    line-height: 1.2;
}

.modal-product-code {
    font-size: 1rem;
    color: #FF6B35;
    font-weight: 500;
    background: rgba(255, 107, 53, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* Modal Info Grid */
.modal-info-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.modal-brand,
.modal-category,
.modal-package,
.modal-description {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(250, 248, 240, 0.6);
    border-radius: 12px;
    border-left: 4px solid #FF6B35;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.1);
}

.modal-brand i,
.modal-category i,
.modal-package i,
.modal-description i {
    color: #FF6B35;
    font-size: 1.1rem;
    margin-top: 2px;
    width: 20px;
    flex-shrink: 0;
}

.modal-brand span,
.modal-category span,
.modal-package span {
    font-size: 1rem;
    color: #8b7355;
}

.modal-brand strong,
.modal-category strong,
.modal-package strong {
    color: #4a4a4a;
    font-weight: 700;
}

.modal-description-value {
    font-size: 1rem;
    color: #8b7355;
    line-height: 1.5;
}

/* Modal Pricing */
.modal-pricing {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(139, 115, 85, 0.08) 100%);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.25);
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.1);
}

.modal-unit-price,
.modal-package-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 12px 0;
}

.modal-package-price {
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 107, 53, 0.25);
}

.modal-unit-price i,
.modal-package-price i {
    color: #FF6B35;
    font-size: 1.1rem;
    margin-right: 8px;
}

.modal-unit-price span,
.modal-package-price span {
    font-size: 1rem;
    color: #8b7355;
    display: flex;
    align-items: center;
}

.modal-unit-price strong {
    color: #4a4a4a;
    font-weight: 700;
    font-size: 1.2rem;
}

.modal-package-price strong {
    color: #FF6B35;
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ========================================
   MODAL RESPONSIVE STYLES
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .modal-container {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .modal-content {
        flex-direction: column;
        height: auto;
        max-height: 85vh;
    }
    
    .modal-media {
        flex: none;
        height: 50vh;
        border-radius: 20px 20px 0 0;
    }
    
    .main-media video,
    .main-media img {
        border-radius: 20px 20px 0 0;
    }
    
    .media-thumbnails {
        padding: 8px;
        gap: 6px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 45px;
    }
    
    .media-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .modal-details {
        flex: none;
        max-height: 35vh;
        overflow-y: auto;
        border-radius: 0 0 20px 20px;
        padding: 20px;
    }
    
    .modal-product-name {
        font-size: 1.5rem;
    }
    
    .modal-info-grid {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .modal-brand,
    .modal-category,
    .modal-package,
    .modal-description {
        padding: 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        align-items: stretch;
    }
    
    .modal-container {
        max-width: 100vw;
        max-height: 100vh;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        transform: scale(1);
        border: none;
    }
    
    .modal-overlay.active .modal-container {
        transform: scale(1);
    }
    
    .modal-content {
        flex-direction: column;
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }
    
    .modal-media {
        height: 50vh;
        border-radius: 0;
    }
    
    .main-media video,
    .main-media img {
        border-radius: 0;
    }
    
    .media-thumbnails {
        padding: 6px;
        gap: 4px;
    }
    
    .thumbnail-item {
        width: 50px;
        height: 38px;
    }
    
    .media-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .modal-details {
        padding: 15px;
        border-radius: 0;
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
    }
    
    .modal-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .modal-product-name {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .modal-product-code {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .modal-info-grid {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .modal-brand,
    .modal-category,
    .modal-package,
    .modal-description {
        padding: 10px;
        gap: 10px;
    }
    
    .modal-brand i,
    .modal-category i,
    .modal-package i,
    .modal-description i {
        font-size: 1rem;
        width: 18px;
    }
    
    .modal-brand span,
    .modal-category span,
    .modal-package span {
        font-size: 0.9rem;
    }
    
    .modal-description-value {
        font-size: 0.9rem;
    }
    
    .modal-pricing {
        padding: 15px;
    }
    
    .modal-unit-price,
    .modal-package-price {
        margin-bottom: 12px;
        padding: 10px 0;
    }
    
    .modal-package-price {
        padding-top: 12px;
    }
    
    .modal-unit-price span,
    .modal-package-price span {
        font-size: 0.9rem;
    }
    
    .modal-unit-price strong {
        font-size: 1.1rem;
    }
    
    .modal-package-price strong {
        font-size: 1.2rem;
    }
}

/* ========================================
   ZOOM OVERLAY STYLES
   ======================================== */

/* Zoom Overlay */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-overlay.active {
    display: flex;
    opacity: 1;
}

/* Zoom Container */
.zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Zoom Close Button */
.zoom-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    z-index: 20001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20001;
}

.zoom-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.zoom-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Zoom Image Container */
.zoom-image-container {
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: grab;
    position: relative;
    touch-action: none; /* permite pinch/drag suave em mobile */
}

.zoom-image-container.dragging {
    cursor: grabbing;
}

.zoom-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.06s ease-out; /* suavização mais rápida */
    will-change: transform; /* otimiza performance */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Zoom Navigation */
.zoom-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
    z-index: 20001;
}

.zoom-nav-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
}

.zoom-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.zoom-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Zoom Counter */
.zoom-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    z-index: 20001;
}

/* ========================================
   ZOOM RESPONSIVE STYLES
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .zoom-close {
        width: 45px;
        height: 45px;
        font-size: 18px;
        top: 15px;
        right: 15px;
    }
    
    .zoom-controls {
        top: 15px;
        left: 15px;
        gap: 8px;
    }
    
    .zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .zoom-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .zoom-navigation {
        padding: 0 20px;
    }
    
    .zoom-counter {
        bottom: 20px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .zoom-close {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: 10px;
        right: 10px;
    }
    
    .zoom-controls {
        top: 10px;
        left: 10px;
        gap: 6px;
    }
    
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .zoom-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .zoom-navigation {
        padding: 0 15px;
    }
    
    .zoom-counter {
        bottom: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .zoom-image-container {
        width: 95%;
        height: 95%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .zoom-close {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .zoom-btn {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
    
    .zoom-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .zoom-navigation {
        padding: 0 10px;
    }
}

/* ========================================
   LIST VIEW RESPONSIVE STYLES
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .categories-content {
        padding: 0 30px;
        gap: 15px;
    }
    
    .view-btn {
        width: 50px;
        height: 40px;
        font-size: 18px;
    }
    
    .list-header,
    .list-item {
        grid-template-columns: 130px 1fr 100px 80px 100px 100px;
        gap: 10px;
        padding: 12px 0px 12px 15px;
    }
    
    .list-header {
        font-size: 0.8rem;
    }
    
    .list-item-image {
        width: 100%;
        height: 92px;
        border-radius: 12px 0 0 12px;
        box-shadow: 0 2px 8px rgba(139, 115, 85, 0.12);
        border: none;
        margin: -12px 0 -12px -15px;
        padding: 0;
        overflow: hidden;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .list-item-image img {
        border-radius: 12px 0 0 12px;
        object-position: center;
    }
    
    .list-item-name {
        font-size: 0.8rem;
    }
    
    .list-item-code,
    .list-item-brand {
        font-size: 0.7rem;
    }
    
    .list-item-description {
        font-size: 0.65rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .list-category-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
    
    .list-package-qty,
    .list-price-value {
        font-size: 0.8rem;
    }
    
    .list-total-value {
        font-size: 0.9rem;
    }
    
    .list-package-label,
    .list-price-label {
        font-size: 0.6rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .categories-content {
        flex-direction: column;
        gap: 10px;
        padding: 0 25px;
    }
    
    .view-toggle {
        order: -1;
        align-self: flex-end;
    }
    
    .view-btn {
        width: 45px;
        height: 36px;
        font-size: 16px;
    }
    
    .list-header,
    .list-item {
        grid-template-columns: 90px 1fr 80px 70px 90px;
        gap: 8px;
        padding: 10px 0px 10px 12px;
    }
    
    .list-col-package,
    .list-item-package {
        display: none;
    }
    
    .list-header {
        font-size: 0.75rem;
    }
    
    .list-item-image {
        width: 100%;
        height: 70px;
        border-radius: 12px 0 0 12px;
        box-shadow: 0 2px 6px rgba(139, 115, 85, 0.1);
        border: none;
        margin: -10px 0 -10px -12px;
        padding: 0;
        overflow: hidden;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .list-item-image img {
        border-radius: 12px 0 0 12px;
        object-position: center;
    }
    
    .list-item-info {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 2px;
        min-width: 0;
        padding-top: 0; /* Remove padding para alinhar com o topo dos preços */
        align-self: flex-start; /* Força alinhamento ao topo */
    }
    
    .list-item-name {
        font-size: 0.75rem;
    }
    
    .list-item-code {
        font-size: 0.65rem;
    }
    
    .list-item-brand,
    .list-item-description {
        display: none;
    }
    
    .list-category-badge {
        font-size: 0.55rem;
        padding: 2px 4px;
    }
    
    .list-package-qty,
    .list-price-value {
        font-size: 0.75rem;
    }
    
    .list-total-value {
        font-size: 0.85rem;
    }
    
    .list-package-label,
    .list-price-label {
        font-size: 0.55rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .categories-content {
        padding: 0 25px;
    }
    
    .categories-bar {
        padding: 10px 20px;
        /* Scroll fluido similar ao iPhone */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        /* Melhora a performance do scroll */
        will-change: scroll-position;
        transform: translateZ(0);
        /* Scroll inercial suave */
        scroll-padding: 0 20px;
    }

    .categories-content::before {
        width: 15px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
        left: 0;
    }

    .categories-content::after {
        width: 15px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
        right: 0;
    }
    
    .aztex-logo {
        max-height: 60px;
        width: auto;
        margin-bottom: 0;
        display: block;
        margin-left: auto;
        margin-right: auto;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }

    .view-toggle {
        position: absolute;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex-shrink: 0;
        background: transparent;
        padding: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    
    
    .list-header,
    .list-item {
        grid-template-columns: 75px 1fr 60px 80px;
        gap: 6px;
        padding: 8px 0px 8px 10px;
    }
    
    .list-col-category,
    .list-item-category {
        display: none;
    }
    
    .list-header {
        font-size: 0.7rem;
    }
    
    .list-item-image {
        width: 100%;
        height: 58px;
        border-radius: 12px 0 0 12px;
        box-shadow: 0 2px 6px rgba(139, 115, 85, 0.1);
        border: none;
        margin: -8px 0 -8px -10px;
        padding: 0;
        overflow: hidden;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .list-item-image img {
        border-radius: 12px 0 0 12px;
        object-position: center;
    }
    
    .list-item-name {
        font-size: 0.7rem;
    }
    
    .list-item-code {
        font-size: 0.6rem;
    }
    
    .list-price-value,
    .list-total-value {
        font-size: 0.7rem;
    }
    
    .list-price-label {
        font-size: 0.5rem;
    }
    
    .list-item:hover {
        transform: none;
        border-left: none;
        padding-left: 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 0;
        align-items: stretch;
    }
    
    .modal-container {
        border-radius: 0;
        max-width: 100vw;
        max-height: 100vh;
        width: 100vw;
        height: 100vh;
        transform: scale(1);
        border: none;
    }
    
    .modal-overlay.active .modal-container {
        transform: scale(1);
    }
    
    .modal-content {
        flex-direction: column;
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }
    
    .modal-media {
        height: 50vh;
        border-radius: 0;
        order: 1;
    }
    
    .main-media {
        height: 100%;
    }
    
    .main-media video,
    .main-media img {
        border-radius: 0;
        object-fit: contain;
        max-height: 100%;
        width: 100%;
    }
    
    .media-thumbnails {
        padding: 6px;
        gap: 4px;
        height: 50px;
    }
    
    .thumbnail-item {
        width: 45px;
        height: 35px;
        border-radius: 6px;
    }
    
    .media-nav-btn {
        width: 29.75px;
        height: 29.75px;
        font-size: 10.2px;
    }
    
    .media-nav-btn.prev-media {
        left: 10px;
    }
    
    .media-nav-btn.next-media {
        right: 10px;
    }
    
    .modal-details {
        padding: 15px;
        border-radius: 0;
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        order: 2;
        flex: 1;
    }
    
    .modal-product-name {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .modal-product-code {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .modal-info-grid {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .modal-brand,
    .modal-category,
    .modal-package,
    .modal-description {
        padding: 10px;
        gap: 8px;
    }
    
    .modal-brand i,
    .modal-category i,
    .modal-package i,
    .modal-description i {
        font-size: 14px;
    }
    
    .modal-brand-label,
    .modal-category-label,
    .modal-package-label,
    .modal-description-label {
        font-size: 0.8rem;
    }
    
    .modal-brand-value,
    .modal-category-value,
    .modal-package-value,
    .modal-description-value {
        font-size: 0.85rem;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 29.75px;
        height: 29.75px;
        font-size: 11.9px;
    }
}

/* Botão Voltar ao Topo - Estilo WhatsApp */
.back-to-top-btn {
    position: fixed;
    bottom: 14px;
    right: 14px;
    width: 35px;
    height: 35px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow), 0 0 14px rgba(255,107,53,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(14px);
}

.back-to-top-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 50%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.back-to-top-btn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover), 0 0 30px rgba(255,107,53,0.4);
}

.back-to-top-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow);
}

/* Botão Voltar à Primeira Página */
.back-to-first-page-btn {
    position: fixed;
    bottom: 14px;
    left: 14px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--text-secondary);
    padding: 8px 14px;
    cursor: pointer;
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(14px);
}

.back-to-first-page-btn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-first-page-btn:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.back-to-first-page-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow);
}

.back-to-first-page-btn i {
    font-size: 16px;
}

/* Responsividade para Mobile */
@media (max-width: 480px) {
    .back-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .back-to-first-page-btn {
        bottom: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    .back-to-first-page-btn span {
        display: none;
    }
    
    .back-to-first-page-btn i {
        font-size: 14px;
    }
}

/* Responsividade para Tablet */
@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 18px;
        right: 18px;
        width: 48px;
        height: 48px;
        font-size: 17px;
    }
    
    .back-to-first-page-btn {
        bottom: 18px;
        left: 18px;
        padding: 11px 18px;
        font-size: 13px;
    }
}

/* ========================================
   PAGINAÇÃO COM NÚMEROS CLICÁVEIS
   ======================================== */

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 15px;
}

.page-number-btn {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number-btn:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.page-number-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.page-ellipsis {
    color: var(--text-muted);
    padding: 8px 4px;
    font-size: 14px;
    font-weight: 500;
}

/* Responsividade para paginação */
@media (max-width: 768px) {
    .page-numbers {
        gap: 2px;
        margin: 0 10px;
    }
    
    .page-number-btn {
        padding: 6px 8px;
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .page-ellipsis {
        padding: 6px 2px;
        font-size: 12px;
    }
    
    /* Esconder páginas 4,5,6,7 no mobile */
    .page-number-btn:nth-child(4),
    .page-number-btn:nth-child(5),
    .page-number-btn:nth-child(6),
    .page-number-btn:nth-child(7) {
        display: none;
    }
    
    /* Esconder informação "1 de 72" no mobile */
    .page-info {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-numbers {
        gap: 1px;
        margin: 0 5px;
    }
    
    .page-number-btn {
        padding: 4px 6px;
        min-width: 28px;
        height: 28px;
        font-size: 11px;
    }
}


/* ========================================
   GALERIA DE IMAGENS NOS CARDS
   ======================================== */

.image-gallery-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.7) 0%,
        transparent 20%,
        transparent 80%,
        rgba(0,0,0,0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-image:hover .image-gallery-controls {
    opacity: 1;
    pointer-events: all;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
}

.gallery-btn:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

.gallery-btn i {
    font-size: 14px;
    color: #333;
}

.gallery-btn:hover i {
    color: white;
}

.image-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.image-counter .current-image {
    color: var(--accent);
    font-weight: 600;
}

/* Responsividade para galeria */
@media (max-width: 768px) {
    .gallery-btn {
        width: 30px;
        height: 30px;
    }
    
    .gallery-btn i {
        font-size: 12px;
    }
    
    .image-counter {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Animação suave para troca de imagens */
.product-image img {
    transition: opacity 0.3s ease;
}

/* Indicador visual quando há múltiplas imagens */
.product-image[data-product-id]::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image[data-product-id]::after {
    opacity: 1;
}

/* ========================================
   MOBILE CATEGORY SELECTOR
   ======================================== */

/* Esconder categorias desktop no mobile */
@media (max-width: 768px) {
    .desktop-categories {
        display: none !important;
    }
    
    .mobile-categories {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        padding: 0 20px;
        margin-bottom: 20px;
    }
    
    .view-toggle {
        display: none !important;
    }
}

/* Mostrar categorias desktop em telas maiores */
@media (min-width: 769px) {
    .mobile-categories {
        display: none !important;
    }
    
    .desktop-categories {
        display: flex;
    }
}

/* Mobile Category Items */
.mobile-category-item {
    padding: 8px 0;
    margin: 0 8px;
    font-size: 0.8rem;
    font-weight: 700;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    text-align: center;
}

.mobile-category-item:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.mobile-category-item.active {
    background: transparent;
    border: none;
    color: white;
    position: relative;
    padding-bottom: 8px;
}

.mobile-category-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Mobile Category Button */
.mobile-category-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 700;
    background: transparent;
    border: none;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}

.mobile-category-btn:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.mobile-category-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.mobile-category-btn i {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.mobile-category-btn.active i {
    transform: rotate(180deg);
}

/* Mobile View Toggle */
.mobile-view-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: -4px;
    align-self: center;
}

.mobile-view-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.mobile-view-btn:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.mobile-view-btn.active {
    background: transparent;
    color: var(--accent);
}

/* Category Dropdown Overlay */
.category-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.category-dropdown-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Category Dropdown Container */
.category-dropdown-container {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.category-dropdown-overlay.show .category-dropdown-container {
    transform: scale(1) translateY(0);
}

/* Category Dropdown Header */
.category-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #0c1220, #0e1b2c);
    color: white;
}

.category-dropdown-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.category-dropdown-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-dropdown-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Category Dropdown Content */
.category-dropdown-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.category-dropdown-item {
    padding: 12px 16px;
    margin: 4px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    border: 2px solid transparent;
    background: var(--glass);
}

.category-dropdown-item:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.category-dropdown-item.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Responsividade para o dropdown */
@media (max-width: 480px) {
    .category-dropdown-container {
        margin: 10px;
        max-height: 85vh;
    }
    
    .category-dropdown-header {
        padding: 15px;
    }
    
    .category-dropdown-header h3 {
        font-size: 1.1rem;
    }
    
    .category-dropdown-content {
        padding: 8px;
    }
    
    .category-dropdown-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* ===== ESTILOS OTIMIZADOS - MOVIDOS DO HTML ===== */

/* Video background otimizado */
.bg-video-optimized {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hero fallback otimizado */
.hero-fallback-optimized {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #041014 0%, #071018 25%, #0a1a20 50%, #071018 75%, #041014 100%);
    z-index: -1;
}

/* Botão CTA otimizado */
.btn-cta-optimized {
    display: inline-block;
    white-space: nowrap;
    min-width: 280px;
    text-align: center;
}

/* Versão footer otimizada */
.version-text {
    opacity: 0.7;
}

/* Link de vídeo otimizado */
.video-fallback-link {
    color: lightblue;
}

/* Animação de produtos otimizada */
.product-card-animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* ===== OTIMIZAÇÕES DE PERFORMANCE ===== */

/* Otimização de rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Otimização de imagens */
img {
    max-width: 100%;
    height: auto;
    will-change: transform;
}

/* Otimização de animações */
.product-card-animated,
.bg-video-optimized {
    will-change: transform, opacity;
}

/* Otimização de scroll */
.hero,
.products-section {
    contain: layout style paint;
}

/* Otimização de fontes */
/* Inter font já está sendo carregada via Google Fonts */

/* Otimização de transições */
.btn-primary,
.nav-btn,
.gallery-image {
    transition: transform 0.2s ease, opacity 0.2s ease;
}