.category-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 40px;
    background-color: #f9f9f9;
}

.category-sidebar {
    width: 220px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.category-sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
}

.category-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-sidebar ul li {
    margin-bottom: 10px;
}

.category-sidebar ul li a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 8px 10px;
    border-radius: 5px;
    transition: 0.2s;
}

.category-sidebar ul li a:hover,
.category-sidebar ul li a.active {
    background-color: #e53935;
    color: white;
}

.category-content {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}

.category-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.category-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.category-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #222;
    text-align: center;
}

.category-description {
    margin-bottom: 30px;
    color: #555;
    font-size: 16px;
    text-align: center;
}

.product-grid1 {
      display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 35px;
            padding: 40px 20px;
            max-width: 1200px;
            margin: 0 auto;
    
}

.product-card1 {
     display: flex;
            flex-direction: column;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 10px;
            overflow: hidden;
            transition: transform 0.3s, box-shadow 0.3s;
}

.product-card1:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.product-card1  img {
     width: 100%;
            height: 300px;
            object-fit: cover;
            transition: transform 0.3s ease-in-out;
}

.product-card1 img:hover {
    transform: scale(1.1);
}

.product-grid1 h3 {
    font-size: 17px;
    margin: 15px 10px 5px;
    color: #000;
    text-align: center;
    height: 20px;
}

.product-grid1 p {
    color: #090101;
    font-weight: bold;
    margin: 55px auto 10px;
    text-align: center;
}

.product-grid1 .buttons {
    text-align: center;
    margin-bottom: 15px;
}

.btn-cart {
    padding: 7px 15px;
    border: none;
    background-color: #e53935;
    color: white;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-cart:hover {
    background-color: #c62828;
}

.pagination {
    margin-top: 30px;
    text-align: center;
}

.no-products {
    text-align: center;
    font-style: italic;
    color: #999;
}

.pagination nav {
    display: inline-block;
    margin-top: 20px;
}

.pagination nav .flex {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination nav a,
.pagination nav span {
    padding: 6px 12px;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.pagination nav .active span {
    background-color: #e53935;
    color: white;
    border-color: #e53935;
}
.product-grid1 {
    display: grid;
    gap: 35px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr); /* Default: telefon */
}

/* Tablete */
@media (min-width: 768px) {
    .product-grid1 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Laptopuri */
@media (min-width: 1024px) {
    .product-grid1 {
        grid-template-columns: repeat(4, 1fr);
    }
}
.category-toggle {
    display: none;
    margin: 20px;
    padding: 10px 20px;
    background-color: #e53935;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

/* Sidebar default */
.category-sidebar {
    transition: transform 0.3s ease-in-out;
}

/* Ascundere sidebar pe mobil */
@media (max-width: 768px) {
    .category-toggle {
        display: block;
    }

    .category-container {
        flex-direction: column;
    }

    .category-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 260px;
        background-color: white;
        border-right: 1px solid #ddd;
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    }

    .category-sidebar.open {
        transform: translateX(0);
    }

    .category-content {
        padding: 15px;
    }

    .product-grid1 h3{
       height:80px;
       
       
    }
    
}

@media (max-width: 1119px) {

    .product-grid1 h3{
       height:80px;
       
       
    }

}