/* =========================================================
   TEOKY CATALOG — v1 «Grid»
   Все стили изолированы внутри .tk-cat. !important стоит только
   там, где Elementor / тема обычно перебивают (кнопки, ссылки, фото).
   ========================================================= */

.tk-cat{
  --tk-top:0px;               /* отступ для липкой панели, если у темы липкая шапка */
  --tk-fg:#000;
  --tk-bg:#fff;
  --tk-mute:#7a7a7a;
  --tk-soft:#e6e6e6;
  --tk-sans:'Inter Tight','Helvetica Neue',Helvetica,Arial,sans-serif;
  --tk-mono:'JetBrains Mono',ui-monospace,Menlo,Consolas,monospace;
  --tk-gut:16px;
  position:relative;
  max-width:1440px;
  margin:0 auto !important;
  padding:0 var(--tk-gut) 96px !important;
  background:var(--tk-bg);
  color:var(--tk-fg) !important;
  font-family:var(--tk-sans) !important;
  font-size:14px;
  line-height:1.3;
  text-align:left;
  -webkit-font-smoothing:antialiased;
  -webkit-text-size-adjust:100%;
  box-sizing:border-box;
}
.tk-cat *,.tk-cat *::before,.tk-cat *::after{box-sizing:border-box}
.tk-cat.tk-cat [hidden]{display:none !important}

/* --- сброс того, что обычно навязывает тема / Elementor --- */
.tk-cat button{
  -webkit-appearance:none;appearance:none;
  font:inherit !important;color:inherit !important;
  background:transparent !important;border:0 !important;border-radius:0 !important;
  box-shadow:none !important;text-shadow:none !important;
  margin:0 !important;padding:0 !important;min-height:0 !important;min-width:0 !important;
  width:auto;height:auto;
  letter-spacing:inherit !important;text-transform:inherit !important;
  line-height:inherit !important;text-decoration:none !important;
  cursor:pointer;-webkit-tap-highlight-color:transparent;
}
.tk-cat a{color:inherit !important;text-decoration:none !important;box-shadow:none !important;-webkit-tap-highlight-color:transparent}
.tk-cat img{display:block;max-width:100% !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;margin:0 !important}
.tk-cat h1,.tk-cat p{margin:0 !important;padding:0 !important}
.tk-cat :focus{outline:none}
.tk-cat :focus-visible{outline:2px solid var(--tk-fg) !important;outline-offset:2px}

/* --- значки кастома --- */
.tk-cat .tk-ic{display:inline-block;flex:none;background:currentColor;font-style:normal}
.tk-cat .tk-ic-sig{width:8px;height:8px;border-radius:50%}
.tk-cat .tk-ic-belt{width:16px;height:4px;border-radius:2px}
.tk-cat .tk-badges{display:inline-flex;align-items:center;gap:6px;color:var(--tk-fg);min-height:8px}

/* =========================================================
   ШАПКА
   ========================================================= */
.tk-cat .tk-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:48px 0 20px;border-bottom:1px solid var(--tk-fg)}
.tk-cat .tk-title{
  font-family:var(--tk-sans) !important;font-size:clamp(40px,8vw,104px) !important;font-weight:900 !important;
  letter-spacing:-.045em !important;line-height:.85 !important;text-transform:uppercase !important;color:var(--tk-fg) !important;
}
.tk-cat .tk-count{font:500 12px/1 var(--tk-mono);text-transform:uppercase;white-space:nowrap;padding-bottom:4px}

/* =========================================================
   ФИЛЬТРЫ — планшет и компьютер (≥768px): липкая полоса
   ========================================================= */
.tk-cat .tk-mbar,.tk-cat .tk-sheet-head,.tk-cat .tk-apply,.tk-cat .tk-backdrop{display:none}

.tk-cat .tk-filters{
  position:sticky;top:var(--tk-top);z-index:30;
  display:flex;flex-wrap:wrap;align-items:center;gap:14px 40px;
  padding:14px 0;background:var(--tk-bg);border-bottom:1px solid var(--tk-fg);
}
.tk-cat .tk-fgroup{position:relative;display:flex;align-items:center;gap:14px;min-width:0}
.tk-cat .tk-flabel{display:flex;align-items:center;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap}
.tk-cat .tk-chips{display:flex;flex-wrap:wrap;gap:4px;min-width:0}
.tk-cat .tk-chip{
  display:inline-flex !important;align-items:center;justify-content:center;gap:8px;flex:none;
  min-width:40px !important;height:36px !important;padding:0 10px !important;
  border:1px solid var(--tk-fg) !important;background:var(--tk-bg) !important;color:var(--tk-fg) !important;
  font:500 13px/1 var(--tk-mono) !important;text-transform:uppercase !important;
  transition:background-color .15s,color .15s;
}
.tk-cat .tk-chip[aria-pressed="true"]{background:var(--tk-fg) !important;color:var(--tk-bg) !important}
@media (hover:hover){
  .tk-cat .tk-chip:hover{background:var(--tk-soft) !important}
  .tk-cat .tk-chip[aria-pressed="true"]:hover{background:#262626 !important}
}
.tk-cat .tk-fnote{font:400 11px/1.3 var(--tk-mono);color:var(--tk-mute);white-space:nowrap}
.tk-cat .tk-factions{margin-left:auto;display:flex;align-items:center}
.tk-cat .tk-reset{font:500 11px/1 var(--tk-mono) !important;text-transform:uppercase !important;text-decoration:underline !important;text-underline-offset:3px;padding:8px 0 !important}

/* подсказка «?» */
.tk-cat .tk-help{
  display:inline-grid !important;place-items:center;flex:none;
  width:20px !important;height:20px !important;margin-left:8px !important;
  border:1px solid currentColor !important;border-radius:50% !important;
  font:600 11px/1 var(--tk-sans) !important;
  position:relative;
}
.tk-cat .tk-help::after{content:"";position:absolute;inset:-12px}  /* большая зона нажатия */
.tk-cat .tk-tip{
  position:absolute;z-index:40;left:0;top:calc(100% + 10px);
  width:min(320px,calc(100vw - 32px));padding:16px 44px 16px 16px;
  background:var(--tk-fg);color:var(--tk-bg);
  font:400 13px/1.5 var(--tk-sans);text-transform:none;letter-spacing:0;
}
.tk-cat .tk-tip p{font:inherit !important;color:inherit !important}
.tk-cat .tk-tip-x{position:absolute !important;top:4px;right:4px;width:36px !important;height:36px !important;font:400 22px/1 var(--tk-sans) !important}

/* =========================================================
   СЕТКА И КАРТОЧКИ
   ========================================================= */
.tk-cat .tk-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-left:1px solid var(--tk-fg)}
.tk-cat .tk-card{
  display:flex !important;flex-direction:column;min-width:0;
  border-right:1px solid var(--tk-fg);border-bottom:1px solid var(--tk-fg);background:var(--tk-bg);
}
.tk-cat .tk-card-img{aspect-ratio:1/1;overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center}
.tk-cat .tk-card-img img{
  width:100% !important;height:100% !important;object-fit:contain !important;padding:14px !important;
  transition:transform .5s cubic-bezier(.25,.46,.45,.94);
}
@media (hover:hover){ .tk-cat .tk-card:hover .tk-card-img img{transform:scale(1.04)} }
.tk-cat .tk-card-meta{display:flex;flex-direction:column;gap:10px;flex:1;padding:12px 14px 14px;border-top:1px solid var(--tk-fg)}
.tk-cat .tk-card-name{
  font-size:15px;font-weight:800;letter-spacing:.02em;line-height:1.15;text-transform:uppercase;
  overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.tk-cat .tk-card-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 8px;margin-top:auto;min-height:16px}
.tk-cat .tk-card-price{margin-left:auto;font:500 13px/1.2 var(--tk-mono);text-align:right;color:var(--tk-fg)}
.tk-cat .tk-card-price .amount,.tk-cat .tk-card-price bdi{white-space:nowrap;color:inherit !important;font:inherit !important}
.tk-cat .tk-card-price del{color:var(--tk-mute) !important;opacity:1 !important;margin-right:6px}
.tk-cat .tk-card-price ins{text-decoration:none !important;background:none !important}
.tk-cat .tk-card-price .screen-reader-text{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.tk-cat .tk-soldout{font:500 11px/1.2 var(--tk-mono);text-transform:uppercase;color:var(--tk-mute)}
.tk-cat .tk-card.is-soldout .tk-card-img img{opacity:.45}

.tk-cat .tk-empty{padding:72px 16px;text-align:center;font:500 13px/1.6 var(--tk-mono);text-transform:uppercase;border-bottom:1px solid var(--tk-fg)}
.tk-cat .tk-empty .tk-reset{margin-top:12px !important}

/* =========================================================
   АДАПТИВ
   ========================================================= */

/* Небольшой ноутбук: 3 колонки */
@media (max-width:1099px){
  .tk-cat .tk-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tk-cat .tk-filters{gap:12px 32px}
}

/* Планшет (768–1023): фильтры остаются полосой, размер-группа на всю ширину */
@media (max-width:1023px){
  .tk-cat .tk-fg-size{flex:1 1 100%;flex-wrap:wrap}
  .tk-cat .tk-fg-size .tk-fnote{flex:1 1 100%}
}

/* Телефон (<768): тонкая липкая полоса + панель фильтров снизу */
@media (max-width:767px){
  .tk-cat{--tk-gut:0px;padding-bottom:64px !important}
  .tk-cat .tk-head{padding:28px 12px 16px;align-items:flex-end}
  .tk-cat .tk-head .tk-count{display:none}

  .tk-cat .tk-mbar{
    display:flex;align-items:stretch;justify-content:space-between;
    position:sticky;top:var(--tk-top);z-index:30;height:52px;
    background:var(--tk-bg);border-bottom:1px solid var(--tk-fg);
  }
  .tk-cat .tk-ftoggle{
    display:flex !important;align-items:center;gap:10px;height:100% !important;padding:0 12px !important;
    font:800 12px/1 var(--tk-sans) !important;letter-spacing:.14em !important;text-transform:uppercase !important;
  }
  .tk-cat .tk-ftoggle-ic{position:relative;width:16px;height:10px;border-top:1.5px solid currentColor;border-bottom:1.5px solid currentColor}
  .tk-cat .tk-ftoggle-ic::after{content:"";position:absolute;left:3px;right:3px;top:50%;border-top:1.5px solid currentColor;transform:translateY(-50%)}
  .tk-cat .tk-ftoggle-n:not(:empty){display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;background:var(--tk-fg);color:var(--tk-bg);font:500 11px/1 var(--tk-mono);letter-spacing:0}
  .tk-cat .tk-mbar .tk-count{display:flex;align-items:center;padding:0 12px;font-size:11px}

  .tk-cat .tk-backdrop{
    display:block;position:fixed;inset:0;z-index:99998;background:rgba(0,0,0,.45);
    opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s;
  }
  .tk-cat .tk-filters{
    position:fixed;z-index:99999;left:0;right:0;bottom:0;top:auto;
    display:block;max-height:88vh;max-height:88dvh;overflow-y:auto;overscroll-behavior:contain;
    padding:0 16px;background:var(--tk-bg);border-top:1px solid var(--tk-fg);border-bottom:0;
    transform:translateY(100%);visibility:hidden;
    transition:transform .3s cubic-bezier(.2,.8,.2,1),visibility .3s;
  }
  .tk-cat.is-open .tk-backdrop{opacity:1;visibility:visible}
  .tk-cat.is-open .tk-filters{transform:none;visibility:visible}

  .tk-cat .tk-sheet-head{
    display:flex;align-items:center;justify-content:space-between;
    position:sticky;top:0;z-index:2;height:56px;background:var(--tk-bg);
    border-bottom:1px solid var(--tk-fg);font:800 13px/1 var(--tk-sans);letter-spacing:.14em;text-transform:uppercase;
  }
  .tk-cat .tk-sheet-close{width:44px !important;height:44px !important;margin-right:-12px !important;font:400 26px/1 var(--tk-sans) !important}

  .tk-cat .tk-fgroup,.tk-cat .tk-fg-size{display:block;padding:20px 0;border-bottom:1px solid var(--tk-soft)}
  .tk-cat .tk-fg-custom{border-bottom:0}
  .tk-cat .tk-flabel{margin-bottom:12px}
  .tk-cat .tk-fg-size .tk-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
  .tk-cat .tk-fg-custom .tk-chips{display:grid;grid-template-columns:1fr 1fr;gap:4px}
  .tk-cat .tk-chip{width:100% !important;height:48px !important;font-size:14px !important}
  .tk-cat .tk-fg-size .tk-fnote{margin-top:10px;white-space:normal}
  .tk-cat .tk-tip{position:relative;top:auto;left:auto;width:100%;margin:0 0 12px}

  .tk-cat .tk-factions{
    position:sticky;bottom:0;z-index:2;display:flex;gap:16px;margin:0 -16px !important;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--tk-bg);border-top:1px solid var(--tk-fg);
  }
  .tk-cat .tk-apply{
    display:block !important;flex:1;height:52px !important;
    background:var(--tk-fg) !important;color:var(--tk-bg) !important;
    font:800 13px/1 var(--tk-sans) !important;letter-spacing:.12em !important;text-transform:uppercase !important;
  }
  .tk-cat .tk-reset{padding:12px 0 !important}

  .tk-cat .tk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tk-cat .tk-card-img img{padding:8px !important}
  .tk-cat .tk-card-meta{gap:8px;padding:10px 10px 12px}
  .tk-cat .tk-card-name{font-size:13px}
  .tk-cat .tk-card-price{font-size:12px}
}

/* Большой телефон в горизонтали / маленький планшет: 3 колонки */
@media (min-width:600px) and (max-width:767px){
  .tk-cat .tk-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tk-cat .tk-fg-size .tk-chips{grid-template-columns:repeat(7,minmax(0,1fr))}
}

/* Узкие телефоны (≤359px, напр. iPhone SE 1-го поколения) */
@media (max-width:359px){
  .tk-cat .tk-title{font-size:36px !important}
  .tk-cat .tk-card-meta{padding:8px 8px 10px}
  .tk-cat .tk-card-name{font-size:12px}
  .tk-cat .tk-card-price{font-size:11px}
  .tk-cat .tk-badges{gap:4px}
  .tk-cat .tk-fg-size .tk-chips{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* =========================================================
   ЗИМА: чёрная плашка «❄ WINTER» в правом верхнем углу фото + чип в фильтре
   ========================================================= */
.tk-cat .tk-card-img{position:relative}
.tk-cat .tk-winter{
  position:absolute;top:10px;right:10px;z-index:2;
  display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 8px 0 6px;
  background:#000;color:#fff;pointer-events:none;
  font:500 10px/1 var(--tk-mono) !important;letter-spacing:.06em;text-transform:uppercase;
}
.tk-cat .tk-winter span{font-family:var(--tk-mono) !important;color:#fff !important}
.tk-cat .tk-snow{display:block;flex:none;width:13px;height:13px}
.tk-cat .tk-chip-w .tk-snow{width:14px;height:14px}
@media (max-width:767px){
  .tk-cat .tk-winter{top:6px;right:6px;height:22px;padding:0 6px 0 5px;gap:5px;font-size:9px !important}
  .tk-cat .tk-snow{width:12px;height:12px}
  .tk-cat .tk-fg-season{border-bottom:0}
  .tk-cat .tk-fg-season .tk-chips{display:grid;grid-template-columns:1fr 1fr;gap:4px}
  .tk-cat .tk-fg-custom{border-bottom:1px solid var(--tk-soft)}
}

/* =========================================================
   ЖЁСТКАЯ ФИКСАЦИЯ ШРИФТОВ — тема/Elementor подменяют шрифт у span/a/h2
   ========================================================= */
.tk-cat .tk-title,.tk-cat .tk-best-title,.tk-cat .tk-card-name,.tk-cat .tk-flabel,
.tk-cat .tk-apply,.tk-cat .tk-ftoggle,.tk-cat .tk-sheet-head,.tk-cat .tk-tip,.tk-cat .tk-tip p{font-family:var(--tk-sans) !important}
.tk-cat .tk-card-price,.tk-cat .tk-card-price *,.tk-cat .tk-count,.tk-cat .tk-fnote,.tk-cat .tk-reset,
.tk-cat .tk-soldout,.tk-cat .tk-legend,.tk-cat .tk-legend span,.tk-cat .tk-empty{font-family:var(--tk-mono) !important}
.tk-cat .tk-card-name{font-weight:800 !important;text-transform:uppercase !important;color:var(--tk-fg) !important}
.tk-cat .tk-card-price,.tk-cat .tk-card-price *{font-weight:500 !important;font-size:inherit !important}

/* =========================================================
   БЕСТСЕЛЛЕРЫ НА ГЛАВНОЙ [teoky_bestsellers]
   Под стиль главной teoky.com: без чёрных линий, контейнер 1200px,
   карточки с едва заметной рамкой как в лукбуках (рамка 5%), зазор 15px,
   заголовок шрифтом сайта (BASKVILL), подписи Helvetica Neue,
   ссылка внизу — как «Discover more» с бегущей линией.
   ========================================================= */
.tk-cat.tk-best{
  --tk-sans:'Helvetica Neue',Helvetica,Arial,sans-serif;
  --tk-mono:'Helvetica Neue',Helvetica,Arial,sans-serif;
  --tk-serif:BASKVILL,'Libre Baskerville',Baskerville,'Baskerville Old Face','Times New Roman',serif;
  max-width:1200px;padding:0 0 80px !important;background:transparent;
}
.tk-cat.tk-best .tk-best-head{padding:0;border:0}
.tk-cat.tk-best .tk-best-title{
  margin:0 !important;padding:0 !important;
  font-family:var(--tk-serif) !important;font-size:40px !important;font-weight:800 !important;
  line-height:1.1 !important;letter-spacing:-.5px !important;text-transform:uppercase !important;color:#161616 !important;
}
.tk-cat.tk-best .tk-legend{
  position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:8px 22px;
  padding:14px 0 24px;color:#888;
  font-size:12px !important;font-weight:400;line-height:1;text-transform:uppercase;letter-spacing:2px;
}
.tk-cat.tk-best .tk-legend-item{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.tk-cat.tk-best .tk-legend .tk-ic{color:#000}
.tk-cat.tk-best .tk-legend .tk-help{margin-left:-8px !important;color:#000 !important;letter-spacing:0 !important}
.tk-cat.tk-best .tk-tip{top:calc(100% - 14px);letter-spacing:0}

.tk-cat.tk-best .tk-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 15px;border:0}
.tk-cat.tk-best .tk-card{border:0;background:transparent}
.tk-cat.tk-best .tk-card-img{background:#fff;border:1px solid rgba(0,0,0,.05)}
.tk-cat.tk-best .tk-card-img img{padding:10% !important}
.tk-cat.tk-best .tk-card-meta{
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"name" "badges" "price";
  gap:8px;justify-items:start;padding:14px 0 0;border:0;
}
.tk-cat.tk-best .tk-card-row{display:contents}
.tk-cat.tk-best .tk-card-name{grid-area:name;font-size:14px;letter-spacing:.5px;font-weight:700 !important}
.tk-cat.tk-best .tk-card-price{grid-area:price;margin:0 !important;text-align:left !important;justify-self:start;font-size:14px;color:#333;letter-spacing:.3px}
.tk-cat.tk-best .tk-card-price,.tk-cat.tk-best .tk-card-price *{font-weight:400 !important}
.tk-cat.tk-best .tk-badges{grid-area:badges}
.tk-cat.tk-best .tk-badges:empty{display:none}

.tk-cat.tk-best .tk-best-more{display:flex;justify-content:center;margin-top:56px}
.tk-cat.tk-best .tk-best-cta{
  position:relative;display:inline-block;padding:0 0 10px;color:#000 !important;
  font-family:var(--tk-sans) !important;font-size:16px;font-weight:700;letter-spacing:3px;text-transform:uppercase;
}
.tk-cat.tk-best .tk-best-cta::after{
  content:"";position:absolute;bottom:0;left:0;width:30%;height:3px;background:#000;
  animation:tk-line-travel 2s ease-in-out infinite alternate;
}
@keyframes tk-line-travel{0%{left:0}100%{left:70%}}

@media (max-width:767px){
  .tk-cat.tk-best .tk-best-head{padding:0 16px}
  .tk-cat.tk-best .tk-best-title{font-size:28.8px !important}
  .tk-cat.tk-best .tk-legend{padding:12px 16px 20px;gap:8px 18px;font-size:11px !important;letter-spacing:1.5px}
  .tk-cat.tk-best .tk-tip{position:absolute;top:calc(100% - 12px);left:16px;right:16px;width:auto;max-width:360px;margin:0}
  .tk-cat.tk-best{padding-bottom:56px !important}
  .tk-cat.tk-best .tk-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 10px;padding:0 16px}
  .tk-cat.tk-best .tk-card-img img{padding:8% !important}
  .tk-cat.tk-best .tk-card-meta{gap:6px;padding:10px 0 0}
  .tk-cat.tk-best .tk-card-name{font-size:12px}
  .tk-cat.tk-best .tk-card-price{font-size:12px;color:#666}
  .tk-cat.tk-best .tk-best-more{margin-top:40px}
  .tk-cat.tk-best .tk-best-cta{font-size:14px}
}
@media (prefers-reduced-motion:reduce){ .tk-cat.tk-best .tk-best-cta::after{animation:none} }

/* блокировка прокрутки страницы, пока открыта панель фильтров */
html.tk-lock,html.tk-lock body{overflow:hidden !important}

@media (prefers-reduced-motion:reduce){
  .tk-cat *{transition:none !important}
}
