/* ==========================================================================
   Flavor Affiliate — Product Listing v2
   ========================================================================== */

.flavor-products-listing {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
    counter-reset: product-counter;
}

/* ==========================================================================
   HERO PRODUCT — "Coup de Coeur" featured section
   ========================================================================== */

.flavor-hero {
    position: relative;
    background: linear-gradient(135deg, #fff9f0 0%, #fff 50%, #f0f9ff 100%);
    border: 2px solid #ff9900;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 24px rgba(255, 153, 0, 0.12);
}

.flavor-hero-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff9900, #e67700);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.4rem 1.5rem;
    border-radius: 24px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 3px 12px rgba(255, 153, 0, 0.35);
    white-space: nowrap;
}

.flavor-hero-inner {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.flavor-hero-image {
    flex: 0 0 300px;
    text-align: center;
}

.flavor-hero-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.flavor-hero-image .flavor-go:hover img {
    transform: scale(1.04);
}

.flavor-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.flavor-hero-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
}

.flavor-hero-verdict {
    font-size: 1rem;
    font-weight: 600;
    color: #e67700;
    font-style: italic;
}

.flavor-hero-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

.flavor-hero-desc p {
    margin: 0 0 0.5rem;
}

.flavor-hero-pros {
    list-style: none;
    padding: 0.75rem 1rem;
    margin: 0;
    background: rgba(0, 163, 42, 0.06);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 1.5rem;
}

.flavor-hero-pros li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: #2d2d2d;
    line-height: 1.5;
}

.flavor-hero-pros li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #00a32a;
    font-weight: 700;
}

.flavor-hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.flavor-hero-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
}

.flavor-hero-cta {
    flex: 1;
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff9900, #e67700);
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(255, 153, 0, 0.35);
}

.flavor-hero-cta:hover {
    background: linear-gradient(135deg, #e68a00, #cc7a00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.45);
    color: #fff !important;
    text-decoration: none !important;
}

/* ==========================================================================
   STAR RATINGS
   ========================================================================== */

.flavor-product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.flavor-stars {
    display: inline-flex;
    gap: 1px;
}

.flavor-star {
    font-size: 1.1rem;
    line-height: 1;
}

.flavor-star-full {
    color: #ff9900;
}

.flavor-star-half {
    color: #ff9900;
    opacity: 0.5;
}

.flavor-star-empty {
    color: #ddd;
}

.flavor-rating-text {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* ==========================================================================
   REVIEW HIGHLIGHT — Customer quote
   ========================================================================== */

.flavor-review-highlight {
    position: relative;
    background: #f8f6ff;
    border-left: 3px solid #7c3aed;
    border-radius: 0 8px 8px 0;
    padding: 0.85rem 1rem 0.85rem 2.5rem;
    margin-top: 0.25rem;
}

.flavor-review-highlight-small {
    padding: 0.65rem 0.85rem 0.65rem 2.2rem;
}

.flavor-review-quote-icon {
    position: absolute;
    left: 0.65rem;
    top: 0.3rem;
    font-size: 2rem;
    color: #7c3aed;
    opacity: 0.4;
    font-family: Georgia, serif;
    line-height: 1;
}

.flavor-review-highlight p {
    margin: 0;
    font-size: 0.88rem;
    font-style: italic;
    color: #444;
    line-height: 1.55;
}

.flavor-review-source {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: #888;
    font-style: normal;
}

/* ==========================================================================
   PRODUCT BADGES (custom per-product)
   ========================================================================== */

.flavor-product-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, #7c3aed, #6025c0);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    z-index: 2;
}

/* ==========================================================================
   PRODUCT VERDICT
   ========================================================================== */

.flavor-product-verdict {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e67700;
    font-style: italic;
    border-left: 3px solid #ff9900;
    padding-left: 0.65rem;
}

/* ==========================================================================
   PRODUCT ROW — Zigzag layout
   ========================================================================== */

.flavor-product-row {
    display: flex;
    align-items: stretch;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
    position: relative;
    counter-increment: product-counter;
}

.flavor-product-row:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* Ranking number */
.flavor-product-row::before {
    content: "#" counter(product-counter);
    position: absolute;
    top: -12px;
    left: 24px;
    background: linear-gradient(135deg, #334155, #1e293b);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.flavor-product-reversed::before {
    left: auto;
    right: 24px;
}

.flavor-product-reversed {
    flex-direction: row-reverse;
}

/* Visual column */
.flavor-product-visual {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.flavor-product-image-wrap {
    position: relative;
    width: 100%;
    text-align: center;
    background: #fafafa;
    border-radius: 8px;
    padding: 1rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Obfuscated clickable elements — no <a> tags */
.flavor-go {
    cursor: pointer;
    display: inline-block;
}

.flavor-product-image-wrap .flavor-go {
    text-decoration: none !important;
}

.flavor-product-image-wrap img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.flavor-product-image-wrap .flavor-go:hover img {
    transform: scale(1.03);
}

.flavor-product-price {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.4rem 1.25rem;
    background: linear-gradient(135deg, #ff9900, #e68a00);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 24px;
    letter-spacing: 0.02em;
}

/* Pros */
.flavor-product-pros {
    list-style: none;
    padding: 0.75rem 1rem;
    margin: 0;
    width: 100%;
    background: #f0faf0;
    border-radius: 8px;
}

.flavor-product-pros li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.6rem;
    font-size: 0.9rem;
    color: #2d2d2d;
    line-height: 1.5;
}

.flavor-product-pros li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #00a32a;
    font-weight: 700;
    font-size: 1rem;
}

/* CTA */
.flavor-product-cta {
    display: inline-block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #ff9900, #e68a00);
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(255, 153, 0, 0.3);
}

.flavor-product-cta:hover {
    background: linear-gradient(135deg, #e68a00, #cc7a00);
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(255, 153, 0, 0.4);
    color: #fff !important;
    text-decoration: none !important;
}

/* Out of stock */
.flavor-product-oos-badge {
    display: block;
    text-align: center;
    padding: 0.35rem 0.85rem;
    background: #fde8e8;
    color: #d63638;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #f5c6c6;
}

.flavor-product-oos .flavor-product-cta {
    background: #bbb;
    box-shadow: none;
    pointer-events: none;
    opacity: 0.7;
}

.flavor-product-oos .flavor-product-image-wrap {
    opacity: 0.55;
}

/* Info column */
.flavor-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.flavor-product-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
    color: #1a1a1a;
    border-left: 4px solid #ff9900;
    padding-left: 0.75rem;
}

.flavor-product-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #444;
}

.flavor-product-desc p {
    margin: 0 0 0.5rem;
}

.flavor-product-desc p:last-child {
    margin-bottom: 0;
}

/* Specs */
.flavor-product-specs {
    list-style: none;
    padding: 0.75rem 1rem;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #eee;
}

.flavor-product-specs li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.87rem;
    color: #555;
    line-height: 1.55;
}

.flavor-product-specs li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #ff9900;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ==========================================================================
   SECTION TITLES (shared)
   ========================================================================== */

.flavor-section-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 0.35rem;
}

.flavor-section-subtitle {
    text-align: center;
    font-size: 0.92rem;
    color: #666;
    margin: 0 0 1.5rem;
}

/* ==========================================================================
   USE CASES — Real scenarios from customer reviews
   ========================================================================== */

.flavor-use-cases {
    margin: 2.5rem 0;
    padding: 2rem 0;
}

.flavor-use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.flavor-use-case-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flavor-use-case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.flavor-use-case-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff9900, #e67700);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    border-radius: 50%;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.flavor-use-case-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.flavor-use-case-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #555;
}

/* ==========================================================================
   TESTIMONIALS — Merged customer quotes
   ========================================================================== */

.flavor-testimonials {
    margin: 2.5rem 0;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #fef9f0 0%, #fff 50%, #f8f6ff 100%);
    border-radius: 16px;
    border: 1px solid #f0ead8;
}

.flavor-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.flavor-testimonials-grid .flavor-testimonial-card:nth-child(4),
.flavor-testimonials-grid .flavor-testimonial-card:nth-child(5) {
    grid-column: span 1;
}

.flavor-testimonial-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flavor-testimonial-stars {
    display: flex;
    gap: 1px;
}

.flavor-testimonial-text {
    margin: 0;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.6;
    color: #333;
    flex: 1;
}

.flavor-testimonial-source {
    font-size: 0.78rem;
    color: #999;
    font-style: normal;
}

/* ==========================================================================
   TIPS & TRICKS — User advice from reviews
   ========================================================================== */

.flavor-tips {
    margin: 2.5rem 0;
    padding: 2rem 0;
}

.flavor-tips-slider {
    position: relative;
    overflow: hidden;
}

.flavor-tips-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}

.flavor-tips-track::-webkit-scrollbar {
    display: none;
}

.flavor-tip-slide {
    flex: 0 0 38%;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 14px;
    padding: 2rem 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flavor-tip-slide strong {
    display: block;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.flavor-tip-slide p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* Fade on the right edge — signals scrollable content */
.flavor-tips-fade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 25%;
    background: linear-gradient(to right, transparent, #f5f5f5);
    pointer-events: none;
}

/* ==========================================================================
   DISCOVER CTA — All products on Amazon
   ========================================================================== */

.flavor-discover {
    margin: 2.5rem 0 1rem;
}

.flavor-discover-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f4fd 100%);
    border: 2px dashed #90caf9;
    border-radius: 14px;
    padding: 2rem 2.5rem;
}

.flavor-discover-text {
    flex: 1;
}

.flavor-discover-text h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
}

.flavor-discover-text p {
    margin: 0;
    font-size: 0.92rem;
    color: #555;
    line-height: 1.5;
}

.flavor-discover-cta {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(25, 118, 210, 0.3);
    white-space: nowrap;
    text-align: center;
}

.flavor-discover-cta:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(25, 118, 210, 0.4);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .flavor-hero-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .flavor-hero-image {
        flex: none;
        width: 100%;
    }

    .flavor-hero {
        padding: 2rem 1.25rem;
    }

    .flavor-hero-title {
        font-size: 1.3rem;
    }

    .flavor-hero-pros {
        grid-template-columns: 1fr;
    }

    .flavor-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .flavor-hero-price {
        text-align: center;
    }

    .flavor-product-row,
    .flavor-product-reversed {
        flex-direction: column;
        padding: 1.5rem 1.25rem;
        gap: 1.5rem;
    }

    .flavor-product-row::before {
        left: 16px;
        top: -10px;
    }

    .flavor-product-reversed::before {
        left: 16px;
        right: auto;
    }

    .flavor-product-visual {
        flex: none;
        width: 100%;
    }

    .flavor-product-image-wrap img {
        max-height: 220px;
    }

    .flavor-product-specs {
        grid-template-columns: 1fr;
    }

    .flavor-product-title {
        font-size: 1.15rem;
    }

    /* New components responsive */
    .flavor-use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flavor-testimonials {
        padding: 1.5rem 1.25rem;
    }

    .flavor-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .flavor-discover-inner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .flavor-discover-cta {
        width: 100%;
    }

    .flavor-tip-slide {
        flex: 0 0 55%;
    }
}

@media (max-width: 480px) {
    .flavor-products-listing {
        padding: 0 0.5rem;
    }

    .flavor-product-row {
        padding: 1.25rem 1rem;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .flavor-use-cases-grid {
        grid-template-columns: 1fr;
    }

    .flavor-section-title {
        font-size: 1.15rem;
    }

    .flavor-tip-slide {
        flex: 0 0 80%;
    }
}
