* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Page Title */
.head {
    font-size: 32px;
    text-align: center;
    padding: 25px 0;
    color: #222;
}

/* Main Section */
.productsec {
    padding: 25px;
    background: linear-gradient(135deg, #eef2ff, #ffffff);
    min-height: 100vh;
}

/* Layout */
.productrow {
    display: grid;
    grid-template-columns: 22% auto;
    gap: 20px;
}

/* Sidebar */
aside {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

aside h2 {
    margin-bottom: 10px;
    color: #333;
}

aside ul {
    list-style: none;
}

aside ul li {
    padding: 8px 12px;
    margin: 6px 0;
    cursor: pointer;
    color: #555;
    border-radius: 6px;
    transition: all 0.25s ease;
}

aside ul li:hover {
    background-color: #4f46e5;
    color: #fff;
}

/* Product List */
.productlist {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.productlist h2 {
    margin-bottom: 15px;
    color: #333;
}

/* Product Grid */
.productscat {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* Product Card */
.productitems {
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.productitems:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Product Image */
.productitems img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

/* Product Title */
.productitems h3 {
    margin: 10px 0;
    font-size: 15px;
    color: #111;
}

/* Price + Button */
.add {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
}

.add b {
    color: #16a34a;
    font-size: 15px;
}

/* Button */
.btn {
    padding: 6px 14px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(79,70,229,0.4);
}

@media (max-width: 1024px) {
    .productscat {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .productrow {
        grid-template-columns: 1fr;
    }

    .productscat {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .productscat {
        grid-template-columns: 1fr;
    }
}
