.category-main-container {
    padding-bottom: 40px
}

.category-header {
    margin-bottom: 20px
}

.breadcrumb {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666
}

.breadcrumb a {
    color: inherit;
    text-decoration: none
}

.breadcrumb #category-title {
    font-weight: 700;
    color: #333;
    text-align: right
}

#category-main-heading {
    font-size: 1.8rem;
    margin-bottom: 10px
}

#category-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    margin-bottom: 10px
}

.discount-badge {
    animation: pulse 2s infinite
}

.update-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4caf50;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 100000;
    transition: opacity 0.5s ease
}

.update-badge.fade-out {
    opacity: 0
}

.empty-message {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    margin: 20px 0
}

.error-message {
    text-align: center;
    color: #dc3545;
    font-size: 1.1rem;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #dc3545
}

#category-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: stretch;
    align-items: stretch;
    margin-top: 10px;
    margin-bottom: 20px
}

#category-products-grid .product-box {
    width: 100% !important
}

@media (max-width: 1280px) {
    #category-products-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width: 768px) {
    #category-products-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width: 480px) {
    #category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem
    }

    #category-products-grid .product-box {
        min-width: 0;
        max-width: 100%
    }

    #category-products-grid .product-box img {
        height: 120px;
        object-fit: cover
    }

    #category-products-grid .product-box .product-title {
        font-size: 0.9rem;
        line-height: 1.2;
        margin: 8px 0;
        height: 2.4rem;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical
    }

    #category-products-grid .product-box .product-price {
        font-size: 1rem;
        font-weight: 700;
        color: #f9a825;
        margin: 5px 0
    }

    #category-products-grid .product-box .product-short-desc {
        font-size: 0.75rem;
        color: #888;
        margin: 5px 0
    }

    #category-products-grid .product-box .add-cart {
        padding: 6px 12px;
        font-size: 0.8rem;
        width: 100%;
        margin-top: 8px
    }
}

#category-products-grid .product-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative
}

#category-products-grid .product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15)
}

#category-products-grid .product-box img {
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease
}

#category-products-grid .product-box:hover img {
    transform: scale(1.05)
}