/* ── SA Product Feed — Frontend Styles ─────────────────────────────────────── */

.sa-feed-wrapper {
    font-family: inherit;
    margin: 0 0 40px;
}

/* Header / meta / search */
.sa-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.sa-feed-meta {
    margin: 0;
    font-size: 13px;
    color: #888;
}

.sa-feed-search-wrap {
    flex: 0 0 auto;
}

.sa-feed-search {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 240px;
    outline: none;
    transition: border-color .2s;
}
.sa-feed-search:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,.15);
}

/* Grid */
.sa-feed-grid {
    display: grid;
    gap: 20px;
}
.sa-feed-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sa-feed-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sa-feed-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .sa-feed-grid-3,
    .sa-feed-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .sa-feed-grid-2,
    .sa-feed-grid-3,
    .sa-feed-grid-4 { grid-template-columns: 1fr; }
    .sa-feed-search  { width: 100%; }
    .sa-feed-header  { flex-direction: column; align-items: flex-start; }
}

/* Card */
.sa-feed-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.sa-feed-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

.sa-feed-card__image-link {
    display: block;
    background: #f7f7f7;
    text-align: center;
    padding: 16px;
}
.sa-feed-card__image {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.sa-feed-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.sa-feed-card__brand {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #999;
    font-weight: 600;
}

.sa-feed-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}
.sa-feed-card__title a {
    color: inherit;
    text-decoration: none;
}
.sa-feed-card__title a:hover {
    color: #0073aa;
}

.sa-feed-card__desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.sa-feed-card__price {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 4px 0 2px;
}

.sa-feed-card__availability {
    font-size: 11px;
    font-weight: 600;
}
.sa-feed-card__availability.in-stock    { color: #2e7d32; }
.sa-feed-card__availability.out-of-stock{ color: #c62828; }

.sa-feed-card__btn {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 16px;
    background: #0073aa;
    color: #fff !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    transition: background .2s;
}
.sa-feed-card__btn:hover {
    background: #005a87;
}

/* Empty / no results */
.sa-feed-empty,
.sa-feed-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
}

/* CTA footer */
.sa-feed-cta {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: #666;
}
.sa-feed-cta a {
    color: #0073aa;
    font-weight: 600;
}
