/* Hero Section Catálogo */
.catalog-hero-modern {
    position: relative;
    padding: 3rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f5f2 0%, #e55c78 100%);
    margin-top: -1px;
}

.catalog-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.catalog-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(229, 92, 120, 0.1), transparent 70%),
                radial-gradient(ellipse at bottom left, rgba(31, 26, 27, 0.1), transparent 70%);
}

.catalog-hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.catalog-hero-content {
    max-width: 800px;
}

.catalog-hero-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #e55c78, #d14567);
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(229, 92, 120, 0.3);
}

.catalog-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: #1f1a1b;
    margin-bottom: 1rem;
}

.catalog-title-main,
.catalog-title-accent {
    display: block;
}

.catalog-title-accent {
    color: #e55c78;
    position: relative;
}

.catalog-title-accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e55c78, transparent);
    border-radius: 2px;
}

.catalog-hero-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #433d3f;
    margin-bottom: 1.25rem;
    max-width: 600px;
}

.catalog-hero-stats {
    display: flex;
    gap: 2.5rem;
    padding: 1.25rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1.25rem;
}

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

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f1a1b;
    line-height: 1;
    background: linear-gradient(45deg, #e55c78, #d14567);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #433d3f;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Catálogo Moderno */
.catalog-modern {
    padding: 4rem 0;
    background: #f8f5f2;
}

.catalog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Filtros Modernos */
.catalog-filters-modern {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(229, 92, 120, 0.1);
    position: sticky;
    top: 2rem;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.filters-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1f1a1b;
    margin: 0;
}

.filters-toggle {
    display: none;
    background: none;
    border: none;
    color: #6b6466;
    cursor: pointer;
    padding: 0.5rem;
}

.filter-group-modern {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1f1a1b;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #e55c78;
    box-shadow: 0 0 0 3px rgba(229, 92, 120, 0.1);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #433d3f;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.filter-checkbox:hover {
    background-color: rgba(229, 92, 120, 0.05);
}

.filter-checkbox input {
    display: none;
}

.checkbox-mark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #e9ecef;
    border-radius: 0.25rem;
    position: relative;
    transition: all 0.3s ease;
}

/* Larger touch target - invisible but clickable */
.checkbox-mark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
}

.filter-checkbox input:checked + .checkbox-mark {
    background: #e55c78;
    border-color: #e55c78;
}

.filter-checkbox input:checked + .checkbox-mark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.filter-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #e55c78;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-submit-btn:hover {
    background: #d14567;
    transform: translateY(-2px);
}

.clear-filters-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b6466;
    text-decoration: none;
    font-size: 0.875rem;
    margin-top: 1rem;
    justify-content: center;
    transition: color 0.3s ease;
}

.clear-filters-link:hover {
    color: #e55c78;
}

/* Produtos Modernos */
.catalog-products-modern {
    min-height: 600px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(229, 92, 120, 0.1);
}

.products-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: #1f1a1b;
    margin: 0 0 0.5rem 0;
}

.products-count {
    color: #6b6466;
    font-size: 0.875rem;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
    border-color: #e55c78;
    color: #e55c78;
    background: rgba(229, 92, 120, 0.05);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.product-modern-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0eded;
    animation: fadeInUp 0.6s ease-out both;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: #e0dede;
}

/* Product Tags - Badge Style Profissional */
.product-tag-minimal {
    margin-bottom: 0.5rem;
}

.product-tag-minimal span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
}

.tag-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.tag-bestseller {
    background: linear-gradient(135deg, #e55c78, #d64d6a);
    color: white;
}

.tag-low-stock {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* Product Brand */
.product-brand {
    display: block;
    font-size: 0.75rem;
    color: #8a8486;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 4;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-modern-card:hover .wishlist-btn {
    opacity: 1;
}

.wishlist-btn:hover {
    background: #1f1a1b;
    color: white;
}

.wishlist-btn svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.wishlist-btn:hover svg {
    stroke: white;
}

.wishlist-btn.active {
    background: #e55c78;
    color: white;
}

.wishlist-btn.active svg {
    fill: currentColor;
    stroke: white;
}

/* Title como link */
.product-modern-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-modern-title a:hover {
    color: #e55c78;
}

.product-modern-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fafafa;
}

.product-modern-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5, #ebebeb);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.product-modern-content {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-modern-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f1a1b;
    margin: 0 0 0.35rem 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.product-modern-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0eded;
    margin-top: auto;
}

.product-modern-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f1a1b;
}

.product-modern-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid #1f1a1b;
}

.product-modern-btn.primary {
    background: #1f1a1b;
    color: white;
}

.product-modern-btn.primary:hover {
    background: #e55c78;
    border-color: #e55c78;
}

/* Empty State */
.empty-state-modern {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(229, 92, 120, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: #e55c78;
}

.empty-state-modern h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1f1a1b;
    margin-bottom: 1rem;
}

.empty-state-modern p {
    color: #6b6466;
    margin-bottom: 2rem;
}

.btn-secondary-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: #1f1a1b;
    padding: 1rem 2rem;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .catalog-filters-modern {
        position: static;
    }

    .filters-header {
        cursor: pointer;
    }

    .filters-toggle {
        display: block;
    }

    .catalog-filter-form {
        display: none;
    }

    .catalog-filter-form.active {
        display: block;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .catalog-hero-modern {
        padding: 2rem 0;
    }

    .catalog-hero-content {
        padding: 0 1rem;
    }

    .catalog-hero-title {
        font-size: 2rem;
    }

    .catalog-hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 0 0 0;
        margin-top: 1rem;
    }

    .catalog-modern {
        padding: 2rem 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

@media (max-width: 520px) {
    .products-grid {
        gap: 10px;
    }

    .product-modern-card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .product-modern-image img {
        padding: 0.75rem;
    }

    .product-modern-content {
        padding: 0.75rem 0.85rem 0.85rem;
    }

    .product-brand {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
        color: #999;
    }

    .product-modern-title {
        font-size: 0.82rem;
        line-height: 1.35;
        margin-bottom: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-weight: 500;
    }

    .product-modern-price {
        font-size: 0.95rem;
        font-weight: 700;
    }

    .product-modern-price-old {
        font-size: 0.7rem;
    }

    .product-modern-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding-top: 0.6rem;
        margin-top: 0.5rem;
        border-top: 1px solid #f0f0f0;
    }

    /* Botão retangular com texto VER PRODUTO */
    .product-modern-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        border-radius: 4px;
        min-width: auto;
        width: auto;
        height: auto;
    }

    .wishlist-btn {
        width: 28px;
        height: 28px;
        top: 0.5rem;
        right: 0.5rem;
        opacity: 1;
    }

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

    .product-tag-minimal span {
        font-size: 0.55rem;
        padding: 0.25rem 0.5rem;
    }
}

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

/* Price Range Inputs */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input {
    flex: 1;
    min-width: 0;
}

.price-separator {
    color: #6b6466;
    font-size: 0.875rem;
}

.price-range-hint {
    font-size: 0.75rem;
    color: #6b6466;
    margin-top: 0.5rem;
    text-align: center;
}

/* Sort Dropdown */
.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-label {
    font-size: 0.875rem;
    color: #6b6466;
    white-space: nowrap;
}

.sort-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    background: white;
    font-size: 0.875rem;
    color: #1f1a1b;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6466' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #e55c78;
    box-shadow: 0 0 0 3px rgba(229, 92, 120, 0.1);
}

/* Pagination */
.pagination-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(229, 92, 120, 0.1);
}

.pagination-info {
    font-size: 0.875rem;
    color: #6b6466;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 0.5rem;
    color: #6b6466;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    border-color: #e55c78;
    color: #e55c78;
    background: rgba(229, 92, 120, 0.05);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 0.5rem;
    color: #1f1a1b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-num:hover {
    border-color: #e55c78;
    color: #e55c78;
}

.pagination-num.active {
    background: #e55c78;
    border-color: #e55c78;
    color: white;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: #6b6466;
}

@media (max-width: 768px) {
    .sort-dropdown {
        width: 100%;
    }

    .sort-select {
        flex: 1;
    }

    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-btn,
    .pagination-num {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .products-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .view-options {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}

/* ========== LIST VIEW STYLES ========== */
.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.products-grid.list-view .product-modern-card {
    flex-direction: row;
    max-height: 180px;
}

.products-grid.list-view .product-modern-image {
    width: 180px;
    min-width: 180px;
    aspect-ratio: unset;
    height: 100%;
}

.products-grid.list-view .product-modern-image img {
    padding: 0.75rem;
}

.products-grid.list-view .product-modern-content {
    flex: 1;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-grid.list-view .product-modern-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.products-grid.list-view .product-brand {
    margin-bottom: 0.5rem;
}

.products-grid.list-view .product-modern-footer {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.products-grid.list-view .product-modern-price {
    font-size: 1.25rem;
}

.products-grid.list-view .wishlist-btn {
    opacity: 1;
}

/* List view mobile */
@media (max-width: 600px) {
    .products-grid.list-view .product-modern-card {
        flex-direction: column;
        max-height: none;
    }

    .products-grid.list-view .product-modern-image {
        width: 100%;
        min-width: unset;
        aspect-ratio: 16 / 9;
        height: auto;
    }
}
