/* =====================================================================
   MÜQAYİSƏ MODULU — CSS (bütün siniflər "lfm-compare-" önəkli)
   Yer: /modules/compare/assets/compare.css
   Modul bağlananda bu fayl yüklənmir.
   ===================================================================== */

/* Elan səhifəsindəki düymə (product.actions) */
.lfm-compare-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #4b5563; background: #f9fafb; transition: all .15s; }
.lfm-compare-btn:hover { background: #f3f4f6; color: #111827; }
.lfm-compare-btn.is-on { background: #eef2ff; color: #4338ca; }

/* Üzən panel */
.lfm-compare-bar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 999px; background: #111827; color: #fff; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); animation: lfm-compare-in .25s ease; max-width: calc(100vw - 24px); }
.lfm-compare-bar[hidden] { display: none; }
@keyframes lfm-compare-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.lfm-compare-bar-ic { position: relative; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lfm-compare-bar-ic b { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; border-radius: 999px; background: #22c55e; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.lfm-compare-bar-txt { font-size: 13px; font-weight: 700; white-space: nowrap; opacity: .85; }
.lfm-compare-bar-go { background: #22c55e; color: #052e16; font-weight: 900; font-size: 13.5px; padding: 10px 16px; border-radius: 999px; white-space: nowrap; }
.lfm-compare-bar-go:hover { background: #4ade80; }
.lfm-compare-bar-x { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .7); }
.lfm-compare-bar-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
@media (max-width: 767px) {
    .lfm-compare-bar { bottom: calc(84px + env(safe-area-inset-bottom)); }
    .lfm-compare-bar-txt { display: none; }
    body:has(.lf-pd-bar.is-on) .lfm-compare-bar { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* Müqayisə cədvəli */
.lfm-compare-wrap { overflow-x: auto; background: #fff; border: 1px solid #eef0f3; border-radius: 26px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.lfm-compare-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; }
.lfm-compare-table th, .lfm-compare-table td { padding: 13px 16px; border-bottom: 1px solid #f1f3f5; font-size: 14px; vertical-align: top; text-align: left; }
.lfm-compare-table tbody tr:last-child th, .lfm-compare-table tbody tr:last-child td { border-bottom: 0; }
.lfm-compare-table td { color: #111827; font-weight: 600; min-width: 190px; }
.lfm-compare-table tbody th { color: #6b7280; font-weight: 600; width: 180px; }
.lfm-compare-table tbody tr.is-diff td { background: #fffdf3; }
.lfm-compare-sticky { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 1px 0 0 #f1f3f5; }
.lfm-compare-table tbody tr.is-diff .lfm-compare-sticky { background: #fffdf3; }
.lfm-compare-head { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 190px; padding-top: 4px; }
.lfm-compare-img { display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #f1f5f9; }
.lfm-compare-img img { width: 100%; height: 100%; object-fit: cover; }
.lfm-compare-title { font-size: 14px; font-weight: 700; color: #111827; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lfm-compare-title:hover { color: #15803d; }
.lfm-compare-price { font-size: 20px; font-weight: 900; color: #111827; letter-spacing: -.02em; display: flex; flex-direction: column; }
.lfm-compare-price.is-best { color: #15803d; }
.lfm-compare-price small { font-size: 11px; font-weight: 800; color: #15803d; background: #f0fdf4; border-radius: 999px; padding: 2px 8px; width: max-content; margin-top: 2px; letter-spacing: 0; }
.lfm-compare-open { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 800; color: #16a34a; }
.lfm-compare-rm { position: absolute; top: 10px; right: 6px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .92); color: #6b7280; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.lfm-compare-rm:hover { color: #e11d48; }
