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

:root {
    --primary-red: #c41e3a;
    --dark-red: #8b0000;
    --metallic-black: #1a1a1a;
    --dark-black: #0a0a0a;
    --metallic-gray: #2d2d2d;
    --light-gray: #3a3a3a;
    --text-light: #e0e0e0;
    --text-white: #ffffff;
    --shadow-red: rgba(196, 30, 58, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --telegram-blue: #0088cc;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-black) 0%, var(--metallic-black) 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--background-banner, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
    transition: opacity 0.5s ease;
}

body.has-banner::before {
    opacity: 0.15;
}

/* Screen Management */
.screen {
    display: none;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.screen.active {
    display: block;
}

/* Login Screen */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.login-box {
    background: linear-gradient(145deg, var(--metallic-black) 0%, var(--dark-black) 100%);
    border: 2px solid var(--primary-red);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 40px var(--shadow-dark), 0 0 30px var(--shadow-red);
    backdrop-filter: blur(10px);
    animation: slideIn 0.6s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px var(--shadow-dark), 0 0 40px var(--shadow-red);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    min-height: 80px;
}

.login-banner {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-dark), 0 0 30px var(--shadow-red);
    animation: bannerPulse 2s ease-in-out infinite, bannerFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px var(--shadow-red));
    transition: all 0.3s ease;
}

.login-banner:hover {
    animation: bannerPulse 1s ease-in-out infinite, bannerFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 25px var(--shadow-red)) brightness(1.1);
}

@keyframes bannerPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px var(--shadow-red)) brightness(1);
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 30px var(--shadow-red)) brightness(1.15);
    }
}

@keyframes bannerFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(1deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

.login-title {
    font-size: 2.5em;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--shadow-red);
    font-weight: 700;
    letter-spacing: 2px;
}

.login-subtitle {
    text-align: center;
    color: var(--primary-red);
    margin-bottom: 30px;
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 20px var(--shadow-red);
    text-transform: uppercase;
    opacity: 1;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95em;
}

.input-group input,
.input-group select {
    background: var(--metallic-gray);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-white);
    font-size: 1em;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 15px var(--shadow-red);
    background: var(--light-gray);
}

.error-message {
    color: var(--primary-red);
    font-size: 0.85em;
    min-height: 20px;
    display: block;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--text-white);
    box-shadow: 0 5px 15px var(--shadow-red);
}

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

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-red);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--metallic-gray);
    color: var(--text-light);
    border: 2px solid var(--light-gray);
}

.btn-secondary:hover {
    background: var(--light-gray);
    border-color: var(--primary-red);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--metallic-black) 0%, var(--dark-black) 100%);
    border-bottom: 3px solid var(--primary-red);
    padding: 20px 0;
    box-shadow: 0 5px 20px var(--shadow-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.header-logo-img {
    max-height: 60px;
    max-width: 200px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--shadow-red));
    transition: all 0.3s ease;
    display: none; /* Oculto por padrão, será mostrado via JS se existir */
}

.header-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--shadow-red));
}

.header-banner-img {
    max-height: 100px;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 15px var(--shadow-red));
    transition: all 0.4s ease;
    display: block;
    animation: bannerFloat 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.5);
}

.header-banner-img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px var(--shadow-red));
    box-shadow: 0 0 30px rgba(196, 30, 58, 0.8);
    animation-play-state: paused;
}

@keyframes bannerFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 15px var(--shadow-red));
    }
    50% {
        transform: translateY(-10px) scale(1.05);
        filter: drop-shadow(0 0 20px var(--shadow-red));
    }
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2em;
    filter: drop-shadow(0 0 10px var(--shadow-red));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.logo-text h1 {
    color: var(--primary-red);
    font-size: 1.8em;
    text-shadow: 0 0 15px var(--shadow-red);
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.logo-section h1 {
    color: var(--primary-red);
    font-size: 1.8em;
    text-shadow: 0 0 15px var(--shadow-red);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-btn {
    background: transparent;
    border: 2px solid var(--light-gray);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-icon {
    font-size: 1.2em;
}

.nav-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--text-white);
    box-shadow: 0 5px 15px var(--shadow-red);
}

/* Botão Flutuante do Telegram */
.telegram-float-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: floatPulse 2s ease-in-out infinite;
}

@keyframes floatPulse {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.telegram-float-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc 0%, #006ba3 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4), 0 0 30px rgba(0, 136, 204, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.telegram-float-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.telegram-float-link:hover::before {
    width: 100%;
    height: 100%;
}

.telegram-float-link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 136, 204, 0.6), 0 0 40px rgba(0, 136, 204, 0.4);
}

.telegram-float-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.telegram-float-link:hover .telegram-float-icon {
    transform: scale(1.1) rotate(5deg);
}

.telegram-float-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-white);
    font-size: 1.8em;
    position: relative;
    z-index: 1;
}

.telegram-icon {
    font-size: 1.2em;
}

/* Responsive - Botão Flutuante */
@media (max-width: 768px) {
    .telegram-float-button {
        bottom: 15px;
        right: 15px;
    }
    
    .telegram-float-link {
        width: 55px;
        height: 55px;
    }
    
    .telegram-float-icon {
        width: 35px;
        height: 35px;
    }
}

.telegram-fallback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--telegram-blue);
    border: 2px solid var(--telegram-blue);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.telegram-fallback:hover {
    background: #006ba3;
    border-color: #006ba3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.telegram-icon {
    font-size: 1.2em;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
    position: relative;
    z-index: 2;
}

/* Views */
.view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view.active {
    display: block;
}

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

/* Banner Section */
.banner-section {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.catalog-banner-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-dark);
}

/* Filters Section */
.filters-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 40px;
    box-shadow: none;
}

.filters-section h2 {
    display: none;
}

.filters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: stretch;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.filter-group label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label::before {
    content: '🔍';
    font-size: 1.2em;
}

.filter-group:nth-child(2) label::before {
    content: '📍';
}

.filter-group:last-child label::before {
    content: '🔄';
}

.filter-group select {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(20, 20, 20, 0.3) 100%);
    border: 2px solid rgba(196, 30, 58, 0.3);
    border-radius: 12px;
    padding: 16px 45px 16px 20px;
    color: var(--text-white);
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23c41e3a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    outline: none;
}

.filter-group select:hover {
    border-color: var(--primary-red);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.2) 0%, rgba(20, 20, 20, 0.4) 100%);
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4);
    transform: translateY(-2px);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.2), 0 4px 16px rgba(196, 30, 58, 0.5);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.25) 0%, rgba(20, 20, 20, 0.5) 100%);
    transform: translateY(-2px);
}

.filter-group select option {
    background: var(--dark-black);
    color: var(--text-white);
    padding: 12px;
    font-weight: 500;
}

.filter-group select option:checked {
    background: var(--primary-red);
    color: var(--text-white);
}

/* Products Grid */
.products-section h2 {
    color: var(--primary-red);
    margin-bottom: 30px;
    font-size: 1.8em;
    text-shadow: 0 0 10px var(--shadow-red);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Forçar 2 colunas no mobile - DEVE VIR ANTES DAS OUTRAS MEDIA QUERIES */
@media screen and (max-width: 768px) {
    #productsGrid.products-grid,
    div#productsGrid.products-grid,
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        column-gap: 12px !important;
        row-gap: 12px !important;
        width: 100% !important;
    }
    
    #productsGrid .product-card,
    .products-grid .product-card {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

.product-card {
    background: linear-gradient(145deg, var(--metallic-black) 0%, var(--dark-black) 100%);
    border: 2px solid var(--light-gray);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.5s ease;
}

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

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.1), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-red);
    box-shadow: 0 15px 40px var(--shadow-dark), 0 0 30px var(--shadow-red);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--light-gray);
    transition: transform 0.3s ease;
}

.image-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-red);
    color: var(--text-white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    box-shadow: 0 2px 10px var(--shadow-dark);
}

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

.product-name {
    color: var(--primary-red);
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--shadow-red);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.product-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.9em;
}

.product-info-item strong {
    color: var(--primary-red);
    min-width: 100px;
}

.product-description {
    color: var(--text-light);
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 10px;
    line-height: 1.5;
}

.product-price {
    color: var(--primary-red);
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 15px;
    text-align: right;
}

.btn-view-product {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: var(--primary-red);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-product:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-red);
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.2em;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding: 0 20px;
    }
    
    .logo-section {
        justify-content: center;
        width: 100%;
    }
    
    .logo-wrapper {
        justify-content: center;
        width: 100%;
    }
    
    .header-banner-img {
        max-height: 70px;
        max-width: 100%;
        border-radius: 50%;
        animation: bannerFloatMobile 3s ease-in-out infinite;
    }
    
    @keyframes bannerFloatMobile {
        0%, 100% {
            transform: translateY(0) scale(1);
        }
        50% {
            transform: translateY(-8px) scale(1.03);
        }
    }
    
    .logo-wrapper img {
        max-height: 50px;
        max-width: 150px;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-btn {
        padding: 8px 15px;
        font-size: 0.85em;
    }

    .container {
        padding: 20px 15px;
    }
    
    .banner-section {
        margin-bottom: 20px;
    }
    
    .catalog-banner-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
    }
    
    .filters-grid {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        min-width: 100%;
        max-width: 100%;
    }
    
    .filters-section {
        margin-bottom: 25px;
    }
    
    .filter-group select {
        padding: 14px 40px 14px 18px;
        font-size: 0.95em;
    }
    
    .btn-secondary {
        padding: 14px 25px;
        font-size: 0.85em;
    }
    
    .products-section {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .products-section h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
        padding: 0 5px;
    }

    #productsGrid.products-grid,
    div#productsGrid.products-grid,
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        column-gap: 12px !important;
        row-gap: 12px !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    .product-card {
        padding: 12px !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
    }
    
    .product-image-wrapper {
        height: 140px !important;
        margin-bottom: 10px;
    }
    
    .product-image {
        height: 100%;
    }
    
    .product-name {
        font-size: 1em;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 1.2em;
    }
    
    .product-info {
        gap: 5px;
    }
    
    .btn-view-product {
        padding: 10px 15px;
        font-size: 0.9em;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 8px !important;
    }
    
    .banner-section {
        margin-bottom: 15px;
    }
    
    .catalog-banner-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 6px;
    }
    
    .products-section {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    #productsGrid.products-grid,
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        column-gap: 8px !important;
        row-gap: 8px !important;
        padding: 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .product-card {
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .product-image-wrapper {
        height: 120px !important;
    }
    
    .product-image {
        height: 100%;
    }
    
    .product-name {
        font-size: 0.9em;
    }
    
    .product-price {
        font-size: 1.1em;
    }
    
    .btn-view-product {
        padding: 8px 12px;
        font-size: 0.85em;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--metallic-black);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-red);
}

/* Modal de Produto */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(145deg, var(--metallic-black) 0%, var(--dark-black) 100%);
    border: 2px solid var(--primary-red);
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px var(--shadow-dark), 0 0 30px var(--shadow-red);
    animation: slideUp 0.4s ease;
    margin: 20px;
}

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

.modal-large {
    max-width: 1200px;
}

@media (max-width: 768px) {
    .modal-large {
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .modal-large {
        max-width: 100% !important;
        width: 100% !important;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid var(--light-gray);
    position: sticky;
    top: 0;
    background: linear-gradient(145deg, var(--metallic-black) 0%, var(--dark-black) 100%);
    z-index: 5;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    color: var(--primary-red);
    font-size: 1.5em;
    margin: 0;
    font-weight: 700;
}

.modal-close {
    background: rgba(196, 30, 58, 0.1);
    border: 2px solid var(--primary-red);
    color: var(--text-light);
    font-size: 1.8em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: var(--primary-red);
    color: var(--text-white);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px var(--shadow-red);
    border-color: var(--dark-red);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.modal-body {
    padding: 20px;
}

/* Galeria de Imagens */
.product-gallery {
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.product-gallery > * {
    width: 100%;
    box-sizing: border-box;
}

.gallery-main {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--light-gray);
    max-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-black);
}

.gallery-main img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    background: var(--dark-black);
    display: block;
}

.gallery-thumbs {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: auto !important;
    gap: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gallery-thumbs img {
    width: 100% !important;
    height: 120px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    object-fit: cover !important;
    border-radius: 8px;
    border: 2px solid var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    display: block !important;
    box-sizing: border-box !important;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    border-color: var(--primary-red);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--shadow-red);
}

/* Detalhes do Produto */
.product-details {
    margin-top: 20px;
}

.product-info-full {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--dark-black);
    border-radius: 8px;
    border: 2px solid var(--light-gray);
}

.info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
}

.info-row strong {
    color: var(--primary-red);
    min-width: 120px;
}

/* Informação de Frete */
.product-frete-info {
    margin-bottom: 20px;
    padding: 12px 20px;
    background: var(--metallic-gray);
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.frete-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 1em;
}

.frete-label strong {
    color: var(--text-light);
    font-size: 1em;
}

.frete-value {
    color: var(--text-white);
    font-weight: 600;
    font-size: 1.1em;
}

.product-description-full {
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(139, 0, 0, 0.1) 100%);
    border-radius: 8px;
    border: 2px solid var(--primary-red);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    color: var(--text-light);
    font-size: 0.95em;
    box-shadow: 0 0 15px var(--shadow-red);
    max-height: 300px;
    overflow-y: auto;
}

/* Botão de Comprar */
.product-buy-section {
    margin: 25px 0;
    text-align: center;
}

.btn-buy-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px var(--shadow-red);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.btn-buy-telegram:hover::before {
    width: 300px;
    height: 300px;
}

.btn-buy-telegram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-red);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-buy-telegram:active {
    transform: translateY(-1px);
}

/* Responsive - Botão de Comprar */
@media (max-width: 768px) {
    .product-frete-info {
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .frete-label {
        font-size: 0.95em;
    }

    .frete-value {
        font-size: 1em;
    }

    .btn-buy-telegram {
        width: 100%;
        padding: 16px 30px;
        font-size: 1.1em;
        gap: 0;
    }

    .product-buy-section {
        margin: 20px 0;
    }
}

/* Preços e Quantidade */
.product-pricing {
    padding: 20px;
    background: var(--dark-black);
    border-radius: 10px;
    border: 2px solid var(--light-gray);
}

.product-pricing h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.product-pricing select {
    width: 100%;
    padding: 12px;
    background: var(--metallic-gray);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1em;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.product-pricing select:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 15px var(--shadow-red);
}

.price-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    color: var(--text-light);
    border-bottom: 1px solid var(--light-gray);
}

.price-total {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--metallic-gray);
    border-radius: 8px;
    margin-top: 10px;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.price-total span:last-child {
    font-size: 1.2em;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal.active {
        padding: 10px;
        align-items: flex-start;
    }
    
    .modal-content {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 95vh;
        margin: 0;
        padding: 10px !important;
        border-radius: 10px;
        box-sizing: border-box;
    }
    
    #productModalContent {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .modal-header {
        padding: 12px 15px;
        border-radius: 10px 10px 0 0;
    }
    
    .modal-header h2 {
        font-size: 1.2em;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.5em;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .gallery-main {
        max-height: 250px;
    }
    
    .gallery-main img {
        max-height: 250px;
    }
    
    .product-gallery {
        width: 100% !important;
        margin-bottom: 12px !important;
        box-sizing: border-box !important;
    }
    
    .gallery-thumbs {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: auto !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .gallery-thumbs img {
        width: 100% !important;
        height: 100px !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
    }
    
    .product-info-full {
        padding: 12px;
        gap: 10px;
    }
    
    .product-description-full {
        padding: 12px;
        font-size: 0.9em;
        max-height: 200px;
    }
    
    .product-frete-info {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .modal.active {
        padding: 5px;
    }
    
    .modal-content {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 98vh;
        padding: 8px !important;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    #productModalContent {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .modal-header {
        padding: 10px 12px;
    }
    
    .modal-header h2 {
        font-size: 1.1em;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .gallery-main {
        max-height: 200px;
    }
    
    .gallery-main img {
        max-height: 200px;
    }
    
    .product-gallery {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .gallery-main {
        max-height: 180px;
        width: 100% !important;
    }
    
    .gallery-main img {
        max-height: 180px;
        width: 100% !important;
    }
    
    .gallery-thumbs {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: auto !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .gallery-thumbs img {
        width: 100% !important;
        height: 80px !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
    }
    
    .product-description-full {
        max-height: 150px;
        font-size: 0.85em;
    }
}

