/* TEMA Корзина (/korzina/) — same family as TEMA Gallery / TEMA Market */
#tema-portal .tk-main{padding-bottom:60px}
#tema-portal .tk-main h1 span,#tema-portal .tk-main h2 span{color:#e87b17}
#tema-portal .tk-preview-note{margin:18px 0 0;padding:10px 14px;border-radius:10px;background:#fff4e8;border:1px solid #f3c99d;color:#8a4b0f;font-size:13px}

/* Hero */
#tema-portal .tk-hero{padding:40px 0 22px;max-width:760px}
#tema-portal .tk-wordmark{display:inline-block;font-family:TemaMarketLogo,Arial,sans-serif;font-size:30px;font-weight:700;line-height:1.1;letter-spacing:-.06em;color:#252821;text-decoration:none;margin-bottom:16px}
#tema-portal .tk-wordmark b{color:#e87b17;font-weight:700}
#tema-portal .tk-hero h1{font-size:clamp(40px,5.4vw,64px)!important;line-height:1.02!important;letter-spacing:-.045em!important;margin:0 0 16px!important;color:#252821}
#tema-portal .tk-hero>p{font-size:17px;line-height:1.6;color:#5d6057;margin:0 0 18px;max-width:620px}
#tema-portal .tk-hero>p.tk-note{font-size:13px;line-height:1.5;color:#8b8e82;margin:16px 0 0}
#tema-portal .tk-stores{display:flex;flex-wrap:wrap;gap:8px}
#tema-portal .tk-store-chip{display:inline-flex;align-items:center;min-height:32px;padding:5px 13px;border:1px solid #dedfd7;border-radius:999px;background:#fff;font-size:13px;font-weight:600;color:#252821}
#tema-portal .tk-store-chip.is-stale{color:#a05a14;border-color:#f3c99d;background:#fff8f0}

/* Search + categories */
#tema-portal .tk-toolbar{position:sticky;top:0;z-index:20;margin:0 -16px;padding:12px 16px 10px;background:#f9f8f5e8;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid #dedfd700}
#tema-portal .tk-search{display:flex;align-items:center;gap:10px;height:48px;padding:0 14px;border:1px solid #dedfd7;border-radius:12px;background:#fff;max-width:560px}
#tema-portal .tk-search:focus-within{border-color:#e87b17;box-shadow:0 0 0 3px #e87b1722}
#tema-portal .tk-search svg{width:19px;height:19px;flex:0 0 auto;fill:none;stroke:#777971;stroke-width:2;stroke-linecap:round}
#tema-portal .tk-search input{flex:1;min-width:0;height:100%;border:0!important;outline:0;background:none!important;box-shadow:none!important;font:16px/1.2 Arial,Helvetica,sans-serif!important;color:#252821;padding:0!important}
#tema-portal .tk-cats{display:flex;gap:6px;overflow-x:auto;margin-top:10px;padding-bottom:2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
#tema-portal .tk-cats::-webkit-scrollbar{display:none}
#tema-portal .tk-cats button{flex:0 0 auto;min-height:36px;padding:7px 14px;border:1px solid #dedfd7;border-radius:999px;background:#fff;color:#252821;font:600 13px/1.2 Arial,Helvetica,sans-serif;cursor:pointer;white-space:nowrap}
#tema-portal .tk-cats button:hover{border-color:#e87b17;color:#e87b17}
#tema-portal .tk-cats button[aria-selected="true"]{background:#252821;border-color:#252821;color:#fff}

/* Sections */
#tema-portal .tk-section-head h2,#tema-portal .tk-cat h2,#tema-portal .tk-about h2{font-size:clamp(24px,3vw,32px)!important;line-height:1.1!important;letter-spacing:-.03em!important;margin:34px 0 14px!important;color:#252821}
#tema-portal .tk-loading,#tema-portal .tk-empty{padding:30px 0;color:#777971;font-size:15px}
#tema-portal .tk-muted{color:#777971;font-size:13px;line-height:1.45;margin:6px 0}

/* Weekly drops */
#tema-portal .tk-drops-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,170px);gap:12px;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin}
#tema-portal .tk-drop{position:relative;display:flex;flex-direction:column;gap:4px;padding:10px;border:1px solid #e7e4dc;border-radius:14px;background:#fff;text-align:left;cursor:pointer;font:inherit;color:#252821}
#tema-portal .tk-drop:hover{border-color:#e87b17}
#tema-portal .tk-drop img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:8px;background:#fff;margin-bottom:4px}
#tema-portal .tk-drop-pct{position:absolute;top:8px;left:8px;padding:3px 7px;border-radius:7px;background:#2f8a4c;color:#fff;font-size:12px;font-weight:700}
#tema-portal .tk-drop-name{font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:34px}
#tema-portal .tk-drop-price s{color:#999b92;font-size:12px}
#tema-portal .tk-drop-price b{font-size:15px}
#tema-portal .tk-drop small{color:#777971;font-size:12px}

/* Product type cards */
#tema-portal .tk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
#tema-portal .tk-card{position:relative;display:flex;align-items:stretch;border:1px solid #e7e4dc;border-radius:14px;background:#fff;transition:border-color .15s,box-shadow .15s}
#tema-portal .tk-card:hover{border-color:#d9cdb9;box-shadow:0 6px 20px #20211f0d}
#tema-portal .tk-card-open{flex:1;min-width:0;padding:14px 8px 14px 16px;border:0;background:none;text-align:left;cursor:pointer;font:inherit;color:#252821}
#tema-portal .tk-card h3{font-size:16px!important;line-height:1.3!important;margin:0 0 10px!important;font-weight:700;color:#252821;letter-spacing:-.01em}
#tema-portal .tk-cells{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
#tema-portal .tk-cell{display:flex;flex-direction:column;padding:6px 7px;border-radius:9px;background:#f6f4ef;min-width:0}
#tema-portal .tk-cell small{font-size:11px;color:#777971;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#tema-portal .tk-cell b{font-size:14px;white-space:nowrap}
#tema-portal .tk-cell.is-best{background:#e9f5ec;box-shadow:inset 0 0 0 1px #9bd0ab}
#tema-portal .tk-cell.is-best b{color:#22703a}
#tema-portal .tk-cell.is-none b{color:#b7b8b0;font-weight:400}
#tema-portal .tk-add{flex:0 0 52px;display:flex;align-items:center;justify-content:center;border:0;border-left:1px solid #efece5;border-radius:0 14px 14px 0;background:none;color:#e87b17;font:400 28px/1 Arial,sans-serif;cursor:pointer}
#tema-portal .tk-add:hover{background:#fff4e8}
#tema-portal .tk-add.is-added{color:#22703a;font-size:22px}

/* About */
#tema-portal .tk-about{max-width:760px;margin-top:20px}
#tema-portal .tk-about ol{margin:0 0 14px;padding-left:20px;color:#3e4039;line-height:1.6}
#tema-portal .tk-about li{margin:0 0 8px}
#tema-portal .tk-about p{color:#5d6057}
#tema-portal .tk-partner{margin-top:36px}

/* Floating basket button */
#tema-portal .tk-fab{position:fixed;right:18px;bottom:18px;z-index:1050;display:flex;align-items:center;gap:8px;height:56px;padding:0 18px 0 16px;border:0;border-radius:999px;background:#252821;color:#fff;font:600 15px/1 Arial,Helvetica,sans-serif;box-shadow:0 12px 30px #20211f40;cursor:pointer}
#tema-portal .tk-fab[hidden]{display:none}
#tema-portal .tk-fab svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linejoin:round}
#tema-portal .tk-fab-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#e87b17;font-size:12px}
#tema-portal .tk-fab-total:empty{display:none}

/* Panels (basket, product sheet) */
html.tk-locked,html.tk-locked body{overflow:hidden!important}
#tema-portal .tk-overlay{position:fixed;inset:0;z-index:1100;background:#14151266}
#tema-portal .tk-overlay[hidden],#tema-portal .tk-panel[hidden]{display:none}
#tema-portal .tk-panel{position:fixed;z-index:1110;top:0;right:0;bottom:0;width:min(480px,100%);display:flex;flex-direction:column;background:#f9f8f5;box-shadow:-20px 0 50px #20211f30;animation:tk-in .22s ease-out}
@keyframes tk-in{from{transform:translateX(30px);opacity:0}to{transform:none;opacity:1}}
#tema-portal .tk-panel-head{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid #e7e4dc;background:#fff}
#tema-portal .tk-panel-head h2{flex:1;margin:0!important;font-size:20px!important;line-height:1.25!important;letter-spacing:-.02em!important;color:#252821}
#tema-portal .tk-x{width:40px;height:40px;border:1px solid #e7e4dc;border-radius:50%;background:#fff;font:400 24px/1 Arial,sans-serif;color:#252821;cursor:pointer}
#tema-portal .tk-panel-body{flex:1;overflow-y:auto;padding:16px 18px 30px;overscroll-behavior:contain}
#tema-portal .tk-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:12px 18px;border:0;border-radius:10px;background:#e87b17;color:#fff!important;font:600 15px/1.2 Arial,Helvetica,sans-serif;cursor:pointer;width:100%}
#tema-portal .tk-cta:hover{background:#cf6a0f}
#tema-portal .tk-cta:disabled{opacity:.6}
#tema-portal .tk-ghost{flex:1;min-height:44px;padding:10px 14px;border:1px solid #d8d3c7;border-radius:10px;background:#fff;color:#252821;font:600 14px/1.2 Arial,Helvetica,sans-serif;cursor:pointer}
#tema-portal .tk-ghost:hover{border-color:#e87b17;color:#e87b17}

/* Sheet: products per chain */
#tema-portal .tk-sheet-actions{margin-bottom:6px}
#tema-portal .tk-store-block h3{display:flex;align-items:center;gap:8px;margin:22px 0 8px!important;font-size:16px!important;color:#252821}
#tema-portal .tk-store-block h3 small{font-weight:400;color:#999b92;font-size:13px}
#tema-portal .tk-prod{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:10px;align-items:start;padding:10px;margin-bottom:6px;border:1px solid #ece9e2;border-radius:12px;background:#fff}
#tema-portal .tk-prod img,#tema-portal .tk-noimg{width:52px;height:52px;object-fit:contain;border-radius:8px;background:#fff}
#tema-portal .tk-noimg{display:block;background:#f1efe9}
#tema-portal .tk-prod-name{font-size:14px;line-height:1.3;color:#252821}
#tema-portal .tk-prod-meta{font-size:12px;color:#777971;margin-top:3px}
#tema-portal .tk-prod-price{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}
#tema-portal .tk-prod-price b{font-size:16px;white-space:nowrap}
#tema-portal .tk-prod-price s{font-size:12px;color:#999b92}
#tema-portal .tk-card-price{font-size:11px;color:#2f6fb0;white-space:nowrap}
#tema-portal .tk-prod-btns{display:flex;gap:4px;margin-top:4px}
#tema-portal .tk-mini{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:4px 9px;border:1px solid #e1ddd3;border-radius:8px;background:#fff;color:#252821!important;font:600 12px/1 Arial,Helvetica,sans-serif;text-decoration:none!important;cursor:pointer;white-space:nowrap}
#tema-portal .tk-mini:hover{border-color:#e87b17;color:#e87b17!important}
#tema-portal .tk-trend{display:inline-flex;align-items:center;gap:6px;margin-top:4px;font-size:11px;color:#999b92}
#tema-portal .tk-trend svg{width:64px;height:20px;fill:none;stroke:#b5b6ad;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
#tema-portal .tk-trend.is-down{color:#22703a}#tema-portal .tk-trend.is-down svg{stroke:#3f9a5a}
#tema-portal .tk-trend.is-up{color:#b2461b}#tema-portal .tk-trend.is-up svg{stroke:#d26a3b}
#tema-portal .tk-report-link{margin-top:22px;padding:0;border:0;background:none;color:#777971;font:13px Arial,sans-serif;text-decoration:underline;cursor:pointer}
#tema-portal .tk-report{display:grid;gap:10px;margin-top:12px;padding:14px;border:1px solid #e7e4dc;border-radius:12px;background:#fff}
#tema-portal .tk-report label{display:grid;gap:5px;font-size:13px;font-weight:600;color:#252821}
#tema-portal .tk-report select,#tema-portal .tk-report textarea{width:100%;padding:9px 10px;border:1px solid #d8d3c7;border-radius:9px;background:#fff;font:15px/1.4 Arial,Helvetica,sans-serif;color:#252821}
#tema-portal .tk-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
#tema-portal .tk-thanks{padding:12px 14px;border-radius:10px;background:#e9f5ec;color:#22703a}

/* Basket */
#tema-portal .tk-seg{display:grid;grid-template-columns:1fr 1fr;padding:4px;border-radius:12px;background:#ece9e2}
#tema-portal .tk-seg button{min-height:40px;border:0;border-radius:9px;background:none;color:#5d6057;font:600 14px/1.2 Arial,Helvetica,sans-serif;cursor:pointer}
#tema-portal .tk-seg button[aria-checked="true"]{background:#fff;color:#252821;box-shadow:0 2px 6px #20211f1a}
#tema-portal .tk-mode-hint{margin:8px 2px 12px}
#tema-portal .tk-switch{display:flex;align-items:center;gap:10px;font-size:14px;color:#252821;cursor:pointer;margin-bottom:14px}
#tema-portal .tk-switch input{position:absolute;opacity:0}
#tema-portal .tk-switch span{position:relative;flex:0 0 40px;height:24px;border-radius:12px;background:#d4d1c8;transition:background .2s}
#tema-portal .tk-switch span::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .2s;box-shadow:0 1px 3px #0003}
#tema-portal .tk-switch input:checked+span{background:#e87b17}
#tema-portal .tk-switch input:checked+span::after{transform:translateX(16px)}
#tema-portal .tk-switch input:focus-visible+span{outline:2px solid #e87b17;outline-offset:2px}
#tema-portal .tk-totals{display:grid;gap:6px}
#tema-portal .tk-total{display:grid;grid-template-columns:1fr auto;align-items:center;padding:11px 14px;border:1px solid #e7e4dc;border-radius:12px;background:#fff}
#tema-portal .tk-total-name{font-weight:600;font-size:15px}
#tema-portal .tk-total-name em{margin-left:6px;padding:2px 7px;border-radius:6px;background:#2f8a4c;color:#fff;font-style:normal;font-size:11px;font-weight:700;vertical-align:1px}
#tema-portal .tk-total b{font-size:18px}
#tema-portal .tk-total small{grid-column:1/-1;font-size:12px;color:#a05a14}
#tema-portal .tk-total.is-best{border-color:#9bd0ab;background:#f1faf3}
#tema-portal .tk-total.is-partial b{color:#8b8e82}
#tema-portal .tk-split{margin-top:10px;padding:11px 14px;border-radius:12px;background:#fff4e8;color:#6b3a0b;font-size:14px;line-height:1.45}
#tema-portal .tk-lines{list-style:none;margin:18px 0 0;padding:0;border-top:1px solid #e7e4dc}
#tema-portal .tk-lines li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #e7e4dc}
#tema-portal .tk-line-title{font-size:14px;line-height:1.3}
#tema-portal .tk-line-title small{display:block;color:#777971;font-size:12px}
#tema-portal .tk-line-price{font-size:12px;color:#777971;white-space:nowrap}
#tema-portal .tk-qty{display:inline-flex;align-items:center;gap:2px;border:1px solid #e1ddd3;border-radius:9px;background:#fff}
#tema-portal .tk-qty button{width:32px;height:32px;border:0;background:none;font:400 18px/1 Arial,sans-serif;color:#252821;cursor:pointer}
#tema-portal .tk-qty b{min-width:20px;text-align:center;font-size:14px}
#tema-portal .tk-basket-actions{display:flex;gap:8px;margin-top:18px}

#tema-portal .tk-toast{position:fixed;left:50%;bottom:88px;z-index:1120;transform:translate(-50%,20px);padding:10px 16px;border-radius:10px;background:#252821;color:#fff;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
#tema-portal .tk-toast.is-on{opacity:1;transform:translate(-50%,0)}

@media (max-width:680px){
  #tema-portal .tk-hero{padding:26px 0 14px}
  #tema-portal .tk-hero>p{font-size:15px}
  #tema-portal .tk-grid{grid-template-columns:1fr}
  #tema-portal .tk-cell{padding:5px 6px}
  #tema-portal .tk-cell b{font-size:13px}
  #tema-portal .tk-add{flex-basis:46px}
  #tema-portal .tk-panel{top:auto;left:0;width:100%;max-height:88vh;border-radius:18px 18px 0 0;animation-name:tk-up}
  @keyframes tk-up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
  #tema-portal .tk-fab{right:12px;bottom:12px}
}
@media (prefers-reduced-motion:reduce){#tema-portal .tk-panel{animation:none}#tema-portal .tk-toast{transition:none}}

/* the site "to top" button sits where the basket button is */
#tema-to-top { display: none !important; }

/* Grossi leaflet card in "Акции недели" */
#tema-portal a.tk-leaflet{text-decoration:none;background:#fff8f0;border-color:#f3d2b0}
#tema-portal a.tk-leaflet img{object-fit:cover;object-position:top}
#tema-portal a.tk-leaflet .tk-drop-name b{color:#e87b17}

/* Product cards: one product, its price in every chain */
#tema-portal .tk-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
#tema-portal .tk-item{display:flex;flex-direction:column;border:1px solid #e7e4dc;border-radius:14px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}
#tema-portal .tk-item:hover{border-color:#d9cdb9;box-shadow:0 6px 20px #20211f0d}
#tema-portal .tk-item-open{height:auto!important;min-height:0!important;line-height:1.3!important;display:flex;flex-direction:column;gap:4px;padding:12px 12px 8px;border:0;background:none;text-align:left;cursor:pointer;font:inherit;color:#252821}
#tema-portal .tk-item-img{display:block;width:100%;height:150px;object-fit:contain;border-radius:10px;background:#fff;margin-bottom:6px}
#tema-portal .tk-nophoto{background:#f6f4ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9c5bb' stroke-width='1.5'%3E%3Cpath d='M5 8h14l-1.4 11.2a2 2 0 0 1-2 1.8H8.4a2 2 0 0 1-2-1.8L5 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center/40% no-repeat}
#tema-portal .tk-item-name{font-size:14px;line-height:1.3;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px}
#tema-portal .tk-item-type{font-size:12px;color:#777971;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#tema-portal .tk-item-prices{display:flex;flex-direction:column;gap:3px;padding:0 12px 10px;margin-top:auto}
#tema-portal .tk-ip{display:flex;align-items:center;gap:7px;padding:5px 8px;border-radius:8px;background:#f6f4ef;min-width:0}
#tema-portal .tk-ip small{flex:1;min-width:0;font-size:12px;color:#55574f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tema-portal .tk-ip b{font-size:13px;white-space:nowrap}
#tema-portal .tk-ip.is-best{background:#e9f5ec;box-shadow:inset 0 0 0 1px #9bd0ab}
#tema-portal .tk-ip.is-best b{color:#22703a}
#tema-portal .tk-ip.is-none b{color:#b7b8b0;font-weight:400}
#tema-portal .tk-item-add{border:0;border-top:1px solid #efece5;background:none;padding:11px;color:#e87b17;font:600 14px/1 Arial,Helvetica,sans-serif;cursor:pointer}
#tema-portal .tk-item-add:hover{background:#fff4e8}
#tema-portal .tk-item-add.is-added{color:#22703a}
#tema-portal .tk-more{display:block;margin:14px auto 0;padding:11px 20px;border:1px solid #d9d5cb;border-radius:999px;background:#fff;color:#252821;font:600 14px/1 Arial,Helvetica,sans-serif;cursor:pointer}
#tema-portal .tk-more:hover{border-color:#e87b17}
/* Product sheet */
#tema-portal .tk-item-hero{display:grid;grid-template-columns:132px minmax(0,1fr);gap:16px;align-items:center;margin-bottom:6px}
#tema-portal .tk-hero-img{width:132px;height:132px;object-fit:contain;border-radius:12px;background:#fff;display:block}
#tema-portal .tk-item-hero .tk-cta{margin-top:10px;width:100%}
#tema-portal .tk-alt{margin-top:8px;width:100%;font-size:13px!important;text-align:left}
#tema-portal .tk-where{font-size:15px!important;margin:18px 0 8px!important}
#tema-portal .tk-prod-store{font-weight:700;font-size:14px;padding-top:2px}
#tema-portal .tk-sheet .tk-prod:has(.tk-prod-store){grid-template-columns:96px minmax(0,1fr) auto}
#tema-portal .tk-prod.is-best{border-color:#9bd0ab;background:#f3faf5}
#tema-portal .tk-prod.is-best .tk-prod-price b{color:#22703a}
@media (max-width:680px){#tema-portal .tk-items{grid-template-columns:1fr 1fr;gap:8px}#tema-portal .tk-item-open{padding:8px 8px 6px}#tema-portal .tk-item-prices{padding:0 8px 8px;gap:4px}#tema-portal .tk-ip{gap:5px;padding:4px 6px}#tema-portal .tk-ip small{font-size:11px}#tema-portal .tk-ip b{font-size:12px}#tema-portal .tk-item-name{font-size:13px}#tema-portal .tk-item-hero{grid-template-columns:96px minmax(0,1fr)}#tema-portal .tk-hero-img{width:96px;height:96px}}
#tema-portal .tk-item>*,#tema-portal .tk-item-open>*{flex-shrink:0}
@media (max-width:680px){#tema-portal .tk-item-img{height:115px}}

/* Scroll arrows for horizontal rows (mouse users) */
#tema-portal .tk-sc{position:relative}
#tema-portal .tk-sc::before,#tema-portal .tk-sc::after{content:"";position:absolute;top:0;bottom:6px;width:60px;z-index:1;pointer-events:none;opacity:0;transition:opacity .2s}
#tema-portal .tk-sc::before{left:0;background:linear-gradient(90deg,#f9f8f5,rgba(249,248,245,0))}
#tema-portal .tk-sc::after{right:0;background:linear-gradient(270deg,#f9f8f5,rgba(249,248,245,0))}
#tema-portal .tk-sc-btn{display:none;position:absolute;top:50%;z-index:2;width:46px;height:46px;margin-top:-23px;padding:0;border:0;border-radius:50%;background:#252821;color:#fff;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.25);transition:background .15s,transform .15s;align-items:center;justify-content:center}
#tema-portal .tk-sc-btn svg{display:block}
#tema-portal .tk-sc-btn:hover{background:#e87b17;transform:scale(1.08)}
#tema-portal .tk-sc-prev{left:-10px}
#tema-portal .tk-sc-next{right:-10px}
#tema-portal .tk-sc:has(#tk-cats) .tk-sc-btn{width:36px;height:36px;margin-top:-19px}
#tema-portal .tk-sc:has(#tk-cats) .tk-sc-btn svg{width:18px;height:18px}
@media (hover:hover) and (pointer:fine){
  #tema-portal .tk-sc.can-prev .tk-sc-prev,#tema-portal .tk-sc.can-next .tk-sc-next{display:flex}
  #tema-portal .tk-sc.can-prev::before,#tema-portal .tk-sc.can-next::after{opacity:1}
  #tema-portal .tk-sc>.tk-cats,#tema-portal .tk-sc>.tk-drops-row{cursor:grab}
  #tema-portal .tk-sc.is-drag>*{cursor:grabbing;user-select:none}
}
#tema-portal .tk-drop-img{display:block;width:100%;aspect-ratio:1;border-radius:8px;margin-bottom:4px}

/* Store logos */
#tema-portal .tk-logo{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:18px;height:18px;border-radius:5px;background:#777971 center/cover no-repeat;color:#fff;font:700 10px/1 Arial,sans-serif;font-style:normal;vertical-align:-4px;margin-right:5px;overflow:hidden}
#tema-portal .tk-ip .tk-logo{margin-right:0}
#tema-portal .tk-logo-selver{background-color:#fff;background-image:url(logos/selver.png);color:transparent;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
#tema-portal .tk-logo-rimi{background-color:#fff;background-image:url(logos/rimi.png);color:transparent;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
#tema-portal .tk-logo-barbora{background-color:#fff;background-image:url(logos/barbora.png);color:transparent;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
#tema-portal .tk-logo-a1000{background-color:#fff;background-image:url(logos/a1000.png);color:transparent;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
#tema-portal .tk-ip.is-none{opacity:.55}
#tema-portal .tk-drop small,#tema-portal .tk-prod-store,#tema-portal .tk-total-name{display:flex;align-items:center;gap:6px;line-height:1.2}
#tema-portal .tk-drop small .tk-logo,#tema-portal .tk-prod-store .tk-logo,#tema-portal .tk-total-name .tk-logo{margin-right:0;vertical-align:0}
#tema-portal #tk-deals-row{grid-template-rows:auto auto}

/* Lidl, Coop, Grossi leaflets */
#tema-portal .tk-other .tk-section-head .tk-muted{margin:-6px 0 14px;max-width:640px}
#tema-portal .tk-leaflets{grid-auto-columns:minmax(170px,190px);margin-bottom:12px}
#tema-portal .tk-leaflet{display:flex;flex-direction:column;gap:5px;padding:10px;border:1px solid #e7e4dc;border-radius:14px;background:#fff;color:#252821;text-decoration:none}
#tema-portal .tk-leaflet:hover{border-color:#e87b17}
#tema-portal .tk-leaflet-img{display:block;width:100%;height:220px;object-fit:contain;border-radius:8px;background:#f6f4ef;margin-bottom:4px}
#tema-portal .tk-leaflet small{display:flex;align-items:center;gap:6px;color:#777971;font-size:12px}
#tema-portal .tk-leaflet small .tk-logo{margin-right:0}
#tema-portal .tk-leaflet-name{font-size:14px;font-weight:700;line-height:1.3}
#tema-portal .tk-leaflet em{margin-top:auto;font-style:normal;font-size:13px;font-weight:600;color:#e87b17}
#tema-portal a.tk-drop{text-decoration:none}
#tema-portal .tk-logo-lidl{background-color:#fff;background-image:url(logos/lidl.png);color:transparent;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
#tema-portal .tk-logo-coop{background-color:#fff;background-image:url(logos/coop.png);color:transparent;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
#tema-portal .tk-logo-grossi{background-color:#fff;background-image:url(logos/grossi.png);color:transparent;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
/* Above the site language switcher (z 1001); below the WP admin bar for logged-in editors */
body.admin-bar #tema-portal .tk-panel{top:32px}
@media (max-width:782px){body.admin-bar #tema-portal .tk-panel{top:46px}}

/* "Любая марка": the product each chain would sell for a basket line */
#tema-portal .tk-alts{grid-column:1/-1;list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:3px}
#tema-portal .tk-alts li{display:flex!important;align-items:center;gap:8px;padding:5px 8px!important;border:0!important;border-radius:8px;background:#f0eee8;font-size:12px;line-height:1.3}
#tema-portal .tk-alts li .tk-logo{margin-right:0}
#tema-portal .tk-alts a{flex:1;min-width:0;color:#252821;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tema-portal .tk-alts a:hover{color:#e87b17}
#tema-portal .tk-alts b{white-space:nowrap}
#tema-portal .tk-alts li.is-best{background:#e9f5ec;box-shadow:inset 0 0 0 1px #9bd0ab}
#tema-portal .tk-alts li.is-best b{color:#22703a}
#tema-portal .tk-save{margin-top:10px;padding:10px 12px;border-radius:10px;background:#e9f5ec;color:#22703a;font-size:13px;line-height:1.4}
#tema-portal .tk-save b{font-weight:700}
#tema-portal .tk-alts em{font-style:normal;font-weight:700;font-size:11px;color:#fff;background:#2f8a4c;border-radius:6px;padding:1px 6px}
#tema-portal .tk-ext{display:inline-block;width:1em;height:1em;margin-left:.3em;vertical-align:-.12em;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#tema-portal .tk-toolbar-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
#tema-portal .tk-toolbar-row .tk-search-wrap{flex:1 1 320px;position:relative;max-width:560px}
#tema-portal .tk-search-wrap .tk-search{max-width:none}
#tema-portal .tk-card-top{margin:0;white-space:nowrap}
@media(max-width:680px){#tema-portal .tk-toolbar-row{gap:10px}#tema-portal .tk-card-top{font-size:13px}}
#tema-portal .tk-toolbar{transition:transform .25s ease}
#tema-portal .tk-toolbar.is-hidden{transform:translateY(-100%)}
@media (prefers-reduced-motion:reduce){#tema-portal .tk-toolbar{transition:none}}
/* The sheet must never outgrow the screen: the body scrolls, the head with × stays (iOS: dvh excludes the browser bars) */
#tema-portal .tk-panel-body{min-height:0}
#tema-portal .tk-panel-head{flex-shrink:0}
/* iOS Safari 26 draws its address bar over the page top: keep the sheet's head (and ×) well below it */
@media (max-width:680px){#tema-portal .tk-panel,body.admin-bar #tema-portal .tk-panel{top:auto;max-height:calc(100vh - 100px);max-height:calc(100dvh - 100px - env(safe-area-inset-top))}#tema-portal .tk-panel-body{padding-bottom:calc(30px + env(safe-area-inset-bottom))}}
/* Product sheet: photo as tall as the two buttons beside it */
#tema-portal .tk-hero-meta{margin:0 0 10px}
#tema-portal .tk-item-hero{align-items:stretch}
#tema-portal .tk-hero-btns{display:flex;flex-direction:column;justify-content:center;gap:10px}
#tema-portal .tk-item-hero .tk-hero-btns>*{margin:0!important;width:100%}
#tema-portal .tk-hero-ph{position:relative;min-height:96px;border-radius:12px;background:#fff;overflow:hidden}
#tema-portal .tk-item-hero .tk-hero-ph .tk-hero-img{position:absolute;inset:0;width:100%;height:100%;padding:6px;box-sizing:border-box;object-fit:contain;border-radius:0}

/* Basket lines as cards with photos */
#tema-portal .tk-lines{border-top:0;display:flex;flex-direction:column;gap:8px}
#tema-portal .tk-lines li.tk-line{grid-template-columns:64px minmax(0,1fr) auto auto;padding:8px 10px 8px 8px;border:1px solid #e7e4dc;border-radius:12px;background:#fff}
#tema-portal .tk-line-img{width:64px;height:64px;border-radius:8px;object-fit:contain;background:#fff;display:block}
#tema-portal span.tk-line-img{background-color:#f6f4ef}
@media(max-width:680px){
#tema-portal .tk-lines li.tk-line{grid-template-columns:52px minmax(0,1fr) auto;gap:8px}
#tema-portal .tk-line-img{width:52px;height:52px}
#tema-portal .tk-lines li.tk-line .tk-line-price{grid-column:2;grid-row:2;margin-top:-6px}
#tema-portal .tk-lines li.tk-line .tk-qty{grid-column:3;grid-row:1/3}
#tema-portal .tk-lines li.tk-line .tk-line-img{grid-row:1/3}
}

/* Shared list (opened from a link) */
@media(min-width:681px){#tema-portal .tk-panel.tk-shared{top:5vh;bottom:5vh;right:auto;left:50%;transform:translateX(-50%);width:min(620px,calc(100% - 32px));border-radius:18px;overflow:hidden;box-shadow:0 30px 80px #20211f40;animation:none}}
#tema-portal .tk-sh-lead{margin:0 0 12px;color:#777971;font-size:13px}
#tema-portal .tk-sh-best{display:flex;align-items:center;gap:10px;padding:14px 16px;border-radius:14px;background:#e9f5ec;border:1px solid #9bd0ab;color:#22703a}
#tema-portal .tk-sh-best>span{flex:1;font-size:15px;line-height:1.3}
#tema-portal .tk-sh-best small{display:block;font-size:12px;opacity:.85}
#tema-portal .tk-sh-sum{font-size:22px;white-space:nowrap}
#tema-portal .tk-sh-stores{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 16px}
#tema-portal .tk-sh-stores span{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border:1px solid #e7e4dc;border-radius:99px;background:#fff;font-size:13px}
#tema-portal .tk-sh-stores small{color:#a0661d;font-size:11px}
#tema-portal .tk-sh-stores .tk-logo{margin-right:0}
#tema-portal .tk-sh-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
#tema-portal .tk-sh-list li{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px 14px 8px 8px;border:1px solid #e7e4dc;border-radius:12px;background:#fff}
#tema-portal .tk-sh-img{width:72px;height:72px;border-radius:8px;object-fit:contain;display:block}
#tema-portal .tk-sh-info{min-width:0;display:flex;flex-direction:column;gap:2px}
#tema-portal .tk-sh-name{font-size:14px;line-height:1.3;font-weight:600}
#tema-portal .tk-sh-info small{color:#777971;font-size:12px}
#tema-portal .tk-sh-where{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;margin-top:3px;font-size:12px;color:#22703a;font-weight:600}
#tema-portal .tk-sh-where .tk-logo{margin-right:0}
#tema-portal .tk-sh-where em{font-style:normal;font-weight:400;color:#777971}
#tema-portal .tk-sh-price{font-size:18px;white-space:nowrap;color:#22703a}
#tema-portal .tk-shared .tk-cta{width:100%}
@media(max-width:680px){#tema-portal .tk-sh-list li{grid-template-columns:56px minmax(0,1fr) auto;gap:10px}#tema-portal .tk-sh-img{width:56px;height:56px}#tema-portal .tk-sh-price{font-size:16px}}

#tema-portal .tk-alt-img{flex:none;width:40px;height:40px;border-radius:6px;object-fit:contain;background:#fff;display:block}
#tema-portal .tk-alts li{padding:4px 10px 4px 4px!important}

#tema-portal .tk-cats button{display:inline-flex;align-items:center;gap:7px;padding-left:11px}
#tema-portal .tk-cats button svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;color:#e87b17}
#tema-portal .tk-cats button[aria-selected="true"] svg{color:#fff}

/* Search suggestions */
#tema-portal .tk-suggest{position:absolute;z-index:30;top:calc(100% + 6px);left:0;right:0;max-height:min(440px,70vh);overflow-y:auto;padding:6px;border:1px solid #dedfd7;border-radius:14px;background:#fff;box-shadow:0 18px 40px #20211f26}
#tema-portal .tk-suggest[hidden]{display:none}
#tema-portal .tk-sg-head{padding:8px 10px 4px;color:#777971;font:600 12px/1.2 Arial,sans-serif}
#tema-portal .tk-sg-chips{display:flex;flex-wrap:wrap;gap:6px;padding:4px 8px 8px}
#tema-portal .tk-sg-chips .tk-sg-opt{padding:7px 12px;border:1px solid #dedfd7;border-radius:99px;background:#fff;color:#252821;font:600 13px/1.2 Arial,sans-serif;cursor:pointer}
#tema-portal .tk-sg-opt:hover,#tema-portal .tk-sg-opt.is-active{background:#f6f4ef;border-color:#e87b17}
#tema-portal .tk-sg-row{display:flex;align-items:center;gap:10px;width:100%;padding:7px 10px;border:1px solid transparent;border-radius:10px;background:none;color:#252821;font:14px/1.3 Arial,sans-serif;text-align:left;cursor:pointer}
#tema-portal .tk-sg-row span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tema-portal .tk-sg-row small{color:#777971;font-size:12px;white-space:nowrap}
#tema-portal .tk-sg-row b{white-space:nowrap;font-size:14px}
#tema-portal .tk-sg-row svg{width:20px;height:20px;flex:none;fill:none;stroke:#e87b17;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#tema-portal .tk-sg-img{width:36px;height:36px;flex:none;border-radius:6px;object-fit:contain;background:#fff}
#tema-portal .tk-sg-all{display:block;width:100%;margin-top:4px;padding:10px;border:0;border-top:1px solid #eeece6;border-radius:0 0 10px 10px;background:none;color:#e87b17;font:600 14px/1.2 Arial,sans-serif;cursor:pointer}
@media(max-width:680px){.tk-suggesting #tema-portal .tk-fab{display:none!important}}

/* Partner blocks at the bottom: TEMA Market, Дон Кихот, Radio Narva */
#tema-portal .tk-promos{margin-top:40px;display:flex;flex-direction:column;gap:28px}
#tema-portal .tk-promos .tp-article-market{margin:0}
#tema-portal .tk-promo-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:24px;align-items:start}
#tema-portal .tk-promo-row .tp-sponsor{margin:0}
@media(max-width:680px){#tema-portal .tk-promo-row{grid-template-columns:1fr}}
#tema-portal .tk-promos .tp-radio,#tema-portal .tk-promos .tp-sponsor,#tema-portal .tk-promos .tp-article-market{margin-top:0!important;margin-bottom:0!important}
#tema-portal .tk-promos .tk-partner,#tema-portal .tk-promos .tk-partner>*{margin-top:0!important;margin-bottom:0!important}
