/* Modern Product Grid & Card Styles (Clean RTL-Ready Architecture) */
.products-grid,
.products-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 18px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .products-grid,
    .products-grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

.product-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    z-index: 3;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

/* RTL Badges */
.badge-mega-promo {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(229, 62, 62, 0.35);
    letter-spacing: 0.5px;
}

.badge-discount-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #fc6027;
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 8px;
    border-top-left-radius: 8px;
}

/* Category Filter Chips */
.filter-chip {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.filter-chip:hover {
    border-color: #fc6027;
    color: #fc6027;
}

.filter-chip.active {
    background: #fc6027;
    color: #ffffff;
    border-color: #fc6027;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(252, 96, 39, 0.35);
}