﻿
.slider-wrapper {
    max-width: 1340px;
    width: 100%;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.03);
    padding: 30px 20px 40px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 8px 18px 8px;
    border-bottom: 2px solid #f0ede8;
    flex-wrap: wrap;
    gap: 12px;
}

    .slider-header h2 {
        font-weight: 500;
        font-size: 1.9rem;
        letter-spacing: -0.5px;
        color: #1e1e1e;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .slider-header h2 i {
            color: #c9a96e;
            font-size: 2rem;
        }

    .slider-header .badge-gold {
        background: #c9a96e;
        color: #fff;
        font-size: 0.8rem;
        padding: 4px 16px;
        border-radius: 40px;
        letter-spacing: 0.8px;
        font-weight: 400;
        margin-right: 6px;
        opacity: 0.9;
    }

.slider-nav {
    display: flex;
    gap: 12px;
}

    .slider-nav button {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: 1px solid #e0dbd3;
        background: #ffffff;
        color: #2b2b2b;
        font-size: 1.2rem;
        cursor: pointer;
        transition: 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .slider-nav button:hover {
            background: #c9a96e;
            color: #fff;
            border-color: #c9a96e;
            box-shadow: 0 8px 16px rgba(201, 169, 110, 0.15);
        }

.slider-container {
    overflow: hidden;
    margin-top: 28px;
    padding: 6px 0 12px 0;
    border-radius: 24px;
}

.slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    /* مهم: همیشه از LTR استفاده می‌کنیم برای چیدمان */
    direction: ltr;
}

.product-card {
    min-width: 280px;
    flex: 0 0 280px;
    background: #ffffff;
    border-radius: 28px;
    padding: 18px 18px 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1eee9;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

    .product-card:hover {
        border-color: #c9a96e;
        box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(201, 169, 110, 0.15);
        transform: translateY(-4px);
    }

    .product-card .gold-tag {
        position: absolute;
        top: 18px;
        right: 18px;
        background: #c9a96e;
        color: #fff;
        padding: 4px 14px;
        font-size: 0.7rem;
        border-radius: 50px;
        letter-spacing: 0.5px;
        font-weight: 500;
        opacity: 0.9;
    }

    .product-card .image-wrap {
        width: 100%;
        aspect-ratio: 1 / 1;
        background: #faf9f7;
        border-radius: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 18px;
        overflow: hidden;
        border: 1px solid #f0ede8;
        transition: border 0.2s;
    }

    .product-card:hover .image-wrap {
        border-color: #dac29c;
    }

    .product-card .image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    .product-card:hover .image-wrap img {
        transform: scale(1.02);
    }

    .product-card .product-title {
        font-size: 1.1rem;
        font-weight: 500;
        color: #1f1f1f;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .product-card .product-sub {
        font-size: 0.85rem;
        color: #7a7a7a;
        font-weight: 300;
        margin-bottom: 14px;
        border-bottom: 1px dashed #ece7e0;
        padding-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .product-card .product-sub i {
            color: #c9a96e;
            font-size: 0.8rem;
        }

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 4px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1e1e1e;
    letter-spacing: -0.5px;
}

    .price-current small {
        font-size: 0.8rem;
        font-weight: 300;
        color: #6b6b6b;
        margin-right: 4px;
    }

.price-old {
    font-size: 0.9rem;
    color: #9a9a9a;
    text-decoration: line-through;
    font-weight: 300;
}

.btn-gold {
    background: transparent;
    border: 1.5px solid #c9a96e;
    color: #1f1f1f;
    padding: 12px 8px;
    border-radius: 60px;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.25s ease;
    cursor: pointer;
    background: #fefcf9;
    width: 100%;
    margin-top: 2px;
}

    .btn-gold i {
        color: #c9a96e;
        font-size: 1rem;
        transition: 0.2s;
    }

    .btn-gold:hover {
        background: #c9a96e;
        color: #fff;
        border-color: #c9a96e;
        box-shadow: 0 8px 18px -6px rgba(201, 169, 110, 0.3);
    }

        .btn-gold:hover i {
            color: #fff;
        }

.slider-nav-mobile {
    display: none;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

    .slider-nav-mobile button {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        border: 1px solid #ddd8cf;
        background: #ffffff;
        color: #222;
        font-size: 1.4rem;
        transition: 0.2s;
        cursor: pointer;
    }

        .slider-nav-mobile button:hover {
            background: #c9a96e;
            color: #fff;
            border-color: #c9a96e;
        }

/* ریسپانسیو */
@media (max-width: 1024px) {
    .product-card {
        min-width: 240px;
        flex: 0 0 240px;
    }
}

@media (max-width: 820px) {
    .slider-wrapper {
        padding: 20px 12px 30px;
    }

    .slider-header h2 {
        font-size: 1.6rem;
    }

        .slider-header h2 i {
            font-size: 1.6rem;
        }

    .product-card {
        min-width: 210px;
        flex: 0 0 210px;
    }

    .price-current {
        font-size: 1.3rem;
    }

    .slider-nav {
        display: none;
    }

    .slider-nav-mobile {
        display: flex;
    }
}

@media (max-width: 550px) {
    .slider-wrapper {
        padding: 16px 8px 24px;
        border-radius: 24px;
    }

    .slider-header h2 {
        font-size: 1.4rem;
        gap: 6px;
    }

        .slider-header h2 i {
            font-size: 1.4rem;
        }

    .slider-header .badge-gold {
        font-size: 0.65rem;
        padding: 2px 12px;
    }

    .product-card {
        min-width: 170px;
        flex: 0 0 170px;
        padding: 14px 12px 18px;
        border-radius: 24px;
    }

        .product-card .product-title {
            font-size: 0.95rem;
        }

    .price-current {
        font-size: 1.1rem;
    }

    .btn-gold {
        font-size: 0.8rem;
        padding: 10px 6px;
    }

    .product-card .gold-tag {
        font-size: 0.6rem;
        top: 12px;
        right: 12px;
        padding: 2px 12px;
    }

    .slider-nav-mobile button {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .product-card {
        min-width: 150px;
        flex: 0 0 150px;
        padding: 10px 8px 14px;
    }

        .product-card .product-title {
            font-size: 0.85rem;
        }

    .price-current {
        font-size: 1rem;
    }

    .slider-header h2 {
        font-size: 1.1rem;
    }
}
