/* ============================================================
   Amazon Block Styles — cards, intro table, pros/cons
   ============================================================ */

/* ── Product Card (H3-level blocks) ─────────────────────────── */
.amz-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 1em;
    margin: 14px 0 28px;
    padding: 28px 20px;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    font-family: inherit !important;
}

.amz-card-img {
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 16px;
}

.amz-card-title {
    margin: 0 0 16px;
    font-size: 0.8em;
    font-weight: 600;
    line-height: 1.4;
    color: #111;
}

.amz-card-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    background: var(--wp--preset--color--primary, #FF9900);
    color: #fff !important;
    transition: opacity .2s, transform .2s;
    border: none;
    cursor: pointer;
    font-family: inherit !important;
}

.amz-card-btn,
.amz-card-btn * {
    color: #fff !important;
}

.amz-card-btn:hover {
    filter: brightness(.92);
    transform: translateY(-1px);
}

.amz-card-btn-l1 {
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: .3px;
}

.amz-card-btn-l2 {
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: .2px;
}

/* ── Intro Table ─────────────────────────────────────────────── */
.amz-intro-wrap {
    border-radius: 12px;
    border: 1px solid #e3e3e3;
    font-size: 1em;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    overflow: hidden;
    margin: 28px 0 36px;
    background: #fff;
    font-family: inherit !important;
}

.amz-head-row,
.amz-row {
    display: grid;
    grid-template-columns: 32px 110px 1fr 150px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.amz-head-row {
    background: #f7f7f7;
    border-bottom: 2px solid #e3e3e3;
}

.amz-head-row span {
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    text-align: center;
    letter-spacing: .5px;
}

.amz-head-row span:nth-child(3) {
    text-align: left;
}

.amz-row {
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}

.amz-row:hover {
    background: #fafafa;
}

.amz-row:last-child {
    border-bottom: none;
}

.amz-num {
    text-align: center;
}

.amz-num span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--wp--preset--color--primary, #FF9900);
    color: #fff !important;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
}

.amz-img {
    display: flex;
    justify-content: center;
}

.amz-img img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 6px;
    background: #fafafa;
    transition: transform .2s;
}

.amz-img img:hover {
    transform: scale(1.06);
}

.amz-name a {
    font-size: 0.8em;
    font-weight: 600;
    color: #222;
    line-height: 1.45;
    text-decoration: none;
    transition: color .15s;
    display: block;
}

.amz-name a:hover {
    color: var(--wp--preset--color--primary, #0066c0);
}

.amz-btn-col {
    display: flex;
    justify-content: center;
}

.amz-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    justify-content: center;
    padding: 10px 16px;
    background: var(--wp--preset--color--primary, #FF9900);
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    transition: filter .2s, transform .2s;
    font-family: inherit !important;
}

.amz-btn,
.amz-btn * {
    color: #fff !important;
}

.amz-btn:hover {
    filter: brightness(.92);
    transform: translateY(-1px);
}

.amz-btn-l1 {
    font-size: 0.75em;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: .2px;
}

.amz-btn-l2 {
    font-size: 0.75em;
    font-weight: 700;
    white-space: nowrap;
}

/* ── Pros / Cons Cards ───────────────────────────────────────── */
.pc-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0 28px;
    font-family: inherit !important;
    font-size: 1em;
}

.pc-box {
    border-radius: 10px;
    padding: 20px 25px 25px;
}

.pc-pros {
    background: #f0faf4;
    border: 1px solid #b7e4c7;
}

.pc-cons {
    background: #fff5f5;
    border: 1px solid #ffb3b3;
}

.pc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 12px;
}

.pc-pros .pc-title { color: #1a7f37; }
.pc-cons .pc-title { color: #cf1f1f; }

.pc-title svg { flex-shrink: 0; }

.pc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pc-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9em;
    line-height: 1.1;
    color: #333;
}

.pc-mark {
    flex-shrink: 0;
    margin-top: 1px;
    font-weight: 700;
}

.pc-pros .pc-mark { color: #1a7f37; }
.pc-cons .pc-mark { color: #cf1f1f; }

.pc-simple-list {
    list-style: none;
    margin: 18px 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: inherit !important;
}

.pc-simple-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #222;
}

.pc-simple-mark {
    flex-shrink: 0;
    margin-top: 1px;
    font-weight: 700;
    color: #111;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 520px) {
    .pc-wrap {
        grid-template-columns: 1fr;
    }

    .amz-head-row {
        display: none;
    }

    .amz-row {
        grid-template-columns: 90px 1fr 88px;
        padding: 10px 12px;
    }

    .amz-num {
        display: none;
    }

    .amz-btn {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 8px 10px;
        min-width: 80px;
    }
}

/* ── Placeholder card (no image found) ──────────────────────── */
.amz-card-placeholder-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid #eee;
}

.amz-card-subtitle {
    margin: 0 0 16px;
    font-size: 0.75em;
    color: #888;
}
