/* ============================================================================
   3orod Amazon Cards — native blend design
   Mimics 3orod.net's offer card style. Only Amazon-specific visual is a small
   transparency badge in the image corner.
   ============================================================================ */

.orod-amazon-card-wrapper {
    box-sizing: border-box;
}

.orod-amazon-card-wrapper * {
    box-sizing: border-box;
}

/* Outer link wraps the whole card for one big click target.
   We intentionally use minimal styling and let Elementor's own .elementor-post
   class provide the card frame (background, border, shadow). */
.orod-amazon-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
    direction: rtl;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
    overflow: hidden;
    border: 1px solid #eeeeee;
}

/*
.orod-amazon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
*/


/* ---------------------------------------------------------------------------
   Image area
   --------------------------------------------------------------------------- */
.orod-amazon-card__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #ffffff;
}

.orod-amazon-card__image {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    padding: 8px;
    display: block;
}

/* Small Amazon badge — top-right corner (RTL eye-entry point).
   Amazon brand orange on dark navy — recognizable but unobtrusive. */
.orod-amazon-card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #232f3e;
    color: #ff9900;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    line-height: 1.4;
    letter-spacing: 0;
    direction: rtl;
}

/* ---------------------------------------------------------------------------
   Title — matches the typography of native offer card titles
   --------------------------------------------------------------------------- */
.orod-amazon-card__title {
    font-size: 17px;
    /* font-weight: 700; */
    line-height: 1.6;
    color: #b22222;
    margin: 12px 14px 14px;
    text-align: right;
    direction: rtl;
    font-family: "Cairo", Sans-serif;

    /* Allow 2 lines, ellipsis on overflow */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em; /* keeps card heights aligned across the grid */
}

/* ---------------------------------------------------------------------------
   Responsive tweaks
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .orod-amazon-card__title { font-size: 14px; margin: 10px 12px 12px; }
    .orod-amazon-card__badge { font-size: 10px; padding: 2px 6px; }
}
