.flexnet-archive-wrapper {
    padding: 40px 0;
    min-height: 600px;
}

.flexnet-archive-container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.flexnet-archive-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.flexnet-products-sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.flexnet-search-box {
    position: relative;
    margin-bottom: 24px;
}

.flexnet-search-box .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 20px;
    pointer-events: none;
}

.flexnet-search-box input {
    width: 100%;
    height: 54px;
    padding: 0 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    background: #fafafa;
    transition: all 0.2s ease;
    font-weight: 400;
}

.flexnet-search-box input:focus {
    outline: none;
    border-color: #c0c0c0;
    background: #fff;
}

.flexnet-search-box input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.flexnet-filters-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
}

.flexnet-filters-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.flexnet-filters-header .dashicons {
    color: #495057;
    font-size: 20px;
}

.flexnet-filters-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.flexnet-filter-group {
    margin-bottom: 28px;
}

.flexnet-filter-group:last-child {
    margin-bottom: 0;
}

.flexnet-filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.flexnet-filter-title:hover {
    opacity: 0.7;
}

.flexnet-filter-title h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #212529;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flexnet-filter-title .dashicons {
    color: #6c757d;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.flexnet-filter-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.flexnet-filter-list li {
    margin-bottom: 12px;
    list-style: none !important;
}

.flexnet-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    position: relative;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.flexnet-checkbox-label:hover {
    color: #212529;
}

.flexnet-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    position: relative;
    height: 20px;
    width: 20px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-custom.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
}

.flexnet-checkbox-label:hover .checkbox-custom {
    border-color: #000;
}

.flexnet-checkbox-label input:checked ~ .checkbox-custom {
    border-color: #000;
    background: #000;
}

.checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.flexnet-checkbox-label input:checked ~ .checkbox-custom:after {
    display: block;
}

.filter-icon {
    margin-right: 10px;
    font-size: 16px;
    color: #0066cc;
    flex-shrink: 0;
}

.filter-icon-img {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

.filter-icon-svg {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.filter-icon-svg svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.filter-name {
    flex: 1;
    font-weight: 500;
}

.filter-count {
    color: #adb5bd;
    font-size: 13px;
    font-weight: 600;
    margin-left: 8px;
}

.flexnet-reset-filters {
    width: 100%;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #495057;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.flexnet-reset-filters:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #212529;
}

.flexnet-archive-main {
    flex: 1;
    min-width: 0;
}

.flexnet-results-header {
    margin-bottom: 30px;
    color: #6c757d;
    font-size: 15px;
    font-weight: 500;
}

.flexnet-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.flexnet-product-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.flexnet-product-card:hover {
    border-color: #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card-image {
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.product-card-image a {
    display: block;
}

.product-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.flexnet-product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-badges {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 2;
    pointer-events: none;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: auto;
}

.badge-vertical {
    background: #000;
    color: #fff;
}

.flexnet-filter-list label span, .filter-icon {
    color:#000;
}

.badge-category {
    background: #e9ecef;
    color: #495057;
}

.badge-clickable {
    cursor: pointer;
    transition: all 0.2s;
}

.badge-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge-plus {
    font-weight: 900;
    margin-left: 2px;
}

.product-title {
    margin: 0 0 12px 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.product-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #0066cc;
}

.product-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 2px solid #f1f3f5;
}

.price-label {
    color: #6c757d;
    font-size: 13px;
    font-weight: 600;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

.variation-selector {
    margin-bottom: 16px;
}

.variation-selector select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variation-selector select:focus {
    outline: none;
    border-color: #0066cc;
    background: #fff;
}

.product-actions {
    margin-top: auto;
}

.flexnet-add-to-quote {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    height: 48px;
}

.flexnet-add-to-quote:hover {
    background: #333;
    border-color: #333;
}

.flexnet-add-to-quote .dashicons {
    font-size: 18px;
}

.flexnet-view-product {
    background: #f8f9fa;
    color: #000;
    border: 1px solid #dee2e6;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
    margin-top: 8px;
    box-sizing: border-box;
    height: 48px;
}

.flexnet-view-product:hover {
    background: #e9ecef;
}

.flexnet-view-product .dashicons {
    font-size: 18px;
}

.flexnet-quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000;
    border: 1px solid #000;
    border-radius: 25px;
    padding: 0;
    height: 48px;
    width: 100%;
    overflow: hidden;
}

.quantity-btn {
    background: transparent;
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.quantity-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.quantity-display {
    flex: 1;
    text-align: center;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.flexnet-btn-outline {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.flexnet-btn-outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
}

.flexnet-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 249, 250, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 16px;
}

.flexnet-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.flexnet-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.flexnet-no-results .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.flexnet-no-results p {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .flexnet-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .flexnet-archive-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .flexnet-archive-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .flexnet-archive-wrapper {
        padding: 40px 0;
    }
    
    .flexnet-archive-container {
        padding: 0 16px;
    }
    
    .flexnet-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card-content {
        padding: 20px;
    }
}

.flexnet-archive-wrapper * {
    box-sizing: border-box;
}

.flexnet-products-grid {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.flexnet-product-card {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.flexnet-product-card .post-date,
.flexnet-product-card .post-author,
.flexnet-product-card .post-categories {
    display: none !important;
}

.quote-item-variation {
    margin:0 !important;
    padding-bottom: 0;
    line-height: 1.5;
}

.quote-item-quantity, .quote-item-price, .quote-item-title {
    margin: 0 !important;
}

.quote-item-quantity {
    padding: 0 !important;
}

.flexnet-pagination .dashicons {
    border: none !important;
    color: black;
    background: transparent;
}