/* Additional styles for category page - Add this to your main CSS file or include in header */

/* Badge styles */
.badge-sale {
    background: #ec1b24 !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: bold !important;
    padding: 4px 8px !important;
    border-radius: 3px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.badge-sold-out {
    background: #6b7280 !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: bold !important;
    padding: 4px 8px !important;
    border-radius: 3px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}
.add-to-cart-btn {
    display: block !important;
    width: 100% !important;
    padding: 8px 16px !important;
    background-color: #041e42 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.add-to-cart-btn:hover {
    background-color: #7bbbdd !important;
}

.add-to-cart-btn:disabled {
    background-color: #9ca3af !important;
    cursor: not-allowed !important;
}

/* Product card styles */
.product-card {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
}

.product-card:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* Custom range slider styles */
.range-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    z-index: 1;
}

.range-input::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #041e42;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: auto;
    position: relative;
}

.range-input::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #041e42;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: auto;
}

.range-input::-webkit-slider-track {
    background: transparent;
    height: 8px;
}

.range-input::-moz-range-track {
    background: transparent;
    height: 8px;
    border: none;
}

.range-max {
    z-index: 2;
}

.range-min {
    z-index: 1;
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Product card hover effects */
.product-hover {
    transition: all 0.3s ease;
}

.product-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Star rating styles */
.star-rating {
    color: #ffa500;
    font-size: 14px;
}

/* Scrollbar styles for brand list */
.max-h-48::-webkit-scrollbar {
    width: 4px;
}

.max-h-48::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.max-h-48::-webkit-scrollbar-thumb {
    background: #041e42;
    border-radius: 2px;
}

.max-h-48::-webkit-scrollbar-thumb:hover {
    background: #7bbbdd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container.mx-auto {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .flex.gap-8 {
        flex-direction: column;
        gap: 1rem;
    }
    
    .w-1\/4 {
        width: 100%;
    }
    
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.xl\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.xl\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .flex.justify-between.items-center {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .flex.items-center.space-x-4 {
        justify-content: space-between;
    }
}

/* Image lazy loading placeholder */
.product-image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(45deg, #041e42, #7bbbdd);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #7bbbdd, #041e42);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Price display */
.price-display {
    font-weight: 600;
    color: #041e42;
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Product card hover effects */
.product-hover {
    transition: all 0.3s ease;
}

.product-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Star rating styles */
.star-rating {
    color: #ffa500;
    font-size: 14px;
}

/* Scrollbar styles for brand list */
.max-h-48::-webkit-scrollbar {
    width: 4px;
}

.max-h-48::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.max-h-48::-webkit-scrollbar-thumb {
    background: #041e42;
    border-radius: 2px;
}

.max-h-48::-webkit-scrollbar-thumb:hover {
    background: #7bbbdd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container.mx-auto {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .flex.gap-8 {
        flex-direction: column;
        gap: 1rem;
    }
    
    .w-1\/4 {
        width: 100%;
    }
    
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.xl\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.xl\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .flex.justify-between.items-center {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .flex.items-center.space-x-4 {
        justify-content: space-between;
    }
}

/* Image lazy loading placeholder */
.product-image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Badge styles */
.badge-sale {
    background: linear-gradient(45deg, #ec1b24, #ff4757);
}

.badge-sold-out {
    background: linear-gradient(45deg, #6c757d, #495057);
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(45deg, #041e42, #7bbbdd);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #7bbbdd, #041e42);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Pagination styles */
.pagination button {
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    transform: translateY(-1px);
}

/* Filter section animations */
.filter-section {
    transition: all 0.3s ease;
}

.filter-section:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Brand letter selector */
.brand-letter-selector div {
    transition: all 0.2s ease;
    cursor: pointer;
}

.brand-letter-selector div:hover {
    background-color: #f3f4f6;
    transform: scale(1.05);
}

.brand-letter-selector div.active {
    background-color: #1f2937;
    color: white;
}

/* Search input focus styles */
input[type="text"]:focus {
    outline: none;
    border-color: #041e42;
    box-shadow: 0 0 0 3px rgba(4, 30, 66, 0.1);
}

select:focus {
    outline: none;
    border-color: #041e42;
    box-shadow: 0 0 0 3px rgba(4, 30, 66, 0.1);
}

/* Price display */
.price-display {
    font-weight: 600;
    color: #041e42;
}

/* View mode toggle */
.view-toggle button {
    transition: all 0.2s ease;
}

.view-toggle button.active {
    background-color: #041e42;
    color: white;
}

/* List view specific styles */
.list-view .product-item {
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.list-view .product-item:hover {
    border-left-color: #041e42;
}

/* No products found illustration */
.no-products svg {
    opacity: 0.3;
}

/* Smooth transitions for all interactive elements */
* {
    scroll-behavior: smooth;
}

/* Loading state styles */
.loading-overlay {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
}

/* Error states */
.error-state {
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    padding: 1rem;
}

/* Success states */
.success-state {
    color: #065f46;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 0.375rem;
    padding: 1rem;
}