/* ================================================
   YD Elementor Widgets — style.css v1.2.0
   ================================================ */

/* ---------- Bullets ---------- */
.yd-bullets-wrap {
    direction: rtl;
    font-family: 'Noto Sans Hebrew', sans-serif;
    padding: 0.5rem 0;
}
.yd-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}
.yd-bullet-item:last-child {
    margin-bottom: 0;
}
.yd-bullet-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 6px;
}
.yd-bullet-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00DFBC;
    flex-shrink: 0;
}
.yd-bullet-line {
    width: 2px;
    flex: 1;
    background: #00DFBC33;
    min-height: 40px;
    margin-top: 6px;
}
.yd-bullet-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid #4C1678;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
    cursor: default;
}
.yd-bullet-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: filter 0.3s ease;
}
.yd-bullet-item:hover .yd-bullet-icon {
    background: #4C1678;
    border-color: #4C1678;
}
.yd-bullet-item:hover .yd-bullet-icon img {
    filter: brightness(0) invert(1);
}

.yd-bullet-content {
    flex: 1;
}
.yd-bullet-title {
    font-size: 28px;
    font-weight: 700;
    color: #4C1678;
    margin: 0 0 6px;
    line-height: 1.2;
}
.yd-bullet-desc {
    font-size: 15px;
    color: #54595F;
    margin: 0;
    line-height: 1.6;
}

/* ---------- Data Table ---------- */
.yd-data-table-wrap {
    direction: rtl;
    font-family: 'Noto Sans Hebrew', sans-serif;
    overflow-x: auto;
    width: 100%;
}
.yd-data-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px dotted #B6ADBB5E;
    font-size: 14px;
}
.yd-data-table thead td,
.yd-data-table thead th {
    background: #B6ADBB5E;
    color: #ffffff;
    padding: 10px 14px;
    border: 1px dotted #B6ADBB5E;
    font-weight: 600;
    text-align: right;
}
.yd-data-table tbody td {
    color: #EFE9F2;
    padding: 10px 14px;
    border: 1px dotted #EFE9F25E;
    background: transparent;
    text-align: right;
    vertical-align: top;
}
.yd-data-table tbody tr:hover td {
    background: rgba(255,255,255,0.03);
}
.yd-data-table p {
    margin: 0 0 4px;
    line-height: 1.5;
}
.yd-data-table p:last-child {
    margin-bottom: 0;
}
/* ---------- Related Products ---------- */
.yd-rp-wrap {
    direction: rtl;
    font-family: inherit;
    position: relative;
}

/* כרטיס */
.yd-rp-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.yd-rp-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}
.yd-rp-img-link { display: block; overflow: hidden; }
.yd-rp-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    padding: 10px;
    background: #f9f9f9;
    transition: transform 0.3s ease;
}
.yd-rp-card:hover .yd-rp-img { transform: scale(1.04); }
.yd-rp-info {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}
.yd-rp-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.yd-rp-product-name:hover { color: #4C1678; }
.yd-rp-price { font-size: 15px; font-weight: 700; color: #4C1678; }
.yd-rp-price .woocommerce-Price-amount { color: inherit; }
.yd-rp-btn {
    display: block;
    text-align: center;
    background: #4C1678;
    color: #fff;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
    transition: background 0.2s ease;
}
.yd-rp-btn:hover { background: #3a1060; color: #fff; }

/* מוצר יחיד */
.yd-rp-single .yd-rp-card { max-width: 280px; }

/* Stack */
.yd-rp-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.yd-rp-stack .yd-rp-card {
    flex-direction: row;
    align-items: center;
    border-radius: 10px;
}
.yd-rp-stack .yd-rp-img-link { flex-shrink: 0; width: 110px; }
.yd-rp-stack .yd-rp-img { aspect-ratio: 1/1; width: 110px; border-radius: 10px 0 0 10px; }
.yd-rp-stack .yd-rp-info { padding: 12px 14px; }

/* סליידר */
.yd-rp-slider-wrap { overflow: hidden; position: relative; }
.yd-rp-slider {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}
.yd-rp-slide {
    min-width: 220px;
    max-width: 220px;
    margin-left: 16px;
    flex-shrink: 0;
}
.yd-rp-slide:last-child { margin-left: 0; }

/* חצים */
.yd-rp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.yd-rp-arrow:hover { background: #f0f0f0; }
.yd-rp-prev { right: -14px; }
.yd-rp-next { left: -14px; }
.yd-rp-arrow.yd-rp-hidden { opacity: 0; pointer-events: none; }

@media (max-width: 480px) {
    .yd-rp-stack .yd-rp-card { flex-direction: column; }
    .yd-rp-stack .yd-rp-img-link { width: 100%; }
    .yd-rp-stack .yd-rp-img { width: 100%; border-radius: 10px 10px 0 0; }
    .yd-rp-slide { min-width: 160px; max-width: 160px; }
}
