/* ==========================================================================
   RAFF COMMERCE SHELL — tek stil dosyası (ürün detay + sepet + checkout).
   Tema bağımsız: değerler doğrudan RAFF'ın gerçek marka renginden alınıp
   BURADA SABİTLENDİ (raff-theme/assets/css/raff.css içindeki --kestane:#a96827
   ve raff-theme/assets/css/raff-commerce.css içindeki --kestane-koyu:#7b461b
   — tahmin edilmedi, kod tabanından okunup doğrulandı). Tema kaldırılsa/
   değişse bile bu plugin kendi rengini korur.

   Design direction: 9 · İsviçre (references/raff-sepet-10-stil.html,
   [data-theme="isvicre"]) + RAFF kestane accent — referansın kırmızısı
   (#e0392b) KULLANILMADI.
   ========================================================================== */

:root {
	--raff-commerce-bg: #ffffff;
	--raff-commerce-surface: #f7f7f5;
	--raff-commerce-ink: #0a0a0a;
	--raff-commerce-muted: #737373;
	--raff-commerce-line: rgba(10, 10, 10, .13);

	--raff-commerce-accent: #a96827;       /* RAFF kestane — raff.css --kestane ile birebir */
	--raff-commerce-accent-hover: #7b461b; /* RAFF kestane-koyu — raff-commerce.css (tema) ile birebir */
	--raff-commerce-accent-ink: #ffffff;
	--raff-commerce-sale: #a96827;

	--raff-commerce-font: "Archivo", sans-serif;

	--raff-space-1: 4px;
	--raff-space-2: 8px;
	--raff-space-3: 12px;
	--raff-space-4: 16px;
	--raff-space-5: 24px;
	--raff-space-6: 32px;
	--raff-space-7: 48px;
	--raff-space-8: 64px;

	--raff-commerce-max: 1500px;
	--raff-commerce-gutter: clamp(16px, 3.4vw, 48px);
	--raff-commerce-field-h: 48px;
}

/* ============================================================
   0 · Reset / temel — YALNIZCA .raff-commerce-shell kapsamında
   (görev §48: global button{}/input{}/img{} gibi tehlikeli seçiciler yok)
   ============================================================ */
.raff-commerce-shell,
.raff-commerce-shell * {
	box-sizing: border-box;
}
.raff-commerce-shell {
	font-family: var(--raff-commerce-font);
	color: var(--raff-commerce-ink);
	background: var(--raff-commerce-bg);
	max-width: var(--raff-commerce-max);
	margin: 0 auto;
	padding: 0 var(--raff-commerce-gutter) var(--raff-space-8);
}
/* Kök neden notu: raff.css (ana tema dosyası, HER SAYFADA yüklü, ürün/sepet/
   checkout'a özel değil) düz metin sayfaları (Hakkımızda vb.) için
   `.raff-page-content { max-width:74ch }` + checkout/cart için 760px/960px
   dar bir "okuma genişliği" fallback'i tanımlıyor. Önceki tema-tabanlı
   sistemde `raff-commerce.css` bunu KENDİ (daha geniş) `--commerce-content-max`
   değeriyle eziyordu — shell bu dosyayı DEQUEUE ettiği için (görev §5) o ezme
   artık YOK, raff.css'in dar fallback'i çıplak kalıp checkout'u 760px'e
   sıkıştırıyordu (canlı testte KATASTROFİK layout çakışması olarak
   yakalandı). Shell kendi (daha geniş, doğru) genişliğini burada geri verir. */
body.woocommerce-cart .raff-page-content,
body.woocommerce-checkout .raff-page-content {
	max-width: none;
}
.raff-commerce-shell button {
	font: inherit;
	color: inherit;
	background: none;
	border: none;
	cursor: pointer;
}
.raff-commerce-shell img {
	display: block;
	max-width: 100%;
}
.raff-commerce-shell a {
	color: inherit;
}
.raff-shell-sr-only {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================================
   1 · ÜRÜN DETAY (görev §8-22)
   ============================================================ */
.raff-shell-product__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--raff-space-6);
	padding-top: var(--raff-space-5);
	align-items: start;
}
@media (min-width: 1024px) {
	.raff-shell-product__layout {
		/* görev §9: galeri 58% / bilgi 42% */
		grid-template-columns: 1.4fr 1fr;
		gap: var(--raff-space-7);
	}
	.raff-shell-product__info {
		position: sticky;
		top: var(--raff-space-6);
	}
}

.raff-shell-eyebrow {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--raff-commerce-muted);
	margin: 0 0 var(--raff-space-2);
}
.raff-shell-product__title {
	font-family: var(--raff-commerce-font);
	font-weight: 700;
	font-size: clamp(26px, 2.6vw, 44px);
	line-height: 1.08;
	letter-spacing: -.01em;
	margin: 0 0 var(--raff-space-4);
}
/* Sale flash `woocommerce_before_single_product_summary` (priority 10) ile
   galeriden ÖNCE render edilir (WC çekirdek sıralaması) — görsel olarak
   galerinin SOL-ÜST köşesine oturması için gallery wrapper konumlandırma
   bağlamı sağlar. */
.raff-shell-product__gallery { position: relative; min-width: 0; }
/* flexslider'ın kendi genişlik matematiği bu temel çerçeveye bağımlı —
   eksik olması slide'ların yanlış/taşkın konuma kaymasına yol açar
   (bu görevde canlı testte yakalandı, önceki tema CSS'inden taşındı). */
.woocommerce-product-gallery {
	position: relative;
	max-width: 100%;
	overflow: hidden;
}
.woocommerce-product-gallery__wrapper {
	margin: 0;
	max-width: none;
}
.woocommerce-product-gallery .flex-viewport {
	max-width: 100%;
	overflow: hidden;
}
.woocommerce-product-gallery__image {
	max-width: 100%;
}
.woocommerce-product-gallery__image img {
	max-width: 100%;
	height: auto;
}
.woocommerce-product-gallery__image + .woocommerce-product-gallery__image {
	margin-top: 2px;
}
.raff-shell-badge {
	position: absolute;
	top: var(--raff-space-3);
	left: var(--raff-space-3);
	z-index: 3;
	display: inline-block;
	background: var(--raff-commerce-accent);
	color: var(--raff-commerce-accent-ink);
	border-radius: 0;
	padding: 5px 10px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.raff-shell-price {
	font-size: 15px;
	margin-bottom: var(--raff-space-5);
	padding-bottom: var(--raff-space-4);
	border-bottom: 1px solid var(--raff-commerce-line);
	display: flex;
	align-items: baseline;
	gap: var(--raff-space-3);
	flex-wrap: wrap;
}
.raff-shell-price del {
	color: var(--raff-commerce-muted);
	text-decoration: line-through;
	font-size: 14px;
	font-weight: 400;
}
.raff-shell-price ins {
	color: var(--raff-commerce-accent);
	font-weight: 600;
	font-size: 19px;
	text-decoration: none;
}
.raff-shell-price.raff-price--range,
.raff-shell-price.raff-price--select-size {
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--raff-commerce-muted);
}
.raff-shell-description {
	font-size: 15px;
	line-height: 1.65;
	max-width: 52ch;
	margin-bottom: var(--raff-space-5);
}
.raff-shell-description p {
	margin: 0 0 var(--raff-space-2);
}
.raff-shell-meta {
	margin-top: var(--raff-space-5);
	padding-top: var(--raff-space-4);
	border-top: 1px solid var(--raff-commerce-line);
	font-size: 11px;
	color: var(--raff-commerce-muted);
	display: flex;
	flex-wrap: wrap;
	gap: var(--raff-space-2) var(--raff-space-4);
}
.raff-shell-meta a {
	color: var(--raff-commerce-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---------- Varyasyon formu (WC native form, shell CSS'iyle giydirilir) ---------- */
.raff-shell-product__info table.variations {
	width: 100%;
	border: none;
	margin-bottom: var(--raff-space-1);
}
.raff-shell-product__info table.variations tr {
	display: block;
}
.raff-shell-product__info table.variations tr + tr {
	margin-top: var(--raff-space-5);
}
.raff-shell-product__info table.variations th.label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--raff-commerce-muted);
	padding: 0 0 10px;
	text-align: left;
}
.raff-shell-product__info table.variations td {
	display: block;
	padding: 0;
}
/* Native select DOM'da kalır (erişilebilirlik/progressive enhancement source
   of truth) ama görsel olarak gizlenir — shell JS bunun option'larından
   buton satırı üretir (görev §14: "native select müşteriye görünmesin"). */
.raff-shell-product__info table.variations select.raff-shell-variation-select--enhanced {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.raff-shell-product__info table.variations select {
	width: 100%;
	height: var(--raff-commerce-field-h);
	border: 1px solid var(--raff-commerce-line);
	border-radius: 0;
	background: var(--raff-commerce-bg);
	padding: 0 var(--raff-space-3);
	font-family: var(--raff-commerce-font);
}

.raff-shell-variation-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--raff-space-2);
	margin-bottom: var(--raff-space-1);
}
/* RENK — alt çizgi tabanlı (görev §14) */
.raff-shell-variation-row[data-attribute*="renk"] {
	gap: var(--raff-space-1) var(--raff-space-5);
	padding-bottom: var(--raff-space-3);
	border-bottom: 1px solid var(--raff-commerce-line);
}
.raff-shell-variation-row[data-attribute*="renk"] .raff-shell-variation-btn {
	min-width: 0;
	height: auto;
	padding: 2px 0 6px;
	border: none;
	border-bottom: 2px solid transparent;
	background: none;
	font-size: 14px;
	font-weight: 500;
}
.raff-shell-variation-row[data-attribute*="renk"] .raff-shell-variation-btn:hover {
	border-bottom-color: var(--raff-commerce-line);
}
.raff-shell-variation-row[data-attribute*="renk"] .raff-shell-variation-btn.is-selected {
	border-bottom-color: var(--raff-commerce-accent);
	font-weight: 700;
}
.raff-shell-variation-row[data-attribute*="renk"] .raff-shell-variation-btn:disabled,
.raff-shell-variation-row[data-attribute*="renk"] .raff-shell-variation-btn.is-disabled {
	color: rgba(10, 10, 10, .28);
}
.raff-shell-variation-row[data-attribute*="renk"] .raff-shell-variation-btn.is-outofstock {
	color: rgba(10, 10, 10, .35);
	text-decoration: line-through;
}
.raff-shell-variation-row[data-attribute*="renk"] .raff-shell-variation-btn.is-selected.is-outofstock {
	color: rgba(10, 10, 10, .5);
	border-bottom-color: var(--raff-commerce-line);
}

/* BEDEN — sıkı kare grid (görev §15) */
.raff-shell-variation-row[data-attribute*="beden"] .raff-shell-variation-btn {
	min-width: 44px;
	height: 44px;
	padding: 0 var(--raff-space-3);
	border: 1px solid var(--raff-commerce-line);
	border-radius: 0;
	background: var(--raff-commerce-bg);
	font-size: 13px;
	font-weight: 500;
}
.raff-shell-variation-row[data-attribute*="beden"] .raff-shell-variation-btn:hover {
	border-color: var(--raff-commerce-ink);
}
.raff-shell-variation-row[data-attribute*="beden"] .raff-shell-variation-btn.is-selected {
	background: var(--raff-commerce-accent);
	border-color: var(--raff-commerce-accent);
	color: var(--raff-commerce-accent-ink);
	font-weight: 600;
}
.raff-shell-variation-row[data-attribute*="beden"] .raff-shell-variation-btn:disabled,
.raff-shell-variation-row[data-attribute*="beden"] .raff-shell-variation-btn.is-disabled {
	color: rgba(10, 10, 10, .28);
	border-color: var(--raff-commerce-line);
	background: repeating-linear-gradient(-45deg, var(--raff-commerce-surface) 0 4px, var(--raff-commerce-bg) 4px 8px);
}
.raff-shell-variation-row[data-attribute*="beden"] .raff-shell-variation-btn.is-outofstock {
	color: rgba(10, 10, 10, .35);
	border-color: var(--raff-commerce-line);
	text-decoration: line-through;
}
.raff-shell-variation-row[data-attribute*="beden"] .raff-shell-variation-btn.is-selected.is-outofstock {
	background: rgba(169, 104, 39, .45);
	border-color: var(--raff-commerce-accent);
	color: rgba(255, 255, 255, .75);
}
a.reset_variations {
	font-size: 11px;
	color: var(--raff-commerce-muted);
	border-bottom: 1px solid var(--raff-commerce-line);
	padding-bottom: 1px;
	margin: var(--raff-space-1) 0 var(--raff-space-5);
	display: inline-block;
	text-decoration: none;
}
a.reset_variations:hover {
	color: var(--raff-commerce-ink);
	border-bottom-color: var(--raff-commerce-ink);
}
.woocommerce-variation-availability {
	font-size: 11px;
	color: var(--raff-commerce-muted);
	margin-bottom: var(--raff-space-2);
}

/* ---------- Quantity + Sepete Ekle — görsel olarak birleşik (görev §16) ---------- */
.raff-shell-product__info form.cart {
	margin-top: var(--raff-space-4);
	margin-bottom: var(--raff-space-5);
}
.raff-shell-product__info .quantity,
.raff-shell-cart-row .quantity,
.woocommerce-checkout .quantity {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--raff-commerce-line);
	height: 44px;
}
.raff-shell-product__info .quantity input.qty,
.raff-shell-cart-row .quantity input.qty {
	width: 48px;
	height: 100%;
	border: none;
	background: transparent;
	text-align: center;
	font-family: var(--raff-commerce-font);
	font-size: 14px;
	padding: 0;
	-moz-appearance: textfield;
}
.quantity input.qty::-webkit-inner-spin-button,
.quantity input.qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.raff-shell-qty-btn {
	width: 44px;
	height: 100%;
	min-width: 44px;
	display: grid;
	place-items: center;
	font-size: 16px;
}
.raff-shell-qty-btn:hover {
	background: var(--raff-commerce-surface);
	color: var(--raff-commerce-accent);
}
.raff-shell-qty-btn:disabled {
	color: rgba(10, 10, 10, .28);
	cursor: not-allowed;
}
.raff-shell-product__info .single_add_to_cart_button {
	background: var(--raff-commerce-accent);
	border: 1px solid var(--raff-commerce-accent);
	color: var(--raff-commerce-accent-ink);
	border-radius: 0;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .05em;
	text-transform: uppercase;
	height: 44px;
	padding: 0 var(--raff-space-6);
	margin-left: var(--raff-space-3);
}
@media (min-width: 460px) {
	.raff-shell-product__info form.cart .quantity {
		float: left;
	}
}
.raff-shell-product__info .single_add_to_cart_button:hover {
	background: var(--raff-commerce-accent-hover);
	border-color: var(--raff-commerce-accent-hover);
}
.raff-shell-product__info .single_add_to_cart_button.disabled,
.raff-shell-product__info .single_add_to_cart_button:disabled {
	background: var(--raff-commerce-surface);
	border-color: var(--raff-commerce-line);
	color: var(--raff-commerce-muted);
}

/* ---------- Galeri (görev §17-21: WC native gallery, yalnızca çerçeve/thumbnail CSS'i) ---------- */
.raff-shell-product__gallery {
	background: var(--raff-commerce-bg);
}
.woocommerce-product-gallery__image {
	background: var(--raff-commerce-surface);
}
.raff-shell-product .woocommerce-product-gallery__image img,
.raff-shell-product .woocommerce-product-gallery__image--placeholder img {
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3; /* Trendyol 1200x1800 doğrulanmış canonical oran — bkz. gallery-test.md */
	object-fit: cover;
	display: block;
}
.woocommerce-product-gallery__trigger {
	position: absolute; top: 16px; right: 16px; z-index: 2;
	width: 34px; height: 34px; display: grid; place-items: center;
	background: rgba(255, 255, 255, .92);
	color: var(--raff-commerce-ink);
	font-size: 0 !important;
	border-radius: 0;
}
.woocommerce-product-gallery__trigger::before {
	content: "";
	width: 16px; height: 16px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce-product-gallery .flex-control-thumbs {
	display: flex; flex-wrap: wrap; gap: var(--raff-space-2);
	list-style: none; margin: var(--raff-space-2) 0 0; padding: 0;
}
.woocommerce-product-gallery .flex-control-thumbs li {
	width: calc(25% - 6px);
	flex: none;
}
.woocommerce-product-gallery .flex-control-thumbs img {
	display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
	cursor: pointer; opacity: .55; border: 1px solid transparent;
}
.woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: .85; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	opacity: 1; border-color: var(--raff-commerce-accent); border-width: 2px;
}
.pswp__bg { background: rgb(10, 10, 10); }

/* ---------- Sekmeler ---------- */
.raff-shell-product__tabs { margin-top: var(--raff-space-7); }
.raff-shell-product__tabs .woocommerce-tabs ul.tabs {
	list-style: none; display: flex; gap: var(--raff-space-5);
	border-bottom: 1px solid var(--raff-commerce-line);
	padding: 0; margin: 0 0 var(--raff-space-5);
	overflow-x: auto;
}
.raff-shell-product__tabs .woocommerce-tabs ul.tabs li { margin: 0; }
.raff-shell-product__tabs .woocommerce-tabs ul.tabs li a {
	display: block; padding: 12px 0;
	font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
	color: var(--raff-commerce-muted); white-space: nowrap;
}
.raff-shell-product__tabs .woocommerce-tabs ul.tabs li.active a { color: var(--raff-commerce-ink); }
.raff-shell-product__tabs .woocommerce-tabs .panel { font-size: 15px; line-height: 1.7; }

/* ---------- Mobil sticky buybar ---------- */
.raff-shell-buybar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
	display: none; align-items: center; justify-content: space-between; gap: var(--raff-space-4);
	padding: var(--raff-space-3) var(--raff-commerce-gutter);
	padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	background: var(--raff-commerce-bg);
	border-top: 1px solid var(--raff-commerce-line);
	box-shadow: 0 -4px 16px rgba(10, 10, 10, .08);
	transform: translateY(100%);
	transition: transform .25s ease;
}
.raff-shell-buybar.is-visible { display: flex; transform: translateY(0); }
.raff-shell-buybar__price { font-size: 15px; flex: none; }
.raff-shell-buybar__cta {
	flex: 1; max-width: 220px; height: 46px;
	background: var(--raff-commerce-accent); color: var(--raff-commerce-accent-ink);
	font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.raff-shell-buybar__cta:hover { background: var(--raff-commerce-accent-hover); }
.raff-shell-buybar__cta:disabled { background: var(--raff-commerce-surface); color: var(--raff-commerce-muted); }
body.raff-shell-has-buybar { padding-bottom: 74px; }
body.raff-shell-near-footer .raff-shell-buybar { display: none !important; }

/* ============================================================
   2 · TOAST (görev §27)
   ============================================================ */
.raff-shell-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 200;
	transform: translate(-50%, 12px);
	background: var(--raff-commerce-ink); color: #fff;
	font-size: 13px; font-weight: 500;
	padding: 13px 24px;
	max-width: calc(100vw - 32px);
	text-align: center;
	opacity: 0; pointer-events: none;
	transition: opacity .3s ease, transform .3s ease;
}
.raff-shell-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.raff-shell-toast__link { color: #fff; text-decoration: underline; text-underline-offset: 2px; margin-left: 8px; }
body.raff-shell-has-buybar .raff-shell-toast,
body.raff-shell-has-checkout-stickybar .raff-shell-toast { bottom: 84px; }

.woocommerce-error, .woocommerce-info {
	background: var(--raff-commerce-surface);
	border: none; border-left: 3px solid var(--raff-commerce-accent); border-radius: 0;
	padding: var(--raff-space-4) var(--raff-space-5);
	font-size: 14px; list-style: none;
	margin: 0 0 var(--raff-space-5);
}
.raff-commerce-shell .woocommerce-error li,
.raff-commerce-shell .woocommerce-info li { list-style: none; }

/* ============================================================
   3 · CART (görev §23-33)
   ============================================================ */
/* raff.css site geneli h1/h2/h3'e serif --display fontu veriyor (Kenjo I/
   Bodoni Moda) — "SEPET"/"ÖDEME" bu tema kuralının OUTSIDE'ında değil,
   page.php'nin paylaşılan .raff-page-header'ı İÇİNDE (şell wrapper'ın
   DIŞINDA) render ediliyor, bu yüzden .raff-commerce-shell scope'u onu
   kapsamıyor — burada AYRICA, body class'a bağlı olarak hedeflenir. */
body.woocommerce-cart .raff-page-header h1,
body.woocommerce-checkout .raff-page-header h1 {
	font-family: var(--raff-commerce-font);
	font-weight: 700;
	text-transform: uppercase;
}
body.woocommerce-cart .raff-page-header h1::after {
	content: attr(data-count);
	display: inline-block;
	margin-left: var(--raff-space-4);
	font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
	color: var(--raff-commerce-muted);
	vertical-align: middle;
}

.raff-shell-shipprogress { padding: var(--raff-space-4) 0; border-bottom: 1px solid var(--raff-commerce-line); margin-bottom: var(--raff-space-5); }
.raff-shell-shipprogress__text { font-size: 12px; font-weight: 500; margin: 0 0 var(--raff-space-2); }
.raff-shell-shipprogress__track { height: 2px; background: var(--raff-commerce-line); }
.raff-shell-shipprogress__fill { height: 2px; background: var(--raff-commerce-accent); }

/* Kök neden notu: önceki taslak, sepet sayfasının SOL kolonunu (görev §24:
   yalnızca ~%66-68'i) satır başına 4 sabit-genişlikli yan yana kolona
   (isim/fiyat/adet/ara toplam) bölmeye çalışıyordu — canlı ölçümde SOL kolon
   genişliği (~318-414px, sağ özet paneli 400px sabit aldığı için) bunu
   FİZİKSEL OLARAK barındıramıyordu, metin/fiyat üst üste biniyordu. Görev
   §25'in kendi ASCII örneği de aslında yan yana rijit kolonlar DEĞİL,
   görsel yanında dikey İSTİFLENMİŞ bir bilgi bloğu gösteriyor (adet+kaldır
   aynı satırda, ara toplam en altta sağa yaslı) — bu CSS o deseni birebir
   uygular, masaüstü/mobil için AYRI bir yapı icat etmez (tek, sağlam desen). */
.raff-shell-cart-row {
	display: flex; gap: var(--raff-space-5);
	padding: var(--raff-space-6) 0;
	border-bottom: 1px solid var(--raff-commerce-line);
}
.raff-shell-cart-row:first-child { border-top: 1px solid var(--raff-commerce-line); }
.raff-shell-cart-row__media { flex: 0 0 auto; background: var(--raff-commerce-surface); }
.raff-shell-cart-row__media img { width: 150px; height: 225px; object-fit: cover; display: block; }
.raff-shell-cart-row__body {
	flex: 1 1 auto; min-width: 0;
	display: flex;
	flex-direction: column;
}
.raff-shell-cart-row__name { font-weight: 600; font-size: 17px; margin: 0 0 6px; }
.raff-shell-cart-row__name a { text-decoration: none; }
.raff-shell-cart-row__variation { font-size: 12.5px; color: var(--raff-commerce-muted); margin-bottom: var(--raff-space-2); }
.raff-shell-cart-row__price { font-size: 14px; font-weight: 500; margin-bottom: var(--raff-space-3); }
.raff-shell-cart-row__footer {
	margin-top: auto;
	display: flex; align-items: center; justify-content: space-between; gap: var(--raff-space-4); flex-wrap: wrap;
}
.raff-shell-cart-row__remove {
	font-size: 12px; color: var(--raff-commerce-muted);
	border-bottom: 1px solid var(--raff-commerce-line);
	text-decoration: none;
}
.raff-shell-cart-row__remove:hover { color: var(--raff-commerce-accent); border-bottom-color: var(--raff-commerce-accent); }
.raff-shell-cart-row__subtotal { font-size: 15px; font-weight: 600; margin-left: auto; }

.raff-shell-coupon-trigger {
	font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
	margin-bottom: var(--raff-space-4);
	display: inline-block;
}
.raff-shell-coupon-trigger:hover { color: var(--raff-commerce-accent); }
.raff-shell-cart__actions .coupon { display: flex; gap: 0; margin-bottom: var(--raff-space-6); }
.raff-shell-cart__actions .coupon.raff-shell-coupon-collapsed { display: none !important; }
.raff-shell-coupon input#coupon_code {
	flex: 1; min-width: 0; height: var(--raff-commerce-field-h);
	border: 1px solid var(--raff-commerce-line); border-right: none; border-radius: 0;
	padding: 0 var(--raff-space-4); font-family: var(--raff-commerce-font); font-size: 13px;
}
.raff-shell-coupon input#coupon_code:focus { border-color: var(--raff-commerce-accent); outline: none; }
.raff-shell-coupon__apply {
	height: var(--raff-commerce-field-h); padding: 0 var(--raff-space-5);
	background: var(--raff-commerce-ink); color: #fff; border-radius: 0;
	font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.raff-shell-coupon__apply:hover { background: var(--raff-commerce-accent); }

.raff-shell-empty { text-align: center; padding: var(--raff-space-8) 0; }
.raff-shell-empty__title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin: 0 0 var(--raff-space-3); }
.raff-shell-empty__desc { color: var(--raff-commerce-muted); margin: 0 0 var(--raff-space-5); }
.raff-shell-empty__cta {
	display: inline-block; padding: 16px 32px;
	background: var(--raff-commerce-accent); color: #fff;
	font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
	text-decoration: none;
}
.raff-shell-empty__cta:hover { background: var(--raff-commerce-accent-hover); }

/* ---------- Sipariş özeti (cart + checkout ortak, görev §31/§39) ---------- */
.raff-shell-summary {
	background: var(--raff-commerce-surface);
	border-radius: 0; box-shadow: none;
	padding: var(--raff-space-6);
}
.raff-shell-summary__title {
	font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	margin: 0 0 var(--raff-space-5);
	padding-bottom: var(--raff-space-4);
	border-bottom: 1px solid var(--raff-commerce-line);
}
.raff-shell-summary__row {
	display: flex; justify-content: space-between; gap: var(--raff-space-3);
	padding: 10px 0;
	border-bottom: 1px solid var(--raff-commerce-line);
	font-size: 13.5px; font-weight: 500;
}
.raff-shell-summary__row--total {
	font-weight: 700; font-size: 18px;
	border-top: 2px solid var(--raff-commerce-ink); border-bottom: none;
	padding-top: var(--raff-space-4); margin-top: var(--raff-space-2);
}
.raff-shell-summary__row--discount span:last-child { color: var(--raff-commerce-accent); }
.raff-shell-summary__cta { margin-top: var(--raff-space-5); }

#shipping_method { list-style: none; margin: 0; padding: 0; }
#shipping_method li { list-style: none; }
#shipping_method label { font-size: 13.5px; font-weight: 500; }
.woocommerce-shipping-destination { display: none; }

.checkout-button, #place_order {
	display: block; width: 100%; text-align: center;
	background: var(--raff-commerce-accent); color: #fff;
	border: 1px solid var(--raff-commerce-accent); border-radius: 0;
	font-family: var(--raff-commerce-font);
	font-weight: 600; font-size: 14px; letter-spacing: .03em; text-transform: uppercase;
	padding: 17px 0;
}
.checkout-button:hover, #place_order:hover {
	background: var(--raff-commerce-accent-hover); border-color: var(--raff-commerce-accent-hover);
}

@media (min-width: 1024px) {
	body.woocommerce-cart .raff-shell-cart {
		display: grid;
		/* görev §24: SOL ~66% / SAĞ ~30% */
		grid-template-columns: minmax(0, 1fr) 400px;
		column-gap: var(--raff-space-7);
		align-items: start;
	}
	.raff-shell-cart .woocommerce-cart-form { grid-column: 1; min-width: 0; }
	.raff-shell-cart .raff-shell-cart__collaterals { grid-column: 2; position: sticky; top: var(--raff-space-6); }
	.raff-shell-shipprogress { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
	.raff-shell-cart-row { padding: var(--raff-space-5) 0; }
	.raff-shell-cart-row__media img { width: 100px; height: 150px; }
}
@media (max-width: 480px) {
	.raff-shell-cart-row__footer { align-items: flex-start; }
	.raff-shell-cart-row__subtotal { width: 100%; text-align: right; margin-left: 0; order: 3; }
}

/* ============================================================
   4 · CHECKOUT (görev §34-42)
   ============================================================ */

.raff-shell-trust {
	list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
	margin: 0 0 var(--raff-space-5); padding: var(--raff-space-4) 0;
	border-top: 1px solid var(--raff-commerce-line);
	border-bottom: 1px solid var(--raff-commerce-line);
}
.raff-shell-trust li {
	display: flex; align-items: center; gap: var(--raff-space-2); justify-content: center;
	border-right: 1px solid var(--raff-commerce-line);
	padding: 0 var(--raff-space-2);
	font-size: 12.5px; font-weight: 500;
}
.raff-shell-trust li:last-child { border-right: none; }
.raff-shell-trust__icon { width: 18px; height: 18px; flex: none; color: var(--raff-commerce-accent); }

@media (min-width: 1024px) {
	.raff-shell-checkout__layout {
		display: grid;
		/* görev §35: SOL ~62% / SAĞ ~32% */
		grid-template-columns: minmax(0, 1fr) 400px;
		column-gap: var(--raff-space-7);
		align-items: start;
	}
	.raff-shell-checkout__aside { position: sticky; top: var(--raff-space-6); }
}
@media (max-width: 600px) {
	.raff-shell-trust { grid-template-columns: 1fr; }
	.raff-shell-trust li { border-right: none; border-bottom: 1px solid var(--raff-commerce-line); justify-content: flex-start; padding: var(--raff-space-2) 0; }
	.raff-shell-trust li:last-child { border-bottom: none; }
}

.raff-shell-checkout__review-heading {
	font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	margin: 0 0 var(--raff-space-4);
}
.raff-shell-checkout__customer { display: block; }
@media (min-width: 700px) {
	.raff-shell-checkout__customer { display: grid; grid-template-columns: 1fr 1fr; gap: var(--raff-space-6); }
}
.woocommerce-checkout h3 {
	font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	color: var(--raff-commerce-ink);
	margin: 0 0 var(--raff-space-4);
}
.woocommerce-checkout .form-row { margin: 0 0 var(--raff-space-4); }
.woocommerce-checkout .form-row label {
	display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	color: var(--raff-commerce-muted); margin-bottom: 6px;
}
/* Görev §37: underline-only YOK — gerçek kutu input */
.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
	width: 100%; height: var(--raff-commerce-field-h);
	border: 1px solid #d7d7d7; border-radius: 0;
	background: var(--raff-commerce-bg);
	padding: 12px 14px;
	font-family: var(--raff-commerce-font); font-size: 14px;
}
.woocommerce-checkout textarea { height: auto; min-height: 96px; }
.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus { border-color: var(--raff-commerce-accent); outline: none; }
.woocommerce-checkout .select2-container--default .select2-selection--single {
	border: 1px solid #d7d7d7; border-radius: 0; height: var(--raff-commerce-field-h);
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: var(--raff-commerce-field-h); font-size: 14px; padding-left: 14px;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: calc(var(--raff-commerce-field-h) - 2px); }
.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--raff-commerce-accent); }

/* Sipariş özeti tablosu (checkout/review-order.php, WC native — bilinçli
   olarak override edilmedi, yalnızca CSS ile giydirildi, görev §39). */
.woocommerce-checkout-review-order-table { width: 100%; border: none; }
.woocommerce-checkout-review-order-table thead { display: none; } /* "Product"/"Subtotal" başlık satırı gizlenir — görev: table column heading yok */
.woocommerce-checkout-review-order-table tr { border-bottom: 1px solid var(--raff-commerce-line); }
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
	border: none; padding: 12px 0; font-size: 14px; font-weight: 500; text-align: left;
}
.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout-review-order-table tr.order-total td {
	font-weight: 700; font-size: 18px;
	border-top: 2px solid var(--raff-commerce-ink); border-bottom: none;
	padding-top: var(--raff-space-4);
}
.woocommerce-checkout-review-order-table .product-total { text-align: right; }
#payment { background: none; }
#payment ul.payment_methods { list-style: none; margin: 0 0 var(--raff-space-4); padding: 0; }
#payment .woocommerce-info {
	background: var(--raff-commerce-surface); border: none; border-left: 3px solid var(--raff-commerce-accent);
	border-radius: 0; padding: var(--raff-space-4) var(--raff-space-4); font-size: 14px; list-style: none;
}
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; margin-bottom: var(--raff-space-4); }

.raff-shell-checkout-stickybar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
	display: flex; align-items: center; justify-content: space-between; gap: var(--raff-space-4);
	padding: var(--raff-space-3) var(--raff-commerce-gutter);
	padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	background: var(--raff-commerce-bg);
	border-top: 1px solid var(--raff-commerce-line);
	box-shadow: 0 -4px 16px rgba(10, 10, 10, .08);
	transform: translateY(100%);
	transition: transform .25s ease;
}
.raff-shell-checkout-stickybar.is-visible { transform: translateY(0); }
.raff-shell-checkout-stickybar__total { font-size: 15px; font-weight: 600; }
.raff-shell-checkout-stickybar__cta {
	flex: 1; max-width: 220px; height: 46px;
	background: var(--raff-commerce-accent); color: #fff;
	font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
body.raff-shell-has-checkout-stickybar { padding-bottom: 64px; }
body.raff-shell-has-checkout-stickybar .raff-shell-native-place-order-hidden #payment .form-row.place-order #place_order {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
body.raff-shell-near-footer .raff-shell-checkout-stickybar { display: none !important; }
@media (min-width: 1024px) {
	.raff-shell-checkout-stickybar { display: none !important; }
}
