/* Catalogue Page - Calm, Curated Design Matching Homepage */

/* Catalogue Header */
.catalogue-header {
    background: linear-gradient(135deg, var(--pale-green) 0%, var(--bg-cream) 100%);
    padding: 4rem 20px 3rem;
    text-align: center;
    border-bottom: 1px solid rgba(26, 77, 46, 0.1);
}

.catalogue-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.catalogue-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.catalogue-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-medium);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Catalogue Container */
.catalogue-container {
    padding: 3rem 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Enhanced Filters */
.catalogue-filters {
    background: var(--bg-white);
    padding: 0;
    border-radius: 12px;
    margin-bottom: 4rem;
    border: 1px solid rgba(26, 77, 46, 0.1);
    overflow: hidden;
}

.filter-toggle-btn {
    display: none;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--pale-green);
    border: none;
    border-bottom: 1px solid rgba(26, 77, 46, 0.1);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-green);
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.filter-toggle-btn:hover {
    background: var(--light-green);
}

.filter-toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.filters-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filters-form.is-open {
    display: flex;
}

/* Active Filters */
.active-filters {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(26, 77, 46, 0.1);
    margin-bottom: 1rem;
}

.active-filters-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 0.75rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: var(--pale-green);
    color: var(--primary-green);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--light-green);
}

.filter-pill-remove {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    margin-left: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.filter-pill-remove:hover {
    opacity: 1;
}

.clear-all-filters {
    color: var(--secondary-green);
    text-decoration: underline;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.clear-all-filters:hover {
    color: var(--primary-green);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--primary-green);
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(26, 77, 46, 0.2);
    border-radius: 6px;
    font-size: 0.95rem;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--secondary-green);
}

.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range input {
    flex: 1;
}

.price-range span {
    color: var(--text-light);
    font-size: 0.85rem;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.filter-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

/* Category Sections */
.category-section {
    margin-bottom: 5rem;
}

.category-header {
    margin-bottom: 2.5rem;
}

.category-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    letter-spacing: -0.5px;
}

.plant-count {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.category-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
    max-width: 700px;
    margin-top: 0.5rem;
}

/* Plant Grid */
.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Plant Cards - Calm, Curated Design */
.plant-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(26, 77, 46, 0.1);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.plant-card:hover {
    border-color: var(--light-green);
    box-shadow: 0 2px 12px rgba(26, 77, 46, 0.08);
    transform: translateY(-2px);
}

.plant-card.featured {
    border-color: var(--accent-green);
    border-width: 2px;
}

.plant-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: var(--bg-light);
}

.plant-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.plant-card:hover .plant-image {
    transform: scale(1.03);
}

.plant-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-green);
    color: var(--primary-green);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 1;
}

.plant-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.75rem;
}

.plant-category {
    font-size: 0.8rem;
    color: var(--secondary-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plant-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-green);
    line-height: 1.3;
    margin: 0;
}

.plant-description {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.plant-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-medium);
    margin: 0.25rem 0;
}

.plant-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.plant-detail-icon {
    font-size: 0.9rem;
}

.plant-detail-text {
    color: var(--text-medium);
}

.plant-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(26, 77, 46, 0.08);
}

.availability {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.availability.in-stock {
    background: var(--pale-green);
    color: var(--primary-green);
}

.availability.limited {
    background: #fff8e1;
    color: #8b6914;
}

.availability.sold-out {
    background: #f5f5f5;
    color: var(--text-light);
}

.plant-price {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-medium);
}

/* Request Plant Button */
.request-plant-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--secondary-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
    font-family: inherit;
}

.request-plant-btn:hover:not(.disabled) {
    background: var(--primary-green);
    transform: translateY(-1px);
}

.request-plant-btn:active:not(.disabled) {
    transform: translateY(0);
}

.request-plant-btn.disabled,
.request-plant-btn:disabled {
    background: #e5e5e5;
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid rgba(26, 77, 46, 0.1);
}

.empty-state h3 {
    font-size: 1.75rem;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-medium);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .catalogue-header {
        padding: 3rem 20px 2rem;
    }
    
    .catalogue-container {
        padding: 2rem 20px;
    }
    
    .filter-toggle-btn {
        display: flex;
    }
    
    .filters-form {
        display: none;
        padding: 1.5rem;
    }
    
    .filters-form.is-open {
        display: flex !important;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .price-range {
        flex-direction: column;
        align-items: stretch;
    }
    
    .price-range span {
        display: none;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .category-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .plant-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .plant-card-content {
        padding: 1.25rem;
    }
    
    .plant-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plant-card,
    .plant-image,
    .request-plant-btn {
        transition: none;
    }
    
    .plant-card:hover {
        transform: none;
    }
}
