/* Category Tabs - Modern & Attractive Redesign */
.category-tabs {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 35px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 10px 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .category-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px;
        margin-left: 0;
        margin-right: 0;
    }

    .category-tabs.carousel-mode {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 12px;
        padding: 10px 20px;
        margin-left: -20px;
        margin-right: -20px;
        scrollbar-width: none;
    }

    .category-tabs.carousel-mode::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        font-size: 0.85rem;
    }
}

.tab-btn {
    background: var(--white);
    color: var(--black);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
}

.tab-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(230, 25, 32, 0.3);
    color: var(--primary-red);
    box-shadow: 0 8px 20px rgba(230, 25, 32, 0.12);
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff232a 0%, #c01015 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(230, 25, 32, 0.35);
}

.tab-count {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.06);
    color: #666;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.tab-btn:hover .tab-count {
    background: rgba(230, 25, 32, 0.08);
    color: var(--primary-red);
}

.tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-tag {
    background: var(--black);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    font-size: 1.1rem;
}

.product-code {
    color: var(--primary-red);
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.5px;
}

.product-card-price {
    font-size: 0.8rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.product-image-container {
    height: 200px;
    background: radial-gradient(circle at center, #ffffff 30%, #f7f7f9 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.product-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.6));
}

.product-card:hover .product-image {
    transform: scale(1.08) translateY(-2px);
    /* Efeito de zoom e elevaÃƒÂ§ÃƒÂ£o sutil */
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eee 25%, #f9f9f9 25%, #f9f9f9 50%, #eee 50%, #eee 75%, #f9f9f9 75%, #f9f9f9 100%);
    background-size: 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    z-index: 2;
}

/* Desenho CSS simulando o formato de um tank pad */
.tank-pad-shape {
    width: 100px;
    height: 140px;
    background-color: var(--dark-gray);
    clip-path: polygon(10% 0, 90% 0, 100% 20%, 80% 40%, 90% 60%, 70% 80%, 50% 100%, 30% 80%, 10% 60%, 20% 40%, 0 20%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tank-pad-shape::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 80%;
    background-color: var(--primary-red);
    clip-path: polygon(15% 0, 85% 0, 100% 25%, 75% 45%, 85% 65%, 65% 85%, 50% 100%, 35% 85%, 15% 65%, 25% 45%, 0 25%);
}

.product-actions {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
    justify-content: flex-end;
}

.quantity-control {
    display: contents;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    margin: 0 6px;
}

.btn-qty {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-qty:hover {
    background: #ddd;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 1.1rem;
}

.qty-input:focus {
    outline: none;
}

/* --- REMOVER SETAS NATIVAS DO INPUT NUMBER (FIREFOX, CHROME, SAFARI, EDGE) --- */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Size Toggle Button */
.size-toggle-btn {
    background: transparent;
    border: 2px solid #ccc;
    color: #888;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

.size-toggle-btn:hover {
    border-color: #aaa;
    color: #555;
}

.size-toggle-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(230, 25, 32, 0.3);
}

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

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: linear-gradient(180deg, #222 0%, #000 100%);
    color: var(--white);
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open,
.cart-drawer:not(.no-hover):hover {
    right: 0;
}

.cart-tab {
    position: absolute;
    left: -60px;
    top: 150px;
    width: 60px;
    height: 70px;
    background: #222;
    border-radius: 15px 0 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.3);
}

.cart-icon {
    color: var(--white);
}

.cart-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-red);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-drawer-content {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-drawer-content h3 {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    font-weight: normal;
    text-transform: none;
}

.cart-items-list {
    list-style: none;
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.cart-item-info {
    font-size: 1rem;
    color: #ddd;
}

.cart-item-info span {
    font-weight: bold;
    color: var(--white);
}

.btn-remove-item {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.btn-remove-item:hover {
    color: var(--primary-red);
}

.cart-footer {
    margin-top: auto;
}

.btn-checkout {
    width: 100%;
    font-size: 1rem;
    padding: 15px 0;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-primary:hover:not(:disabled) {
    background: var(--dark-red);
    transform: scale(1.05);
}

.btn-primary:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    background: var(--white);
    color: var(--black);
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.page-btn:hover:not(:disabled) {
    background: var(--light-gray);
    border-color: #bbb;
}

.page-btn.active {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.page-btn:disabled {
    background: #f9f9f9;
    color: #aaa;
    cursor: not-allowed;
    border-color: #eee;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-wrapper {
    margin: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90vw;
    max-height: 85vh;
    box-sizing: border-box;
    border-radius: 16px;
    background: radial-gradient(circle at center, #ffffff 40%, #e6e6eb 100%);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.lightbox.show .lightbox-wrapper {
    transform: scale(1);
}

.lightbox-content {
    max-width: 100%;
    max-height: calc(85vh - 80px);
    object-fit: contain;
    filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.3));
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: 300;
    transition: var(--transition);
    cursor: pointer;
    line-height: 1;
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
    color: var(--primary-red);
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
}

/* BotÃƒÂµes SecundÃƒÂ¡rios no Carrinho */
.btn-secondary {
    background: transparent;
    color: #b0b0b0;
    border: 1px solid #333333;
    padding: 12px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
    width: 100%;
    margin-top: 10px;
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover:not(:disabled) {
    color: var(--white);
    border-color: var(--primary-red);
    background: rgba(230, 25, 32, 0.08);
    transform: translateY(-2px);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
}

/* Cursor de ponteiro para imagem ampliÃƒÂ¡vel */
.product-image-container {
    cursor: pointer;
}

/* Controles de Quantidade na Gaveta */
.cart-item-qty-control {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    border: 1px solid #3a3a3a;
}

.cart-item-qty-btn {
    background: none;
    border: none;
    color: #bbb;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-item-qty-btn:hover {
    background: #3a3a3a;
    color: var(--white);
}

.cart-item-qty-input {
    width: 32px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--white);
    font-weight: bold;
    font-size: 0.9rem;
}

/* ModificaÃƒÂ§ÃƒÂ£o no alinhamento do item do carrinho */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #222;
}

.cart-brand-header {
    background-color: #111;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 800;
    border-left: 4px solid var(--primary-red);
    margin-top: 15px;
    list-style: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.cart-category-header {
    background-color: #1e1e1f;
    color: #a1a1aa;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    list-style: none;
    text-transform: uppercase;
    border-bottom: 1px solid #27272a;
}

.cart-item-info {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #ccc;
    margin-right: 10px;
}

.cart-item-right {
    display: flex;
    align-items: center;
}

/* Modal de PrÃƒÂ©-visualizaÃƒÂ§ÃƒÂ£o do PDF */
.preview-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-modal.show {
    display: flex;
    opacity: 1;
}

.preview-modal-content {
    background: #1a1a1a;
    border-radius: 12px;
    width: 95%;
    max-width: 850px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
}

.preview-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    background: #111;
    border-bottom: 1px solid #222;
}

.preview-modal-header h2 {
    color: var(--white);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
}

/* Contact Modal Styles */
.contact-input {
    background: #111;
    border: 1px solid #333;
    color: var(--white);
    padding: 12px 15px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.contact-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(230, 25, 32, 0.2);
}

.contact-form-group {
    margin-bottom: 15px;
}

.contact-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #a1a1aa;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.contact-modal-content {
    max-width: 450px !important;
    height: auto !important;
    max-height: 90vh;
    margin: auto;
}

.contact-modal-header {
    justify-content: space-between !important;
    flex-direction: row !important;
}

.contact-modal-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
}

.contact-modal-body {
    padding: 25px;
    overflow-y: auto;
}

.contact-modal-text {
    color: #a1a1aa;
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 25px;
}

.contact-message-group {
    margin-bottom: 25px;
}

.contact-message-input {
    resize: vertical;
    min-height: 80px;
}

.contact-send-btn {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

/* Container de Marcas (Brands) */
.brand-tabs {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 20px;
    margin-left: -20px;
    margin-right: -20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.brand-tabs::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {

    .brand-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
        padding: 10px 5px;
    }

    .brand-tabs.carousel-mode {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 20px;
        margin-left: -20px;
        margin-right: -20px;
        scrollbar-width: none;
    }

    .brand-tabs.carousel-mode::-webkit-scrollbar {
        display: none;
    }

    .brand-btn {
        font-size: 0.9rem;
    }
}

.brand-btn {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.brand-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.brand-btn.active {
    background: var(--primary-red);
    box-shadow: 0 8px 20px rgba(230, 25, 32, 0.4);
}

.preview-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-preview-action {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    font-family: var(--font-main);
}

.btn-preview-action svg {
    flex-shrink: 0;
}

.btn-preview-action.btn-pdf {
    background: var(--primary-red);
    color: var(--white);
}

.btn-preview-action.btn-pdf:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
}

.btn-preview-action.btn-whatsapp {
    background: #25d366;
    color: var(--white);
}

.btn-preview-action.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.btn-preview-action.btn-close {
    background: #333;
    color: #ccc;
    border: 1px solid #444;
}

.btn-preview-action.btn-close:hover {
    background: #444;
    color: var(--white);
}

.preview-page-container {
    flex-grow: 1;
    background: #2b2b2b;
    padding: 30px 10px;
    overflow-y: auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Folha A4 em tamanho fixo de renderizaÃƒÂ§ÃƒÂ£o */
.preview-sheet {
    background: #ffffff;
    width: 794px;
    min-height: 1122px;
    margin: 0 auto;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    color: #111111;
    font-family: 'Inter', Arial, sans-serif;
}

/* Responsividade do modal */
@media (max-width: 850px) {
    .preview-modal-content {
        width: 98%;
        height: 95vh;
    }

    .preview-modal-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        text-align: center;
    }

    .preview-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-preview-action {
        flex: 1 1 auto;
        justify-content: center;
    }

    .preview-page-container {
        /* Permite scroll horizontal da folha A4 no celular para nÃƒÂ£o quebrar a proporÃƒÂ§ÃƒÂ£o */
        overflow-x: auto;
    }

    .product-card-price {
        font-size: 0.8rem;
        padding: 2px 2px;
    }

    .product-tag {
        padding: 10px 10px;
        font-size: 1.05rem;
    }
}

/* Novos estilos para o sistema de valores no Carrinho */
.cart-item-price-detail {
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
}

.cart-item-price-detail strong {
    color: var(--primary-red);
}

.cart-total-value {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 5px;
    border-top: 1px solid #333;
    margin-top: 10px;
    font-size: 1.05rem;
    color: #ddd;
    font-weight: 500;
}

.cart-total-value strong {
    color: var(--primary-red);
    font-size: 1.25rem;
    font-weight: 900;
}

/* BotÃƒÂ£o de informaÃƒÂ§ÃƒÂµes e card flutuante de tamanhos para mobile */
/* Novos estilos para o container de aÃƒÂ§ÃƒÂµes do hero */
.hero-actions-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    width: 100%;
}

.hero-info-btn-wrapper {
    display: none;
    /* Oculto no desktop */
}

.sizes-card-close-btn {
    display: none;
    /* Oculto no desktop */
}

.hero-info-btn {
    display: none;
    /* Oculto no desktop */
    background-color: rgba(230, 25, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    flex-shrink: 0;
    /* Impede que o botÃƒÂ£o encolha */
}

.hero-info-btn:hover {
    background-color: var(--primary-red);
    transform: scale(1.08);
}

.hero-info-btn svg {
    display: block;
}

@media (max-width: 768px) {
    .hero-info-btn-wrapper {
        display: flex;
        flex: 1;
        justify-content: end;
        align-items: center;
    }

    .sizes-card-close-btn {
        display: block;
        /* VisÃƒÂ­vel no mobile */
        position: absolute;
        top: 6px;
        right: 6px;
        background: none;
        border: none;
        color: rgba(15, 15, 18, 0.7);
        font-size: 24px;
        font-weight: 300;
        cursor: pointer;
        line-height: 1;
        padding: 5px;
        z-index: 5;
    }

    .sizes-card-close-btn:hover {
        color: var(--white);
    }

    .hero-info-btn {
        display: flex;
        /* Exibido apenas no mobile */
    }

    .hero-sizes-card {
        display: flex !important;
        /* ForÃƒÂ§a o display flex para a estrutura interna do card */
        position: fixed !important;
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none !important;
        margin: 0;
        background-color: var(--primary-red) !important;
        /* Fundo preto premium translÃƒÂºcido */
        border: 2px solid rgba(15, 15, 18, 0.98) !important;
        /* Borda vermelha do tema */
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
        z-index: 2050 !important;
        /* Acima de absolutamente tudo no mobile */
        pointer-events: none;
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
        align-items: center;
        justify-content: center;
    }

    .hero-sizes-card.open {
        pointer-events: auto;
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .quantity-control {
        margin: 0;
        width: auto;
    }
}

/* --- MOBILE HEADER SEARCH OVERRIDES --- */
@media (max-width: 768px) {
    .header-content {
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto;
        padding: 5px 0;
    }

    .hamburger-menu {
        display: flex;
    }

    .expandable-search:not(.closed) {
        width: calc(100vw - 80px);
        /* Ocupa quase tudo, mas deixa o "R" do logo visÃƒÂ­vel e nÃƒÂ£o sobrepÃƒÂµe a tela inteira */
        max-width: 320px;
    }

    .search-results-dropdown {
        width: calc(100vw - 80px);
        max-width: 320px;
    }

    /* O carrinho e a busca escondem no mobile a princÃƒÂ­pio */
    .header-cart-btn {
        display: none !important;
    }

    .header-search {
        width: auto;
        padding-right: 15px;
        flex: 1;
        justify-content: flex-end;
    }

    /* Mobile Search Dark Overlay */
    .header-wrapper.search-active .header::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(9, 9, 11, 0.98);
        z-index: 10;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .header-wrapper.search-active .header-search,
    .header-wrapper.search-active .header-action {
        z-index: 20;
        position: relative;
    }

    /* Mobile Hamburger Nav Dropdown */
    .header-nav.nav-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--black);
        border-bottom: 4px solid #cc0000;
        z-index: 1000;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    }

    .header-nav.nav-open .nav-links {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        gap: 20px;
    }
}

/* ==========================================================================
   LANDING PAGE: HERO & CATALOGOS (Semantic CSS Refactor)
   ========================================================================== */

/* Novo Hero Section */
.catalog-hero {
    position: relative;
    background-color: var(--white);
    background-image: url('../imagens/Header_BGN.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 3rem 0;
    width: 100%;
}

.catalog-hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.catalog-hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 992px) {
    .catalog-hero-container {
        grid-template-columns: 1fr;
    }
}

.catalog-hero-text {
    max-width: 600px;
}

.catalog-hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.catalog-hero-badge .slash {
    color: var(--primary-red);
    font-weight: 900;
    font-style: italic;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.catalog-hero-badge .text {
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.catalog-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.catalog-hero-title span {
    color: var(--primary-red);
}

.catalog-hero-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.catalog-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: var(--primary-red);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(204, 0, 0, 0.3);
}

.catalog-hero-btn:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
}

.catalog-hero-btn svg {
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.catalog-hero-btn:hover svg {
    transform: translateX(4px);
}

.catalog-hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 600px;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 576px) {}

.feature-item {
    text-align: center;
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.5rem auto;
    border: 2px solid var(--primary-red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-wrapper svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.feature-text {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.2;
}

.catalog-hero-image-wrapper {
    position: relative;
    display: none;
}

@media (min-width: 992px) {
    .catalog-hero-image-wrapper {
        display: block;
    }
}

.catalog-hero-image-glow {
    position: absolute;
    inset: 0;
    background-color: var(--primary-red);
    opacity: 0.1;
    filter: blur(40px);
    border-radius: 50%;
    transform: translateX(25%);
}

.catalog-hero-image {
    position: relative;
    z-index: 10;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease;
}

.catalog-hero-image-wrapper:hover .catalog-hero-image {
    transform: translateY(-8px);
}

/* Nova SeÃ§Ã£o de CatÃ¡logos */
.section-header-catalog {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

#quem-somos .section-header-catalog {
    margin-bottom: 1.5rem;
}

#quem-somos .container {
    max-width: 1280px;
}


.section-header-catalog .line {
    height: 1px;
    background-color: #333;
    flex-grow: 1;
    max-width: 100px;
}

@media (max-width: 576px) {
    .section-header-catalog .line {
        display: none;
    }
}

.section-header-catalog .slash {
    color: var(--primary-red);
    font-weight: 900;
    font-style: italic;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.section-header-catalog h2 {
    font-size: 2.125rem;
    font-weight: 900;
    color: var(--black);
    font-style: italic;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    letter-spacing: -0.5px;
}

.section-header-catalog h2 span {
    color: var(--primary-red);
}

.catalog-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .catalog-grid {
        justify-content: center;
    }
}

.catalog-card {
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    width: 282px;
    height: 430px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.catalog-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.catalog-card-img-container {
    height: 246px;
    width: 100%;
    padding: 12px;
    padding-bottom: 0;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.catalog-card-img-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color: #f3f4f6;
    overflow: hidden;
}

.catalog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 0.4s ease;
}

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

.catalog-card-content {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    text-align: center;
    height: 184px;
    flex-shrink: 0;
    justify-content: center;
}

.catalog-card-info {
    width: 100%;
}

.catalog-card-title {
    font-size: 17px;
    font-weight: 900;
    color: var(--black);
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 4px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.catalog-card-slash {
    color: var(--primary-red);
    font-weight: 900;
    font-style: italic;
    font-size: 0.875rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.catalog-card-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-catalog-card {
    width: 100%;
    background-color: var(--primary-red);
    color: var(--white);
    font-weight: 700;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-style: italic;
    text-transform: uppercase;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.btn-catalog-card:hover {
    background-color: var(--dark-red);
}

.btn-catalog-card svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {

    .catalog-hero {
        padding: 2rem 0 1rem 0;
        background-size: cover;
        background-position: left center;
        /* Foca na parte esquerda (efeito escuro) conforme solicitado */
    }

    .catalog-hero-btn {
        display: none !important;
    }

    .catalog-hero-features {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        gap: 0.5rem;
    }

    /* Ajustes Mobile Hero */
    .catalog-hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 12px;
    }

    .catalog-hero-desc {
        font-size: 0.9rem;
        margin-bottom: 0;
        /* Remove margem extra já que o botão foi ocultado */
    }

    /* Abas de Marcas e Categorias em Carrossel Horizontal no Mobile (2 linhas) */
    .brand-tabs,
    .category-tabs {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        justify-content: start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 5px;
        padding-left: 10px;
        padding-right: 10px;
        gap: 10px;
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }

    .brand-tabs::-webkit-scrollbar,
    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Restaurar 2 colunas para Produtos */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .section-header-catalog h2 {
        font-size: 1.8rem;
    }

    .product-card {
        width: 100%;
        height: auto;
    }

    /* Grid de Catálogos (Home) - 1 coluna no mobile para não espremer as imagens grandes */
    .catalog-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .catalog-card {
        width: 100%;
        max-width: 320px;
        height: auto;
    }
}

@media (max-width: 768px) {

    .section-header-catalog .slash,
    .section-header-catalog .line {
        display: none;
    }
}

/* Oculta indicador no desktop por padrão */
.swipe-indicator {
    display: none;
}

@media (max-width: 768px) {

    /* Novo estilo de carrossel para Catálogos na Home: 2 linhas verticais, com rolagem horizontal e 1 coluna visível por vez */
    .catalog-grid {
        display: grid !important;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        /* Cada coluna ocupa 100% do container, escondendo as laterais */
        justify-content: start !important;
        justify-items: center;
        /* Centraliza o card dentro da sua coluna */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0 !important;
        /* Removemos o gap horizontal pois a coluna já tem 100% */
        row-gap: 20px !important;
        /* Gap apenas vertical entre os 2 cards da mesma coluna */
        padding: 0 !important;
        /* Sem padding lateral */
        padding-bottom: 15px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        align-items: start !important;
    }

    .catalog-grid::-webkit-scrollbar {
        display: none;
    }

    .catalog-card {
        width: 282px !important;
        /* Padrão original do desktop */
        height: 430px !important;
        /* Padrão original do desktop */
        max-width: 100%;
        /* Garantia para telas muito pequenas */
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .catalog-card-img-container {
        height: 246px;
        /* Padrão original do desktop */
        padding: 12px;
        padding-bottom: 0;
    }

    .catalog-card-content {
        padding: 1rem 1.25rem;
        height: 184px;
        /* Padrão original do desktop */
    }

    .catalog-card-title {
        font-size: 17px;
    }

    .catalog-card-desc {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }

    .btn-catalog-card {
        font-size: 13px;
        padding: 10px;
    }

    /* Indicador de Deslize */
    .swipe-indicator {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        color: #6b7280;
        margin-bottom: 15px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .swipe-arrow {
        display: inline-block;
        font-weight: 900;
        font-size: 1.1rem;
        color: var(--primary-red);
        transition: opacity 0.3s ease;
    }

    .swipe-arrow.left-arrow {
        animation: swipeAnimLeft 1.5s infinite ease-in-out;
    }

    .swipe-arrow.right-arrow {
        animation: swipeAnimRight 1.5s infinite ease-in-out;
    }

    @keyframes swipeAnimLeft {

        0%,
        100% {
            transform: translateX(0);
        }

        50% {
            transform: translateX(-4px);
        }
    }

    @keyframes swipeAnimRight {

        0%,
        100% {
            transform: translateX(0);
        }

        50% {
            transform: translateX(4px);
        }
    }
}

/* ==========================================================================
   Quem Somos Section
   ========================================================================== */
.about-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.about-board {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .about-section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .about-board {
        padding: 20px;
        /* Keep background and border on mobile for better readability */
    }

    #quem-somos .section-header-catalog {
        margin-bottom: 1rem;
    }
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Animação e Setas Flutuantes Mobile */
@media (max-width: 768px) {
    @keyframes pulseSwipeText {
        0%, 100% { transform: scale(0.98); opacity: 0.8; }
        50% { transform: scale(1.03); opacity: 1; text-shadow: 0 0 8px rgba(0,0,0,0.2); }
    }
    
    .swipe-pulse {
        animation: pulseSwipeText 2s infinite ease-in-out;
    }

    .float-arrows-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 10;
    }

    .float-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary-red);
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 60px;
        font-weight: 900;
        cursor: pointer;
        transition: opacity 0.3s ease, transform 0.2s;
        pointer-events: auto;
        text-shadow: 0 2px 10px rgba(0,0,0,0.25);
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .float-arrow:active {
        transform: translateY(-50%) scale(0.85);
    }

    .float-arrow.float-left {
        left: 2px;
    }

    .float-arrow.float-right {
        right: 2px;
    }
}