/* =========================================================================
   teylo.store – nová stránka obchodu
   ========================================================================= */
.teylo-shop {
	--ts-bg: #fff;
	--ts-tile: #f3eee6;
	--ts-ink: #000;
	--ts-muted: #6b625a;
	--ts-accent: #c05530;
	--ts-line: #e7e1d7;
	--ts-pad: clamp(12px, 1.4vw, 20px);
	background: var(--ts-bg);
	font-family: Lato, sans-serif;
	color: var(--ts-ink);
	padding-bottom: 60px;
}

.teylo-shop-body .shop-page-title { display: none; }
.teylo-shop-body .header-wrapper.stuck, .teylo-shop-body .header-wrapper.stuck .header-bg-color { background-color: #fff !important; opacity: 1 !important; }

/* filter a radenie v jednom paneli */
.ts-fs-toggle { margin: 0; padding: 0; min-height: 0; background: none; border: 0; font-family: Lato, sans-serif; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ts-ink); cursor: pointer; }
.ts-fs-toggle:hover { text-decoration: underline; }
.ts-fs-panel { position: absolute; right: var(--ts-pad); top: calc(100% + 1px); width: min(440px, calc(100vw - 24px)); padding: 18px; background: #fff; border: 1px solid var(--ts-line); box-shadow: 0 14px 40px rgba(0, 0, 0, .08); z-index: 40; }
.ts-fs-panel__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ts-fs-panel__label { font-size: 13px; font-weight: 700; }
.ts-fs-panel .dd-filter-toggle { display: none; }
.ts-fs-panel .dd-filter-panel { display: block !important; position: static; width: auto; margin: 0; padding: 0; border: 0; box-shadow: none; }
.ts-fs-panel .dd-filter-panel[hidden] { display: block !important; }

/* --- hlavička ---------------------------------------------------------- */
.ts-head { padding: clamp(20px, 3vw, 40px) var(--ts-pad) 18px; max-width: 1100px; }
.ts-title { margin: 0 0 10px; font-family: Cormorant, serif; font-weight: 600; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.05; letter-spacing: -.01em; }
.ts-title sup { font-family: Lato, sans-serif; font-size: .32em; font-weight: 700; margin-left: 4px; vertical-align: super; color: var(--ts-muted); }
.ts-intro { margin: 0 0 18px; max-width: 62em; font-size: 14px; line-height: 1.55; color: #333; }
.ts-pills { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ts-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ts-muted); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s; }
.ts-pill i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); display: inline-block; }
.ts-pill sup { font-size: 9px; margin-left: 1px; }
.ts-pill:hover { color: var(--ts-ink); }
.ts-pill.is-active { color: var(--ts-ink); font-weight: 700; border-bottom-color: var(--ts-ink); }

/* --- lookbook ---------------------------------------------------------- */
.ts-look { margin: 8px 0 26px; }
.ts-look__track { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--ts-pad); }
.ts-look__track::-webkit-scrollbar { display: none; }
.ts-look__card { position: relative; flex: 0 0 clamp(200px, 19vw, 300px); aspect-ratio: 4 / 5; margin: 0; overflow: hidden; scroll-snap-align: start; background: var(--ts-tile); }
.ts-look__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.ts-look__card:hover img { transform: scale(1.04); }
.ts-look__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55)); }
.ts-look__card figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; color: #fff; display: flex; flex-direction: column; gap: 2px; }
.ts-look__card strong { font-family: Cormorant, serif; font-size: 22px; font-weight: 600; line-height: 1.1; }
.ts-look__card span { font-size: 12px; opacity: .9; }

/* --- lišta ------------------------------------------------------------- */
.ts-bar { position: sticky; top: var(--ts-sticky, 0px); z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px var(--ts-pad); background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--ts-line); border-bottom: 1px solid var(--ts-line); }
.ts-density { display: flex; gap: 10px; }
.ts-density button { display: inline-flex; gap: 2px; margin: 0; padding: 4px; min-height: 0; background: none; border: 0; cursor: pointer; opacity: .35; line-height: 1; }
.ts-density button span { width: 5px; height: 12px; background: var(--ts-ink); display: block; border-radius: 1px; }
.ts-density button.is-active, .ts-density button:hover { opacity: 1; }
.ts-bar__right { display: flex; align-items: center; gap: 14px; }
.ts-bar .woocommerce-ordering { margin: 0; }
.ts-bar .woocommerce-ordering select { margin: 0; height: 36px; padding: 0 28px 0 10px; font-size: 13px; border: 1px solid var(--ts-line); border-radius: 999px; background-color: #fff; box-shadow: none; }
.ts-bar .dd-filter-wrap { margin: 0; position: relative; }
.ts-bar .dd-filter-toggle { padding: 9px 16px; box-shadow: none; }
.ts-bar .dd-filter-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(420px, 90vw); z-index: 30; }

/* --- mriežka ----------------------------------------------------------- */
.ts-grid { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 0 1px; margin: 0; padding: 0; list-style: none; background: var(--ts-line); }
.ts-grid[data-cols="2"] { --cols: 2; }
.ts-grid[data-cols="3"] { --cols: 3; }
.ts-card { margin: 0; padding: 0 0 22px; background: var(--ts-bg); list-style: none; }
.ts-card__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #f5f4f2; }
.ts-card__img { position: absolute; inset: 14% 10%; width: 80%; height: 72%; object-fit: contain; transition: opacity .4s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.ts-card__img--hover { opacity: 0; }
.ts-card:hover .ts-card__img--hover { opacity: 1; }
.ts-card.has-color .ts-card__img--hover { display: none; }
.ts-card:hover .ts-card__img { transform: scale(1.03); }
.ts-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ts-accent); }
.ts-card__plus { position: absolute; right: 10px; bottom: 8px; z-index: 2; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; color: var(--ts-ink); background: rgba(255, 255, 255, .85); border-radius: 50%; opacity: 0; transition: opacity .25s; }
.ts-card:hover .ts-card__plus { opacity: 1; }
.ts-card__info { display: flex; justify-content: space-between; gap: 10px; padding: 12px var(--ts-pad) 0; }
.ts-card__name { font-family: Lato, sans-serif; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ts-ink); text-decoration: none; }
.ts-card__name:hover { color: var(--ts-accent); }
.ts-card__price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.ts-card__price del { opacity: .5; font-weight: 400; margin-right: 4px; }
.ts-card__price ins { text-decoration: none; color: var(--ts-accent); }
.ts-card__sub { padding: 2px var(--ts-pad) 0; font-size: 12px; color: var(--ts-muted); }
.ts-card__colors { display: flex; align-items: center; gap: 5px; padding: 8px var(--ts-pad) 0; }
.teylo-shop .ts-swatch {
	box-sizing: border-box; display: inline-block; flex: 0 0 13px;
	width: 13px !important; height: 13px !important; min-width: 0 !important; min-height: 0 !important;
	margin: 0 !important; padding: 0 !important; line-height: 0; font-size: 0; vertical-align: middle;
	border-radius: 50% !important; border: 1px solid rgba(0, 0, 0, .3); cursor: pointer; outline: none;
	transition: transform .15s, box-shadow .15s;
}
.teylo-shop .ts-swatch:hover { transform: scale(1.25); }
.teylo-shop .ts-swatch:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ts-accent); }
.teylo-shop .ts-swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ts-ink); }
.ts-card__colors span { margin-left: 4px; font-size: 12px; color: var(--ts-muted); }

/* --- stránkovanie ------------------------------------------------------ */
.ts-pagination { display: flex; justify-content: center; gap: 6px; padding: 36px var(--ts-pad) 0; }
.ts-pagination .page-numbers { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--ts-line); border-radius: 999px; color: var(--ts-ink); text-decoration: none; font-size: 14px; }
.ts-pagination .page-numbers.current { background: var(--ts-ink); color: #fff; border-color: var(--ts-ink); }
.ts-pagination a.page-numbers:hover { border-color: var(--ts-ink); }
.ts-empty { padding: 40px var(--ts-pad); }

/* --- mobil ------------------------------------------------------------- */
@media (max-width: 849px) {
	.ts-grid, .ts-grid[data-cols="3"], .ts-grid[data-cols="4"] { --cols: 2; }
	.ts-grid[data-cols="1"] { --cols: 1; }
	.ts-density button[data-cols="3"], .ts-density button[data-cols="4"] { display: none; }
	.ts-density.is-mobile button[data-cols="1"] { display: inline-flex; }
	.ts-bar .woocommerce-ordering select { max-width: 150px; }
	.ts-card__info { flex-direction: column; gap: 2px; }
	.ts-card__plus { opacity: 1; }
	.ts-look__card { flex-basis: 62vw; }
}
