/**
 * Elmacıpazarı — merkezi tema buton/vurgu stilleri
 * Renkler admin panelinden gelir: :root --ty-primary / --ty-primary-hover
 * Bir renk değişince tüm CTA’lar güncellenir.
 */

:root {
    --ty-primary: #f27a1a;
    --ty-primary-hover: #d86509;
    --ty-primary-light: rgba(242, 122, 26, 0.08);
    --ty-primary-rgb: 242, 122, 26;
    --ft-accent: var(--ty-primary);
    --ft-accent-hover: var(--ty-primary-hover);
}

/* ========== Ana CTA butonları ========== */
.yeniButon,
.yeniButon.ty-btn-cart,
.yeniButon.ty-btn-cart-main,
.ty-btn-cart-main,
.ty-ms-cart-btn,
.bex-detail .yeniButon.ty-btn-cart-main,
.bex-detail .ty-ms-cart-btn,
.bex-detail .ty-mobile-sticky-bar .ty-ms-cart-btn,
.hb-modern .yeniButon.ty-btn-cart-main,
.hb-modern .ty-ms-cart-btn,
.main.bex-detail .yeniButon.ty-btn-cart-main,
.main.bex-detail .ty-ms-cart-btn,
.ty-newsletter-submit,
.btn-primary,
.btn-dark,
.btn-solid,
.st-btn:not(.ikincil):not(.degisim),
.auth-submit-btn,
.auth-tab-btn.active,
.bex-hesap-btn,
.bex-hesap-empty a,
.bex-hesap .bex-hesap-empty a,
.bex-hesap .bex-hesap-nav .nav-link.active,
.bex-hesap .bex-hesap-nav .nav-link:hover,
.bex-alt-sepet,
.bex-arama-kart #btnKelimeAra,
.product-action .btn-product,
.btn-product-icon.btn-cart,
.add-cart,
a.btn-cart,
button.btn-cart,
.ty-cart-toast-btn-go,
.app-empty-state-btn,
.ty-rev-write-btn,
.bex-arama-tumu,
.bex-arama-chip.is-active,
.bex-arama-chip:hover,
.ty-cpn-amount,
.ty-cpn-btn,
.ty-cpn-collect:not(.is-got):not(.ty-cpn-got),
.ty-cpn-use,
.ty-cpn-form button,
.checkout .btn-checkout,
.btn-checkout,
.sepet-btn,
.cart-action .btn,
.btn-order,
.btn-submit,
button[type="submit"].btn:not(.btn-outline):not(.btn-link):not(.btn-light):not(.btn-secondary),
.swal2-confirm,
.welcome .header-auth-popover .auth-popover-btn-primary {
    background-color: var(--ty-primary) !important;
    border-color: var(--ty-primary) !important;
    color: #ffffff !important;
}

.yeniButon:hover,
.yeniButon.ty-btn-cart:hover,
.yeniButon.ty-btn-cart-main:hover,
.ty-btn-cart-main:hover,
.ty-ms-cart-btn:hover,
.bex-detail .yeniButon.ty-btn-cart-main:hover,
.bex-detail .ty-ms-cart-btn:hover,
.hb-modern .yeniButon.ty-btn-cart-main:hover,
.hb-modern .ty-ms-cart-btn:hover,
.main.bex-detail .yeniButon.ty-btn-cart-main:hover,
.main.bex-detail .ty-ms-cart-btn:hover,
.ty-newsletter-submit:hover,
.btn-primary:hover,
.btn-dark:hover,
.btn-solid:hover,
.st-btn:not(.ikincil):not(.degisim):hover,
.auth-submit-btn:hover,
.bex-hesap-btn:hover,
.bex-hesap-empty a:hover,
.bex-arama-kart #btnKelimeAra:hover,
.product-action .btn-product:hover,
.add-cart:hover,
a.btn-cart:hover,
button.btn-cart:hover,
.ty-cart-toast-btn-go:hover,
.app-empty-state-btn:hover,
.ty-rev-write-btn:hover,
.bex-arama-tumu:hover,
.ty-cpn-btn:hover,
.ty-cpn-collect:not(.is-got):hover,
.ty-cpn-use:hover,
.checkout .btn-checkout:hover,
.btn-checkout:hover,
.btn-order:hover,
.btn-submit:hover,
.swal2-confirm:hover,
.welcome .header-auth-popover .auth-popover-btn-primary:hover {
    background-color: var(--ty-primary-hover) !important;
    border-color: var(--ty-primary-hover) !important;
    color: #ffffff !important;
}

/* Devre dışı / ikincil — tema ezmesin */
.yeniButon.ty-btn-disabled,
.yeniButon.ty-btn-cart.ty-btn-disabled,
.yeniButon.ty-btn-cart-main.ty-btn-disabled,
.yeniButon:disabled,
.ty-btn-cart-main:disabled,
button.yeniButon:disabled {
    background: #f3f4f6 !important;
    background-color: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

.ty-cpn-collect.is-got,
.ty-cpn-got {
    background: #f3f4f5 !important;
    background-color: #f3f4f5 !important;
    color: #616c70 !important;
    border-color: transparent !important;
}

.st-btn.ikincil {
    background: #f7f3ee !important;
    background-color: #f7f3ee !important;
    color: #f27a1a !important;
    border: 1px solid #e8e2db !important;
}

.st-btn.degisim {
    background: #2f7a45 !important;
    background-color: #2f7a45 !important;
    color: #ffffff !important;
    border-color: #2f7a45 !important;
}

/* ========== Fiyat / vurgu metinleri ========== */
.ty-price-num,
.ty-price-cur,
.ty-ms-price,
.taksit-tutari-bold,
.product-price ins,
.new-price,
.hb-modern .ty-price-num,
.hb-modern .ty-price-cur,
.main.bex-detail .ty-price-num,
.main.bex-detail .ty-price-cur,
.product-price .price,
.summary-price,
.cart-price,
.order-total .amount,
.bex-now,
.bex-now.is-sale,
.bex-bag,
.bex-bag i {
    color: var(--ty-primary) !important;
}

.bex-bag:hover,
.bex-bag:hover i {
    color: var(--ty-primary-hover) !important;
}

/* ========== Rozet / badge ========== */
.ty-stage-badge.tag-badge,
.productCargo,
.ty-discount-badge,
.product-label.label-sale,
.bex-home-slider .owl-dots .owl-dot.active {
    background-color: var(--ty-primary) !important;
    color: #ffffff !important;
}

/* ========== Sekme / seçili durumlar ========== */
.ty-nav-link.active {
    color: var(--ty-primary) !important;
    border-bottom-color: var(--ty-primary) !important;
}

.ty-v-thumb-item.active {
    border-color: var(--ty-primary) !important;
    box-shadow: 0 0 0 1px var(--ty-primary) !important;
}

.size_box.ty-size-btn.selected,
.size_box.ty-size-box.selected {
    border-color: var(--ty-primary) !important;
    background: var(--ty-primary-light) !important;
    color: var(--ty-primary) !important;
    box-shadow: 0 0 0 1px var(--ty-primary) !important;
}

/* ========== Footer / newsletter ========== */
.ty-feat-icon-box.orange {
    background: rgba(var(--ty-primary-rgb), 0.15) !important;
    color: var(--ty-primary) !important;
    border-color: rgba(var(--ty-primary-rgb), 0.3) !important;
}

.ty-footer-col-title::after,
.footer-middle .widget-title::after {
    background-color: var(--ty-primary) !important;
}

.ty-footer-col-title i,
.ty-footer-menu-list li a:hover,
.ty-footer-contact-matrix li a:hover,
.ty-breadcrumb-list a:hover,
.ty-tags-title i {
    color: var(--ty-primary) !important;
}

.ty-tag-pill:hover,
.ty-back-to-top-btn:hover {
    border-color: var(--ty-primary) !important;
}

.ty-back-to-top-btn:hover {
    background-color: var(--ty-primary) !important;
    color: #ffffff !important;
}

.ty-newsletter-input:focus {
    border-color: var(--ty-primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--ty-primary-rgb), 0.18) !important;
}

/* ========== Sipariş takip adımları ========== */
.st-adimlar li.tamam::before,
.st-adimlar li.tamam::after {
    background: var(--ty-primary) !important;
    border-color: var(--ty-primary) !important;
}

/* ========== Header arama: beyaz kalsın (tema turuncusu ezmesin) ========== */
#header,
#header.productHeader,
body.is-homepage #header,
body.is-homepage #header.productHeader {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

#header .headerContent,
#header .headerContent.container,
body.is-homepage #header .headerContent {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

#header .searchContent,
#header .searchContent .search,
#header .searchContent form,
body.is-homepage #header .searchContent form {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

#header .searchContent #btnKelimeAra,
body.is-homepage #header .searchContent #btnKelimeAra {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e8e2db !important;
    color: #f27a1a !important;
    box-shadow: none !important;
}

#header .searchContent #btnKelimeAra i,
body.is-homepage #header .searchContent #btnKelimeAra i {
    color: #f27a1a !important;
}

#header .searchContent #btnKelimeAra:hover,
body.is-homepage #header .searchContent #btnKelimeAra:hover {
    background: #f7f5f2 !important;
    background-color: #f7f5f2 !important;
    border-color: #d6cfc6 !important;
    color: #f27a1a !important;
}

#header .searchContent #btnKelimeAra:hover i,
body.is-homepage #header .searchContent #btnKelimeAra:hover i {
    color: #f27a1a !important;
}
