/* =========================================
   1. CORE & VARIABLES 
   ========================================= */
:root {
    --pns-primary: #0f172a;
    --pns-accent: #3b82f6;
    --pns-blue: #0052cc;
    --pns-bg: #f8fafc;
    --pns-white: #ffffff;
    --pns-text: #1e293b;
    --pns-muted: #64748b;
    --pns-border: #e2e8f0;
    --pns-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
      --suner-blue: #004a5d; 
            --suner-red: #be1622;
            --login-red: #a0121b;
            --footer-dark: #1c3643;
            --footer-bottom: #172a35;
}

html,
body {
    height: 100%;
    margin: 0;
}


  body { font-family: 'Montserrat', sans-serif; background-color: var(--bg-light); margin: 0; display: flex; flex-direction: column; min-height: 100vh; }
        
        /* Navbar & Header Stilleri aynı kalıyor */
        .top-bar { background-color: var(--suner-blue); font-size: 0.75rem; color: white; }
        .main-navbar { background-color: var(--suner-blue); padding: 15px 0; border-top: 1px solid rgba(255,255,255,0.1); }
        .navbar-brand-text { color: white; font-weight: 800; font-size: 1.4rem; text-decoration: none; }
        .nav-link-custom { color: white !important; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; }

        /* KATALOG ÖZEL STİLLERİ */
        .catalog-sidebar .list-group-item { border: none; padding: 12px 15px; transition: 0.2s; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
        .catalog-sidebar .list-group-item:hover { background-color: #eef2ff; color: var(--suner-blue); padding-left: 20px; }
        .catalog-sidebar img { object-fit: contain; margin-right: 10px; }

        .brand-aside img { filter: grayscale(100%); opacity: 0.5; transition: 0.3s; max-width: 110px; }
        .brand-aside img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

        .product-card { transition: 0.3s; border: none; }
        .product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important; }
        
        footer { margin-top: auto; background-color: #1c3643; color: white; }

/* =========================================
   2. LAYOUT STRUCTURE
   ========================================= */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
        z-index: 99999;

}

.main-container {
    flex: 1 0 auto;
    padding-top: 50px;
    padding-bottom: 0;
    /* Alt boşluk sıfırlandı */
    width: 100%;
}

footer {
    flex-shrink: 0;
    background: var(--pns-white);
    padding: 30px 0;
    border-top: 1px solid var(--pns-border);
    text-align: center;
}

/* =========================================
   3. PRODUCT DETAIL (HEADER & CARDS)
   ========================================= */
.product-title {
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--pns-primary);
}

.img-container {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 1.5rem;
    padding: 2rem;
    position: sticky;
    top: 20px;
    box-shadow: var(--pns-shadow);
}

.info-card {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--pns-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

.label-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--pns-muted);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.value-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
}

/* =========================================
   4. ACTION BAR & BUTTONS
   ========================================= */
.action-bar {
    background: var(--pns-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-quote {
    background: #fbbf24;
    border: none;
    font-weight: 800;
    padding: 12px 30px;
    border-radius: 10px;
    color: #000;
    transition: transform 0.2s;
}

.btn-quote:hover {
    transform: scale(1.03);
    background: #f59e0b;
}

/* =========================================
   5. COMPATIBILITY & DESCRIPTION FOOTER (DÜZELTİLDİ)
   ========================================= */
.compatibility-list {
    column-count: 2;
    column-gap: 20px;
    font-size: 0.85rem;
    color: #475569;
}

.compatibility-list div {
    padding: 4px 0;
    border-bottom: 1px dashed #f1f5f9;
    break-inside: avoid;
}

.compatibility-list div:empty {
    display: none;
}

.description-footer {
    background-color: #ffffff !important; /* Arka planı bembeyaz yapar */
    border-top: 1px solid #f1f5f9;
    padding: 40px 0 60px 0;
    width: 100%;
    margin-top: 30px;
}

/* İçeriği merkeze toplayan ve hizayı düzelten kısım */
.description-footer .container {
    max-width: 1320px !important; /* Bootstrap'in standart genişliğine geri döner */
    margin-left: auto !important;  /* Ortalar */
    margin-right: auto !important; /* Ortalar */
    padding-left: 15px;
    padding-right: 15px;
}

/* Alt kutudaki (Highlights) griliği de burada bitirelim */
.tech-highlights-box {
    background-color: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
}

.nav-tabs-custom {
    border-bottom: 2px solid #f1f5f9;
    gap: 40px;
    margin-bottom: 40px;
    margin-left: -5px;
    /* Başlıkları sola tam hizaladık */
}

.nav-tabs-custom .nav-link {
    border: none;
    color: var(--pns-muted);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 15px 0;
    position: relative;
    transition: all 0.3s;
    text-transform: uppercase;
}

.nav-tabs-custom .nav-link.active {
    color: var(--pns-blue);
    background: none;
}

.nav-tabs-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--pns-blue);
}

.readable-content {
    max-width: 100% !important;
    /* İçerik sola yayıldı */
}

.tab-content {
    animation: fadeIn 0.5s ease;
}

.tech-highlights-box {
    background-color: #f8fafc;
    border-radius: 1rem;
    padding: 2rem !important;
    border: 1px solid #e2e8f0;
    margin-left: -5px;
    /* Kutu hizalaması düzeltildi */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   6. SEARCH & SUGGESTIONS UI
   ========================================= */
.search-wrapper {
    max-width: 750px;
    margin: 100px auto 0 auto;
}

.search-input-group {
    background: var(--pns-white);
    border-radius: 16px;
    padding: 10px;
    display: flex;
    align-items: center;
    box-shadow: var(--pns-shadow);
    border: 1px solid var(--pns-border);
}

.search-input-group input {
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 12px;
    width: 100%;
}

.search-suggestions {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 0;
}

.suggestion-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f1f1;
}

.suggestion-item:hover {
    background-color: #f8faff;
    padding-left: 25px;
}

/* =========================================
   7. UTILITIES & HELPER CLASSES
   ========================================= */
.fw-extrabold {
    font-weight: 800;
}

.bg-primary-subtle {
    background-color: #e7f1ff;
}

.bg-success-subtle {
    background-color: #d1e7dd;
}

.pns-product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pns-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}


/* =========================================
   LANGUAGE SWITCHER (Hızlı Düzeltme)
   ========================================= */
.lang-container {
    display: flex;
    gap: 12px;
    /* Linkler arasındaki boşluk */
    align-items: center;
    justify-content: center;
    /* Merkeze hizalar */
}

.lang-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pns-accent);
    /* Değişkenindeki mavi renk */
    text-decoration: none;
    /* Alt çizgiyi kaldırmak için (opsiyonel) */
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Aktif dilin altını çizmek veya vurgulamak için */
.lang-link.active {
    color: var(--pns-white);
    background-color: var(--pns-accent);
}

.lang-link:hover {
    color: var(--pns-white);
    background-color: var(--pns-blue);
    transform: translateY(-1px);
}

/* Eğer resimdeki gibi sadece mavi ve yan yana durmalarını istiyorsan: */
.lang-link-simple {
    color: #007bff;
    text-decoration: underline;
    margin-right: 10px;
    font-weight: bold;
}

/* Navbar arama kutusu için özel stil */
.nav-search-container {
    position: relative;
    max-width: 400px;
    width: 100%;
    margin: 0 20px;
}

#navSearchSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.navbar-search-input {
    border-radius: 20px !important;
    font-size: 0.9rem;
    padding-left: 40px !important;
}

.search-icon-inside {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    color: #6c757d;
}


.lang-select-wrapper {
    min-width: 120px;
}

#langSelect {
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 4px;
    padding: 4px 8px;
}

#langSelect:focus {
    border-color: #0d6efd;
    /* Tema renginiz */
}


.dropdown-menu {
     z-index: 9999 !important;
    position: absolute;
        min-width: 220px;
        background-color: #ffffff;
        padding: 10px 0;
    }
    .dropdown-item {
        color: var(--suner-blue);
        font-size: 0.85rem;
        transition: all 0.2s;
    }
    .dropdown-item:hover {
        background-color: var(--bg-light);
        color: var(--suner-red) !important;
        padding-left: 1.5rem;
    }
    /* Ok ikonunu sağa yaslamak istersen */
    .dropdown-toggle::after {
        vertical-align: middle;
        margin-left: 8px;
    }


    /* Ana Renk Temeli: #164e63 bazlı kurumsal palet */
.corp-footer {
  background-color: #08212b; /* En koyu taban */
  color: #a5c4cc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

/* Üst Güvenlik ve Avantaj Barı */
.corp-footer-features {
  background-color: #0d2f3c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(22, 78, 99, 0.45);
  border: 1px solid #164e63;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-title {
  display: block;
  color: #f0fdfa;
  font-size: 13px;
  font-weight: 600;
}

.feature-sub {
  font-size: 11.5px;
  color: #7ba2ad;
  display: block;
}

/* Başlıklar & Künye */
.brand-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.brand-desc {
  color: #8daab2;
  font-size: 12.5px;
  line-height: 1.5;
}

.corp-section-title {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.corp-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2.5px;
  background: #164e63;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
  border-radius: 2px;
}

/* Menü Linkleri */
.corp-links, .corp-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.corp-links li {
  margin-bottom: 8.5px;
}

.corp-links a {
  color: #92b1ba;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.corp-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

/* İletişim Listesi */
.corp-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #92b1ba;
}

.corp-contact-list i {
  color: #22d3ee;
  font-size: 15px;
  margin-top: 1px;
  flex-shrink: 0;
}

.corp-contact-list a {
  color: #92b1ba;
  text-decoration: none;
  transition: color 0.2s;
}

.corp-contact-list a:hover {
  color: #ffffff;
}

/* E-Bülten Formu */
.newsletter-info {
  font-size: 12px;
  color: #7ba2ad;
  margin-bottom: 12px;
}

.corp-newsletter-box .form-control {
  background: #0d2f3c;
  border: 1px solid #164e63;
  color: #f0fdfa;
  font-size: 12.5px;
  padding: 9px 12px;
}

.corp-newsletter-box .form-control:focus {
  border-color: #22d3ee;
  background: #0f3747;
  color: #fff;
  box-shadow: none;
}

.btn-corp-submit {
  background: #164e63;
  color: #ffffff;
  font-weight: 600;
  font-size: 12.5px;
  padding: 0 16px;
  border: 1px solid #164e63;
  transition: all 0.2s;
}

.btn-corp-submit:hover {
  background: #1f6b88;
  border-color: #1f6b88;
  color: #ffffff;
}

/* Sosyal Ağ İkonları */
.text-muted-sub {
  font-size: 11px;
  text-transform: uppercase;
  color: #63858f;
  letter-spacing: 0.05em;
}

.social-icons {
  display: flex;
  gap: 8px;
}

.social-circle {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #0d2f3c;
  color: #a5c4cc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #164e63;
  transition: all 0.2s;
  font-size: 13.5px;
}

.social-circle:hover {
  background: #164e63;
  color: #ffffff;
  border-color: #22d3ee;
  transform: translateY(-2px);
}

/* En Alt Bar */
.corp-footer-bottom {
  background: #041217;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
  color: #92b1ba;
  font-size: 12px;
}

.corp-sub-meta {
  font-size: 11px;
  color: #5c7e87;
  display: block;
  margin-top: 3px;
}

/* Ödeme & Güvenlik Rozetleri */
.payment-badge {
  background: #0d2f3c;
  border: 1px solid #164e63;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #a5c4cc;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Katalog menüsü: daha ferah ve modern açılır liste */
.pns-dropdown-menu { min-width: 260px !important; padding: 6px !important; margin-top: 8px !important; background: linear-gradient(160deg, #0ea5e9 0%, #0284c7 58%, #075985 100%) !important; border: 1px solid rgba(255, 255, 255, 0.32) !important; border-radius: 12px !important; box-shadow: 0 18px 42px rgba(7, 89, 133, 0.3) !important; overflow: hidden; }
.pns-dropdown-menu .dropdown-item { min-height: 42px; display: flex; align-items: center; padding: 9px 12px !important; border: 0 !important; border-radius: 8px; color: #ffffff !important; font-size: 13px; font-weight: 600; transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.pns-dropdown-menu .dropdown-item + .dropdown-item { border-top: 1px solid rgba(255, 255, 255, 0.18) !important; }
.pns-dropdown-menu .dropdown-item:hover { background: rgba(255, 255, 255, 0.18) !important; color: #ffffff !important; transform: translateX(2px); }
.pns-dropdown-menu .dropdown-item i { color: #38bdf8 !important; opacity: 1; transition: transform 0.18s ease; }
.pns-dropdown-menu .dropdown-item:hover i { transform: translateX(3px); }
