/**
 * LUMINE - Loja de Pratas 925
 * Estilo Minimalista Mobile-First
 * Cores: Preto e Branco
 */

/* ========================================
   Fontes via Google Fonts
   ======================================== */
/* Jost (corpo do texto) e Crimson Text (títulos H1) já carregados no HTML */

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

:root {
    /* Cores */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray-light: #F8F8F8;
    --color-gray-border: #E5E5E5;
    --color-gray-text: #666666;

    /* Fontes */
    --font-title: 'Crimson Text', serif;
    --font-content: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Espaçamentos */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;

    /* Tamanhos de fonte mobile */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-content);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

/* Page Loading Overlay */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.active {
    opacity: 1;
    visibility: visible;
}

.page-loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   Scroll Animations - Fade In Up
   ======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Delays progressivos para efeito cascata */
.fade-in-up[data-delay="1"] { transition-delay: 0.05s; }
.fade-in-up[data-delay="2"] { transition-delay: 0.1s; }
.fade-in-up[data-delay="3"] { transition-delay: 0.15s; }
.fade-in-up[data-delay="4"] { transition-delay: 0.2s; }
.fade-in-up[data-delay="5"] { transition-delay: 0.25s; }
.fade-in-up[data-delay="6"] { transition-delay: 0.3s; }
.fade-in-up[data-delay="7"] { transition-delay: 0.35s; }
.fade-in-up[data-delay="8"] { transition-delay: 0.4s; }
.fade-in-up[data-delay="9"] { transition-delay: 0.45s; }
.fade-in-up[data-delay="10"] { transition-delay: 0.5s; }

/* Respeitar preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   Custom Scrollbar - Global
   ======================================== */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 10px;
    border: 2px solid var(--color-gray-light);
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #c0c0c0 var(--color-gray-light);
}

/* ========================================
   Tipografia
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: var(--font-size-2xl);
    font-family: 'Crimson Text', serif;
    font-weight: 600;
}
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-black);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* ========================================
   Container
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ========================================
   Header
   ======================================== */
header {
    background-color: var(--color-white);
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    /* font-family: var(--font-title); */
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
}

.logo img {
    height: 24px;
    width: auto;
}

@media (min-width: 1024px) {
    .logo img {
        height: 28px;
    }
}

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

/* Campo de busca desktop - Esconder no mobile */
.header-search-desktop {
    display: none;
}

.icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

.icon-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-black);
}

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

/* ========================================
   Navegação
   ======================================== */
nav {
    border-top: 1px solid var(--color-gray-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-categories {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    white-space: nowrap;
}

.nav-categories a {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--spacing-xs) 0;
}

.nav-categories a:hover,
.nav-categories a.active {
    border-bottom: 1px solid var(--color-black);
}

/* ========================================
   Main Content
   ======================================== */
main {
    min-height: calc(100vh - 200px);
    padding: 0 0 var(--spacing-md) 0;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-section h4 {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
}

.footer-section a {
    color: var(--color-white);
    font-size: var(--font-size-sm);
    display: block;
    margin-bottom: var(--spacing-xs);
}

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

/* ========================================
   Responsivo - Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
    :root {
        --spacing-sm: 24px;
        --spacing-md: 32px;
        --spacing-lg: 48px;
        --spacing-xl: 64px;
    }

    .logo img {
        height: 40px;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   Responsivo - Mobile Header Grid
   ======================================== */
@media (max-width: 768px) {
    .header-top {
        display: grid;
        grid-template-columns: 48px 1fr 48px;
        align-items: center;
        gap: 12px;
    }

    .menu-mobile-btn {
        justify-self: start;
        grid-column: 1;
    }

    .logo {
        justify-self: center;
        grid-column: 2;
        text-align: center;
    }

    .header-icons {
        justify-self: end;
        grid-column: 3;
    }
}

/* ========================================
   Responsivo - Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
    .header-top {
        padding: var(--spacing-md) 0;
        display: flex;
        gap: var(--spacing-lg);
        align-items: center;
    }

    .logo img {
        height: 32px;
    }

    .icon-btn svg {
        width: 28px;
        height: 28px;
    }

    /* Mostrar campo de busca desktop e esconder botão de busca mobile */
    .header-search-desktop {
        display: flex;
        flex: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    #search-btn {
        display: none;
    }

    .desktop-search-form {
        display: flex;
        width: 100%;
        position: relative;
    }

    .desktop-search-input {
        flex: 1;
        height: 40px;
        padding: 0 48px 0 16px;
        border: 1px solid #e0e0e0;
        border-radius: 20px;
        font-size: 14px;
        outline: none;
        transition: all 0.3s;
        background: #f8f8f8;
    }

    .desktop-search-input:focus {
        border-color: var(--color-primary);
        background: #fff;
    }

    .desktop-search-btn {
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: none;
        cursor: pointer;
        border-radius: 50%;
        transition: background 0.3s;
    }

    .desktop-search-btn:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .desktop-search-btn svg {
        width: 18px;
        height: 18px;
        color: #666;
    }

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

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden { display: none; }

/* Título da página (categorias/busca) */
.page-title {
    padding-top: var(--spacing-lg);
}

/* ========================================
   Products Grid - Mobile-First
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.product-card {
    background-color: var(--color-white);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Aspect ratio 1:1 */
    overflow: hidden;
    background-color: var(--color-gray-light);
}

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

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

.product-info {
    padding: 16px 14px;
}

@media (max-width: 768px) {
    .product-info {
        padding: 16px 14px;
    }
}

.product-name {
    font-family: var(--font-content);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
    min-height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-price {
    font-family: var(--font-content);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--spacing-xs);
}

.product-btn {
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    background-color: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-black);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.product-btn:hover {
    background-color: transparent;
    color: var(--color-black);
    transform: translateY(-2px);
}

/* Botão no modo contador */
.product-btn.counter-mode {
    padding: 6px 12px;
    gap: 0;
    justify-content: space-between;
}

.product-btn.counter-mode:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    transform: none;
}

.qty-control {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.qty-control:hover {
    background: rgba(255, 255, 255, 0.2);
}

.product-btn.counter-mode:hover .qty-control:hover {
    background: rgba(255, 255, 255, 0.2);
}

.qty-display {
    font-size: 14px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
    letter-spacing: 0;
}

/* Badge de destaque */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #000;
    color: #fff;
    padding: 6px 12px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 1;
}

/* Skeleton loader para imagens */
.product-image.loading {
    background: linear-gradient(
        90deg,
        var(--color-gray-light) 25%,
        #f0f0f0 50%,
        var(--color-gray-light) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   Banner Section - Slider
   ======================================== */
.banner-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

/* Banner 100% largura no mobile (compensar padding do container) */
@media (max-width: 768px) {
    .banner-slider {
        margin-left: calc(-1 * var(--spacing-sm));
        margin-right: calc(-1 * var(--spacing-sm));
        width: calc(100% + 2 * var(--spacing-sm));
    }
}

.banner-slides-container {
    position: relative;
    width: 100%;
    height: 600px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-content {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    right: var(--spacing-md);
    color: var(--color-white);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.banner-title {
    font-family: var(--font-title);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xs);
}

.banner-subtitle {
    font-size: var(--font-size-sm);
}

/* Setas de navegação */
.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.banner-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.banner-prev {
    left: 16px;
}

.banner-next {
    right: 16px;
}

.banner-nav-btn svg {
    color: var(--color-black);
}

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

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

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

.banner-dot.active {
    background: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 5px;
}

/* Responsivo */
@media (max-width: 768px) {
    .banner-slides-container {
        height: 400px;
    }

    .banner-nav-btn {
        width: 36px;
        height: 36px;
    }

    .banner-prev {
        left: 12px;
    }

    .banner-next {
        right: 12px;
    }

    .banner-dots {
        bottom: 16px;
    }

    .banner-dot {
        width: 8px;
        height: 8px;
    }

    .banner-dot.active {
        width: 20px;
    }
}

/* ========================================
   Features/Benefits Section
   ======================================== */
.features-section {
    background: #f8f8f800;
    padding: 40px 0 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: left;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-primary);
}

.feature-icon i {
    font-size: 36px;
    color: var(--color-primary);
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 2px 0;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.feature-description {
    font-size: 11px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Tablet e Desktop */
@media (min-width: 768px) {
    .features-section {
        padding: 56px 0 64px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }

    .feature-item {
        gap: var(--spacing-md);
    }

    .feature-title {
        font-size: 14px;
    }

    .feature-description {
        font-size: 12px;
    }
}

/* ========================================
   Loading States
   ======================================== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gray-border);
    border-top-color: var(--color-black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: var(--spacing-xl) auto;
}

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

/* ========================================
   Responsivo - Mobile (até 767px)
   ======================================== */
@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-info {
        padding: 12px 8px;
    }

    .product-name {
        font-size: 13px;
        min-height: 39px;
    }

    .product-price {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .product-btn {
        font-size: 10px;
        padding: 10px 12px;
        min-height: 40px;
    }
}

/* ========================================
   Responsivo - Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }

    .banner-slide {
        height: 450px;
    }

    .product-name {
        font-size: var(--font-size-lg);
    }

    .product-price {
        font-size: var(--font-size-xl);
    }
}

/* ========================================
   Responsivo - Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
    }

    .banner-slider {
        margin-bottom: var(--spacing-xl);
    }

    .banner-slide {
        height: 600px;
    }
}

@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   Modal Overlay
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
}

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

/* ========================================
   Modal Content
   ======================================== */
.modal-content {
    background-color: var(--color-white);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

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

.modal-header h3 {
    font-family: var(--font-title);
    font-size: var(--font-size-xl);
    margin: 0;
}

.modal-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 0.7;
}

/* ========================================
   Search Modal
   ======================================== */
.search-modal {
    max-width: 600px;
}

/* Posicionar modal de busca mais ao topo no mobile */
@media (max-width: 768px) {
    #search-modal.modal-overlay {
        align-items: flex-start;
        padding-top: 80px;
    }

    .search-modal .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

.search-form-wrapper {
    position: relative;
}

.search-form {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    overflow: visible;
}

.search-input {
    width: 100%;
    padding: var(--spacing-sm);
    font-size: var(--font-size-base);
    font-family: var(--font-content);
    border: 2px solid var(--color-gray-border);
    background-color: var(--color-white);
    transition: border-color 0.3s ease;
    min-height: 48px;
}

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

.search-submit-btn {
    width: 100%;
    min-height: 48px;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    font-size: var(--font-size-base);
    font-family: var(--font-content);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-weight: 500;
}

.search-submit-btn:hover {
    opacity: 0.85;
}

/* ========================================
   Floating Cart Button
   ======================================== */
.cart-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background-color: var(--color-black);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9997;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cart-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.cart-float-btn svg {
    width: 28px;
    height: 28px;
}

.cart-float-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

.cart-float-badge.hidden {
    display: none;
}

.cart-float-info {
    position: absolute;
    bottom: 80px;
    right: 0;
    background-color: var(--color-white);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    display: none;
    flex-direction: column;
    gap: 4px;
}

.cart-float-btn:hover .cart-float-info {
    display: flex;
}

.cart-float-info-item {
    font-size: 14px;
    color: var(--color-gray-text);
}

.cart-float-info-total {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-black);
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--color-gray-border);
}

/* ========================================
   Cart Sidebar
   ======================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-sidebar.hidden {
    display: none;
}

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

.cart-header h3 {
    font-family: var(--font-title);
    font-size: var(--font-size-xl);
    margin: 0;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

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

.cart-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-sm);
    opacity: 0.3;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.cart-item {
    display: flex;
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-gray-border);
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background-color: var(--color-gray-light);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.cart-item-name {
    font-family: var(--font-title);
    font-size: var(--font-size-base);
    line-height: 1.3;
    margin: 0;
}

.cart-item-price {
    font-family: var(--font-content);
    font-size: var(--font-size-lg);
    font-weight: bold;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: auto;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gray-border);
    background-color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.qty-btn:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

.cart-item-remove {
    margin-left: auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-gray-text);
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: #e53e3e;
}

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

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
}

.cart-total-label {
    font-family: var(--font-content);
    font-weight: bold;
}

.cart-total-value {
    font-family: var(--font-content);
    font-size: var(--font-size-xl);
    font-weight: bold;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.cart-checkout-btn {
    width: 100%;
    min-height: 48px;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: #25D366;
    color: var(--color-white);
    border: none;
    font-size: var(--font-size-base);
    font-family: var(--font-content);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-weight: 600;
}

.cart-checkout-btn:hover {
    opacity: 0.9;
}

.cart-clear-btn {
    width: 100%;
    min-height: 44px;
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--color-white);
    color: var(--color-black);
    border: 1px solid var(--color-gray-border);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.cart-clear-btn:hover {
    background-color: var(--color-gray-light);
}

/* Cart Overlay para mobile */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 95%;
        max-width: 95%;
        height: 100vh;
        max-height: 100vh;
    }
    
    .cart-float-btn {
        width: 56px;
        height: 56px;
        bottom: 20px;
        left: 20px;
    }
    
    .cart-float-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .cart-float-info {
        bottom: 70px;
        left: 0;
        min-width: 160px;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cart-float-btn {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
        left: auto;
    }
    
    .cart-float-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .cart-float-info {
        bottom: 70px;
        right: 0;
        left: auto;
        min-width: 160px;
    }
    
    /* Esconder botão do carrinho no header no mobile */
    #cart-btn {
        display: none !important;
    }
}

/* ========================================
   Categories Sidebar (Mobile Menu)
   ======================================== */

/* Botão hamburguer - visível apenas no mobile */
.menu-mobile-btn {
    display: none;
}

@media (max-width: 768px) {
    .menu-mobile-btn {
        display: flex;
    }

    /* Esconder menu horizontal no mobile */
    nav .nav-categories {
        display: none;
    }
}

/* Sidebar de categorias */
.categories-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.categories-sidebar.active {
    left: 0;
}

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

.categories-sidebar-header h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0;
}

.categories-sidebar-header .sidebar-logo-img {
    height: 24px;
    width: auto;
}

.close-sidebar {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-sidebar svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-black);
}

.categories-sidebar-nav {
    padding: var(--spacing-sm) 0;
}

.category-link {
    display: block;
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
    color: var(--color-black);
    text-decoration: none;
    border-bottom: 1px solid var(--color-gray-border);
    transition: background-color 0.2s ease;
}

.category-link:hover {
    background-color: var(--color-gray-light);
}

.category-link:active {
    background-color: #e8e8e8;
}

/* ========================================
   Filters Bar
   ======================================== */
.filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.filter-group {
    position: relative;
}

.filter-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--color-gray-border);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-black);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-dropdown-btn:hover {
    border-color: var(--color-black);
}

.filter-dropdown-btn svg {
    transition: transform 0.2s ease;
}

.filter-group.active .filter-dropdown-btn svg {
    transform: rotate(180deg);
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 160px;
    background: white;
    border: 1px solid var(--color-gray-border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow: hidden;
}

.filter-group.active .filter-dropdown {
    display: block;
}

.filter-option {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--color-black);
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--color-gray-border);
}

.filter-option:last-child {
    border-bottom: none;
}

.filter-option:hover {
    background-color: var(--color-gray-light);
}

.filter-option.active {
    background-color: var(--color-black);
    color: white;
}

/* Active Filters Tags */
.active-filters {
    display: flex;
    gap: 8px;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--color-gray-light);
    border: 1px solid var(--color-gray-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--color-black);
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: #e8e8e8;
    border-color: var(--color-black);
}

.filter-tag svg {
    width: 12px;
    height: 12px;
}

.filter-tag.clear-all {
    background: var(--color-black);
    color: white;
    border-color: var(--color-black);
}

.filter-tag.clear-all:hover {
    background: #333;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

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

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid var(--color-gray-border);
    color: var(--color-black);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-btn:hover {
    border-color: var(--color-black);
    background: var(--color-gray-light);
}

.pagination-btn.active {
    background: var(--color-black);
    color: white;
    border-color: var(--color-black);
}

.pagination-btn.active:hover {
    background: #333;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--color-gray-text);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

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

    .pagination-ellipsis {
        min-width: 36px;
        height: 36px;
    }
}

@media (min-width: 1024px) {
    .pagination-list {
        gap: 12px;
    }

    .pagination-btn {
        min-width: 44px;
        height: 44px;
        padding: 0 16px;
    }
}

/* ========================================
   Category Sections & Sliders
   ======================================== */
.category-section {
    margin-bottom: var(--spacing-xl);
}

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

.category-title {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.category-title a {
    color: var(--color-black);
    text-decoration: none;
    transition: opacity 0.3s;
}

.category-title a:hover {
    opacity: 0.7;
}

.slider-nav {
    display: flex;
    gap: 8px;
}

.slider-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--color-gray-border);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.slider-btn:hover:not(:disabled) {
    background: var(--color-black);
    border-color: var(--color-black);
    color: white;
}

.slider-btn:hover:not(:disabled) svg {
    stroke: white;
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-btn svg {
    width: 20px;
    height: 20px;
}

.category-slider-wrapper {
    overflow: hidden;
    position: relative;
}

.category-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(50% - 6px); /* Mobile: 2 produtos visíveis */
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.category-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-slider .product-card {
    scroll-snap-align: start;
    width: 100%;
}

/* Tablet */
@media (min-width: 768px) {
    .category-slider {
        grid-auto-columns: calc(33.333% - 10.67px); /* 3 produtos */
    }

    .category-title {
        font-size: 28px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .category-slider {
        grid-auto-columns: calc(25% - 12px); /* 4 produtos */
        gap: 16px;
    }

    .category-title {
        font-size: 32px;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
    }

    .slider-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ============================================
   PAYMENT PRICING DISPLAY (PIX + INSTALLMENTS)
   ============================================ */
.product-price-pix {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-weight: 600;
    font-size: 16px;
    margin: 4px 0 2px;
    line-height: 1.3;
}

.pix-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.product-price-installment {
    color: #666;
    font-size: 13px;
    margin: 0 0 16px;
    line-height: 1.3;
}

.product-out-of-stock {
    display: inline-flex;
    align-items: center;
    background-color: #FEE2E2;
    color: #DC2626;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 4px 0 16px;
    line-height: 1.3;
    min-height: 44px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .product-price-pix {
        font-size: 18px;
    }

    .pix-icon {
        width: 18px;
        height: 18px;
    }

    .product-price-installment {
        font-size: 14px;
    }
}
