/* ============================================
   Amazing Products Slider v2 - دقیقاً مشابه عکس
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }

.aps-outer {
    direction: rtl;
    font-family: 'IRANSans', 'Vazirmatn', 'Tahoma', Arial, sans-serif;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin: 16px 0;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    min-height: 220px;
}

/* ============================
   SIDEBAR - ستون ثابت راست
   ============================ */
.aps-sidebar {
    flex: 0 0 130px;
    width: 130px;
    background: #e53935;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 10px;
    position: relative;
    z-index: 2;
}
.aps-track {
    direction: ltr !important;
}
.aps-sidebar-title {
    color: #fff;
    font-size: 23px !important;
    font-weight: 900;
    line-height: 1.45 !important;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Timer */
.aps-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    direction: ltr;
}

.aps-t-seg {
background: rgba(255, 255, 255, 0.18);
    color: #e53a36;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 5px;
    min-width: 28px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    background-color: white;
}

.aps-t-sep {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    opacity: 0.85;
}

/* % icon circle */
.aps-sidebar-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

/* مشاهده همه - کامنت شده در PHP */
.aps-view-all-btn {
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0.9;
    margin-top: 4px;
    transition: opacity 0.2s;
}
.aps-view-all-btn:hover { opacity: 1; color: #fff; text-decoration: none; }

/* ============================
   SLIDER AREA - بخش اسلایدر
   ============================ */
.aps-slider-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.aps-slider-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: stretch;
    position: relative;
}

.aps-track-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.aps-track {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    height: 100%;
}

/* ============================
   DOTS - نقطه‌های ناوبری
   ============================ */
.aps-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 8px;
}

.aps-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, width 0.2s, border-radius 0.2s;
}

.aps-dot:hover { background: #bbb; }

.aps-dot.active {
    background: #e53935;
    width: 20px;
    border-radius: 4px;
}

/* ============================
   SLIDES
   ============================ */
.aps-slide {
    flex: 0 0 20%;      /* 5 items desktop */
    min-width: 20%;
    border-left: 1px solid #f0f0f0;
}

.aps-slide:last-child { border-left: none; }

.aps-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px 12px;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s;
}

.aps-card:hover {
    background: #fafafa;
    text-decoration: none;
    color: inherit;
}

/* Image */
.aps-img-wrap {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.aps-img-wrap img {
    max-width: 100%;
    max-height: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s;
}

.aps-card:hover .aps-img-wrap img { transform: scale(1.04); }

/* Title */
.aps-name {
    font-size: 12px;
    color: #333;
    text-align: right;
    width: 100%;
    margin: 0 0 8px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

/* Price block */
.aps-price-block { width: 100%; margin-top: auto; }

.aps-row-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 3px;
}

.aps-old-price {
    color: #bbb;
    font-size: 12px;
    text-decoration: line-through;
    direction: ltr;
}

.aps-badge {
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
    padding: 1px 7px;
    line-height: 1.7;
    flex-shrink: 0;
}

.aps-row-bottom {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
    direction: rtl;
}

.aps-new-price {
    color: #222;
    font-size: 14px;
    font-weight: 700;
    direction: ltr;
}

.aps-toman {
    color: #666;
    font-size: 11px;
}

/* ============================
   NAV ARROWS
   ============================ */
.aps-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,0.92);
    border: 1px solid #ddd;
    color: #888;
    width: 28px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
    padding: 0;
    line-height: 1;
    outline: none;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.aps-arrow:hover {
    background: #e53935;
    color: #fff;
    border-color: #e53935;
}

.aps-arrow-prev {
    left: 0;
    border-radius: 0;
}

.aps-arrow-next {
    right: 0;
    border-radius: 0;
}

.aps-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}
.sliderpino a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart.add-to-cart-loop
 {
    border-radius: 10px;
    padding: 0;
}
.aps-slider-area {
    border-top: 20px solid #e53a36;
    border-bottom: 20px solid #e53a36;
	        border-right: 5px solid #e53a36;
}.aps-slide {
    border-left: 5px solid #e53a36;
}
p.aps-name {
    font-size: 12px !important;
    line-height: 1.6 !important;
    margin: 0;
}
/* ============================
   RESPONSIVE
   ============================ */

/* Tablet: 3 slides, sidebar narrower */
@media (max-width: 1024px) {
    .aps-slide { flex: 0 0 33.333%; min-width: 33.333%; }
    .aps-sidebar { flex: 0 0 110px; width: 110px; }
    .aps-sidebar-title { font-size: 16px; }
}

/* Mobile: hide sidebar, show 2 slides */
@media (max-width: 767px) {
	.sliderpino .wd-product.wd-hover-standard .wd-add-btn .add-to-cart-loop span {
    font-size: 10px;
}
	p.aps-name {
    font-size: 10px !important;
    line-height: 1.6 !important;
    margin: 0;
}
	button.aps-arrow {
    position: absolute;
    border-radius: 50% !important;
    border: 1px solid #e53a36 !important;
    font-size: 20px !important;
    height: 40px !important;
    width: 40px !important;
}.aps-slider-area {
    border-top: 0px solid #e53a36;
    border-bottom: 10px solid #e53a36;
}
    .aps-outer {
        flex-direction: column;
        border-radius: 8px;
    }

    .aps-sidebar {
                flex-direction: row;
        width: 100%;
        flex: none;
        padding: 10px 14px 0 14px;
        border-radius: 0;
        gap: 12px;
        justify-content: flex-start;
    }

    .aps-sidebar-title {
        font-size: 15px !important;
        line-height: 1.3 !important;
        white-space: nowrap;
    }

    .aps-timer { gap: 2px; }
    .aps-t-seg { font-size: 13px; min-width: 35px; padding: 2px 4px; }

    .aps-sidebar-icon {
        width: 100px;
        height: 36px;
        font-size: 18px;
        margin-right: auto;
    }
	.aps-slider-area {
    border-top: 10px solid #ff0000 !important;
}

    .aps-slide { flex: 0 0 50%; min-width: 50%; }

    .aps-img-wrap { height: 110px; }
    .aps-img-wrap img { max-height: 110px; }
}

@media (max-width: 400px) {
    .aps-slide { flex: 0 0 50%; min-width: 50%; }
    .aps-card { padding: 10px 7px 10px; }
}
