/**
 * Mağaza sayfası — eticaret-v1 (anasayfa ile uyumlu)
 */

body.eticaret-v1.trail-theme.post-type-archive-product,
body.eticaret-v1.trail-theme.tax-product_cat,
body.eticaret-v1.trail-theme.tax-product_tag {
	background: #fff;
	font-family: var(--tr-font-sans, 'Lexend', system-ui, sans-serif);
	color: var(--tr-body, #6b7280);
}

/* Hero — Redux breadcrumb_bg, overlay, 200px + dikey ortalı içerik */
body.eticaret-v1.trail-theme .av-shop-hero.kececidigital-shop-hero {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	background-position: center !important;
	background-size: cover !important;
}

body.eticaret-v1.trail-theme .av-shop-hero .av-shop-page__inner {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	height: 100% !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.eticaret-v1.trail-theme .av-shop-hero .av-shop-hero__content {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
}

body.eticaret-v1.trail-theme .av-shop-hero .av-shop-hero__overlay {
	/* Renk ve opaklık inline: --kececidigital-breadcrumb-overlay / -opacity */
	pointer-events: none;
}

body.eticaret-v1.trail-theme .av-shop-hero h1 {
	max-width: 720px;
	margin: 0 0 12px !important;
	font-family: var(--tr-font-sans, 'Lexend', system-ui, sans-serif) !important;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.03em !important;
	color: inherit !important;
	text-shadow: none !important;
}

body.eticaret-v1.trail-theme .av-shop-hero .av-shop-hero__desc {
	max-width: 560px;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
}

body.eticaret-v1.trail-theme .av-shop-hero .breadcrumb,
body.eticaret-v1.trail-theme .av-shop-hero .breadcrumb a,
body.eticaret-v1.trail-theme .av-shop-hero .breadcrumb .breadcrumb__current,
body.eticaret-v1.trail-theme .av-shop-hero .breadcrumb .breadcrumb__sep {
	color: inherit !important;
}

body.eticaret-v1.trail-theme .av-shop-hero .breadcrumb a:hover {
	color: var(--tr-terra, var(--kececidigital-link)) !important;
}

/* Main layout — anasayfa bölümleri ile aynı genişlik (1480px) */
body.eticaret-v1.trail-theme .av-shop-hero .av-shop-page__inner,
body.eticaret-v1.trail-theme .av-shop-page__main {
	max-width: 1480px !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 16px !important;
	padding-right: 16px !important;
	box-sizing: border-box !important;
}

@media (min-width: 640px) {
	body.eticaret-v1.trail-theme .av-shop-hero .av-shop-page__inner,
	body.eticaret-v1.trail-theme .av-shop-page__main {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}
}

@media (min-width: 1024px) {
	body.eticaret-v1.trail-theme .av-shop-hero .av-shop-page__inner,
	body.eticaret-v1.trail-theme .av-shop-page__main {
		padding-left: 32px !important;
		padding-right: 32px !important;
	}
}

body.eticaret-v1.trail-theme .av-shop-page__main {
	padding-top: 32px !important;
	padding-bottom: 64px !important;
}

body.eticaret-v1.trail-theme .av-shop-page__main.tr-container {
	max-width: 1480px !important;
}

body.eticaret-v1.trail-theme .sa-shop-layout {
	gap: 28px;
	align-items: flex-start;
}

/* Toolbar */
body.eticaret-v1.trail-theme .av-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin-bottom: 24px;
}

body.eticaret-v1.trail-theme .woocommerce .woocommerce-result-count,
body.eticaret-v1.trail-theme .woocommerce .woocommerce-ordering {
	margin: 0;
}

body.eticaret-v1.trail-theme .woocommerce .woocommerce-result-count {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--tr-border, #e5e7eb);
	border-radius: 999px;
	background: #f9fafb;
	color: var(--tr-body, #6b7280);
	font-size: 13px;
	font-weight: 600;
}

body.eticaret-v1.trail-theme .woocommerce .woocommerce-ordering select {
	min-height: 40px;
	padding: 0 36px 0 14px;
	border: 1px solid var(--tr-border, #e5e7eb);
	border-radius: 999px;
	background-color: #fff;
	color: var(--av-primary, #222);
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	box-shadow: none;
}

body.eticaret-v1.trail-theme .sa-sidebar-open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--av-primary, #222);
	border-radius: 999px;
	background: var(--av-primary, #222);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	box-shadow: none;
}

body.eticaret-v1.trail-theme .sa-sidebar-open:hover {
	background: var(--av-accent, #ef4444);
	border-color: var(--av-accent, #ef4444);
	color: #fff;
}

/* Product grid — same as homepage recommended */
body.eticaret-v1.trail-theme .sa-shop-products ul.products.av-shop-grid__list {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 16px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	clear: both;
}

@media (min-width: 768px) {
	body.eticaret-v1.trail-theme .sa-shop-products ul.products.av-shop-grid__list {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 18px !important;
	}
}

@media (min-width: 992px) {
	body.eticaret-v1.trail-theme .sa-shop-products ul.products.av-shop-grid__list {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 20px !important;
	}
}

body.eticaret-v1.trail-theme .sa-shop-products ul.products li.av-shop-grid__item {
	position: relative !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	list-style: none !important;
}

body.eticaret-v1.trail-theme .sa-shop-products ul.products li.av-shop-grid__item::before {
	display: none !important;
}

/* Ürün kartı — anasayfa önerilen grid ile aynı */
body.eticaret-v1.trail-theme .sa-shop-products .av-product-card--recommended {
	position: static !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 100% !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-card--recommended .av-product-card__link {
	display: block !important;
	color: inherit !important;
	text-decoration: none !important;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-card__visual {
	position: relative !important;
	width: 100% !important;
	flex: 0 0 auto !important;
}

/* Favori — kartın sağ üst köşesi (eski konum) */
body.eticaret-v1.trail-theme .sa-shop-products li.av-shop-grid__item .kd-favorite-btn {
	position: absolute !important;
	top: 20px !important;
	right: 20px !important;
	left: auto !important;
	z-index: 6 !important;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-card__inner {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	padding: 12px !important;
	border: 1px solid #ebebeb !important;
	border-radius: 12px !important;
	background: #fff !important;
	box-sizing: border-box !important;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-card--recommended:hover .av-product-card__inner {
	transform: translateY(-3px) !important;
	border-color: #e0e0e0 !important;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-card__media {
	display: block !important;
	position: relative !important;
	width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	background: #f2f2f2 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-card__img,
body.eticaret-v1.trail-theme .sa-shop-products .av-product-card__media img {
	image-rendering: auto;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-card__img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	transition: transform 0.35s ease !important;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-card--recommended:hover .av-product-card__img {
	transform: scale(1.03) !important;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-badge {
	position: absolute !important;
	top: 8px !important;
	left: 8px !important;
	z-index: 2 !important;
	padding: 4px 7px !important;
	border-radius: 4px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	color: #fff !important;
	background: var(--av-accent, #ef4444) !important;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-card__info {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center !important;
	padding: 12px 4px 4px !important;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-swatches {
	display: flex !important;
	justify-content: center !important;
	gap: 7px !important;
	padding-bottom: 10px !important;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-swatch {
	width: 11px !important;
	height: 11px !important;
	border-radius: 50% !important;
	border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-cat {
	display: block !important;
	margin: 0 0 6px !important;
	font-size: 10px !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: #9ca3af !important;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-name {
	margin: 0 0 10px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	color: var(--av-primary, #222) !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-price {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: var(--av-primary, #222) !important;
}

body.eticaret-v1.trail-theme .sa-shop-products .av-product-price del {
	display: block !important;
	font-size: 12px !important;
	color: #9ca3af !important;
}

/* Pagination */
body.eticaret-v1.trail-theme .woocommerce nav.woocommerce-pagination {
	margin-top: 36px;
}

body.eticaret-v1.trail-theme .woocommerce nav.woocommerce-pagination ul {
	gap: 6px;
	border: 0;
}

body.eticaret-v1.trail-theme .woocommerce nav.woocommerce-pagination ul li a,
body.eticaret-v1.trail-theme .woocommerce nav.woocommerce-pagination ul li span {
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid var(--tr-border, #e5e7eb);
	border-radius: 8px;
	background: #fff;
	color: var(--av-primary, #222);
	font-weight: 600;
	font-size: 13px;
}

body.eticaret-v1.trail-theme .woocommerce nav.woocommerce-pagination ul li a:hover,
body.eticaret-v1.trail-theme .woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--av-primary, #222);
	border-color: var(--av-primary, #222);
	color: #fff;
}

/* Notices */
body.eticaret-v1.trail-theme .woocommerce .woocommerce-info,
body.eticaret-v1.trail-theme .woocommerce .woocommerce-no-products-found {
	border: 1px solid var(--tr-border, #e5e7eb);
	border-radius: var(--av-card-radius, 16px);
	background: #f9fafb;
	color: var(--tr-body, #6b7280);
	font-family: inherit;
}

/* Filters accent */
body.eticaret-v1.trail-theme .sa-shop-filters {
	--sf-accent: var(--av-accent, #ef4444);
}

body.eticaret-v1.trail-theme .sa-shop-filters .sa-range-fill,
body.eticaret-v1.trail-theme .sa-shop-filters .sa-range-input::-webkit-slider-thumb,
body.eticaret-v1.trail-theme .sa-shop-filters .sa-range-input::-moz-range-thumb {
	background: var(--av-accent, #ef4444);
}

body.eticaret-v1.trail-theme .sa-shop-filters__search-btn {
	background: var(--av-primary, #222);
}

body.eticaret-v1.trail-theme .sa-shop-filters__search-btn:hover {
	background: var(--av-accent-hover, #dc2626);
}

body.eticaret-v1.trail-theme .sa-shop-filters__pill.is-active {
	background: var(--av-accent, #ef4444);
	border-color: var(--av-accent, #ef4444);
}

body.eticaret-v1.trail-theme .sa-shop-filters__clear {
	color: var(--av-accent, #ef4444);
}

/* Neutralize legacy outdoor shop overrides */
body.eticaret-v1.trail-theme .sa-shop-products ul.products li.product:not(.av-shop-grid__item) {
	border: 1px solid var(--tr-border, #e5e7eb) !important;
	border-radius: var(--av-card-radius, 16px) !important;
}
