/* AAB Lite — Responsive Product Cards */
/* Mobile First Design */

.aabl-card,
.aabl-list-card,
.aabl-best-picks {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

/* ===== SINGLE CARD ===== */
.aabl-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    margin-bottom: 16px;
}
.aabl-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

/* Card image */
.aabl-card-img {
    background: #f8f9fa;
    text-align: center;
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}
.aabl-card-img img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Card body */
.aabl-card-body {
    padding: 14px 16px 16px;
}
.aabl-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.aabl-card-title a {
    color: inherit;
    text-decoration: none;
}
.aabl-card-title a:hover { color: #2563eb; }

/* Discount badge */
.aabl-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 1;
}

/* ===== GRID ===== */
.aabl-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}
@media (min-width: 480px) {
    .aabl-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .aabl-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .aabl-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .aabl-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== RATING ===== */
.aabl-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.aabl-stars { display: flex; gap: 1px; }
.aabl-star { font-size: 14px; }
.aabl-star-full  { color: #f59e0b; }
.aabl-star-half  { color: #f59e0b; opacity: .6; }
.aabl-star-empty { color: #d1d5db; }
.aabl-rating-num { font-size: 13px; font-weight: 600; color: #374151; }
.aabl-reviews    { font-size: 12px; color: #9ca3af; }

/* ===== PRICE ===== */
.aabl-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.aabl-price {
    font-size: 20px;
    font-weight: 700;
    color: #16a34a;
}
.aabl-old-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* ===== BADGES ===== */
.aabl-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}
.aabl-badge-green  { background: #d1fae5; color: #065f46; }
.aabl-badge-red    { background: #fee2e2; color: #991b1b; }
.aabl-badge-orange { background: #ffedd5; color: #9a3412; }
.aabl-badge-blue   { background: #dbeafe; color: #1e40af; }

/* ===== BUTTON ===== */
.aabl-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #ff9900;
    color: #111 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .1s;
    letter-spacing: .3px;
}
.aabl-btn:hover {
    background: #e68900;
    transform: scale(1.01);
}
.aabl-btn:active { transform: scale(.98); }
.aabl-btn-disabled {
    background: #d1d5db !important;
    color: #6b7280 !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== LIST CARD (Best Picks) ===== */
.aabl-best-picks {
    margin: 24px 0;
}
.aabl-picks-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f59e0b;
}

.aabl-list-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: box-shadow .2s;
}
.aabl-list-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

/* Rank badge */
.aabl-list-rank {
    position: absolute;
    top: -8px;
    left: 14px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* List image */
.aabl-list-img {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
}
.aabl-list-img img {
    width: 100%;
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
}

/* List info */
.aabl-list-info { flex: 1; min-width: 0; }
.aabl-list-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 8px 0 6px;
    line-height: 1.4;
}
.aabl-list-title a { color: inherit; text-decoration: none; }
.aabl-list-title a:hover { color: #2563eb; }

/* Features list */
.aabl-features {
    list-style: none;
    padding: 0;
    margin: 6px 0 8px;
}
.aabl-features li {
    font-size: 12px;
    color: #4b5563;
    padding: 2px 0 2px 14px;
    position: relative;
    line-height: 1.4;
}
.aabl-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
}

.aabl-list-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.aabl-list-bottom .aabl-price-row { margin-bottom: 0; }
.aabl-list-bottom .aabl-btn {
    width: auto;
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    flex-shrink: 0;
}

/* Disclosure */
.aabl-disclosure {
    font-size: 11px;
    color: #9ca3af;
    font-style: italic;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 480px) {
    .aabl-list-card {
        flex-direction: column;
    }
    .aabl-list-img {
        width: 100%;
        text-align: center;
    }
    .aabl-list-img img {
        max-height: 140px;
        width: auto;
        max-width: 100%;
    }
    .aabl-list-bottom {
        flex-direction: column;
        align-items: stretch;
    }
    .aabl-list-bottom .aabl-btn {
        width: 100%;
        text-align: center;
    }
    .aabl-card-img img {
        height: 140px;
    }
    .aabl-price { font-size: 18px; }
    .aabl-picks-title { font-size: 17px; }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .aabl-card,
    .aabl-list-card {
        background: #1f2937;
        border-color: #374151;
    }
    .aabl-card-img { background: #111827; border-color: #374151; }
    .aabl-card-title,
    .aabl-list-title,
    .aabl-picks-title { color: #f9fafb; }
    .aabl-card-title a,
    .aabl-list-title a { color: #f9fafb; }
    .aabl-rating-num { color: #e5e7eb; }
    .aabl-features li { color: #d1d5db; }
    .aabl-list-rank { background: #f9fafb; color: #111827; }
    .aabl-disclosure { color: #6b7280; border-color: #374151; }
}
