/* ═══════════════════════════════════════
   DS Smart Linker – Public Card Styles
   ═══════════════════════════════════════ */

/* Container */
.ds-product-cta {
    display: block;
    margin: 30px auto;
    max-width: 650px;
    width: 95%;
    /* Responsive width for mobile */
    padding: 2px;
    /* For gradient border */
    border-radius: 16px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    font-family: system-ui, -apple-system, sans-serif;
    direction: rtl;
    /* Default RTL */
    box-sizing: border-box;
}

/* Glow Effect */
.ds-product-cta__glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.ds-product-cta__inner {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    z-index: 1;
}

/* Badge */
.ds-product-cta__badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #3b82f6;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-bottom-right-radius: 14px;
    border-top-left-radius: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ds-product-cta__badge svg {
    width: 14px;
    height: 14px;
}

/* Body Layout */
.ds-product-cta__body {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Image */
.ds-product-cta__img-wrap {
    flex: 0 0 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-product-cta__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ds-product-cta:hover .ds-product-cta__img {
    transform: scale(1.05);
}

/* Info */
.ds-product-cta__info {
    flex: 1;
}

.ds-product-cta__title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
}

.ds-product-cta__desc {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.ds-product-cta__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.ds-product-cta__price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0b57d0;
}

.ds-product-cta__price del {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 5px;
}

/* Button */
.ds-product-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ds-product-cta__btn:hover {
    background: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 600px) {
    .ds-product-cta__body {
        flex-direction: column;
        align-items: flex-start;
    }

    .ds-product-cta__img-wrap {
        width: 100%;
        height: 160px;
        flex: 0 0 auto;
    }

    .ds-product-cta__footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .ds-product-cta__btn {
        justify-content: center;
    }
}
.ds-product-cta__btn {
    background: #0b57d0 !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}
.ds-product-cta__btn:hover {
    background: #0842a0 !important;
}

@media (max-width: 600px) {
    .ds-product-cta {
        margin: 20px 10px;
        width: auto;
    }
    .ds-product-cta__body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .ds-product-cta__img-wrap {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .ds-product-cta__footer {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .ds-product-cta__btn {
        width: 100%;
    }
}

