/**
 * Laravel site — Detay Kasa tema uyumluluk katmanı
 * İç sayfalardaki eski by-* bileşenleri için minimal düzeltmeler
 */

/* Marka rengi — turuncu */
:root {
  --theme-color2: #ff6d45;
  --theme-color2-rgb: 255, 109, 69;
  --theme-color7: #ff853f;
}

/* sub-title içindeki ikon görselleri kullanılmıyor */
.sec-title .section-sub-title .sub-title img,
.marquee-block h3 img,
.marquee-block h3 > span:empty {
  display: none !important;
}

/* Bülten — turuncu gönder butonu */
.sign-up-section-home2.classic .sign-up .sign-up-form .form-input-bx button {
    background: #ff6d45 !important;
    color: #fff !important;
}

.sign-up-section-home2.classic .sign-up .sign-up-form .form-input-bx button::before {
    background: #e85a34 !important;
}

.sign-up-section-home2.classic .sign-up .sign-up-form .form-input-bx button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* SweetAlert2 — Detay Kasa (#FF6D45) */
.swal2-popup .swal2-confirm {
    background-color: #ff6d45 !important;
    border-color: #ff6d45 !important;
    color: #fff !important;
}

.swal2-popup .swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(255, 109, 69, 0.35) !important;
}

.swal2-icon.swal2-success {
    border-color: #ff6d45 !important;
    color: #ff6d45 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(255, 109, 69, 0.35) !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #ff6d45 !important;
}

.swal2-icon.swal2-error {
    border-color: #ff6d45 !important;
    color: #ff6d45 !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ff6d45 !important;
}

.swal2-icon.swal2-warning,
.swal2-icon.swal2-info {
    border-color: #ff6d45 !important;
    color: #ff6d45 !important;
}

.swal2-icon.swal2-warning .swal2-icon-content,
.swal2-icon.swal2-info .swal2-icon-content {
    color: #ff6d45 !important;
}

/* İç sayfa formları / kartlar (geçiş dönemi) */
.page-wrapper:not(.bg-black) .by-contact-card,
.page-wrapper:not(.bg-black) .by-content-page {
    color: #e5e5e5;
}

.page-wrapper:not(.bg-black) .by-footer-mod {
    display: none;
}

/* Çerez bildirimi — popup altında, header üstünde */
.by-cookie-consent {
    z-index: 1000000;
}

/* Tema arama popup açıkken site popup üstte kalsın */
.search-popup {
    z-index: 999999;
}

/* FAB scroll-top ile çakışmasın */
.fab-container {
    z-index: 999;
}

.scroll-to-top {
    z-index: 998;
}

/* Arama formu — input geniş, buton yeterli boyutta */
.search-found-inner .search-form {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.search-found-inner .search-form > input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 52px;
    padding: 0 1.25rem;
    border-radius: 30px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
}

.search-found-inner .search-form > input:focus {
    outline: none;
    border-color: var(--theme-color2, #6e4d16);
    box-shadow: 0 0 0 3px rgba(110, 77, 22, 0.12);
    background: #fff;
}

.search-found-inner .search-form > button.theme-btn {
    position: static;
    flex: 0 0 auto;
    min-width: 7rem;
    width: auto;
    height: auto;
    align-self: stretch;
    margin: 0;
    float: none;
    padding: 0 1.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.dk-404-search .theme-btn {
    min-width: 7rem;
    padding: 0 1.75rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.dk-404-search input[type="search"] {
    flex: 1 1 12rem;
}

/* —— 404 Sayfa —— */
.dk-404-page {
    padding: 3rem 0 5rem;
}

.dk-404-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 1.5rem 3rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-wrapper:not(.bg-black) .dk-404-card {
    background: #fff;
    border-color: #eee;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.dk-404-code {
    margin: 0 0 0.5rem;
    font-size: clamp(5rem, 18vw, 8.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #fff;
}

.dk-404-code span {
    color: var(--theme-color2, #ff6d45);
}

.page-wrapper:not(.bg-black) .dk-404-code {
    color: #111;
}

.dk-404-title {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    color: #fff;
}

.page-wrapper:not(.bg-black) .dk-404-title {
    color: #111;
}

.dk-404-desc {
    margin: 0 auto 2rem;
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.page-wrapper:not(.bg-black) .dk-404-desc {
    color: #555;
}

.dk-404-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: stretch;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.dk-404-search input {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.85rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 0.95rem;
}

.page-wrapper:not(.bg-black) .dk-404-search input {
    background: #f6f6f6;
    border-color: #ddd;
    color: #111;
}

.dk-404-search input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.page-wrapper:not(.bg-black) .dk-404-search input::placeholder {
    color: #999;
}

.dk-404-search input:focus {
    outline: none;
    border-color: var(--theme-color2, #ff6d45);
    box-shadow: 0 0 0 3px rgba(255, 109, 69, 0.2);
}

.dk-404-search .theme-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.dk-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.dk-404-actions .theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dk-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dk-404-btn--outline {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    background: transparent;
}

.dk-404-btn--outline:hover {
    border-color: var(--theme-color2, #ff6d45);
    color: var(--theme-color2, #ff6d45);
    background: rgba(255, 109, 69, 0.08);
}

.page-wrapper:not(.bg-black) .dk-404-btn--outline {
    border-color: #ccc;
    color: #222;
}

.page-wrapper:not(.bg-black) .dk-404-btn--outline:hover {
    border-color: var(--theme-color2, #ff6d45);
    color: var(--theme-color2, #ff6d45);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header — Ürünler alt menüsü (show_on_menu kategoriler) */
.main-menu .navigation > li > ul.by-nav-categories {
    min-width: 240px;
    max-width: 300px;
    max-height: min(70vh, 520px);
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 10px;
}

.main-menu .navigation > li > ul.by-nav-categories > li > a {
    white-space: normal;
    line-height: 1.35;
    padding: 12px 0;
}

.by-urunler-alt-kategoriler {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-wrapper:not(.bg-black) .by-urunler-alt-kategoriler {
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* GTranslate — header bayrakları */
.dk-gtranslate {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.dk-gtranslate .gtranslate_wrapper {
    display: flex;
    align-items: center;
    min-height: 32px;
}

.dk-gtranslate .gt_switcher,
.dk-gtranslate .gt_container {
    font-size: 0 !important;
    line-height: 1 !important;
}

.dk-gtranslate .gt_switcher {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}

.dk-gtranslate img {
    width: 28px !important;
    height: auto !important;
    max-height: 20px !important;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 2px;
}

.dk-gtranslate .gt_selected {
    display: inline-flex !important;
    align-items: center;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.dk-gtranslate .gt_switcher .gt_option {
    position: absolute;
    z-index: 1001;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
    min-width: 120px;
}

.dk-gtranslate--header {
    margin-right: 14px;
}

@media (max-width: 575px) {
    .dk-404-page {
        padding: 2rem 0 3.5rem;
    }

    .dk-404-card {
        padding: 2rem 1rem 2.5rem;
    }

    .dk-404-search {
        flex-direction: column;
    }

    .dk-404-search .theme-btn,
    .dk-404-actions .theme-btn,
    .dk-404-btn {
        width: 100%;
        justify-content: center;
    }

    .dk-gtranslate--header {
        margin-right: 10px;
    }

    .dk-gtranslate--header img {
        width: 24px !important;
        max-height: 16px !important;
    }
}
