/**
 * Comerziofy - Catalog Page Styles
 * Extracted from renderCatalogPage()
 * Dynamic vars (--store-primary, --store-primary-dark) defined inline in PHP
 */

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

.catalog-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.catalog-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.catalog-count {
    color: #6b7280;
    font-size: 0.875rem;
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.catalog-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.catalog-filter-btn:hover {
    border-color: var(--store-primary);
    color: var(--store-primary);
}

.catalog-filter-btn.active {
    background: var(--store-primary);
    border-color: var(--store-primary);
    color: #ffffff;
}

.catalog-filter-btn i {
    font-size: 0.75rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.catalog-product {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.catalog-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.catalog-product-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f3f4f6;
    overflow: hidden;
}

.catalog-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-product-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9ca3af;
    font-size: 2.5rem;
}

.catalog-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.catalog-product-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f59e0b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.catalog-product-info {
    padding: 1rem;
}

.catalog-product-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.catalog-product-price .current {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--store-primary);
}

.catalog-product-price .compare {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.catalog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.catalog-empty i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.catalog-empty h3 {
    font-size: 1.25rem;
    color: #374151;
    margin: 0 0 0.5rem;
}

@media (max-width: 1280px) {
    .catalog-container {
        padding: 1.5rem 1rem;
    }
}

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

    .catalog-product-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .catalog-container {
        padding: 1rem 0.75rem;
    }

    .catalog-header {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .catalog-title {
        font-size: 1.375rem;
    }

    .catalog-count {
        font-size: 0.8125rem;
    }

    .catalog-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0.75rem 0;
        gap: 0.375rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .catalog-filters::-webkit-scrollbar {
        display: none;
    }

    .catalog-filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .catalog-filter-btn i {
        font-size: 0.6875rem;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
        margin-top: 1rem;
    }

    .catalog-product {
        border-radius: 8px;
    }

    .catalog-product-image {
        height: 140px;
    }

    .catalog-product-badge {
        top: 6px;
        left: 6px;
        padding: 3px 6px;
        font-size: 0.625rem;
        border-radius: 3px;
    }

    .catalog-product-featured {
        top: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 0.625rem;
        border-radius: 3px;
    }

    .catalog-product-featured i {
        display: none;
    }

    .catalog-product-info {
        padding: 0.625rem;
    }

    .catalog-product-name {
        font-size: 0.8125rem;
        margin-bottom: 0.375rem;
    }

    .catalog-product-price .current {
        font-size: 0.9375rem;
    }

    .catalog-product-price .compare {
        font-size: 0.75rem;
    }

    .catalog-empty {
        padding: 3rem 1.5rem;
    }

    .catalog-empty i {
        font-size: 3rem;
    }

    .catalog-empty h3 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .catalog-container {
        padding: 0.75rem 0.5rem;
    }

    .catalog-title {
        font-size: 1.25rem;
    }

    .catalog-filter-btn {
        padding: 0.4375rem 0.75rem;
        font-size: 0.75rem;
    }

    .catalog-grid {
        gap: 0.5rem;
    }

    .catalog-product-image {
        height: 120px;
    }

    .catalog-product-info {
        padding: 0.5rem;
    }

    .catalog-product-name {
        font-size: 0.75rem;
    }

    .catalog-product-price .current {
        font-size: 0.875rem;
    }

    .catalog-product-price .compare {
        font-size: 0.6875rem;
    }
}
