/* ========================================
   MejorCompra v5 — Conversion Optimized
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Instrument+Serif&display=swap');

:root {
    /* Colors */
    --bg: #FAFAF8;
    --bg-warm: #F5F3EF;
    --bg-dark: #111111;
    --text: #1a1a1a;
    --text-secondary: #5c5c5c;
    --text-muted: #8a8a8a;
    --border: #e5e5e0;
    --accent: #FF6B00;
    --accent-dark: #e05500;
    --accent-light: #FFF3E8;
    --success: #1a7f37;
    --danger: #dc3545;
    
    /* Type */
    --font-sans: 'DM Sans', -apple-system, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    
    /* Spacing */
    --max: 1180px;
    --pad: clamp(20px, 5vw, 60px);
    --radius: 4px;
    --radius-lg: 8px;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: #1a1a1a; background: #ffffff; line-height: 1.7; font-size: 16px; }
h1, h2, h3, h4, h5, h6 { color: #1a1a1a; }
p { color: #333333; }
a { color: inherit; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* === HEADER === */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(250,250,248,0.92);
    position: relative;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav { display: flex; gap: 0; }

.nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all 0.15s;
}

.nav a:hover { color: var(--text); background: var(--bg-warm); }
.nav a.active { color: var(--accent); font-weight: 600; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}

/* === HERO SIMPLE === */
.hero-simple {
    background: #111111;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.hero-simple h1 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.hero-simple p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-simple .btn-primary {
    background: #FF6B00;
    color: #ffffff;
}

/* ========================================================
   TRUST STRIP (CRO: Visible trust indicators)
   ======================================================== */
.trust-strip-visible {
    background: var(--bg-warm);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.trust-items-visible {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.trust-item span {
    color: var(--text-secondary);
}

/* ========================================================
   BUTTONS — CTA OPTIMIZED (CRO: #2 HIGH IMPACT)
   ======================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: var(--font-sans);
}

.btn-primary {
    background: #FF9900;  /* Amazon orange — higher conversion */
    color: #0F1B2D;
    box-shadow: 0 2px 0 #C77700;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.btn-primary:hover {
    background: #FFA41B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.35), 0 2px 0 #C77700;
    color: #0F1B2D;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 0 #C77700;
}

/* CTA pulse animation — draws eye without being obnoxious */
@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 2px 0 #C77700, 0 0 0 0 rgba(255, 153, 0, 0.4); }
    50% { box-shadow: 0 2px 0 #C77700, 0 0 0 8px rgba(255, 153, 0, 0); }
}

.btn-cta-pulse {
    animation: cta-pulse 2s infinite;
}

.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--text);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
    font-weight: 700;
}

/* Arrow indicator on affiliate buttons */
.btn-affiliate::after {
    content: '→';
    font-weight: 700;
    margin-left: 4px;
    transition: transform 0.15s;
}

.btn-affiliate:hover::after {
    transform: translateX(3px);
}

/* === SECTIONS === */
.section { padding: 80px 0; }
.section-compact { padding: 48px 0; }

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--text);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 480px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .section-subtitle { margin: 0 auto; }

/* === CATEGORÍAS === */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.15s;
    background: #ffffff;
}

.category-card:hover {
    border-color: #111111;
    background: #f8f8f8;
}

.category-icon { font-size: 1.4rem; flex-shrink: 0; }

.category-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.category-card span {
    display: none;
}

@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* === PRODUCT CARDS (Home) === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: #ffffff;
}

.product-card h3 {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 12px;
    flex: 1;
}

.product-card-price { display: none; }

.product-card-actions {
    display: flex;
    gap: 8px;
}

.product-card-actions .btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 8px 12px;
}

@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Product cards on product detail page */
.product-detail .product-card-image {
    aspect-ratio: 4/3;
    background: var(--bg-warm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
}

.product-detail .product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail .product-card-body { padding: 16px; }

.product-detail .product-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text);
}

.product-detail .product-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

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

.article-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.2s;
    background: var(--bg);
}

.article-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.article-card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}

.article-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--text);
}

.article-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-card a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.article-card a:hover { color: var(--accent-dark); }

/* === PRODUCT DETAIL === */
.product-detail { padding: 48px 0; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.breadcrumb a:hover { color: var(--accent); }

.product-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 64px;
}

.product-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-warm);
    aspect-ratio: 1;
}

.product-info .product-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 12px;
}

.product-info h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.product-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ========================================================
   PRICE BOX (CRO: #5 Urgency + Trust)
   ======================================================== */
.price-box {
    background: #FFF8F0;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    border: 2px solid var(--accent);
    position: relative;
}

.price-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.price-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.price-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--success);
    margin-top: 8px;
    font-weight: 600;
}

.price-date::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.price-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--danger);
    margin-top: 8px;
    padding: 4px 10px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ffe0e0;
}

.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* ========================================================
   AMAZON TRUST LINE (CRO: Builds confidence)
   ======================================================== */
.amazon-trust-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.amazon-trust-line img {
    height: 24px;
    width: auto;
}

.amazon-trust-line span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.amazon-trust-line .trust-icon {
    color: var(--success);
    font-weight: 700;
}

.affiliate-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ========================================================
   INLINE AFFILIATE LINK (CRO: #3 Irresistible inline links)
   ======================================================== */
.inline-affiliate-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0F1B2D;
    font-weight: 700;
    background: #FFD814;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid #FCD200;
    text-decoration: none;
    transition: all 0.15s;
    font-size: 0.95em;
}

.inline-affiliate-link:hover {
    background: #F7CA00;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 216, 20, 0.4);
    text-decoration: none;
}

.inline-affiliate-link::after {
    content: '→';
    font-weight: 700;
    transition: transform 0.15s;
}

.inline-affiliate-link:hover::after {
    transform: translateX(2px);
}

/* === GUIDE === */
.guide-detail { padding: 48px 0; }

.guide-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.guide-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
}

.guide-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.guide-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ========================================================
   GUIDE TRUST BADGES (CRO: #6 Trust)
   ======================================================== */
.guide-trust-badge-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.guide-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-warm);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.guide-trust-badge .badge-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.guide-trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.guide-trust span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.guide-content {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
    position: relative;
}

/* ========================================================
   COMPARISON TABLE (CRO: #4 Side-by-side comparisons)
   ======================================================== */
.comparison-table-wrapper {
    margin: 32px 0;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    background: white;
    overflow: hidden;
}

.comparison-table th {
    background: #111111;
    color: white;
    padding: 16px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    vertical-align: middle;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: var(--bg-warm);
}

.comparison-table tr:hover {
    background: #FFF8F0;
}

.comparison-table .product-name {
    text-align: left;
    font-weight: 700;
    color: var(--text);
}

.comparison-table .product-name a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.comparison-table .product-name a:hover {
    color: var(--accent);
}

.comparison-table .product-feature {
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.comparison-table .price-cell {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
}

.comparison-table .check {
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
}

.comparison-table .cross {
    color: #ccc;
    font-size: 1.1rem;
}

/* Best choice highlight row */
.comparison-table .best-choice {
    background: #FFF8E1 !important;
    border-left: 3px solid #FF9900;
    border-right: 3px solid #FF9900;
}

.comparison-table .best-choice td {
    font-weight: 700;
}

.comparison-table .best-badge {
    display: inline-block;
    background: #FF9900;
    color: #0F1B2D;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* ========================================================
   CTA BOX (CRO: Attention-grabbing call-to-action blocks)
   ======================================================== */
.cta-box {
    background: #FFF8F0;
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin: 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.06);
}

.cta-box-content {
    flex: 1;
    min-width: 200px;
}

.cta-box-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 4px;
}

.cta-box-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cta-box .btn {
    flex-shrink: 0;
}

/* ========================================================
   INLINE PRODUCT CARD IN CONTENT (CRO: Mid-content CTAs)
   ======================================================== */
.inline-product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin: 28px 0;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.2s;
}

.inline-product-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.inline-product-card-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    background: var(--bg-warm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.inline-product-card-info {
    flex: 1;
    min-width: 160px;
}

.inline-product-card-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px 0;
}

.inline-product-card-info .price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
}

.inline-product-card-info .rating {
    font-size: 0.8rem;
    color: #FF9900;
    letter-spacing: 2px;
}

.inline-product-card-action {
    flex-shrink: 0;
}

/* ========================================================
   SCROLL-BASED CTA (CRO: #8 Scroll-triggered CTAs)
   ======================================================== */
.scroll-cta {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 90;
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 600px;
    width: 90%;
}

.scroll-cta.visible {
    bottom: 16px;
}

.scroll-cta-info {
    flex: 1;
}

.scroll-cta-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
}

.scroll-cta-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.scroll-cta .btn {
    flex-shrink: 0;
}

/* Hide on mobile if mobile-buy-bar is shown */
@media (max-width: 768px) {
    .scroll-cta {
        bottom: -100px !important;
    }
    .mobile-buy-bar { display: flex; }
    .product-detail { padding-bottom: 80px; }
}

.guide-toc {
    background: var(--bg-warm);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 32px;
}

.guide-toc strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.guide-toc a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 0;
    border-left: 2px solid transparent;
    padding-left: 12px;
    transition: all 0.15s;
}

.guide-toc a:hover {
    color: var(--accent);
    border-left-color: var(--accent);
}
.guide-content h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.guide-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
}

.guide-content p { margin-bottom: 18px; }
.guide-content strong { font-weight: 700; }

.guide-content ul, .guide-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.guide-content li {
    margin-bottom: 10px;
    list-style: disc;
}

.guide-content ol li { list-style: decimal; }

.guide-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

.guide-content a {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.guide-content a:hover { border-bottom-color: var(--accent); }

.guide-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.guide-content table th {
    background: var(--bg-warm);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.guide-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.guide-content table tr:last-child td { border-bottom: none; }

/* CTA boxes in guides */
.guide-content div[style*="background"] {
    border-radius: var(--radius-lg) !important;
    margin: 28px 0 !important;
    padding: 24px !important;
}

.guide-content div[style*="background"] a {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    margin-top: 12px;
    border-bottom: none;
}

.guide-content div[style*="background"] a:hover {
    background: var(--accent-dark);
    color: white;
}

.related-products {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.related-products h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 24px;
}

/* === FOOTER === */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.6);
    padding: 56px 0 32px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer h4 {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 0.9rem; transition: color 0.15s; }
.footer ul li a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
}

.footer-disclosure {
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 32px;
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.35);
}

/* === MOBILE BUY BAR === */
.mobile-buy-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    align-items: center;
    justify-content: space-between;
}

.mobile-buy-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}

.mobile-buy-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ========================================================
   EXIT INTENT MODAL (CRO: #7 Subtle exit nudge)
   ======================================================== */
.exit-intent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.exit-intent-overlay.visible {
    display: flex;
}

.exit-intent-modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.exit-intent-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.exit-intent-close:hover {
    color: var(--text);
}

.exit-intent-modal h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--text);
}

.exit-intent-modal p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.exit-intent-modal .btn {
    width: 100%;
    margin-top: 8px;
}

/* ========================================================
   PRICE HISTORY BADGE
   ======================================================== */
.price-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 8px;
}

.price-change.down {
    background: #e8f5e9;
    color: var(--success);
}

.price-change.up {
    background: #fff0f0;
    color: var(--danger);
}

/* ========================================================
   READING PROGRESS BAR (CRO: Visual feedback for scroll depth)
   ======================================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 110;
    transition: width 0.1s;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .trust-items-visible { gap: 16px; font-size: 0.75rem; }
    
    .header .container { height: 60px; }
    
    .nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 12px var(--pad);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        gap: 0;
    }
    
    .nav.open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
    .nav a:last-child { border-bottom: none; }
    .mobile-menu-btn { display: block; }
    
    .hero { padding: 60px 0; }
    .hero-stats { gap: 24px; }
    .hero-stat-value { font-size: 1.3rem; }
    
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .category-card { padding: 14px 6px; }
    .category-card h3 { font-size: 0.75rem; }
    
    .product-header { grid-template-columns: 1fr; gap: 24px; }
    
    .section { padding: 48px 0; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    
    .cookie-banner-inner { flex-direction: column; text-align: center; }
    .cookie-actions { width: 100%; justify-content: center; }
    
    /* CTA box mobile */
    .cta-box { flex-direction: column; text-align: center; padding: 20px; }
    .cta-box .btn { width: 100%; }
    
    /* Inline product card mobile */
    .inline-product-card { flex-direction: column; text-align: center; }
    .inline-product-card-action { width: 100%; }
    .inline-product-card-action .btn { width: 100%; }
    
    /* Scroll CTA mobile */
    .scroll-cta { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }
}
