@property --border-sweep {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/**
 * Results Page - Figma Screen 5: Product Recommendations Carousel
 * Mobile-first design: 393px (iPhone 14 Pro)
 */

/* Reset & Base */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #FFFFFF;
    overflow-x: hidden;
}

/* Sticky Header (61px) */
.results-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 61px;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E0E5EB;
    box-shadow: 0px 4px 8px -4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-header .logo {
    text-decoration: none;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: space-between;
}

.back-button {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #011928;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content {
    flex: 1;
}

.desktop-chat-button {
    display: none; /* Hidden on mobile */
    align-items: center;
    gap: 8px;
    background: #3E8EF4;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.desktop-chat-button:hover {
    background: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62, 142, 244, 0.3);
}

.desktop-chat-button svg {
    width: 20px;
    height: 20px;
}

.results-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #011928;
    margin: 0;
    line-height: 24px;
}

.results-header p {
    font-size: 13px;
    color: #6A7282;
    margin: 0;
    line-height: 18px;
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Carousel wrapper — needed for arrow/gradient positioning */
.carousel-wrapper {
    position: relative;
}

/* Desktop arrow buttons — hidden on mobile */
.carousel-arrow {
    display: none;
}

/* Scroll dots — mobile only */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 0 4px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #BFDBFE;
    transition: background 0.2s ease, width 0.2s ease, border-radius 0.2s ease;
    cursor: pointer;
}

.carousel-dot.active {
    width: 18px;
    border-radius: 3px;
    background: #3B82F6;
}

/* Horizontal Scroll Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 61px - 86px); /* Full height minus header and bottom nav */
    overflow-x: auto;
    overflow-y: auto; /* Changed: Now scrolls vertically together */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.carousel-track {
    display: flex;
    gap: 2px;
    min-height: 100%;
    padding: 0 45px;
    align-items: stretch;
}

/* Product Card (303px × auto height) */
.product-card {
    flex-shrink: 0;
    width: 303px;
    min-height: 100%;
    background: #FFFFFF;
    scroll-snap-align: start;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

/* 1. Product Image (240px) */
.product-image-container {
    position: relative;
    height: 240px;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow:
        0px 4px 8px 0px rgba(28, 25, 23, 0.03),
        0px 8px 16px 0px rgba(28, 25, 23, 0.02);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F9FAFB;
    margin-bottom: 16px;
}

.product-image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Prev / Next arrows */
.img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F172A;
    z-index: 2;
    transition: background 0.15s;
    padding: 0;
}
.img-nav:hover { background: #fff; }
.img-nav-prev { left: 8px; }
.img-nav-next { right: 8px; }

/* Expand button */
.img-expand {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255,255,255,0.85);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0;
    transition: background 0.15s;
}
.img-expand:hover { background: #fff; }
.img-expand svg { width: 14px; height: 14px; stroke: #0F172A; }

/* Lightbox */
#img-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#img-lightbox.open { display: flex; }

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
}

.lb-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
    flex-direction: column;
}

.lb-img {
    max-width: min(700px, 85vw);
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
    z-index: 2;
}
.lb-nav:hover { background: rgba(255,255,255,0.3); }
.lb-prev { left: -56px; }
.lb-next { right: -56px; }

.lb-close {
    position: absolute;
    top: -16px;
    right: -16px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F172A;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.lb-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 4px;
}
.lb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transition: background 0.15s;
}
.lb-dot.active { background: #fff; }

.product-thumbnails {
    display: flex;
    gap: 6px;
    padding: 0 4px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.product-thumb {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    background: #F9FAFB;
    cursor: pointer;
    padding: 2px;
    transition: border-color 0.15s;
}

.product-thumb:hover {
    border-color: #94A3B8;
}

.product-thumb.active {
    border-color: #0F172A;
}

/* Mobile wishlist menu item */
.mobile-wishlist-item,
.sidebar-wishlist-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-wishlist-item .wishlist-badge,
.sidebar-wishlist-link .wishlist-badge {
    position: static;
    display: inline-flex !important;
}

/* Wishlist Nav Button */
.wishlist-nav-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--dark, #0F172A);
}

.wishlist-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #EF4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wishlist Panel */
.wishlist-panel {
    position: fixed;
    top: 60px;
    right: 16px;
    width: 300px;
    max-height: 420px;
    background: var(--white, #fff);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.06);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.wishlist-panel.open {
    display: flex;
}

.wishlist-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.wishlist-panel-header button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--gray, #94A3B8);
}

.wishlist-items {
    overflow-y: auto;
    padding: 8px 0;
    flex: 1;
}

.wishlist-empty {
    padding: 24px 16px;
    color: var(--gray, #94A3B8);
    font-size: 0.85rem;
    text-align: center;
}

.wishlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
}

.wishlist-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.wishlist-item-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark, #0F172A);
}

.wishlist-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray, #94A3B8);
    font-size: 0.8rem;
    padding: 4px;
    flex-shrink: 0;
}

.wishlist-remove-btn:hover { color: #EF4444; }

/* Wishlist Toast */
.wishlist-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: rgba(15,23,42,0.85);
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 3000;
    white-space: nowrap;
}

.wishlist-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.favorite-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-button svg {
    width: 20px;
    height: 20px;
    stroke: #011928;
    fill: none;
    transition: stroke 0.2s, fill 0.2s;
}

.favorite-button.active svg {
    stroke: #EF4444;
    fill: #EF4444;
}

.favorite-button:hover svg {
    stroke: #EF4444;
}

/* 2. Product Title & Meta (68px) */
.product-meta {
    margin-bottom: 16px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #101828;
    line-height: 32px;
    margin: 0 0 4px 0;
}

.product-category {
    font-size: 15px;
    font-weight: 400;
    color: #011928;
    margin: 0 0 8px 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.rating-stars {
    color: #F97316;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1;
}

.rating-number {
    font-weight: 600;
    color: #101828;
}

.review-count {
    color: #6A7282;
}

/* 3. Tab Switcher (43px) */
.tab-container {
    background: #F0F2F5;
    border-radius: 8px;
    padding: 4px;
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.tab-button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: #19213D;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-button.active {
    background: white;
    border: 1px solid #F0F2F5;
    box-shadow: 0px 1px 3px rgba(25, 33, 61, 0.1);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 4. Purchase Options (50px) */
.purchase-section {
    border: 1.333px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 2px 7px 17px;
    margin-bottom: 16px;
}

.purchase-buttons {
    display: flex;
    gap: 10px;
}

.purchase-button {
    flex: 1;
    height: 46px;
    border-radius: 999px;
    border: 1.173px solid #DBEAFE;
    font-size: 11px;
    font-weight: 600;
    color: #090814;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    text-decoration: none;
}

.purchase-button-1 {
    background: #FDC700;
}

.purchase-button-2 {
    background: rgba(253, 199, 0, 0.52);
}

.purchase-button-3 {
    background: rgba(255, 201, 5, 0.25);
}

/* 5. Recommendation Section */
.recommendation-box {
    border: 1.333px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 11px 16px;
    margin-bottom: 16px;
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.recommendation-title {
    font-size: 14px;
    font-weight: 600;
    color: #090814;
    margin: 0;
}

.average-score {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-block;
}

/* ≥85% — excellent match */
.average-score.score-high {
    color: #065F46;
    background: #D1FAE5;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3), 0 0 10px rgba(16, 185, 129, 0.25);
}

/* 70–84% — good match */
.average-score.score-mid {
    color: #1E40AF;
    background: #DBEAFE;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3), 0 0 10px rgba(59, 130, 246, 0.25);
}

/* <70% — partial match */
.average-score.score-low {
    color: #92400E;
    background: #FEF3C7;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3), 0 0 10px rgba(245, 158, 11, 0.25);
}

.recommendation-text {
    font-size: 12px;
    font-weight: 400;
    color: #4A5565;
    line-height: 18px;
    margin-bottom: 4px;
}

.recommendation-text p {
    margin: 0;
}

.strengths-section,
.weaknesses-section {
    margin-bottom: 16px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #090814;
    margin: 0 0 8px 0;
}

.section-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-list li {
    font-size: 12px;
    font-weight: 400;
    color: #4A5565;
    line-height: 18px;
    margin-bottom: 4px;
}

/* 6. Reviews / Section Label */
.section-label {
    font-size: 10px;
    font-weight: 600;
    color: #4A5565;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
}

/* 7. Review Boxes (71px each) */
.review-box {
    border: 1.333px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 13px 16px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.review-left {
    flex: 1;
}

.review-logo {
    font-size: 12px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.review-pct {
    font-size: 9px;
    font-weight: 500;
    border-radius: 4px;
    padding: 1px 5px;
}

.review-pct-pos {
    background: #DCFCE7;
    color: #16A34A;
}

.review-pct-neu {
    background: #F1F5F9;
    color: #64748B;
}

.review-pct-neg {
    background: #FEE2E2;
    color: #DC2626;
}

.review-summary {
    font-size: 11px;
    color: #4A5565;
    line-height: 1.5;
    margin: 0 0 6px;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-link {
    font-size: 10px;
    font-weight: 400;
    color: #4A5565;
    text-decoration: underline;
}

.review-date {
    font-size: 9px;
    color: #C4CADB;
}

.review-rating {
    font-size: 12px;
    font-weight: 600;
    color: #090814;
}


/* 9. YouTube Video Reviews Section */
.youtube-section {
    margin-bottom: 8px;
}

.youtube-section-heading {
    font-size: 10px;
    font-weight: 600;
    color: #4A5565;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
}

.youtube-cards-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.yt-video-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.333px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}

.yt-video-card:hover {
    border-color: #FF0000;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.1);
}

.yt-thumbnail-wrap {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.yt-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yt-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    transition: background 0.15s;
}

.yt-video-card:hover .yt-play-btn {
    background: rgba(0,0,0,0.1);
}

.yt-play-bg  { fill: #FF0000; opacity: 0.9; }
.yt-play-arrow { fill: #fff; }

.yt-video-info {
    flex: 1;
    min-width: 0;
}

.yt-video-title {
    font-size: 10px;
    font-weight: 500;
    color: #1E293B;
    margin: 0 0 3px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-video-channel {
    font-size: 9px;
    color: #C4CADB;
    margin: 0;
}

/* YouTube Modal */
.yt-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.yt-modal-overlay[hidden] {
    display: none;
}

.yt-modal-inner {
    position: relative;
    width: 100%;
    max-width: 860px;
}

.yt-modal-close {
    position: absolute;
    top: -36px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.8;
}

.yt-modal-close:hover { opacity: 1; }

.yt-modal-frame-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.yt-modal-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 10. Amazon Ratings Box (138px) */
.amazon-box {
    border: 1.333px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    height: 138px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.amazon-rating-graphic {
    width: 165px;
    height: 80px;
    margin-bottom: 12px;
}

.amazon-link {
    font-size: 10px;
    font-weight: 400;
    color: #4A5565;
    text-decoration: underline;
}

/* Bottom Navigation (86px) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 86px;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: 20px; /* Safe area for home indicator */
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #6A7282;
    cursor: pointer;
    padding: 8px 16px;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.nav-item.active {
    color: #3E8EF4;
}

.nav-item.active svg {
    fill: #3E8EF4;
    stroke: #3E8EF4;
}

/* Responsive - Mobile only */
@media (max-width: 767px) {
    #chatWidget {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        padding: 0;
        align-items: stretch;
    }

    .chat-widget-panel {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        height: 80vh !important;
        max-height: 80vh;
        border-radius: 16px 16px 0 0;
        margin: 0;
    }

    .chat-widget-panel::before {
        border-radius: 16px 16px 0 0;
    }

    /* Card fills screen width with minimal side padding */
    .carousel-track {
        padding: 0 12px;
    }

    /* Right-edge gradient — hints that more cards exist without narrowing the card */
    .carousel-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 48px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.88));
        pointer-events: none;
        z-index: 2;
    }

    /* Smaller review count and last updated text on mobile */
    .sentiment-rating-num {
        font-size: 13px !important;
    }

    .sentiment-count {
        font-size: 9px !important;
    }

    .sentiment-last-updated {
        font-size: 7px !important;
        white-space: nowrap;
    }

    /* Compact dots — sits between subtitle and carousel with minimal height */
    .carousel-dots {
        padding: 4px 0;
        margin: 0;
    }

    /* Hide dots when only 1 product */
    .carousel-dots:has(.carousel-dot:only-child) {
        display: none;
    }

    .product-card {
        width: calc(100vw - 24px);
    }

    /* Smaller buy button text so all 3 buttons fit comfortably */
    .purchase-button {
        font-size: 9px;
        height: 42px;
    }

    /* Consistent horizontal edge alignment for all content boxes */
    .purchase-section,
    .recommendation-box,
    .amazon-sentiment-box,
    .review-box,
    .price-history-section,
    .youtube-section {
        margin-left: 0;
        margin-right: 0;
    }

    /* Reset all JS-applied min-height sync on mobile — each card is its own natural height */
    .product-card .product-image-container,
    .product-card .product-thumbnails,
    .product-card .product-meta,
    .product-card .tab-container,
    .product-card .purchase-section,
    .product-card .recommendation-text,
    .product-card .strengths-section,
    .product-card .weaknesses-section,
    .product-card .recommendation-box,
    .product-card .price-history-section {
        min-height: 0 !important;
    }

    /* Preisverlauf title matches Amazon title size on mobile */
    .price-history-title {
        font-size: 13px;
    }

    .price-history-updated {
        font-size: 7px !important;
        white-space: nowrap;
    }

    /* Pin chevron to far right edge, same position as Reddit chevron */
    .price-history-header,
    .sentiment-title-row {
        position: relative;
        padding-right: 28px;
        align-items: flex-start;
    }

    .price-history-header .section-toggle[data-section="price"],
    .sentiment-title-row .section-toggle[data-section="amazon"] {
        position: absolute;
        right: 0;
        bottom: 0;
    }

    /* Text column: stack Idealo link + Zuletzt aktualisiert, right-aligned */
    .section-header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }
}

/* Responsive - Tablet */
@media (min-width: 768px) {
    /* Show 2 cards side by side on tablet */
    .carousel-track {
        padding: 0 calc((100vw - 303px * 2 - 2px) / 2);
    }

    .product-card {
        width: 400px; /* Wider cards on tablet */
    }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    .carousel-container {
        scroll-snap-type: none;
        max-width: 1400px;
        margin: 0 auto;
        height: calc(100vh - 61px); /* No bottom nav on desktop */
    }

    .carousel-track {
        padding: 20px 40px;
        gap: 20px;
        justify-content: flex-start;
    }

    .product-card {
        width: 500px;
        scroll-snap-align: none;
    }

    /* Hide bottom nav on desktop, add more vertical space */
    .bottom-nav {
        display: none;
    }

    /* Show desktop chat button */
    .desktop-chat-button {
        display: flex;
    }

    /* Center header content to match carousel on desktop */
    .results-header {
        padding: 0 40px;
    }

    .header-inner {
        max-width: 1400px;
        padding: 0 0;
    }

    /* Wrapper overflow visible so arrows positioned outside container edges are shown */
    .carousel-wrapper {
        overflow: visible;
    }

    /* Desktop carousel arrow buttons */
    .carousel-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #FFFFFF;
        border: 1px solid #E2E8F0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        cursor: pointer;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #0F172A;
        line-height: 1;
        transition: box-shadow 0.15s ease, background 0.15s ease;
    }

    .carousel-arrow:hover {
        background: #F8FAFC;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    }

    .carousel-arrow:disabled {
        opacity: 0.25;
        cursor: default;
        box-shadow: none;
    }

    .carousel-arrow-left  { left: 4px; }
    .carousel-arrow-right { right: 4px; }

    /* Hide dots on desktop — arrows handle navigation, dot count doesn't match scroll positions */
    .carousel-dots {
        display: none;
    }
}

/* Responsive - Large Desktop */
@media (min-width: 1440px) {
    .carousel-container {
        max-width: 1600px;
    }

    .product-card {
        width: 650px;
    }

    .carousel-track {
        gap: 40px;
        padding: 30px 60px;
    }

    /* If only 2 products, center them */
    .carousel-track:has(.product-card:nth-child(2):last-child) {
        justify-content: center;
    }

    /* Update header margins for larger max-width */
    .back-button {
        margin-left: max(60px, calc((100vw - 1600px) / 2 + 60px));
    }

    .desktop-chat-button {
        margin-right: max(60px, calc((100vw - 1600px) / 2 + 60px));
    }
}

/* Floating Chat Button (Mobile & Desktop) */
.floating-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-blue, #3B82F6);
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.floating-chat-btn:active {
    transform: scale(0.95);
}

.floating-chat-btn svg {
    fill: white;
}

/* Desktop: Slightly larger and better positioned */
@media (min-width: 769px) {
    .floating-chat-btn {
        width: 64px;
        height: 64px;
        bottom: 32px;
        right: 32px;
    }
}

/* Chat Widget Panel */
#chatWidget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.chat-widget-panel {
    display: none;
    flex-direction: column;
    width: 340px;
    height: 560px;
    min-height: 300px;
    max-height: 80vh;
    background: var(--white, #FFFFFF);
    border-radius: var(--radius-md, 16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.chat-widget-panel::before {
    content: '';
    display: block;
    height: 5px;
    width: 100%;
    flex-shrink: 0;
    background: linear-gradient(90deg,
        #1D4ED8 0%, #3B82F6 7%, #60A5FA 14%, #BFDBFE 21%, #93C5FD 28%,
        #60A5FA 35%, #3B82F6 42%, #2563EB 49%, #3B82F6 56%, #60A5FA 61%,
        #3B82F6 66%, #3B82F6 100%
    );
    background-size: 300% 100%;
    animation: glowShift 5s linear 3 alternate forwards;
    border-radius: var(--radius-md, 16px) var(--radius-md, 16px) 0 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
}

@keyframes glowShift {
    0%   { background-position: 0% 0%; }
    100% { background-position: 100% 0%; }
}

.chat-widget-panel.open {
    display: flex;
}

.chat-widget-resize-handle {
    height: 6px;
    width: 100%;
    cursor: ns-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
}

.chat-widget-resize-handle::after {
    content: '';
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: rgba(0,0,0,0.15);
}

.chat-widget-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 12px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
    position: relative;
}

.chat-widget-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.chat-widget-logo {
    font-family: var(--font-display, 'Unbounded', sans-serif);
    font-size: 1.1rem;
    font-weight: 800;
    color: #3B82F6;
    line-height: 1;
}

.chat-widget-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 50px;
    white-space: nowrap;
    background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 60%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.chat-widget-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1px;
    background: linear-gradient(135deg, #1D4ED8, #3B82F6, #60A5FA);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.chat-widget-actions {
    display: flex;
    gap: var(--spacing-sm, 8px);
    align-items: center;
}

.chat-widget-action-btn {
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    text-decoration: none;
    transition: opacity 0.2s;
}

.chat-widget-action-btn:hover {
    opacity: 1;
}

.chat-widget-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-base, 16px);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm, 8px);
    background: linear-gradient(135deg, var(--bg-gradient-start, #F8FAFC) 0%, var(--bg-gradient-end, #EFF6FF) 100%);
}

.chat-widget-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-widget-messages::-webkit-scrollbar-track {
    background: var(--light-gray, #F1F5F9);
    border-radius: 3px;
}

.chat-widget-messages::-webkit-scrollbar-thumb {
    background: var(--gray, #94A3B8);
    border-radius: 3px;
}

.chat-widget-msg {
    max-width: 85%;
    padding: var(--spacing-sm, 8px) var(--spacing-base, 16px);
    border-radius: var(--radius-md, 16px);
    font-size: var(--font-size-sm, 0.9rem);
    line-height: var(--line-height-normal, 1.6);
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    word-wrap: break-word;
    box-shadow: var(--shadow-card, 0 2px 12px rgba(0,0,0,0.06));
    animation: slideUp 0.3s ease-out;
}

.chat-widget-msg.assistant {
    background: var(--light-gray, #F1F5F9);
    color: var(--dark, #0F172A);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-widget-msg.user {
    background: var(--primary-blue, #3B82F6);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-widget-msg.loading {
    background: var(--light-gray, #F1F5F9);
    align-self: flex-start;
    box-shadow: none;
    padding: 10px 14px;
}

.chat-widget-loading-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.chat-widget-loading-dots span {
    width: 7px;
    height: 7px;
    background: var(--gray, #94A3B8);
    border-radius: 50%;
    animation: widgetBounce 1.4s infinite ease-in-out both;
}

.chat-widget-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.chat-widget-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes widgetBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-widget-input-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm, 8px);
    padding: var(--spacing-sm, 8px) var(--spacing-base, 16px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    background: var(--white, #FFFFFF);
}

.chat-widget-input-row input {
    flex: 1;
    border: 2px solid transparent;
    border-radius: 24px;
    padding: var(--spacing-sm, 8px) var(--spacing-base, 16px);
    font-size: var(--font-size-sm, 0.9rem);
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    outline: none;
    color: var(--dark, #0F172A);
    background:
        linear-gradient(var(--light-gray, #F1F5F9), var(--light-gray, #F1F5F9)) padding-box,
        linear-gradient(var(--light-gray, #F1F5F9), var(--light-gray, #F1F5F9)) border-box;
}

.chat-widget-input-row input {
    will-change: background;
    -webkit-font-smoothing: antialiased;
}

.chat-widget-input-row input:focus {
    background:
        linear-gradient(var(--white, #FFFFFF), var(--white, #FFFFFF)) padding-box,
        conic-gradient(from 95deg, var(--primary-blue, #3B82F6) var(--border-sweep), rgba(59,130,246,0.15) calc(var(--border-sweep) + 40deg), var(--light-gray, #F1F5F9) calc(var(--border-sweep) + 60deg)) border-box;
    animation: widgetBorderDraw 0.7s ease-in-out forwards;
}

@keyframes widgetBorderDraw {
    from { --border-sweep: 0deg; }
    to { --border-sweep: 360deg; }
}

.chat-widget-input-row button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-blue, #3B82F6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    transition: background 0.2s, transform 0.1s;
}

.chat-widget-input-row button:hover {
    background: #2563EB;
    transform: scale(1.05);
}

.chat-widget-input-row button:active {
    transform: scale(0.95);
}

.chat-widget-input-row button:disabled {
    background: var(--light-gray, #F1F5F9);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.chat-widget-input-row button svg {
    fill: white;
}

.chat-widget-input-row button:disabled svg {
    fill: var(--gray, #94A3B8);
}

@media (min-width: 769px) {
    #chatWidget {
        bottom: 32px;
        right: 32px;
    }

    .chat-widget-panel {
        width: 420px;
        height: 1000px;
    }
}

/* ============================================================
   Amazon Sentiment Widget
   ============================================================ */

.amazon-sentiment-box {
    margin: 12px 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
}

/* Empty / no-data state */
.sentiment-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94A3B8;
    font-size: 13px;
}

.sentiment-empty-icon {
    font-size: 16px;
    opacity: 0.5;
}

/* Header: title on top, score row below */
.sentiment-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.sentiment-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sentiment-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
}

.sentiment-score {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.sentiment-rating-num,
.sentiment-count {
    white-space: nowrap;
}

.sentiment-stars {
    font-size: 15px;
    color: #F97316;
    letter-spacing: 1px;
    line-height: 1;
}

.sentiment-rating-num {
    font-size: 13px;
    font-weight: 600;
    color: #0F172A;
}

.sentiment-count {
    font-size: 11px;
    color: #64748B;
}

.sentiment-price {
    font-size: 13px;
    font-weight: 600;
    color: #0F172A;
    margin-left: 4px;
}

.sentiment-last-updated {
    font-size: 9px;
    color: #C4CADB;
    margin-left: auto;
}

/* Summary sentence */
.sentiment-summary {
    font-size: 12px;
    color: #475569;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

/* Bars */
.sentiment-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.sentiment-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sentiment-bar-label {
    font-size: 11px;
    color: #64748B;
    width: 52px;
    flex-shrink: 0;
}

.sentiment-bar-track {
    flex: 1;
    height: 6px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}

.sentiment-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.sentiment-bar-pos  { background: #22C55E; }
.sentiment-bar-neu  { background: #94A3B8; }
.sentiment-bar-neg  { background: #EF4444; }

.sentiment-bar-pct {
    font-size: 11px;
    font-weight: 600;
    color: #0F172A;
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}

/* Theme list */
.sentiment-themes {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sentiment-theme {
    font-size: 12px;
    color: #334155;
    padding: 2px 0;
}

.sentiment-theme-pos { color: #16A34A; }
.sentiment-theme-neg { color: #DC2626; }

/* Amazon link */
.sentiment-amazon-link {
    display: block;
    font-size: 12px;
    color: #3B82F6;
    text-decoration: none;
    margin-top: 4px;
}

.sentiment-amazon-link:hover {
    text-decoration: underline;
}

/* ========================================
   Price History Section (Keepa + Idealo)
   ======================================== */
.price-history-section {
    margin-bottom: 8px;
    padding: 14px 16px 16px;
    background: #F8FAFC;
    border: 1.333px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.price-history-header {
    margin-bottom: 12px;
}

.price-history-title {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
}

.price-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.price-history-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-change-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: -0.01em;
}

.price-change-down {
    color: #059669;
    background: #D1FAE5;
}

.price-change-up {
    color: #DC2626;
    background: #FEE2E2;
}

.price-history-idealo-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 600;
    color: #3B82F6;
    text-decoration: none;
}

.price-history-idealo-btn:hover {
    text-decoration: underline;
}

.price-history-idealo-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.price-history-updated {
    font-size: 9px;
    color: #C4CADB;
}

.price-history-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.section-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-history-single {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0 4px;
}

.price-history-single-label {
    font-size: 12px;
    color: #94A3B8;
}

.price-history-single-value {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
}

.price-history-nodata {
    font-size: 12px;
    color: #94A3B8;
    margin: 4px 0;
}



/* ============================================================
   Reddit Community Widget
   ============================================================ */

.reddit-widget {
    background: #F8FAFC;
    border: 1.333px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.reddit-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.reddit-widget-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.reddit-widget-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    flex: 1;
}

.reddit-post-count {
    font-size: 11px;
    color: #94A3B8;
    background: #F1F5F9;
    padding: 2px 7px;
    border-radius: 10px;
}

.reddit-subreddit-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.reddit-subreddit-pill {
    font-size: 11px;
    color: #FF4500;
    background: #FFF1EC;
    border: 1px solid #FECDB0;
    border-radius: 10px;
    padding: 2px 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.reddit-subreddit-pill:hover {
    background: #FFE0D0;
}

.reddit-summary {
    font-size: 12px;
    color: #334155;
    line-height: 1.5;
    margin: 0 0 10px;
}

.reddit-sentiment-bar {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
    gap: 1px;
}

.reddit-bar-segment {
    height: 100%;
    min-width: 2px;
    border-radius: 2px;
}

.reddit-bar-pos { background: #22C55E; }
.reddit-bar-neu { background: #94A3B8; }
.reddit-bar-neg { background: #EF4444; }

.reddit-sentiment-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #94A3B8;
    margin-bottom: 10px;
}

.reddit-label-pos { color: #22C55E; font-weight: 600; }
.reddit-label-neg { color: #EF4444; font-weight: 600; }

.reddit-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.reddit-pros,
.reddit-cons {
    font-size: 11px;
}

.reddit-pros-label,
.reddit-cons-label {
    display: block;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.reddit-pros-label { color: #22C55E; }
.reddit-cons-label { color: #EF4444; }

.reddit-pros ul,
.reddit-cons ul {
    margin: 0;
    padding: 0 0 0 14px;
    color: #475569;
    line-height: 1.6;
}

.reddit-top-posts {
    border-top: 1px solid #F1F5F9;
    padding-top: 10px;
    margin-top: 4px;
}

.reddit-top-posts-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94A3B8;
    margin-bottom: 6px;
}

.reddit-post-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease;
    margin-bottom: 2px;
}

.reddit-post-link:hover {
    background: #F8FAFC;
}

.reddit-post-sub {
    font-size: 10px;
    color: #FF4500;
    font-weight: 600;
}

.reddit-post-title {
    font-size: 11px;
    color: #1E293B;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reddit-post-meta {
    font-size: 10px;
    color: #94A3B8;
}

/* ============================================================
   Per-Product Feedback & Copy — inside product card
   ============================================================ */

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 4px;
    margin-top: 12px;
    border-top: 1px solid #E5E7EB;
}

.product-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    color: #6A7282;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1;
}

.product-copy-btn svg {
    flex-shrink: 0;
}

.product-copy-btn:hover {
    background: #F5F3FF;
    border-color: #6366F1;
    color: #6366F1;
}

.product-feedback {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-feedback-label {
    font-size: 11px;
    color: var(--gray, #6B7280);
    margin-right: 2px;
    white-space: nowrap;
}

.product-feedback-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    cursor: pointer;
    padding: 5px 8px;
    color: #6A7282;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1;
}

.product-feedback-thumb:hover:not(:disabled) {
    background: #F9FAFB;
    border-color: #6366F1;
    color: #6366F1;
}

.product-feedback-thumb[data-value="1"]:hover:not(:disabled) {
    background: #F0FDF4;
    border-color: #16A34A;
    color: #16A34A;
}

.product-feedback-thumb[data-value="0"]:hover:not(:disabled) {
    background: #FFF1F2;
    border-color: #E11D48;
    color: #E11D48;
}

.product-feedback-thumb:disabled {
    cursor: default;
}

.product-feedback-thumb.feedback-submitted {
    opacity: 0.35;
}

.product-feedback-sent {
    font-size: 11px;
    font-weight: 600;
    color: #16A34A;
    letter-spacing: 0.01em;
}

/* ── Accordion ─────────────────────────────────────────────── */
.section-body {
    display: none;
}

.recommendation-box .section-body {
    border-top: 1px solid #E5E7EB;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.recommendation-expand-row {
    display: flex;
    justify-content: center;
    margin-top: 0.1rem;
}

.recommendation-expand-btn {
    width: 22px;
    height: 22px;
    border-radius: 50% !important;
    border: 1px solid #E5E7EB !important;
    background: #F9FAFB !important;
    justify-content: center;
}

.section-toggle {
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    color: var(--gray, #6B7280);
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.section-toggle:hover {
    color: var(--primary-blue, #3B5BDB);
    background: var(--light-blue, #EEF2FF);
}

.section-toggle svg {
    transition: transform 0.2s ease;
}

.section-toggle.expanded svg {
    transform: rotate(180deg);
}

.acc-section-wrap {
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.acc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.acc-section-header:hover {
    background: #F3F4F6;
}

.acc-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

.acc-section-wrap .section-body {
    padding: 0.75rem 0.85rem 0.85rem;
    border-top: 1px solid #E5E7EB;
}

/* ============================================================
   Swimlane Floating Name Chip (Desktop only)
   One chip per card, fixed above its column
   ============================================================ */

.swimlane-name-chip {
    position: fixed;
    top: 0; /* overridden by JS using nav.getBoundingClientRect().bottom */
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.swimlane-name-chip.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mobile chip is full-width, handled by JS positioning */

.swimlane-rank {
    background: #3B82F6;
    color: #fff;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.swimlane-name {
    font-size: 13px;
    font-weight: 600;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

