/* Category Page Styles */

/* Container */
.category-container {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 50px;
    padding: 20px 15px 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeIn 0.5s ease-out;
}

/* Category Banner */
.category-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/category-banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.category-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.category-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Category Content Layout */
.category-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

/* Sidebar */
.category-sidebar {
    flex: 0 0 250px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
    /* Sticky position so filters stay visible while cards scroll */
    position: sticky;
    top: 100px; /* adjust if header height changes */
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE & Edge */
}

/* Hide scrollbar for WebKit browsers */
.category-sidebar::-webkit-scrollbar {
    display: none;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section:hover {
    transform: translateX(5px);
}

.filter-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.2s ease;
}

.filter-option:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateX(3px);
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.item-count {
    color: #999;
    font-size: 0.85rem;
}

/* Main Content */
.category-main {
    flex: 1;
    /* Make only product area scroll */
    max-height: calc(100vh - 140px); /* viewport minus header/banner padding */
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE & Edge */
}

/* Hide scrollbar for WebKit browsers */
.category-main::-webkit-scrollbar {
    display: none;
}

/* Selected Filters */
.selected-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-tag {
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tag:hover {
    background: #e0e0e0;
}

.filter-tag i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.clear-all {
    background: none;
    border: none;
    color: #1DA1F2;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 10px;
    margin-left: 5px;
    font-size: 0.9rem;
}

.clear-all:hover {
    text-decoration: underline;
}

/* Sort Dropdown */
.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-dropdown label {
    font-size: 0.9rem;
    color: #666;
}

#sort-by {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#sort-by:focus {
    border-color: #1DA1F2;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
    animation: slideInUp 0.6s ease-out;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1DA1F2;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}

.product-badge.hot-deal {
    background: #ff5722;
}

.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

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

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.action-btn:hover {
    background: #1DA1F2;
    color: white;
    transform: scale(1.1);
}

.product-details {
    padding: 15px 15px 50px;
    position: relative;
    flex-grow: 1;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1DA1F2;
}

.old-price {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.rating i {
    color: #ffc107;
    font-size: 0.85rem;
}

.review-count {
    font-size: 0.8rem;
    color: #999;
}

.add-to-cart-btn {
    width: calc(100% - 30px);
    padding: 10px;
    background: #1DA1F2;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 2;
}

.product-card:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

.add-to-cart-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.page-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.page-btn:hover::before {
    width: 100%;
    height: 100%;
}

.page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-btn.active {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* No Products Message */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #666;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .category-content {
        flex-direction: column;
    }
    
    .category-sidebar {
        flex: 0 0 auto;
        margin-bottom: 20px;
    }
    
    .selected-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .sort-dropdown {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-banner h1 {
        font-size: 2rem;
    }
    
    .category-banner p {
        font-size: 1rem;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Floating Cart Styles */
.floating-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cart.active {
    right: 0;
}

.floating-cart-header {
    padding: 20px;
    background: #1DA1F2;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.floating-cart-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-floating-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-floating-cart:hover {
    background: rgba(255, 255, 255, 0.2);
}

.floating-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.floating-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    animation: slideInFromRight 0.3s ease-out;
    animation-delay: 0.1s;
}

.floating-cart-item:last-child {
    border-bottom: none;
}

.floating-cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.floating-cart-item-details {
    flex: 1;
}

.floating-cart-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #333;
}

.floating-cart-item-price {
    color: #1DA1F2;
    font-weight: 600;
    font-size: 0.9rem;
}

.floating-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.floating-quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.floating-quantity-btn:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.floating-quantity-input {
    width: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
    font-size: 0.8rem;
}

.floating-cart-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.floating-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.floating-total-amount {
    color: #1DA1F2;
}

.view-cart-btn {
    width: 100%;
    padding: 12px;
    background: #1DA1F2;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-cart-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Floating Cart Toggle Button */
.floating-cart-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #1DA1F2;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.floating-cart-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
}

.floating-cart-toggle:active {
    transform: scale(0.95);
}

.floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    animation: bounce 0.6s ease-out;
}

/* Animations */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced Product Card Animations */
.product-card {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

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

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

/* Enhanced Product Image */
.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f8f9fa;
}

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

/* Enhanced Product Actions */
.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #333;
    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 cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: #1DA1F2;
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* Enhanced Add to Cart Button */
.add-to-cart-btn {
    width: calc(100% - 30px);
    padding: 12px;
    background: linear-gradient(135deg, #1DA1F2, #45a049);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.product-card:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #45a049, #1DA1F2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(-1px);
}

/* Enhanced Product Badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
    animation: pulse 2s infinite;
}

.product-badge.new {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.product-badge.hot {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
}

/* Enhanced Product Details */
.product-details {
    padding: 20px 15px 60px;
    position: relative;
    flex-grow: 1;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
    transition: color 0.3s;
}

.product-card:hover .product-title {
    color: #1DA1F2;
}

/* Enhanced Price Display */
.price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1DA1F2;
    text-shadow: 0 1px 2px rgba(76, 175, 80, 0.1);
}

.old-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    position: relative;
}

.old-price::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ff6b6b;
    transform: rotate(-5deg);
}

/* Enhanced Rating */
.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.rating i {
    color: #ffc107;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(255, 193, 7, 0.3);
    transition: transform 0.2s;
}

.rating i:hover {
    transform: scale(1.2);
}

.review-count {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Floating Cart */
@media (max-width: 768px) {
    .floating-cart {
        width: 100%;
        right: -100%;
    }
    
    .floating-cart-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .floating-cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Empty Floating Cart */
.empty-floating-cart {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 1rem;
}

.empty-floating-cart::before {
    content: '🛒';
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Remove Floating Item Button */
.remove-floating-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-floating-item:hover {
    background: #ff4444;
    color: white;
    transform: scale(1.1);
}

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

.filter-section:hover {
    transform: translateX(5px);
}

.filter-option {
    transition: all 0.2s ease;
}

.filter-option:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateX(3px);
}

/* Enhanced Sort Dropdown */
#sort-by {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#sort-by:focus {
    border-color: #1DA1F2;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

/* Enhanced Pagination */
.page-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.page-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.page-btn:hover::before {
    width: 100%;
    height: 100%;
}

.page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(76, 175, 80, 0.3);
    border-radius: 50%;
    border-top-color: #1DA1F2;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Page Transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Product Grid Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Cart Slide Animation */
.floating-cart {
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cart-item {
    animation: slideInFromRight 0.3s ease-out;
}

.floating-cart-item:nth-child(1) { animation-delay: 0.1s; }
.floating-cart-item:nth-child(2) { animation-delay: 0.2s; }
.floating-cart-item:nth-child(3) { animation-delay: 0.3s; }
.floating-cart-item:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced Notification */
.notification {
    animation: slideInFromBottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Smooth Hover Transitions */
.product-card,
.action-btn,
.add-to-cart-btn,
.filter-option,
.page-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Focus States */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #1DA1F2;
    outline-offset: 2px;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .floating-cart {
        width: 100%;
        right: -100%;
    }
    
    .floating-cart-toggle {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .product-card {
        animation-delay: 0.1s !important;
    }
    
    .product-card:nth-child(2) { animation-delay: 0.2s !important; }
    .product-card:nth-child(3) { animation-delay: 0.3s !important; }
    .product-card:nth-child(4) { animation-delay: 0.4s !important; }
}

/* Mobile filter button and modal styles */
@media (max-width: 768px) {
    .category-sidebar {
        display: none !important;
    }
    .mobile-filter-btn {
        display: block;
        position: fixed;
        bottom: 80px;
        right: 20px;
        z-index: 1100;
        background: #4CAF50;
        color: #fff;
        border: none;
        border-radius: 50px;
        padding: 12px 24px;
        font-size: 1.1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .mobile-filter-modal {
        display: none;
        position: fixed;
        z-index: 1200;
        left: 0; top: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.4);
        justify-content: center;
        align-items: center;
    }
    .mobile-filter-modal.active {
        display: flex;
    }
    .mobile-filter-content {
        background: #fff;
        border-radius: 12px;
        padding: 24px 16px 16px 16px;
        width: 90vw;
        max-width: 400px;
        position: relative;
    }
    .close-mobile-filter {
        position: absolute;
        top: 10px; right: 10px;
        background: none;
        border: none;
        font-size: 1.3rem;
        color: #333;
    }
    .mobile-filter-group {
        margin-bottom: 18px;
    }
    .mobile-filter-group h4 {
        margin-bottom: 8px;
        font-size: 1.1rem;
    }
    .mobile-category-options, .mobile-weight-options {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
}
@media (min-width: 769px) {
    .mobile-filter-btn, .mobile-filter-modal {
        display: none !important;
    }
}
