/**
 * Derya Arık Boutique — Site Karanlık Mod
 * html[data-bs-theme="dark"] / .theme-dark
 */

html[data-bs-theme="dark"]{
  --ink:#f3ece7;
  --muted:#a39890;
  --line:rgba(243,236,231,.12);
  --soft:rgba(243,236,231,.06);
  --accent:#ef4444;
  --accent-red:#e25555;
  --text-dark:#f3ece7;
  --site-bg:#121010;
  --site-paper:#1a1514;
  --site-elev:#221c1a;
  color-scheme:dark;
}

html[data-bs-theme="dark"],
html[data-bs-theme="dark"] body{
  background:var(--site-bg) !important;
  color:var(--ink) !important;
}

/* ---------- Header / Nav ---------- */
html[data-bs-theme="dark"] .navbar-premium{
  background:rgba(26,21,20,.92) !important;
  border-bottom-color:var(--line) !important;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
html[data-bs-theme="dark"] .navbar-premium .navbar-brand,
html[data-bs-theme="dark"] .nav-link-premium{
  color:var(--ink) !important;
}
html[data-bs-theme="dark"] .nav-link-premium:hover{ color:#fff !important; }
html[data-bs-theme="dark"] .nav-link-premium::after{
  background:linear-gradient(90deg, transparent, rgba(226,85,85,.7), transparent);
}
html[data-bs-theme="dark"] .dropdown-menu-premium,
html[data-bs-theme="dark"] .dropdown-menu{
  background:var(--site-elev) !important;
  border-color:var(--line) !important;
  box-shadow:0 22px 50px rgba(0,0,0,.55) !important;
}
html[data-bs-theme="dark"] .dropdown-item{
  color:var(--ink) !important;
}
html[data-bs-theme="dark"] .dropdown-item:hover{
  background:rgba(226,85,85,.12) !important;
  color:#fff !important;
}
html[data-bs-theme="dark"] .dropdown-item small{ color:var(--muted) !important; }

html[data-bs-theme="dark"] .icon-btn{
  background:var(--site-paper) !important;
  border-color:var(--line) !important;
  color:var(--ink) !important;
}
html[data-bs-theme="dark"] .icon-btn:hover{
  background:rgba(243,236,231,.06) !important;
  box-shadow:0 10px 22px rgba(0,0,0,.35) !important;
}
html[data-bs-theme="dark"] .cart-badge{
  border-color:var(--site-paper) !important;
}

/* Tema butonu */
html[data-bs-theme="dark"] .bq-site-theme-btn .bq-sun{ display:inline-block !important; }
html[data-bs-theme="dark"] .bq-site-theme-btn .bq-moon{ display:none !important; }
.bq-site-theme-btn .bq-sun{ display:none; }
.bq-site-theme-btn .bq-moon{ display:inline-block; }
.bq-site-theme-btn{
  border:0; padding:0; cursor:pointer;
  appearance:none; -webkit-appearance:none;
}

/* ---------- Offcanvas / Modal ---------- */
html[data-bs-theme="dark"] .offcanvas,
html[data-bs-theme="dark"] .modal-content{
  background:var(--site-paper) !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
}
html[data-bs-theme="dark"] .offcanvas-header,
html[data-bs-theme="dark"] .modal-header,
html[data-bs-theme="dark"] .offcanvas-footer,
html[data-bs-theme="dark"] .modal-footer{
  border-color:var(--line) !important;
}
html[data-bs-theme="dark"] .offcanvas-title,
html[data-bs-theme="dark"] .modal-title{
  color:var(--ink) !important;
}
html[data-bs-theme="dark"] .btn-close{
  filter:invert(1) grayscale(1);
  opacity:.7;
}
html[data-bs-theme="dark"] .list-group-item{
  background:transparent !important;
  border-color:var(--line) !important;
  color:var(--ink) !important;
}
html[data-bs-theme="dark"] .list-group-item:hover,
html[data-bs-theme="dark"] .list-group-item-action:hover{
  background:rgba(243,236,231,.05) !important;
  color:#fff !important;
}
html[data-bs-theme="dark"] .accordion-item{
  background:transparent !important;
  border-color:var(--line) !important;
}
html[data-bs-theme="dark"] .accordion-button{
  background:var(--site-elev) !important;
  color:var(--ink) !important;
}
html[data-bs-theme="dark"] .accordion-button:not(.collapsed){
  background:rgba(226,85,85,.12) !important;
  color:var(--accent-red) !important;
  box-shadow:none !important;
}
html[data-bs-theme="dark"] .accordion-button::after{ filter:invert(1); }
html[data-bs-theme="dark"] .accordion-body{
  background:var(--site-paper) !important;
  color:var(--ink) !important;
}

/* Mini sepet */
html[data-bs-theme="dark"] #cartCanvas,
html[data-bs-theme="dark"] .offcanvas-premium{
  background:var(--site-paper) !important;
  color:var(--ink) !important;
}
html[data-bs-theme="dark"] #cartCanvas .text-muted,
html[data-bs-theme="dark"] #cartCanvas .offcanvas-body .text-muted{
  color:var(--muted) !important;
}
html[data-bs-theme="dark"] #cartCanvas .btn-outline-dark,
html[data-bs-theme="dark"] #miniCartBody .btn-outline-dark{
  --bs-btn-color:#f3ece7;
  --bs-btn-border-color:rgba(243,236,231,.35);
  --bs-btn-hover-color:#121010;
  --bs-btn-hover-bg:#f3ece7;
  --bs-btn-hover-border-color:#f3ece7;
  --bs-btn-active-color:#121010;
  --bs-btn-active-bg:#f3ece7;
  --bs-btn-active-border-color:#f3ece7;
  --bs-btn-disabled-color:rgba(243,236,231,.75);
  --bs-btn-disabled-bg:transparent;
  --bs-btn-disabled-border-color:rgba(243,236,231,.28);
  color:#f3ece7 !important;
  border-color:rgba(243,236,231,.35) !important;
  background:rgba(243,236,231,.06) !important;
}
html[data-bs-theme="dark"] #cartCanvas .btn-outline-dark:disabled,
html[data-bs-theme="dark"] #miniCartBody .btn-outline-dark:disabled{
  color:#f3ece7 !important;
  opacity:1;
  background:rgba(243,236,231,.1) !important;
  border-color:rgba(243,236,231,.28) !important;
}
html[data-bs-theme="dark"] .mini-cart-foot{
  background:var(--site-elev) !important;
  box-shadow:0 -12px 28px -20px rgba(0,0,0,.65) !important;
  border-top:1px solid var(--line);
}
html[data-bs-theme="dark"] .mini-cart-foot-lbl{
  color:var(--muted) !important;
}
html[data-bs-theme="dark"] .mini-cart-total{
  color:var(--ink) !important;
}
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] input[type="text"],
html[data-bs-theme="dark"] input[type="email"],
html[data-bs-theme="dark"] input[type="password"],
html[data-bs-theme="dark"] input[type="number"],
html[data-bs-theme="dark"] textarea{
  background:var(--site-elev) !important;
  border-color:var(--line) !important;
  color:var(--ink) !important;
}
html[data-bs-theme="dark"] .form-control::placeholder,
html[data-bs-theme="dark"] input::placeholder{
  color:var(--muted) !important;
}
html[data-bs-theme="dark"] .form-control:focus,
html[data-bs-theme="dark"] .form-select:focus{
  border-color:rgba(226,85,85,.5) !important;
  box-shadow:0 0 0 4px rgba(226,85,85,.14) !important;
}
html[data-bs-theme="dark"] .form-label,
html[data-bs-theme="dark"] label{
  color:var(--ink-soft, var(--muted));
}

/* ---------- Ürün kartları / bölümler ---------- */
html[data-bs-theme="dark"] .section-title,
html[data-bs-theme="dark"] .p-name,
html[data-bs-theme="dark"] .p-price,
html[data-bs-theme="dark"] .sim-name,
html[data-bs-theme="dark"] .sim-price,
html[data-bs-theme="dark"] .sim-price span,
html[data-bs-theme="dark"] .sim-meta,
html[data-bs-theme="dark"] .sim-title,
html[data-bs-theme="dark"] .sim-sub,
html[data-bs-theme="dark"] h1,
html[data-bs-theme="dark"] h2,
html[data-bs-theme="dark"] h3,
html[data-bs-theme="dark"] h4,
html[data-bs-theme="dark"] h5{
  color:var(--ink) !important;
}
html[data-bs-theme="dark"] .sim-name{
  color:#f3ece7 !important;
}
html[data-bs-theme="dark"] .sim-price,
html[data-bs-theme="dark"] .sim-price span{
  color:#f3ece7 !important;
}
html[data-bs-theme="dark"] .sim-price s{
  color:var(--muted) !important;
}
html[data-bs-theme="dark"] .sim-sub{
  color:var(--muted) !important;
}
html[data-bs-theme="dark"] .p-name{
  color:#f3ece7 !important;
}
html[data-bs-theme="dark"] .p-price{
  color:#f3ece7 !important;
}
html[data-bs-theme="dark"] .p-media,
html[data-bs-theme="dark"] .look-card,
html[data-bs-theme="dark"] .sim-media{
  background:var(--site-elev) !important;
  border-color:var(--line) !important;
}
html[data-bs-theme="dark"] .p-slide-img,
html[data-bs-theme="dark"] .sim-slide-img{
  background:var(--site-elev) !important;
}
html[data-bs-theme="dark"] .add-to-cart-btn,
html[data-bs-theme="dark"] .sim-cart{
  background:var(--site-paper) !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
}
html[data-bs-theme="dark"] .add-to-cart-btn:hover,
html[data-bs-theme="dark"] .p-card:hover .add-to-cart-btn:hover,
html[data-bs-theme="dark"] .sim-card:hover .sim-cart:hover{
  background:#f3ece7 !important;
  color:#121010 !important;
  border-color:#f3ece7 !important;
}
html[data-bs-theme="dark"] .p-nav,
html[data-bs-theme="dark"] .sim-nav{
  background:rgba(26,21,20,.9) !important;
  border-color:var(--line) !important;
  color:var(--ink) !important;
}
html[data-bs-theme="dark"] .p-nav:hover,
html[data-bs-theme="dark"] .sim-nav:hover{
  background:#f3ece7 !important;
  color:#121010 !important;
}
html[data-bs-theme="dark"] .p-dots,
html[data-bs-theme="dark"] .sim-dots{
  background:rgba(26,21,20,.75) !important;
  border-color:var(--line) !important;
}
html[data-bs-theme="dark"] .p-dot.is-active,
html[data-bs-theme="dark"] .sim-dot.is-active{ background:var(--accent-red) !important; }

html[data-bs-theme="dark"] .sim-section{
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(226,85,85,.08) 0%, transparent 70%),
    linear-gradient(180deg, #161211 0%, #121010 100%) !important;
  border-top-color:var(--line) !important;
}
html[data-bs-theme="dark"] .sim-sub{ color:var(--muted) !important; }

/* Sıralama / filtre (sayfa içi stilleri ezer) */
html[data-bs-theme="dark"] .sort-bar-btn,
html[data-bs-theme="dark"] .sort-sheet,
html[data-bs-theme="dark"] .sort-opt{
  background:var(--site-paper) !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
}
html[data-bs-theme="dark"] .sort-opt.is-active,
html[data-bs-theme="dark"] .sort-opt.is-on{
  background:rgba(226,85,85,.12) !important;
  color:var(--accent-red) !important;
}
html[data-bs-theme="dark"] .sort-opt:active{ background:rgba(243,236,231,.06) !important; }
html[data-bs-theme="dark"] .sort-bar-val,
html[data-bs-theme="dark"] .sort-bar-lbl{
  color:var(--ink) !important;
}
html[data-bs-theme="dark"] .sort-tabs{
  border-bottom-color:var(--line) !important;
}
html[data-bs-theme="dark"] .sort-tabs a{
  color:#e8dfd8 !important;
}
html[data-bs-theme="dark"] .sort-tabs a:hover{
  color:#fff !important;
}
html[data-bs-theme="dark"] .sort-tabs a.is-active{
  color:#fff !important;
  border-bottom-color:var(--accent-red) !important;
}

/* Kategori / breadcrumb / yan menü */
html[data-bs-theme="dark"] .crumb,
html[data-bs-theme="dark"] .crumb a,
html[data-bs-theme="dark"] .cat-count,
html[data-bs-theme="dark"] .text-muted,
html[data-bs-theme="dark"] .form-text{
  color:var(--muted) !important;
}
html[data-bs-theme="dark"] .crumb a:hover{ color:#fff !important; }
html[data-bs-theme="dark"] .cat-title{
  color:#f3ece7 !important;
}
html[data-bs-theme="dark"] .side-box{
  background:var(--site-paper) !important;
  border-color:var(--line) !important;
  color:var(--ink) !important;
}
html[data-bs-theme="dark"] .side-title{
  color:#f3ece7 !important;
}
html[data-bs-theme="dark"] .side-list a{
  color:#e8dfd8 !important;
}
html[data-bs-theme="dark"] .side-list a:hover{
  color:#fff !important;
}
html[data-bs-theme="dark"] .side-list .count{
  color:var(--muted) !important;
}
html[data-bs-theme="dark"] .badge-sold{ background:#f3ece7 !important; color:#121010 !important; }

/* Ürün detay */
html[data-bs-theme="dark"] .pd-wrap,
html[data-bs-theme="dark"] .product-detail,
html[data-bs-theme="dark"] .pd-title,
html[data-bs-theme="dark"] .pd-price{
  color:var(--ink);
}
html[data-bs-theme="dark"] .btn-cart,
html[data-bs-theme="dark"] .btn-dark{
  background:#f3ece7 !important;
  color:#121010 !important;
  border-color:#f3ece7 !important;
}
html[data-bs-theme="dark"] .btn-cart:hover,
html[data-bs-theme="dark"] .btn-dark:hover{
  background:#fff !important;
  color:#000 !important;
}
html[data-bs-theme="dark"] .size-btn,
html[data-bs-theme="dark"] .pd-size,
html[data-bs-theme="dark"] button.size{
  border-color:rgba(243,236,231,.35) !important;
  color:#f3ece7 !important;
  background:rgba(243,236,231,.06) !important;
}
html[data-bs-theme="dark"] .size-btn.is-active,
html[data-bs-theme="dark"] .pd-size.is-active,
html[data-bs-theme="dark"] button.size.is-active{
  background:#f3ece7 !important;
  border-color:#f3ece7 !important;
  color:#121010 !important;
}
/* Favori kalp — beyaz kutu + açık renk ikon = görünmez */
html[data-bs-theme="dark"] .heart{
  background:rgba(243,236,231,.08) !important;
  border-color:rgba(243,236,231,.35) !important;
  color:#e25555 !important;
}
html[data-bs-theme="dark"] .heart:hover{
  background:rgba(226,85,85,.16) !important;
  border-color:rgba(226,85,85,.55) !important;
  color:#ff6b6b !important;
}
html[data-bs-theme="dark"] .heart.is-active{
  background:#e25555 !important;
  border-color:#e25555 !important;
  color:#fff !important;
}

/* Kartlar / checkout / hesap */
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .bg-light{
  background:var(--site-paper) !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
}
html[data-bs-theme="dark"] .table{
  --bs-table-bg:transparent;
  --bs-table-color:var(--ink);
  --bs-table-border-color:var(--line);
  --bs-table-striped-bg:rgba(255,255,255,.03);
  --bs-table-hover-bg:rgba(226,85,85,.08);
  color:var(--ink);
}
html[data-bs-theme="dark"] .table td,
html[data-bs-theme="dark"] .table th{
  border-color:var(--line) !important;
  color:var(--ink) !important;
}
html[data-bs-theme="dark"] .border,
html[data-bs-theme="dark"] .border-top,
html[data-bs-theme="dark"] .border-bottom{
  border-color:var(--line) !important;
}
html[data-bs-theme="dark"] .text-dark,
html[data-bs-theme="dark"] .text-black{
  color:var(--ink) !important;
}
html[data-bs-theme="dark"] .page-link{
  background:var(--site-paper);
  border-color:var(--line);
  color:var(--ink);
}
html[data-bs-theme="dark"] .page-item.active .page-link{
  background:var(--accent-red);
  border-color:var(--accent-red);
  color:#fff;
}

/* Login / auth sayfaları (au-*) — login.php içindeki dark blok ana kaynak */
html[data-bs-theme="dark"] .au-wrap{
  --au-cream:#141011;
  --au-blush:#241a18;
  --au-accent:#e25555;
  --au-gold:#e0c08a;
  --au-ink:#f6efe9;
  --au-muted:#c9bdb4;
  --au-line:rgba(246,239,233,.16);
  background:linear-gradient(180deg, #141011 0%, #100d0c 78%) !important;
}
html[data-bs-theme="dark"] .au-shell{
  background:#1a1514 !important;
  border-color:rgba(246,239,233,.14) !important;
}
html[data-bs-theme="dark"] .au-art{
  background:linear-gradient(160deg, #2a1d1b 0%, #1e1514 45%, #24181a 100%) !important;
  color:#f6efe9 !important;
}
html[data-bs-theme="dark"] .au-panel{ background:#1a1514 !important; }
html[data-bs-theme="dark"] .au-head-title,
html[data-bs-theme="dark"] .au-art-title{ color:#f6efe9 !important; }
html[data-bs-theme="dark"] .au-head-sub,
html[data-bs-theme="dark"] .au-art-sub{ color:#d4c7bd !important; }
html[data-bs-theme="dark"] .au-field input{
  background:#241c1a !important;
  border-color:rgba(246,239,233,.18) !important;
  color:#f6efe9 !important;
}
html[data-bs-theme="dark"] .au-field label{ color:#b8aaa0 !important; }
html[data-bs-theme="dark"] .au-switch{ background:#2a211f !important; }
html[data-bs-theme="dark"] .au-switch button{ color:#b8aaa0 !important; }
html[data-bs-theme="dark"] .au-switch button.is-on{ color:#141011 !important; }
html[data-bs-theme="dark"] .au-switch-pill{ background:#f6efe9 !important; }
html[data-bs-theme="dark"] .au-links a,
html[data-bs-theme="dark"] .au-hint,
html[data-bs-theme="dark"] .au-note,
html[data-bs-theme="dark"] .au-divider{ color:#d4c7bd !important; }
html[data-bs-theme="dark"] .au-links .au-link-strong{ color:#f6efe9 !important; }
html[data-bs-theme="dark"] .au-btn{
  background:#f6efe9 !important;
  color:#141011 !important;
}
html[data-bs-theme="dark"] .au-back{
  border-color:rgba(246,239,233,.22) !important;
  color:#f6efe9 !important;
}
html[data-bs-theme="dark"] .au-illus .au-stroke{ stroke:rgba(246,239,233,.55) !important; }
html[data-bs-theme="dark"] .au-illus .au-fill{ fill:rgba(226,85,85,.18) !important; }
html[data-bs-theme="dark"] .au-art-lines line{ stroke:rgba(226,85,85,.45) !important; }
html[data-bs-theme="dark"] .au-perks li{ color:#f0e6de !important; }

/* Favori login modal (detaylar urun_detay.php içinde de var) */
html[data-bs-theme="dark"] .flg-modal{
  --flg-accent:#e25555;
  --flg-gold:#e0c08a;
  --flg-ink:#f6efe9;
  --flg-muted:#d4c7bd;
  --flg-line:rgba(246,239,233,.16);
}
html[data-bs-theme="dark"] .flg-modal .modal-content{
  background:#1a1514 !important;
  border-color:rgba(246,239,233,.14) !important;
}
html[data-bs-theme="dark"] .flg-head{
  background:linear-gradient(160deg, #2a1d1b 0%, #1e1514 48%, #24181a 100%) !important;
  border-bottom-color:rgba(226,85,85,.25) !important;
}
html[data-bs-theme="dark"] .flg-head-lines line{ stroke:rgba(226,85,85,.5) !important; }
html[data-bs-theme="dark"] .flg-sub,
html[data-bs-theme="dark"] .flg-note{ color:#d4c7bd !important; }
html[data-bs-theme="dark"] .flg-title{ color:#f6efe9 !important; }
html[data-bs-theme="dark"] .flg-links a{ color:#e8dfd8 !important; }
html[data-bs-theme="dark"] .flg-links .flg-link-strong{
  color:#fff !important;
  border-bottom-color:rgba(226,85,85,.65) !important;
}
html[data-bs-theme="dark"] .flg-field input{
  background:#241c1a !important;
  border-color:rgba(246,239,233,.2) !important;
  color:#f6efe9 !important;
}
html[data-bs-theme="dark"] .flg-field label{ color:#b8aaa0 !important; }
html[data-bs-theme="dark"] .flg-btn{
  background:#f6efe9 !important;
  color:#141011 !important;
}
html[data-bs-theme="dark"] .flg-heart{
  background:rgba(255,255,255,.1) !important;
  border-color:rgba(226,85,85,.4) !important;
  color:#e25555 !important;
}

/* App shell */
html[data-bs-theme="dark"].app-shell .app-tabbar{
  background:rgba(26,21,20,.94) !important;
  border-top-color:var(--line) !important;
}
html[data-bs-theme="dark"].app-shell .app-tabbar a{
  color:var(--muted) !important;
}
html[data-bs-theme="dark"].app-shell .app-tabbar a.is-active{
  color:var(--accent-red) !important;
}

/* Footer zaten siyah — ufak dokunuş */
html[data-bs-theme="dark"] footer.bg-black{
  background:#0a0808 !important;
  border-top:1px solid rgba(243,236,231,.06);
}

/* Slick oklar */
html[data-bs-theme="dark"] .slick-prev,
html[data-bs-theme="dark"] .slick-next{
  background:var(--site-paper) !important;
  border:1px solid var(--line);
}
html[data-bs-theme="dark"] .slick-prev:before,
html[data-bs-theme="dark"] .slick-next:before{
  color:var(--ink) !important;
}

@media (prefers-reduced-motion:reduce){
  html[data-bs-theme="dark"] *{
    transition:none !important;
  }
}
