/* The owner's Amazon-like Home sections (2026-09-28): deal cards and «منتجات بأقل من …».
   Loaded only while a section is on; built on the approved Home tokens (elitehub-home.css). */
.smart-cards .section-heading {
    justify-content: flex-end;
    margin-bottom: 12px
}
.smart-card {
    width: min(420px, 86%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--smart-bg);
    color: var(--smart-ink);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06)
}
.smart-card[hidden] {
    display: none
}
.smart-card-label {
    margin: 0 0 2px;
    font-size: calc(12px * var(--scale));
    font-weight: 500;
    opacity: .86
}
.smart-card h3 {
    margin: 0;
    font-size: calc(20px * var(--scale));
    font-weight: 600;
    line-height: 1.35;
    color: inherit
}
.smart-card h3 a,
.smart-card-more {
    color: inherit
}
.smart-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
}
.smart-card-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 8px;
    border-radius: 10px;
    background: #fff;
    color: #191919
}
.smart-card-media,
.smart-under-media {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #f4f4f2
}
.smart-card-media img,
.smart-under-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms var(--ease)
}
.smart-card-item .discount,
.smart-card-price {
    align-self: flex-start
}
.smart-card-price {
    font-size: calc(12px * var(--scale));
    font-weight: 600
}
.smart-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: calc(13px * var(--scale));
    font-weight: 500
}
.smart-card-more .icon,
.smart-under-all .icon {
    width: 16px;
    height: 16px
}
.smart-under {
    padding: 22px;
    border-radius: var(--radius);
    background-color: var(--smart-bg);
    color: var(--smart-ink)
}
.smart-under.has-image {
    color: #fff;
    background-image: linear-gradient(180deg, rgb(0 0 0 / .42), rgb(0 0 0 / .12) 55%, rgb(0 0 0 / 0)), var(--smart-image);
    background-size: cover;
    background-position: center
}
.smart-under-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px
}
.smart-under-head h2 {
    margin: 0;
    font-size: var(--heading);
    font-weight: 600;
    color: inherit
}
.smart-under-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: calc(13px * var(--scale));
    font-weight: 500;
    color: inherit
}
.smart-under-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap)
}
.smart-under-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    color: inherit
}
.smart-under-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    aspect-ratio: 1
}
.smart-under-name {
    font-size: calc(15px * var(--scale));
    font-weight: 600;
    text-align: center
}
@media (hover: hover) and (pointer: fine) {
    .smart-card-item:hover img,
    .smart-under-tile:hover img {
        transform: scale(1.04)
    }
}
@media (min-width: 901px) {
    /* The visible cards share the row: two or three, never a gap at the end. */
    .smart-cards-track > .smart-card {
        flex: 1 1 0;
        width: auto;
        min-width: 300px
    }
}
@media (max-width: 900px) {
    .smart-under-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}
@media (max-width: 560px) {
    .smart-card {
        padding: 14px
    }
    .smart-card h3 {
        font-size: calc(18px * var(--scale))
    }
    .smart-under {
        padding: 16px
    }
    .smart-under-head h2 {
        font-size: calc(19px * var(--scale))
    }
    .smart-under-grid {
        gap: 12px
    }
}
@media (prefers-reduced-motion: reduce) {
    .smart-card-media img,
    .smart-under-media img {
        transition: none
    }
}
