/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
    padding: 3rem 1rem;
    text-align: center;
    color: white;
}

.page-title {
    font-size: 2.5rem;
    font-family: Georgia, 'Times New Roman', serif;
    margin-bottom: 0.5rem;
}

.page-description {
    font-size: 1.125rem;
    color: #d6d3d1;
}

/* Products Page Layout */
.products-page {
    padding: 2rem 0;
    background-color: #fafaf9;
    min-height: calc(100vh - 400px);
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: sticky;
        top: 80px;
        z-index: 10;
    }
}

/* Filters Sidebar */
.filters-sidebar {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f5f5f4;
}

.filters-title {
    font-size: 1.5rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: #1c1917;
    margin: 0;
}

.filters-clear {
    background: none;
    border: none;
    color: #d97706;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
}

.filters-clear:hover {
    color: #b45309;
}

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

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-heading {
    font-size: 1.125rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: #292524;
    margin-bottom: 1rem;
}

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

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #57534e;
    font-size: 0.9375rem;
}

.filter-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: #d97706;
}

.filter-option:hover {
    color: #1c1917;
}

/* Products Main */
.products-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background-color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.products-count {
    font-size: 1rem;
    color: #57534e;
}

#countNumber {
    font-weight: 600;
    color: #1c1917;
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.products-sort label {
    font-size: 0.9375rem;
    color: #57534e;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #d6d3d1;
    border-radius: 0.375rem;
    background-color: white;
    color: #1c1917;
    font-size: 0.9375rem;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* Products Grid Full */
.products-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .products-grid-full {
        grid-template-columns: 1fr;
    }
}

/* Product Card - Reused from main styles but can be customized */
.product-card-full {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.product-card-full:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image-container-full {
    position: relative;
    height: 16rem;
    overflow: hidden;
}

.product-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-era-full {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: #d97706;
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.product-condition-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: rgba(28, 25, 23, 0.9);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.product-content-full {
    padding: 1.25rem;
}

.product-category {
    font-size: 0.75rem;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-name-full {
    font-size: 1.125rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: #1c1917;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-description-full {
    color: #57534e;
    margin-bottom: 1rem;
    font-size: 0.875rem;

    /* 🔽 CLAMP DE TEXTO */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;   /* ← cambiá a 5 si querés */
    overflow: hidden;
}

.product-footer-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price-full {
    font-size: 1.375rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: #b45309;
}

.product-btn-full {
    background-color: #1c1917;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-btn-full:hover {
    background-color: #292524;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #78716c;
}

.no-results svg {
    margin: 0 auto 1.5rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: #44403c;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #78716c;
}

/* Mobile Filters Toggle */
@media (max-width: 1024px) {
    .filters-sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }
}

.product-card-full {
    cursor: pointer;
}
