/* Frontend Catalog Styles */

.jre-catalog-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
}

/* Sidebar */
.jre-catalog-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.jre-catalog-filter-group {
    margin-bottom: 25px;
}

.jre-filter-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    color: #0f172a;
}

.jre-catalog-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.jre-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.jre-filter-list label {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Main Area */
.jre-catalog-main {
    flex-grow: 1;
}

.jre-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.jre-catalog-title {
    margin: 0;
    font-size: 24px;
    color: #0f172a;
}

/* Grid */
.jre-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.jre-product-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.jre-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.jre-product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #f8fafc;
}

.jre-product-category {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.jre-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.4;
    flex-grow: 1;
}

.jre-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 15px;
}

.jre-add-to-quote-btn {
    width: 100%;
    padding: 10px;
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.jre-add-to-quote-btn:hover {
    background: #334155;
}

.jre-add-to-quote-btn.added {
    background: #16a34a;
}

/* Floating Cart */
.jre-floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e293b;
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

.jre-btn-view-quote {
    background: #fbbf24;
    color: #0f172a;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.jre-btn-view-quote:hover {
    transform: scale(1.05);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Pagination */
.jre-catalog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.jre-page-btn {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.jre-page-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.jre-page-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

@media (max-width: 768px) {
    .jre-catalog-container {
        flex-direction: column;
    }

    .jre-catalog-sidebar {
        width: auto;
    }
}