/* ==========================================================================
   nond — mağaza (WooCommerce varsayılan CSS kapalı)
   ========================================================================== */

.woocommerce .onsale,
.star-rating,
.woocommerce-review-link { display: none; }

/* ---------- Fiyat ---------- */

.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-weight: 600; }
.price del { color: var(--muted); font-weight: 400; }
.price ins { text-decoration: none; }
.price del + ins, .product-card__price del ~ ins { color: var(--sale); }
.woocommerce-Price-currencySymbol { margin-left: 0.15em; }

/* ---------- Ürün kartı ---------- */

ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 900px) { ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px var(--gap); } }

.product-card__link { display: block; }
.product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--grey);
}
.product-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card__img--alt { opacity: 0; transition: opacity 0.25s; }
@media (hover: hover) {
	.product-card.has-alt:hover .product-card__img--alt { opacity: 1; }
}
.product-card__tag {
	position: absolute;
	left: 8px;
	top: 8px;
	background: #fff;
	padding: 4px 8px;
	font-size: 10px;
	font-weight: 700;
	font-stretch: var(--wide);
	text-transform: uppercase;
}
.product-card.outofstock .product-card__img { opacity: 0.55; }

.product-card__meta { display: grid; gap: 6px; padding: 10px 6px 0; }
.product-card__title {
	font-size: 12px;
	font-weight: 500;
	font-stretch: var(--wide);
	line-height: 1.35;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.product-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 13px; }
.product-card__price .price { gap: 8px; }
.product-card__pct { color: var(--sale); font-weight: 700; font-size: 12px; }
.product-card__colors {
	display: flex;
	align-items: center;
	gap: 5px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 500;
	font-stretch: var(--wide);
	text-transform: uppercase;
}
.product-card__colors i { width: 11px; height: 11px; border: 1px solid rgba(0, 0, 0, 0.18); }
.product-card__colors i:last-of-type { margin-right: 3px; }

/* ---------- Mağaza ---------- */

.shop-main { padding-top: 8px; }
.shop-head { display: grid; gap: 10px; padding: 20px calc(var(--pad) - var(--grid-pad)) 18px; }
.shop-head .display-xl { font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; }
.term-description { color: var(--muted); max-width: 60ch; }
.breadcrumb { font-size: 12px; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }

.shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 12px calc(var(--pad) - var(--grid-pad));
	margin-bottom: 18px;
	border-block: 1px solid var(--line);
}
.shop-toolbar__right { display: flex; align-items: center; gap: 18px; }
.woocommerce-result-count { margin: 0; color: var(--muted); font-size: 12px; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select {
	appearance: none;
	-webkit-appearance: none;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111'/%3E%3C/svg%3E") right 12px center no-repeat;
	padding: 0 34px 0 12px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	cursor: pointer;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--line);
	font-size: 11px;
	font-weight: 600;
	font-stretch: var(--wide);
	text-transform: uppercase;
}
.pills a:hover { border-color: var(--ink); }
.pills a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.woocommerce-pagination { margin-top: 48px; }
.woocommerce-pagination ul { display: flex; justify-content: center; gap: 4px; list-style: none; padding: 0; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--line); font-size: 13px; }
.woocommerce-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Bildirimler ---------- */

.woocommerce-info, .woocommerce-message, .woocommerce-error {
	list-style: none;
	margin: 0 0 20px;
	padding: 14px 16px;
	background: var(--grey);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
}
.woocommerce-error { color: var(--sale); }
.woocommerce-message .button, .woocommerce-info .button { min-height: 38px; padding: 0 18px; order: 2; }

/* ---------- Tek ürün ---------- */

.single-product .shop-main { padding-inline: var(--grid-pad); }
.single-product div.product { display: grid; gap: 24px; }
@media (min-width: 960px) {
	.single-product div.product {
		grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr);
		gap: 40px;
		align-items: start;
	}
	.single-product div.product > .summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 8px var(--pad) 0 0; }
	.single-product div.product > .related, .single-product div.product > .up-sells { grid-column: 1 / -1; }
}

.woocommerce-product-gallery { position: relative; margin: 0 calc(var(--grid-pad) * -1); }
.woocommerce-product-gallery__wrapper { display: grid; gap: var(--gap); margin: 0; }
.woocommerce-product-gallery__image { background: var(--grey); }
.woocommerce-product-gallery__image img { width: 100%; height: auto; }
.woocommerce-product-gallery__trigger { display: none; }
@media (max-width: 959px) {
	.woocommerce-product-gallery__wrapper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.woocommerce-product-gallery__wrapper::-webkit-scrollbar { display: none; }
	.woocommerce-product-gallery__image { flex: 0 0 88%; scroll-snap-align: start; }
	.woocommerce-product-gallery__image:only-child { flex-basis: 100%; }
}
@media (min-width: 960px) {
	.woocommerce-product-gallery { margin: 0; }
	.woocommerce-product-gallery__wrapper { grid-template-columns: 1fr 1fr; }
}

.summary { display: grid; gap: 14px; align-content: start; padding-inline: calc(var(--pad) - var(--grid-pad)); }
.summary .breadcrumb { margin-bottom: 4px; }
.summary .edition { font-size: 12px; color: var(--muted); }
.summary .product_title {
	font-size: clamp(18px, 1.8vw, 24px);
	font-weight: 700;
	font-stretch: var(--wide);
	line-height: 1.2;
	text-transform: uppercase;
}
.summary > .price { font-size: 18px; }
.summary .badge { justify-self: start; background: var(--sale); color: #fff; padding: 3px 8px; font-size: 11px; font-weight: 700; }
.woocommerce-product-details__short-description { color: #444; }

form.cart { display: grid; gap: 14px; margin-top: 6px; }
form.cart:not(.variations_form), .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }

table.variations { border-collapse: collapse; width: 100%; }
table.variations tr { display: grid; gap: 8px; margin-bottom: 14px; }
table.variations th, table.variations td { display: block; padding: 0; text-align: left; }
table.variations label { font-size: 12px; font-weight: 700; font-stretch: var(--wide); text-transform: uppercase; }
table.variations select, .woocommerce form select {
	width: 100%;
	height: 48px;
	padding: 0 36px 0 12px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111'/%3E%3C/svg%3E") right 14px center no-repeat;
	appearance: none;
	-webkit-appearance: none;
}
/* JS ile seçenek butonlarına çevrilince select gizlenir */
table.variations select.is-enhanced { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.opt-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-buttons button {
	min-width: 48px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line);
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	font-stretch: var(--wide);
	text-transform: uppercase;
}
.opt-buttons button:hover { border-color: var(--ink); }
.opt-buttons button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt-buttons button:disabled { color: #bbb; text-decoration: line-through; cursor: not-allowed; border-color: var(--line); background: #fff; }
.reset_variations { font-size: 12px; color: var(--muted); text-decoration: underline; display: inline-block; margin-top: 4px; }
.woocommerce-variation-price .price { font-size: 18px; }
.stock { font-size: 12px; font-weight: 600; }
.stock.out-of-stock { color: var(--sale); }

.quantity input.qty { width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 0; text-align: center; font-weight: 600; background: #fff; }
.single_add_to_cart_button { width: 100%; min-height: 52px; }
.single_add_to_cart_button.disabled { opacity: 0.35; cursor: not-allowed; }

.assurance { display: grid; gap: 6px; margin: 4px 0 0; padding: 14px; background: var(--grey); font-size: 12px; }
.assurance li::before { content: "✓ "; font-weight: 700; }

.product-accordion { border-top: 1px solid var(--line); margin-top: 8px; }
.product-accordion__item { border-bottom: 1px solid var(--line); }
.product-accordion__item summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-block: 16px;
	font-size: 12px;
	font-weight: 700;
	font-stretch: var(--wide);
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}
.product-accordion__item summary::-webkit-details-marker { display: none; }
.product-accordion__sign::before { content: "+"; font-size: 18px; font-weight: 400; }
details[open] .product-accordion__sign::before { content: "−"; }
.product-accordion__body { padding-bottom: 18px; color: #333; }
.product-accordion__body > * + * { margin-top: 0.8em; }
.product-accordion__body h2 { display: none; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.woocommerce-product-attributes th { color: var(--muted); width: 40%; }
.woocommerce-product-attributes p { margin: 0; }

.related, .up-sells { padding-top: 56px; }
.related > h2, .up-sells > h2 {
	font-size: clamp(16px, 1.6vw, 22px);
	font-weight: 800;
	font-stretch: var(--wide);
	text-transform: uppercase;
	padding: 0 calc(var(--pad) - var(--grid-pad)) 18px;
}

/* ---------- Formlar ---------- */

.woocommerce form .form-row { display: grid; gap: 6px; margin: 0 0 16px; }
.woocommerce form .form-row label { font-size: 12px; font-weight: 600; }
.woocommerce form .input-text,
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="password"],
.woocommerce form input[type="tel"],
.woocommerce form textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: #fff;
	outline: none;
}
.woocommerce form .input-text:focus { border-color: var(--ink); }
.woocommerce form .required { color: var(--sale); text-decoration: none; }
.woocommerce-form-login__rememberme { display: flex !important; align-items: center; gap: 8px; }
.lost_password a { text-decoration: underline; text-underline-offset: 3px; }

.u-columns, .woocommerce .col2-set { display: grid; gap: 40px; }
@media (min-width: 900px) { .u-columns, .woocommerce .col2-set { grid-template-columns: 1fr 1fr; gap: 56px; } }
.u-columns h2, .woocommerce-MyAccount-content h2, .woocommerce .col2-set h3 { font-size: 18px; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; margin-bottom: 18px; }

.woocommerce-account .woocommerce { display: grid; gap: 32px; }
@media (min-width: 900px) { .woocommerce-account.logged-in .woocommerce { grid-template-columns: 220px 1fr; gap: 48px; } }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.woocommerce-MyAccount-navigation .is-active a { font-weight: 800; }
.woocommerce-MyAccount-content > p { margin-bottom: 1em; }
.woocommerce-MyAccount-content a:not(.button) { text-decoration: underline; text-underline-offset: 3px; }

.shop_table { width: 100%; border-collapse: collapse; }
.shop_table th, .shop_table td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.shop_table thead th { font-size: 12px; font-weight: 700; text-transform: uppercase; }

/* ---------- Blok sepet / ödeme ---------- */

.wc-flow { padding-bottom: 32px; }
.wc-flow .page-head h1 { font-size: clamp(22px, 2.6vw, 34px); }
.wc-flow *:where(.wc-block-components-button, .wc-block-components-text-input input, .wc-blocks-components-select__select, .wc-block-components-radio-control-accordion-option, .wc-block-components-notice-banner, .wc-block-components-quantity-selector) { border-radius: 0 !important; }
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	min-height: 52px;
	background: var(--ink) !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-stretch: var(--wide);
	text-transform: uppercase;
}
.wc-block-components-button:not(.is-link):hover { opacity: 0.85; }
.wc-block-components-title.wc-block-components-title,
.wc-block-components-checkout-step__title { font-size: 14px !important; font-weight: 800 !important; font-stretch: var(--wide); text-transform: uppercase; }
.wc-block-components-product-name { font-weight: 600; text-decoration: none; text-transform: uppercase; font-size: 13px; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 18px; font-weight: 800; }
