/*
 * Romelius Affiliate Importer — storefront
 *
 * Table of contents
 * 1. Buy box, buttons & disclosure
 * 2. Item stats & unavailable notice
 * 3. Badges & product lists
 * 4. Price history
 * 5. AI review & FAQ
 * 6. Comparison table
 * 7. Comparison links & hub
 */
.rea-buy { display: grid; gap: 14px; margin: 0 0 1.5em; }
.rea-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rea-buttons .button { margin: 0 !important; float: none !important; }
.rea-preview-button { background: transparent !important; border: 2px solid currentColor !important; color: inherit !important; }
.rea-disclosure { font-size: .85em; line-height: 1.5; padding: .75em 1em; border-radius: 8px; background: rgba(0, 0, 0, .04); border-left: 3px solid rgba(0, 0, 0, .2); }
.rea-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92em; }
.rea-stats li { margin: 0; }
.rea-star { color: #f5a623; }
.rea-muted { opacity: .7; }
.rea-unavailable-note { padding: .75em 1em; border-radius: 8px; background: #fdecee; color: #a01b2b; font-weight: 600; margin: 0; }
.rea-loop-unavailable { display: inline-block; font-size: .85em; opacity: .7; padding: .5em 0; }
.rea-badge-unavailable { position: absolute; top: .6em; left: .6em; z-index: 2; background: #a01b2b; color: #fff; font-size: .75em; font-weight: 700; padding: .25em .6em; border-radius: 4px; text-transform: uppercase; }
.products .product { position: relative; }
.rea-review { margin: 0 0 1.5em; padding: 1.1em 1.25em; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .08); background: linear-gradient(180deg, rgba(47, 107, 255, .05), rgba(47, 107, 255, 0)); }
.rea-review__title { margin: 0 0 .5em; font-size: 1.05em; }
.rea-review__summary { margin: 0 0 .75em; }
.rea-review ul { list-style: none; margin: 0 0 .75em; padding: 0; display: grid; gap: .35em; }
.rea-review li { position: relative; padding-left: 1.6em; margin: 0; }
.rea-review__pros li::before { content: "✓"; position: absolute; left: 0; color: #12a150; font-weight: 700; }
.rea-review__cons li::before { content: "–"; position: absolute; left: .2em; color: #b45309; font-weight: 700; }
.rea-review__best { margin: 0; font-size: .95em; }
.rea-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.rea-badge { display: inline-flex; align-items: center; gap: 4px; padding: .3em .7em; border-radius: 999px; font-size: .85em; line-height: 1.3; background: #f1f3f7; color: #1f2937; }
.rea-badge strong { font-weight: 700; }
.rea-badge__detail { opacity: .8; }
.rea-badge--trending { background: #fff1e6; color: #9a3412; }
.rea-badge--price_drop { background: #e8f8ee; color: #166534; }
.rea-badge--bestseller { background: #fff7d6; color: #854d0e; }
.rea-badge--updated { background: #e8f0ff; color: #1e40af; }
.rea-badge--new_launch { background: #ede9fe; color: #6d28d9; }
.rea-badges--loop { position: absolute; top: .6em; left: .6em; z-index: 3; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.rea-badges--loop .rea-badge { font-size: .72em; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.rea-badge-wrap { position: relative; }
.rea-list { margin: 0 0 2.5em; }
.rea-list__title { margin-bottom: .8em; }
.rea-list-empty { padding: 1em; border: 1px dashed rgba(0, 0, 0, .2); border-radius: 8px; opacity: .8; }

/* Price history (2.8) */
.rea-ph { border: 1px solid rgba(0, 0, 0, .1); border-radius: 10px; padding: .75em 1em; margin: 0; font-size: .9em; color: inherit; }
.rea-ph__title { font-weight: 700; margin-bottom: .35em; }
.rea-ph__chart { display: block; color: #2f6bff; margin: .25em 0 .5em; overflow: visible; }
.rea-ph__facts { line-height: 1.5; }
.rea-ph__good { display: inline-block; background: #e3f6ea; color: #0f7a3d; font-weight: 700; border-radius: 6px; padding: 1px 8px; margin-bottom: 2px; }
.rea-ph__note { margin-top: .4em; font-size: .85em; opacity: .65; }

/* AI FAQ */
.rea-faq__title { font-size: 1.25em; margin: 0 0 .8em; }
.rea-faq__item { border: 1px solid rgba(0,0,0,.1); border-radius: 10px; margin: 0 0 10px; padding: 0 16px; background: rgba(255,255,255,.6); }
.rea-faq__item summary { cursor: pointer; font-weight: 600; padding: 14px 24px 14px 0; list-style: none; position: relative; }
.rea-faq__item summary::-webkit-details-marker { display: none; }
.rea-faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.3em; opacity: .6; }
.rea-faq__item[open] summary::after { content: "−"; }
.rea-faq__a { padding: 0 0 14px; }
.rea-faq__a p { margin: 0; }

/* Comparison table */
.rea-cmp { margin: 1.5em 0; }
.rea-cmp__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(0,0,0,.1); border-radius: 12px; }
.rea-cmp__table { width: 100%; border-collapse: collapse; margin: 0; font-size: .95em; min-width: 420px; }
.rea-cmp__table th, .rea-cmp__table td { padding: 12px 14px; border-bottom: 1px solid rgba(0,0,0,.07); text-align: left; vertical-align: middle; }
.rea-cmp__table tbody th { font-weight: 600; width: 28%; background: rgba(0,0,0,.025); position: sticky; left: 0; }
.rea-cmp__table thead th { vertical-align: bottom; }
.rea-cmp__table thead a { text-decoration: none; color: inherit; display: block; }
.rea-cmp__img { display: block; width: 100%; max-width: 180px; height: auto; border-radius: 8px; margin-bottom: 8px; }
.rea-cmp__name { font-weight: 700; font-size: 1.05em; }
.rea-cmp__table td.is-best { background: rgba(18,161,80,.07); }
.rea-cmp__best { display: inline-block; font-size: .72em; font-weight: 700; color: #0f7a3d; background: rgba(18,161,80,.14); border-radius: 99px; padding: 2px 8px; margin-left: 4px; vertical-align: middle; }
.rea-cmp__actions td { border-bottom: 0; }
.rea-cmp__buy { display: inline-block; padding: .55em 1.1em; border-radius: 6px; text-decoration: none; }
.rea-cmp__demo { display: inline-block; margin-left: .6em; font-size: .9em; }
.rea-cmp__gone { opacity: .7; font-style: italic; }
.rea-cmp__note { font-size: .8em; opacity: .7; margin: .6em 0 0; }

/* Comparison links + hub */
.rea-cmp-links { margin: 1em 0 0; font-size: .92em; display: flex; flex-wrap: wrap; gap: .4em .8em; align-items: center; }
.rea-cmp-links > span { opacity: .75; }
.rea-cmp-links a { text-decoration: none; font-weight: 600; }
.rea-cmp-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 1.5em 0; }
.rea-cmp-hub__card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid rgba(0,0,0,.1); border-radius: 12px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.rea-cmp-hub__card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.rea-cmp-hub__imgs { display: flex; align-items: center; gap: 8px; }
.rea-cmp-hub__imgs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.rea-cmp-hub__vs { font-size: .75em; font-weight: 700; opacity: .6; text-transform: uppercase; }
.rea-cmp-hub__title { font-weight: 700; line-height: 1.3; }
