@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary: #000000;
    --secondary: #222222;
    --accent: #555555;
    --bg-light: #ffffff;
    --text-dark: #000000;
    --text-muted: #666666;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.inverted {
    --primary: #ffffff;
    --secondary: #eeeeee;
    --accent: #cccccc;
    --bg-light: #000000;
    --text-dark: #ffffff;
    --text-muted: #aaaaaa;
    --white: #000000;
    --glass: rgba(0, 0, 0, 0.9);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand-font {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    background: var(--white);
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    color: var(--text-dark);
    border-bottom: 1px solid #eee;
}

body.inverted header {
    background: var(--primary);
    color: var(--white);
    border-bottom: 1px solid #222;
}

header nav ul li a {
    color: var(--text-dark);
    font-weight: 600;
}

body.inverted header nav ul li a {
    color: var(--white);
}

.search-container {
    position: relative;
    width: 250px;
}

.search-container input {
    width: 100%;
    padding: 8px 15px 8px 35px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-container input:focus {
    width: 300px;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.search-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--secondary);
}

.user-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.b2b-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Hero Carousel */
.hero-slider {
    width: 100%;
    height: 85vh;
    min-height: 500px;
}

.hero-slider .swiper-wrapper,
.hero-slider .swiper-slide {
    height: 100%;
}

.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}

/* escurece a imagem para o texto ficar legÃƒÂ­vel */
.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;  /* fica acima do overlay */
    z-index: 2;
    padding: 2.5rem 3rem;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
    animation: fadeInUp 1s ease;
}

.hero-slider .swiper-pagination {
    bottom: 20px;
    z-index: 3;
}

.hero-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    width: 28px;
    border-radius: 5px;
}

/* Nav dropdown */
nav ul li {
    position: relative;
}

nav ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 500;
    padding: 0.5rem 0;
}

nav ul li:hover .dropdown {
    display: block;
}

body.inverted nav ul li .dropdown {
    background: #111;
    border-color: #333;
}

nav ul li .dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

body.inverted nav ul li .dropdown a {
    color: #fff;
}

nav ul li .dropdown a:hover {
    background: #f5f5f5;
}

body.inverted nav ul li .dropdown a:hover {
    background: #222;
}

/* Category Slider */
.category-slider {
    padding: 2rem 5%;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}


/* Categories Section */
.section-title {
    text-align: center;
    margin: 6rem 0 4rem;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.category-slider {
    padding: 2rem 5% 5rem;
}

.category-card {
    display: block;
    position: relative;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    padding: 4rem 3rem;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.6) 0%, 
        rgba(0,0,0,0.1) 50%, 
        transparent 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
}

.category-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: cubic-bezier(0.19, 1, 0.22, 1) 0.8s;
}

.category-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    transform: translateY(20px);
    transition: cubic-bezier(0.19, 1, 0.22, 1) 0.8s 0.1s;
}

.btn-explore {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(30px);
    transition: cubic-bezier(0.19, 1, 0.22, 1) 0.8s 0.2s;
}

.category-card:hover .category-overlay h3,
.category-card:hover .category-overlay p,
.category-card:hover .btn-explore {
    opacity: 1;
    transform: translateY(0);
}

/* Product Cards Premium */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 4rem;
    padding: 0 5% 8rem;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

.product-card {
    background: #fff;
    border-radius: 20px;
    padding: 12px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

.product-img {
    aspect-ratio: 3 / 4.2;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: #fdfdfd;
}

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

.product-actions {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.btn-quick-view {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary);
    border: none;
    padding: 15px 30px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.btn-quick-view:hover {
    background: var(--primary);
    color: var(--white);
}

.badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 8px 18px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-info {
    padding: 2rem 1rem 1rem;
    text-align: center;
}

.product-ref {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    color: #111;
    line-height: 1.4;
}

.product-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.6rem;
    letter-spacing: -1px;
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        border-bottom: 1px solid #eee;
        padding: 1rem 5%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }

    body.inverted .nav-links {
        background: var(--primary);
        border-color: #333;
    }

    .nav-links li {
        margin: 10px 0;
    }
    
    .nav-links li .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        border-left: 2px solid #eee;
        display: none; /* hidden by default on mobile unless toggled */
    }

    .nav-links li.active .dropdown {
        display: block;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
    }
    
    .search-container {
        display: none; /* Hide desktop search */
    }
    
    .nav-links .search-container {
        display: block; /* Show mobile search inside nav */
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}

/* List View Layout */
.products-lista {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.products-lista .product-card {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: stretch;
    border: 1px solid #f0f0f0;
    padding: 0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

body.inverted .products-lista .product-card {
    background: #1a1a1a;
    border-color: #333;
}

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

.products-lista .product-img {
    width: 35%;
    flex-shrink: 0;
    background: #fdfdfd;
    display: flex;
}

.products-lista .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.products-lista .product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 2rem;
    text-align: left;
}

.products-lista .product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.products-lista .product-info .ref-code {
    font-size: 0.7rem;
    color: #aaa;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.products-lista .product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 0.5rem;
    display: flex;
    align-items: baseline;
}

.products-lista .price-type {
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
    margin-left: 8px;
    text-transform: lowercase;
}

@media (max-width: 768px) {
    .products-lista .product-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .products-lista .product-img {
        width: 100%;
        height: auto;
    }
}

/* Product Detail Page */
.detail-container {
    padding: 2rem 5%;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-image-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    border: 1px solid #eee;
}

.main-image-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.main-image-slider::-webkit-scrollbar {
    display: none;
}

.slider-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
}

.slider-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: #000;
    color: #fff;
}

.slider-arrow.prev { left: 1rem; }
.slider-arrow.next { right: 1rem; }

@media (max-width: 768px) {
    .slider-arrow { display: none; }
}

.thumbnails-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.thumbnails-container::-webkit-scrollbar {
    width: 4px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 10px;
}

.thumb-item {
    flex: 0 0 80px;
    height: 80px;
    scroll-snap-align: center;
}

.thumb-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: bottom;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.thumb-item img:hover {
    border-color: var(--primary);
}

@media (max-width: 1024px) {
    .product-grid {
        gap: 2rem;
    }
}

.mobile-filter-header {
    display: none;
}

/* Sidebar Filters */
.sidebar-filters {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

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

.filter-group h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    color: #000;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
}

.filter-options.sizes-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}

.filter-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: 0.2s;
    width: 100%;
}

.filter-item:hover {
    color: #000;
}

.filter-item input {
    cursor: pointer;
}

.sizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.size-filter {
    cursor: pointer;
}

.size-filter input {
    display: none;
}

.size-filter span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    background: #fff;
    transition: 0.2s;
    cursor: pointer;
}

.size-filter input:checked + span {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn-clear-filters {
    width: 100%;
    padding: 10px;
    background: #eee;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 1rem;
    transition: 0.3s;
}

.btn-clear-filters:hover {
    background: #ddd;
}

@media (max-width: 768px) {
    .sidebar-filters {
        position: static;
        margin-bottom: 2rem;
    }
}

/* Collection List Page */
.collection-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

@media (max-width: 1024px) {
    .collection-grid {
        grid-template-columns: 200px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .detail-container {
        padding: 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-details {
        order: 2;
    }

    .thumbnails-container {
        justify-content: center !important;
        -webkit-overflow-scrolling: touch;
    }
}
.mobile-filter-toggle {
    display: none;
    padding: 8px 15px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

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

    .sidebar-filters {
        position: fixed !important;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        z-index: 9999;
        transition: 0.3s;
        box-shadow: 20px 0 50px rgba(0,0,0,0.1);
        overflow-y: auto;
        margin-bottom: 0;
    }

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

    .mobile-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        border-bottom: 1px solid #eee;
        background: #fff;
    }

    .mobile-filter-header h3 {
        margin: 0;
        font-size: 1.1rem;
    }

    .mobile-filter-header button {
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        line-height: 1;
    }
}


/* --- Correção Layout de LISTA (2 por linha) --- */
.products-lista {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)) !important;
    gap: 2rem !important;
}

.products-lista .product-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    height: 260px !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}

.products-lista .product-img {
    width: 200px !important;
    height: 100% !important;
    flex-shrink: 0 !important;
}

.products-lista .product-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

.products-lista .product-info {
    flex-grow: 1 !important;
    padding: 1.5rem 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: left !important;
}

@media (max-width: 1100px) {
    .products-lista {
        grid-template-columns: 1fr !important;
    }
}
.products-lista {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-lista .product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.products-lista .product-card:hover {
    transform: translateY(-5px);
}

.products-lista .product-img {
    width: 220px;
    height: 100%;
    flex-shrink: 0;
}

.products-lista .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.products-lista .product-info {
    flex-grow: 1;
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-lista .ref-code {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.products-lista h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #111;
}

.products-lista .product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.products-lista .price-type {
    font-size: 0.8rem;
    color: #888;
    font-weight: normal;
}







/* --- Layout de LISTA (CorreÃ§Ã£o Final de Bordas e Corte) --- */
.products-lista {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)) !important;
    gap: 2rem !important;
}

.products-lista .product-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    background: #fff !important;
    border-radius: 15px !important;
    overflow: hidden !important; /* O card pai faz o corte arredondado externo */
    min-height: 280px !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* IMPORTANTE: Resetar o radius global do container da imagem na lista */
.products-lista .product-card .product-img {
    width: 200px !important;
    height: auto !important; /* Deixa ocupar a altura total do card */
    min-height: 100% !important;
    flex-shrink: 0 !important;
    border-radius: 0 !important; /* REMOVE o arredondamento que causava o erro Ã  direita */
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

.products-lista .product-card .product-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important; /* Ajustado para nÃ£o cortar o rodapÃ© excessivamente */
    border-radius: 0 !important;
    display: block !important;
}

.products-lista .product-info {
    flex-grow: 1 !important;
    padding: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: left !important;
    background: #fff !important;
}

/* --- Transição de Página Suave --- */
@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    animation: fadeInPage 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg-light);
}

.page-transition {
    min-height: 80vh;
}

/* --- HTMX Smooth Transitions --- */
#loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    z-index: 9999;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    opacity: 0;
}

.htmx-request#loading-bar {
    opacity: 1;
    transform: scaleX(1);
}

.htmx-swapping {
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.htmx-added {
    opacity: 0;
    animation: fadeInPage 0.4s forwards ease-in;
}

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

/* Evitar que o header/footer pisque */
header, footer {
    transition: none !important;
}

/* --- Modern Footer Styling --- */
.main-footer {
    background: #0a0a0a;
    color: #fff;
    padding: 8rem 5% 0;
    margin-top: 8rem;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 6rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #fff;
}

.footer-logo {
    height: 35px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-about {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: #fff;
    font-size: 1.2rem;
    transition: opacity 0.3s;
}

.footer-social a:hover {
    opacity: 0.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-newsletter p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 0;
    width: 100%;
    font-size: 0.9rem;
    outline: none;
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    padding: 0 10px;
    letter-spacing: 1px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding: 2.5rem 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.footer-seals {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.4rem;
}

.safe-text {
    font-size: 0.65rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .main-footer { padding-top: 5rem; }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .footer-logo { margin: 0 auto 1.5rem; }
    .footer-about { margin: 0 auto 2rem; }
    .footer-social { justify-content: center; }
    .footer-bottom-container {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* --- Correção Swiper Pagination & Fade Jump --- */
.category-slider {
    padding-bottom: 60px !important; /* Dá espaço para os pontos abaixo */
}

.category-slider .swiper-pagination {
    bottom: 10px !important;
}

.category-slider .swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

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

body {
    animation: fadeInPage 0.4s ease-in-out;
}

/* --- Swiper Pagination Fix (fora das fotos) --- */
.category-slider.swiper {
    padding-bottom: 55px !important;
    overflow: visible !important;
}

.category-slider .swiper-wrapper {
    /* Garante que o clipping não corte os pontos */
}

.category-slider .swiper-pagination {
    bottom: 0px !important;
    position: absolute;
}

.category-slider .swiper-pagination-bullet {
    background: #555;
    opacity: 1;
}

.category-slider .swiper-pagination-bullet-active {
    background: var(--primary);
}

/* Corrige o overflow do section pai para mostrar paginação */
section {
    overflow: visible !important;
}

/* --- Swiper Category: Paginacao Externa (fora das fotos) --- */
.category-pagination {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0 0;
}

/* Remove todos os estilos anteriores que tentavam forcar paginacao interna */
.category-slider.swiper {
    padding-bottom: 0 !important;
    overflow: hidden !important;
}

.category-slider .swiper-pagination {
    display: none !important;
}

/* ===========================
   BUSCA INTELIGENTE - Dropdown
   =========================== */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 380px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    z-index: 9999;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.sdrop-section-title {
    padding: 10px 16px 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.sdrop-section-title:first-child { border-top: none; }

.sdrop-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #f8f8f8;
    transition: background 0.2s;
}

.sdrop-category:hover { background: #f5f5f5; }

.sdrop-cat-nome {
    font-weight: 600;
    font-size: 0.9rem;
}

.sdrop-cat-info {
    font-size: 0.75rem;
    color: #999;
}

.sdrop-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #f8f8f8;
    transition: background 0.2s;
}

.sdrop-product:hover { background: #f5f5f5; }

.sdrop-product img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sdrop-product-nome {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

.sdrop-product-preco {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 2px;
}

.sdrop-ver-todos {
    display: block;
    padding: 14px 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    background: #f9f9f9;
    font-weight: 600;
    transition: background 0.2s;
}

.sdrop-ver-todos:hover { background: #f0f0f0; }

/* ===========================
   BUSCA - Página Full
   =========================== */
.busca-page {
    min-height: 80vh;
    padding-bottom: 6rem;
}

.busca-hero {
    background: #000;
    padding: 5rem 5% 4rem;
    text-align: center;
}

.busca-form-full {
    max-width: 700px;
    margin: 0 auto;
}

.busca-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 4px 4px 4px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    gap: 10px;
}

.busca-input-wrap i {
    color: #999;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.busca-input-wrap input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 12px 0;
    background: transparent;
}

.busca-clear {
    color: #999;
    text-decoration: none;
    padding: 5px;
    flex-shrink: 0;
}

.busca-input-wrap button {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.busca-input-wrap button:hover { opacity: 0.8; }

.busca-hints {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.busca-hints a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.busca-hints a:hover { color: #fff; }

.busca-section {
    padding: 3rem 5% 0;
}

.busca-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111;
}

.busca-section-title i { color: #999; }

.busca-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.busca-cat-tag {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border: 1.5px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    color: #111;
    transition: all 0.2s;
    min-width: 140px;
}

.busca-cat-tag:hover {
    border-color: #000;
    background: #000;
    color: #fff;
}

.busca-cat-nome { font-weight: 700; font-size: 1rem; }
.busca-cat-gen { font-size: 0.75rem; color: #999; margin-top: 2px; }
.busca-cat-tag:hover .busca-cat-gen { color: #ccc; }
.busca-cat-total { font-size: 0.7rem; color: #bbb; margin-top: 4px; }

.busca-empty {
    text-align: center;
    padding: 5rem 0;
    color: #999;
}

.busca-empty h3 { font-size: 1.5rem; color: #333; margin: 1.5rem 0 0.5rem; }
.busca-empty p { margin-bottom: 2rem; }

.busca-sugestoes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.busca-sugestoes a {
    padding: 10px 20px;
    border: 1.5px solid #eee;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.busca-sugestoes a:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* --- Reset Bootstrap Overrides --- */
header a, header a:hover { text-decoration: none !important; color: inherit !important; }
.nav-links a { text-decoration: none !important; color: #000 !important; }
.user-actions a { color: #000 !important; }
.dropdown a { text-decoration: none !important; }

/* --- User Dropdown Submenu --- */
.user-dropdown-container { position: relative; }
.user-submenu { position: absolute; top: calc(100% + 15px); right: -10px; width: 220px; background: #fff; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-top: 3px solid #1a2a4c; display: none; z-index: 1000; overflow: hidden; }
.user-dropdown-container:hover .user-submenu { display: block; }
.user-submenu-header { padding: 20px; background: #f8f9fa; border-bottom: 1px solid #eee; }
.welcome-text { font-size: 0.65rem; color: #888; font-weight: 700; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.user-name { font-size: 1rem; color: #1a2a4c; font-weight: 800; margin: 0; }
.user-submenu-body { padding: 10px 0; }
.user-submenu-body a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: #444; font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: background 0.2s, color 0.2s; }
.user-submenu-body a i { font-size: 1rem; width: 20px; color: #1a2a4c; }
.user-submenu-body a:hover { background: #f1f5f9; color: #000; }
.submenu-divider { height: 1px; background: #eee; margin: 8px 0; }
.logout-link { color: #d63031 !important; }
.logout-link i { color: #d63031 !important; }

/* --- Fix User Dropdown Gap --- */
.user-submenu { top: 100% !important; }
.user-dropdown-container::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 20px; background: transparent; display: none; }
.user-dropdown-container:hover::after { display: block; }
