/* FeelMusic Festival Sale UI Theme (Clean, Modern, Light Theme) */
:root {
    --fm-bg: #f8fafc;
    --fm-surface: #ffffff;
    --fm-surface-subtle: #f1f5f9;
    --fm-surface-hover: #f8fafc;
    --fm-border: #e2e8f0;
    --fm-border-focus: #cbd5e1;
    --fm-accent: #f59e0b;
    --fm-accent-dark: #d97706;
    --fm-accent-glow: rgba(245, 158, 11, 0.12);
    --fm-brand: #0284c7;
    --fm-text: #0f172a;
    --fm-text-muted: #64748b;
    --fm-text-subtle: #94a3b8;
    --fm-green: #059669;
    --fm-green-bg: #ecfdf5;
    --fm-red: #dc2626;
    --fm-red-bg: #fef2f2;
    --fm-blue: #2563eb;
    --fm-blue-bg: #eff6ff;
    --fm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --fm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --fm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --fm-font: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body.feelmusic-sale-page {
    background-color: var(--fm-bg);
    color: var(--fm-text);
    font-family: var(--fm-font);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

.fm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Nav */
.fm-site-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--fm-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--fm-shadow-sm);
}
.fm-nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.fm-brand-logo {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.fm-logo-accent { color: var(--fm-brand); }
.fm-logo-dot { color: var(--fm-accent); font-size: 22px; }
.fm-nav-links { display: flex; gap: 20px; align-items: center; }
.fm-nav-links a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.15s;
}
.fm-nav-links a:hover, .fm-nav-links a.active { color: var(--fm-brand); }
.fm-nav-admin {
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid var(--fm-border);
    border-radius: 6px;
    color: #334155 !important;
}
.fm-nav-admin:hover {
    background: #e2e8f0;
}

/* Event Banner */
.fm-event-banner {
    background: #eff6ff;
    border-bottom: 1px solid #bfdbfe;
    padding: 12px 0;
    font-size: 13px;
    color: #1e3a8a;
}
.fm-event-banner .fm-container {
    display: flex;
    align-items: center;
    gap: 16px;
}
.fm-event-badge {
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Hero */
.fm-hero {
    padding: 50px 0 35px;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px solid var(--fm-border);
}
.fm-hero-kicker {
    font-size: 13px;
    font-weight: 700;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: inline-block;
}
.fm-hero h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.fm-hero p {
    font-size: 17px;
    color: var(--fm-text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* Section Header */
.fm-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--fm-border);
}
.fm-section-header {
    margin-bottom: 24px;
}
.fm-section-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}
.fm-section-header p {
    color: var(--fm-text-muted);
    font-size: 15px;
}

/* Grid */
.fm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Product Card */
.fm-product-card {
    background: var(--fm-surface);
    border: 1px solid var(--fm-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--fm-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.fm-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--fm-shadow-md);
    border-color: #93c5fd;
}
.fm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.fm-badge-evidence {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fm-badge-evidence.tested { background: var(--fm-green-bg); color: var(--fm-green); border: 1px solid #a7f3d0; }
.fm-badge-evidence.researched { background: var(--fm-blue-bg); color: var(--fm-blue); border: 1px solid #bfdbfe; }
.fm-badge-color { font-size: 12px; color: var(--fm-text-muted); background: #f1f5f9; padding: 2px 8px; border-radius: 12px; }
.fm-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.35;
}
.fm-card-verdict {
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fm-verdict-pick strong { color: var(--fm-green); display: block; margin-bottom: 2px; }
.fm-verdict-pick p { color: #334155; margin: 0; line-height: 1.5; }
.fm-verdict-drawback strong { color: var(--fm-red); display: block; margin-bottom: 2px; }
.fm-verdict-drawback p { color: #64748b; margin: 0; line-height: 1.5; }
.fm-card-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 18px;
    border-top: 1px dashed var(--fm-border);
    padding-top: 12px;
}
.fm-card-meta code { background: #f1f5f9; padding: 2px 5px; border-radius: 4px; color: #0284c7; font-weight: 600; }
.fm-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--fm-border);
    padding-top: 16px;
    margin-top: auto;
}
.fm-price-tag {
    display: flex;
    flex-direction: column;
}
.fm-live-price { font-size: 20px; font-weight: 800; color: #0f172a; }
.fm-fresh-label { font-size: 10px; color: var(--fm-green); font-weight: 700; text-transform: uppercase; }
.fm-price-check { font-size: 13px; color: var(--fm-text-muted); font-style: italic; }
.fm-btn-amazon {
    background: #f59e0b;
    color: #000000;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
}
.fm-btn-amazon:hover { background: #d97706; color: #000; transform: translateY(-1px); }

/* Comparison Table */
.fm-comparison-block {
    background: var(--fm-surface);
    border: 1px solid var(--fm-border);
    border-radius: 12px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: var(--fm-shadow-sm);
}
.fm-comparison-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--fm-border);
    background: #f8fafc;
}
.fm-comp-badge {
    font-size: 11px;
    font-weight: 700;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}
.fm-comparison-header h3 { font-size: 19px; font-weight: 800; color: #0f172a; }
.fm-comparison-table-wrap { overflow-x: auto; }
.fm-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.fm-comparison-table th, .fm-comparison-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--fm-border);
}
.fm-th-spec { width: 28%; background: #f8fafc; color: var(--fm-text-muted); }
.fm-th-product { background: #f1f5f9; color: #0f172a; vertical-align: top; }
.fm-th-asin { font-size: 11px; color: var(--fm-text-muted); margin: 4px 0 8px; font-weight: normal; }
.fm-th-asin code { background: #ffffff; border: 1px solid #cbd5e1; padding: 2px 4px; border-radius: 3px; color: #0284c7; }
.fm-btn-mini-amazon {
    display: inline-block;
    background: var(--fm-accent);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
}
.fm-btn-mini-amazon:hover { background: #d97706; }
.fm-td-label { background: #f8fafc; color: #334155; font-weight: 600; }
.fm-td-val { color: #0f172a; }
.fm-tr-highlight .fm-td-val { color: var(--fm-green); font-weight: 500; }
.fm-tr-drawback .fm-td-val { color: #b91c1c; font-size: 13px; }
.fm-comparison-verdict {
    padding: 18px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--fm-border);
    font-size: 14px;
}
.fm-comparison-verdict strong { color: #d97706; display: block; margin-bottom: 4px; }

/* Finder Box */
.fm-finder-box {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: var(--fm-shadow-sm);
}
.fm-finder-kicker { font-size: 12px; font-weight: 800; color: #d97706; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 6px; }
.fm-finder-header h2 { font-size: 26px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.fm-finder-header p { color: var(--fm-text-muted); margin-bottom: 24px; font-size: 15px; }
.fm-finder-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--fm-border);
}
.fm-finder-step label { display: block; margin-bottom: 10px; font-size: 14px; color: #0f172a; font-weight: 600; }
.fm-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-pill {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid var(--fm-border);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.fm-pill:hover { background: #e2e8f0; color: #0f172a; }
.fm-pill.active { background: #f59e0b; color: #000; border-color: #d97706; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.fm-finder-results { min-height: 100px; }
.fm-finder-empty { text-align: center; color: var(--fm-text-muted); padding: 30px 0; font-size: 15px; }

/* Review Insert Banner */
.fm-sale-insert {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #f59e0b !important;
    border-radius: 10px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: var(--fm-shadow-sm);
    color: #0f172a;
}
.fm-insert-badge {
    background: #fef3c7;
    color: #92400e;
    font-weight: 800;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.fm-insert-title { font-size: 19px; font-weight: 800; color: #0f172a; margin-bottom: 12px; }

/* Footer */
.fm-footer {
    background: #ffffff;
    border-top: 1px solid var(--fm-border);
    padding: 40px 0 20px;
    margin-top: 60px;
    font-size: 14px;
    color: var(--fm-text-muted);
}
.fm-footer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.fm-footer-brand h3 { color: #0f172a; font-size: 16px; margin-bottom: 8px; }
.fm-footer-disclosure strong { color: #0f172a; display: block; margin-bottom: 6px; }
.fm-footer-bottom { border-top: 1px solid #f1f5f9; padding-top: 20px; text-align: center; font-size: 12px; color: var(--fm-text-subtle); }

@media (max-width: 768px) {
    .fm-hero h1 { font-size: 26px; }
    .fm-hero p { font-size: 15px; }
    .fm-nav-wrap { height: auto; padding: 12px 0; flex-direction: column; gap: 8px; }
    .fm-nav-links { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; gap: 12px; -webkit-overflow-scrolling: touch; }
    .fm-nav-links a { white-space: nowrap; font-size: 13px; }
    .fm-finder-controls { grid-template-columns: 1fr; }
    .fm-grid { grid-template-columns: 1fr; }
    .fm-footer-content { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Product Card Image Container & Visual Styling (CLS Prevention)
   ========================================================================== */
.fm-card-image-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    background: radial-gradient(circle, #ffffff 40%, #f8fafc 100%);
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    margin: 8px 0 14px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.fm-product-card:hover .fm-card-image-wrap {
    background: radial-gradient(circle, #ffffff 50%, #eff6ff 100%);
    border-color: #e0e7ff;
}

.fm-product-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06));
}

.fm-product-card:hover .fm-product-img {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

/* ==========================================================================
   Festive Badges System (Bank Discounts, Prime Early Access, Deal Alerts)
   ========================================================================== */
.fm-card-badges-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.fm-badge-bank {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.fm-badge-deal {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fm-badge-deal::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: fm-pulse 1.5s infinite;
}

@keyframes fm-pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 6px #ef4444; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   Festive Sticky Quick-Jump Strip
   ========================================================================== */
.fm-festive-quicknav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--fm-border);
    position: sticky;
    top: 64px;
    z-index: 90;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.fm-quicknav-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.fm-quicknav-wrap::-webkit-scrollbar {
    display: none;
}

.fm-quicknav-label {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
    flex-shrink: 0;
}

.fm-quicknav-pill {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid var(--fm-border);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.fm-quicknav-pill:hover,
.fm-quicknav-pill.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

/* ==========================================================================
   Festive FAQ / PAA Accordion Section
   ========================================================================== */
.fm-faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.fm-faq-card {
    background: #ffffff;
    border: 1px solid var(--fm-border);
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: var(--fm-shadow-sm);
    transition: border-color 0.2s;
}

.fm-faq-card:hover {
    border-color: #cbd5e1;
}

.fm-faq-q {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-faq-a {
    font-size: 14px;
    color: var(--fm-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Festive Deal Injector Alert Box (For Single Gadget Specs Pages)
   ========================================================================== */
.fm-festive-alert-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px dashed #f59e0b;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}

.fm-festive-alert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.fm-festive-tag-pill {
    background: #d97706;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fm-festive-dates {
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
}

.fm-festive-alert-title {
    font-size: 18px;
    font-weight: 800;
    color: #78350f;
    margin-bottom: 8px;
}

.fm-festive-alert-desc {
    font-size: 14px;
    color: #451a03;
    line-height: 1.6;
    margin-bottom: 16px;
}

.fm-festive-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f59e0b;
    color: #000000 !important;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
    transition: transform 0.15s, background-color 0.15s;
}

.fm-festive-cta-btn:hover {
    background: #d97706;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* pSEO Budget & Feature Explorer Pills */
a.fm-budget-pill,
a.fm-budget-pill:visited {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 9px 15px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
}

a.fm-budget-pill:hover {
    border-color: var(--fm-primary) !important;
    background: #f0f9ff !important;
    color: var(--fm-primary) !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.18) !important;
}

a.fm-budget-pill span {
    text-decoration: none !important;
}

