/**
 * =============================================================================
 * MAS Elektromarket — Ürünler sayfası reklam açılış şablonu
 * =============================================================================
 * mas-ozel/urunler-sayfasi.php tarafından mağaza/kategori sayfalarında ve
 * Elementor önizlemesinde yüklenir. Renk / gölge / yarıçap değerleri child
 * temanın style.css bölüm 01–02'deki --mas-* token'larından gelir.
 *
 *   L1  Genel
 *   L2  Butonlar
 *   L3  Hero
 *   L4  Perakende / Toptan kartları
 *   L5  Bölüm başlıkları
 *   L6  Ürün grubu kartları
 *   L7  Odak ürünleri + güven şeridi
 *   L8  Toptan teklif bölümü
 *   L9  SSS
 *   L10 Builder uyumu
 *   L11 Mobil
 * =============================================================================
 */

/* L1 — Genel ---------------------------------------------------------------- */

.mas-landing {
	/* Child temanın style.css token'larıyla aynı değerler — modül tek başına
	   da çalışsın diye burada tekrar tanımlı. */
	--mas-n-300: #cbd3de;
	--mas-n-400: #9aa5b4;
	--mas-n-900: #151a21;
	--mas-p-50: #fff4e8;
	--mas-p-200: #ffc98c;
	--mas-p-500: rgb(249 121 4);
	--mas-p-600: rgb(214 100 0);
	--mas-p-700: rgb(178 82 0);
	--mas-p-soft: rgb(249 121 4 / 10%);
	--mas-success: #15803d;
	--mas-success-bg: #ecfdf3;
	--mas-surface: #fff;
	--mas-surface-alt: #f7f8f9;
	--mas-surface-sunken: #f0f1f3;
	--mas-border: rgb(0 0 0 / 8%);
	--mas-border-strong: rgb(0 0 0 / 14%);
	--mas-ink: #151a21;
	--mas-ink-soft: #374151;
	--mas-ink-muted: #6b7686;
	--mas-shadow-xs: 0 1px 2px rgb(16 24 40 / 5%);
	--mas-shadow-sm: 0 1px 3px rgb(16 24 40 / 8%), 0 1px 2px rgb(16 24 40 / 4%);
	--mas-shadow-md: 0 4px 12px rgb(16 24 40 / 8%);
	--mas-shadow-lg: 0 12px 28px rgb(16 24 40 / 12%);
	--mas-radius-sm: 8px;
	--mas-radius-md: 12px;
	--mas-radius-lg: 16px;
	--mas-radius-pill: 999px;
	--mas-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--mas-speed: 0.22s;
	--mas-touch: 44px;

	--mas-wa: #15803d;
	--mas-wa-hover: #116a32;

	display: flex;
	flex-direction: column;
	gap: 36px;
	margin-bottom: 36px;
	color: var(--mas-ink-soft);
}

.mas-block-b2b {
	margin-top: 48px;
}

.mas-landing p {
	margin-bottom: 0;
}

.mas-landing .mas-ico {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

.mas-eyebrow {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mas-p-700);
}

/* L2 — Butonlar ------------------------------------------------------------- */

.mas-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 12px 22px;
	border-radius: var(--mas-radius-md);
	font-family: var(--wd-title-font);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color var(--mas-speed) var(--mas-ease), transform var(--mas-speed) var(--mas-ease), box-shadow var(--mas-speed) var(--mas-ease);
}

.mas-btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--mas-shadow-md);
}

.mas-btn-primary {
	background-color: var(--mas-p-500);
	color: #fff;
}

.mas-btn-primary:hover {
	background-color: var(--mas-p-600);
	color: #fff;
}

.mas-btn-wa {
	background-color: var(--mas-wa);
	color: #fff;
}

.mas-btn-wa:hover {
	background-color: var(--mas-wa-hover);
	color: #fff;
}

.mas-btn-block {
	width: 100%;
}

.mas-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: var(--mas-p-700);
	text-decoration: none;
}

.mas-link .mas-ico {
	width: 16px;
	height: 16px;
	transition: transform var(--mas-speed) var(--mas-ease);
}

.mas-link:hover {
	color: var(--mas-p-600);
}

.mas-link:hover .mas-ico {
	transform: translateX(3px);
}

/* L3 — Hero ----------------------------------------------------------------- */

.mas-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	padding: 44px 44px;
	border: 1px solid var(--mas-border);
	border-radius: var(--mas-radius-lg);
	background:
		radial-gradient(120% 140% at 0% 0%, var(--mas-p-50) 0%, rgb(255 244 232 / 0%) 60%),
		var(--mas-surface);
}

.mas-hero-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mas-hero-title {
	margin: 0;
	font-size: clamp(28px, 3.4vw, 42px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--mas-ink);
}

.mas-hero-lead {
	max-width: 58ch;
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--mas-ink-soft);
}

.mas-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 6px;
}

.mas-hero-points {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.mas-hero-points li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--mas-ink-soft);
}

.mas-hero-points .mas-ico {
	width: 16px;
	height: 16px;
	color: var(--mas-success);
}

/* L4 — Perakende / Toptan kartları ------------------------------------------ */

.mas-hero-audience {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mas-aud {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 18px;
	border: 1px solid var(--mas-border);
	border-radius: var(--mas-radius-md);
	background-color: var(--mas-surface);
	box-shadow: var(--mas-shadow-xs);
}

.mas-aud-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: var(--mas-radius-sm);
	background-color: var(--mas-p-50);
	color: var(--mas-p-700);
}

.mas-aud-wholesale .mas-aud-icon {
	background-color: var(--mas-success-bg);
	color: var(--mas-success);
}

.mas-aud .mas-aud-title {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 800;
	color: var(--mas-ink);
}

.mas-aud p:not(.mas-aud-title) {
	font-size: 14px;
	line-height: 1.5;
	color: var(--mas-ink-muted);
}

.mas-aud-call {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: var(--mas-radius-md);
	background-color: var(--mas-surface-alt);
	color: var(--mas-ink-soft);
	font-size: 14px;
	text-decoration: none;
}

.mas-aud-call strong {
	color: var(--mas-ink);
	white-space: nowrap;
}

.mas-aud-call:hover {
	background-color: var(--mas-surface-sunken);
	color: var(--mas-ink);
}

/* L5 — Bölüm başlıkları ----------------------------------------------------- */

.mas-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.mas-section-title {
	margin: 0;
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 800;
	line-height: 1.25;
	color: var(--mas-ink);
}

.mas-anchor {
	scroll-margin-top: 110px;
	padding-top: 8px;
	border-top: 1px solid var(--mas-border);
}

.mas-anchor .mas-section-title {
	padding-top: 20px;
}

.mas-anchor:focus {
	outline: none;
}

/* L6 — Ürün grubu kartları -------------------------------------------------- */

.mas-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.mas-cat {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--mas-border);
	border-radius: var(--mas-radius-lg);
	background-color: var(--mas-surface);
	transition: transform var(--mas-speed) var(--mas-ease), box-shadow var(--mas-speed) var(--mas-ease), border-color var(--mas-speed) var(--mas-ease);
}

.mas-cat:hover {
	transform: translateY(-3px);
	box-shadow: var(--mas-shadow-lg);
	border-color: var(--mas-border-strong);
}

.mas-cat.is-active {
	border-color: var(--mas-p-500);
	box-shadow: 0 0 0 3px var(--mas-p-soft);
}

.mas-cat-media {
	display: block;
	aspect-ratio: 4 / 3;
	background-color: var(--mas-surface-alt);
	overflow: hidden;
}

.mas-cat-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 14px;
	transition: transform 0.4s var(--mas-ease);
}

.mas-cat:hover .mas-cat-media img {
	transform: scale(1.04);
}

.mas-cat-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px 18px;
}

.mas-cat-title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
}

.mas-cat-title a {
	color: var(--mas-ink);
	text-decoration: none;
}

/* Kartın tamamı tıklanabilir — başlık bağlantısı kartı kaplar. */
.mas-cat-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.mas-cat-text {
	flex: 1 1 auto;
	font-size: 14px;
	line-height: 1.5;
	color: var(--mas-ink-muted);
}

.mas-cat-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 6px;
}

.mas-cat-link {
	font-size: 14px;
	font-weight: 700;
	color: var(--mas-p-700);
	text-decoration: none;
}

/* WhatsApp butonu kartı kaplayan bağlantının üstünde kalır. */
.mas-cat-wa {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: var(--mas-touch);
	padding: 0 14px;
	border-radius: var(--mas-radius-pill);
	background-color: var(--mas-success-bg);
	color: var(--mas-success);
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
}

.mas-cat-wa .mas-ico {
	width: 17px;
	height: 17px;
}

.mas-cat-wa:hover {
	background-color: var(--mas-success);
	color: #fff;
}

/* L7 — Odak ürünleri + güven şeridi ----------------------------------------- */

.mas-focus-products .wd-products {
	margin-bottom: 0;
}

.mas-landing .mas-trust-row {
	margin: 0;
}

/* L8 — Toptan teklif bölümü ------------------------------------------------- */

.mas-b2b {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	padding: 40px 44px;
	border-radius: var(--mas-radius-lg);
	background:
		radial-gradient(90% 120% at 100% 0%, rgb(249 121 4 / 22%) 0%, rgb(249 121 4 / 0%) 55%),
		var(--mas-n-900);
	color: var(--mas-n-300);
}

.mas-b2b .mas-eyebrow {
	margin-bottom: 10px;
	color: var(--mas-p-200);
}

.mas-b2b-title {
	margin: 0 0 12px;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
}

.mas-b2b-body > p {
	max-width: 60ch;
	font-size: 15.5px;
	line-height: 1.6;
}

.mas-b2b-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.mas-b2b-list li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.mas-b2b-list .mas-ico {
	width: 16px;
	height: 16px;
	color: var(--mas-p-200);
}

.mas-b2b-contact {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mas-contact-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid rgb(255 255 255 / 12%);
	border-radius: var(--mas-radius-md);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: background-color var(--mas-speed) var(--mas-ease);
}

.mas-contact-row:hover {
	background-color: rgb(255 255 255 / 8%);
	color: #fff;
}

.mas-contact-row small {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: var(--mas-n-400);
}

.mas-contact-row .mas-ico {
	color: var(--mas-p-200);
}

/* L9 — SSS ------------------------------------------------------------------ */

.mas-faq .mas-section-title {
	margin-bottom: 18px;
}

.mas-faq-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	align-items: start;
}

.mas-faq-item {
	border: 1px solid var(--mas-border);
	border-radius: var(--mas-radius-md);
	background-color: var(--mas-surface);
}

.mas-faq-item[open] {
	border-color: var(--mas-border-strong);
	box-shadow: var(--mas-shadow-sm);
}

.mas-faq-item summary {
	position: relative;
	display: block;
	padding: 16px 48px 16px 18px;
	cursor: pointer;
	list-style: none;
}

.mas-faq-item summary::-webkit-details-marker {
	display: none;
}

.mas-faq-item summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--mas-ink-muted);
	border-bottom: 2px solid var(--mas-ink-muted);
	transform: translateY(-70%) rotate(45deg);
	transition: transform var(--mas-speed) var(--mas-ease);
}

.mas-faq-item[open] summary::after {
	transform: translateY(-30%) rotate(-135deg);
}

.mas-faq-item summary h3 {
	margin: 0;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--mas-ink);
}

.mas-faq-item p {
	padding: 0 18px 18px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--mas-ink-soft);
}

/* L10 — Builder uyumu ------------------------------------------------------- */

/* [mas_hero] H1 bastıysa builder'daki "Ürünler" başlığı iki başlık oluşturmasın.
   Breadcrumb aynı satırda kalıyor. */
body:has(.mas-hero-h1) .wd-woo-page-title {
	display: none;
}

/* Elementor kısa kod widget'ı içinde bloklar arası boşluğu bölüm kendisi veriyor. */
.elementor-shortcode > .mas-landing:last-child {
	margin-bottom: 0;
}

/* Sayfa şablonu: header ile hero arasında boşluk (temanın sayfa başlığı kaldırıldı). */
.mas-template-top {
	padding-top: 30px;
}

.mas-template-top .mas-block-cats {
	margin-bottom: 8px;
}

/* Sayfa şablonu (normal sayfa): [products paginate] çıktısındaki araç satırı.
   Mağaza sayfasının dışında temanın .shop-loop-head düzeni yok; öğeler alt alta
   dağılıyordu. Tek satır: solda "Göstermek", sağda sıralama. */
.mas-template-content > .woocommerce {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.mas-template-content > .woocommerce > * {
	flex: 1 1 100%;
}

.mas-template-content > .woocommerce > .wd-products-per-page {
	flex: 1 1 auto;
	margin: 0;
}

.mas-template-content > .woocommerce > .woocommerce-ordering {
	flex: 0 0 auto;
	margin: 0 0 0 auto;
}

.mas-template-content > .woocommerce > .woocommerce-ordering select {
	min-width: 240px;
}

/* 2/3/4 sütun görünüm değiştirici bu sayfada gereksiz. */
.mas-template-content > .woocommerce > .wd-products-shop-view {
	display: none;
}

.mas-template-content > .woocommerce > .woocommerce-result-count {
	flex: 1 1 auto;
	margin: 0;
}

.mas-template-content .wd-products-element {
	margin-top: 6px;
}

/* L11 — Mobil --------------------------------------------------------------- */

@media (max-width: 1024.98px) {
	.mas-hero,
	.mas-b2b {
		grid-template-columns: 1fr;
		padding: 32px 28px;
	}

	.mas-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768.98px) {
	.mas-landing {
		gap: 28px;
	}

	.mas-hero,
	.mas-b2b {
		gap: 22px;
		padding: 24px 18px;
	}

	.mas-hero-lead {
		font-size: 15.5px;
	}

	.mas-hero-actions .mas-btn {
		flex: 1 1 100%;
	}

	/* Reklamdan gelen mobil kullanıcı ürün gruplarına hızlı ulaşsın:
	   perakende / toptan kartları yan yana ve sıkı. */
	.mas-hero-audience {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.mas-aud {
		flex-direction: column;
		gap: 8px;
		padding: 14px;
	}

	.mas-aud-icon {
		width: 34px;
		height: 34px;
	}

	.mas-aud .mas-aud-title {
		font-size: 15.5px;
	}

	.mas-aud p:not(.mas-aud-title) {
		font-size: 13px;
	}

	.mas-aud-call {
		grid-column: 1 / -1;
		justify-content: center;
	}

	.mas-faq-list {
		grid-template-columns: 1fr;
	}

	.mas-section-head {
		margin-bottom: 14px;
	}

	.mas-template-content > .woocommerce > .wd-products-per-page {
		display: none;
	}

	.mas-template-content > .woocommerce > .woocommerce-ordering {
		flex: 1 1 100%;
		margin: 0;
	}

	.mas-template-content > .woocommerce > .woocommerce-ordering select {
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 480.98px) {
	.mas-cat-grid {
		gap: 12px;
	}

	.mas-cat-body {
		padding: 12px 12px 14px;
	}

	.mas-cat-title {
		font-size: 16px;
	}

	.mas-cat-text {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: 13px;
	}

	.mas-cat-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.mas-cat-wa {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mas-btn,
	.mas-cat,
	.mas-cat-media img,
	.mas-link .mas-ico {
		transition: none;
	}

	.mas-btn:hover,
	.mas-cat:hover {
		transform: none;
	}
}
