* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    padding-bottom: 80px;
    min-height: 100vh;
    position: relative;
    color: #254a2f;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0b8a36;
    margin-bottom: 25px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(23,165,91,0.08);
    border-color: rgba(23,165,91,0.12);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #f4fff6; /* subtle green tint */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #1b5e20;
    position: relative;
    overflow: hidden;
}

.product-type-pill {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: #e6fff0;
    color: #0b8a36;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 6px 18px rgba(23,165,91,0.04);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image i {
    color: #1b5e20;
}

.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.product-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.badge-favorite {
    background: white;
    color: #1b5e20;
}

.badge-add {
    background: #17a55b;
    color: white;
}

.badge-add:hover {
    background: #0f8a45;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f0523;
    margin-bottom: 8px;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1b5e20;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.product-price .mrp {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
    font-weight: 400;
}

.product-price .selling-price {
    color: #0b8a36;
    font-weight: 800;
    font-size: 1.4rem;
}

.product-price .discount {
    color: #ff5252;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 82, 82, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.product-price .btn-view-details {
    display: inline-block;
    padding: 8px 16px;
    background: #17a55b;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.18s ease;
    border: 2px solid #17a55b;
    box-shadow: 0 6px 18px rgba(23,165,91,0.08);
}

.product-price .btn-view-details:hover {
    background: #0f8a45;
    border-color: #0f8a45;
    transform: translateY(-2px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}



