.ajax-woo-products-wrapper {
    position: relative;
}

/* گرید محصولات */
.ajax-woo-products-wrapper .ajax-woo-products-grid {
    display: grid;
    grid-template-columns: repeat(var(--awp-columns, 4), 1fr);
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

/* کارت محصول */
.ajax-woo-products-wrapper .ajax-woo-product-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    list-style: none;
}

.ajax-woo-products-wrapper .ajax-woo-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.ajax-woo-products-wrapper .ajax-woo-product-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f2f2f2;
}

.ajax-woo-products-wrapper .ajax-woo-product-image img {
    object-fit: cover;
    display: block;
    margin: 0;
    transition: transform 0.35s ease;
}

.ajax-woo-products-wrapper .ajax-woo-product-card:hover .ajax-woo-product-image img {
    transform: scale(1.05);
}

.ajax-woo-products-wrapper .ajax-woo-product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 20px;
    text-align: right;
}

.ajax-woo-products-wrapper .ajax-woo-product-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ajax-woo-products-wrapper .ajax-woo-product-title a {
    color: inherit;
    text-decoration: none;
}

.ajax-woo-products-wrapper .ajax-woo-product-headline {
    font-size: 13.5px;
    line-height: 1.9;
    color: #6b6b6b;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ajax-woo-products-wrapper .ajax-woo-product-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 18px;
}

.ajax-woo-products-wrapper .ajax-woo-product-price del {
    opacity: 0.55;
    font-weight: 400;
    margin-inline-end: 6px;
}

.ajax-woo-products-wrapper .ajax-woo-product-view-btn {
    margin-top: auto;
    display: inline-block;
    padding: 11px 24px;
    background: #2f2b8f;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.ajax-woo-products-wrapper .ajax-woo-product-view-btn:hover {
    background: #221f6b;
    color: #fff;
}

.ajax-woo-products-wrapper .ajax-woo-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}

/* حالت در حال بارگذاری */
.ajax-woo-products-wrapper.is-loading .ajax-woo-products-grid {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.ajax-woo-products-loading {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.ajax-woo-products-wrapper.is-loading .ajax-woo-products-loading {
    display: flex;
}

/* صفحه‌بندی */
.ajax-woo-products-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.ajax-woo-products-pagination .ajax-woo-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid #e2e2e2;
    text-decoration: none;
    color: inherit;
}

.ajax-woo-products-pagination .ajax-woo-page-link.is-active {
    background: #2f2b8f;
    color: #fff;
    border-color: transparent;
}
