/**
 * V2 Price Match Page — Styles
 * Mirrors category page design with price-specific filter UI.
 * Brand: #6366f1 primary, #10b981 accent
 */

.alc-price-wrap { font-family: system-ui,-apple-system,'Segoe UI',Roboto,sans-serif; color: #1e293b; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.alc-ctr { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.alc-sec { margin-bottom: 28px; }

/* ===== BREADCRUMBS ===== */
.alc-bc { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #94a3b8; margin-bottom: 10px; flex-wrap: wrap; }
.alc-bc a { color: #64748b; text-decoration: none; transition: color .15s; }
.alc-bc a:hover { color: #6366f1; }
.alc-bc-s { color: #cbd5e1; font-size: 11px; }
.alc-bc-c { color: #334155; font-weight: 600; }

/* ===== HERO ===== */
.alc-hero { padding: 22px 0 18px; overflow: hidden; }
.alc-hero-body { text-align: center; }
.alc-hero-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}
.alc-hero-h1 { font-size: 24px; font-weight: 800; margin: 0; line-height: 1.25; letter-spacing: -.025em; }
.alc-hero-sub { font-size: 13.5px; margin: 6px auto 0; max-width: 500px; line-height: 1.5; }

/* Gradient */
.alc-hero--gradient {
    background: linear-gradient(145deg, #F8FAFC 0%, #E9EFF8 40%, #DBEAFE 70%, #EFF6FF 100%);
    box-shadow: inset 0 -1px 0 #E2E8F0;
}
.alc-hero--gradient .alc-hero-ic { background: #fff; border: 1px solid #DBEAFE; color: #2563EB; box-shadow: 0 1px 4px rgba(37,99,235,.1); }
.alc-hero--gradient .alc-hero-h1 { color: #1E293B; }
.alc-hero--gradient .alc-hero-sub { color: #64748B; }
.alc-hero--gradient .alc-bc a { color: #64748B; }
.alc-hero--gradient .alc-bc a:hover { color: #2563EB; }
.alc-hero--gradient .alc-bc-c { color: #1E293B; }

/* Glass */
.alc-hero--glass {
    background: rgba(248,250,252,.72);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 -1px 0 rgba(226,232,240,.6);
}
.alc-hero--glass .alc-hero-ic { background: rgba(37,99,235,.06); color: #2563EB; }
.alc-hero--glass .alc-hero-h1 { color: #0F172A; }
.alc-hero--glass .alc-hero-sub { color: #64748B; }

/* Dark */
.alc-hero--dark {
    background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.06);
}
.alc-hero--dark .alc-bc a, .alc-hero--dark .alc-bc-s { color: rgba(148,163,184,.7); }
.alc-hero--dark .alc-bc a:hover { color: #60A5FA; }
.alc-hero--dark .alc-bc-c { color: rgba(241,245,249,.8); }
.alc-hero--dark .alc-hero-ic { background: rgba(37,99,235,.12); color: #60A5FA; box-shadow: 0 1px 4px rgba(37,99,235,.15); }
.alc-hero--dark .alc-hero-h1 { color: #F1F5F9; }
.alc-hero--dark .alc-hero-sub { color: #94A3B8; }

/* Accent */
.alc-hero--accent {
    background: linear-gradient(145deg, #2563EB 0%, #3B82F6 50%, #1D4ED8 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.alc-hero--accent .alc-bc a, .alc-hero--accent .alc-bc-s { color: rgba(255,255,255,.5); }
.alc-hero--accent .alc-bc a:hover { color: #fff; }
.alc-hero--accent .alc-bc-c { color: rgba(255,255,255,.9); }
.alc-hero--accent .alc-hero-ic { background: rgba(255,255,255,.14); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.alc-hero--accent .alc-hero-h1 { color: #fff; }
.alc-hero--accent .alc-hero-sub { color: rgba(219,234,254,.85); }

/* Minimal */
.alc-hero--minimal {
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), inset 0 -1px 0 #F1F5F9;
}
.alc-hero--minimal .alc-hero-ic { background: #F1F5F9; color: #2563EB; }
.alc-hero--minimal .alc-hero-h1 { color: #0F172A; }
.alc-hero--minimal .alc-hero-sub { color: #64748B; }

/* ===== BACK LINK (filtered view) ===== */
.alc-sec--back { padding-top: 18px; }
.alc-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: #6366f1;
    text-decoration: none; padding: 6px 14px 6px 10px;
    border-radius: 8px; background: #eef2ff; border: 1px solid #c7d2fe;
    transition: all .15s;
}
.alc-back-link:hover { background: #6366f1; color: #fff; border-color: #6366f1; }
.alc-back-link:hover svg { color: #fff; }

/* ===== REFERENCE CARD (filtered view) ===== */
.alc-ref-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    padding: 14px 18px; max-width: 480px;
}
.alc-ref-label {
    display: flex; align-items: center; gap: 5px;
    font-size: 10.5px; font-weight: 600; color: #6366f1;
    text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px;
}
.alc-ref-body {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: inherit; padding: 8px 12px;
    border-radius: 10px; background: #f8fafc; border: 1px solid #f1f5f9;
    transition: all .15s;
}
.alc-ref-body:hover { border-color: #c7d2fe; background: #eef2ff; }
.alc-ref-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; border: 1px solid #ebebf0; }
.alc-ref-logo--ph {
    width: 40px; height: 40px; border-radius: 10px; background: #f1f5f9;
    border: 1px solid #ebebf0; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.alc-ref-info { flex: 1; min-width: 0; }
.alc-ref-name { font-size: 14px; font-weight: 700; color: #1a1a1a; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alc-ref-tag { font-size: 12px; color: #6b7280; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.alc-ref-arr { flex-shrink: 0; color: #cbd5e1; transition: color .15s; }
.alc-ref-body:hover .alc-ref-arr { color: #6366f1; }

/* Ref card centering */
.alc-ref-center { display: flex; flex-direction: column; align-items: center; }
.alc-ref-center .alc-ref-card { margin: 0 auto; }
.alc-ref-center .alc-ref-label { justify-content: center; }

/* ===== STAT PILLS ===== */
.alc-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 8px 0; }
.alc-pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 50px;
    padding: 6px 14px 6px 6px; font-size: 13px; color: #374151;
    transition: all .15s; font-family: inherit;
}
.alc-pill:hover { border-color: #c7d2fe; box-shadow: 0 1px 6px rgba(99,102,241,.06); }
.alc-pill-ic {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--bg,#eef2ff); color: var(--c,#6366f1);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.alc-pill strong { font-weight: 700; color: #111827; }
.alc-pill span { color: #6b7280; font-size: 11px; }

/* ===== PRICE FILTERS ===== */
.alc-price-filters {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    padding: 18px 20px; display: flex; flex-direction: column; gap: 14px;
}
.alc-pf-row { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.alc-pf-row--inline { display: flex; align-items: flex-end; gap: 14px; }
.alc-pf-label {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; color: #6366f1; text-transform: uppercase;
    letter-spacing: .04em; margin-bottom: 6px; white-space: nowrap;
}
.alc-pf-chips {
    display: flex; flex-wrap: wrap; gap: 6px; flex: 1;
}
.alc-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; font-size: 12px; font-weight: 500; font-family: inherit;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px;
    color: #475569; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.alc-chip:hover { border-color: #c7d2fe; background: #eef2ff; color: #4f46e5; }
.alc-chip--on { background: #6366f1!important; border-color: #6366f1!important; color: #fff!important; box-shadow: 0 2px 8px rgba(99,102,241,.2); }
.alc-chip-cnt { font-size: 10px; font-weight: 600; background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 10px; }
.alc-chip--on .alc-chip-cnt { background: rgba(255,255,255,.2); }
.alc-pf-select {
    padding: 7px 12px; font-size: 12px; font-family: inherit; font-weight: 500;
    border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc;
    color: #374151; cursor: pointer; transition: border-color .15s;
    min-width: 140px;
}
.alc-pf-plat-select-mobile { display: none; }
.alc-pf-plat-chips { display: flex; }
.alc-pf-select:focus { border-color: #6366f1; outline: none; box-shadow: 0 0 0 2px rgba(99,102,241,.15); }
.alc-pf-input {
    padding: 7px 12px; font-size: 12px; font-family: inherit; font-weight: 500;
    border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc;
    color: #374151; transition: border-color .15s; width: 180px;
}
.alc-pf-input:focus { border-color: #6366f1; outline: none; box-shadow: 0 0 0 2px rgba(99,102,241,.15); }
.alc-pf-sort-wrap, .alc-pf-search-wrap { display: flex; flex-direction: column; }

/* ===== SECTION HEADINGS ===== */
.alc-sec-h { font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.alc-badge { font-size: 11px; font-weight: 600; color: #4338ca; background: #eef2ff; padding: 2px 9px; border-radius: 20px; }

/* ===== LISTING GRID ===== */
.alc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.alc-price-empty { grid-column: 1/-1; text-align: center; padding: 40px 0; color: #9ca3af; font-size: 14px; }

/* ===== MODERN CARD SOFT ===== */
.alc-price-wrap .mc-card.mc-soft.alc-mc {
    background: #fff; border: 1px solid #e5e5ea; border-radius: 14px;
    display: flex; flex-direction: column; overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.alc-price-wrap .mc-card.mc-soft.alc-mc:hover { border-color: #c7c7cc; box-shadow: 0 4px 20px rgba(0,0,0,.07); transform: translateY(-1px); }
.alc-price-wrap .mc-link { display: block; text-decoration: none!important; color: inherit; padding: 16px 18px 8px; }
.alc-price-wrap .mc-link:hover { text-decoration: none!important; color: inherit; }
.alc-price-wrap .mc-main { display: flex; align-items: flex-start; gap: 14px; }
.alc-price-wrap .mc-logo { flex-shrink: 0; }
.alc-price-wrap .mc-logo-img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; display: block; border: 1px solid #ebebf0; }
.alc-price-wrap .mc-logo--ph { width: 48px; height: 48px; border-radius: 12px; background: #f8fafc; border: 1px solid #ebebf0; display: flex; align-items: center; justify-content: center; }
.alc-price-wrap .mc-text { flex: 1; min-width: 0; }
.alc-price-wrap .mc-title { font-size: 15px!important; font-weight: 700!important; line-height: 1.3!important; margin: 0!important; padding: 0!important; color: #1a1a1a!important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alc-price-wrap .mc-tagline { font-size: 12.5px; line-height: 1.45; margin: 3px 0 0; color: #6e6e73; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alc-price-wrap .mc-head-buttons { padding: 0 18px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: auto; }
.alc-price-wrap .mc-pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; line-height: 1.3; white-space: nowrap; }
.alc-price-wrap .mc-pill-tier { background: #065f46; color: #fff; border: 1px solid #065f46; }
.alc-price-wrap .mc-pill-price { background: #1e40af; color: #fff; border: 1px solid #1e40af; }
.alc-price-wrap .mc-footer { padding: 8px 18px; border-top: 1px solid #f0f0f5; background: #f9f9fb; display: flex; align-items: center; justify-content: space-between; border-radius: 0 0 14px 14px; }
.alc-price-wrap .mc-footer-cats { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; overflow: hidden; }
.alc-price-wrap .mc-cat-term { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: #374151; white-space: nowrap; text-decoration: none; }
.alc-price-wrap a.mc-cat-term--link { cursor: pointer; transition: color .15s, background .15s; padding: 2px 6px; border-radius: 6px; margin: -2px -6px; }
.alc-price-wrap a.mc-cat-term--link:hover { color: #4f46e5; background: #eef2ff; }
.alc-price-wrap .mc-cat-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.alc-price-wrap .mc-cat-icon i { width: 22px; height: 22px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.alc-price-wrap .mc-cat-icon .term-icon.image-icon { width: 22px; height: 22px; border-radius: 5px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.alc-price-wrap .mc-cat-icon .term-icon.image-icon img { width: 14px; height: 14px; object-fit: contain; }
.alc-price-wrap .mc-bookmark { flex-shrink: 0; width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #9ca3af; text-decoration: none; transition: all .15s; }
.alc-price-wrap .mc-bookmark:hover { background: #f3f4f6; color: #374151; }
.alc-price-wrap .mc-bookmark.bookmarked, .alc-price-wrap .mc-bookmark.bookmarked:hover { color: #ef4444; }
.alc-price-wrap .mc-bookmark i { font-size: 17px; line-height: 1; }

/* ===== LOAD MORE ===== */
.alc-loadmore-wrap { text-align: center; margin-top: 22px; }
.alc-loadmore {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 28px; font-size: 13px; font-weight: 600; font-family: inherit;
    color: #4f46e5; background: #eef2ff; border: 1px solid #c7d2fe;
    border-radius: 50px; cursor: pointer; transition: all .15s;
}
.alc-loadmore:hover { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.alc-loadmore:disabled { opacity: .6; cursor: wait; }
.alc-loadmore:disabled svg { animation: alc-sp .8s linear infinite; }
.alc-spin {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid rgba(37,99,235,.2); border-top-color: #2563EB;
    border-radius: 50%; animation: alc-sp .6s linear infinite;
}
.alc-loadmore:disabled .alc-spin { border-color: rgba(255,255,255,.3); border-top-color: #fff; }
@keyframes alc-sp { from{transform:rotate(0)} to{transform:rotate(360deg)} }

/* ===== RELATED ===== */
.alc-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.alc-rel { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; text-decoration: none; color: #1e293b; transition: all .15s; }
.alc-rel:hover { border-color: #c7d2fe; box-shadow: 0 3px 10px rgba(99,102,241,.07); transform: translateY(-1px); }
.alc-rel-ic { width: 36px; height: 36px; border-radius: 10px; background: #eef2ff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.alc-rel-info { flex: 1; }
.alc-rel-info strong { font-size: 13px; font-weight: 600; color: #111827; display: block; }
.alc-rel-info span { font-size: 11px; color: #6b7280; }
.alc-rel-arr { flex-shrink: 0; color: #d1d5db; transition: color .15s, transform .15s; }
.alc-rel:hover .alc-rel-arr { color: #6366f1; transform: translateX(2px); }

/* ===== TOAST ===== */
.alc-toast {
    position: fixed; z-index: 99999;
    background: #1e293b; color: #fff; padding: 10px 20px; border-radius: 10px;
    font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 7px;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none;
}
.alc-toast i { color: #ef4444; font-size: 16px; }
.alc-toast--on { opacity: 1; pointer-events: auto; }
.alc-toast--bottom-center { bottom: 28px; left: 50%; transform: translateX(-50%) translateY(16px); }
.alc-toast--bottom-center.alc-toast--on { transform: translateX(-50%) translateY(0); }
.alc-toast--bottom-right { bottom: 28px; right: 24px; transform: translateY(16px); }
.alc-toast--bottom-right.alc-toast--on { transform: translateY(0); }
.alc-toast--top-center { top: 28px; left: 50%; transform: translateX(-50%) translateY(-16px); }
.alc-toast--top-center.alc-toast--on { transform: translateX(-50%) translateY(0); }
.alc-toast--middle { top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.9); }
.alc-toast--middle.alc-toast--on { transform: translate(-50%,-50%) scale(1); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .alc-ctr { padding: 0 14px; }
    .alc-back-link { font-size: 12px; padding: 5px 12px 5px 8px; }
    .alc-ref-card { padding: 12px 14px; max-width: 100%; }
    .alc-ref-body { padding: 6px 10px; gap: 10px; }
    .alc-ref-logo, .alc-ref-logo--ph { width: 34px; height: 34px; border-radius: 8px; }
    .alc-ref-name { font-size: 13px; }
    .alc-ref-tag { font-size: 11px; }
    .alc-hero { padding: 14px 0 10px; }
    .alc-hero-h1 { font-size: 20px; }
    .alc-hero-ic { width: 30px; height: 30px; border-radius: 8px; }
    .alc-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .alc-pill { padding: 5px 10px 5px 5px; font-size: 12px; }
    .alc-pill-ic { width: 24px; height: 24px; }
    .alc-price-filters { padding: 14px 14px; gap: 12px; }
    .alc-pf-row--inline { flex-direction: column; gap: 10px; align-items: stretch; }
    .alc-pf-input { width: 100%; }
    .alc-pf-select { width: 100%; }
    .alc-pf-plat-select-mobile { display: block; width: 100%; }
    .alc-pf-plat-chips { display: none; }
    .alc-pf-chips { gap: 4px; }
    .alc-chip { padding: 4px 10px; font-size: 11px; }
    .alc-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
    .alc-price-wrap .mc-link { padding: 14px 14px 6px; }
    .alc-price-wrap .mc-head-buttons { padding: 0 14px 8px; }
    .alc-price-wrap .mc-footer { padding: 7px 14px; }
    .alc-price-wrap .mc-logo-img, .alc-price-wrap .mc-logo--ph { width: 40px; height: 40px; border-radius: 10px; }
    .alc-price-wrap .mc-title { font-size: 13.5px!important; }
    .alc-price-wrap .mc-tagline { font-size: 11.5px; }
    .alc-sec-h { font-size: 16px; }
    .alc-rel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .alc-hero-h1 { font-size: 18px; }
    .alc-grid { grid-template-columns: 1fr; }
}
