/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: La Madame child theme — update-safe custom styles.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

:root {
	--lm-ink: #1a1a1a;
	--lm-muted: #5c5c5c;
	--lm-blush: #c4a4a4;
	--lm-paper: #ffffff;
	--lm-mist: #f7f4f2;
	--lm-line: rgba(26, 26, 26, 0.08);
	--lm-radius: 0;
	--lm-space: clamp(1rem, 2vw, 2rem);
}

body,
.ast-woocommerce-container {
	letter-spacing: 0.01em;
}

/* Header */
.main-header-bar,
.ast-primary-header-bar {
	border-bottom: 1px solid var(--lm-line);
}

.site-header .site-logo-img img,
.site-header .custom-logo-link img {
	height: auto !important;
	max-height: 48px;
	width: auto;
}

.main-header-menu > .menu-item > .menu-link {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 500;
}

/* Hero */
.home .wp-block-cover {
	min-height: min(78vh, 760px);
}

.home .wp-block-cover__inner-container h1 {
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.1;
	margin: 0.35em 0 0.75em;
	color: #fff;
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.25);
}

.home .wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce button.button.alt {
	border-radius: var(--lm-radius);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 13px;
	padding: 0.9em 1.6em;
}

/* Trust strip — force true center */
.lm-trust-strip,
.uagb-block-aca6592c {
	background: var(--lm-ink) !important;
	padding: 0.65rem 1rem !important;
	margin: 0 !important;
	text-align: center !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	width: 100% !important;
}

.lm-trust-strip p,
.uagb-block-aca6592c p {
	margin: 0 auto !important;
	padding: 0 !important;
	line-height: 1.35 !important;
	color: #fff !important;
	font-size: 12px !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase;
	text-align: center !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* Collections */
.lm-collections,
.home .lm-section.lm-collections {
	background: var(--lm-mist);
	padding: clamp(2.5rem, 5vw, 4rem) var(--lm-space) !important;
}

.lm-collections h2,
.lm-section__title {
	margin-bottom: 1.75rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	text-align: center;
}

.lm-collections .wp-block-button__link {
	background: transparent !important;
	color: var(--lm-ink) !important;
	border: 1px solid var(--lm-ink) !important;
	width: 100%;
	text-align: center;
}

.lm-collections .wp-block-button__link:hover {
	background: var(--lm-ink) !important;
	color: #fff !important;
}

/* Collections: 2 per row on mobile */
@media (max-width: 781px) {
	.lm-collections .wp-block-columns {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem;
		flex-wrap: unset !important;
	}

	.lm-collections .wp-block-column {
		width: auto !important;
		flex-basis: auto !important;
		margin: 0 !important;
	}
}

/* Instagram CTA on dark section — visible outline */
.lm-section--ink .wp-block-button .wp-block-button__link,
.lm-section--ink .is-style-outline .wp-block-button__link,
.home .lm-section--ink a.wp-block-button__link,
.wp-block-group.lm-section--ink .wp-block-button__link.wp-element-button {
	background: transparent !important;
	background-color: transparent !important;
	color: #ffffff !important;
	border: 1px solid #ffffff !important;
	box-shadow: none !important;
}

.lm-section--ink .wp-block-button .wp-block-button__link:hover,
.home .lm-section--ink a.wp-block-button__link:hover {
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #1a1a1a !important;
}

/* Product grid */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 0.85rem;
}

@media (min-width: 922px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2rem 1.25rem;
	}
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
	text-align: left;
	border: 0;
	box-shadow: none;
	background: transparent;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.woocommerce ul.products li.product a img {
	margin-bottom: 0.75rem;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	width: 100%;
}

/* Larger product titles + prices */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.05rem;
	font-weight: 500;
	padding: 0;
	margin: 0 0 0.4rem;
	line-height: 1.35;
	min-height: 2.7em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.woocommerce ul.products li.product .price {
	font-size: 1.05rem;
	color: var(--lm-ink);
	margin-bottom: 0.65rem;
}

.woocommerce ul.products li.product .price del {
	opacity: 0.55;
	font-size: 0.88em;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .lm-loop-view {
	margin-top: auto;
	align-self: flex-start;
}

/* Hide variation UI on loops (swatches / selects / add to cart forms) */
.woocommerce ul.products li.product .variations,
.woocommerce ul.products li.product .variations_form,
.woocommerce ul.products li.product .woo-variation-swatches,
.woocommerce ul.products li.product table.variations,
.woocommerce ul.products li.product .quantity,
.woocommerce ul.products li.product .single_add_to_cart_button,
.woocommerce ul.products li.product .wvs-archive-variations-wrapper,
.woocommerce ul.products li.product .button.product_type_variable,
.woocommerce ul.products li.product a.product_type_variable,
.woocommerce ul.products li.product .woocommerce-variation-add-to-cart,
.woocommerce ul.products li.product .variations_button {
	display: none !important;
}

/* Keep only our İncele button visible among loop CTAs */
.woocommerce ul.products li.product .button:not(.lm-loop-view) {
	display: none !important;
}

.woocommerce ul.products li.product .screen-reader-text,
.woocommerce ul.products li.product .variation-availability {
	display: none !important;
}

/* -------------------------------------------------------------------------
   Shop / category archive chrome
--------------------------------------------------------------------------- */
body.post-type-archive-product .site-content > .ast-container,
body.tax-product_cat .site-content > .ast-container,
body.tax-product_tag .site-content > .ast-container,
.woocommerce-page .site-content > .ast-container {
	padding-top: 0.5rem;
}

body.post-type-archive-product #primary,
body.tax-product_cat #primary,
body.tax-product_tag #primary,
.post-type-archive-product #primary,
.tax-product_cat #primary {
	margin-top: 0.5rem !important;
	margin-bottom: 1.5rem !important;
}

body.post-type-archive-product #content,
body.tax-product_cat #content,
body.tax-product_tag #content,
.woocommerce-shop .site-content,
.tax-product_cat .site-content {
	padding-top: 0;
}

.ast-breadcrumbs-wrapper {
	padding-top: 0.5rem !important;
	padding-bottom: 0.35rem !important;
	margin: 0 !important;
}

.woocommerce-products-header {
	margin: 0 0 0.5rem !important;
	padding: 0 !important;
}

.woocommerce-products-header__title,
.woocommerce .woocommerce-products-header h1,
.ast-archive-description,
.woocommerce-products-header .page-title,
.tax-product_cat .entry-header,
.post-type-archive-product .entry-header,
.woocommerce-page .ast-woo-shop-archive .page-header {
	display: none !important;
}

/* Result count + ordering on one compact toolbar row */
.woocommerce .woocommerce-result-count {
	float: left;
	margin: 0.15rem 0 1rem !important;
	padding: 0;
	font-size: 0.82rem;
	line-height: 2.1;
	color: var(--lm-muted);
}

.woocommerce .woocommerce-ordering {
	float: right;
	margin: 0 0 1rem !important;
}

.woocommerce .woocommerce-ordering select {
	font-size: 0.82rem;
	padding: 0.4rem 0.6rem;
	max-width: 12rem;
	border: 1px solid var(--lm-line);
	background: #fff;
}

@media (max-width: 768px) {
	.woocommerce .woocommerce-result-count {
		font-size: 0.72rem;
		line-height: 2.2;
		max-width: 48%;
	}

	.woocommerce .woocommerce-ordering select {
		font-size: 0.72rem;
		max-width: 9.5rem;
		padding: 0.35rem 0.45rem;
	}
}

/* Compact pagination — single row, no wrap */
.woocommerce nav.woocommerce-pagination {
	margin: 1.75rem 0 0.5rem;
	text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
	display: inline-flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	white-space: nowrap;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0 !important;
	margin: 0 !important;
	overflow: visible !important;
	float: none !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 2.1rem;
	height: 2.1rem;
	padding: 0 0.45rem !important;
	margin: 0 !important;
	border: 1px solid var(--lm-line) !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	line-height: 1 !important;
	background: #fff;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--lm-ink) !important;
	color: #fff !important;
	border-color: var(--lm-ink) !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
	background: var(--lm-mist);
}

@media (max-width: 768px) {
	.woocommerce nav.woocommerce-pagination ul li a,
	.woocommerce nav.woocommerce-pagination ul li span {
		min-width: 2rem;
		height: 2rem;
		font-size: 0.8rem;
	}
}

/* Single product */
.single-product div.product .product_title {
	font-size: clamp(1.65rem, 3vw, 2.15rem);
	margin-bottom: 0.5rem;
}

.single-product div.product p.price {
	font-size: 1.35rem;
	margin-bottom: 1rem;
}

.single-product .product_meta,
.single-product .ast-single-product-category,
.ast-woo-product-category,
.single-product .posted_in,
.single-product .single-product-category {
	display: none !important;
}

.lm-product-trust {
	margin: 1rem 0 0;
	font-size: 0.85rem;
	color: var(--lm-muted);
}

/* Prevent description overflow */
.single-product .woocommerce-Tabs-panel,
.single-product .woocommerce-product-details__short-description,
.single-product .entry-summary,
.single-product div.product .summary {
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 100%;
}

.single-product .woocommerce-Tabs-panel img,
.single-product .woocommerce-product-details__short-description img,
.single-product .woocommerce-Tabs-panel * {
	max-width: 100% !important;
	height: auto !important;
}

.lm-product-seo-block {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--lm-line);
}

.lm-product-seo-block h2 {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	letter-spacing: 0.04em;
}

.lm-product-seo-block p {
	margin: 0;
	font-size: 0.92rem;
	color: var(--lm-muted);
	line-height: 1.5;
}

.lm-product-seo-block a {
	color: var(--lm-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.single-product .woocommerce-Tabs-panel table {
	display: block;
	overflow-x: auto;
	max-width: 100%;
}

/* Related: clamp titles so buttons align */
.single-product .related ul.products li.product .woocommerce-loop-product__title,
.single-product .upsells ul.products li.product .woocommerce-loop-product__title {
	min-height: 2.7em;
}

/* Cart layout: ~3/4 + 1/4 */
/* Desktop cart totals: smaller title + checkout button */
@media (min-width: 922px) {
	.woocommerce-cart .woocommerce {
		display: grid;
		grid-template-columns: 3fr 1fr;
		gap: 2rem;
		align-items: start;
	}

	.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper {
		grid-column: 1 / -1;
	}

	.woocommerce-cart .woocommerce > .woocommerce-cart-form {
		grid-column: 1;
		grid-row: 2;
	}

	.woocommerce-cart .woocommerce > .cart-collaterals {
		grid-column: 2;
		grid-row: 2;
		width: 100% !important;
		float: none !important;
		margin: 0 !important;
		position: sticky;
		top: 1rem;
	}

	.woocommerce-cart .cart-collaterals .cart_totals {
		width: 100% !important;
		float: none !important;
	}
	
	.woocommerce-cart .cart-collaterals .cart_totals > h2 {
		font-size: 1.15rem;
		line-height: 1.3;
		margin-bottom: 0.75rem;
	}

	.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
		font-size: 0.9rem;
		line-height: 1.25;
		padding: 0.85rem 0.75rem;
		white-space: normal;
		text-align: center;
	}
}


.woocommerce-cart .cart-collaterals .cart_totals {
	background: var(--lm-mist);
	padding: 1.25rem;
	border: 0;
}

/* Hide update button + shipping calculator / destination */
.woocommerce-cart button[name="update_cart"],
.woocommerce-cart .coupon + .button[name="update_cart"],
.woocommerce-cart-form button[name="update_cart"],
.woocommerce-shipping-calculator,
.shipping-calculator-form,
.shipping-calculator-button,
a.shipping-calculator-button {
	display: none !important;
}

/* Shipping methods as plain text (no radios) */
.woocommerce-cart .woocommerce-shipping-methods,
.woocommerce-checkout .woocommerce-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-cart .woocommerce-shipping-methods input[type="radio"],
.woocommerce-checkout .woocommerce-shipping-methods input[type="radio"],
.woocommerce-cart .woocommerce-shipping-methods label::before,
.woocommerce-checkout .woocommerce-shipping-methods label::before {
	display: none !important;
}

.woocommerce-cart .woocommerce-shipping-methods label,
.woocommerce-checkout .woocommerce-shipping-methods label {
	font-weight: 500;
	cursor: default;
}

.lm-shipping-nudge {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
}

.lm-shipping-nudge + .lm-shipping-nudge {
	display: none !important;
}

/* Mobile cart: compact horizontal row (thumb left, details right) */
@media (max-width: 768px) {
	.woocommerce-cart table.shop_table thead {
		display: none;
	}

	.woocommerce-cart table.shop_table,
	.woocommerce-cart table.shop_table tbody {
		display: block;
		width: 100%;
	}

	.woocommerce-cart table.shop_table tr.woocommerce-cart-form__cart-item {
		display: grid;
		grid-template-columns: 72px 1fr auto;
		grid-template-areas:
			"thumb name remove"
			"thumb meta meta"
			"thumb qty price";
		gap: 0.35rem 0.75rem;
		align-items: start;
		background: var(--lm-mist);
		padding: 0.85rem;
		margin-bottom: 0.75rem;
		border: 0;
		position: relative;
	}

	.woocommerce-cart table.shop_table tr.woocommerce-cart-form__cart-item td {
		display: block;
		border: 0 !important;
		padding: 0 !important;
		text-align: left !important;
		width: auto !important;
		background: transparent !important;
	}

	.woocommerce-cart table.shop_table td.product-thumbnail {
		grid-area: thumb;
	}

	.woocommerce-cart table.shop_table td.product-thumbnail img {
		width: 72px;
		height: 96px;
		object-fit: cover;
		display: block;
	}

	.woocommerce-cart table.shop_table td.product-name {
		grid-area: name;
		font-size: 0.9rem;
		line-height: 1.3;
		padding-right: 0.25rem !important;
	}

	.woocommerce-cart table.shop_table td.product-name a {
		font-weight: 500;
		text-decoration: none;
		color: var(--lm-ink);
	}

	.woocommerce-cart table.shop_table td.product-name dl.variation {
		margin: 0.2rem 0 0;
		font-size: 0.78rem;
		color: var(--lm-muted);
	}

	.woocommerce-cart table.shop_table td.product-name dl.variation dt,
	.woocommerce-cart table.shop_table td.product-name dl.variation dd {
		display: inline;
		margin: 0;
		float: none;
	}

	.woocommerce-cart table.shop_table td.product-name dl.variation dd p {
		display: inline;
		margin: 0;
	}

	.woocommerce-cart table.shop_table td.product-price {
		grid-area: meta;
		font-size: 0.8rem;
		color: var(--lm-muted);
	}

	.woocommerce-cart table.shop_table td.product-price::before {
		content: none;
	}

	.woocommerce-cart table.shop_table td.product-quantity {
		grid-area: qty;
		align-self: end;
	}

	.woocommerce-cart table.shop_table td.product-quantity::before {
		content: none;
	}

	.woocommerce-cart table.shop_table td.product-quantity .quantity {
		margin: 0;
	}

	.woocommerce-cart table.shop_table td.product-quantity input.qty {
		width: 3.2rem;
		min-height: 2rem;
		padding: 0.25rem;
		font-size: 0.9rem;
	}

	.woocommerce-cart table.shop_table td.product-subtotal {
		grid-area: price;
		align-self: end;
		justify-self: end;
		font-size: 0.95rem;
		font-weight: 600;
	}

	.woocommerce-cart table.shop_table td.product-subtotal::before {
		content: none;
	}

	.woocommerce-cart table.shop_table td.product-remove {
		grid-area: remove;
		justify-self: end;
		position: static;
	}

	.woocommerce-cart table.shop_table td.product-remove a {
		font-size: 1.1rem;
		line-height: 1;
	}

	.woocommerce-cart table.shop_table tr.woocommerce-cart-form__cart-item td.product-price {
		/* unit price sits under name, quieter */
		font-weight: 400;
	}

	.woocommerce-cart table.shop_table td.actions {
		display: block;
		width: 100% !important;
		background: transparent;
		padding-top: 0.5rem !important;
	}

	.woocommerce-cart table.shop_table tr:not(.woocommerce-cart-form__cart-item) {
		display: block;
	}
}

/* Hide variation stock / suitability messages on product page */
.single-product .woocommerce-variation-availability,
.single-product .stock,
.single-product .cfvsw-stock-wrapper,
.single-product .woo-variation-swatches .wvs-stock,
.single-product .woocommerce-variation .stock {
	display: none !important;
}

.lm-size-guide {
	display: none !important;
}

/* Checkout: smaller product names in order review */
.woocommerce-checkout-review-order-table .product-name,
.woocommerce-checkout-review-order-table td.product-name {
	font-size: 0.82rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.woocommerce-checkout-review-order-table thead th,
.woocommerce-checkout #order_review_heading {
	font-size: 1rem;
}

.woocommerce-checkout #order_review {
	background: var(--lm-mist);
	padding: 1.25rem;
}

/* Billing / checkout fields — 6-col grid so pairs & thirds stay aligned */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
	gap: 0.85rem 0.85rem !important;
	align-items: start;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row {
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0 !important;
}

/* Visual field order (DOM order varies by WooCommerce) */
.woocommerce-checkout #billing_first_name_field { order: 1; }
.woocommerce-checkout #billing_last_name_field { order: 2; }
.woocommerce-checkout #billing_email_field { order: 3; }
.woocommerce-checkout #billing_phone_field { order: 4; }
.woocommerce-checkout #billing_company_field { order: 5; }
.woocommerce-checkout #billing_country_field { order: 6; }
.woocommerce-checkout #billing_address_1_field { order: 7; }
.woocommerce-checkout #billing_address_2_field { order: 8; }
.woocommerce-checkout #billing_city_field { order: 9; }
.woocommerce-checkout #billing_state_field { order: 10; }
.woocommerce-checkout #billing_postcode_field { order: 11; }

/* Half rows: name, email, phone */
.woocommerce-checkout #billing_first_name_field,
.woocommerce-checkout #billing_last_name_field,
.woocommerce-checkout #billing_email_field,
.woocommerce-checkout #billing_phone_field {
	grid-column: span 3 !important;
}

/* Full rows */
.woocommerce-checkout #billing_company_field,
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_address_1_field,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #shipping_company_field,
.woocommerce-checkout #shipping_country_field,
.woocommerce-checkout #shipping_address_1_field,
.woocommerce-checkout #shipping_address_2_field {
	grid-column: 1 / -1 !important;
}

/* Şehir + İlçe/Semt + Posta kodu: always same row, equal thirds */
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout #billing_state_field,
.woocommerce-checkout #billing_postcode_field {
	grid-column: span 2 !important;
}

/* Uniform inputs */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea.input-text,
.woocommerce-checkout .form-row select {
	width: 100% !important;
	max-width: 100% !important;
	min-height: 44px !important;
	height: 44px !important;
	box-sizing: border-box !important;
	font-size: 15px !important;
	line-height: 1.3 !important;
	padding: 0.65rem 0.75rem !important;
	border: 1px solid var(--lm-line) !important;
	border-radius: 0 !important;
	background: #fff !important;
}

.woocommerce-checkout .form-row textarea.input-text {
	height: auto !important;
	min-height: 88px !important;
}

.woocommerce-checkout #billing_state_field,
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout #billing_postcode_field {
	overflow: hidden;
}

.woocommerce-checkout .form-row .select2-container,
.woocommerce-checkout .form-row .select2-container--default {
	width: 100% !important;
	max-width: 100% !important;
}

.woocommerce-checkout .form-row .select2-container .select2-selection--single {
	width: 100% !important;
	max-width: 100% !important;
	min-height: 44px !important;
	height: 44px !important;
	box-sizing: border-box !important;
	padding: 0 0.75rem !important;
	display: flex !important;
	align-items: center !important;
	border: 1px solid var(--lm-line) !important;
	border-radius: 0 !important;
	background: #fff !important;
}

.woocommerce-checkout .form-row .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 !important;
	line-height: 1.3 !important;
	font-size: 15px !important;
	width: 100% !important;
}

.woocommerce-checkout .form-row .select2-container .select2-selection--single .select2-selection__arrow {
	height: 42px !important;
	top: 1px !important;
}

.woocommerce-checkout .form-row label {
	font-size: 0.85rem;
	margin-bottom: 0.35rem;
	display: block;
}

/* Very small phones: stack address trio full-width for readability */
@media (max-width: 420px) {
	.woocommerce-checkout #billing_city_field,
	.woocommerce-checkout #billing_state_field,
	.woocommerce-checkout #billing_postcode_field {
		grid-column: 1 / -1 !important;
	}
}

/* Footer grid */
.lm-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
	padding: 2rem var(--lm-space) 1rem;
	max-width: 1200px;
	margin: 0 auto;
	border-top: 1px solid var(--lm-line);
}

@media (min-width: 768px) {
	.lm-footer-grid {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 2rem;
		padding: 2.5rem var(--lm-space) 1.25rem;
	}
}

.lm-footer-title {
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 0.85rem;
}

.lm-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lm-footer-menu li {
	margin: 0 0 0.45rem;
}

.lm-footer-menu a {
	font-size: 0.92rem;
	color: var(--lm-ink);
	text-decoration: none;
}

.lm-footer-menu a:hover {
	opacity: 0.65;
}

.lm-footer-note {
	margin: 0.85rem 0 0;
	font-size: 0.8rem;
	color: var(--lm-muted);
}

.lm-pay-badges__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.lm-pay-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 4.5rem;
	padding: 0.4rem 0.65rem;
	border: 1px solid var(--lm-line);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 600;
	background: #fff;
}

.lm-pay-visa { color: #1a1f71; }
.lm-pay-mc { color: #eb001b; }
.lm-pay-iyzico { color: #1e88e5; }

/* Hide default Astra footer builder clutter; we render lm-footer-grid */
.site-above-footer-wrap,
.site-primary-footer-wrap,
.site-footer .footer-widget-area,
.site-footer .ast-builder-grid-row-container:not(.lm-keep),
.site-footer .site-footer-primary-section-wrap,
.site-footer .ast-builder-footer-grid-columns {
	display: none !important;
}

.site-below-footer-wrap,
.site-footer .ast-footer-copyright {
	display: block !important;
}

/* Soften default copyright */
.ast-footer-copyright {
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-align: center;
	padding: 0.75rem var(--lm-space) 1.25rem;
}

/* Features */
.lm-features {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	text-align: center;
}

@media (min-width: 768px) {
	.lm-features {
		grid-template-columns: repeat(4, 1fr);
	}
}

.lm-features h3 {
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 0.4rem;
}

.lm-features p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--lm-muted);
}

.lm-section {
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--lm-space);
}

/* Homepage product carousels (Yeni Ürünler + Öne Çıkanlar) */
.home .lm-product-carousel {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2.75rem;
}

.home .lm-product-carousel__track {
	overflow: hidden;
}

.home .lm-product-carousel .wc-block-grid {
	margin: 0;
}

.home .lm-product-carousel .wc-block-grid__products {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	grid-template-columns: none !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	gap: 1rem;
	margin: 0 !important;
	padding: 0 0 0.5rem !important;
	list-style: none;
	scrollbar-width: thin;
	scrollbar-color: var(--lm-blush) transparent;
}

.home .lm-product-carousel .wc-block-grid__products::-webkit-scrollbar {
	height: 4px;
}

.home .lm-product-carousel .wc-block-grid__products::-webkit-scrollbar-thumb {
	background: var(--lm-blush);
}

.home .lm-product-carousel .wc-block-grid__product {
	display: flex !important;
	flex-direction: column !important;
	flex: 0 0 calc(25% - 0.75rem);
	min-width: calc(25% - 0.75rem);
	max-width: calc(25% - 0.75rem);
	scroll-snap-align: start;
	margin: 0 !important;
}

.home .lm-product-carousel .wc-block-grid__product-link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 0;
	text-decoration: none;
	color: inherit;
}

.home .lm-product-carousel .wc-block-grid__product-image {
	flex-shrink: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.home .lm-product-carousel .wc-block-grid__product-image img {
	width: 100%;
	height: auto;
	display: block;
	margin: 0 !important;
}

.home .lm-product-carousel .wc-block-grid__product-title {
	font-size: 0.95rem;
	line-height: 1.35;
	margin: 0.35rem 0 0 !important;
	min-height: 2.7em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home .lm-product-carousel .wc-block-grid__product-price {
	font-size: 0.95rem;
	margin-top: 0.35rem;
	flex-shrink: 0;
}

.home .lm-product-carousel .wc-block-grid__product-add-to-cart {
	margin-top: auto !important;
	padding-top: 0.65rem;
	width: 100%;
	flex-shrink: 0;
}

.home .lm-product-carousel .wc-block-grid__product-add-to-cart .wp-block-button__link {
	display: block;
	width: 100%;
	min-height: 0 !important;
	height: auto !important;
	padding: 0.55rem 0.5rem !important;
	font-size: 0.72rem !important;
	line-height: 1.2 !important;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	text-align: center;
	box-sizing: border-box;
}

.home .lm-product-carousel__nav {
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	z-index: 2;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--lm-line);
	background: #fff;
	color: var(--lm-ink);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: opacity 0.2s ease;
}

.home .lm-product-carousel__nav:hover {
	opacity: 0.7;
}

.home .lm-product-carousel__nav--prev {
	left: 0;
}

.home .lm-product-carousel__nav--next {
	right: 0;
}

@media (max-width: 781px) {
	.home .lm-product-carousel {
		padding: 0 0.25rem;
	}

	.home .lm-product-carousel .wc-block-grid__product {
		flex: 0 0 calc(50% - 0.5rem);
		min-width: calc(50% - 0.5rem);
		max-width: calc(50% - 0.5rem);
	}

	.home .lm-product-carousel .wc-block-grid__product-add-to-cart .wp-block-button__link {
		padding: 0.5rem 0.35rem !important;
		font-size: 0.65rem !important;
		letter-spacing: 0.03em;
	}

	.home .lm-product-carousel__nav {
		display: none;
	}
}

.lm-section--ink {
	background: var(--lm-ink);
	color: #fff;
}

/* Modal */
.lm-modal[hidden] {
	display: none !important;
}

.lm-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.lm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.lm-modal__dialog {
	position: relative;
	background: #fff;
	width: min(420px, 100%);
	padding: 1.5rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	text-align: center;
}

.lm-modal__title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	letter-spacing: 0.04em;
}

.lm-modal__text {
	margin: 0 0 1.25rem;
	color: var(--lm-muted);
	font-size: 0.95rem;
}

.lm-modal__btn {
	appearance: none;
	border: 0;
	background: var(--lm-ink);
	color: #fff;
	padding: 0.75rem 1.5rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 12px;
	cursor: pointer;
}

body.lm-modal-open {
	overflow: hidden;
}
