/* Breadcrumb Section */
.breadcrumb-section {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
    margin-bottom: 0;
    background: none;
    padding: 0;
}

.breadcrumb-item a {
    color: #3dcd58;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #1e3b01;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Search Sidebar */
.search-sidebar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-sidebar h5 {
    color: #1e3b01;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3dcd58;
}

.category-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.category-info h6 {
    color: #1e3b01;
    margin-bottom: 10px;
}

/* Category Header */
.category-header h1 {
    color: #1e3b01;
    margin-bottom: 10px;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.product-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-info {
    padding: 15px;
}

.product-title {
    color: #1e3b01;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-model {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-availability {
    margin-bottom: 10px;
}

.product-price {
    color: #3dcd58;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: #3dcd58;
    box-shadow: 0 0 0 0.2rem rgba(61, 205, 88, 0.25);
}

.btn-primary {
    background-color: #3dcd58;
    border-color: #3dcd58;
}

.btn-primary:hover {
    background-color: #1e3b01;
    border-color: #1e3b01;
}

.btn-outline-primary {
    color: #3dcd58;
    border-color: #3dcd58;
}

.btn-outline-primary:hover {
    background-color: #3dcd58;
    border-color: #3dcd58;
}

/* Pagination */
.pagination .page-link {
    color: #3dcd58;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #3dcd58;
    border-color: #3dcd58;
}

.pagination .page-link:hover {
    color: #1e3b01;
    background-color: #f8f9fa;
}

/* Loading and Animation States */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.btn-success-animation {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.badge-update {
    animation: badgePulse 0.5s ease-out;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* List View Styles */
.product-item.col-12 .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.product-item.col-12 .product-image-container {
    width: 150px;
    flex-shrink: 0;
}

.product-item.col-12 .product-info {
    flex: 1;
    padding-left: 20px;
}

.product-category {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.product-category a {
    color: #3dcd58;
}

.product-category a:hover {
    color: #1e3b01;
}

/* View Toggle Buttons */
.btn-group .btn {
    border-color: #dee2e6;
}

.btn-group .btn.active {
    background-color: #3dcd58;
    border-color: #3dcd58;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .search-sidebar {
        margin-bottom: 30px;
    }
    
    .product-actions {
        opacity: 1;
    }
    
    .breadcrumb-section {
        padding: 10px 0;
    }
    
    .product-item.col-12 .product-card {
        flex-direction: column;
    }
    
    .product-item.col-12 .product-image-container {
        width: 100%;
    }
    
    .product-item.col-12 .product-info {
        padding-left: 0;
        padding-top: 15px;
    }
}