.wcds-wrap {
    direction: rtl;
    font-family: inherit;
    max-width: 100%;
    margin: 20px 0;
    color: #222;
}

/* تولبار بالای لیست */
.wcds-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(102,126,234,.25);
    margin-bottom: 22px;
}
.wcds-toolbar-icon { font-size: 22px; }

.wcds-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcds-label { font-weight: 700; font-size: 14px; white-space: nowrap;color: #fff!important; }

.wcds-percent {
    padding: 9px 16px;
    border-radius: 10px;
    border: none;
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    color: #4a3f8f;
    cursor: pointer;
    min-width: 150px;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    outline: none;
}
.wcds-custom-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.wcds-custom-profit {
    width: 110px;
    padding: 9px 32px 9px 12px;
    border-radius: 10px;
    border: none;
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    color: #4a3f8f;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    outline: none;
    -moz-appearance: textfield;
}
.wcds-custom-profit::-webkit-outer-spin-button,
.wcds-custom-profit::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wcds-custom-unit {
    position: absolute;
    inset-inline-end: 12px;
    color: #667eea;
    font-weight: 800;
    font-size: 14px;
    pointer-events: none;
}
.wcds-count-info {
    margin-inline-start: auto;
    font-size: 13px;
    opacity: .92;
    font-weight: 600;
}

/* گرید محصولات */
.wcds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 18px;
}

/* کارت محصول */
.wcds-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.wcds-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
.wcds-thumb {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fafafa;
}
.wcds-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.wcds-card:hover .wcds-thumb img { transform: scale(1.07); }
.wcds-badge {
    position: absolute;
    top: 10px; inset-inline-start: 10px;
    background: #e11d48;
    color: #fff;
    padding: 5px 11px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(225,29,72,.45);
}
.wcds-badge-custom {
    top: auto;
    bottom: 10px;
    inset-inline-start: 10px;
    background: #16a34a;
    box-shadow: 0 3px 10px rgba(22,163,74,.45);
    font-size: 12px;
}

.wcds-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.wcds-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wcds-title a { color: #222; text-decoration: none; }
.wcds-title a:hover { color: #667eea; }

.wcds-prices {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
}
.wcds-lbl { font-size: 11px; color: #888; font-weight: 500; display: block; }
.wcds-old {
    color: #999;
    font-size: 13px;
    text-decoration: line-through;
}
.wcds-new {
    color: #16a34a;
    font-weight: 800;
    font-size: 17px;
}

/* باکس سود */
.wcds-profit-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}
.wcds-profit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
}
.wcds-profit-row .wcds-lbl {
    font-size: 11px;
    font-weight: 600;
    color: inherit;
    opacity: .9;
    display: inline;
    margin: 0;
}
.wcds-profit-row .wcds-amount { font-weight: 800; white-space: nowrap; }

.wcds-profit-discount {
    color: #b91c1c;
    background: #fff1f2;
    border: 1px dashed #fecdd3;
}
.wcds-profit-custom {
    color: #075985;
    background: #eff6ff;
    border: 1px dashed #bae6fd;
}
.wcds-profit-total {
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(6,95,70,.08);
}
.wcds-profit-total .wcds-lbl { font-weight: 800; }

.wcds-btn {
    display: block;
    text-align: center;
    padding: 10px;
    margin-top: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    transition: opacity .2s, transform .2s;
}
.wcds-btn:hover { opacity: .92; transform: translateY(-1px); }

/* دکمه بارگذاری بیشتر */
.wcds-more-wrap { text-align: center; margin: 28px 0 10px; }
.wcds-load-more {
    padding: 13px 40px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 6px 18px rgba(102,126,234,.35);
    transition: transform .2s;
}
.wcds-load-more:hover:not(:disabled) { transform: translateY(-2px); }
.wcds-load-more:disabled { opacity: .55; cursor: wait; }

.wcds-status {
    text-align: center;
    color: #888;
    font-size: 13px;
    min-height: 20px;
    margin-top: 6px;
}

/* اسکلتون هنگام لود اولیه */
.wcds-skel {
    height: 380px;
    border-radius: 14px;
    background: linear-gradient(90deg, #f3f3f3 25%, #ececec 50%, #f3f3f3 75%);
    background-size: 200% 100%;
    animation: wcds-shine 1.4s infinite;
}
@keyframes wcds-shine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ریسپانسیو */
@media (max-width: 640px) {
    .wcds-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .wcds-info { padding: 10px; }
    .wcds-title { font-size: 13px; min-height: 38px; }
    .wcds-new { font-size: 15px; }
    .wcds-old { font-size: 12px; }
    .wcds-profit-row { font-size: 11.5px; padding: 5px 8px; gap: 4px; }
    .wcds-profit-row .wcds-lbl { font-size: 10.5px; }
    .wcds-profit-total { font-size: 12px; }

    .wcds-toolbar { padding: 12px 14px; border-radius: 12px; gap: 8px 10px; }
    .wcds-label { font-size: 12.5px; }
    .wcds-field { gap: 6px; }
    .wcds-percent { min-width: 120px; font-size: 13px; padding: 8px 10px; }
    .wcds-custom-profit { width: 85px; font-size: 13px; padding: 8px 26px 8px 8px; }
    .wcds-count-info { width: 100%; margin: 0; text-align: center; }
}
@media (max-width: 400px) {
    .wcds-grid { grid-template-columns: 1fr; }
    .wcds-field { width: 100%; }
    .wcds-percent { flex: 1; min-width: 0; }
}