/* -------------------------------------------------------------------------
   BreBr — premium vitrin & mağaza (Astra child)
   ------------------------------------------------------------------------- */

:root {
	--brebr-ink: #141210;
	--brebr-ink-soft: #3d3834;
	--brebr-muted: #6b6560;
	--brebr-line: rgba(20, 18, 16, 0.08);
	--brebr-line-strong: rgba(20, 18, 16, 0.12);
	--brebr-surface: #ffffff;
	--brebr-surface-2: #fbfaf8;
	--brebr-surface-3: #f3f1ed;
	--brebr-accent: #1e3a2f;
	--brebr-accent-deep: #152a22;
	--brebr-price: #1a3328;
	--brebr-radius: 14px;
	--brebr-radius-sm: 10px;
	--brebr-shadow: 0 1px 2px rgba(20, 18, 16, 0.04), 0 4px 16px rgba(20, 18, 16, 0.06);
	--brebr-shadow-hover: 0 4px 8px rgba(20, 18, 16, 0.06), 0 20px 48px rgba(20, 18, 16, 0.1);
	--brebr-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Ana sayfa katalog alanı */
.brebr-catalog-home {
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1rem, 3vw, 1.5rem) clamp(2.5rem, 5vw, 4rem);
}

body.home #primary,
body.front-page #primary {
	background: linear-gradient(180deg, var(--brebr-surface-2) 0%, var(--brebr-surface) 18rem, var(--brebr-surface) 100%);
}

/* Dış cephe vitrin */
.brebr-facade-vitrin--frontpage {
	width: 100%;
	max-width: 100%;
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	padding: 0;
	box-sizing: border-box;
}

.brebr-facade-vitrin__stack {
	display: flex;
	flex-direction: column;
	gap: clamp(0.75rem, 2vw, 1.125rem);
	width: 100%;
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 clamp(0.5rem, 2vw, 0);
	box-sizing: border-box;
}

.brebr-facade-vitrin__card {
	margin: 0;
	padding: 0;
	border-radius: var(--brebr-radius);
	overflow: hidden;
	background: var(--brebr-surface-3);
	border: 1px solid var(--brebr-line-strong);
	box-shadow: var(--brebr-shadow);
	max-width: 100%;
	box-sizing: border-box;
	transition: box-shadow 0.35s var(--brebr-ease), border-color 0.35s var(--brebr-ease), transform 0.35s var(--brebr-ease);
}

.brebr-facade-vitrin__card:hover {
	box-shadow: var(--brebr-shadow-hover);
	border-color: rgba(20, 18, 16, 0.14);
	transform: translateY(-2px);
}

.brebr-facade-vitrin__media {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	background: linear-gradient(165deg, #ebe8e3 0%, #ddd9d3 100%);
	line-height: 0;
}

.brebr-facade-vitrin__media img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

/* Bölüm başlıkları */
.brebr-section-title {
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--brebr-ink);
	margin: 0 0 1.125rem;
	line-height: 1.25;
}

/* Kategori kartları */
.brebr-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
	gap: clamp(0.85rem, 2vw, 1.15rem);
	margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

.brebr-cat-card {
	display: block;
	text-decoration: none;
	color: inherit;
	padding: 1.2rem 1rem;
	border-radius: var(--brebr-radius);
	background: var(--brebr-surface);
	border: 1px solid var(--brebr-line);
	text-align: center;
	box-shadow: var(--brebr-shadow);
	transition: box-shadow 0.35s var(--brebr-ease), border-color 0.35s var(--brebr-ease), transform 0.35s var(--brebr-ease);
}

.brebr-cat-card:hover {
	border-color: rgba(20, 18, 16, 0.14);
	box-shadow: var(--brebr-shadow-hover);
	transform: translateY(-3px);
	color: inherit;
}

.brebr-cat-card img {
	width: 68px;
	height: 68px;
	object-fit: cover;
	border-radius: var(--brebr-radius-sm);
	margin: 0 auto 0.65rem;
	box-shadow: 0 2px 8px rgba(20, 18, 16, 0.08);
}

.brebr-cat-card .brebr-cat-name {
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.35;
	color: var(--brebr-ink-soft);
	letter-spacing: -0.01em;
}

/* Öne çıkan ürün mini kartları */
.brebr-featured-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(0.85rem, 2vw, 1.15rem);
	margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
	list-style: none;
	padding: 0;
	margin-left: 0;
	margin-right: 0;
}

@media (min-width: 600px) {
	.brebr-featured-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 900px) {
	.brebr-featured-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.brebr-featured-grid .brebr-mini-card {
	margin: 0;
}

.brebr-mini-card {
	border-radius: var(--brebr-radius);
	border: 1px solid var(--brebr-line);
	background: var(--brebr-surface);
	overflow: hidden;
	box-shadow: var(--brebr-shadow);
	transition: box-shadow 0.35s var(--brebr-ease), border-color 0.35s var(--brebr-ease), transform 0.35s var(--brebr-ease);
}

.brebr-mini-card:hover {
	box-shadow: var(--brebr-shadow-hover);
	border-color: rgba(20, 18, 16, 0.12);
	transform: translateY(-3px);
}

.brebr-mini-card a {
	text-decoration: none;
	color: inherit;
	display: block;
}

/* Dikey ürün görselleri (duvar paneli vb.): kare kırpmayı kaldır — tam görünsün */
.brebr-mini-card img {
	width: 100%;
	height: auto;
	max-height: min(72vw, 22rem);
	object-fit: contain;
	object-position: center;
	background: var(--brebr-surface-3);
	display: block;
}

.brebr-mini-card .brebr-mini-body {
	padding: 0.75rem 0.85rem 1rem;
}

.brebr-mini-card .brebr-mini-title {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 0.35rem;
	color: var(--brebr-ink);
	letter-spacing: -0.015em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.brebr-mini-card .price {
	font-size: 0.9rem;
	margin: 0;
	color: var(--brebr-price);
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* WhatsApp CTA */
.brebr-cta-block {
	text-align: center;
	padding: clamp(2rem, 5vw, 2.75rem) clamp(1.25rem, 4vw, 2rem);
	border-radius: var(--brebr-radius);
	background: linear-gradient(145deg, var(--brebr-accent) 0%, var(--brebr-accent-deep) 55%, #0f1f19 100%);
	color: #fff;
	margin-bottom: clamp(2rem, 4vw, 2.75rem);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 40px rgba(15, 31, 25, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brebr-cta-block p {
	margin: 0 0 1.125rem;
	opacity: 0.92;
	font-size: clamp(0.95rem, 1.8vw, 1.05rem);
	line-height: 1.55;
	max-width: 32rem;
	margin-left: auto;
	margin-right: auto;
}

.brebr-btn-wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.9rem 1.75rem;
	min-height: 48px;
	border-radius: 999px;
	background: linear-gradient(180deg, #2be077 0%, #25d366 45%, #1fb85a 100%);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
	font-size: 0.9375rem;
	letter-spacing: 0.01em;
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	transition: transform 0.25s var(--brebr-ease), box-shadow 0.25s var(--brebr-ease), filter 0.2s ease;
}

.brebr-btn-wa:hover {
	filter: brightness(1.03);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
	color: #fff !important;
}

.brebr-btn-wa:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* İletişim */
.brebr-contact-block {
	padding: clamp(1.5rem, 4vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
	border-radius: var(--brebr-radius);
	border: 1px solid var(--brebr-line);
	background: var(--brebr-surface);
	box-shadow: var(--brebr-shadow);
}

.brebr-contact-block p {
	margin: 0 0 0.5rem;
	line-height: 1.6;
	color: var(--brebr-ink-soft);
	font-size: 0.9375rem;
}

.brebr-contact-block p:last-child {
	margin-bottom: 0;
}

.brebr-contact-map-wrap {
	margin-top: 1rem !important;
	margin-bottom: 0 !important;
}

.brebr-btn-map {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.65rem 1.35rem;
	min-height: 44px;
	border-radius: 999px;
	background: var(--brebr-surface);
	color: var(--brebr-ink) !important;
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none !important;
	border: 1px solid var(--brebr-line-strong);
	box-shadow: 0 1px 3px rgba(20, 18, 16, 0.06);
	transition: transform 0.25s var(--brebr-ease), box-shadow 0.25s var(--brebr-ease), border-color 0.25s var(--brebr-ease);
}

.brebr-btn-map:hover {
	color: var(--brebr-ink) !important;
	border-color: rgba(20, 18, 16, 0.2);
	box-shadow: 0 4px 14px rgba(20, 18, 16, 0.1);
	transform: translateY(-1px);
}

.brebr-btn-map:focus-visible {
	outline: 2px solid var(--brebr-accent);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   WooCommerce — ürün kartları
   ------------------------------------------------------------------------- */

.wc-block-grid__product {
	border: 1px solid var(--brebr-line);
	border-radius: var(--brebr-radius);
	padding: 1rem !important;
	background: var(--brebr-surface);
	box-shadow: var(--brebr-shadow);
	transition: box-shadow 0.35s var(--brebr-ease), border-color 0.35s var(--brebr-ease), transform 0.35s var(--brebr-ease);
}

.wc-block-grid__product:hover {
	box-shadow: var(--brebr-shadow-hover);
	border-color: rgba(20, 18, 16, 0.12);
}

.woocommerce ul.products li.product {
	border: 1px solid var(--brebr-line);
	border-radius: var(--brebr-radius);
	padding: 1.05rem !important;
	background: var(--brebr-surface);
	box-shadow: var(--brebr-shadow);
	transition: box-shadow 0.35s var(--brebr-ease), border-color 0.35s var(--brebr-ease), transform 0.35s var(--brebr-ease);
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.woocommerce ul.products li.product:hover {
	box-shadow: var(--brebr-shadow-hover);
	border-color: rgba(20, 18, 16, 0.14);
	transform: translateY(-2px);
}

.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.85rem, 2vw, 1.25rem) !important;
	align-items: stretch;
	clear: both;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

@media (min-width: 600px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.woocommerce ul.products.columns-4,
	.woocommerce ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.9375rem !important;
	line-height: 1.4 !important;
	margin-top: 0.55rem !important;
	padding: 0 !important;
	min-height: 2.6em;
	font-weight: 600 !important;
	letter-spacing: -0.015em !important;
	color: var(--brebr-ink) !important;
}

.woocommerce ul.products li.product .brebr-loop-excerpt {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--brebr-muted);
	margin: 0.35rem 0 0.5rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1 1 auto;
}

.woocommerce ul.products li.product .price {
	margin-top: auto !important;
	font-size: 0.9375rem !important;
	font-weight: 600;
	color: var(--brebr-price) !important;
	letter-spacing: -0.01em;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button {
	margin-top: 0.7rem;
	align-self: flex-start;
	border-radius: 999px !important;
	padding: 0.45rem 1rem !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
	transition: transform 0.25s var(--brebr-ease), box-shadow 0.25s var(--brebr-ease) !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(20, 18, 16, 0.12) !important;
}

.woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product img {
	width: 100% !important;
	height: auto !important;
	max-height: min(88vw, 26rem);
	object-fit: contain !important;
	object-position: center;
	background: var(--brebr-surface-3);
	border-radius: var(--brebr-radius-sm);
}

/* Blok tabanlı ürün ızgarası (WooCommerce blokları) */
.wc-block-grid__product-image img,
.wc-block-grid__product .wc-block-grid__product-image img {
	width: 100%;
	height: auto;
	max-height: min(88vw, 26rem);
	object-fit: contain;
	object-position: center;
	background: var(--brebr-surface-3);
}

/* Tekil ürün — WhatsApp */
.brebr-wa-product {
	margin: 1.125rem 0 1.5rem;
}

.brebr-wa-product .brebr-btn-wa {
	width: 100%;
	max-width: 420px;
}

/* Yüzen WhatsApp */
.brebr-wa-float {
	position: fixed;
	right: 20px;
	bottom: 22px;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: linear-gradient(180deg, #2be077 0%, #25d366 50%, #1fb85a 100%);
	color: #fff !important;
	box-shadow: 0 6px 24px rgba(37, 211, 102, 0.42), 0 2px 8px rgba(0, 0, 0, 0.12);
	text-decoration: none !important;
	transition: transform 0.3s var(--brebr-ease), box-shadow 0.3s var(--brebr-ease);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.brebr-wa-float:hover {
	transform: scale(1.06) translateY(-2px);
	box-shadow: 0 10px 32px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
	color: #fff !important;
}

.brebr-wa-float:focus-visible {
	outline: 2px solid var(--brebr-accent);
	outline-offset: 3px;
}

.brebr-wa-float svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

@media (max-width: 480px) {
	.brebr-wa-float {
		right: 14px;
		bottom: 14px;
		width: 54px;
		height: 54px;
	}
}

/* Mağaza / kategori / ürün — hafif premium zemin (ödeme sayfası hariç) */
body.post-type-archive-product #primary,
body.tax-product_cat #primary,
body.tax-product_tag #primary,
body.single-product #primary {
	background: linear-gradient(180deg, var(--brebr-surface-2) 0%, var(--brebr-surface) 12rem, var(--brebr-surface) 100%);
}
