:root {
    --primary-blue: #2563eb;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --dark-grey: #374151;
    --medium-grey: #6b7280;
    --light-grey: #f9fafb;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    
    background-color: #fff;
}

/* Page Header */
.page-header {
    background-color: white;
    padding:  0;
    position: relative;
    overflow: hidden;
    align-items: center;
    margin-top: 5%;
}
.page-header  h1{
    text-align: center;
}
.page-header p{
    text-align: center;
}
.page-header::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.header-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.header-icon i {
    font-size: 3rem;
    color: white;
}

/* Product Card Enhancements */
.product-card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    animation: fadeUp 0.6s ease-in-out both;
    height: 100%;
}

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

.product-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: linear-gradient(45deg, #f8fafc, #f1f5f9);
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card .card-body {
    padding: 20px;
    text-align: center;
    background: white;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
     
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-text {
    font-size: 0.875rem;
    color: var(--medium-grey);
}

/* Button Enhancements */
.btn-sm.btn-primary {
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-sm.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-sm.btn-primary:hover::before {
    left: 100%;
}

.btn-sm.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Filter Buttons */
.btn-outline-primary {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Pagination Styling */
.pagination {
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-link {
    color: var(--primary-blue);
    border: 2px solid #e5e7eb;
    padding: 12px 18px;
    margin: 0 4px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    background: white;
}

.page-link:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.page-item.active .page-link {
    color: white;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.page-item.disabled .page-link {
    color: var(--medium-grey);
    background: #f8f9fa;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    color: var(--medium-grey);
}

/* Search Bar Enhancements */
.form-control {
    border-radius: 25px;
    border: 2px solid #e5e7eb;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-outline-primary.ms-2 {
    border-radius: 25px;
    padding: 10px 20px;
}

/* Animation */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .product-card {
        margin-bottom: 25px;
    }
    
    .product-image {
        height: 220px;
    }
}

@media (max-width: 992px) {
    .product-image {
        height: 200px;
    }
    
    .product-card .card-title {
        font-size: 0.95rem;
    }
    
    .btn-group {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .btn-outline-primary {
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }
    
    .header-icon {
        width: 80px;
        height: 80px;
    }
    
    .header-icon i {
        font-size: 2rem;
    }
    
    .product-card {
        margin-bottom: 20px;
    }

    .product-image {
        height: 180px;
    }

    .product-card .card-title {
        font-size: 0.9rem;
        min-height: 3.2em;
    }

    .product-card .card-body {
        padding: 15px;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-link {
        padding: 10px 14px;
        margin: 2px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .product-image {
        height: 160px;
        padding: 10px;
    }

    .product-card .card-body {
        padding: 12px;
    }
    
    .product-card .card-title {
        font-size: 0.85rem;
        min-height: 3.6em;
    }
    
    .btn-sm.btn-primary {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .btn-outline-primary {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* Color-specific hover effects */
.product-item[data-color="red"]:hover .product-card {
    border-left: 4px solid #dc2626;
}

.product-item[data-color="blue"]:hover .product-card {
    border-left: 4px solid #2563eb;
}

.product-item[data-color="yellow"]:hover .product-card {
    border-left: 4px solid #eab308;
}

.product-item[data-color="green"]:hover .product-card {
    border-left: 4px solid #16a34a;
}

.product-item[data-color="purple"]:hover .product-card {
    border-left: 4px solid #9333ea;
}

.product-item[data-color="orange"]:hover .product-card {
    border-left: 4px solid #ea580c;
}

.product-item[data-color="black"]:hover .product-card {
    border-left: 4px solid #1f2937;
}

.product-item[data-color="white"]:hover .product-card {
    border-left: 4px solid #6b7280;
}

/* Smooth transitions for filtering */
.product-item {
    transition: all 0.5s ease;
}

.product-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Footer Enhancements */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

footer a:hover {
    color:white;
    transition: color 0.3s ease;
}

/* Navbar Enhancements */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

