/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Creative - Vermelho YouTube */
    --primary: #FF0000;
    --primary-dark: #CC0000;
    --primary-light: #FF3333;
    --secondary: #10b981;
    --accent: #FF6B6B;
    --danger: #DC143C;
    
    /* Neutros */
    --dark: #1f2937;
    --dark-light: #374151;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --gray-lighter: #f3f4f6;
    --white: #ffffff;
    
    /* Tipografia */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Transições */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-family);
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 9998;
    overflow: visible;
    isolation: isolate;
}

.header-top {
    background: var(--dark);
    color: var(--white);
    padding: var(--spacing-xs) 0;
    font-size: 0.875rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info, .header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.header-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.header-link:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

.header-link i {
    margin-right: 0.25rem;
}

.header-divider {
    color: rgba(255,255,255,0.3);
    margin: 0 var(--spacing-xs);
}

.header-text {
    color: rgba(255,255,255,0.9);
}

.header-main {
    padding: var(--spacing-sm) 0;
}

.header-main-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo h1,
.logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(255, 0, 0, 0.2);
}

.logo a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

.search-box {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 4px 0 0 4px;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-greeting {
    font-size: 0.875rem;
    color: var(--dark);
    font-weight: 500;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.header-greeting--link {
    text-decoration: none;
    color: inherit;
}

a.header-greeting--link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.icon-btn, .cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-lighter);
    border: none;
    border-radius: 50%;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.icon-btn:hover, .cart-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.icon-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.3);
}

.icon-badge:empty {
    display: none;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Navigation */
.main-nav {
    background: var(--gray-lighter);
    border-top: 1px solid var(--gray-light);
    position: relative;
    z-index: 1001;
    overflow: visible;
    max-height: 80px; /* altura máxima aproximada da barra */
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        max-height 0.25s ease,
        border-top-width 0.25s ease;
}

.main-nav .container {
    padding: 0;
    max-width: 100%;
    width: 100%;
    overflow: visible;
}

/* Ocultar barra de categorias ao rolar a página (aparece só no topo) */
.main-nav.main-nav--hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    max-height: 0;
    border-top-width: 0;
    pointer-events: none;
}

/* Barra de rolagem horizontal só para a lista de categorias */
.nav-menu-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 769px) {
    .nav-menu-scroll {
        overflow-y: visible;
    }
}
.nav-menu-scroll::-webkit-scrollbar {
    height: 6px;
}
.nav-menu-scroll::-webkit-scrollbar-track {
    background: var(--gray-lighter);
}
.nav-menu-scroll::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 3px;
}

/* Desktop: submenu inline oculto — usamos o painel flutuante em vez do dropdown */
@media (min-width: 769px) {
    .nav-item.has-submenu .submenu {
        display: none !important;
    }
}

/* Painel flutuante de subcategorias (desktop): largura total, logo abaixo da nav */
.nav-submenu-floating {
    display: none;
}
@media (min-width: 769px) {
.nav-submenu-floating {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    top: 0;
    z-index: 10010;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-top: 3px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}
.nav-submenu-floating.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.nav-submenu-floating .nav-submenu-floating-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem var(--spacing-sm);
    width: 100%;
    box-sizing: border-box;
}
.nav-submenu-floating .submenu {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    max-height: none;
    min-width: 0;
}
.nav-submenu-floating .submenu li {
    margin: 0;
}
.nav-submenu-floating .submenu a {
    display: block;
    padding: 0.6rem 0.75rem;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9375rem;
    border-radius: 6px;
    transition: color 0.18s ease, background 0.18s ease;
    border-left: 3px solid transparent;
}
.nav-submenu-floating .submenu a:hover {
    color: var(--primary);
    background: rgba(255, 0, 0, 0.06);
    border-left-color: var(--primary);
}
.nav-submenu-floating .submenu-divider {
    grid-column: 1 / -1;
    border-top: 1px solid var(--gray-light);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}
.nav-submenu-floating .submenu-ver-todas {
    font-weight: 600 !important;
    color: var(--primary) !important;
}
.nav-submenu-floating .submenu-ver-todas:hover {
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
}
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.75rem;
    position: relative;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    padding: 0 var(--spacing-sm);
}

.nav-item {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: var(--spacing-sm) 0.5rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link i {
    font-size: 0.875rem;
    transition: var(--transition);
}

.nav-item:hover .nav-link i,
.nav-item.active .nav-link i {
    transform: rotate(180deg);
}

.nav-link:hover,
.nav-link.active,
.nav-item:hover .nav-link {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(255, 0, 0, 0.05);
}

/* Submenu: dropdown padrão (mobile e fallback) */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    max-height: 70vh;
    overflow-y: auto;
    list-style: none;
    padding: var(--spacing-sm) 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease-out, visibility 0.22s ease-out, transform 0.22s ease-out;
    z-index: 10003;
    border-top: 3px solid var(--primary);
    pointer-events: auto;
}
.submenu::-webkit-scrollbar {
    width: 6px;
}
.submenu::-webkit-scrollbar-track {
    background: var(--gray-lighter);
}
.submenu::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 3px;
}

.nav-item.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin: 0;
}

.submenu a {
    display: block;
    padding: 0.75rem var(--spacing-md);
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, padding-left 0.18s ease;
    border-left: 3px solid transparent;
}

.submenu a:hover {
    color: var(--primary);
    background: rgba(255, 0, 0, 0.05);
    border-left-color: var(--primary);
    padding-left: calc(var(--spacing-md) - 3px);
}

/* Último item do dropdown: "Ver todas as subcategorias" */
.submenu-divider {
    border-top: 1px solid var(--gray-light);
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}
.submenu-ver-todas {
    font-weight: 600 !important;
    color: var(--primary) !important;
}
.submenu-ver-todas:hover {
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
}
.submenu-ver-todas i {
    margin-right: 0.35rem;
    opacity: 0.9;
}

/* Desktop: barra e overflow */
.header,
.main-nav,
.main-nav .container,
.nav-menu,
.nav-item,
.nav-item.has-submenu {
    overflow: visible !important;
}

.main-nav {
    z-index: 9998 !important;
    isolation: isolate;
}

/* Desktop: painel mega menu largura total da página */
.submenu.nav-submenu-fixed {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    transform: none !important;
    z-index: 10002 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.25rem 1.5rem;
    min-width: 0;
    max-height: 70vh;
    overflow-y: auto !important;
    padding: 1.25rem 2rem !important;
    margin: 0 !important;
    list-style: none !important;
    background: var(--white) !important;
    border: none !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
}
.submenu.nav-submenu-fixed li {
    margin: 0 !important;
}
.submenu.nav-submenu-fixed a {
    padding: 0.5rem 0.75rem !important;
    border-left: none !important;
    border-radius: 4px;
    font-size: 0.9rem;
}
.submenu.nav-submenu-fixed a:hover {
    background: rgba(255, 0, 0, 0.08) !important;
    padding-left: 0.75rem !important;
}
.submenu.nav-submenu-fixed::-webkit-scrollbar {
    width: 6px;
}
.submenu.nav-submenu-fixed::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 3px;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .submenu.nav-submenu-fixed {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* Nav Items à direita (Quem Somos, Favoritos, etc) */
.nav-item-right {
    margin-left: auto;
}

.nav-item-right .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.nav-item-right .nav-link:hover {
    color: var(--primary);
    background: rgba(255, 0, 0, 0.05);
}

/* Special Nav Item (Wishlist) */
.nav-item-special .nav-link {
    color: var(--primary);
    font-weight: 600;
}

.nav-item-special .nav-link:hover {
    background: rgba(255, 0, 0, 0.1);
}

.nav-badge {
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.25rem;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

/* Banner Slider: altura alinhada ao vídeo de fallback (300px) */
.banner-slider {
    position: relative;
    width: 100%;
    height: 300px;
    min-height: 300px;
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.banner-fallback {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.banner-fallback-video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.banner-slider-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    color: var(--white);
    text-align: left;
    padding: var(--spacing-xl) 0;
}

.slide-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    animation: slideInLeft 0.8s ease;
}

.slide-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    animation: slideInLeft 0.8s ease 0.2s both;
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 0.8s ease 0.4s both;
}

.btn-slide {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.8s ease 0.6s both;
}

.btn-slide:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot.active {
    background: var(--primary);
    width: 40px;
    border-radius: 6px;
    border-color: var(--white);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Products Section */
.products-section {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background: var(--gray-lighter);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.section-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.section-link i {
    transition: var(--transition);
}

.section-link:hover i {
    transform: translateX(3px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

/* Página de categoria (template v1, SaaS) */
.category-breadcrumb-v1 {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.category-breadcrumb-link {
    color: var(--gray);
    text-decoration: none;
}

.category-breadcrumb-link:hover {
    color: var(--primary);
}

.category-breadcrumb-current {
    font-weight: 600;
    color: var(--dark);
}

.category-header-v1 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-title-v1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

.category-chips-v1 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip-category-v1 {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chip-category-v1:hover {
    background: #e5e7eb;
}

.chip-category-v1.is-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.category-search-v1 {
    margin-top: 0.25rem;
}

.category-search-form-v1 {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-search-input-v1 {
    flex: 1;
    min-width: 200px;
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--gray-light);
    font-size: 0.9375rem;
}

.category-search-btn-v1 {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.category-layout-v1 {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.category-sidebar-v1 {
    width: 260px;
    flex-shrink: 0;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid var(--gray-light);
}

.category-sidebar-inner-v1 {
    padding: 1rem;
}

.category-content-v1 {
    flex: 1;
}

.category-filters-toggle-v1 {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    margin-top: 1rem;
    border-radius: 6px;
    border: 1px solid var(--gray-light);
    background: #ffffff;
    color: var(--dark);
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-card-v1 {
    border-radius: 8px;
    background: #ffffff;
    padding: 0.9rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.filter-title-v1 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.filter-group-v1 {
    margin-bottom: 1rem;
}

.filter-group-title-v1 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.filter-price-row-v1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-price-range-v1 {
    width: 100%;
    padding: 0.35rem 0 0.25rem;
}

.filter-price-track-v1 {
    position: relative;
    width: 100%;
    height: 24px;
}

.filter-range-v1 {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    background: transparent;
}

.filter-range-v1::-webkit-slider-runnable-track {
    height: 4px;
    background: #e5e7eb;
    border-radius: 999px;
}

.filter-range-v1::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    margin-top: -5px;
}

.filter-range-v1::-moz-range-track {
    height: 4px;
    background: #e5e7eb;
    border-radius: 999px;
}

.filter-range-v1::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.filter-price-values-v1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.filter-input-v1 {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--gray-light);
    font-size: 0.875rem;
}

.filter-sep-v1 {
    font-size: 0.85rem;
    color: var(--gray);
}

.filter-checkbox-v1 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.filter-checkbox-v1 input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.filter-list-v1 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-products-toolbar-v1 {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.category-pagination-v1 {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Wishlist (Meus Favoritos) - template v1 */
.wishlist-header-v1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wishlist-title-v1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wishlist-title-v1 i {
    color: var(--primary);
}

.wishlist-subtitle-v1 {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.wishlist-header-actions-v1 .btn {
    white-space: nowrap;
}

.wishlist-page-v1 {
    width: 100%;
}

.wishlist-grid-v1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-md);
}

.wishlist-item-v1 {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
    padding: 0.75rem;
    display: flex;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wishlist-remove-btn-v1 {
    position: absolute;
    top: 6px;
    right: 6px;
    border: none;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
}

.wishlist-remove-btn-v1:hover {
    color: var(--danger);
}

.wishlist-item-image-v1 {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-item-image-v1 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wishlist-item-info-v1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wishlist-item-name-v1 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
}

.wishlist-item-name-v1:hover {
    color: var(--primary);
}

.wishlist-item-code-v1,
.wishlist-item-category-v1 {
    font-size: 0.8rem;
    color: var(--gray);
}

.wishlist-item-price-v1 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.25rem;
}

.wishlist-item-actions-v1 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.empty-wishlist-v1 {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.empty-icon-v1 {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px dashed var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.empty-wishlist-v1 h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-wishlist-v1 p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .wishlist-header-v1 {
        flex-direction: column;
        align-items: flex-start;
    }

    .wishlist-item-v1 {
        flex-direction: column;
        align-items: flex-start;
    }

    .wishlist-item-image-v1 {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 992px) {
    .category-layout-v1 {
        flex-direction: column;
    }

    .category-sidebar-v1 {
        width: 100%;
    }

    .category-filters-toggle-v1 {
        display: inline-flex;
    }
}

/* Slider de "Populares da Semana" */
.popular-slider {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: var(--spacing-sm);
}

.popular-slider-viewport {
    overflow: hidden;
    flex: 1;
}

.popular-slider-track {
    display: flex;
    transition: transform 0.3s ease;
}

.popular-slider-item {
    flex: 0 0 25%; /* desktop: 4 cards por vez */
    padding: 0 0.25rem;
    box-sizing: border-box;
}

.popular-nav {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--gray-light);
    background: #ffffff;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.popular-nav:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.popular-nav[disabled] {
    opacity: 0.4;
    cursor: default;
}

@media (max-width: 768px) {
    .popular-slider {
        gap: 0.5rem;
    }
    .popular-slider-item {
        flex: 0 0 100%; /* mobile: 1 card por vez */
        padding: 0;
    }
}

/* Abas de categorias na home */
.home-category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--spacing-lg);
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.home-category-tab {
    border: none;
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-category-tab:hover:not(.is-active) {
    background: #e5e7eb;
}

.home-category-tab.is-active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.home-category-panels {
    position: relative;
}

.home-category-panel {
    animation: homeTabFadeIn 0.2s ease;
}

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

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.3);
    animation: bounce 2s infinite;
}

/* Variação de card para Super Promo */
.product-card--super-promo {
    border: 1px solid var(--primary);
}

.product-badge--super-promo {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    animation: none;
}

/* Preço Super Promo no card: fundo preto, fonte branca */
.price-super-promo {
    background: #1a1a1a;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.price-super-promo-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}
.price-super-promo-line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.price-super-promo-original {
    font-size: 0.95rem;
    text-decoration: line-through;
    opacity: 0.85;
}
.price-super-promo-arrow {
    font-size: 1rem;
    opacity: 0.9;
}
.price-super-promo-value {
    font-size: 1.25rem;
    font-weight: 700;
}
.price-super-promo-note {
    font-size: 0.8rem;
    opacity: 0.85;
}

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

.product-image {
    position: relative;
    width: 100%;
    padding-top: 120%; /* Altura reduzida em 20% (1.8:1 aspect ratio) */
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Super Promo: reduzir altura da área de imagem (~100px a menos) */
.product-card--super-promo .product-image {
    padding-top: 88%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mostra imagem completa */
    object-position: center;
    padding: 0.75rem; /* Espaçamento interno para não colar nas bordas */
    transition: var(--transition);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.btn-wishlist-card,
.btn-compare-card {
    position: absolute;
    top: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e5ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    color: #6b7280;
    font-size: 1rem;
    padding: 0;
    opacity: 0;
    visibility: hidden;
}

.btn-wishlist-card {
    left: 1rem;
    right: auto;
}

.btn-compare-card {
    left: 3.5rem;
    right: auto;
}

.btn-wishlist-card:hover,
.btn-compare-card:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: scale(1.1);
}

.btn-wishlist-card i.fas {
    color: var(--primary);
}

.product-card:hover .btn-wishlist-card,
.product-card:hover .btn-compare-card {
    opacity: 1;
    visibility: visible;
}

.btn-wishlist-remove-card {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: auto;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e5ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 6;
    color: #ef4444;
    font-size: 1rem;
    padding: 0;
}

.btn-wishlist-remove-card:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: scale(1.08);
}

.btn-quick-view {
    background: var(--white);
    color: var(--dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-quick-view:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.product-info {
    padding: var(--spacing-sm);
}

.product-code {
    font-size: 0.75rem;
    color: var(--gray);
    display: block;
    margin-bottom: 0.25rem;
}

.product-link {
    text-decoration: none;
    display: block;
}

.product-name-link {
    text-decoration: none;
    display: block;
}

.product-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.product-name-link:hover .product-name {
    color: var(--primary);
}

.product-brand {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.product-unit {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.product-category {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 1px 2px rgba(255, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Área de ações do produto (botões) com altura consistente */
.product-actions {
    margin-top: 0.5rem;
    /* altura fixa para todos os estados (disponível x indisponível) */
    height: 72px;
    display: flex;
    align-items: center;
}

.product-actions .btn {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Preço PIX destacado no card */
.price-pix-highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(50, 205, 50, 0.25);
    margin-bottom: 0.5rem;
}

/* Preço Atacadista - Card */
.price-wholesale-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.25);
    margin-top: 0.5rem;
}

.price-wholesale-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.price-wholesale-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.price-wholesale-note {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 500;
}

.btn-wholesale-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%);
    color: var(--white);
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(65, 105, 225, 0.25);
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-wholesale-price:hover {
    background: linear-gradient(135deg, #1E90FF 0%, #4169E1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(65, 105, 225, 0.4);
    color: var(--white);
}

.btn-wholesale-price i {
    font-size: 1.125rem;
}

/* Estilos para faixas de atacado (tabela nova) */
.wholesale-tiers-card {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf8 100%);
    border: 1px solid #d0dce8;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Variante com slider: largura única e navegação lateral */
.wholesale-tiers-card--slider .wholesale-tiers-slider {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.wholesale-tiers-card--slider .wholesale-tiers-list {
    flex: 1;
    overflow: hidden;
}

.wholesale-tiers-card--slider .wholesale-tiers-track {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease;
}

.wholesale-tiers-card--slider .wholesale-tier-item {
    flex: 0 0 100%; /* sempre ocupa 100% da largura visível */
}

.wholesale-nav {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #d0dce8;
    background: #ffffff;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wholesale-nav:hover {
    background: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
}

.wholesale-nav[disabled] {
    opacity: 0.4;
    cursor: default;
}

.wholesale-tiers-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wholesale-tiers-label i {
    font-size: 1rem;
}

.wholesale-tiers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wholesale-tier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #dbe5f0;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #374151;
}

.wholesale-tier-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #4169e1;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.15);
    transform: translateX(2px);
}

.wholesale-tier-item:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.tier-qty {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
}

.tier-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e40af;
}

.price-pix-label {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-pix-value {
    font-size: 1.4rem;
    font-weight: 700;
    flex: 1;
}

.price-normal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.price-label {
    color: var(--gray);
    font-size: 0.875rem;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-dark);
}

.price-installment {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    font-size: 0.9375rem;
    color: var(--gray);
    margin-top: 0.25rem;
    min-width: 0;
    width: 100%;
}

.price-installment__main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.45rem;
    line-height: 1.35;
    min-width: 0;
    width: 100%;
}

.installment-label {
    font-size: 0.875rem;
    flex: 0 1 auto;
    min-width: 0;
}

.installment-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.installment-note {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray);
    font-style: italic;
    line-height: 1.25;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9375rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    width: 100%;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.btn-block {
    width: 100%;
}

.btn-add-cart {
    background: var(--primary);
    color: var(--white);
}

.btn-add-cart:hover {
    background: var(--gray);
    color: var(--white);
}

/* Botão de produto indisponível: permite texto em 2 linhas, menor fonte */
.btn-stock-alert {
    font-size: 0.85rem;
    line-height: 1.3;
    padding: 0.5rem 0.75rem;
    white-space: normal;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
    text-shadow: 0 2px 4px rgba(255, 0, 0, 0.3);
}

.footer-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.footer-text {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--spacing-xs);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
    display: inline-block;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.footer-bottom .footer-credit-v1 {
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom .footer-credit-v1-label {
    letter-spacing: 0.01em;
}

/* Crédito Promptor — CTA em chip (convite claro ao clique) */
.footer-bottom a.footer-credit-v1-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 1rem 0.42rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #f1f5f9 !important;
    text-decoration: none;
    border-radius: 999px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 48%, rgba(99, 102, 241, 0.12) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 4px 14px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(0, 0, 0, 0.2) inset;
    transition:
        transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1),
        box-shadow 0.28s ease,
        border-color 0.22s ease,
        background 0.28s ease;
    isolation: isolate;
    overflow: hidden;
    vertical-align: middle;
}

.footer-bottom a.footer-credit-v1-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 60%,
        transparent 100%
    );
    transform: translateX(-120%);
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
    pointer-events: none;
}

.footer-bottom a.footer-credit-v1-link:hover::before {
    transform: translateX(120%);
}

.footer-bottom a.footer-credit-v1-link::after {
    content: '↗';
    position: relative;
    z-index: 1;
    font-size: 0.85em;
    font-weight: 700;
    opacity: 0.72;
    line-height: 1;
    transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.2s ease;
}

.footer-bottom .footer-credit-v1-link-text {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

@supports not (background-clip: text) {
    .footer-bottom .footer-credit-v1-link-text {
        color: #f1f5f9;
        background: none;
    }
}

.footer-bottom a.footer-credit-v1-link:hover {
    transform: translateY(-3px) scale(1.04);
    border-color: color-mix(in srgb, var(--primary, #ef4444) 50%, rgba(255, 255, 255, 0.45));
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 45%, color-mix(in srgb, var(--primary, #ef4444) 22%, transparent) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 8px 28px rgba(0, 0, 0, 0.45),
        0 0 32px color-mix(in srgb, var(--primary, #ef4444) 38%, transparent),
        0 0 0 1px color-mix(in srgb, var(--primary, #ef4444) 25%, transparent);
}

.footer-bottom a.footer-credit-v1-link:hover::after {
    transform: translate(3px, -3px);
    opacity: 1;
}

.footer-bottom a.footer-credit-v1-link:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 3px 12px rgba(0, 0, 0, 0.4);
}

.footer-bottom a.footer-credit-v1-link:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--primary, #ef4444) 85%, #fff);
    outline-offset: 4px;
}

.footer-bottom a.footer-credit-v1-link:focus:not(:focus-visible) {
    outline: none;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 10050;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.cart-close:hover {
    color: var(--danger);
}

.cart-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--spacing-md);
    -webkit-overflow-scrolling: touch;
}

.cart-body::-webkit-scrollbar {
    width: 6px;
}

.cart-body::-webkit-scrollbar-track {
    background: var(--gray-lighter, #f1f5f9);
    border-radius: 3px;
}

.cart-body::-webkit-scrollbar-thumb {
    background: var(--gray, #94a3b8);
    border-radius: 3px;
}

.cart-body::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark, #64748b);
}

.cart-empty {
    text-align: center;
    color: var(--gray);
    padding: var(--spacing-xl) 0;
}

.cart-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--gray-light);
}

.cart-total {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10049;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

/* Cart Items */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: var(--spacing-sm);
}

.cart-item-info h4,
.cart-item-content .cart-item-name {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.cart-item-info p,
.cart-item-content p {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.cart-item-variations {
    margin: 0.5rem 0 !important;
    padding: 0.5rem;
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid var(--primary, #3b82f6);
    border-radius: 4px;
    font-size: 0.8125rem !important;
    color: var(--primary) !important;
    font-weight: 500;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger, #dc3545);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cart-item-content {
    flex: 1;
    min-width: 0;
    padding: 0 0.75rem;
}

.btn-cart-clear {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid var(--danger, #dc3545);
    color: var(--danger, #dc3545);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cart-clear:hover {
    background: var(--danger, #dc3545);
    color: #fff;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-main-content {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        width: 100%;
        margin-top: var(--spacing-sm);
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu-scroll {
        max-height: 70vh;
        overflow-x: visible;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #ffffff;
    }
    .nav-menu-scroll::-webkit-scrollbar {
        width: 6px;
        height: 0;
    }
    .nav-menu-scroll::-webkit-scrollbar-track {
        background: var(--gray-lighter);
    }
    .nav-menu-scroll::-webkit-scrollbar-thumb {
        background: var(--gray);
        border-radius: 3px;
    }
    
    .nav-menu {
        flex-direction: column;
        flex-wrap: nowrap;
        display: none;
        width: 100%;
        padding: var(--spacing-sm) 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
        flex: 0 0 auto;
    }
    
    .nav-link {
        width: 100%;
        justify-content: space-between;
        font-size: 0.875rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--gray-light);
        background: rgba(255, 0, 0, 0.04);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        min-width: 0;
    }
    
    .nav-item.active .submenu {
        max-height: 280px;
        overflow-y: auto;
        padding: var(--spacing-sm) 0;
        -webkit-overflow-scrolling: touch;
    }
    .nav-item.active .submenu::-webkit-scrollbar {
        width: 4px;
    }
    .nav-item.active .submenu::-webkit-scrollbar-thumb {
        background: var(--gray);
        border-radius: 2px;
    }
    
    .submenu a {
        padding: 0.5rem var(--spacing-md) 0.5rem var(--spacing-lg);
        border-left: none;
    }
    
    .submenu a:hover {
        padding-left: var(--spacing-lg);
        border-left: none;
        background: rgba(255, 0, 0, 0.08);
    }
    
    .nav-item-right {
        margin-left: 0;
        margin-top: var(--spacing-sm);
        border-top: 1px solid var(--gray-light);
        padding-top: var(--spacing-sm);
    }
    
    .nav-item-special {
        margin-left: 0;
        margin-top: 0;
        border-top: none;
        padding-top: 0;
    }
    
    .banner-slider {
        height: 300px;
    }

    /* Mobile: exibe o banner completo sem cortes */
    .banner-fallback,
    .slide-image {
        background: #000;
    }

    .banner-fallback-video {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        flex-shrink: 0;
        object-fit: contain;
        object-position: center center;
    }

    .slide-image img,
    .slide-image video {
        object-fit: contain;
        object-position: center center;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1.125rem;
    }
    
    .btn-slide {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-top-content {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-slider {
        height: 220px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    .slide-badge {
        padding: 0.375rem 1rem;
        font-size: 0.75rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .btn-slide {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .slider-dots {
        bottom: 10px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 30px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.35);
    z-index: 1100;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}

@media (max-width: 480px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
        font-size: 1.45rem;
    }
}

/* Stock alert modal (home & product) */
#stockAlertModal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

#stockAlertModal.active {
    opacity: 1;
    visibility: visible;
}

#stockAlertModal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

#stockAlertModal .modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#stockAlertModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

#stockAlertModal .modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

#stockAlertModal .modal-close {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

#stockAlertModal .modal-body {
    padding: 1.5rem;
}

#stockAlertModal .form-group {
    margin-bottom: 1.5rem;
}

#stockAlertModal .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

#stockAlertModal .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Cookie consent bar (rodapé) */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1rem 1.25rem;
    background: #1f2937;
    color: #f3f4f6;
    font-size: 0.875rem;
}

.cookie-consent__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.cookie-consent__text {
    flex: 1;
    min-width: 260px;
}

.cookie-consent__message {
    margin: 0;
}

.cookie-consent__message a {
    color: #93c5fd;
}

.cookie-consent__actions {
    display: flex;
    gap: 0.75rem;
}

.cookie-consent__btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent__btn--reject {
    background: transparent;
    color: #d1d5db;
    border: 1px solid #6b7280;
}

.cookie-consent__btn--accept {
    background: var(--primary);
    color: #fff;
}

/* Utilitário: linha inteira em grids de produtos/cart */
.cart-empty--full {
    grid-column: 1 / -1;
}