:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 20px 40px rgba(118, 75, 162, 0.15);
    --text-main: #2d3748;
    --text-muted: #718096;
}

body {
    background: #f7fafc;
    font-family: 'IRAN-Rounded', sans-serif !important;
    color: var(--text-main);
}

#products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

@media (max-width: 1200px) { #products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { #products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { #products { grid-template-columns: repeat(1, 1fr); } }

.product-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
    border-color: #764ba2;
}

.img-container {
    height: 200px;
    overflow: hidden;
    background: #f4f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-box {
    margin-top: auto;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: #667eea;
}

.toman {
    font-size: 0.75rem;
    margin-right: 4px;
    color: var(--text-muted);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-dit {
    color: #4a5568;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    background: none;
}

.btn-dit:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.btn-cart {
    color: white;
    background: var(--primary-gradient);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    width: 100%;
}

.btn-cart.in-cart {
    background: #48bb78;
}
