/* آیا بخرم - Product Card */
.ayb-products-widget {
    width: 100%;
    margin: 30px auto;
    box-sizing: border-box;
    font-family: inherit;
}

.ayb-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.ayb-products-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.6;
    font-weight: 700;
    color: #111;
}

.ayb-products-dots {
    color: #999;
    font-size: 20px;
    letter-spacing: 3px;
    line-height: 1;
}

.ayb-products-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 5px 3px 15px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.ayb-product-card {
    flex: 0 0 300px;
    min-width: 0;
    min-height: 410px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    padding: 18px;
    box-sizing: border-box;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
}

.ayb-product-image-wrap {
    width: 100%;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.ayb-product-image {
    display: block;
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ayb-product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background: #f7f7f7;
    border-radius: 12px;
}

.ayb-product-name {
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 700;
    color: #171717;
    text-align: right;
}

.ayb-product-spacer {
    flex: 1;
    min-height: 18px;
}

.ayb-product-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    box-sizing: border-box;
    border-radius: 11px;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s ease, opacity .2s ease;
}

.ayb-product-button:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.ayb-product-arrow {
    font-size: 18px;
    line-height: 1;
}

.ayb-products-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    color: #999;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

.ayb-info-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1px solid #aaa;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

/* Sidebar variant - vertical stack, no horizontal scroll */
.ayb-sidebar-products-widget {
    width: 100%;
    margin: 20px auto;
    box-sizing: border-box;
    font-family: inherit;
}

.ayb-sidebar-products-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ayb-product-card--sidebar {
    flex: none;
    width: 100%;
    min-height: auto;
}

.ayb-product-card--sidebar .ayb-product-image-wrap {
    height: 170px;
    margin-bottom: 12px;
}

.ayb-product-card--sidebar .ayb-product-image {
    max-height: 160px;
}

@media (max-width: 767px) {
    .ayb-products-widget {
        margin: 25px auto;
    }

    .ayb-products-title {
        font-size: 19px;
    }

    .ayb-products-track {
        gap: 12px;
        padding-right: 2px;
        padding-left: 2px;
    }

    .ayb-product-card {
        flex: 0 0 82%;
        min-height: 390px;
        padding: 15px;
        border-radius: 16px;
    }

    .ayb-product-image-wrap {
        height: 195px;
    }

    .ayb-product-image {
        max-height: 185px;
    }

    .ayb-product-name {
        font-size: 16px;
    }
}
