/* AutoCoverFactory — WooCommerce ürün ve mağaza sayfaları.
   WooCommerce'in kendi CSS'i ve yıldız fontu bu sayfalarda yüklenmez. */

.wc-main { padding-bottom: 72px; }

/* ---------- Breadcrumb ---------- */
.woocommerce-breadcrumb { padding: 20px 0; font-size: 13px; color: var(--muted); }
.woocommerce-breadcrumb a { text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.woocommerce-breadcrumb .sep { margin: 0 8px; opacity: .5; }

/* ---------- Bildirimler ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	margin: 0 0 24px; padding: 14px 18px; list-style: none;
	background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: var(--radius); font-size: 15px;
}
.woocommerce-error { border-left-color: #c0392b; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

/* ---------- Butonlar (WooCommerce) ---------- */
.wc-main .button, #review_form .submit {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
	border: 1px solid var(--text); border-radius: var(--radius); background: var(--text); color: #fff;
	font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.wc-main .button:hover, #review_form .submit:hover { background: #000; }

/* ---------- Yıldızlar (font yerine SVG) ---------- */
.star-rating {
	position: relative; display: inline-block; width: 5.4em; height: 1em; font-size: 16px; line-height: 1; overflow: hidden; vertical-align: middle;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d9d6cf' d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") repeat-x 0 0 / 1.08em 1em;
}
.star-rating span {
	position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden; white-space: nowrap; text-indent: -9999em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c9a15a' d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") repeat-x 0 0 / 1.08em 1em;
}

/* ---------- Ürün sayfası düzeni ---------- */
.single-product div.product {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start;
}
.single-product div.product > :not(.images):not(.summary):not(.onsale) { grid-column: 1 / -1; }

@media (min-width: 900px) {
	.single-product div.product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 56px; }
	.single-product .summary { position: sticky; top: calc(var(--header-h) + 24px); }
	.admin-bar.single-product .summary { top: calc(var(--header-h) + 56px); }
}

.onsale {
	position: absolute; top: 14px; left: 14px; z-index: 2; padding: 4px 10px; border-radius: 999px;
	background: var(--text); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Galeri (JS'siz) ---------- */
.woocommerce-product-gallery { opacity: 1 !important; margin: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image a { display: block; }
.woocommerce-product-gallery img {
	display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--bg-soft);
}
.woocommerce-product-gallery__trigger { display: none; }

@media (max-width: 899px) {
	.woocommerce-product-gallery__wrapper {
		display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px; scrollbar-width: none;
	}
	.woocommerce-product-gallery__wrapper::-webkit-scrollbar { display: none; }
	.woocommerce-product-gallery__image { flex: 0 0 86%; scroll-snap-align: center; }
	.woocommerce-product-gallery__image:only-child { flex-basis: 100%; }
}
@media (min-width: 900px) {
	.woocommerce-product-gallery__wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.woocommerce-product-gallery__image:first-child { grid-column: 1 / -1; }
}

/* ---------- Özet sütunu ---------- */
.product_title { margin: 0 0 10px; font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; }
.woocommerce-product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.woocommerce-product-rating .woocommerce-review-link { color: var(--muted); }
.summary .price { margin: 0 0 18px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.price del { margin-right: 8px; color: var(--muted); font-weight: 400; font-size: .8em; }
.price ins { text-decoration: none; }
.woocommerce-product-details__short-description { margin-bottom: 24px; color: #3b3b3a; }
.woocommerce-product-details__short-description ul { padding-left: 20px; }

/* Varyasyonlar */
.variations_form { margin: 0; }
table.variations { width: 100%; margin: 0 0 4px; border-collapse: collapse; }
table.variations tr { display: block; margin-bottom: 20px; }
table.variations th, table.variations td { display: block; padding: 0; text-align: left; }
table.variations th label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
table.variations select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.sw { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-opt {
	min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
	font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.sw-opt:hover { border-color: var(--text); }
.sw-opt[aria-pressed="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); font-weight: 600; }
.sw-opt:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.reset_variations { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--muted); }

.woocommerce-variation { margin-bottom: 4px; }
.woocommerce-variation-price .price { margin: 0 0 6px; font-size: 22px; }
.woocommerce-variation-description p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.stock { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: #2e7d4f; }
.stock.out-of-stock { color: #c0392b; }

/* Adet + Sepete ekle */
form.cart:not(.variations_form), .woocommerce-variation-add-to-cart { display: flex; gap: 12px; align-items: stretch; margin: 16px 0 0; }
.quantity .qty {
	width: 84px; height: 54px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
	text-align: center; font-size: 16px; font-weight: 500;
}
.single_add_to_cart_button {
	flex: 1; height: 54px; border: 0; border-radius: var(--radius); background: var(--text); color: #fff;
	font-size: 16px; font-weight: 600; letter-spacing: .01em; cursor: pointer; transition: background .15s;
}
.single_add_to_cart_button:hover { background: #000; }
.single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }

/* Güven kutusu */
.pd-trust { display: grid; gap: 12px; margin: 24px 0; padding: 18px 20px; list-style: none; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.pd-trust li { display: flex; align-items: flex-start; gap: 12px; }
.pd-trust svg { flex: none; width: 20px; height: 20px; color: var(--accent); }

.product_meta { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.product_meta a { color: var(--text); }

/* ---------- Alt bölümler ---------- */
.pd-section { margin-top: 32px; padding-top: 48px; border-top: 1px solid var(--line); }
.pd-h { margin: 0 0 24px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
.pd-body { max-width: 780px; font-size: 16px; line-height: 1.75; }
.pd-body img { border-radius: 10px; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; font-size: 15px; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.woocommerce-product-attributes th { width: 34%; padding-right: 16px; font-weight: 600; }
.woocommerce-product-attributes td p { margin: 0; }

/* ---------- Yorumlar ---------- */
.rv-grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
	.rv-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 64px; }
	.rv-summary { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}
.rv-avg { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; }
.rv-avg strong { font-size: 52px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.rv-avg span { color: var(--muted); font-size: 15px; }
.rv-summary .star-rating { font-size: 20px; }
.rv-count { margin: 8px 0 20px; font-size: 14px; color: var(--muted); }
.rv-empty { color: var(--muted); }
.rv-bars { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 13px; }
.rv-bars li { display: grid; grid-template-columns: 48px 1fr 28px; align-items: center; gap: 10px; }
.rv-bars li span:last-child { text-align: right; color: var(--muted); }
.rv-bar { height: 8px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; }
.rv-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.rv-summary .btn { width: 100%; }

.woocommerce-Reviews-title, .woocommerce-noreviews { display: none; }
.commentlist { margin: 0; padding: 0; list-style: none; }
.commentlist li.review { padding: 24px 0; border-bottom: 1px solid var(--line); }
.commentlist li.review:first-child { padding-top: 0; }
.comment_container { display: flex; gap: 16px; }
.rv-initial { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-soft); font-weight: 600; }
.comment-text { flex: 1; min-width: 0; }
.comment-text .star-rating { font-size: 14px; }
.comment-text .meta { margin: 6px 0 10px; font-size: 14px; color: var(--muted); }
.woocommerce-review__author { color: var(--text); font-weight: 600; }
.woocommerce-review__verified {
	display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #e9f4ee;
	color: #2e7d4f; font-size: 0; font-style: normal; vertical-align: 1px;
}
.woocommerce-review__verified::after { content: "✓ Verified buyer"; font-size: 12px; font-weight: 600; }
.woocommerce-review__dash { margin: 0 4px; }
.comment-text .description p:last-child { margin: 0; }
.woocommerce-pagination { margin-top: 20px; }

/* Yorum formu */
#review_form_wrapper { margin-top: 32px; padding: 28px; border-radius: 14px; background: var(--bg-soft); scroll-margin-top: calc(var(--header-h) + 24px); }
#reply-title { display: block; margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.rv-note { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
#review_form p { margin: 0 0 16px; }
#review_form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
#review_form input[type="text"], #review_form input[type="email"], #review_form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-size: 15px;
}
#review_form textarea { min-height: 130px; resize: vertical; }
#review_form input:focus, #review_form textarea:focus { outline: 0; border-color: var(--accent); }
#review_form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
#review_form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
#review_form .form-submit { margin: 0; }
.woocommerce-verification-required { padding: 16px 20px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; }

/* Puan seçimi (WooCommerce scripti select'i yıldıza çevirir) */
p.stars { margin: 0 0 18px !important; }
p.stars span { display: inline-flex; gap: 4px; }
p.stars a {
	display: block; width: 30px; height: 30px; overflow: hidden; text-indent: -9999em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d9d6cf' d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
p.stars:hover a, p.stars.selected a.active, p.stars.selected a:not(.active) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c9a15a' d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E");
}
p.stars a:hover ~ a, p.stars.selected a.active ~ a {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d9d6cf' d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E");
}

/* ---------- Ürün listeleri (mağaza, kategori, benzer ürünler) ---------- */
section.related, section.up-sells { margin-top: 32px; padding-top: 48px; border-top: 1px solid var(--line); }
section.related > h2, section.up-sells > h2 { margin: 0 0 24px; font-size: clamp(22px, 2.4vw, 28px); }

.woocommerce-products-header__title { margin: 8px 0 12px; }
.woocommerce-result-count { float: left; margin: 0 0 24px; font-size: 14px; color: var(--muted); line-height: 42px; }
.woocommerce-ordering { float: right; margin: 0 0 24px; }
.woocommerce-ordering select { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }

ul.products { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; } }
ul.products li.product { position: relative; display: flex; flex-direction: column; }
ul.products li.product a.woocommerce-LoopProduct-link { display: block; text-decoration: none; }
ul.products li.product img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin-bottom: 12px; border-radius: 10px; background: var(--bg-soft); transition: opacity .2s; }
ul.products li.product a:hover img { opacity: .9; }
.woocommerce-loop-product__title { margin: 0 0 4px; font-size: 15px; font-weight: 500; letter-spacing: 0; }
ul.products li.product .star-rating { font-size: 13px; margin-bottom: 4px; }
ul.products li.product .price { display: block; margin-bottom: 12px; font-size: 15px; font-weight: 600; }
ul.products li.product .button { margin-top: auto; min-height: 40px; background: transparent; color: var(--text); font-size: 14px; }
ul.products li.product .button:hover { background: var(--text); color: #fff; }
ul.products li.product .added_to_cart { margin-top: 8px; font-size: 13px; }
ul.products .onsale { top: 10px; left: 10px; }

.woocommerce-pagination ul { display: flex; gap: 6px; justify-content: center; margin: 48px 0 0; padding: 0; list-style: none; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.woocommerce-pagination .current { background: var(--text); border-color: var(--text); color: #fff; }
