:root{
  --navy:#35383a!important;
  --blue:#f25a1b!important;
  --sky:#fff0e8!important;
  --ink:#35383a!important;
  --muted:#707274!important;
  --line:#e2ddd7!important;
  --bg:#f7f6f4!important;
  --green:#348566!important;
  --orange:#f25a1b!important;
  --red:#c94f4f!important;
  --white:#fff!important;
  --soft:#f5f2ef!important;
  --blue2:#d9490d!important;
  --shadow:0 18px 48px rgba(53,56,58,.10)!important;
  --tema-antrasit:#35383a;
  --tema-antrasit-koyu:#292c2e;
  --tema-turuncu:#f25a1b;
  --tema-turuncu-koyu:#d9490d;
  --tema-seftali:#fff0e8;
  --tema-kirik-beyaz:#f7f6f4;
  --tema-cizgi:#e2ddd7;
}

html{accent-color:var(--tema-turuncu)}
body{background:var(--tema-kirik-beyaz)!important;color:var(--tema-antrasit)}
a{color:var(--tema-turuncu)}
input:focus,select:focus,textarea:focus{
  border-color:var(--tema-turuncu)!important;
  outline-color:var(--tema-turuncu)!important;
  box-shadow:0 0 0 3px rgba(242,90,27,.10);
}
.card,.modal,.store-modal>section,.cart-drawer,.product-card,.benefits article,
.account-summary article,.order-card,.store-empty{
  border-color:var(--tema-cizgi)!important;
  box-shadow:0 10px 30px rgba(53,56,58,.06);
}
.primary,.store-primary,.btn-primary,button[type="submit"]:not(.outline):not(.danger){
  background:var(--tema-turuncu)!important;
  border-color:var(--tema-turuncu)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(242,90,27,.18)!important;
}
.primary:hover,.store-primary:hover,.btn-primary:hover,button[type="submit"]:not(.outline):not(.danger):hover{
  background:var(--tema-turuncu-koyu)!important;
  border-color:var(--tema-turuncu-koyu)!important;
}
.outline,.store-secondary{
  background:#fff!important;
  border-color:#d8d1ca!important;
  color:#4b4d4f!important;
}
.outline:hover,.store-secondary:hover{border-color:var(--tema-turuncu)!important;color:var(--tema-turuncu)!important}
.service-id,.link,.store-link,.product-meta,.eyebrow{color:var(--tema-turuncu)!important}
.product-v30-tabs button.active,.auth-tabs button.active,.account-tabs button.active{
  color:var(--tema-turuncu)!important;
  border-bottom-color:var(--tema-turuncu)!important;
  background:var(--tema-seftali)!important;
}
.work{background:#fff0e8!important;color:#c64810!important}
.waiting{background:#fff4dc!important;color:#9a6500!important}
.done{background:#e9f5ef!important;color:#287355!important}

/* Yönetim paneli */
.app>aside,.topbar-v31,.super-admin-sidebar{
  background:var(--tema-antrasit)!important;
  color:#f7f4f1!important;
}
.accordion-group,.accordion-head{border-color:#55595b!important}
.accordion-head{background:var(--tema-antrasit)!important;color:#fff!important}
.accordion-group.open>.accordion-head,.accordion-head:hover{background:#414547!important}
.accordion-items{background:var(--tema-antrasit-koyu)!important}
.accordion-items button,.accordion-items a{color:#e9e5e1!important}
.accordion-items button:hover,.accordion-items button.active,.accordion-items a:hover{
  background:rgba(242,90,27,.17)!important;
  color:#fff!important;
  border-left-color:var(--tema-turuncu)!important;
}
.brand,.mobile-menu-button{background:var(--tema-turuncu)!important;color:#fff!important}
.quick button{background:var(--tema-seftali)!important;color:#bd430f!important}
.stat-icon,.top-action{background:#fff3ed!important;color:var(--tema-turuncu)!important}
.agenda-item{border-left-color:var(--tema-turuncu)!important;background:#fff8f4!important}
.calendar-day.selected,.calendar-day.active,[data-calendar-day].active{
  border-color:var(--tema-turuncu)!important;
  background:var(--tema-seftali)!important;
}
.codex-software-footer a{color:var(--tema-turuncu)!important}
main{display:flex;flex-direction:column;min-height:100vh}
main>.page{width:100%;flex:0 0 auto}
.codex-software-footer{width:100%;margin-top:auto!important;padding-top:18px!important;order:9999}

/* Sol menü ana sayfa kaydırmasından bağımsız çalışır. */
@media(min-width:981px){
  .app{
    display:block!important;
    min-height:100vh!important;
    padding-left:210px!important;
  }
  .app>aside,
  aside#codexMainSidebar{
    position:fixed!important;
    z-index:200!important;
    inset:0 auto 0 0!important;
    width:210px!important;
    height:100vh!important;
    height:100dvh!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.32) transparent;
    scrollbar-gutter:stable;
    align-self:auto!important;
  }
  .app>main{width:100%!important;max-width:none!important;margin:0!important;min-height:100vh!important}
  aside#codexMainSidebar::-webkit-scrollbar{width:8px}
  aside#codexMainSidebar::-webkit-scrollbar-track{background:transparent}
  aside#codexMainSidebar::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.28);
    border-radius:999px;
  }
  aside#codexMainSidebar::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.42)}
}

/* Mağaza, ürün ve sabit sayfalar */
.store-top{background:var(--tema-antrasit)!important;color:#fff!important}
.store-header,.category-bar{border-color:var(--tema-cizgi)!important}
.store-search{background:#f8f6f3!important;border-color:#ddd7d1!important}
.store-actions button:hover,.category-bar button:hover,.category-bar button.active,.category-bar a:hover{
  background:var(--tema-seftali)!important;
  color:var(--tema-turuncu)!important;
}
.category-bar button.active{background:var(--tema-turuncu)!important;color:#fff!important}
.store-hero{
  background:
    radial-gradient(circle at 91% 5%,rgba(255,255,255,.72) 0 14%,transparent 14.2%),
    linear-gradient(120deg,#f0f1f1 0%,#faf7f4 48%,#ffeadf 100%)!important;
}
.store-hero h1{color:var(--tema-antrasit)!important}
.store-hero h1 em{color:var(--tema-turuncu)!important}
.hero-panel b,.benefits article>b{background:var(--tema-seftali)!important;color:var(--tema-turuncu)!important}
.product-image{background:#f4f3f1!important}
.product-price strong{color:var(--tema-turuncu)!important}
.discount-badge{background:var(--tema-turuncu)!important}
.stock-badge{background:#e9f5ef!important;color:#287355!important}
.stock-badge.out{background:#fff0e8!important;color:#bd430f!important}
.store-footer{background:var(--tema-antrasit)!important;color:#f6f2ee!important}
.store-footer a,.store-footer button{color:#f4a17d!important}
.store-overlay{background:rgba(41,44,46,.62)!important}
.store-toast{background:var(--tema-antrasit)!important}

/* Giriş, kurulum, müşteri ve süper yönetici ekranları */
.login-card,.install-card,.setup-card,.customer-panel-card,.super-admin-card{
  background:#fff!important;
  border-color:var(--tema-cizgi)!important;
}
.login-logo,.setup-logo,.customer-panel-logo{background:var(--tema-turuncu)!important;color:#fff!important}
.btn{background:var(--tema-turuncu)!important;color:#fff!important}
.super-link,.made-by a{color:var(--tema-turuncu)!important}
.wrap>.head{background:linear-gradient(135deg,#f1f1f0,#fff0e8)!important;border-color:var(--tema-cizgi)!important}
.wrap>.head h1,.section h2,.section h3{color:var(--tema-antrasit)!important}
#adminApp>header,#adminApp>nav,#adminApp .layout>nav{background:var(--tema-antrasit)!important}
#adminApp .layout>nav button.active,#adminApp .layout>nav button:hover{background:var(--tema-turuncu)!important}
#adminApp .file-list button:hover,#adminApp .file-list button.active{background:var(--tema-seftali)!important;color:var(--tema-turuncu)!important}

/* v4.1.65 - Tema dosyası en son yüklendiği için ürün görseli kuralını burada da koru. */
.product-image,
.product-detail-main-image,
.product-thumbnails button {
  background:#fff!important;
}
.product-image img,
.product-detail-main-image img,
.product-thumbnails img {
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
}

@media(max-width:900px){
  .store-header{border-bottom-color:var(--tema-cizgi)!important}
  .mobile-menu-button{box-shadow:0 6px 16px rgba(242,90,27,.22)!important}
}

/* Kullanıcı profilinden seçilen yönetim paneli karanlık modu */
html[data-panel-theme="dark"]{
  --ink:#e8eef8!important;--muted:#91a0b5!important;--line:#314159!important;
  --bg:#09111f!important;--white:#111c2d!important;--soft:#162337!important;
  --navy:#0b1424!important;--shadow:0 18px 48px rgba(0,0,0,.34)!important;
  --tema-antrasit:#101a2b;--tema-antrasit-koyu:#09111f;--tema-kirik-beyaz:#09111f;--tema-cizgi:#314159;
}
html[data-panel-theme="dark"] body,
html[data-panel-theme="dark"] main{background:#09111f!important;color:#e8eef8!important}
html[data-panel-theme="dark"] .page{background:transparent!important}
html[data-panel-theme="dark"] header,
html[data-panel-theme="dark"] .section,
html[data-panel-theme="dark"] .card,
html[data-panel-theme="dark"] .modal,
html[data-panel-theme="dark"] .mp-box,
html[data-panel-theme="dark"] .stat,
html[data-panel-theme="dark"] .table-card,
html[data-panel-theme="dark"] .calendar,
html[data-panel-theme="dark"] .calendar-panel,
html[data-panel-theme="dark"] .ticket-shell,
html[data-panel-theme="dark"] .ticket-account,
html[data-panel-theme="dark"] .ticket-side,
html[data-panel-theme="dark"] .service-print-shell{background:#111c2d!important;color:#e8eef8!important;border-color:#314159!important}
html[data-panel-theme="dark"] h1,
html[data-panel-theme="dark"] h2,
html[data-panel-theme="dark"] h3,
html[data-panel-theme="dark"] h4,
html[data-panel-theme="dark"] b,
html[data-panel-theme="dark"] strong,
html[data-panel-theme="dark"] label,
html[data-panel-theme="dark"] td{color:#e8eef8!important}
html[data-panel-theme="dark"] .sub,
html[data-panel-theme="dark"] small,
html[data-panel-theme="dark"] .muted{color:#91a0b5!important}
html[data-panel-theme="dark"] input,
html[data-panel-theme="dark"] select,
html[data-panel-theme="dark"] textarea,
html[data-panel-theme="dark"] .search,
html[data-panel-theme="dark"] .filter{background:#0c1728!important;color:#e8eef8!important;border-color:#3a4b64!important}
html[data-panel-theme="dark"] input::placeholder,
html[data-panel-theme="dark"] textarea::placeholder{color:#718199!important}
html[data-panel-theme="dark"] table,
html[data-panel-theme="dark"] th,
html[data-panel-theme="dark"] td{border-color:#2b3b52!important}
html[data-panel-theme="dark"] th,
html[data-panel-theme="dark"] thead,
html[data-panel-theme="dark"] .ticket-tabs,
html[data-panel-theme="dark"] .section-title{background:#162337!important;color:#b7c7db!important}
html[data-panel-theme="dark"] tbody tr,
html[data-panel-theme="dark"] .ty-group-row{background:#111c2d!important}
html[data-panel-theme="dark"] tbody tr:nth-child(even),
html[data-panel-theme="dark"] .ty-variant-row,
html[data-panel-theme="dark"] .session-row{background:#0d1829!important}
html[data-panel-theme="dark"] .outline,
html[data-panel-theme="dark"] .icon-btn,
html[data-panel-theme="dark"] .top-action{background:#162337!important;color:#dbe7f6!important;border-color:#3a4b64!important}
html[data-panel-theme="dark"] .user:hover,
html[data-panel-theme="dark"] .user-menu button:hover{background:#1b2a41!important}
html[data-panel-theme="dark"] .user-menu{background:#111c2d!important;border-color:#3a4b64!important;box-shadow:0 22px 60px #0009!important}
html[data-panel-theme="dark"] .user-menu button{background:#111c2d!important;color:#e8eef8!important}
html[data-panel-theme="dark"] .profile-summary,
html[data-panel-theme="dark"] .profile-theme-chooser{border-color:#314159!important}
html[data-panel-theme="dark"] .modal-backdrop{background:#030814c7!important}
html[data-panel-theme="dark"] .calendar-day,
html[data-panel-theme="dark"] [data-calendar-day]{background:#101b2d!important;border-color:#2f4058!important;color:#dfe9f6!important}
html[data-panel-theme="dark"] .calendar-day.selected,
html[data-panel-theme="dark"] .calendar-day.active,
html[data-panel-theme="dark"] [data-calendar-day].active{background:linear-gradient(135deg,#174f68,#6637a4)!important;border-color:#7f72ff!important}
html[data-panel-theme="dark"] .mp-note,
html[data-panel-theme="dark"] .empty,
html[data-panel-theme="dark"] .mp-empty{background:#142239!important;color:#aebfd4!important;border-color:#314159!important}
html[data-panel-theme="dark"] .ticket-main h3,
html[data-panel-theme="dark"] .ticket-amount,
html[data-panel-theme="dark"] .ticket-totals span{background:#17263a!important;color:#dce9f6!important;border-color:#314159!important}
html[data-panel-theme="dark"] .codex-software-footer{color:#91a0b5!important;border-color:#26364d!important}

/* Ürün kartı sağ panelindeki kategori/marka seçimleri her temada okunaklı kalır. */
.product-editor-card,
.product-editor-card h3,
.product-editor-card label,
.product-editor-card span,
.product-editor-card .sub,
.product-editor-taxonomy,
.product-editor-taxonomy label,
.product-editor-taxonomy label span{
  color:#26384a!important;
}
.product-editor-card,
.product-editor-card-body,
.product-editor-taxonomy{
  background:#fff!important;
  border-color:#dbe6ee!important;
}
.product-editor-taxonomy label{
  border-radius:8px;
}
.product-editor-taxonomy label:hover{
  background:#fff4ee!important;
}
.product-editor-taxonomy input[type="radio"],
.product-editor-taxonomy input[type="checkbox"]{
  accent-color:#f25a1b!important;
}
html[data-panel-theme="dark"] .product-editor-card,
html[data-panel-theme="dark"] .product-editor-card h3,
html[data-panel-theme="dark"] .product-editor-card label,
html[data-panel-theme="dark"] .product-editor-card span,
html[data-panel-theme="dark"] .product-editor-card .sub,
html[data-panel-theme="dark"] .product-editor-taxonomy,
html[data-panel-theme="dark"] .product-editor-taxonomy label,
html[data-panel-theme="dark"] .product-editor-taxonomy label span{
  color:#26384a!important;
}
