/* ==========================================================================
   Novex Pro — WooCommerce bileşenlerinin Ecomus görünümüne uyarlanması
   ========================================================================== */
.novex-gizli { display: none !important; }

/* ---------- Bildirim (toast) ---------- */
.novex-toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); opacity: 0; z-index: 99999;
	background: var(--main); color: var(--white); padding: 14px 22px; border-radius: 4px; display: flex; gap: 16px; align-items: center;
	box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: all .35s ease; font-size: 14px; max-width: calc(100% - 32px); }
.novex-toast.goster { opacity: 1; transform: translate(-50%, 0); }
.novex-toast a { color: var(--white); text-decoration: underline; font-weight: 600; white-space: nowrap; }

/* ---------- WooCommerce bildirimleri ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none; margin: 0 0 24px; padding: 14px 20px; border: 1px solid var(--line); border-left: 3px solid var(--main);
	background: var(--bg-2); border-radius: 3px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 14px; }
.woocommerce-error { border-left-color: var(--primary); }
.woocommerce-message { border-left-color: var(--success); }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; font-weight: 600; text-decoration: underline; background: none; border: 0; padding: 0; color: var(--main); }

/* ---------- Genel buton / form uyumu ---------- */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce-Button, #place_order,
.woocommerce-address-fields .button, .woocommerce-EditAccountForm .button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 28px; border: 1px solid var(--main);
	background: var(--main); color: var(--white); font-weight: 600; font-size: 14px; border-radius: 3px; cursor: pointer; transition: all .3s; }
.woocommerce .button:hover, #place_order:hover, .woocommerce-Button:hover { background: var(--white); color: var(--main); }
#place_order { width: 100%; min-height: 52px; font-size: 16px; }
.single_add_to_cart_button.disabled { opacity: .55; cursor: not-allowed; }

.woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--main); font-size: 14px; }
.woocommerce form .form-row .required { color: var(--primary); text-decoration: none; border: 0; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-EditAccountForm input, .woocommerce-address-fields input, .woocommerce-address-fields select {
	width: 100%; height: 46px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 3px; font-size: 14px; background: var(--white); color: var(--main); outline: none; }
.woocommerce form .form-row textarea { height: 110px; resize: vertical; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--main); }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 8px); float: left; }
.woocommerce form .form-row-last { float: right; }
.woocommerce form .form-row-wide { clear: both; }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: var(--primary); }
.woocommerce-billing-fields__field-wrapper::after, .woocommerce-shipping-fields__field-wrapper::after, .woocommerce-address-fields__field-wrapper::after { content: ""; display: table; clear: both; }
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3, .woocommerce-column__title, .woocommerce-order-details__title {
	font-size: 20px; font-weight: 500; margin: 0 0 20px; }
#ship-to-different-address { font-size: 16px; font-weight: 500; }
#ship-to-different-address label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.woocommerce-additional-fields { margin-top: 10px; }

/* select2 (ülke / il seçimleri) */
.select2-container .select2-selection--single { height: 46px; border: 1px solid var(--line); border-radius: 3px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 18px; color: var(--main); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 10px; }
.select2-dropdown { border-color: var(--line); }
.select2-results__option--highlighted { background: var(--main) !important; }

/* ---------- Toplam tabloları (sepet + ödeme) ---------- */
.novex-toplam-tablo { width: 100%; margin: 10px 0 16px; border-collapse: collapse; font-size: 15px; }
.novex-toplam-tablo th, .novex-toplam-tablo td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.novex-toplam-tablo th { font-weight: 500; text-align: left; color: var(--main); }
.novex-toplam-tablo td { text-align: right; }
.novex-toplam-tablo ul#shipping_method { list-style: none; margin: 0; padding: 0; }
.novex-toplam-tablo ul#shipping_method li { margin-bottom: 6px; display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.novex-toplam-tablo .woocommerce-shipping-destination, .novex-toplam-tablo .woocommerce-shipping-calculator { font-size: 13px; color: var(--text); }
.novex-toplam-tablo .shipping-calculator-button { text-decoration: underline; }
.novex-toplam-tablo .woocommerce-remove-coupon { color: var(--primary); margin-left: 6px; font-size: 13px; }
.tf-cart-totals-discounts .total-value .amount, .order-total .total .amount { font-weight: 600; }
.cart-checkbox.novex-uyari label { color: var(--primary); }
.novex-sepet-kupon { margin-top: 24px; }
.tf-page-cart-item .cart-meta-variant + dl.variation, .tf-page-cart-item dl.variation { font-size: 13px; color: var(--text); margin: 4px 0; }
.remove-cart.link { cursor: pointer; }
.woocommerce-cart-form .qty { width: 42px; text-align: center; border: 0; background: transparent; }

/* ---------- Ödeme adımı ---------- */
.woocommerce-checkout .tf-page-cart-item { padding-top: 0; }
.woocommerce-checkout-payment { margin-top: 20px; }
.woocommerce-checkout-payment ul.wc_payment_methods { list-style: none; margin: 0 0 20px; padding: 0; }
.woocommerce-checkout-payment ul.wc_payment_methods li { margin-bottom: 14px; }
.woocommerce-checkout-payment ul.wc_payment_methods li > label { font-weight: 500; cursor: pointer; margin-left: 6px; }
.woocommerce-checkout-payment .payment_box { background: var(--bg-2); padding: 14px 16px; margin-top: 10px; border-radius: 3px; font-size: 14px; color: var(--text); }
.woocommerce-checkout-payment .payment_box p:last-child { margin: 0; }
.woocommerce-terms-and-conditions-wrapper { font-size: 14px; color: var(--text); margin-bottom: 20px; }
.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox { display: flex; gap: 10px; align-items: flex-start; }
.woocommerce-privacy-policy-text p { font-size: 14px; color: var(--text); }
.wrap-checkout-product { list-style: none; padding: 0; }
.checkout_coupon { display: none !important; }

/* ---------- Hesabım ---------- */
.my-account-content .woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.my-account-content .woocommerce-Address { border: 1px solid var(--line); border-radius: 3px; padding: 20px; }
.my-account-content .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.my-account-content .woocommerce-Address-title h2 { font-size: 18px; margin: 0; }
.my-account-content .woocommerce-Address-title a.edit { text-decoration: underline; font-weight: 600; }
.my-account-content table.shop_table, .woocommerce-table--order-details { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.my-account-content table.shop_table th, .my-account-content table.shop_table td,
.woocommerce-table--order-details th, .woocommerce-table--order-details td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.woocommerce-customer-details address { border: 1px solid var(--line); padding: 20px; border-radius: 3px; font-style: normal; line-height: 1.8; }
.woocommerce-EditAccountForm fieldset { border: 1px solid var(--line); padding: 20px; margin: 20px 0; border-radius: 3px; }
.woocommerce-EditAccountForm legend { font-weight: 600; padding: 0 8px; font-size: 16px; }
.woocommerce-order-downloads, .woocommerce-MyAccount-downloads { display: none; }
.tf-login-wrap .woocommerce-form-login__rememberme { display: flex; gap: 8px; }
#recover.d-block { display: block !important; }

/* ---------- Mağaza ---------- */
.tf-dropdown-sort a.select-item { display: block; color: var(--main); }
.meta-filter-shop { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.meta-filter-shop .count-text { font-size: 14px; color: var(--text); }
#applied-filters { display: flex; flex-wrap: wrap; gap: 8px; }
#applied-filters .filter-tag { display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border: 1px solid var(--line); border-radius: 30px; font-size: 13px; color: var(--main); }
.remove-all-filters { font-size: 13px; font-weight: 600; text-decoration: underline; }
.novex-filtre-alt { position: sticky; bottom: 0; background: var(--white); padding: 12px 0; }
.card-product a.added_to_cart { display: none !important; }
.card-product .add_to_cart_button.loading .icon { opacity: .3; }
.card-product .size-list span { margin: 0 3px; }
.novex-dongu { margin-bottom: 30px; }

/* ---------- Ürün detay ---------- */
.tf-product-des-short { margin-bottom: 20px; }
.tf-product-des-short p:last-child { margin-bottom: 0; }
.novex-stok-yok { color: var(--primary); margin: 10px 0 20px; }
.novex-urun-meta p { margin-bottom: 4px; font-size: 14px; }
.novex-urun-meta a { text-decoration: underline; }
.tf-product-info-buy-button .btns-full { width: 100%; border: 0; cursor: pointer; }
.novex-aciklama img { max-width: 100%; height: auto; }
.novex-yildiz-bos { opacity: .25; }
.novex-kucuk-yildiz .icon { font-size: 12px; }
.novex-dogrulanmis { font-size: 12px; font-weight: 500; color: var(--success); margin-left: 6px; }
.reply-comment-item .image img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.novex-form-sonuc { font-size: 14px; color: var(--success); min-height: 20px; }
.novex-form-sonuc.hata { color: var(--primary); }
.tf-pr-attrs { width: 100%; border-collapse: collapse; }
.tf-pr-attrs th, .tf-pr-attrs td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
.tf-pr-attrs th { width: 30%; font-weight: 600; background: var(--bg-2); }
.tf-pr-attrs td p { margin: 0; }
.star-rating { overflow: hidden; position: relative; height: 1em; line-height: 1; font-size: 14px; width: 5.4em; font-family: inherit; letter-spacing: .1em; }
.star-rating::before { content: "★★★★★"; opacity: .25; position: absolute; top: 0; left: 0; }
.star-rating span { overflow: hidden; position: absolute; top: 0; left: 0; padding-top: 1.5em; }
.star-rating span::before { content: "★★★★★"; position: absolute; top: 0; left: 0; color: var(--yellow); }

/* ---------- Karşılaştırma / favoriler ---------- */
.tf-compare-remove { background: none; border: 0; text-decoration: underline; font-size: 13px; cursor: pointer; }
.tf-compare-title { display: block; font-weight: 600; margin: 10px 0 6px; }
.tf-compare-image img { width: 100%; height: auto; }

@media (max-width: 767px) {
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }
}

/* ---------- Görsel kontrol sonrası düzeltmeler ---------- */
.novex-odeme-alanlari label::after { content: none !important; }
.woocommerce form .form-row label .optional { color: var(--text-2); font-weight: 400; }
.novex-sepet-kupon, .novex-odeme-kupon { display: flex; gap: 10px; align-items: stretch; margin-bottom: 20px; }
.novex-sepet-kupon input, .novex-odeme-kupon input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 3px; }
.novex-sepet-kupon .tf-btn, .novex-odeme-kupon .tf-btn { flex: 0 0 auto; height: 46px; padding: 0 24px; }
.tf-page-cart-note { margin-top: 24px; }
.novex-sepet-oneri { margin-top: 80px; }
.novex-hemen-al.btns-full { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 10px;
	background: var(--white) !important; color: var(--main) !important; border: 1px solid var(--main) !important; border-radius: 3px; font-weight: 600; font-size: 15px; cursor: pointer; transition: all .3s; }
.novex-hemen-al.btns-full:hover { background: var(--main) !important; color: var(--white) !important; }
.tf-product-info-buy-button .payment-more-option { display: block; text-align: center; margin-top: 10px; text-decoration: underline; }
.novex-urun-formu .tf-product-info-variant-picker { margin-bottom: 24px; }
.novex-aciklama ul { list-style: disc; padding-left: 22px; margin: 12px 0; }
.novex-aciklama ul li { margin-bottom: 6px; }
.novex-aciklama p { margin-bottom: 14px; }
