/* Porovnávanie produktov – patrí k custom-compare-site.js */

.uk-compare-ico { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- tlačidlo na detaile ---------- */
/* rovnaké medzery medzi všetkými ikonkami (šablóna dáva "Strážiť" nulový okraj) */
div.social-buttons-wrapper .link-icons.uk-compare-links { column-gap: 25px; }
div.social-buttons-wrapper .link-icons.uk-compare-links .link-icon { margin: 5px 0; }
/* tlačidlo vyzerá rovnako ako ostatné ikonky šablóny */
div.social-buttons-wrapper .link-icons .uk-compare-detail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    padding: 6px 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: inherit;
    text-transform: uppercase;
    color: #7c7e8f;
    cursor: pointer;
}
.link-icons .uk-compare-detail::before { content: none; display: none; }
.link-icons .uk-compare-detail .uk-compare-ico { width: 19px; height: 19px; }
.link-icons .uk-compare-detail .uk-compare-label { display: inline; text-decoration: underline; }
div.social-buttons-wrapper .link-icons .uk-compare-detail:hover,
div.social-buttons-wrapper .link-icons .uk-compare-detail.is-active { color: var(--color-primary, #7a9c59); }

/* ---------- ikonka vo výpise ---------- */
.uk-compare-host { position: relative; }
.uk-compare-card {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #e0e3e8;
    border-radius: 50%;
    background: #fff;
    color: #555;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.uk-compare-card .uk-compare-label { display: none; }
.uk-compare-card:hover { color: var(--color-primary, #7a9c59); border-color: var(--color-primary, #7a9c59); }
.uk-compare-card.is-active {
    background: var(--color-primary, #7a9c59);
    border-color: var(--color-primary, #7a9c59);
    color: #fff;
}
.uk-compare-btn.is-loading { opacity: .5; cursor: progress; }

/* ---------- ikona v hlavičke ---------- */
.uk-compare-header { position: relative; display: inline-flex; align-items: center; margin-right: 28px; }
.uk-compare-header-link { display: inline-flex; align-items: center; padding: 8px 0; color: #7c7e8f; }
.uk-compare-header-icon { position: relative; display: block; width: 24px; height: 24px; }
.uk-compare-header .uk-compare-header-icon .uk-compare-ico { display: block; width: 24px; height: 24px; }
/* počet v rovnakej výške a veľkosti ako pri košíku */
.uk-compare-header-icon b {
    position: absolute;
    top: -3px;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-secondary, #ef7f1a);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
.uk-compare-arrow {
    width: 7px;
    height: 7px;
    margin: -4px 0 0 14px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}
.uk-compare-header:hover .uk-compare-header-link { color: var(--color-primary, #7a9c59); }

.uk-compare-drop .uk-compare-bar-head strong { display: flex; align-items: center; gap: 6px; color: #333; }

/* zoznam po prejdení myšou (iba počítač; na dotyku vedie ikona priamo na /porovnat/) */
.uk-compare-drop { display: none; position: absolute; top: 100%; right: -40px; z-index: 100001; width: 320px; padding-top: 6px; }
.uk-compare-drop .uk-compare-panel {
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
    font-size: 13px;
    text-align: left;
}
@media (min-width: 992px) and (hover: hover) {
    .uk-compare-header.has-drop:hover .uk-compare-drop,
    .uk-compare-header.has-drop:focus-within .uk-compare-drop { display: block; }
}
@media (max-width: 991px) {
    .uk-compare-arrow { display: none; }
}

/* ---------- hlásenie ---------- */
.compare {
    position: fixed;
    top: 90px;
    right: 16px;
    z-index: 100000;
    width: 360px;
    max-width: calc(100vw - 32px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.compare.is-visible { opacity: 1; visibility: visible; transform: none; }
.compare .successBody,
.compare .errorBody {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 36px 14px 14px;
    background: #fff;
    border-left: 4px solid var(--color-primary, #7a9c59);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.compare .errorBody { border-left-color: var(--color-secondary, #ef7f1a); }
.compare .icon {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary, #7a9c59);
    color: #fff;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}
.compare .errorBody .icon { background: var(--color-secondary, #ef7f1a); }
.compare .text { font-size: 14px; line-height: 1.5; color: #333; }
.compare .text2 {
    padding: 0;
    border: 0;
    background: none;
    font-weight: 700;
    text-decoration: underline;
    color: var(--color-primary, #7a9c59);
    cursor: pointer;
}
.compare .uk-compare-toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

/* ---------- plávajúca lišta ---------- */
.uk-compare-bar {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 990;
    width: 300px;
    max-width: calc(100vw - 32px);
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
    font-size: 13px;
}
.uk-compare-bar.is-min { width: auto; padding: 0; border: 0; background: none; box-shadow: none; }
.uk-compare-panel button { cursor: pointer; }
.uk-compare-bar-head { display: flex; justify-content: space-between; align-items: center; }
.uk-compare-bar-head strong { display: flex; align-items: center; gap: 6px; }
.uk-compare-bar-head button { width: 26px; height: 26px; border: 0; background: #f5f6f8; border-radius: 50%; }
.uk-compare-bar-cat { margin: 2px 0 8px; color: #888; font-size: 12px; }
.uk-compare-panel .uk-compare-bar-head strong a { display: flex; align-items: center; gap: 6px; color: #333; }
.uk-compare-panel .uk-compare-bar-cat a { color: #888; text-decoration: underline; }
.uk-compare-panel .uk-compare-bar-head strong a:hover,
.uk-compare-panel .uk-compare-bar-cat a:hover { color: var(--color-primary, #7a9c59); }
.uk-compare-panel ul { list-style: none; margin: 0; padding: 0; }
.uk-compare-panel li { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 0; }
.uk-compare-panel li::before { content: none; }
.uk-compare-panel li a { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; color: #333; }
.uk-compare-panel li img { width: 40px; height: 32px; object-fit: contain; }
.uk-compare-panel li span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.uk-compare-panel li button { border: 0; background: none; font-size: 18px; color: #c0392b; }
.uk-compare-bar-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.uk-compare-clear { border: 0; background: none; padding: 0; color: #888; text-decoration: underline; }
.uk-compare-go {
    padding: 7px 18px;
    border-radius: 20px;
    background: var(--color-primary, #7a9c59);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
}
.uk-compare-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 24px;
    background: var(--color-primary, #7a9c59);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

/* ---------- stránka /porovnat/ : bez bočných panelov ---------- */
body.in-porovnat .content-wrapper-in > .sidebar { display: none !important; }
body.in-porovnat .content-wrapper-in { display: block; }
body.in-porovnat .content-wrapper-in::before { display: none; }
body.in-porovnat main#content {
    float: none;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}
body.in-porovnat main#content .content-inner { max-width: 100%; }

.uk-compare-toolbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-bottom: 14px; }
.uk-compare-toolbar > div { margin-right: auto; }
.uk-compare-toolbar label { display: flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; }
/* šablóna skrýva natívne zaškrtávacie políčka */
#uk-compare-root .uk-compare-toolbar input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    appearance: auto !important;
    position: static !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0;
    accent-color: var(--color-primary, #7a9c59);
}
.uk-compare-toolbar .uk-compare-reset { border: 0; background: none; padding: 0; color: #c0392b; text-decoration: underline; cursor: pointer; }
#uk-compare-root .uk-compare-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: #fff;
    border: 1px solid var(--color-primary, #7a9c59);
    border-radius: 20px;
    color: var(--color-primary, #7a9c59);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    cursor: pointer;
}
#uk-compare-root .uk-compare-share:hover { background: var(--color-primary, #7a9c59); color: #fff; }

/* ---------- okno so zdieľaným odkazom ---------- */
#uk-share-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(0, 0, 0, .6);
}
#uk-share-box {
    position: relative;
    width: 100%;
    max-width: 450px;
    padding: 25px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .4);
}
#uk-share-title { margin-bottom: 15px; font-size: 18px; font-weight: 700; text-align: center; color: #333; }
#uk-share-box label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #555; }
#uk-share-box #uk-share-input {
    display: block;
    width: 100%;
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}
#uk-share-box .uk-share-actions { margin-top: 20px; text-align: right; }
#uk-share-box #uk-share-close {
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 5px;
    border: 0;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
}

.uk-compare-scroll { overflow-x: auto; margin-bottom: 32px; -webkit-overflow-scrolling: touch; }
#uk-compare-root .uk-compare-table {
    width: 100%;
    min-width: calc(170px + var(--uk-cols) * 220px);
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border-top: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
    background: #fff;
}
#uk-compare-root .uk-compare-table th,
#uk-compare-root .uk-compare-table td {
    padding: 10px 12px;
    border: 0;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    overflow-wrap: break-word;
}
#uk-compare-root .uk-compare-table .uk-compare-corner,
#uk-compare-root .uk-compare-table tbody th {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 170px;
    background: #f5f6f8;
    font-weight: 700;
}
#uk-compare-root .uk-compare-table tbody tr.is-diff td { background: #fffaf0; }
#uk-compare-root .uk-compare-table .uk-compare-product { position: relative; text-align: center; }
.uk-compare-remove { position: absolute; top: 6px; right: 8px; z-index: 1; border: 0; background: none; font-size: 22px; line-height: 1; color: #c0392b; cursor: pointer; }
.uk-compare-img { display: flex; align-items: center; justify-content: center; height: 200px; margin: 14px 0 10px; }
.uk-compare-img img { max-width: 100%; max-height: 200px; object-fit: contain; }
.uk-compare-name { display: block; min-height: 3em; line-height: 1.4; font-weight: 700; }
.uk-compare-price { display: flex; flex-direction: column; align-items: center; margin: 8px 0 10px; }
.uk-compare-price strong { font-size: 20px; color: var(--color-primary, #7a9c59); }
.uk-compare-price del,
.uk-compare-price small { color: #999; }
#uk-compare-root .uk-compare-add-col { text-align: center; vertical-align: middle; }
#uk-compare-root .uk-compare-buy {
    display: inline-block;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 9px 22px;
    border: 0;
    border-radius: 20px;
    font-size: 14px;
    line-height: 20px;
    background: var(--color-secondary, #ef7f1a);
    color: #fff;
}
#uk-compare-root .uk-compare-buy:hover { filter: brightness(.93); color: #fff; }
.uk-compare-add-col a { display: block; color: #888; }
.uk-compare-add-col span { display: block; font-size: 48px; line-height: 1; }
.uk-compare-highlights ul { margin: 0; padding-left: 18px; }
.uk-compare-highlights li { font-size: 13px; }
.uk-compare-none { color: #bbb; }

/* ---------- poradenstvo v ľavom stĺpci vedľa obrázkov ---------- */
#uk-compare-root .uk-compare-table thead .uk-compare-corner { vertical-align: middle; text-align: center; }
.uk-compare-help { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.uk-compare-help strong { margin-bottom: 4px; font-size: 15px; line-height: 1.35; color: #333; }
.uk-compare-help a { max-width: 100%; font-size: 13px; font-weight: 400; overflow-wrap: anywhere; color: var(--color-primary, #7a9c59); }
.uk-compare-help a[href^="tel:"] { font-size: 15px; font-weight: 700; white-space: nowrap; }

.uk-compare-empty,
.uk-compare-loading { padding: 50px 16px; text-align: center; }
.uk-compare-empty .uk-compare-ico { width: 56px; height: 56px; color: #bbb; }
.uk-compare-loading span {
    display: block;
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--color-primary, #7a9c59);
    border-radius: 50%;
    animation: ukCompareSpin .8s linear infinite;
}
@keyframes ukCompareSpin { to { transform: rotate(360deg); } }

/* ---------- výzva pri inej kategórii ---------- */
.uk-compare-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .6);
}
.uk-compare-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 400px;
    max-height: 100%;
    overflow-y: auto;
    padding: 28px 20px 22px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
    text-align: center;
}
.uk-compare-dialog p { margin: 0; font-size: 15px; line-height: 1.5; color: #333; }
.uk-compare-dialog-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-secondary, #ef7f1a);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 40px;
}
.uk-compare-dialog .uk-compare-dialog-replace {
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 24px;
    background: var(--color-primary, #7a9c59);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    cursor: pointer;
}
.uk-compare-dialog a { font-weight: 700; text-decoration: underline; color: var(--color-primary, #7a9c59); }
.uk-compare-dialog .uk-compare-dialog-close {
    position: absolute;
    top: 6px;
    right: 8px;
    padding: 6px;
    border: 0;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

/* ---------- dostupnosť a bublina (vzhľad ako v kategórii) ---------- */
.uk-compare-stock { color: var(--color-primary, #7a9c59); font-weight: 700; }
.uk-compare-tip { position: relative; display: inline-block; border-bottom: 1px dashed currentColor; cursor: help; }
.uk-compare-tip::after,
.uk-compare-tip::before {
    position: absolute;
    left: 50%;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity .15s, visibility .15s;
}
.uk-compare-tip::after {
    content: attr(data-tip);
    bottom: calc(100% + 8px);
    width: 230px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #0f0f0f;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
    text-transform: none;
    white-space: normal;
}
.uk-compare-tip::before { content: ""; bottom: calc(100% + 3px); border: 5px solid transparent; border-bottom: 0; border-top-color: #0f0f0f; }
.uk-compare-tip:focus:not(:focus-visible) { outline: none; }
.uk-compare-tip:hover::after,
.uk-compare-tip:hover::before,
.uk-compare-tip:focus::after,
.uk-compare-tip:focus::before { opacity: 1; visibility: visible; }

@media (max-width: 767px) {
    .compare { top: auto; bottom: 80px; right: 16px; }
    .uk-compare-bar { left: 10px; bottom: 10px; }
    #uk-compare-root .uk-compare-table { min-width: calc(96px + var(--uk-cols) * 150px); }
    #uk-compare-root .uk-compare-table .uk-compare-corner,
    #uk-compare-root .uk-compare-table tbody th { width: 96px; }
    #uk-compare-root .uk-compare-table th,
    #uk-compare-root .uk-compare-table td { padding: 8px; font-size: 12px; }
    .uk-compare-img,
    .uk-compare-img img { max-height: 120px; }
    .uk-compare-img { height: 120px; }
    .uk-compare-price strong { font-size: 16px; }
    #uk-compare-root .uk-compare-buy { padding: 7px 12px; font-size: 12px; line-height: 18px; }
    .uk-compare-card { width: 30px; height: 30px; top: 6px; right: 6px; }
    .uk-compare-help strong { font-size: 12px; }
    .uk-compare-help a { font-size: 11px; }
    .uk-compare-help a[href^="tel:"] { font-size: 11px; white-space: normal; }
}

/* ========== VERZIA 2 (custom-compare-site-2.js): kategórie ========== */
.uk-compare-groups { max-height: 50vh; overflow-y: auto; margin-top: 8px; overscroll-behavior: contain; }
.uk-compare-group { padding: 8px 0 2px; border-top: 1px solid #e5e7eb; }
.uk-compare-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.uk-compare-panel .uk-compare-group-name { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; color: #333; }
.uk-compare-panel .uk-compare-group-go { padding: 3px 10px; border-radius: 12px; background: var(--color-primary, #7a9c59); color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; }
.uk-compare-panel .uk-compare-group-head button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: #fbeae8; color: #c0392b; font-size: 16px; line-height: 22px; cursor: pointer; }

.uk-compare-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.uk-compare-tab { display: inline-flex; align-items: center; max-width: 100%; border: 1px solid #e0e3e8; border-radius: 22px; background: #fff; }
.uk-compare-tab.is-active { border-color: var(--color-primary, #7a9c59); background: var(--color-primary, #7a9c59); }
#uk-compare-root .uk-compare-tab button { border: 0; background: none; color: #333; cursor: pointer; }
#uk-compare-root .uk-compare-tab .uk-compare-tab-name { padding: 8px 4px 8px 16px; font-size: 14px; font-weight: 700; line-height: 20px; text-align: left; }
#uk-compare-root .uk-compare-tab .uk-compare-tab-name b { display: inline-block; min-width: 20px; margin-left: 4px; border-radius: 10px; background: rgba(0, 0, 0, .08); font-size: 11px; line-height: 20px; text-align: center; }
#uk-compare-root .uk-compare-tab .uk-compare-tab-close { padding: 8px 12px 8px 8px; font-size: 18px; line-height: 20px; opacity: .6; }
#uk-compare-root .uk-compare-tab .uk-compare-tab-close:hover { opacity: 1; }
#uk-compare-root .uk-compare-tab.is-active button { color: #fff; }
/* rozbaleny panel odsadit od zvislej zalozky "Overene zakaznikmi" pri lavom okraji */
@media (min-width: 768px) { .uk-compare-bar.uk-compare-bar-2:not(.is-min) { left: 48px; width: 320px; } }
/* "Porovnať": vždy biele písmo na zelenom pozadí (šablóna ho pri nabehnutí myšou farbila na zeleno) */
.uk-compare-panel a.uk-compare-group-go,
.uk-compare-panel a.uk-compare-group-go:hover,
.uk-compare-panel a.uk-compare-group-go:focus,
.uk-compare-panel a.uk-compare-group-go:active,
.uk-compare-panel a.uk-compare-group-go:visited {
    background: var(--color-primary, #7a9c59) !important;
    color: #fff !important;
    text-decoration: none !important;
}
.uk-compare-panel a.uk-compare-group-go:hover { filter: brightness(.9); }
