/*
 * WecTion — WooCommerce (Mağaza, Ürün sayfası, İlgili ürünler)
 * WooCommerce'in kendi yerleşim CSS'inden SONRA yüklenir (functions.php: wection_woocommerce_assets).
 * Renkler ve yarıçaplar style.css içindeki :root değişkenlerinden gelir.
 */

/* ---------- Sayfa kabuğu ---------- */
body.woocommerce #primary,
body.woocommerce-page #primary{max-width:1180px;margin:0 auto;padding:34px 24px 96px}
body.woocommerce main#main{display:block}

/* WooCommerce'in kendi ızgara temizleyicileri (::before/::after = display:table) CSS grid'de boş hücre olarak yer kaplıyordu */
body.woocommerce ul.products::before,
body.woocommerce ul.products::after,
body.woocommerce .woocommerce-tabs ul.tabs::before,
body.woocommerce .woocommerce-tabs ul.tabs::after,
body.woocommerce .woocommerce-tabs ul.tabs li::before,
body.woocommerce .woocommerce-tabs ul.tabs li::after,
body.woocommerce div.product::before,
body.woocommerce div.product::after{display:none!important;content:none!important}

/* ---------- Yol (breadcrumb) ---------- */
body.woocommerce .woocommerce-breadcrumb{display:block;font-size:13px;line-height:1.5;color:var(--text-faint);margin:0 0 26px;padding:0}
body.woocommerce .woocommerce-breadcrumb a{color:var(--text-muted);transition:color .15s ease}
body.woocommerce .woocommerce-breadcrumb a:hover{color:var(--cyan)}

/* ---------- Mağaza başlığı ---------- */
body.woocommerce .woocommerce-products-header{padding:18px 0 22px;border-bottom:1px solid var(--border-soft);margin-bottom:26px}
body.woocommerce .woocommerce-products-header .eyebrow{margin-bottom:12px}
body.woocommerce .woocommerce-products-header__title,
body.woocommerce h1.page-title{font-size:clamp(28px,3.4vw,42px);font-weight:800;margin:0 0 10px;color:var(--text)}
body.woocommerce .woocommerce-products-header .term-description,
body.woocommerce .woocommerce-products-header .shop-sub{color:var(--text-muted);font-size:16px;line-height:1.65;max-width:64ch;margin:0}
body.woocommerce .woocommerce-result-count{float:left;margin:6px 0 22px;color:var(--text-faint);font-size:13.5px}
body.woocommerce .woocommerce-ordering{float:right;margin:0 0 22px}
body.woocommerce .woocommerce-ordering select{min-width:210px}

/* ---------- Form öğeleri ---------- */
body.woocommerce select,
body.woocommerce input[type=number],
body.woocommerce input[type=text],
body.woocommerce input[type=email],
body.woocommerce textarea{background-color:var(--deep);color:var(--text);border:1px solid var(--border);border-radius:var(--radius-sm);padding:11px 14px;font:inherit;font-size:14px;line-height:1.4;transition:border-color .15s ease,box-shadow .15s ease}
body.woocommerce select{appearance:none;-webkit-appearance:none;padding-right:38px;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center}
body.woocommerce select option{background:var(--deep);color:var(--text)}
body.woocommerce select:hover,
body.woocommerce input:hover,
body.woocommerce textarea:hover{border-color:#475569}
body.woocommerce select:focus,
body.woocommerce input:focus,
body.woocommerce textarea:focus{outline:none;border-color:var(--cyan);box-shadow:0 0 0 3px rgba(34,211,238,.16)}

/* ---------- Düğmeler ---------- */
body.woocommerce a.button,
body.woocommerce button.button,
body.woocommerce input.button,
body.woocommerce #respond input#submit{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(135deg,var(--blue),var(--cyan));color:#04121f;border:0;border-radius:var(--radius-sm);font:inherit;font-weight:700;font-size:14.5px;line-height:1.2;padding:13px 22px;cursor:pointer;box-shadow:0 10px 24px -10px rgba(34,211,238,.65);transition:box-shadow .15s ease,transform .15s ease,filter .15s ease}
body.woocommerce a.button:hover,
body.woocommerce button.button:hover,
body.woocommerce input.button:hover,
body.woocommerce #respond input#submit:hover{color:#04121f;box-shadow:0 14px 30px -10px rgba(34,211,238,.85);filter:brightness(1.05)}
body.woocommerce a.button:active,
body.woocommerce button.button:active{transform:translateY(1px)}
body.woocommerce button.button.disabled,
body.woocommerce button.button:disabled,
body.woocommerce .single_add_to_cart_button.wc-variation-selection-needed,
body.woocommerce .single_add_to_cart_button.wc-variation-is-unavailable{opacity:.45;cursor:not-allowed;box-shadow:none;filter:grayscale(.3)}

/* ---------- İndirim rozeti ---------- */
body.woocommerce span.onsale{position:absolute;top:14px;left:14px;right:auto;z-index:4;min-width:0;min-height:0;margin:0;padding:6px 11px;border-radius:999px;background:linear-gradient(135deg,#fbbf24,#f97316);color:#2a1300;font-family:var(--font-mono);font-size:11px;font-weight:800;line-height:1;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 8px 20px -8px rgba(249,115,22,.7)}

/* Kartta rozet WooCommerce kuralıyla kenara taşıyordu; görselin sağ üstüne sabitle */
body.woocommerce ul.products li.product span.onsale{top:14px;right:14px;left:auto;margin:0}
/* Tek üründe rozet galeri içine taşınır (woocommerce-wection.js), zoom düğmesinin soluna oturur; betik çalışmazsa sol üstte kalır */
body.woocommerce div.product div.images span.onsale{top:16px;right:62px;left:auto}

/* ---------- Ürün kartları (mağaza ve ilgili ürünler) ---------- */
body.woocommerce ul.products,
body.woocommerce[class] ul.products[class*=columns-]{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:22px;list-style:none;margin:0 0 28px;padding:0;clear:both}
body.woocommerce ul.products li.product,
body.woocommerce[class] ul.products[class*=columns-] li.product{position:relative;float:none!important;width:auto!important;margin:0!important;display:flex;flex-direction:column;padding:14px 14px 18px;background:linear-gradient(180deg,rgba(15,23,42,.9),rgba(15,23,42,.6));border:1px solid var(--border-soft);border-radius:18px;transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease}
body.woocommerce ul.products li.product:hover{border-color:rgba(34,211,238,.45);transform:translateY(-3px);box-shadow:var(--shadow-glow)}
body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1;color:inherit}
body.woocommerce ul.products li.product a img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;margin:0 0 16px;border-radius:12px;background:var(--deep);box-shadow:none}
body.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:0 4px;margin:0 0 8px;font-size:17px;font-weight:700;line-height:1.35;letter-spacing:-.01em;color:var(--text)}
body.woocommerce ul.products li.product .price{display:block;padding:0 4px;margin:0 0 16px;font-family:var(--font-mono);font-size:15px;font-weight:700;line-height:1.5;color:var(--cyan)}
body.woocommerce ul.products li.product .price del{color:var(--text-faint);font-weight:400;margin-right:6px}
body.woocommerce ul.products li.product .price ins{text-decoration:none;background:none;color:var(--cyan)}
body.woocommerce ul.products li.product .button{margin:auto 0 0;width:100%}
body.woocommerce ul.products li.product .star-rating{margin:0 4px 10px}

/* ---------- Tek ürün sayfası ---------- */
body.woocommerce div.product{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px 52px;align-items:start}
body.woocommerce div.product>*{min-width:0}
body.woocommerce div.product div.images,
body.woocommerce div.product div.summary{float:none!important;width:auto!important;margin:0!important}
body.woocommerce div.product .woocommerce-tabs,
body.woocommerce div.product section.related,
body.woocommerce div.product section.upsells,
body.woocommerce div.product .related.products,
body.woocommerce div.product .up-sells{grid-column:1/-1}

body.woocommerce div.product div.images.woocommerce-product-gallery{position:relative;border:1px solid var(--border-soft);border-radius:20px;overflow:hidden;background:var(--deep);box-shadow:var(--shadow-glow)}
body.woocommerce div.product div.images img{display:block;width:100%;height:auto;border-radius:0}
body.woocommerce div.product div.images .woocommerce-product-gallery__image--placeholder img{background:var(--deep)}
body.woocommerce div.product div.images .flex-control-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:12px;margin:0;list-style:none;background:rgba(2,6,23,.55);border-top:1px solid var(--border-soft)}
body.woocommerce div.product div.images .flex-control-thumbs li{float:none;width:auto;margin:0}
body.woocommerce div.product div.images .flex-control-thumbs img{border-radius:8px;border:1px solid var(--border-soft);opacity:.6;cursor:pointer;transition:opacity .15s ease,border-color .15s ease}
body.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
body.woocommerce div.product div.images .flex-control-thumbs img:hover{opacity:1;border-color:var(--cyan)}
body.woocommerce div.product div.images .woocommerce-product-gallery__trigger{top:14px;right:14px;width:38px;height:38px;border-radius:999px;background:rgba(15,23,42,.82);border:1px solid var(--border);backdrop-filter:blur(8px);text-indent:0;font-size:0;z-index:3;transition:border-color .15s ease}
body.woocommerce div.product div.images .woocommerce-product-gallery__trigger:hover{background:rgba(15,23,42,.95);border-color:var(--cyan)}
body.woocommerce div.product div.images .woocommerce-product-gallery__trigger::before{border-color:var(--text);top:11px;left:11px}
body.woocommerce div.product div.images .woocommerce-product-gallery__trigger::after{background:var(--text);top:24px;left:24px}

body.woocommerce div.product div.summary{padding:6px 0 0}
body.woocommerce div.product .product_title{font-size:clamp(26px,3vw,36px);font-weight:800;line-height:1.15;margin:0 0 14px;color:var(--text)}
body.woocommerce div.product p.price,
body.woocommerce div.product span.price{display:block;margin:0 0 18px;font-family:var(--font-mono);font-size:26px;font-weight:700;line-height:1.3;color:var(--cyan)}
body.woocommerce div.product p.price del,
body.woocommerce div.product span.price del{color:var(--text-faint);font-size:.7em;font-weight:400;margin-right:8px}
body.woocommerce div.product p.price ins,
body.woocommerce div.product span.price ins{text-decoration:none;background:none;color:var(--cyan)}
body.woocommerce div.product .woocommerce-product-details__short-description{color:var(--text-muted);font-size:15.5px;line-height:1.75;margin:0 0 24px;padding-bottom:22px;border-bottom:1px solid var(--border-soft)}
body.woocommerce div.product .woocommerce-product-details__short-description p:last-child{margin-bottom:0}

/* Varyasyon seçimi */
body.woocommerce div.product form.cart{margin:0 0 22px}
body.woocommerce div.product form.cart table.variations{width:100%;border:0;margin:0 0 18px;border-collapse:collapse}
body.woocommerce div.product form.cart table.variations tr{display:block;margin-bottom:14px}
body.woocommerce div.product form.cart table.variations th,
body.woocommerce div.product form.cart table.variations td{display:block;padding:0;border:0;background:none;text-align:left}
body.woocommerce div.product form.cart table.variations th.label{margin-bottom:10px}
body.woocommerce div.product form.cart table.variations th.label label{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;font-family:var(--font-mono);color:var(--text-faint)}
body.woocommerce div.product form.cart table.variations select{width:100%}
body.woocommerce div.product form.cart .reset_variations{display:inline-block;margin-top:10px;font-size:12.5px;color:var(--text-faint);text-decoration:underline;text-underline-offset:3px}
body.woocommerce div.product form.cart .reset_variations:hover{color:var(--cyan)}
body.woocommerce div.product form.cart .reset_variations[style*="hidden"]{display:none}
body.woocommerce div.product form.cart table.variations tr{margin-bottom:6px}
/* Seçimi düğmelere çeviren betik çalışınca ham seçim kutusu gizlenir (erişilebilirlik için DOM'da kalır) */
body.woocommerce .wection-pills-on select{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
body.woocommerce .wection-pills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.woocommerce .wection-pill{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;font:inherit;padding:13px 16px;border-radius:var(--radius);border:1px solid var(--border);background:rgba(15,23,42,.7);color:var(--text);cursor:pointer;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
body.woocommerce .wection-pill strong{font-size:15px;font-weight:700}
body.woocommerce .wection-pill small{font-size:12px;color:var(--text-faint)}
body.woocommerce .wection-pill:hover{border-color:var(--cyan)}
body.woocommerce .wection-pill[aria-pressed=true]{border-color:rgba(34,211,238,.7);background:linear-gradient(135deg,rgba(59,130,246,.2),rgba(34,211,238,.12));box-shadow:0 0 0 3px rgba(34,211,238,.12)}
body.woocommerce .wection-pill[aria-pressed=true] small{color:var(--text-muted)}
body.woocommerce .wection-pill:disabled{opacity:.4;cursor:not-allowed}

/* Seçilen varyasyonun fiyatı + sepete ekle */
body.woocommerce div.product .single_variation_wrap .woocommerce-variation{margin:0 0 14px}
body.woocommerce div.product .woocommerce-variation-price .price{margin:0 0 4px;font-size:28px}
body.woocommerce div.product .woocommerce-variation-description{color:var(--text-muted);font-size:14px;line-height:1.6;margin-bottom:8px}
body.woocommerce div.product .woocommerce-variation-availability p{margin:0 0 4px;font-size:13px;color:var(--ok)}
body.woocommerce div.product form.cart div.quantity,
body.woocommerce div.product form.cart .woocommerce-variation-add-to-cart{float:none}
body.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
body.woocommerce div.product form.cart:not(.variations_form){display:flex;flex-wrap:wrap;gap:12px;align-items:stretch}
body.woocommerce div.product form.cart .quantity{margin:0}
body.woocommerce div.product form.cart .quantity input.qty{width:84px;height:100%;min-height:50px;padding:10px 8px;text-align:center;font-family:var(--font-mono);font-size:16px;font-weight:700}
body.woocommerce div.product form.cart .single_add_to_cart_button{flex:1 1 200px;min-height:50px;font-size:15.5px}

/* Satın alma güvencesi (functions.php'den eklenir) */
body.woocommerce .wection-assure{list-style:none;margin:22px 0 0;padding:18px 20px;display:grid;gap:11px;background:rgba(15,23,42,.55);border:1px solid var(--border-soft);border-radius:var(--radius)}
body.woocommerce .wection-assure li{position:relative;padding-left:28px;font-size:14px;line-height:1.5;color:var(--text-muted)}
body.woocommerce .wection-assure li::before{content:"";position:absolute;left:0;top:2px;width:18px;height:18px;border-radius:999px;background:rgba(16,185,129,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat}
body.woocommerce .wection-assure li strong{color:var(--text);font-weight:650}

body.woocommerce div.product .product_meta{margin-top:20px;font-size:13px;color:var(--text-faint);display:grid;gap:4px}
body.woocommerce div.product .product_meta .sku_wrapper{display:none}   /* lisans ürünlerinde "Stok kodu: Yok" anlamsız */
body.woocommerce div.product .product_meta a{color:var(--text-muted)}
body.woocommerce div.product .product_meta a:hover{color:var(--cyan)}

/* ---------- Sekmeler ---------- */
body.woocommerce div.product .woocommerce-tabs{margin-top:14px}
body.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;border:0;border-bottom:1px solid var(--border-soft);overflow:visible}
body.woocommerce div.product .woocommerce-tabs ul.tabs li{float:none;margin:0;padding:0;background:none!important;border:0!important;border-radius:0;box-shadow:none!important}
body.woocommerce div.product .woocommerce-tabs ul.tabs li a{display:block;padding:13px 20px;margin-bottom:-1px;font-size:14.5px;font-weight:650;color:var(--text-faint);background:none;border-bottom:2px solid transparent;transition:color .15s ease,border-color .15s ease}
body.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover{color:var(--text)}
body.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:none!important}
body.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--text);border-bottom-color:var(--cyan);text-shadow:none}
/* Temanın genel ".panel" kartı (cam/parıltı) WooCommerce'in sekme panelindeki "panel" sınıfıyla çakışıyordu */
body.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel,
body.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel.panel{margin:0;padding:30px 0 6px;background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;overflow:visible;color:var(--text-muted);font-size:15.5px;line-height:1.85}
body.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel>h2:first-child{display:none}
body.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel h2,
body.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel h3{color:var(--text);margin:0 0 12px}
body.woocommerce div.product .woocommerce-tabs table.shop_attributes{border:1px solid var(--border-soft);border-radius:var(--radius-sm);border-collapse:separate;border-spacing:0;overflow:hidden;width:100%;max-width:640px}
body.woocommerce div.product .woocommerce-tabs table.shop_attributes th,
body.woocommerce div.product .woocommerce-tabs table.shop_attributes td{padding:12px 16px;border:0;border-bottom:1px solid var(--border-soft);background:none;font-style:normal}
body.woocommerce div.product .woocommerce-tabs table.shop_attributes th{width:30%;color:var(--text);font-weight:650}
body.woocommerce div.product .woocommerce-tabs table.shop_attributes tr:last-child th,
body.woocommerce div.product .woocommerce-tabs table.shop_attributes tr:last-child td{border-bottom:0}

/* "Nasıl etkinleştirilir" adımları */
body.woocommerce .wection-steps{list-style:none;counter-reset:wstep;margin:0 0 22px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.woocommerce .wection-steps li{counter-increment:wstep;position:relative;padding:18px 18px 18px 64px;background:rgba(15,23,42,.55);border:1px solid var(--border-soft);border-radius:var(--radius);color:var(--text-muted);font-size:14.5px;line-height:1.65}
body.woocommerce .wection-steps li::before{content:counter(wstep);position:absolute;left:18px;top:18px;width:34px;height:34px;border-radius:999px;display:grid;place-items:center;background:linear-gradient(135deg,var(--blue),var(--cyan));color:#04121f;font-family:var(--font-mono);font-weight:800;font-size:15px}
body.woocommerce .wection-steps li strong{display:block;color:var(--text);font-size:15.5px;margin-bottom:2px}
body.woocommerce .wection-note{margin:0;padding:14px 18px;border-left:3px solid var(--cyan);background:rgba(34,211,238,.06);border-radius:0 var(--radius-sm) var(--radius-sm) 0;font-size:14.5px;line-height:1.7;color:var(--text-muted)}

/* ---------- Değerlendirmeler (açıksa) ---------- */
body.woocommerce #reviews #comments h2,
body.woocommerce #reviews .comment-reply-title{font-size:20px;color:var(--text);display:block;margin:0 0 14px}
body.woocommerce #reviews #review_form_wrapper{margin-top:22px;padding:24px;background:rgba(15,23,42,.55);border:1px solid var(--border-soft);border-radius:var(--radius)}
body.woocommerce #review_form #respond p{margin:0 0 16px}
body.woocommerce #review_form #respond label{display:block;margin-bottom:7px;font-size:13.5px;color:var(--text-muted)}
body.woocommerce #review_form #respond textarea{width:100%;min-height:130px}
body.woocommerce p.stars a{color:var(--warn)}
body.woocommerce .star-rating{color:var(--warn)}

/* ---------- İlgili ürünler ---------- */
body.woocommerce div.product section.related,
body.woocommerce div.product section.up-sells{padding:44px 0 0;margin-top:20px;border-top:1px solid var(--border-soft)}
body.woocommerce div.product section.related>h2,
body.woocommerce div.product section.up-sells>h2{font-size:22px;font-weight:800;margin:0 0 20px;color:var(--text)}

/* ---------- Bildirimler ---------- */
body.woocommerce .woocommerce-message,
body.woocommerce .woocommerce-info,
body.woocommerce .woocommerce-error{margin:0 0 22px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
body.woocommerce .woocommerce-message .button{order:2;margin-left:auto}

/* ---------- Mobil ---------- */
@media (max-width:860px){
  body.woocommerce div.product{grid-template-columns:minmax(0,1fr);gap:24px}
  body.woocommerce .wection-steps{grid-template-columns:minmax(0,1fr)}
  body.woocommerce #primary,
  body.woocommerce-page #primary{padding:24px 16px 72px}
}
@media (max-width:520px){
  body.woocommerce ul.products{grid-template-columns:minmax(0,1fr)}
  body.woocommerce .wection-pills{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.woocommerce .woocommerce-result-count,
  body.woocommerce .woocommerce-ordering{float:none;width:100%}
  body.woocommerce .woocommerce-ordering select{width:100%}
  body.woocommerce div.product div.images .flex-control-thumbs{grid-template-columns:repeat(3,1fr)}
}
