/*
Theme Name: AHU Store Astra Child
Theme URI: https://ahustore.com/
Description: AHU Store için Astra alt teması. Mağaza kartları ve özel görünüm düzenlemeleri bu tema içinde tutulur.
Author: AHU Gıda
Template: astra
Version: 1.0.4
Text Domain: ahu-store-astra-child
*/

/*
 * AHU Store global design tokens
 * Model B foundation — 2026-08-23
 */
:root {
	--ahu-red: #c8202f;
	--ahu-red-dark: #a81824;
	--ahu-heading: #20252d;
	--ahu-text: #4b5563;
	--ahu-border: #e5e7eb;
	--ahu-site-bg: #f7f7f5;
	--ahu-surface: #ffffff;
	--ast-global-color-0: #c8202f;
	--ast-global-color-1: #a81824;
	--ast-global-color-2: #20252d;
	--ast-global-color-3: #4b5563;
	--ast-global-color-4: #f7f7f5;
	--ast-global-color-5: #ffffff;
	--ast-border-color: #e5e7eb;
}

html,
body,
button,
input,
select,
textarea {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
	background-color: var(--ahu-site-bg);
	color: var(--ahu-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.page-title {
	color: var(--ahu-heading);
}

a {
	color: var(--ahu-red);
}

a:hover,
a:focus {
	color: var(--ahu-red-dark);
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background-color: var(--ahu-red);
	border: 1px solid var(--ahu-red);
	border-radius: 8px;
	color: #ffffff;
	font-weight: 600;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

button:hover,
button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.woocommerce a.button:hover,
.woocommerce a.button:focus,
.woocommerce button.button:hover,
.woocommerce button.button:focus,
.woocommerce input.button:hover,
.woocommerce input.button:focus {
	background-color: var(--ahu-red-dark);
	border-color: var(--ahu-red-dark);
	color: #ffffff;
}

input,
select,
textarea {
	border-color: var(--ahu-border);
}

.site-header,
.site-footer,
.ast-primary-header-bar,
.ast-footer-copyright {
	border-color: var(--ahu-border);
}

/* AHU crystal logo sizing — 2026-08-23 */
body .ahu-commerce-header .ahu-commerce-header__main {
	grid-template-columns: 96px minmax(320px, 1fr) auto !important;
}

body .ahu-commerce-header .ahu-commerce-header__logo img {
	width: auto !important;
	max-width: 88px !important;
	max-height: 72px !important;
	object-fit: contain;
}

@media (max-width: 921px) {
	body .ahu-commerce-header .ahu-commerce-header__main {
		grid-template-columns: 70px minmax(0, 1fr) auto !important;
	}

	body .ahu-commerce-header .ahu-commerce-header__logo img {
		max-width: 68px !important;
		max-height: 54px !important;
	}
}

@media (max-width: 480px) {
	body .ahu-commerce-header .ahu-commerce-header__main {
		grid-template-columns: 58px minmax(0, 1fr) auto !important;
	}

	body .ahu-commerce-header .ahu-commerce-header__logo img {
		max-width: 56px !important;
		max-height: 44px !important;
	}
}

/* AHU Store product grid polish — 2026-08-24 */
body.woocommerce-shop .site-main ul.products,
body.tax-product_cat .site-main ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	align-items: stretch !important;
	column-gap: 20px !important;
	row-gap: 24px !important;
	margin: 0 !important;
}

body.woocommerce-shop .site-main ul.products li.product,
body.tax-product_cat .site-main ul.products li.product {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
}

body.woocommerce-shop .site-main ul.products li.product .astra-shop-thumbnail-wrap,
body.tax-product_cat .site-main ul.products li.product .astra-shop-thumbnail-wrap {
	flex: 0 0 auto;
}

body.woocommerce-shop .site-main ul.products li.product .astra-shop-thumbnail-wrap img,
body.tax-product_cat .site-main ul.products li.product .astra-shop-thumbnail-wrap img {
	display: block;
	width: 100% !important;
	height: 260px !important;
	object-fit: contain !important;
}

body.woocommerce-shop .site-main ul.products li.product .astra-shop-summary-wrap,
body.tax-product_cat .site-main ul.products li.product .astra-shop-summary-wrap {
	display: flex !important;
	flex: 1 1 auto !important;
	flex-direction: column !important;
}

body.woocommerce-shop .site-main ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat .site-main ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	min-height: 2.8em;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body.woocommerce-shop .site-main ul.products li.product .price,
body.tax-product_cat .site-main ul.products li.product .price {
	margin-top: auto !important;
}

body.woocommerce-shop .site-main ul.products li.product .ahu-card-actions,
body.tax-product_cat .site-main ul.products li.product .ahu-card-actions {
	margin-top: 12px !important;
}

@media (max-width: 1024px) {
	body.woocommerce-shop .site-main ul.products,
	body.tax-product_cat .site-main ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	body.woocommerce-shop .site-main ul.products,
	body.tax-product_cat .site-main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 14px !important;
		row-gap: 16px !important;
	}

	body.woocommerce-shop .site-main ul.products li.product .astra-shop-thumbnail-wrap img,
	body.tax-product_cat .site-main ul.products li.product .astra-shop-thumbnail-wrap img {
		height: 160px !important;
		padding: 10px !important;
	}

	body.woocommerce-shop .site-main ul.products li.product .astra-shop-summary-wrap,
	body.tax-product_cat .site-main ul.products li.product .astra-shop-summary-wrap {
		padding: 12px !important;
	}

	body.woocommerce-shop .site-main ul.products li.product .ast-woo-product-category,
	body.tax-product_cat .site-main ul.products li.product .ast-woo-product-category {
		font-size: 11px !important;
		line-height: 1.3 !important;
	}

	body.woocommerce-shop .site-main ul.products li.product .woocommerce-loop-product__title,
	body.tax-product_cat .site-main ul.products li.product .woocommerce-loop-product__title {
		min-height: 2.7em;
		font-size: 14px !important;
		line-height: 1.35 !important;
	}

	body.woocommerce-shop .site-main ul.products li.product .ahu-card-actions,
	body.tax-product_cat .site-main ul.products li.product .ahu-card-actions {
		flex-direction: column !important;
		gap: 8px !important;
	}

	body.woocommerce-shop .site-main ul.products li.product .ahu-card-quantity,
	body.tax-product_cat .site-main ul.products li.product .ahu-card-quantity {
		grid-template-columns: 36px minmax(0, 1fr) 36px !important;
		width: 100% !important;
	}

	body.woocommerce-shop .site-main ul.products li.product .ahu-card-quantity__input,
	body.tax-product_cat .site-main ul.products li.product .ahu-card-quantity__input {
		width: 100% !important;
		min-width: 0 !important;
	}

	body.woocommerce-shop .site-main ul.products li.product .ahu-card-actions > .button,
	body.tax-product_cat .site-main ul.products li.product .ahu-card-actions > .button {
		width: 100% !important;
		min-height: 42px !important;
	}
}

/* AHU product-card gallery controls — refined 2026-08-24 */
body.woocommerce-shop .astra-shop-thumbnail-wrap,
body.tax-product_cat .astra-shop-thumbnail-wrap {
	position: relative;
}

.ahu-card-gallery {
	position: absolute;
	z-index: 6;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 11px;
	pointer-events: none;
}

.ahu-card-gallery__button {
	position: relative;
	isolation: isolate;
	display: grid !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	padding: 0 !important;
	place-items: center;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(241, 244, 247, 0.96)) !important;
	border: 1px solid rgba(31, 41, 55, 0.20) !important;
	border-radius: 50% !important;
	box-shadow:
		0 5px 12px rgba(15, 23, 42, 0.15),
		inset 0 1px 1px rgba(255, 255, 255, 1),
		inset 0 -1px 1px rgba(15, 23, 42, 0.07);
	color: #27313d !important;
	line-height: 0 !important;
	opacity: 0.92;
	pointer-events: auto;
	transform: translateY(0) scale(1);
	transition:
		opacity 0.18s ease,
		transform 0.18s ease,
		background 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.ahu-card-gallery__button::after {
	position: absolute;
	z-index: -1;
	top: 3px;
	right: 5px;
	left: 5px;
	height: 34%;
	border-radius: 50%;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
	content: "";
	pointer-events: none;
}

.ahu-card-gallery__button svg {
	display: block !important;
	width: 17px !important;
	height: 17px !important;
	margin: 0 !important;
	overflow: visible;
	fill: none !important;
	stroke: #27313d !important;
	stroke-width: 2.15;
	stroke-linecap: round;
	stroke-linejoin: round;
	transform: none !important;
	transition: stroke 0.18s ease;
}

.woocommerce ul.products li.product:hover .ahu-card-gallery__button,
.woocommerce ul.products li.product:focus-within .ahu-card-gallery__button {
	border-color: rgba(31, 41, 55, 0.27) !important;
	box-shadow:
		0 7px 16px rgba(15, 23, 42, 0.18),
		inset 0 1px 1px rgba(255, 255, 255, 1),
		inset 0 -1px 1px rgba(15, 23, 42, 0.07);
	opacity: 1;
	transform: translateY(-1px);
}

.ahu-card-gallery__button:hover {
	background: linear-gradient(145deg, #ffffff, #f7f1f2) !important;
	border-color: rgba(200, 32, 47, 0.34) !important;
	box-shadow:
		0 8px 18px rgba(15, 23, 42, 0.20),
		0 2px 7px rgba(200, 32, 47, 0.10),
		inset 0 1px 1px rgba(255, 255, 255, 1);
	transform: translateY(-2px) scale(1.035) !important;
}

.ahu-card-gallery__button:hover svg,
.ahu-card-gallery__button:focus-visible svg {
	stroke: #c8202f !important;
}

.ahu-card-gallery__button:active {
	box-shadow:
		0 3px 8px rgba(15, 23, 42, 0.14),
		inset 0 1px 2px rgba(15, 23, 42, 0.08);
	transform: translateY(0) scale(0.97) !important;
}

.ahu-card-gallery__button:focus-visible {
	border-color: rgba(200, 32, 47, 0.40) !important;
	outline: 3px solid rgba(200, 32, 47, 0.18);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.ahu-card-gallery {
		padding: 0 7px;
	}

	.ahu-card-gallery__button {
		width: 34px !important;
		height: 34px !important;
		min-width: 34px !important;
		opacity: 0.96;
		transform: none;
	}

	.ahu-card-gallery__button svg {
		width: 16px !important;
		height: 16px !important;
	}
}
