/* ==============================================
   بخش ۷: کارت محصول مدرن و سراسری (Nexus/WooCommerce)
============================================== */
.amz-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 450px;
    height: auto;
    min-height: unset;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    box-sizing: border-box;
    margin: 0 auto;
}

.amz-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: #286FE5;
}

/* تصویر شاخص */
.amz-product-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #f5f5f5;
}

.amz-product-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.amz-product-card:hover .amz-product-card-thumb img {
    transform: scale(1.03);
}

/* نشان درصد تخفیف */
.amz-product-card-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e53935;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

/* بدنه کارت */
.amz-product-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    min-height: 0;
}

/* دسته‌بندی */
.amz-product-card-category {
    font-size: 12px;
    color: #286FE5;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.amz-product-card-category svg {
    width: 14px;
    height: 14px;
    fill: #286FE5;
}

/* عنوان */
.amz-product-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.amz-product-card:hover .amz-product-card-title {
    color: #286FE5;
}

/* نام استاد */
.amz-product-card-teacher {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #286FE5;
    background: #f0f5ff;
    padding: 3px 12px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 10px;
}

.amz-product-card-teacher svg {
    width: 16px;
    height: 16px;
    fill: #286FE5;
}

/* فوتر */
.amz-product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* قیمت */
.amz-product-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.amz-product-card-old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.amz-product-card-new-price {
    font-size: 17px;
    font-weight: 700;
}

/* کلاس‌های رنگی قیمت */
.amz-product-card-new-price.sale {
    color: #10b981;
}
.amz-product-card-new-price.free {
    color: #10b981;
    font-size: 16px;
}
.amz-product-card-new-price.normal {
    color: #1a1a1a;
}

/* امتیاز */
.amz-product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #f59e0b;
    background: #fff9ed;
    padding: 4px 10px;
    border-radius: 14px;
    border: 1px solid #ffe0b2;
}

.amz-product-card-rating svg {
    width: 14px;
    height: 14px;
    fill: #f59e0b;
}

/* ==============================================
   بخش ۱۱: اسلایدر شورت‌کد محصولات (amz-slider)
============================================== */
.amz-slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.amz-slider-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.amz-slider-carousel::-webkit-scrollbar { display: none; }

.amz-slider-carousel .amz-product-card {
    flex: 0 0 280px;
    max-width: 280px;
    margin: 0;
    scroll-snap-align: start;
}

.amz-slider-prev,
.amz-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 5;
    transition: opacity 0.3s;
    opacity: 0;
}
.amz-slider-wrapper:hover .amz-slider-prev,
.amz-slider-wrapper:hover .amz-slider-next { opacity: 1; }

.amz-slider-prev svg,
.amz-slider-next svg {
    width: 22px;
    height: 22px;
    fill: #333;
}
.amz-slider-prev { left: 10px; }
.amz-slider-next { right: 10px; }

@media (max-width: 768px) {
    .amz-slider-wrapper { padding: 0 10px; }
    .amz-slider-carousel .amz-product-card {
        flex: 0 0 78%;
        max-width: 78%;
        height: auto;
    }
    .amz-product-card-price {
        flex-wrap: wrap;
        gap: 2px;
    }
    .amz-product-card-new-price.sale,
    .amz-product-card-new-price.free,
    .amz-product-card-new-price.normal {
        font-size: 13px;
        white-space: nowrap;
    }
    .amz-product-card-old-price {
        font-size: 11px;
    }
}