/* Catalog Design Improvements */

/* Main catalog wrapper */
.wcatalog {
    background: #f8f9fa;
    padding: 20px 0;
}

/* Page title */
.wcatalog .pagetitle h1 {
    font-size: 32px;
    font-weight: 600;
    color: #304b6e;
    margin-bottom: 25px;
}

/* Filter section improvements */
.wcatalog .filter {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.wcatalog .filtertitle {
    font-size: 20px;
    font-weight: 600;
    color: #304b6e;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #72c224;
    display: flex;
    align-items: center;
}

.wcatalog .filtertitle .filter-icon {
    margin-right: 10px;
    color: #72c224;
    font-size: 18px;
}

/* Active filters */
.wcatalog .active-filters-block {
    background: #f0f7ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.wcatalog .active-filter-tag {
    display: inline-block;
    background: #304b6e;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 4px;
    font-size: 13px;
}

.wcatalog .active-filter-tag .remove-filter {
    color: white;
    text-decoration: none;
    margin-left: 8px;
    font-weight: bold;
    font-size: 16px;
}

.wcatalog .active-filter-tag .remove-filter:hover {
    color: #ff4444;
}

.wcatalog .clear-all-filters {
    display: inline-block;
    color: #ff4444;
    text-decoration: none;
    font-weight: 500;
    margin-left: 10px;
}

.wcatalog .clear-all-filters:hover {
    text-decoration: underline;
}

/* Filter blocks */
.wcatalog .fltr_block {
    margin-bottom: 20px;
}

.wcatalog .fltr_name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcatalog .fltr_name:hover,
.wcatalog .fltr_name.active {
    background: #72c224;
    color: white;
}

.wcatalog .fltr_block_checkbox {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

.wcatalog .fltr_block_checkbox label {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wcatalog .fltr_block_checkbox label:hover {
    background: #f8f9fa;
    padding-left: 5px;
    border-radius: 4px;
}

/* Filter reset button */
.wcatalog .eFiltr_reset {
    margin-top: 20px;
}

.wcatalog .eFiltr_reset a {
    display: block;
    background: #ff4444;
    color: white !important;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wcatalog .eFiltr_reset a:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 68, 68, 0.3);
}

/* Shop bar improvements */
.wcatalog .shop-bar {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.wcatalog .selector-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcatalog .selector-field label {
    font-weight: 500;
    color: #666;
    margin: 0;
}

.wcatalog #per-page-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 35px 8px 12px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcatalog #per-page-select:hover {
    border-color: #72c224;
}

/* Table improvements */
.wcatalog .table-responsive {
    background: #ffffff;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wcatalog .tabcatalog {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

/* Table header */
.wcatalog .tabcatalog thead {
    background: linear-gradient(135deg, #304b6e 0%, #3d5f85 100%);
}

.wcatalog .tabcatalog thead th {
    padding: 18px 15px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    border: none;
}

.wcatalog .tabcatalog thead th a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.wcatalog .tabcatalog thead th a:hover {
    color: #72c224;
}

.wcatalog .tabcatalog thead th.sortby.active a {
    color: #72c224;
    font-weight: 700;
}

/* Table body */
.wcatalog .tabcatalog tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.wcatalog .tabcatalog tbody tr:hover {
    background: #f8fffe;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wcatalog .tabcatalog tbody td {
    padding: 18px 15px;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
    border: none;
}

/* Product name link */
.wcatalog .tabcatalog tbody td:first-child a {
    color: #304b6e;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.wcatalog .tabcatalog tbody td:first-child a:hover {
    color: #72c224;
}

/* Stock status */
.wcatalog .tabcatalog .text-success {
    color: #28a745 !important;
    font-weight: 500;
}

.wcatalog .tabcatalog .text-danger {
    color: #dc3545 !important;
    font-weight: 500;
}

/* Buttons */
.wcatalog .catalog-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.wcatalog .catalog-btn-buy {
    background: linear-gradient(135deg, #72c224 0%, #5fa51c 100%);
    color: white;
}

.wcatalog .catalog-btn-buy:hover {
    background: linear-gradient(135deg, #5fa51c 0%, #4d8617 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 194, 36, 0.4);
}

.wcatalog .catalog-btn-order {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #333;
}

.wcatalog .catalog-btn-order:hover {
    background: linear-gradient(135deg, #e0a800 0%, #c69500 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Pagination improvements */
.wcatalog .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.wcatalog .pagination a,
.wcatalog .pagination span {
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #304b6e;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wcatalog .pagination a:hover {
    background: #72c224;
    color: white;
    border-color: #72c224;
    transform: translateY(-2px);
}

.wcatalog .pagination .active span {
    background: #304b6e;
    color: white;
    border-color: #304b6e;
}

/* Empty state */
.wcatalog .tabcatalog tbody tr td[colspan="8"] {
    padding: 60px 20px;
    text-align: center;
    font-size: 18px;
    color: #999;
}

/* Responsive improvements */
@media (max-width: 991px) {
    .wcatalog .pagetitle h1 {
        font-size: 26px;
    }

    .wcatalog .shop-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .wcatalog .tabcatalog thead th {
        font-size: 12px;
        padding: 12px 8px;
    }

    .wcatalog .tabcatalog tbody td {
        font-size: 13px;
        padding: 12px 8px;
    }
}

@media (max-width: 768px) {
    .wcatalog {
        padding: 10px 0;
    }

    .wcatalog .filter {
        padding: 15px;
    }

    .wcatalog .table-responsive {
        border-radius: 0;
        overflow-x: auto;
    }
}

/* Manager info styling */
.wcatalog .shop-bar [style*="flex: 1"] {
    background: #e8f4fd;
    padding: 12px 15px !important;
    border-radius: 8px;
    border-left: 4px solid #2464c1;
}

/* Quick Order Button */
.wcatalog .quick-order-button-wrapper {
    text-align: right;
    margin-bottom: 15px;
}

.wcatalog .btn-quick-order {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #333;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
}

.wcatalog .btn-quick-order:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

.wcatalog .btn-quick-order i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .wcatalog .quick-order-button-wrapper {
        text-align: center;
        margin-bottom: 20px;
    }

    .wcatalog .btn-quick-order {
        width: 100%;
        justify-content: center;
    }
}
