/* Navigation */
nav {
    background-color: #5000a0;
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
}

.cart-divider {
    margin: 15px 0;
    border-top: 1px solid #ccc;
}

.cart-total {
    text-align: right;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
}
/* Navigation */
.category-nav {
    display: flex
;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(to right, #6a00ff, #5000a0);
    /* background: #333333; */
    color: var(--white);
    position: sticky;
    top: 78px;
    z-index: 172;
    gap: 12px;
}

.category-nav::-webkit-scrollbar {
    display: none;
}
.category-link.active-category {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

@media (max-width: 768px) {
              .category-nav{
                display: none;
            }
}
.category-link {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.2s ease;
}

.category-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.category-link.active-category {
    background-color: #6290c5;
    color: white;
    font-weight: bold;
}

/* Product hover effect */
.product-image {
    overflow: hidden;
    position: relative;
}

.product-image img {
    transition: transform 0.3s ease;
    will-change: transform;
}

/* Zoom on hover for desktop */
.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Zoom on tap/touch for mobile */
.product-card:active .product-image img {
    transform: scale(1.1);
}
/* Category hover effect */
.category-icon {
    overflow: hidden;
    border-radius: 12px; /* Optional for smoother edge */
}

.category-icon img {
    transition: transform 0.3s ease;
    will-change: transform;
}

/* Hover effect for desktop */
.category-item:hover .category-icon img {
    transform: scale(1.1);
}

/* Touch effect for mobile */
.category-item:active .category-icon img {
    transform: scale(1.1);
}
.remove-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #ff4444;
    cursor: pointer;
    margin-left: 10px;
    vertical-align: middle;
}
