/* Agossa V7 — global visual polish and compatibility layer */
::selection {
	background: #111;
	color: #fff;
}

body {
	background: #fff;
}

.header,
.mobile-header {
	box-shadow: 0 1px 0 rgba(17, 17, 17, .045);
}

.header .header-cart-count.is-empty,
.mobile-header .header-cart-count.is-empty {
	display: none;
}

.header .header-cart-count,
.mobile-header .header-cart-count {
	font-variant-numeric: tabular-nums;
}

/* Generic content cards */
.agossa-content-card {
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.agossa-content-card:hover {
	transform: translateY(-2px);
	border-color: rgba(0, 0, 0, .12);
	box-shadow: 0 18px 44px rgba(17, 17, 17, .07);
}

.agossa-generic-main input:not([type="checkbox"]):not([type="radio"]),
.agossa-generic-main select,
.agossa-generic-main textarea,
.woocommerce-account input:not([type="checkbox"]):not([type="radio"]),
.woocommerce-account select,
.woocommerce-account textarea,
.woocommerce-cart input:not([type="checkbox"]):not([type="radio"]),
.woocommerce-checkout input:not([type="checkbox"]):not([type="radio"]),
.woocommerce-checkout select,
.woocommerce-checkout textarea {
	transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.agossa-generic-main input:focus,
.agossa-generic-main select:focus,
.agossa-generic-main textarea:focus,
.woocommerce-account input:focus,
.woocommerce-account select:focus,
.woocommerce-account textarea:focus,
.woocommerce-cart input:focus,
.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
	outline: 0;
	border-color: rgba(17, 17, 17, .35);
	box-shadow: 0 0 0 3px rgba(17, 17, 17, .055);
}

/* WooCommerce utility buttons outside the custom single-product hero */
body:not(.single-product) .woocommerce a.button,
body:not(.single-product) .woocommerce button.button,
body:not(.single-product) .woocommerce input.button,
body.woocommerce-cart .button,
body.woocommerce-checkout .button,
body.woocommerce-account .button {
	transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body:not(.single-product) .woocommerce a.button:hover,
body:not(.single-product) .woocommerce button.button:hover,
body:not(.single-product) .woocommerce input.button:hover,
body.woocommerce-cart .button:hover,
body.woocommerce-checkout .button:hover,
body.woocommerce-account .button:hover {
	transform: translateY(-1px);
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(17, 17, 17, .04);
}

/* Product group cards get a slightly more premium finish */
.ag-main-product-group-page .category-grid .category .banner-wrapper,
.ag-main-product-group-page .product-grid .product a {
	border-radius: 10px;
}

.ag-main-product-group-page .category-grid .category .banner-wrapper img,
.ag-main-product-group-page .product-grid .product img {
	border-radius: 10px;
}

.ag-main-product-group-page .product-grid .product a {
	transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.ag-main-product-group-page .product-grid .product a:hover {
	transform: translateY(-2px);
	border-color: rgba(0, 0, 0, .12);
	box-shadow: 0 18px 44px rgba(17, 17, 17, .08);
}

.ag-main-product-group-page .product-grid .btn.btn-secondary {
	border-radius: 10px;
	box-shadow: 0 10px 26px rgba(17, 17, 17, .08);
}

/* Better tap targets on smaller screens */
@media (max-width: 991.98px) {
	.mobile-header .header-icon,
	.mobile-header .mobile-menu-toggle {
		min-width: 40px;
		min-height: 40px;
	}
}

/* Accessibility: keep motion comfortable for users who ask for less. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* V6: compact premium treatment for generic WordPress pages. */
.agossa-generic-main {
	--agossa-surface: #f7f7f4;
}

.agossa-generic-main .agossa-content-card {
	border-radius: 12px;
	border: 1px solid rgba(17, 17, 17, .065);
	background: rgba(255, 255, 255, .96);
}

.woocommerce-account .woocommerce-MyAccount-navigation a,
.woocommerce-account .woocommerce-MyAccount-content a,
.woocommerce-cart a,
.woocommerce-checkout a {
	text-underline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Avoid focus rings being clipped inside the bespoke commerce controls. */
.agossa-reference-layout button:focus-visible,
.agossa-reference-layout select:focus-visible,
.agossa-cart-page button:focus-visible,
.agossa-checkout-page button:focus-visible {
	outline-offset: 2px;
}


/* Agossa 2.7 — daha ölçülü, modern köşe sistemi.
 * Dairesel ikonlar/rozetler korunur; içerik ve işlem yüzeyleri daha az yuvarlatılır.
 */
body:not(.wp-admin) .agossa-card,
body:not(.wp-admin) .woocommerce-message,
body:not(.wp-admin) .woocommerce-info,
body:not(.wp-admin) .woocommerce-error {
	border-radius: 10px;
}

body:not(.wp-admin) .ag-main-product-group-page .category-grid .category .banner-wrapper,
body:not(.wp-admin) .ag-main-product-group-page .category-grid .category .banner-wrapper img,
body:not(.wp-admin) .ag-main-product-group-page .product-grid .product a,
body:not(.wp-admin) .ag-main-product-group-page .product-grid .product img {
	border-radius: 9px;
}

body:not(.wp-admin) .ag-main-product-group-page .product-grid .btn.btn-secondary {
	border-radius: 9px;
}

/* Standart WooCommerce sayfalarında kart/buton köşelerini sakinleştir.
 * Tek ürün özel hero kontrolleri kendi dosyasında ayrıca ayarlanır.
 */
body:not(.single-product) .woocommerce a.button,
body:not(.single-product) .woocommerce button.button,
body:not(.single-product) .woocommerce input.button,
body.woocommerce-cart .button,
body.woocommerce-checkout .button,
body.woocommerce-account .button {
	border-radius: 9px;
}


/* Ana sayfa hesaplayıcıda da kapsül yerine daha rafine radius. */
body:not(.wp-admin) .ag-stone-calculator .ag-calc-pill-input,
body:not(.wp-admin) .ag-stone-calculator .ag-calc-measurement__pill {
	border-radius: 10px;
}
