.motor-products-grid.motor-products-list {
    display: block;
}

.motor-products-grid.motor-products-list .motor-product-card {
    display: block;
    margin-bottom: 25px;
}

.motor-product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.motor-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
    pointer-events: none;
    z-index: 1;
}

.motor-product-card:hover::before {
    left: 100%;
}

.motor-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.product-image-wrapper img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: auto;
}

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

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge-sale {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.badge-featured {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #fff;
}

.badge-new {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
}

.product-quick-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.motor-product-card:hover .product-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    color: #666;
    font-size: 18px;
}

.quick-action-btn:hover {
    transform: scale(1.1);
    color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.quick-action-btn.active {
    background: #dc3545;
    color: #fff;
}

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

.product-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-meta-item i {
    color: #dc3545;
}

.product-specs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    /* margin-bottom: 15px; */
}

.spec-item {
    text-align: center;
    transition: all 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-3px);
}

.spec-item i {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
    color: #dc3545;
    transition: all 0.3s ease;
}

.spec-item:hover i {
    transform: scale(1.1);
    color: #c82333;
}

.spec-item span {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    display: block;
}

.price-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #dc3545;
}

.fob-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.fob-label strong {
    color: #dc3545;
    font-size: 18px;
    display: block;
}

.action-buttons .btn {
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.action-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-buttons .btn:hover::before {
    width: 300px;
    height: 300px;
}

.action-buttons .btn i {
    margin-right: 5px;
}

/* Products Header */
.products-header {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.total-records {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 15px;
    color: #4b5563;
    font-weight: 500;
}

.total-records .count {
    font-size: 24px;
    font-weight: 700;
    color: #dc3545;
    line-height: 1;
}

.total-records .text {
    color: #6b7280;
    font-weight: 400;
}

.header-control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

.products-header select {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    height: 34px;
    background-color: #fff;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.products-header select:hover {
    border-color: #d1d5db;
}

.products-header select:focus {
    border-color: #dc3545;
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.products-header #motor-sort-by {
    width: 80px;
}

.products-header #motor-per-page {
    width: 50px;
}

.products-header #motor-currency {
    width: 70px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #dc3545;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.no-products-found {
    background: #fff;
    padding: 60px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ref-number {
    color: #999;
    font-size: 13px;
}

@media (max-width: 1200px) {
    .product-specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-header {
        padding: 14px 16px;
    }
    
    .header-right {
        gap: 15px;
    }
    
    .total-records .count {
        font-size: 22px;
    }

    .motor-product-card .row {
        flex-direction: column;
    }

    .motor-product-card .col-md-4,
    .motor-product-card .col-md-5,
    .motor-product-card .col-md-3 {
        width: 100%;
        max-width: 100%;
    }

    .motor-product-card .product-image-wrapper {
        max-height: 240px;
        overflow: hidden;
    }

    .motor-product-card .product-image-wrapper img {
        width: 100%;
        height: 100%;
        max-height: 240px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .product-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .spec-item i {
        font-size: 20px;
    }
    
    .spec-item span {
        font-size: 11px;
    }
    
    .product-quick-actions {
        opacity: 1;
        transform: translateX(0);
    }
    
    .products-header {
        padding: 15px;
        flex-direction: column;
        gap: 12px;
    }
    
    .header-left {
        width: 100%;
        justify-content: center;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }
    
    .header-control-group {
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }
    
    .control-label {
        font-size: 11px;
    }
    
    .products-header select {
        width: 100% !important;
        min-width: 80px;
    }
    
    .total-records {
        flex-direction: row;
        gap: 5px;
    }
    
    .total-records .count {
        font-size: 20px;
    }

    .motor-product-card .additional-specs .table {
        margin-bottom: 0;
    }

    .motor-product-card .additional-specs tr {
        display: flex;
        flex-wrap: wrap;
        border-bottom: 1px solid #eee;
    }

    .motor-product-card .additional-specs tr:last-child {
        border-bottom: none;
    }

    .motor-product-card .additional-specs td {
        flex: 0 0 50%;
        max-width: 50%;
        box-sizing: border-box;
        padding: 8px 10px !important;
        vertical-align: top;
    }

    .motor-product-card .additional-specs td:nth-child(odd) {
        font-weight: 600;
        color: #555;
        font-size: 12px;
    }

    .motor-product-card .additional-specs td:nth-child(even) {
        font-size: 13px;
        word-break: break-word;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 400px;
}

.products-loading .loading-spinner {
    margin-bottom: 1rem;
}

.products-loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.products-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 400px;
}

.products-no-results i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.products-no-results h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 24px;
}

.products-no-results p {
    color: #666;
    margin: 0;
    font-size: 16px;
}

.motor-pagination {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.motor-pagination .pagination {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    row-gap: 0.5rem;
}

.motor-pagination .page-item {
    margin: 0;
}

.motor-pagination .page-item .page-link {
    width: auto;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.65rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    text-decoration: none;
}

.motor-pagination .page-item.disabled .page-link {
    pointer-events: none;
    border-color: #e5e7eb;
    background: #f3f4f6;
    color: #9ca3af;
}

.motor-pagination .page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.motor-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #212529;
}

@media (max-width: 576px) {
    .motor-pagination .page-item .page-link {
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.5rem;
        font-size: 0.8125rem;
    }
}

