/* ===== PRINTER FILTER FORM ===== */
.printer-filter {
    background: #d4f4fd;
    padding: 25px;
    border-radius: 10px;
	border: 1px solid #06c1f5;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 1px 10px 6px rgba(0, 0, 0, .031372549);
    position: relative;
    overflow: hidden;
}

.printer-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.printer-filter h3 {
    color: #000;
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ===== FORM ELEMENTS ===== */
.printer-filter .printer-select,
.printer-filter .printer-search-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.printer-filter .printer-select {
	border: 1px solid #06c1f5;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 50px;
}

.printer-filter .printer-select:focus,
.printer-filter .printer-search-btn:focus {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.printer-filter .printer-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.printer-filter .printer-search-btn {
    background: #000;
    color: white;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.printer-filter .printer-search-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.4);
}

.printer-filter .printer-search-btn:active {
    transform: translateY(-1px);
}

/* Loading states */
.printer-filter .printer-select.loading {
    opacity: 0.7;
    cursor: wait;
    background-image: none;
    position: relative;
}
.printer-filter .printer-select.loading::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #ccc;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.printer-filter .printer-search-btn.loading {
    opacity: 0.8;
    cursor: wait;
}
.printer-filter .printer-search-btn .btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}
.printer-filter .printer-search-btn .spinner {
    width: 16px;
    height: 16px;
}

/* ===== NOTIFICATIONS ===== */
.printer-notifications {
    margin-top: 15px;
}
.printer-notification {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 10;
}
.notification-success {
    background: #d4edda; color: #155724; border: 1px solid #c3e6cb;
}
.notification-error {
    background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb;
}
.notification-warning {
    background: #fff3cd; color: #856404; border: 1px solid #ffeaa7;
}
.notification-info {
    background: #cce7ff; color: #004085; border: 1px solid #b3d7ff;
}
.notification-close {
    background: none; border: none; font-size: 18px; cursor: pointer;
    margin-left: 10px; padding: 0; line-height: 1; opacity: 0.7;
}
.notification-close:hover { opacity: 1; }

/* ===== RESULTS CONTAINER ===== */
.printer-results-container {
    position: relative;
    min-height: 200px;
}
.printer-results-container.loading {
    opacity: 0.6;
    pointer-events: none;
}
.printer-results-container.loading::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 10; display: flex; align-items: center; justify-content: center;
}
.printer-results-container.loading::after {
    content: '';
    position: absolute; top: 50%; left: 50%;
    width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border: 4px solid #007cba; border-top: 4px solid transparent;
    border-radius: 50%; animation: spin 1s linear infinite; z-index: 11;
}

/* ===== EMPTY & NO-RESULTS STATES ===== */
.printer-results-empty,
.empty-state,
.printer-no-results {
    text-align: center;
    padding: 40px 20px;
}
.empty-state {
    max-width: 400px; margin: 0 auto;
}
.empty-icon, .no-results-icon {
    width: 64px; height: 64px; margin: 0 auto 20px; color: #bbb;
    stroke-width: 1.5;
}
.empty-state h3, .no-results-content h3 {
    margin: 0 0 10px; font-size: 20px; color: #333;
}
.empty-state p, .no-results-content p {
    margin: 0; font-size: 16px; line-height: 1.5; color: #666;
}
.printer-no-results {
    background: white; border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 300px; margin: 20px auto;
}

/* ===== PRODUCT GRID ===== */
.printer-products-grid {
    margin: 20px 0;
}
.printer-products-grid .products {
    display: flex; flex-wrap: wrap; gap: 20px;
    padding: 0; margin: 0;
}
.printer-products-grid .col_item {
    box-sizing: border-box; padding: 0; margin: 0 0 20px 0;
    display: flex; flex-direction: column;
}
/* Desktop columns */
.printer-products-grid[data-columns="2"] .col_item {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}
.printer-products-grid[data-columns="3"] .col_item {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}
.printer-products-grid[data-columns="4"] .col_item {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
}
/* … tương tự data-columns="5","6" */

/* Product cards */
.printer-products-grid .product {
    background: white; border-radius: 12px; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 400px; width: 100%;
    display: flex; flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    opacity: 0; transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
	padding:15px;
}
.printer-products-grid .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* ===== RESPONSIVE ===== */
/* Tablet */
@media (max-width: 1024px) {
    .printer-products-grid .products { gap: 15px; }
    .printer-products-grid[data-tablet="1"] .col_item {
        flex: 0 0 100%; max-width: 100%;
    }
    .printer-products-grid[data-tablet="2"] .col_item {
        flex: 0 0 calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);
    }
    .printer-products-grid[data-tablet="3"] .col_item {
        flex: 0 0 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }
    .printer-products-grid[data-tablet="4"] .col_item {
        flex: 0 0 calc(25% - 12px);
        max-width: calc(25% - 12px);
    }
}
/* Mobile */
@media (max-width: 768px) {
    .printer-filter { margin: 15px; padding: 20px; }
    .printer-filter h3 { font-size: 18px; }
    .printer-filter .printer-select,
    .printer-filter .printer-search-btn {
        padding: 12px 15px; font-size: 14px;
    }
    .printer-products-grid .products { gap: 10px; }
    .printer-products-grid[data-mobile="1"] .col_item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .printer-products-grid[data-mobile="2"] .col_item {
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
    }
    .printer-products-grid .product {
        min-height: 450px;
    }
}
/* Small mobile */
@media (max-width: 480px) {
    .printer-filter { margin: 10px; padding: 15px; }
    .printer-filter h3 { font-size: 16px; }
    .printer-products-grid .col_item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .printer-products-grid .products { gap: 10px; }
    .printer-products-grid .product { min-height: 450px; }
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* Staggered */
.printer-products-grid .col_item:nth-child(1) { animation-delay: 0.1s; }
.printer-products-grid .col_item:nth-child(2) { animation-delay: 0.2s; }
.printer-products-grid .col_item:nth-child(3) { animation-delay: 0.3s; }
/* … và tương tự cho các nth-child tiếp theo */
