/* Premium storefront product cards */
.zpc-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(26, 77, 46, 0.08);
    box-shadow: 0 8px 30px rgba(15, 40, 24, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.zpc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(26, 77, 46, 0.15);
}

/* Fixed image container — uniform size for all products */
.zpc-image-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f4f8f4;
    flex-shrink: 0;
}

.zpc-image-wrap img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
    transition: transform 0.4s ease;
}

.zpc-card:hover .zpc-image-wrap img {
    transform: scale(1.05);
}

.zpc-image-fallback {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #f8fbf8, #e8f5e9);
    border-radius: 12px 12px 0 0;
    color: var(--green-mid);
    opacity: 0.45;
}

/* Discount badge — top-right on image */
.zpc-badge-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 6px 11px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(198, 40, 40, 0.4);
    line-height: 1.2;
}

.zpc-body {
    padding: 1rem 1.15rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.zpc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.zpc-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(26, 77, 46, 0.08);
    color: var(--green-dark);
}

.zpc-tag-pack {
    background: rgba(201, 168, 76, 0.15);
    color: #8b6914;
}

.zpc-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark, #1a2e1a);
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.zpc-excerpt {
    font-size: 0.78rem;
    color: var(--text-muted, #6b7c6b);
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 0;
}

/* Pricing section */
.zpc-body .price-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: auto;
    margin-bottom: 14px;
    padding-top: 10px;
    border-top: 1px solid #eef2ee;
}

.price-section .sale-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--green-dark, #1a4d2e);
    line-height: 1;
}

.price-section .mrp-price {
    font-size: 0.9rem;
    color: #9aa89a;
    font-weight: 600;
}

.price-section .discount-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #2d7a3a, #1a4d2e);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.zpc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.zpc-btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--green-dark), #2d7a3a);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(26, 77, 46, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.zpc-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(26, 77, 46, 0.38);
    color: #fff !important;
}

.zpc-btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
    color: var(--green-dark) !important;
    border: 2px solid rgba(26, 77, 46, 0.18);
    transition: background 0.2s, border-color 0.2s;
}

.zpc-btn-details:hover {
    background: #f0f7f0;
    border-color: var(--green-mid);
    color: var(--green-dark) !important;
}

.products-page-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.75rem;
    padding: 14px 18px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8ede8;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.products-count-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-dark);
    background: #e8f5e9;
    padding: 6px 14px;
    border-radius: 20px;
}

#productsGrid > [class*="col-"] {
    display: flex;
}

#productsGrid .zpc-card {
    width: 100%;
}

@media (max-width: 575.98px) {
    .zpc-actions {
        grid-template-columns: 1fr;
    }

    .price-section .sale-price {
        font-size: 1.2rem;
    }
}
