/* =============================================
   COLORIAGE AMAZON AFFILIATE — Frontend v4.0
   Clean, modern, conversion-optimized
   ============================================= */

/* === RESET & CONTAINER === */
.caa-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.caa-single-wrap { padding: 20px 0 60px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1a1a1a; line-height: 1.6; }
.caa-single-wrap *, .caa-single-wrap *::before, .caa-single-wrap *::after { box-sizing: border-box; }

/* === BREADCRUMB === */
.caa-breadcrumb { font-size: 13px; color: #999; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.caa-breadcrumb a { color: #999; text-decoration: none; }
.caa-breadcrumb a:hover { color: #FF9900; }
.caa-breadcrumb .current { color: #555; }

/* === STICKY NAV === */
.caa-sticky-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9990;
    background: #fff; border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-100%); transition: transform 0.3s ease;
}
.caa-sticky-nav.visible { transform: translateY(0); }
.caa-sticky-nav .caa-container { display: flex; align-items: center; justify-content: space-between; height: 50px; }
.caa-sticky-links { display: flex; gap: 4px; overflow-x: auto; }
.caa-sticky-links a {
    font-size: 13px; font-weight: 500; color: #555; text-decoration: none;
    padding: 6px 14px; border-radius: 20px; white-space: nowrap; transition: background 0.2s;
}
.caa-sticky-links a:hover { background: #f5f5f5; }
.caa-sticky-cta {
    background: #FF9900; color: #fff !important; padding: 8px 20px !important;
    border-radius: 8px !important; font-weight: 600 !important; font-size: 13px;
    text-decoration: none; white-space: nowrap; transition: background 0.2s;
}
.caa-sticky-cta:hover { background: #e88b00; }

/* === DISCLOSURE === */
.caa-disclosure {
    font-size: 12px; color: #999; background: #fafafa;
    border-left: 3px solid #e0e0e0; padding: 10px 16px;
    border-radius: 0 8px 8px 0; margin-bottom: 28px;
}

/* === HERO === */
.caa-hero {
    display: grid; grid-template-columns: 420px 1fr;
    gap: 48px; margin-bottom: 48px; align-items: start;
}
@media (max-width: 860px) { .caa-hero { grid-template-columns: 1fr; gap: 28px; } }

/* IMAGE COL */
.caa-main-image-wrap {
    border-radius: 16px; overflow: hidden;
    border: 1px solid #f0f0f0; background: #fafafa;
}
.caa-main-image-wrap img { width: 100%; display: block; }
.caa-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.caa-thumb {
    width: 64px; height: 64px; object-fit: cover; border-radius: 10px;
    border: 2px solid transparent; cursor: pointer; transition: all 0.2s;
}
.caa-thumb:hover, .caa-thumb.active { border-color: #FF9900; box-shadow: 0 0 0 2px rgba(255,153,0,0.2); }

/* DETAILS COL */
.caa-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.caa-badge {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px; letter-spacing: 0.2px; text-transform: uppercase;
}
.caa-badge-bs { background: #FFF3CD; color: #856404; }
.caa-badge-ac { background: #D0E8FC; color: #0A4A7A; }
.caa-badge-rank { background: #f5f5f5; color: #666; border: 1px solid #e8e8e8; text-transform: none; }
.caa-badge-cat { background: #E8F5F0; color: #1A6645; text-transform: none; }

.caa-title {
    font-size: 26px; font-weight: 800; line-height: 1.25;
    margin: 0 0 8px; color: #0F1111;
}
@media (max-width: 600px) { .caa-title { font-size: 20px; } }

.caa-author-link { font-size: 14px; color: #007185; margin-bottom: 12px; }

/* RATING */
.caa-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.caa-stars { display: flex; gap: 1px; }
.star { font-size: 18px; line-height: 1; }
.star.full { color: #FFA41C; }
.star.empty { color: #ddd; }
.caa-rating-num { font-size: 14px; font-weight: 700; color: #0F1111; }
.caa-rating-count { font-size: 13px; color: #007185; }

/* PILLS */
.caa-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.caa-pill {
    font-size: 12px; color: #555; background: #f7f7f7;
    border: 1px solid #e8e8e8; padding: 5px 14px; border-radius: 20px;
}

/* PRICE */
.caa-price-block { margin-bottom: 18px; }
.caa-price-old { font-size: 14px; color: #aaa; text-decoration: line-through; display: block; margin-bottom: 2px; }
.caa-price-current {
    font-size: 36px; font-weight: 800; color: #B12704;
    display: inline-block; margin-right: 12px; letter-spacing: -0.5px;
}
.caa-price-discount {
    display: inline-block; font-size: 14px; font-weight: 700;
    background: #CC0C39; color: #fff; padding: 4px 12px; border-radius: 20px;
    vertical-align: middle;
}
.caa-price-note { font-size: 11px; color: #bbb; margin-top: 6px; font-style: italic; }

/* BENEFITS */
.caa-benefits { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.caa-benefit-prime, .caa-benefit-ship {
    font-size: 12px; font-weight: 600; padding: 5px 14px;
    border-radius: 20px;
}
.caa-benefit-prime { background: #E8F5F0; color: #1A6645; }
.caa-benefit-ship { background: #E8F0FE; color: #1A3C8A; }

/* BUY BUTTON */
.caa-btn-buy {
    display: block; width: 100%; padding: 16px;
    background: #FFD814; color: #0F1111 !important;
    text-align: center; border-radius: 10px; font-size: 15px;
    font-weight: 700; text-decoration: none; border: 1px solid #FCD200;
    cursor: pointer; margin-bottom: 10px;
    transition: background 0.2s;
}
.caa-btn-buy:hover { background: #F7CA00; }
.caa-btn-buy-lg { font-size: 17px; padding: 18px; border-radius: 12px; }

.caa-btn-video {
    display: block; width: 100%; padding: 10px; text-align: center;
    font-size: 13px; color: #555; text-decoration: none;
    border: 1px solid #e0e0e0; border-radius: 10px;
    margin-bottom: 14px; transition: background 0.2s;
}
.caa-btn-video:hover { background: #f9f9f9; }

/* DELIVERY */
.caa-delivery { margin-top: 14px; }
.caa-delivery-line { font-size: 13px; color: #666; margin-bottom: 4px; line-height: 1.5; }

/* === SECTIONS === */
.caa-section { margin-bottom: 48px; scroll-margin-top: 64px; }
.caa-section-title {
    font-size: 22px; font-weight: 800; color: #0F1111;
    margin: 0 0 20px; padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* DESCRIPTION */
.caa-desc-text { font-size: 15px; line-height: 1.85; color: #333; }

/* A+ IMAGES */
.caa-aplus-stack { display: flex; flex-direction: column; gap: 16px; }
.caa-aplus-img { width: 100%; height: auto; border-radius: 12px; display: block; }

/* AUTHOR CARD */
.caa-author-card {
    display: flex; gap: 18px; align-items: flex-start;
    background: #FAFAFA; border: 1px solid #f0f0f0;
    border-radius: 16px; padding: 20px 24px; margin-bottom: 40px;
}
.caa-author-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.caa-author-name { font-size: 16px; font-weight: 700; color: #0F1111; margin-bottom: 2px; }
.caa-author-cat { font-size: 12px; color: #aaa; margin-bottom: 8px; }
.caa-author-bio { font-size: 14px; color: #555; line-height: 1.7; }

/* SPECS TABLE */
.caa-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.caa-specs tr { border-bottom: 1px solid #f2f2f2; }
.caa-specs tr:last-child { border-bottom: none; }
.caa-specs th {
    width: 180px; padding: 12px 16px; text-align: left;
    font-weight: 600; color: #555; background: #FAFAFA;
}
.caa-specs td { padding: 12px 16px; color: #0F1111; }
.caa-bsr-sub { font-size: 12px; color: #888; }

/* === FBT === */
.caa-fbt-grid { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; justify-content: center; }
.caa-fbt-plus { font-size: 24px; color: #ccc; display: flex; align-items: center; }
.caa-fbt-card {
    flex: 1; min-width: 140px; max-width: 180px;
    border: 1px solid #f0f0f0; border-radius: 14px;
    padding: 16px; background: #fff; text-align: center;
    text-decoration: none; display: flex; flex-direction: column;
    align-items: center; transition: box-shadow 0.2s, transform 0.15s;
}
.caa-fbt-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.caa-fbt-img { width: 100px; height: 120px; object-fit: contain; border-radius: 8px; margin-bottom: 10px; }
.caa-fbt-title { font-size: 12px; color: #555; line-height: 1.45; margin-bottom: 8px; min-height: 35px; flex: 1; }
.caa-fbt-price { font-size: 17px; font-weight: 800; color: #B12704; margin-bottom: 10px; }
.caa-fbt-btn {
    font-size: 12px; font-weight: 600; color: #FF9900;
    border: 1px solid #FF9900; padding: 5px 14px; border-radius: 20px;
    display: inline-block;
}
.caa-fbt-card:hover .caa-fbt-btn { background: #FF9900; color: #fff; }

/* === COMPARE / SIMILAR === */
.caa-compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 600px) { .caa-compare-grid { grid-template-columns: repeat(2, 1fr); } }
.caa-compare-card {
    border: 1px solid #f0f0f0; border-radius: 14px;
    padding: 14px; background: #fff; text-align: center;
    text-decoration: none; display: block;
    transition: box-shadow 0.2s, transform 0.15s;
}
.caa-compare-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-3px); }
.caa-compare-img { width: 100%; height: 110px; object-fit: contain; border-radius: 8px; margin-bottom: 10px; display: block; }
.caa-compare-title { font-size: 12px; color: #555; line-height: 1.4; margin-bottom: 10px; min-height: 40px; }
.caa-compare-link {
    font-size: 12px; font-weight: 600; color: #FF9900;
    border: 1px solid #FF9900; padding: 5px 14px; border-radius: 20px;
    display: inline-block; transition: all 0.2s;
}
.caa-compare-card:hover .caa-compare-link { background: #FF9900; color: #fff; }

/* === REVIEWS === */
.caa-review-summary {
    display: grid; grid-template-columns: 140px 1fr;
    gap: 28px; align-items: center; margin-bottom: 28px;
    padding: 24px; background: #FAFAFA; border-radius: 16px;
    border: 1px solid #f0f0f0;
}
@media (max-width: 600px) { .caa-review-summary { grid-template-columns: 1fr; text-align: center; } }
.caa-score-num { font-size: 52px; font-weight: 800; color: #0F1111; line-height: 1; }
.caa-score-stars { display: flex; gap: 2px; margin: 6px 0; }
@media (max-width: 600px) { .caa-score-stars { justify-content: center; } }
.caa-score-total { font-size: 13px; color: #999; }

.caa-breakdown { display: flex; flex-direction: column; gap: 6px; }
.caa-bk-row { display: flex; align-items: center; gap: 10px; }
.caa-bk-label { font-size: 12px; color: #888; width: 36px; text-align: right; flex-shrink: 0; }
.caa-bk-bar { flex: 1; height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
.caa-bk-fill { height: 100%; background: #FFA41C; border-radius: 4px; transition: width 0.8s ease; }
.caa-bk-pct { font-size: 12px; color: #888; width: 36px; flex-shrink: 0; }

.caa-reviews-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.caa-review-card {
    background: #FAFAFA; border: 1px solid #f0f0f0;
    border-radius: 14px; padding: 18px 20px;
}
.caa-review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.caa-review-stars { display: flex; gap: 1px; }
.caa-review-author { font-size: 13px; font-weight: 600; color: #555; }
.caa-review-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: #0F1111; }
.caa-review-body { font-size: 13px; color: #555; line-height: 1.65; margin: 0; }

/* === CTA BOTTOM === */
.caa-cta-bottom {
    text-align: center; padding: 48px 24px;
    background: linear-gradient(135deg, #FAFAFA 0%, #FFF9EF 100%);
    border-radius: 20px; margin-bottom: 48px;
    border: 1px solid #f0f0f0;
}
.caa-cta-bottom-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; color: #0F1111; }
.caa-cta-bottom .caa-price-note { margin-top: 14px; }
.caa-cta-bottom .caa-btn-buy { max-width: 400px; margin: 0 auto; }

/* === LIGHTBOX === */
.caa-lightbox {
    display: none; position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.9); align-items: center; justify-content: center;
}
.caa-lightbox.open { display: flex; }
.caa-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; object-fit: contain; }
#caa-lightbox-close {
    position: absolute; top: 16px; right: 20px;
    background: rgba(255,255,255,0.15); color: #fff;
    border: none; border-radius: 50%;
    width: 40px; height: 40px; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
#caa-lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* === RESPONSIVE === */
@media (max-width: 860px) {
    .caa-hero { gap: 24px; }
    .caa-price-current { font-size: 28px; }
    .caa-fbt-grid { justify-content: center; }
    .caa-fbt-card { min-width: 120px; }
    .caa-reviews-list { grid-template-columns: 1fr; }
    .caa-sticky-links { display: none; }
}
