/* Product Catalog Styles */


.breadcrumb {
    font-size: 1rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb span {
    margin: 0 10px;
}

/* Products Filter Section */
.products-filter {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #dee2e6;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid #1e3c72;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1e3c72;
    color: white;
}

.search-cart-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-form {
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid #dee2e6;
    transition: border-color 0.3s ease;
}

.search-form:focus-within {
    border-color: #1e3c72;
}

.search-form input {
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    min-width: 200px;
    font-size: 0.9rem;
}

.search-form button {
    padding: 0.75rem 1rem;
    background: #1e3c72;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: #2a5298;
}

.cart-btn {
    padding: 0.75rem 1.5rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Products Section */
.products-section {
    padding: 3rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.image-placeholder {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 2rem;
}

.image-placeholder.large {
    width: 150px;
    height: 150px;
    font-size: 3rem;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff6b35;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.product-info h3 {
    font-size: 1.3rem;
    color: #1e3c72;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.product-info p {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.product-price.large {
    font-size: 1.5rem;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

.add-to-cart-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.add-to-cart-btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.view-details-btn {
    padding: 0.75rem 1rem;
    background: #1e3c72;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-details-btn:hover {
    background: #2a5298;
    color: white;
    transform: translateY(-2px);
}

.contact-btn {
    flex: 1;
    padding: 1rem 2rem;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-btn:hover {
    background: #138496;
    transform: translateY(-2px);
}

/* Product Details Page */
.product-details-section {
    padding: 3rem 0;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-info-section h1 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.product-sku {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-description {
    color: #495057;
    line-height: 1.8;
    margin: 2rem 0;
    font-size: 1.1rem;
}

.product-meta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.stock-in_stock { color: #28a745; }
.stock-out_of_stock { color: #dc3545; }
.stock-on_request { color: #ffc107; }

/* Related Products */
.related-products {
    padding: 3rem 0;
    background: #f8f9fa;
}

.related-products h2 {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Shopping Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    color: #1e3c72;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.close-cart:hover {
    color: #1e3c72;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.cart-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.item-info h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.remove-item {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-notes {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid #dee2e6;
}

.request-quote-btn {
    width: 100%;
    padding: 1rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.request-quote-btn:hover:not(:disabled) {
    background: #218838;
}

.request-quote-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Quote Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 5% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #1e3c72;
    margin: 0;
    font-size: 1.5rem;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
}

.close:hover {
    color: #1e3c72;
}

.modal form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3c72;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-primary {
    padding: 0.75rem 2rem;
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #2a5298;
}

.btn-secondary {
    padding: 0.75rem 2rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 0.75rem 1rem;
    background: white;
    color: #1e3c72;
    text-decoration: none;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-products .btn-primary {
    margin-top: 2rem;
    display: inline-block;
    padding: 1rem 2rem;
    background: #1e3c72;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.no-products .btn-primary:hover {
    background: #2a5298;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: -300px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 3000;
    transition: right 0.3s ease;
    min-width: 250px;
}

.notification.show {
    right: 20px;
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #17a2b8;
}

.notification-warning {
    background: #ffc107;
    color: #212529;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-cart-row {
        justify-content: space-between;
    }
    
    .search-form input {
        min-width: 150px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .product-card {
        margin: 0 auto;
        max-width: 300px;
    }
    
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-info-section h1 {
        font-size: 2rem;
    }
    
    .cart-sidebar {
        width: 100vw;
        right: -100vw;
    }
    
    .cart-sidebar.active {
        right: 0;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .related-products h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 80px 0 60px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .products-section {
        padding: 2rem 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-cart-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-form input {
        min-width: auto;
        flex: 1;
    }
    
    .cart-btn {
        width: 100%;
        justify-content: center;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .modal form {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .notification {
        right: -100%;
        left: 10px;
        right: 10px;
        width: auto;
    }
    
    .notification.show {
        right: 10px;
    }
}

/* Print Styles */
@media print {
    .products-filter,
    .cart-sidebar,
    .modal,
    .notification {
        display: none !important;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .page-header {
        background: none !important;
        color: #333 !important;
        padding: 2rem 0;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .product-card {
        background: #2d3748;
        color: white;
    }
    
    .product-info h3 {
        color: #63b3ed;
    }
    
    .product-category {
        color: #a0aec0;
    }
    
    .product-info p {
        color: #cbd5e0;
    }
    
    .modal-content {
        background: #2d3748;
        color: white;
    }
    
    .form-group input,
    .form-group textarea {
        background: #4a5568;
        border-color: #718096;
        color: white;
    }
    
    .cart-sidebar {
        background: #2d3748;
        color: white;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.product-card:focus,
.filter-btn:focus,
.btn:focus,
button:focus {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .product-card {
        border: 2px solid #000;
    }
    
    .filter-btn {
        border-width: 3px;
    }
    
    .btn {
        border: 2px solid transparent;
    }
    
    .btn:hover {
        border-color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.product-card.loading .product-image {
    background: #f0f0f0;
}

.product-card.loading .product-info h3,
.product-card.loading .product-info p,
.product-card.loading .product-price {
    background: #f0f0f0;
    color: transparent;
    border-radius: 4px;
}

/* Custom Scrollbar */
.cart-content::-webkit-scrollbar {
    width: 6px;
}

.cart-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cart-content::-webkit-scrollbar-thumb {
    background: #1e3c72;
    border-radius: 3px;
}

.cart-content::-webkit-scrollbar-thumb:hover {
    background: #2a5298;
}
    