/* === Flavor Affiliate Public Styles === */

/* Product Card */
.fa-product-card {
    display: flex;
    gap: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}
.fa-product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.fa-product-card__image { flex: 0 0 180px; }
.fa-product-card__image img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
}
.fa-product-card__body { flex: 1; }
.fa-product-card__title {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a202c;
    line-height: 1.4;
}
.fa-product-card__price {
    font-size: 1.4em;
    font-weight: 700;
    color: #e53e3e;
    margin-bottom: 8px;
}
.fa-product-card__desc {
    color: #4a5568;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 12px;
}
.fa-product-card__provider { margin-bottom: 12px; }

/* Buttons */
.fa-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.95em;
}
.fa-btn--primary {
    background: #3182ce;
    color: #fff;
}
.fa-btn--primary:hover {
    background: #2b6cb0;
    color: #fff;
    text-decoration: none;
}
.fa-btn--cta {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.fa-btn--cta:hover {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229,62,62,0.4);
}
.fa-btn--cta::after {
    content: ' ▸';
}
.fa-btn--large {
    padding: 14px 36px;
    font-size: 1.1em;
    border-radius: 10px;
}
.fa-btn--small {
    padding: 6px 14px;
    font-size: 0.85em;
    border-radius: 6px;
}
.fa-cta-wrap {
    text-align: center;
    margin: 24px 0;
}

/* Badges */
.fa-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
}
.fa-badge--a8 { background: #fff3e0; color: #e65100; }
.fa-badge--amazon { background: #fff8e1; color: #f57f17; }
.fa-badge--rakuten { background: #fce4ec; color: #c62828; }

/* Ranking */
.fa-ranking { margin: 24px 0; }
.fa-ranking__item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #fff;
}
.fa-ranking__rank {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    font-weight: 800;
    border-radius: 50%;
    background: #e2e8f0;
    color: #4a5568;
}
.fa-ranking__medal--1 { background: linear-gradient(135deg, #ffd700, #ffb300); color: #fff; }
.fa-ranking__medal--2 { background: linear-gradient(135deg, #c0c0c0, #9e9e9e); color: #fff; }
.fa-ranking__medal--3 { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }
.fa-ranking__image { flex: 0 0 80px; }
.fa-ranking__image img { width: 80px; height: 80px; object-fit: contain; border-radius: 6px; }
.fa-ranking__body { flex: 1; }
.fa-ranking__title { font-size: 1.05em; font-weight: 600; margin: 0 0 4px; }
.fa-ranking__price { color: #e53e3e; font-weight: 700; margin-bottom: 8px; }

/* Comparison */
.fa-comparison { margin: 24px 0; overflow-x: auto; }
.fa-comparison__table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.fa-comparison__table th {
    background: #2d3748;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9em;
}
.fa-comparison__table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}
.fa-comparison__table tr:hover td { background: #f7fafc; }
.fa-comparison__thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; margin-right: 8px; vertical-align: middle; }

/* Price Box */
.fa-price-box {
    text-align: center;
    padding: 24px;
    border: 2px solid #e53e3e;
    border-radius: 12px;
    margin: 24px 0;
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
}
.fa-price-box__title { font-size: 1.1em; font-weight: 600; margin-bottom: 8px; }
.fa-price-box__price { font-size: 2em; font-weight: 800; color: #e53e3e; margin-bottom: 16px; }

/* Also Comparison Table in articles */
.fa-comparison-table { width: 100%; }
.fa-comparison-table th { background: #f7fafc; padding: 10px; border: 1px solid #e2e8f0; }
.fa-comparison-table td { padding: 10px; border: 1px solid #e2e8f0; }

/* Responsive */
@media (max-width: 640px) {
    .fa-product-card { flex-direction: column; }
    .fa-product-card__image { flex: none; text-align: center; }
    .fa-product-card__image img { width: 100%; max-width: 200px; height: auto; }
    .fa-ranking__item { flex-wrap: wrap; }
}
