/* ==========================================================================
   Mağaza: filtreler, mini sepet, yapışkan sepet, hızlı önizleme, anlık arama
   ========================================================================== */

/* ---------- Sağdan açılan çekmece ---------- */
.tsec-drawer--right .tsec-drawer__panel {
	inset: 0 0 0 auto;
	width: min(420px, 92vw);
	animation-name: tsec-slide-in-right;
}
@keyframes tsec-slide-in-right { from { transform: translateX(100%); } }

/* ---------- Filtre çubuğu ---------- */
.tsec-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.tsec-filterbar__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 18px;
	border: 1px solid #000;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.tsec-filterbar__btn:hover { background: #000; color: #fff; }
.tsec-filterbar__count { min-width: 20px; height: 20px; border-radius: 10px; background: var(--tsec-accent); color: #fff; font-size: 11px; line-height: 20px; text-align: center; }

.tsec-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tsec-chips a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	background: #f3f1ee;
	color: #000;
	font-size: 13px;
	text-decoration: none;
}
.tsec-chips a:hover { background: #e8e4df; }
.tsec-chips__clear { background: none !important; text-decoration: underline !important; }

/* ---------- Filtre paneli ---------- */
.tsec-filters { padding: 0 !important; }
.tsec-filters__form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tsec-filters__body { flex: 1; overflow-y: auto; padding: 4px 20px 20px; }
.tsec-filters__group { border-bottom: 1px solid var(--tsec-line); }
.tsec-filters__group summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	cursor: pointer;
	list-style: none;
}
.tsec-filters__group summary::-webkit-details-marker { display: none; }
.tsec-filters__group summary::after { content: "+"; font-size: 20px; font-weight: 400; }
.tsec-filters__group[open] summary::after { content: "–"; }
.tsec-filters__group summary em { margin-inline: auto 10px; padding: 1px 8px; border-radius: 10px; background: var(--tsec-accent); color: #fff; font-size: 11px; font-style: normal; }

.tsec-filters__links, .tsec-filters__options { display: grid; gap: 2px; margin: 0 0 14px; padding: 0; list-style: none; }
.tsec-filters__links a { display: flex; justify-content: space-between; padding: 7px 0; color: #000; font-size: 14px; text-decoration: none; }
.tsec-filters__links a:hover { color: var(--tsec-accent); }
.tsec-filters__links span, .tsec-filters__count { color: #999; font-size: 12px; }

.tsec-filters__options label { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; cursor: pointer; }
.tsec-filters__options input { width: 18px; height: 18px; margin: 0; accent-color: #000; }
.tsec-filters__name { flex: 1; }
.tsec-filters__options--colors { grid-template-columns: 1fr 1fr; column-gap: 12px; }

.tsec-swatch { width: 18px; height: 18px; flex: none; border-radius: 50%; background: #ddd; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.tsec-swatch--multi { background: conic-gradient(#e53935, #fb8c00, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935); }

.tsec-filters__price { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 10px; }
.tsec-filters__price label { flex: 1; display: grid; gap: 4px; font-size: 12px; color: #777; }
.tsec-filters__price input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #ddd; font: inherit; font-size: 14px; }
.tsec-filters__price input:focus { border-color: #000; outline: 0; }
.tsec-filters__price > span { padding-bottom: 10px; }
.tsec-filters__presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tsec-filters__presets a { padding: 6px 12px; border: 1px solid #e3e0dc; border-radius: 999px; color: #000; font-size: 12px; text-decoration: none; }
.tsec-filters__presets a:hover { border-color: #000; }

.tsec-filters__toggle { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.tsec-filters__toggle input { width: 18px; height: 18px; accent-color: #000; }

.tsec-filters__foot { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--tsec-line); background: #fff; }
.tsec-filters__foot .button { flex: 1; min-height: 48px; }
.tsec-filters__reset { color: #000; font-size: 14px; }

/* ---------- Mini sepet ---------- */
.tsec-cart-drawer { padding: 0 !important; }
.tsec-cart-drawer__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tsec-cart-drawer .widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 16px 20px; }
.tsec-cart-drawer .tsec-ship-bar { margin-bottom: 12px; }
.tsec-cart-drawer .woocommerce-mini-cart { flex: 1; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.tsec-cart-drawer .woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 70px 1fr;
	column-gap: 12px;
	padding: 12px 28px 12px 0;
	border-bottom: 1px solid var(--tsec-line);
	font-size: 13px;
	line-height: 1.4;
}
.tsec-cart-drawer .woocommerce-mini-cart-item > a:not(.remove) { display: contents; color: #000; font-weight: 600; text-decoration: none; }
.tsec-cart-drawer .woocommerce-mini-cart-item img { grid-row: span 3; width: 70px !important; height: 94px !important; object-fit: cover; margin: 0 !important; }
.tsec-cart-drawer .woocommerce-mini-cart-item .quantity { color: #666; }
.tsec-cart-drawer .woocommerce-mini-cart-item .remove { position: absolute; top: 10px; right: 0; color: #999 !important; font-size: 20px; text-decoration: none; }
.tsec-cart-drawer .woocommerce-mini-cart-item .remove:hover { color: #c4161c !important; background: none; }
.tsec-cart-drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 14px 0 10px; font-size: 16px; }
.tsec-cart-drawer .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.tsec-cart-drawer .woocommerce-mini-cart__buttons .button { min-height: 48px; margin: 0 !important; display: flex; align-items: center; justify-content: center; }
.tsec-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout) { background: #fff; color: #000; border: 1px solid #000; }
.tsec-cart-drawer .woocommerce-mini-cart__empty-message { padding: 40px 0; text-align: center; color: #777; }

/* ---------- Yapışkan sepete ekle ---------- */
.tsec-sticky-cart {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 80;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px max(16px, calc((100vw - 1200px) / 2));
	background: rgba(255, 255, 255, .96);
	border-top: 1px solid var(--tsec-line);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, .06);
	backdrop-filter: blur(10px);
	transform: translateY(110%);
	transition: transform .3s ease;
}
.tsec-sticky-cart.is-visible { transform: none; }
.tsec-sticky-cart__product { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tsec-sticky-cart__product img { width: 44px !important; height: 58px !important; object-fit: cover; flex: none; }
.tsec-sticky-cart__product div { display: grid; min-width: 0; }
.tsec-sticky-cart__name { overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.tsec-sticky-cart__price { font-size: 14px; }
.tsec-sticky-cart__price del { color: #999; font-size: 12px; }
.tsec-sticky-cart__price ins { text-decoration: none; color: #c4161c; }
.tsec-sticky-cart__btn { flex: none; min-height: 46px; padding-inline: 28px !important; }
body.tsec-has-sticky-cart .tsec-whatsapp-float,
body.tsec-has-sticky-cart .tsec-sa { bottom: 86px; }

/* ---------- Hızlı önizleme ---------- */
.tsec-qv-btn {
	position: absolute;
	left: 50%;
	bottom: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .95);
	color: #000;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
	cursor: pointer;
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity .2s ease, transform .2s ease;
}
.products .product:hover .tsec-qv-btn, .tsec-qv-btn:focus-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .tsec-qv-btn { display: none; } }

.tsec-qv {
	width: min(960px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: 16px;
	overflow: auto;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.tsec-qv::backdrop { background: rgba(0, 0, 0, .45); backdrop-filter: blur(2px); }
.tsec-qv[open] { animation: tsec-qv-in .22s ease; }
@keyframes tsec-qv-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.tsec-qv__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #000; font-size: 26px; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); cursor: pointer; }
.tsec-qv__loading { padding: 80px 20px; text-align: center; color: #777; }
.tsec-qv__grid { display: grid; grid-template-columns: 1fr 1fr; }
.tsec-qv__gallery { min-width: 0; background: #f6f5f3; }
.tsec-qv__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tsec-qv__track::-webkit-scrollbar { display: none; }
.tsec-qv__track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.tsec-qv__track img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; }
.tsec-qv__thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.tsec-qv__thumbs button { flex: none; width: 52px; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; }
.tsec-qv__thumbs button:hover { border-color: #000; }
.tsec-qv__thumbs img { display: block; width: 100%; height: 64px; object-fit: cover; }
.tsec-qv__info { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px; }
.tsec-qv__info h2 { margin: 0; padding-right: 36px; font-size: 20px; line-height: 1.35; }
.tsec-qv__price { font-size: 20px; font-weight: 600; }
.tsec-qv__price del { color: #999; font-size: 15px; font-weight: 400; }
.tsec-qv__price ins { text-decoration: none; color: #c4161c; }
.tsec-qv__text { margin: 0; color: #555; font-size: 14px; line-height: 1.6; }
.tsec-qv__attrs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.tsec-qv__attrs dt { color: #777; }
.tsec-qv__attrs dd { margin: 0; }
.tsec-qv__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tsec-qv__actions .button { min-height: 48px; padding-inline: 28px !important; display: inline-flex; align-items: center; }
.tsec-qv__actions .added_to_cart { display: none; }
.tsec-qv__stock { padding: 12px 0; color: #c4161c; font-weight: 600; }
.tsec-qv__more { margin-top: auto; color: #000; font-size: 14px; font-weight: 600; }

/* ---------- Anlık arama ---------- */
.tsec-search { padding-bottom: 0; }
.tsec-search__results {
	max-width: 760px;
	max-height: min(70vh, 560px);
	margin: 10px auto 0;
	padding: 6px 0 12px;
	overflow-y: auto;
	border-top: 1px solid var(--tsec-line);
}
.tsec-search__label { margin: 12px 0 6px; color: #999; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tsec-search__cat, .tsec-search__item, .tsec-search__all { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: #000; text-decoration: none; }
.tsec-search__cat { justify-content: space-between; font-weight: 600; }
.tsec-search__cat span { color: #999; font-size: 12px; font-weight: 400; }
.tsec-search__item img { width: 44px; height: 58px; object-fit: cover; flex: none; background: #f6f5f3; }
.tsec-search__item > span { display: grid; gap: 2px; }
.tsec-search__name { font-size: 14px; line-height: 1.35; }
.tsec-search__item strong { font-size: 13px; }
.tsec-search__all { justify-content: center; margin-top: 6px; font-size: 14px; font-weight: 600; text-decoration: underline; }
.tsec-search__results [aria-selected="true"], .tsec-search__results a:hover { background: #f5f3f0; }
.tsec-search__empty { padding: 18px 10px; color: #777; }
.tsec-search__results[aria-busy="true"] { opacity: .6; }

.tsec-voice { color: #000; }
.tsec-voice.is-listening { color: #fff; background: #c4161c; border-radius: 50%; animation: tsec-pulse 1.2s infinite; }
@keyframes tsec-pulse { 0% { box-shadow: 0 0 0 0 rgba(196, 22, 28, .45); } 100% { box-shadow: 0 0 0 14px rgba(196, 22, 28, 0); } }

@media (max-width: 767px) {
	.tsec-qv { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
	.tsec-qv__grid { grid-template-columns: 1fr; }
	.tsec-qv__track img { aspect-ratio: 4 / 5; }
	.tsec-qv__info { padding: 20px; }
	.tsec-sticky-cart__btn { padding-inline: 18px !important; }
	.tsec-filters__options--colors { grid-template-columns: 1fr; }
}
