/**
 * Flavor Homepage Widgets — Combined Stylesheet
 * Covers: PC Builds Carousel + Trending Reviews
 */

/* ==========================================================================
   SHARED CSS VARIABLES (both widgets inherit these)
   ========================================================================== */
.flavor-pcc-section,
.flavor-tr-widget {
    --accent:        #2962ff;
    --accent-hover:  #0034c2;
    --accent-soft:   rgba(41, 98, 255, 0.1);
    --accent-deep:   #0d2980;
    --text:          #000000;
    --text-muted:    #6c6f72;
    --line:          #d0d0d0;
    --panel:         #ffffff;
    --radius:        6px;
    --radius-sm:     6px;
    --radius-lg:     14px;
    --transition:    all 0.25s ease;
    --star-gold:     #2962ff;
    --star-empty:    #d1d5db;

    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* ==========================================================================
   ELEMENTOR COMPATIBILITY
   ========================================================================== */

/* Only override overflow on the direct widget container holding our widget.
   Do NOT touch .elementor-widget-wrap or columns — Elementor needs
   overflow:hidden on those for its entrance animations (.elementor-invisible). */
.elementor-widget-container:has(> .flavor-tr-wrapper) {
    overflow: visible !important;
}

/* ==========================================================================
   PC BUILDS CAROUSEL
   ========================================================================== */

.flavor-pcc-section {
    color: var(--text);
    /* No bottom margin — let the page/Elementor section handle spacing */
    margin: 0;
    position: relative;
}

/* Header row */
.flavor-pcc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.flavor-pcc-title {
    font-family: 'Spartan', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin: 0;
}

/* Navigation */
.flavor-pcc-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.flavor-pcc-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    flex-shrink: 0;
}

.flavor-pcc-nav-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.flavor-pcc-nav-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.flavor-pcc-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Viewport */
.flavor-pcc-viewport {
    overflow: hidden;
    width: 100%;
}

/* Track */
.flavor-pcc-track {
    display: flex;
    gap: 30px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    align-items: stretch;
}

/* Card wrapper — 2 visible, gap 30px */
.flavor-pcc-card-wrap {
    flex: 0 0 calc((100% - 30px) / 2);
    min-width: calc((100% - 30px) / 2);
    display: flex;
    flex-direction: column;
}

/* Card fixed height */
.flavor-pcc-card-wrap .flavor-pcf-card {
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Image holder */
.flavor-pcc-card-wrap .flavor-pcf-card .blog-img-holder {
    flex: 1 1 auto;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.flavor-pcc-card-wrap .flavor-pcf-card .blog-img-holder img {
    width: 100%;
    height: 100%;
    min-height: unset !important;
    object-fit: cover;
    display: block;
}

/* Anchor fills holder absolutely */
.flavor-pcc-card-wrap .flavor-pcf-card .blog-img-holder .blog-img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.flavor-pcc-card-wrap .flavor-pcf-card .blog-img-holder .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gradient overlay */
.flavor-pcc-card-wrap .flavor-pcf-card .blog-img-holder .blog-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        to bottom,
        rgba(0,0,0,0)    0%,
        rgba(0,0,0,0.2)  40%,
        rgba(0,0,0,0.88) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Entry content overlay */
.flavor-pcc-card-wrap .flavor-pcf-card .blog-img-holder .entry-content,
.flavor-pcc-card-wrap .flavor-pcf-card .entry-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 3;
    padding: 20px;
    display: flex !important;
    flex-direction: column;
    pointer-events: none;
}

.flavor-pcc-card-wrap .flavor-pcf-card .entry-content a,
.flavor-pcc-card-wrap .flavor-pcf-card .entry-content span {
    pointer-events: auto;
}

/* White article title */
.flavor-pcc-card-wrap .flavor-pcf-card .entry-title,
.flavor-pcc-card-wrap .flavor-pcf-card .entry-title a {
    color: #ffffff !important;
}

/* Button area */
.flavor-pcc-card-wrap .flavor-pcf-buttons {
    flex: 0 0 auto;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* ------------------------------------------------------------------
   View All CTA card
   ------------------------------------------------------------------ */
.flavor-pcc-card-wrap.flavor-pcc-viewall-wrap {
    flex: 0 0 calc((100% - 30px) / 2);
    min-width: calc((100% - 30px) / 2);
}

.flavor-pcc-viewall-card {
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px dashed rgba(41, 98, 255, 0.4);
    text-decoration: none;
    transition: var(--transition);
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
}

.flavor-pcc-viewall-card:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, #1e1e35 0%, #1a2545 50%, #0f3d70 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(41, 98, 255, 0.2);
}

.flavor-pcc-viewall-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(41, 98, 255, 0.15);
    border: 2px solid rgba(41, 98, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.flavor-pcc-viewall-card:hover .flavor-pcc-viewall-icon {
    background: rgba(41, 98, 255, 0.3);
    border-color: var(--accent);
}

.flavor-pcc-viewall-icon svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
}

.flavor-pcc-viewall-label {
    font-family: 'Spartan', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
}

.flavor-pcc-viewall-heading {
    font-family: 'Spartan', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: -8px 0 0;
}

.flavor-pcc-viewall-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: #ffffff;
    font-family: 'Spartan', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-top: 8px;
}

.flavor-pcc-viewall-card:hover .flavor-pcc-viewall-btn {
    background: var(--accent-hover);
}

.flavor-pcc-viewall-btn svg {
    width: 14px;
    height: 14px;
    stroke: #ffffff;
    transition: transform 0.2s ease;
}

.flavor-pcc-viewall-card:hover .flavor-pcc-viewall-btn svg {
    transform: translateX(4px);
}

/* ------------------------------------------------------------------
   Dots — tight, no surplus space below
   ------------------------------------------------------------------ */
.flavor-pcc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px; /* reduced from 22px */
    /* No bottom margin — section wrapper handles that */
}

.flavor-pcc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
    transition: var(--transition);
    cursor: pointer;
    flex-shrink: 0;
}

.flavor-pcc-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* ------------------------------------------------------------------
   Carousel responsive
   ------------------------------------------------------------------ */
@media (max-width: 767px) {
    .flavor-pcc-track { gap: 20px; }

    .flavor-pcc-card-wrap,
    .flavor-pcc-card-wrap.flavor-pcc-viewall-wrap {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .flavor-pcc-card-wrap .flavor-pcf-card,
    .flavor-pcc-viewall-card { height: 420px; }

    .flavor-pcc-title { font-size: 18px; }
}

@media (max-width: 575px) {
    .flavor-pcc-track { gap: 16px; }

    .flavor-pcc-card-wrap .flavor-pcf-card,
    .flavor-pcc-viewall-card { height: 360px; }

    .flavor-pcc-title { font-size: 17px; }
    .flavor-pcc-header { margin-bottom: 18px; }
}


/* External title shown above the widget (rendered outside .flavor-tr-widget in PHP) */

.flavor-tr-wrapper {
    overflow: visible; /* prevent Elementor column clipping the title */
    display: flex;
    flex-direction: column;
}

/* External header row: title left, nav arrows right — mirrors carousel header */
.flavor-tr-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0; /* widget sits immediately below */
}

.flavor-tr-external-title {
    /* already defined below — override margin */
    margin-bottom: 0 !important;
    min-height: auto !important;
}

/* Nav buttons sit outside the blue widget on white background */
.flavor-tr-header-row .flavor-tr-nav {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.flavor-tr-header-row .flavor-tr-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #d0d0d0;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    flex-shrink: 0;
}

.flavor-tr-header-row .flavor-tr-nav-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.flavor-tr-header-row .flavor-tr-nav-btn:hover:not(:disabled) {
    border-color: #2962ff;
    color: #2962ff;
    background: rgba(41, 98, 255, 0.08);
}

.flavor-tr-header-row .flavor-tr-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* ==========================================================================
   TRENDING REVIEWS WIDGET
   ========================================================================== */

.flavor-tr-widget {
    background: #2962ff;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Top aligns with card image tops, bottom aligns with pagination dots */
    margin-top: 24px;
    height: 500px;
}

/* Header */
.flavor-tr-header {
    display: none;
}

.flavor-tr-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.flavor-tr-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    flex-shrink: 0;
}

.flavor-tr-icon svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
}

.flavor-tr-title {
    font-family: 'Spartan', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flavor-tr-badge {
    font-family: 'Spartan', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Review list */
.flavor-tr-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Row — white rounded rectangle */
.flavor-tr-row { margin: 0; padding: 0; }

.flavor-tr-row-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border-radius: var(--radius);
    padding: 9px 12px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1.5px solid transparent;
    cursor: pointer;
}

.flavor-tr-row-link:hover,
.flavor-tr-row-link:focus-visible {
    background: #f0f4ff;
    border-color: rgba(41, 98, 255, 0.3);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transform: translateY(-1px);
    outline: none;
}

/* Rank */
.flavor-tr-rank {
    font-family: 'Spartan', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #c0c7d4;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}

.flavor-tr-rank--top {
    color: var(--accent);
    font-size: 14px;
}

/* Thumbnail */
.flavor-tr-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flavor-tr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flavor-tr-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.flavor-tr-thumb-placeholder svg {
    width: 22px;
    height: 22px;
    stroke: #c0c7d4;
}

/* Text content */
.flavor-tr-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.flavor-tr-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--accent);
    line-height: 1;
}

.flavor-tr-name {
    font-family: 'Spartan', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flavor-tr-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.flavor-tr-date {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1;
}

/* Stars — same technique as Flavor Component Filters */
.flavor-tr-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.flavor-tr-stars .star {
    font-size: 12px;
    line-height: 1;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-color: #d1d5db;
    background-image: linear-gradient(
        90deg,
        #2962ff var(--fill, 0%),
        #d1d5db var(--fill, 0%)
    );
    color: #2962ff; /* fallback */
}

.flavor-tr-rating-num {
    font-size: 11px;
    font-weight: 700;
    color: #6c6f72;
    margin-left: 2px;
    -webkit-text-fill-color: initial;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

/* Arrow */
.flavor-tr-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #c0c7d4;
    transition: var(--transition);
}

.flavor-tr-arrow svg { width: 16px; height: 16px; }

.flavor-tr-row-link:hover .flavor-tr-arrow,
.flavor-tr-row-link:focus-visible .flavor-tr-arrow {
    color: var(--accent);
    transform: translateX(2px);
}

/* ------------------------------------------------------------------
   Scroll nav buttons (up/down arrows, same style as carousel)
   ------------------------------------------------------------------ */
.flavor-tr-widget .flavor-tr-nav {
    display: none;
}

.flavor-tr-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    flex-shrink: 0;
}

.flavor-tr-nav-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.flavor-tr-nav-btn:hover:not(:disabled) {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
}

.flavor-tr-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ------------------------------------------------------------------
   Scrollable viewport + fade overlay
   ------------------------------------------------------------------ */
.flavor-tr-scroll-wrap {
    position: relative;
    flex: 1 1 auto;   /* fill remaining height inside the fixed-height widget */
    overflow: hidden; /* JS controls scroll position, not native scroll */
    min-height: 0;    /* required for flex children to shrink */
}

/* The fade overlay at the bottom — fades from transparent to solid blue */
.flavor-tr-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(
        to bottom,
        rgba(41, 98, 255, 0) 0%,
        #2962ff 100%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Hide fade when scrolled to the bottom */
.flavor-tr-scroll-wrap.at-bottom .flavor-tr-fade-bottom {
    opacity: 0;
}

/* Footer CTA — matches Full Build Guide button style */
.flavor-tr-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: 'Spartan', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: var(--transition);
}

.flavor-tr-footer-link svg {
    width: 14px;
    height: 14px;
    stroke: #ffffff;
    transition: transform 0.2s ease;
}

.flavor-tr-footer-link:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.flavor-tr-footer-link:hover svg { transform: translateX(3px); }

/* Empty state */
.flavor-tr-empty {
    padding: 20px;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

/* Trending responsive */
@media (max-width: 575px) {
    .flavor-tr-widget { padding: 18px 16px; }
    .flavor-tr-title  { font-size: 17px; }
    .flavor-tr-thumb  { width: 46px; height: 46px; }
    .flavor-tr-name   { font-size: 12px; }
    .flavor-tr-row-link { padding: 10px 12px; gap: 10px; }
}

/* ==========================================================================
   ALIGNMENT HELPER
   The external title + widget sit in a flex column. The title height
   matches the carousel header (h2 + nav buttons ~52px + 24px margin-bottom)
   so the blue widget top aligns with the first card top.
   ========================================================================== */
.flavor-tr-external-title {
    font-family: 'Spartan', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
    margin: 0;
}

/* ==========================================================================
   QUICK NAV WIDGET  [flavor_quick_nav]
   ========================================================================== */

.flavor-qn-wrap {
    width: 100%;
    padding: 4px 2px 12px; /* extra bottom padding so box-shadow renders fully */
    box-sizing: border-box;
    overflow: visible;
}

.flavor-qn-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 4px 2px 8px; /* vertical room so translateY(-2px) + shadow don't clip */
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

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

/* Individual card */
.flavor-qn-item {
    flex: 1 1 0;
    min-width: 90px;
    scroll-snap-align: start;
}

.flavor-qn-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 10px 14px;
    border-radius: 14px;
    border: 1.5px solid rgba(41, 98, 255, 0.12);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(41, 98, 255, 0.07);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    height: 100%;
    box-sizing: border-box;
}

.flavor-qn-link:hover,
.flavor-qn-link:focus-visible {
    background: #f0f4ff;
    border-color: rgba(41, 98, 255, 0.45);
    box-shadow: 0 6px 18px rgba(41, 98, 255, 0.15);
    transform: translateY(-2px);
    outline: none;
}

/* Icon container — blue circle bg */
.flavor-qn-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(41, 98, 255, 0.08);
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.flavor-qn-link:hover .flavor-qn-icon-wrap,
.flavor-qn-link:focus-visible .flavor-qn-icon-wrap {
    background: rgba(41, 98, 255, 0.16);
}

.flavor-qn-icon {
    width: 24px;
    height: 24px;
    color: #2962ff;
    display: block;
    flex-shrink: 0;
}

/* Label */
.flavor-qn-label {
    font-family: 'Spartan', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.1px;
}

/* Responsive: on small screens allow horizontal scroll, cards fixed width */
@media (max-width: 767px) {
    .flavor-qn-item {
        flex: 0 0 82px;
        min-width: 82px;
    }

    .flavor-qn-link {
        padding: 12px 8px 10px;
        border-radius: 12px;
    }

    .flavor-qn-icon-wrap {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .flavor-qn-icon {
        width: 20px;
        height: 20px;
    }

    .flavor-qn-label {
        font-size: 10px;
    }
}

/* Quick nav section title (rendered inside shortcode, avoids Elementor clipping) */
.flavor-qn-title {
    font-family: 'Spartan', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 20px;
    line-height: 1.2;
}

/* ==========================================================================
   RECENTLY REVIEWED RIBBON  [flavor_recently_reviewed]
   ========================================================================== */

.flavor-rr-wrap {
    width: 100%;
}

.flavor-rr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.flavor-rr-title {
    font-family: 'Spartan', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.2;
}

.flavor-rr-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Spartan', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #2962ff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: gap 0.2s ease;
    flex-shrink: 0;
}

.flavor-rr-view-all svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.flavor-rr-view-all:hover { gap: 7px; }
.flavor-rr-view-all:hover svg { transform: translateX(2px); }

/* Outer container holds arrows + fade overlays + scrollable track */
.flavor-rr-outer {
    position: relative;
}

/* Left/right nav arrows */
.flavor-rr-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #d0d0d0;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.flavor-rr-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

.flavor-rr-arrow:hover:not(:disabled) {
    border-color: #2962ff;
    color: #2962ff;
    background: rgba(41, 98, 255, 0.08);
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.15);
}

.flavor-rr-arrow:disabled {
    opacity: 0;
    pointer-events: none;
    cursor: default;
}

.flavor-rr-arrow--left  { left: -18px; }
.flavor-rr-arrow--right { right: -18px; }

/* Fade overlays on left and right edges */
.flavor-rr-fade-left,
.flavor-rr-fade-right {
    position: absolute;
    top: 0;
    bottom: 8px; /* match track padding-bottom */
    width: 60px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flavor-rr-fade-left {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.flavor-rr-fade-right {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.flavor-rr-fade-left.visible,
.flavor-rr-fade-right.visible { opacity: 1; }

/* Scrollable track */
.flavor-rr-track-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
}

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

.flavor-rr-track {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 4px 2px 4px;
}

/* Card */
.flavor-rr-item {
    flex: 0 0 180px;
    scroll-snap-align: start;
}

.flavor-rr-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1.5px solid rgba(41, 98, 255, 0.1);
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(41, 98, 255, 0.07);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.flavor-rr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(41, 98, 255, 0.14);
    border-color: rgba(41, 98, 255, 0.35);
}

/* Image */
.flavor-rr-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f4ff;
    flex-shrink: 0;
}

.flavor-rr-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.flavor-rr-card:hover .flavor-rr-img-wrap img {
    transform: scale(1.04);
}

.flavor-rr-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.flavor-rr-img-placeholder svg {
    width: 28px;
    height: 28px;
    stroke: #c0c7d4;
}

/* Category pill over image */
.flavor-rr-cat {
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: 'Spartan', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #ffffff;
    background: #2962ff;
    padding: 3px 7px;
    border-radius: 999px;
    line-height: 1.4;
}

/* Body */
.flavor-rr-body {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
}

.flavor-rr-name {
    font-family: 'Spartan', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.flavor-rr-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.flavor-rr-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.flavor-rr-stars .star {
    font-size: 10px;
    line-height: 1;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-color: #d1d5db;
    background-image: linear-gradient(
        90deg,
        #2962ff var(--fill, 0%),
        #d1d5db  var(--fill, 0%)
    );
}

.flavor-rr-rating-num {
    font-size: 10px;
    font-weight: 700;
    color: #6c6f72;
    -webkit-text-fill-color: initial;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    margin-left: 2px;
}

.flavor-rr-date {
    font-size: 10px;
    color: #9ca3af;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 575px) {
    .flavor-rr-item { flex: 0 0 150px; }
    .flavor-rr-name { font-size: 10px; }
}


/* View All card — last slot, dark navy style matching carousel's view-all card */
.flavor-rr-item--viewall {
    flex: 0 0 160px;
}

.flavor-rr-card--viewall {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px dashed rgba(41, 98, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.flavor-rr-card--viewall:hover {
    border-color: #2962ff;
    background: linear-gradient(145deg, #1e1e35 0%, #1a2545 50%, #0f3d70 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(41, 98, 255, 0.25);
}

.flavor-rr-viewall-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    text-align: center;
}

.flavor-rr-viewall-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(41, 98, 255, 0.2);
    border: 2px solid rgba(41, 98, 255, 0.5);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.flavor-rr-card--viewall:hover .flavor-rr-viewall-icon {
    background: rgba(41, 98, 255, 0.4);
    border-color: #2962ff;
    transform: translateX(3px);
}

.flavor-rr-viewall-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.flavor-rr-viewall-text {
    font-family: 'Spartan', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    line-height: 1.3;
}

/* ==========================================================================
   FEATURED BUILD BANNER  [flavor_featured_build]
   ========================================================================== */

.flavor-fb-wrap {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(41, 98, 255, 0.2);
}

.flavor-fb-inner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: stretch;
    background-color: #1a1a2e;
    background-image: var(--fb-bg, none);
    background-size: cover;
    background-position: center;
    padding: 0;
    overflow: hidden;
}

/* Dark gradient — stronger on left where text is, fades to right */
.flavor-fb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 30, 0.97) 0%,
        rgba(10, 10, 30, 0.85) 45%,
        rgba(10, 10, 30, 0.45) 70%,
        rgba(10, 10, 30, 0.1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.flavor-fb-content {
    position: relative;
    z-index: 2;
    flex: 0 0 55%;
    max-width: 55%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 72px 40px 36px; /* top padding clears the absolute label */
    justify-content: center;
}

/* PNG image slot — right side */
.flavor-fb-png-slot {
    position: relative;
    z-index: 2;
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 30px 0;
    overflow: visible;
    gap: 0;
}

.flavor-fb-png {
    max-height: 360px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

/* Empty placeholder shown when no PNG is uploaded */
.flavor-fb-png-slot--empty {
    align-items: center;
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 12px;
    margin: 20px 20px 20px 0;
}

.flavor-fb-png-slot--empty svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

/* Label pinned to top-left corner */
.flavor-fb-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: absolute;
    top: 24px;
    left: 36px;
    z-index: 3;
}

.flavor-fb-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Spartan', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    background: #2962ff;
    padding: 5px 12px;
    border-radius: 999px;
}

.flavor-fb-label svg {
    width: 12px;
    height: 12px;
    stroke: #ffffff;
    fill: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.flavor-fb-price { display: none; }

/* Title */
.flavor-fb-title {
    font-family: 'Spartan', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.15;
}

/* Excerpt */
.flavor-fb-excerpt {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
}

/* Specs row (kept for backwards compat) */
.flavor-fb-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.flavor-fb-spec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Spartan', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.flavor-fb-spec svg {
    width: 13px;
    height: 13px;
    stroke: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}


/* Spec chips in content column, below excerpt */
.flavor-fb-specs-content {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Spec chips below PNG (kept but now empty) */
.flavor-fb-specs-below {
    display: none;
}

/* Action buttons */
.flavor-fb-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.flavor-fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Spartan', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.flavor-fb-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.flavor-fb-btn--primary {
    background: #2962ff;
    color: #ffffff;
    border: 2px solid #2962ff;
}

.flavor-fb-btn--primary:hover {
    background: #0034c2;
    border-color: #0034c2;
    color: #ffffff;
}

.flavor-fb-btn--primary:hover svg { transform: translateX(3px); }

.flavor-fb-btn--secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.45);
}

.flavor-fb-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 767px) {
    .flavor-fb-inner {
        min-height: auto;
        flex-direction: column-reverse; /* PNG on top, text below */
    }

    .flavor-fb-content {
        flex: 1 1 auto;
        max-width: 100%;
        padding: 24px 20px 28px;
        gap: 12px;
    }

    .flavor-fb-png-slot {
        flex: 0 0 auto;
        max-width: 100%;
        padding: 20px 20px 0;
        justify-content: center;
    }

    .flavor-fb-png {
        max-height: 220px;
    }

    .flavor-fb-png-slot--empty { display: none; }
    .flavor-fb-top { top: 16px; left: 20px; }
    .flavor-fb-content { padding: 64px 20px 24px; }

    .flavor-fb-title { font-size: 22px; }
    .flavor-fb-price { font-size: 18px; }
    .flavor-fb-btn   { padding: 10px 16px; font-size: 11px; }
}

/* ==========================================================================
   GPU BUILD SEARCH  [flavor_gpu_search]
   ========================================================================== */

.flavor-gs-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* Header: search bar left, benchmark button right */
.flavor-gs-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    overflow: visible;
}

/* Search bar */
.flavor-gs-search-wrap {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

.flavor-gs-search-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
    flex-shrink: 0;
}

.flavor-gs-input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 44px;
    border-radius: 12px;
    border: 1.5px solid rgba(41, 98, 255, 0.2);
    background: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #1a1a2e;
    outline: none;
    box-shadow: 0 2px 8px rgba(41, 98, 255, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.flavor-gs-input:focus {
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.12);
}

.flavor-gs-input::placeholder { color: #9ca3af; }

.flavor-gs-clear {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    color: #6b7280;
    transition: background 0.15s ease;
}

.flavor-gs-clear:hover { background: #d1d5db; }
.flavor-gs-clear svg { width: 12px; height: 12px; }


/* Quick-pick GPU chips */
.flavor-gs-quickpicks {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.flavor-gs-quickpicks-label {
    font-family: 'Spartan', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}

.flavor-gs-quickpicks-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.flavor-gs-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1.5px solid rgba(41, 98, 255, 0.25);
    background: #f5f7ff;
    font-family: 'Spartan', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #2962ff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    line-height: 1;
}

.flavor-gs-chip:hover {
    background: #2962ff;
    border-color: #2962ff;
    color: #ffffff;
    transform: translateY(-1px);
}

.flavor-gs-chip.is-active {
    background: #2962ff;
    border-color: #2962ff;
    color: #ffffff;
}

.flavor-gs-chip-count {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.65;
    background: rgba(0,0,0,0.08);
    border-radius: 999px;
    padding: 1px 5px;
    line-height: 1.4;
}

.flavor-gs-chip.is-active .flavor-gs-chip-count,
.flavor-gs-chip:hover .flavor-gs-chip-count {
    background: rgba(255,255,255,0.2);
    opacity: 1;
}

@media (max-width: 575px) {
    .flavor-gs-quickpicks { gap: 8px; }
    .flavor-gs-chip { font-size: 10px; padding: 5px 10px; }
}


/* Widget heading */
.flavor-gs-heading {
    font-family: 'Spartan', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
    line-height: 1.2;
}

/* Default results container */
/* flavor-gs-default-results removed — using flavor-gs-list */

/* GPU chip on result card */
.flavor-gs-result-chip--gpu {
    background: rgba(41, 98, 255, 0.08);
    border: 1px solid rgba(41, 98, 255, 0.2);
    color: #2962ff;
}

.flavor-gs-result-chip--gpu svg {
    stroke: #2962ff;
}

/* Benchmark button */
.flavor-gs-benchmark-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    background: #2962ff;
    color: #ffffff;
    font-family: 'Spartan', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(41, 98, 255, 0.3);
}

.flavor-gs-benchmark-btn svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    flex-shrink: 0;
}

.flavor-gs-benchmark-btn:hover {
    background: #0034c2;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(41, 98, 255, 0.4);
    color: #ffffff;
}

.flavor-gs-benchmark-btn--hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s, background 0.2s ease, box-shadow 0.2s ease;
}

.flavor-gs-benchmark-btn--visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s, background 0.2s ease, box-shadow 0.2s ease;
}

/* Suggestions dropdown */
.flavor-gs-suggestions {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 100;
    background: #ffffff;
    border: 1.5px solid rgba(41, 98, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(41, 98, 255, 0.12);
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.flavor-gs-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    gap: 10px;
    transition: background 0.15s ease;
}

.flavor-gs-suggestion:hover,
.flavor-gs-suggestion[aria-selected="true"] {
    background: #f0f4ff;
}

.flavor-gs-suggestion-name {
    font-family: 'Spartan', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
}

.flavor-gs-suggestion-count {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
}

/* Results */
.flavor-gs-results {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.flavor-gs-results-scroll-wrap {
    flex: 1;
    /* overflow visible so hover translateY doesn't clip — mask handles the fade */
    overflow: visible;
    position: relative;
}

/* Single scrollable list — height fits ~2 full rows + 3rd fading */
.flavor-gs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 260px;   /* ~2.8 rows at ~80px each */
    overflow-y: auto;
    overflow-x: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Bottom fade: last ~30% fades out */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    /* Extra bottom padding so fade area doesn't cut items */
    padding-bottom: 30px;
}
.flavor-gs-list::-webkit-scrollbar { display: none; }

/* Scroll arrows column — matches site arrow style */
.flavor-gs-scroll-arrows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 4px;
}

.flavor-gs-scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #2962ff;
    background: #fff;
    color: #2962ff;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    padding: 0;
}

.flavor-gs-scroll-btn:hover:not(:disabled) {
    background: #2962ff;
    color: #fff;
}

.flavor-gs-scroll-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.flavor-gs-scroll-btn svg {
    width: 16px;
    height: 16px;
}

.flavor-gs-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: #9ca3af;
    text-align: center;
}

.flavor-gs-empty-state svg {
    width: 40px;
    height: 40px;
    stroke: #d1d5db;
}

.flavor-gs-empty-state p {
    font-size: 13px;
    margin: 0;
    color: #9ca3af;
}

/* flavor-gs-results-inner removed — using flavor-gs-list */

/* Result rows */
.flavor-gs-result-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1.5px solid rgba(41, 98, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(41, 98, 255, 0.05);
}

.flavor-gs-result-row:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(41, 98, 255, 0.12);
    border-color: rgba(41, 98, 255, 0.35);
}

.flavor-gs-result-thumb {
    width: 80px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flavor-gs-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flavor-gs-result-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flavor-gs-result-title {
    font-family: 'Spartan', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flavor-gs-result-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.flavor-gs-result-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 7px;
    border-radius: 6px;
}

.flavor-gs-result-chip svg {
    width: 10px;
    height: 10px;
    stroke: #9ca3af;
    flex-shrink: 0;
}

.flavor-gs-result-price {
    margin-left: auto;
    font-family: 'Spartan', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #2962ff;
    flex-shrink: 0;
}

.flavor-gs-result-arrow {
    color: #d1d5db;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.flavor-gs-result-arrow svg { width: 16px; height: 16px; }

.flavor-gs-result-row:hover .flavor-gs-result-arrow {
    color: #2962ff;
    transform: translateX(2px);
}

/* No results state */
.flavor-gs-no-results {
    padding: 30px 20px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

@media (max-width: 575px) {
    /* Header: stack search and benchmark button vertically */
    .flavor-gs-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .flavor-gs-benchmark-btn {
        width: 100%;
        justify-content: center;
    }

    /* Chips: smaller, allow wrap */
    .flavor-gs-chip {
        font-size: 10px;
        padding: 4px 8px;
    }

    .flavor-gs-quickpicks {
        gap: 6px;
    }

    /* Results area: hide scroll arrows on mobile, full width list */
    .flavor-gs-scroll-arrows {
        display: none;
    }

    .flavor-gs-results-scroll-wrap {
        width: 100%;
    }

    /* List: allow touch scroll naturally on mobile */
    .flavor-gs-list {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: 320px;
    }

    /* Result rows: tighter layout */
    .flavor-gs-result-row {
        gap: 10px;
        padding: 10px 12px;
    }

    /* Smaller thumbnail */
    .flavor-gs-result-thumb {
        width: 54px;
        height: 40px;
        flex-shrink: 0;
    }

    /* Title: allow wrap on mobile */
    .flavor-gs-result-title {
        white-space: normal;
        font-size: 12px;
        line-height: 1.3;
    }

    /* Price: smaller */
    .flavor-gs-result-price {
        font-size: 11px;
        margin-left: 0;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Chips: only show GPU chip on mobile */
    .flavor-gs-result-chip:nth-child(n+2) { display: none; }

    /* Arrow: hide on mobile */
    .flavor-gs-result-arrow { display: none; }

    /* Heading */
    .flavor-gs-heading {
        font-size: 20px;
    }
}

/* ==========================================================================
   CATEGORY SPOTLIGHT  [flavor_category_spotlight]
   Cinematic banner — style mirrors featured PC build widget
   ========================================================================== */

.flavor-cs-wrap {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(41, 98, 255, 0.2);
    height: 420px;      /* fixed height — no white bar bleed */
    user-select: none;
    background: #1a1a2e; /* fallback bg so nothing bleeds through */
}

/* Individual slides — stacked, only .is-active visible */
.flavor-cs-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
    z-index: 0;
}

.flavor-cs-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    position: absolute; /* wrap height fixed, no need for relative trick */
    z-index: 1;
}

/* Background image */
.flavor-cs-bg {
    position: absolute;
    inset: 0;
    background-image: var(--cs-bg, none);
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    transition: transform 0.6s ease;
    z-index: 0;
}

.flavor-cs-slide.is-active .flavor-cs-bg {
    transform: scale(1);
}

.flavor-cs-slide:not(.is-active) .flavor-cs-bg {
    transform: scale(1.04);
}

/* Dark gradient overlay — mirrors featured build */
.flavor-cs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 30, 0.97) 0%,
        rgba(10, 10, 30, 0.88) 40%,
        rgba(10, 10, 30, 0.5)  68%,
        rgba(10, 10, 30, 0.1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Left content — mirrors .flavor-fb-content */
.flavor-cs-content {
    position: relative;
    z-index: 2;
    flex: 1 1 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 68px 40px 36px;
    justify-content: center;
}

/* Visual panel removed — full-width content layout */

/* Badge — mirrors .flavor-fb-label / .flavor-fb-top */
.flavor-cs-top {
    position: absolute;
    top: 24px;
    left: 36px;
    z-index: 3;
}

.flavor-cs-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Spartan', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    background: #2962ff;
    padding: 5px 12px;
    border-radius: 999px;
}

.flavor-cs-label svg {
    width: 12px;
    height: 12px;
    stroke: #ffffff;
    flex-shrink: 0;
}

/* .flavor-cs-title removed — title now in label pill */

.flavor-cs-subline { display: none; }


/* 2-column articles grid */
.flavor-cs-articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

/* Articles heading */
.flavor-cs-articles-heading {
    display: block;
    font-family: 'Spartan', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 6px;
}

/* Article list */
.flavor-cs-articles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flavor-cs-article-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 10px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.flavor-cs-article-row:hover {
    background: rgba(41, 98, 255, 0.2);
    border-color: rgba(41, 98, 255, 0.4);
}

.flavor-cs-article-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
}

.flavor-cs-article-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flavor-cs-article-title {
    font-family: 'Spartan', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.flavor-cs-article-date {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.flavor-cs-article-rating {
    font-family: 'Spartan', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(41, 98, 255, 0.7);
    border: 1px solid rgba(41, 98, 255, 0.5);
    border-radius: 6px;
    padding: 3px 7px;
    flex-shrink: 0;
}

/* CTA button — mirrors .flavor-fb-btn--primary */
.flavor-cs-actions {
    margin-top: 4px;
}

.flavor-cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Spartan', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.flavor-cs-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.flavor-cs-btn--primary {
    background: #2962ff;
    color: #ffffff;
    border: 2px solid #2962ff;
}

.flavor-cs-btn--primary:hover {
    background: #0034c2;
    border-color: #0034c2;
    color: #ffffff;
}

.flavor-cs-btn--primary:hover svg { transform: translateX(3px); }

/* Arrow nav — same circular style as carousel/ribbon arrows */
.flavor-cs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.flavor-cs-arrow:hover {
    background: #2962ff;
    border-color: #2962ff;
    transform: translateY(-50%) scale(1.05);
}

.flavor-cs-arrow svg { width: 18px; height: 18px; }

.flavor-cs-arrow--prev { left: 18px; }
.flavor-cs-arrow--next { right: 18px; }

/* Dot indicators */
.flavor-cs-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 6px;
    align-items: center;
}

.flavor-cs-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.flavor-cs-dot.is-active {
    background: #2962ff;
    width: 22px;
    border-radius: 4px;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 767px) {
    .flavor-cs-slide {
        flex-direction: column-reverse;
    }

    .flavor-cs-content {
        flex: 1 1 auto;
        max-width: 100%;
        padding: 20px 20px 60px;
        gap: 10px;
    }

    .flavor-cs-top { top: 16px; left: 18px; }
    .flavor-cs-arrow { display: none; }
    .flavor-cs-articles-grid { grid-template-columns: 1fr; }
    .flavor-cs-content { padding: 60px 20px 24px; }
}

/* ============================================================================
   PC BUILD CAROUSEL — dual price badge (£ / $)
   ============================================================================ */

.flavor-pcf-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.flavor-pcf-price-usd {
    font-weight: 700;
}

.flavor-pcf-price-gbp {
    font-weight: 600;
    opacity: 0.8;
}

.flavor-pcf-price-sep {
    opacity: 0.45;
    font-weight: 400;
    font-size: 0.85em;
    margin: 0 1px;
}
