/* From shop-grid.html & salla-card.php */
:root { 
    --ym-yellow: #f7ce46; 
    --ym-dark: #443f32; 
    --ym-red: #eb4d3d; 
    --ym-bg: #f9f9f9; 
    --ym-green: #27ae60; 
}

/* Base Styles (Scoped where possible, but user asked for replication) */
body.ym-plugin-active { 
    background-color: var(--ym-bg);
}

/* --- GRID SYSTEM --- */
.ym-products-grid { 
    display: grid; 
    gap: 20px; 
    width: 100%; 
    margin: 0 auto 40px auto; 
    grid-template-columns: repeat(4, 1fr); 
}
.ym-cols-1 { grid-template-columns: 1fr; }
.ym-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ym-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ym-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ym-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* Responsive Grid */
@media (max-width: 992px) {
    .ym-products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .ym-mob-cols-1 { grid-template-columns: 1fr !important; }
    .ym-mob-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* --- CARD DESIGN --- */
.ym-product-card { 
    background: #fff; 
    border: 1px solid #000; 
    border-radius: 12px; 
    overflow: hidden; 
    transition: all 0.3s ease; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
}

.ym-product-card:hover { 
    box-shadow: 0 8px 20px rgba(0,0,0,0.06); 
    border-color: var(--ym-yellow); 
    transform: translateY(-3px); 
}

.ym-card-img { 
    position: relative; 
    width: 100%; 
    padding-top: 100%; 
    overflow: hidden; 
    background: #fff; 
}

.ym-card-img img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    padding: 5px; 
}

.ym-badge { 
    position: absolute; 
    top: 10px; 
    right: 0; 
    background: var(--ym-red); 
    color: #fff; 
    font-size: 11px; 
    padding: 3px 8px; 
    border-radius: 4px 0 0 4px; 
    font-weight: bold; 
    z-index: 2; 
}

.ym-card-body { 
    padding: 12px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
    text-align: center; 
}

.ym-card-cat { 
    color: #aaa; 
    font-size: 10px; 
    margin-bottom: 5px; 
}

.ym-card-title { 
    font-size: 13px; 
    font-weight: 800; 
    color: var(--ym-dark); 
    margin-bottom: 8px; 
    line-height: 1.4; 
    height: 38px; 
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
}

.ym-card-title a { 
    color: inherit; 
    text-decoration: none; 
}

.ym-card-price { 
    margin-top: auto; 
    color: var(--ym-dark); 
    font-weight: 900; 
    font-size: 15px; 
    padding: 5px 0; 
}

.ym-card-price del { 
    color: #ccc; 
    font-size: 12px; 
    font-weight: normal; 
    margin-left: 5px; 
    text-decoration: line-through;
}

.ym-add-btn { 
    width: 100%; 
    padding: 8px; 
    border: 1px solid var(--ym-dark); 
    color: var(--ym-dark); 
    background: transparent; 
    border-radius: 6px; 
    font-weight: 700; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 5px; 
    text-decoration: none !important; 
    font-size: 12px; 
    transition: 0.2s; 
}

.ym-add-btn:hover { 
    background: var(--ym-dark); 
    color: #fff !important; 
}

/* Star Rating Simulation */
.ym-rating-container { display: flex; justify-content: center; margin-bottom: 5px; color: var(--ym-yellow); font-size: 14px; }
