
.products-hero {
    position: relative;
    color: white;
    overflow: hidden;
    padding: calc(var(--header-height) + clamp(3rem, 6vw, 4.5rem)) var(--content-gutter) clamp(3.5rem, 7vw, 5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-sophisticated);
    z-index: 0;
}

.products-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.18), transparent 55%),
                radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14), transparent 55%);
    z-index: 0;
}

.products-hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width-wide);
    margin: 0 auto;
    text-align: center;
    display: grid;
    gap: 1.5rem;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 1.5rem;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    opacity: 0.5;
}

.products-main {
    padding: var(--section-spacing) var(--content-gutter);
    max-width: var(--max-width-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 3rem);
    align-items: flex-start;
}

.products-controls {
    display: grid;
    gap: 1.5rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--surface);
    border-radius: var(--border-radius-card);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.products-area {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 4vw, 2.5rem);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.filters-header h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 600;
}

.clear-filters {
    color: var(--primary);
    background: none;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.clear-filters:hover {
    color: var(--secondary);
}

.filter-group {
    display: grid;
    gap: 1rem;
}

.filter-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.filter-option:hover {
    background: rgba(47, 79, 111, 0.08);
    transform: translateX(4px);
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.filter-option label {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    flex: 1;
}

.filter-count {
    color: var(--text-subtle);
    font-size: 0.85rem;
    background: rgba(47, 79, 111, 0.12);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.price-range {
    margin-top: 1rem;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
    width: 100%; 
    max-width: 100%; 
    box-sizing: border-box; 
}

.price-input {
    padding: 0.6rem 0.4rem; 
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-size: 0.85rem; 
    text-align: center;
    width: 100%; 
    min-width: 0; 
    box-sizing: border-box; 
}

.price-separator {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem; 
    white-space: nowrap; 
}
/* Search and Sort Area */
.search-sort-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.2rem;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 1rem;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

.sort-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.results-count {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-select {
    padding: 0.8rem 1.1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--surface);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 180px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sort-select:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.view-toggle {
    display: flex;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.view-btn {
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
}

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

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.product-item {
    background: var(--surface);
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid var(--border-subtle);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.product-item.list-view {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    padding: 1.5rem;
    gap: 2rem;
}

.product-image-container {
    position: relative;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.product-item.list-view .product-image-container {
    height: 120px;
    width: 120px;
    border-radius: 16px;
    flex-shrink: 0;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.product-image {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(32, 68, 101, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 2px solid rgba(47, 79, 111, 0.1);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.product-item:hover .product-image {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(32, 68, 101, 0.18);
}

.product-info {
    padding: clamp(1.5rem, 2.5vw, 1.8rem);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    flex: 1;
}

.product-item.list-view .product-info {
    padding: 0;
    position: static;
    gap: 0.8rem;
}

.product-category {
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.product-pricing {
    display: grid;
    gap: 0.35rem;
}

.price-main {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.price-personalization {
    font-size: 0.85rem;
    color: var(--text-subtle);
    line-height: 1.2;
    margin-top: 0.1rem;
}

.product-actions {
    display: flex;
    gap: 0.65rem;
    margin-top: auto;
}

.product-item.list-view .product-pricing {
    position: static;
}

.btn-product {
    flex: 1;
    padding: 0.7rem 1rem; /* Reduzido de 0.8rem 1.5rem */
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem; /* Reduzido de 0.9rem */
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem; /* Reduzido de 0.5rem */
    min-width: 0; /* Permite que os botões encolham */
}

.btn-primary-small {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-soft);
    border: none;
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary-small {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.pagination-btn {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-subtle);
    background: var(--surface);
    color: var(--text-dark);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    text-decoration: none;
}

.pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

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

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.load-more {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.load-more-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: var(--shadow-soft);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-results h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.product-item.list-view .product-name,
.product-item.list-view .product-description,
.product-item.list-view .product-features,
.product-item.list-view .product-category,
.product-item.list-view .product-pricing {
    height: auto;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    margin-bottom: 0.5rem;
}
/* Responsive Design */
@media (max-width: 1200px) {
    .products-main {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        width: 100%;
    }

    .products-controls {
        order: 2;
    }

    .products-area {
        order: 1;
    }
}

@media (max-width: 900px) {
    .products-main {
        padding-inline: var(--container-padding);
    }

    .sort-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-dropdown {
        justify-content: space-between;
    }

    .view-toggle {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding-inline: var(--container-padding);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-item.list-view {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.25rem;
    }

    .product-item.list-view .product-image-container {
        width: 100%;
        aspect-ratio: 3 / 2;
    }

    .product-item.list-view .product-actions {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .breadcrumb {
        font-size: 0.85rem;
    }

    .products-main {
        padding-inline: clamp(1rem, 5vw, 1.5rem);
    }

    .filters-sidebar {
        padding: 1.5rem;
    }

    .product-info {
        padding: 1.5rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.6rem;
    }
}