/* Globalna osnova (foundation). Tokeni i komponente su u /css/ds.css koji se učitava pre ovog fajla. */
body{margin:0;color:var(--ink);background:var(--paper);font:500 16px/24px var(--font-sans)}
.hero{color:#fff;background:var(--ink)}
.hero p{max-width:40rem;color:#C9D1CD}
.hero .slogan,.hero em{color:var(--lime);font-style:normal;font-weight:800}
h1{font-size:30px;line-height:36px;font-weight:800;letter-spacing:-.02em;margin:.35em 0}
h2{font-size:22px;line-height:28px;font-weight:800;letter-spacing:-.01em}
h3{font-size:18px;line-height:24px;font-weight:700}
@media(min-width:1024px){h1{font-size:44px;line-height:52px}h2{font-size:28px;line-height:36px}h3{font-size:20px;line-height:28px}}
.search:not(.sbx){max-width:44rem;margin-block:1.5rem}
.search:not(.sbx) label{display:block;margin-bottom:.35rem;font-weight:700}
.search:not(.sbx)>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.45rem}
.search.sbx{margin:0}
/* Polja bez klase: 48px, border #C5CEC9, radius 8 */
:where(input:not([type=checkbox],[type=radio],[type=hidden],[type=range],[type=file],[class]),select:not([class]),textarea:not([class])){width:100%;min-height:48px;border:1px solid var(--line-strong);border-radius:8px;padding:0 14px;font:inherit;color:var(--ink);background:#fff}
:where(textarea:not([class])){padding:12px 14px}
:where(input:not([class]),select:not([class]),textarea:not([class])):hover{border-color:#8E9A93}
/* Dugme bez klase: neutralno (kao .btn-secondary). .button ostaje primarno (lime) dok agenti ne pređu na .btn-* */
:where(button:not([class])),.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:8px;border:1px solid var(--line-strong);background:#fff;color:var(--ink);font:inherit;font-size:15px;font-weight:700;line-height:20px;cursor:pointer;text-decoration:none}
:where(button:not([class])):hover{background:var(--surface-2)}
.button{background:var(--lime);border-color:transparent}
.button:hover{background:#95E600;color:var(--ink)}
.search:not(.sbx) button{background:var(--lime);border-color:transparent}
.search:not(.sbx) button:hover{background:#95E600}
.content{padding-block:24px 48px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.75rem;list-style:none;padding:0}
.tile,.offer{background:#fff;border:1px solid var(--line);border-radius:12px;padding:1rem;color:var(--ink)}
.tile{display:flex;gap:.5rem;justify-content:space-between;align-items:center;min-height:3.4rem;height:100%;text-decoration:none;font-weight:800;background:#fff}
.tile:hover{border-color:#8E9A93}
.offer{margin-bottom:.75rem}
dl{display:grid;grid-template-columns:auto 1fr;gap:.35rem 1rem}
dd{margin:0;font-variant-numeric:tabular-nums}
.hero :focus-visible{outline-color:var(--lime)}
.account-form{display:grid;gap:.65rem;max-width:30rem;margin-block:1.5rem}
.account-form label{font-weight:700}
.account-form button,.offer form{margin-top:.5rem}
.account-logout{display:flex;justify-content:flex-end;margin:0 0 8px}

.compare-choice{display:flex;align-items:center;gap:.4rem;min-height:44px;padding:.25rem .5rem}
.compare-choice input{width:1.2rem;min-height:0;aspect-ratio:1}
.grid li:has(.compare-choice) .tile{height:auto}
.period-form{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.period-form select{min-height:44px;font:inherit;padding:.4rem}

.account-form select,.account-form textarea{min-height:44px;font:inherit;padding:.5rem;max-width:100%}
.offer p{overflow-wrap:anywhere}
.search.has-suggest{position:relative}
.suggestions{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:40;list-style:none;margin:0;padding:6px;max-height:min(70vh,34rem);overflow:auto;overscroll-behavior:contain;background:#fff;color:var(--ink);border:1px solid #dde3e0;border-radius:14px;box-shadow:0 18px 40px -12px rgba(11,19,32,.28),0 2px 8px rgba(11,19,32,.08);text-align:left}
.search:not(.has-suggest) .suggestions{position:static;margin-top:.5rem}
.suggest-heading{padding:10px 10px 4px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#6b7480}
.suggest-option a{display:flex;align-items:center;gap:12px;min-height:44px;padding:6px 10px;border-radius:10px;color:var(--ink);text-decoration:none}
.suggest-option.is-active a,.suggest-option a:hover{background:#f3f5f4}
.suggest-thumb{flex:none;width:44px;height:44px;border-radius:8px;background:#f3f5f4;overflow:hidden}
.suggest-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.suggest-logo{flex:none;display:grid;place-items:center;width:64px;height:32px;padding:3px 6px;box-sizing:border-box;border:1px solid #eef1ef;border-radius:8px;background:#fff;font-weight:800}
.suggest-logo img{max-width:100%;max-height:100%;object-fit:contain}
.suggest-icon{flex:none;display:grid;place-items:center;width:44px;height:36px;color:#5a6472}
.suggest-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.suggest-text{display:flex;flex-direction:column;min-width:0;flex:1;font-size:14px;line-height:19px;font-weight:600}
.suggest-text>span{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.suggest-text small{font-size:12px;line-height:16px;font-weight:500;color:#5a6472}
.suggest-text mark{background:none;color:inherit;font-weight:800;box-shadow:inset 0 -.32em 0 rgba(166,255,0,.55)}
.suggest-price{flex:none;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.suggest-option.is-all{margin-top:4px;border-top:1px solid #eef1ef;padding-top:4px}
.suggest-option.is-all a{font-weight:600}
@media(max-width:520px){.suggest-price{font-size:13px}.suggestions{max-height:60vh}}
[data-history-content][aria-busy=true]{opacity:.65}
@media (prefers-reduced-motion:no-preference){
    button,.button,.tile{transition:background-color .16s ease,border-color .16s ease,transform .16s ease}
    button:active,.button:active{transform:translateY(1px)}
    .suggestions:not([hidden]){animation:catalog-appear .16s ease-out}
    @keyframes catalog-appear{from{opacity:.4;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
}
[data-async-status]:empty{display:none}
button:disabled{cursor:wait;opacity:.65}
.sponsored-placement img{width:100%;height:auto;aspect-ratio:96/25;object-fit:contain;display:block}
.sponsored-placement p{margin:0 0 .5rem}
.catalog-hero{background:var(--ink);color:white;border-block-start:1px solid #283546}
.catalog-hero-inner{padding-block:1.25rem 1.75rem}
.breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;font-size:.82rem;color:#d4ded9}
.breadcrumbs a{color:#d4ded9;text-underline-offset:.2em}
.catalog-hero h1{max-width:20ch;margin:.5rem 0 .85rem;font-size:clamp(1.8rem,4vw,3.25rem)}
.catalog-hero .search{margin:0;max-width:37rem}
.catalog-hero .search label{font-size:.85rem}
.catalog-body{padding-block:1.5rem 3rem}
.category-links{padding-bottom:1.25rem;border-bottom:1px solid var(--line);margin-bottom:1.45rem}
.category-links h2{font-size:.95rem;margin:0 0 .65rem}
.category-links ul{display:flex;flex-wrap:wrap;gap:.45rem;margin:0;padding:0;list-style:none}
.category-links a{display:inline-flex;gap:.6rem;align-items:center;min-height:44px;padding:.3rem .75rem;border:1px solid #d7dfdb;background:white;color:var(--ink);border-radius:.5rem;font-size:.84rem;font-weight:700;text-decoration:none}
.category-links a:hover{background:#effbdf;border-color:#87ac5c}
.category-links a span{color:#467819}
.catalog-toolbar{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:.7rem 1rem}
.catalog-toolbar h2{margin:0 0 .15rem}
.catalog-toolbar p{margin:0;color:var(--muted);font-size:.84rem}
.catalog-sort{display:flex;align-items:center;gap:10px}
.catalog-sort label{font-size:14px;font-weight:700}
.catalog-sort select{appearance:none;-webkit-appearance:none;min-height:44px;min-width:12.5rem;max-width:100%;border:1px solid #dde3e0;border-radius:8px;padding:0 40px 0 14px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1320' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/16px;color:var(--ink);font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:border-color .15s ease}
.catalog-sort select:hover{border-color:#8e9a93}
.catalog-sort select:focus-visible{outline:2px solid var(--ink);outline-offset:1px;box-shadow:0 0 0 5px var(--lime)}
.catalog-sort button{min-height:44px;border:1px solid #c5cec9;border-radius:8px;padding:0 14px;background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:700}
.catalog-sort [hidden],.catalog-sort select[hidden]{display:none}
.sort-menu{position:relative}
.sort-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;min-width:12.5rem;padding:0 14px;border:1px solid #c5cec9;border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}
.sort-trigger:hover{border-color:#8e9a93}
.sort-trigger svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s ease}
.sort-trigger[aria-expanded=true]{border-color:var(--ink)}
.sort-trigger[aria-expanded=true] svg{transform:rotate(180deg)}
.sort-trigger:focus-visible{outline:2px solid var(--ink);outline-offset:2px;box-shadow:0 0 0 5px var(--lime)}
.sort-list{position:absolute;right:0;top:calc(100% + 6px);z-index:20;min-width:100%;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid #dde3e0;border-radius:12px;box-shadow:0 12px 32px -8px rgba(11,19,32,.22),0 2px 6px rgba(11,19,32,.06);outline:none}
.sort-list[hidden]{display:none}
.sort-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:40px;padding:0 12px;border-radius:8px;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer;white-space:nowrap}
.sort-list li svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;visibility:hidden}
.sort-list li.is-active,.sort-list li:hover{background:#f3f5f4}
.sort-list li[aria-selected=true]{font-weight:800}
.sort-list li[aria-selected=true] svg{visibility:visible;color:#00754f}
@media(prefers-reduced-motion:no-preference){.sort-list:not([hidden]){animation:sort-pop .14s ease-out}}
@keyframes sort-pop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.compare-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem;background:#e9efe9;border:1px solid #d9e4da;padding:.55rem .7rem;border-radius:.6rem;margin-top:1rem}
.compare-strip p{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem .65rem;margin:0;font-size:.82rem}
.compare-strip p span{color:var(--muted)}
.compare-strip button{font-size:.82rem;padding:.5rem .7rem}
.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;list-style:none;margin:1rem 0 1.5rem;padding:0}
.product-tile{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid #dde3e0;border-radius:12px;overflow:hidden}
.product-tile:hover,.product-tile:focus-within{border-color:#8e9a93}
.product-tile-link{display:flex;flex-direction:column;flex:1;color:var(--ink);text-decoration:none}
.product-tile-link:focus-visible{outline-offset:-3px}
.product-tile-media{display:grid;place-items:center;height:clamp(7.5rem,20vw,12rem);padding:.6rem;background:#fff;border-bottom:1px solid #edf1ed}
.product-tile-media img{width:100%;height:100%;min-height:0;max-height:100%;object-fit:contain}
.image-fallback{font-size:.72rem;color:var(--muted);text-align:center}
.product-tile-info{display:flex;flex:1;flex-direction:column;padding:10px 14px 14px}
.product-tile h3{font-size:14px;line-height:20px;font-weight:700;margin:2px 0 10px;min-height:40px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.product-brand,.price-caption,.availability{font-size:13px;line-height:18px;font-weight:500;color:#5a6472;margin:0}
.product-brand{font-weight:500}
.product-tile-price{display:flex;flex-direction:column;margin-top:auto}
.product-tile-price{gap:2px}
.product-tile-price strong{margin:0;font-size:20px;line-height:24px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.product-tile-price strong span{font-size:1em;letter-spacing:0}
.product-tile .compare-choice{border-top:1px solid #edf1ed;font-size:.82rem;margin:0;padding-inline:.75rem;cursor:pointer}
.product-tile .compare-choice input{accent-color:#497f22}
.catalog-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:.35rem}
.catalog-pagination[hidden]{display:none}
.catalog-pagination>*{display:grid;place-items:center;min-width:44px;min-height:44px;padding:.2rem;border:1px solid transparent;border-radius:8px;background:transparent;text-decoration:none;color:var(--ink);font-weight:700}
.catalog-pagination a[rel]{border-color:#c5cec9;background:#fff}
.catalog-pagination a:hover{background:#ecefed}
.catalog-pagination [aria-current="page"]{background:var(--ink);border-color:var(--ink);color:#fff}
.catalog-empty{border:1px solid var(--line);border-radius:.75rem;background:#fff;padding:1.2rem}
.catalog-empty h3{margin:0 0 .75rem}
.product-main-photo{display:block;width:min(100%,24rem);height:18rem;object-fit:contain;background:#fff;border:1px solid #e8ece9;border-radius:1.1rem;margin-block:1rem}
@media(max-width:340px){.product-grid{grid-template-columns:1fr}.catalog-sort{flex-wrap:wrap}}
@media(min-width:700px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(min-width:1024px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.catalog-hero-inner{padding-block:1.5rem 2rem}}
@media(prefers-reduced-motion:no-preference){
.product-tile,.category-links a{transition:border-color .16s ease,background-color .16s ease}
.product-tile img{transition:transform .16s ease}
.product-tile-link:hover img{transform:scale(1.035)}
}
@media(max-width:699px){
.product-tile-visual{padding:10px 10px 0}.product-tile-actions{right:16px;top:16px}.product-tile-info{padding:8px 10px 10px}.product-tile-price strong{font-size:17px}.product-tile-row{gap:6px}.product-tile-cta{font-size:13px;padding:0 6px}
.category-links ul{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-auto-columns:max-content;overflow-x:auto;overscroll-behavior-inline:contain;padding:.2rem .2rem .45rem;margin-inline:-.2rem}
.category-links li{min-width:0}
}
.compare-strip button:disabled{cursor:not-allowed}
.directory-grid{margin:0}
.directory-grid .tile{background:white}
.directory-grid small{white-space:nowrap;font-weight:600;color:var(--muted)}
.account-market-links{display:flex;flex-wrap:wrap;gap:.3rem 1rem;list-style:none;padding:0}
.account-market-links a{display:inline-flex;align-items:center;min-height:44px}
.product-tile-visual{position:relative;padding:14px 14px 0}
.product-tile-media{display:block;position:relative;border:0;border-radius:8px;height:auto;aspect-ratio:1;padding:0;background:#f3f5f4;text-decoration:none;overflow:hidden}
.product-tile-media img{display:block;width:100%;height:100%;min-width:0;max-width:100%;object-fit:cover}
.product-tile-media .image-fallback{display:grid;place-items:center;height:100%;padding:12px}
.product-tile-actions{position:absolute;right:22px;top:22px;z-index:2}
.product-tile-actions form{margin:0}
.product-icon{display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0;background:#fff;border:1px solid #dde3e0;border-radius:50%;color:var(--ink);text-decoration:none;flex:none}
.product-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.product-icon:hover{border-color:#8e9a93}
.product-icon.is-saved{background:var(--ink);color:var(--lime);border-color:var(--ink)}
.product-icon.is-saved svg{fill:currentColor}
.product-compare-icon{border-radius:8px;width:44px;height:44px;border-color:#c5cec9}
.product-compare-icon[aria-pressed=true]{background:var(--lime);border-color:#86d000}
.product-icon:disabled{cursor:not-allowed;opacity:.5}
.product-icon[hidden],.compare-strip[hidden],.compare-strip [hidden]{display:none}
.product-tile-info h3 a{text-decoration:none;color:inherit}
.product-tile-info h3 a:hover{text-decoration:underline;text-underline-offset:.18em}
.product-tile-row{display:flex;gap:8px;margin-top:12px}
.product-tile-cta{flex:1;display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 10px;border:1px solid #c5cec9;border-radius:8px;background:#fff;color:var(--ink);font-weight:700;font-size:.875rem;text-align:center;text-decoration:none;line-height:1.2}
.product-tile-cta:hover{border-color:var(--ink)}
.compare-strip-actions{display:flex;gap:.35rem;flex-wrap:wrap}
.compare-strip-actions [data-compare-clear]{background:white;border-color:var(--line)}
@media(prefers-reduced-motion:no-preference){.product-tile-media:hover img{transform:scale(1.035)}}
.merchant-logo{display:inline-grid;place-items:center;flex:none;box-sizing:border-box;background:#fff;border:1px solid #dde3e0;border-radius:8px;overflow:hidden;padding:6px 8px}
.merchant-logo img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.merchant-logo-sm{width:88px;height:36px}.merchant-logo-md{width:132px;height:52px}.merchant-logo-lg{width:168px;height:64px;border-radius:12px}
.merchant-logo-lg{padding:10px 14px}
.merchant-monogram{font-weight:800;font-size:1.05rem;color:var(--ink);letter-spacing:.02em}
.merchant-hero{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.merchant-hero h1{margin:0}.merchant-hero p{margin:.15rem 0 0;color:#c9d1cd;font-size:14px}
.merchant-tile{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-decoration:none}
.merchant-tile{padding:0;gap:0;background:#fff;border:1px solid #dde3e0;border-radius:12px;overflow:hidden;font-weight:700;transition:border-color .15s ease,box-shadow .15s ease}
.merchant-tile:hover{border-color:#8e9a93;box-shadow:0 8px 20px -14px rgba(11,19,32,.3)}
.merchant-tile .merchant-logo{width:100%;height:96px;border:0;border-bottom:1px solid #eef1ef;border-radius:0;padding:18px 22px;background:#fff}
.merchant-tile>span:not(.merchant-logo){padding:12px 16px 0;font-size:15px;line-height:20px}
.merchant-tile>small{padding:2px 16px 14px;font-size:13px;font-weight:500;color:#5a6472}
.offer-merchant a{display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:none}
.offer-merchant a:hover span{text-decoration:underline}
.catalog-more{display:flex;flex-direction:column;align-items:center;gap:12px;margin:8px auto 40px;max-width:22rem;text-align:center}
.catalog-more[hidden],.catalog-more [hidden]{display:none}
.catalog-more-count{margin:0;font-size:14px;font-weight:600;color:#5a6472}
.catalog-more-bar{width:100%;height:4px;border-radius:999px;background:#dde3e0;overflow:hidden}
.catalog-more-bar span{display:block;height:100%;width:0;background:var(--ink);border-radius:inherit;transition:width .3s ease}
.catalog-more-button{min-height:48px;width:100%;padding:0 22px;border:1px solid #c5cec9;border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:15px;font-weight:700;cursor:pointer;transition:border-color .15s ease,background-color .15s ease}
.catalog-more-button:hover{border-color:var(--ink);background:#f5f7f6}
.catalog-more-button:disabled{cursor:progress;opacity:.7}
.catalog-more-button:focus-visible{outline:2px solid var(--ink);outline-offset:2px;box-shadow:0 0 0 5px var(--lime)}
.catalog-sentinel{height:1px}
@media(prefers-reduced-motion:no-preference){
.product-icon{transition:background-color .15s ease,border-color .15s ease}
}

.offer-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.product-tile-price .offer-meta{margin-top:4px}
.offer-meta-merchant{display:inline-flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere}
.merchant-logo.merchant-logo-offer{width:60px;height:24px;padding:3px 5px;border-radius:5px}
.merchant-logo.merchant-logo-offer:not(:has(img)){width:24px;padding:2px}
.merchant-logo-offer .merchant-monogram{font-size:10px}
.offer-stock{display:inline-flex;align-items:center;gap:5px;width:fit-content;padding:2px 7px;border-radius:999px;background:#e7f5eb;color:#195b32;font-size:12px;font-weight:700;line-height:16px}
.offer-stock-dot{flex:none;width:6px;height:6px;border-radius:50%;background:currentColor}

.product-tile-offers{margin-bottom:2px}
.tile-offers{list-style:none;margin:0 0 5px;padding:0}
.tile-offer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;min-height:30px;padding:2px 0;border-bottom:1px solid #edf1ed}
.tile-offer:last-child{border-bottom:0}
.tile-offer-logo{display:block;width:auto;height:auto;max-width:min(100%,84px);max-height:24px;object-fit:contain}
.tile-offer-shop{min-width:0;overflow-wrap:anywhere;font-size:11px;line-height:14px}
.tile-offer-price{white-space:nowrap;font-size:14px;font-weight:750;font-variant-numeric:tabular-nums}
.tile-offer:first-child .tile-offer-price{color:#195b32}
.tile-offer-price small{font-size:10px;font-weight:600}
.product-tile-offers .offer-stock{font-size:11px;line-height:14px}
@media(max-width:480px){
  .tile-offer-price{font-size:13px}
}
