:root {
    --primary-blue: #48a5db; /* Turkuaz / Açık Mavi */
    --dark-blue: #2d6f8f; /* Koyu Mavi */
    --accent-green: #8ec63f; /* Yeşil */
    --bg-light: #f8f9fa;
    --text-dark: #333333;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Navbar */
.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar-custom .navbar-brand img {
    height: 50px;
}
.navbar-custom .nav-link {
    color: var(--dark-blue);
    font-weight: 500;
    padding: 10px 15px !important;
    transition: color 0.3s ease;
}
.navbar-custom .nav-link:hover {
    color: var(--primary-blue);
}

/* Topbar */
.topbar {
    background-color: var(--dark-blue);
    color: #ffffff;
    padding: 7px 0;
    font-size: 1rem;
}
.topbar a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 15px;
}
.topbar a:hover {
    color: var(--accent-green);
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}
.btn-primary-custom:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: #fff;
}
.btn-accent-custom {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: #fff;
}
.btn-accent-custom:hover {
    background-color: #7ab32d;
    border-color: #7ab32d;
    color: #fff;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 50px;
}
footer a {
    color: #b0d4e8;
    text-decoration: none;
}
footer a:hover {
    color: var(--accent-green);
}

/* Product Card */
.product-card {
    background: #fff;
    border: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.product-price {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Carousel */
.hero-carousel .carousel-item {
    height: 400px;
    background-color: var(--dark-blue);
    color: white;
}
.hero-carousel .carousel-caption {
    bottom: 20%;
    background: rgba(45, 111, 143, 0.8);
    padding: 20px;
    border-radius: 10px;
}

/* Thumbnails */
.product-thumbnails img {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border 0.3s ease;
}
.product-thumbnails img:hover, .product-thumbnails img.active {
    border-color: var(--primary-blue);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .topbar {
        font-size: 1.05rem;
        padding: 10px 0;
    }
    .topbar .container {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }
    .topbar div:first-child {
        width: 100% !important;
        text-align: center !important;
    }
    .topbar div:last-child {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .topbar a {
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        white-space: nowrap !important;
    }
    .navbar-brand img {
        height: 80px !important;
        transform: scale(1.25) !important;
        transform-origin: left center;
    }
    footer {
        text-align: center !important;
    }
    footer ul {
        padding-left: 0 !important;
    }
    
    /* Responsive Cart List */
    .table-responsive table.table-borderless thead {
        display: none;
    }
    .table-responsive table.table-borderless tbody tr {
        display: block;
        position: relative;
        padding: 15px 15px 15px 95px;
        min-height: 120px;
        border-bottom: 1px solid #eee !important;
    }
    .table-responsive table.table-borderless tbody tr td {
        display: block;
        padding: 4px 0 !important;
        text-align: left !important;
        border: none;
        width: 100% !important;
    }
    .table-responsive table.table-borderless tbody tr td:first-child {
        position: static;
        padding: 0 !important;
    }
    .table-responsive table.table-borderless tbody tr td:first-child img {
        position: absolute;
        left: 15px;
        top: 15px;
        width: 70px;
        height: 70px;
        object-fit: cover;
    }
    .table-responsive table.table-borderless tbody tr td:first-child .ms-3 {
        margin-left: 0 !important;
    }
    .table-responsive table.table-borderless tbody tr td:nth-child(2) {
        width: 100px !important;
        margin-top: 10px;
        display: inline-block;
    }
    .table-responsive table.table-borderless tbody tr td:nth-child(3) {
        display: inline-block;
        width: auto !important;
        margin-left: 15px;
        font-size: 0.9rem;
    }
    .table-responsive table.table-borderless tbody tr td:nth-child(4) {
        display: block;
        font-size: 1.05rem;
        margin-top: 5px;
    }
    .table-responsive table.table-borderless tbody tr td:nth-child(5) {
        position: absolute;
        top: 10px;
        right: 10px;
        width: auto !important;
        padding: 0 !important;
    }
}

/* Mobile responsive dropdown menu (Bootstrap collapse breakpoint) */
@media (max-width: 991px) {
    .navbar-custom .navbar-nav {
        padding: 10px 0;
    }
    .navbar-custom .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    .navbar-custom .dropdown-menu {
        background-color: #fcfcfc;
        border: none;
        box-shadow: none;
        padding-left: 15px;
        margin-top: 0;
        border-left: 3px solid var(--primary-blue);
        border-radius: 0;
    }
    .navbar-custom .dropdown-item {
        padding: 8px 0 !important;
        color: var(--dark-blue) !important;
        font-weight: 500;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    }
    .navbar-custom .dropdown-item:hover {
        background: transparent !important;
        color: var(--primary-blue) !important;
    }
}

/* Custom Social & Callback Buttons */
.btn-whatsapp-custom {
    background-color: #25D366;
    border-color: #25D366;
    color: #ffffff;
    transition: all 0.3s ease;
}
.btn-whatsapp-custom:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    color: #ffffff;
}
.btn-callback-custom {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
    transition: all 0.3s ease;
}
.btn-callback-custom:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: #ffffff;
}
.btn-outline-primary-custom {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background-color: transparent;
    transition: all 0.3s ease;
}
.btn-outline-primary-custom:hover {
    color: #ffffff;
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Fade-in animation for dynamic details */
.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Print Styling - Clean, Premium Brochure Layout */
@page {
    size: A4 portrait;
    margin: 0 !important;
}

@media print {
    *, ::after, ::before {
        box-sizing: border-box !important;
    }
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        font-size: 10pt;
        line-height: 1.4;
        padding: 1.2cm 1.5cm !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Hide all interactive/navigation components */
    header, footer, nav, .topbar, .navbar-custom, .breadcrumb, 
    .product-thumbnails, .btn, form, #productTabs, .card.bg-light, 
    .row.mt-5:not(.specs-row), #callBackModal, .modal-backdrop,
    .d-print-none, [class*="d-print-none"], .alert, .badge, .badge-secondary {
        display: none !important;
    }
    /* Reset margins and paddings for clean spacing */
    .container, .row, .bg-white, .card, .card-body {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    .col-lg-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 10px !important;
    }
    .col-12 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    /* Sizing adjustments to prevent overflow */
    h1.h2 {
        font-size: 17pt !important;
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        font-weight: 700 !important;
    }
    h2 {
        font-size: 13pt !important;
        margin-bottom: 8px !important;
    }
    h5 {
        font-size: 10.5pt !important;
        margin-top: 15px !important;
        margin-bottom: 6px !important;
        font-weight: 600 !important;
    }
    .text-muted {
        color: #222222 !important;
    }
    p {
        font-size: 9pt !important;
        margin-bottom: 8px !important;
        line-height: 1.35 !important;
    }
    .mb-4, .mb-5, .mt-5, .pb-4 {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }
    /* Image and wrapper constraints */
    .product-main-img-container {
        height: auto !important;
        max-height: 270px !important;
        background-color: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 auto 15px auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #mainProductImage {
        max-height: 255px !important;
        width: auto !important;
        display: block !important;
        margin: 0 auto !important;
        border: none !important;
        object-fit: contain !important;
    }
    /* Formatting table for specs */
    .tab-content, .tab-pane {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .table-responsive {
        overflow: visible !important;
        width: 100% !important;
    }
    table.table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-top: 12px !important;
    }
    table.table th, table.table td {
        border: 1px solid #cccccc !important;
        padding: 6px 10px !important;
        font-size: 9pt !important;
        text-align: left !important;
    }
    table.table tr {
        page-break-inside: avoid !important;
    }
    .container::before {
        display: none !important;
    }
    .container::after {
        display: none !important;
    }
}

/* Floating WhatsApp Support Button (Original Green, Bottom Left) */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.2);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}
.whatsapp-float:hover {
    background-color: #128c7e;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 2px 4px 20px rgba(0,0,0,0.35);
}
.whatsapp-icon {
    font-size: 30px;
}
.whatsapp-float::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.6;
    z-index: -1;
    animation: whatsappPulse 2s infinite;
}
@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ------ Canlı Destek Chatbot Widget ------ */
.chatbot-wrap {
  --h-red: var(--primary-blue, #48a5db);
  --h-red-hover: var(--dark-blue, #2d6f8f);
  --h-red-soft: rgba(72, 165, 219, 0.09);
  --h-black: #1a1a1a;
  --h-text: #1e2a3a;
  --h-muted: #5c6b7a;
  --h-border: #d8e0ea;
  --h-bg: #ffffff;
  --h-bg-soft: #f0f3f8;
  --h-bg-dark: #152a40;
  --h-footer: #0d1b2a;
  --h-header-bg: #f4f6fb;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 8px;

  position: fixed;
  right: 1rem;
  right: max(1rem, env(safe-area-inset-right));
  bottom: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 10050;
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chatbot-launcher {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.chatbot-teaser {
  margin: 0;
  max-width: min(240px, calc(100vw - 2.5rem));
  padding: 0.65rem 0.95rem;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 800;
  color: #fff;
  text-align: right;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--h-red) 78%, #fff) 0%,
    var(--h-red) 42%,
    var(--h-red-hover) 100%
  );
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(72, 165, 219, 0.42);
  position: relative;
}

.chatbot-teaser__name {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.96;
  margin-bottom: 0.2rem;
}

.chatbot-teaser__msg {
  display: block;
}

.chatbot-teaser::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 30px;
  width: 12px;
  height: 12px;
  background: var(--h-red-hover);
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 2px 2px 6px rgba(72, 165, 219, 0.28);
}

.chatbot-wrap.chatbot-is-open .chatbot-teaser {
  display: none;
}

.chatbot-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 1px solid rgba(213, 221, 229, 0.95);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #ffffff 0%, #eef2f7 45%, #dde4ec 100%);
  color: inherit;
  cursor: pointer;
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.chatbot-fab:hover {
  transform: scale(1.05);
  border-color: rgba(72, 165, 219, 0.25);
  box-shadow:
    0 14px 36px rgba(15, 23, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.chatbot-fab:focus-visible {
  outline: 3px solid var(--h-red);
  outline-offset: 3px;
}

.chatbot-mascot-img {
  display: block;
  width: 62px;
  height: auto;
  margin-top: 2px;
  pointer-events: none;
  user-select: none;
}

.chatbot-mascot-img--fab {
  width: 62px;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 0.55rem;
  width: min(100vw - 2rem, 380px);
  max-height: min(72vh, 520px);
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--h-border);
  background: var(--h-bg);
}

.chatbot-panel-inner {
  display: flex;
  flex-direction: column;
  max-height: min(72vh, 520px);
  min-height: 0;
}

.chatbot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--h-header-bg);
  border-bottom: 1px solid var(--h-border);
}

.chatbot-header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.chatbot-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #ffffff 0%, #eef2f7 50%, #e2e8f0 100%);
  border: 1px solid var(--h-border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.chatbot-avatar--mascot {
  padding-bottom: 2px;
}

.chatbot-mascot-img--header {
  width: 40px;
  height: auto;
}

.chatbot-header-text {
  min-width: 0;
}

.chatbot-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--h-text);
}

.chatbot-sub {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--h-muted);
}

.chatbot-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--h-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.chatbot-close:hover {
  background: var(--h-bg-soft);
  color: var(--h-text);
}

.chatbot-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  background: var(--h-bg-soft);
}

.chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.chatbot-msg {
  max-width: 92%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.45;
}

.chatbot-msg--user {
  align-self: flex-end;
  margin-left: auto;
  background: var(--h-red);
  color: #fff;
}

.chatbot-msg--bot {
  align-self: flex-start;
  background: var(--h-bg);
  color: var(--h-text);
  border: 1px solid var(--h-border);
  box-shadow: var(--shadow-sm);
}

.chatbot-msg--bot a {
  color: var(--h-red);
  font-weight: 600;
}

.chatbot-msg--bot strong {
  color: var(--h-text);
}

.chatbot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem 0.65rem;
  background: var(--h-bg);
  border-top: 1px solid var(--h-border);
}

.chatbot-chip {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--h-red);
  background: var(--h-red-soft);
  border: 1px solid rgba(72, 165, 219, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.chatbot-chip:hover {
  background: rgba(72, 165, 219, 0.14);
  border-color: var(--h-red);
}

.chatbot-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: var(--h-bg);
  border-top: 1px solid var(--h-border);
}

.chatbot-input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--h-border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--h-red);
  box-shadow: 0 0 0 3px var(--h-red-soft);
}

.chatbot-submit {
  flex-shrink: 0;
  padding: 0.55rem 0.85rem !important;
  font-size: 0.85rem !important;
}

@media (max-width: 480px) {
  .chatbot-panel {
    width: min(100vw - 1.25rem, 100%);
    right: 0;
    max-height: min(65vh, 480px);
    margin-bottom: 0.45rem;
  }

  .chatbot-teaser {
    max-width: min(200px, calc(100vw - 2rem));
    padding: 0.55rem 0.75rem;
    font-size: 0.75rem;
  }

  .chatbot-teaser__name {
    font-size: 0.68rem;
  }

  .chatbot-fab {
    width: 82px;
    height: 82px;
  }

  .chatbot-mascot-img--fab {
    width: 52px;
  }

  .chatbot-avatar {
    width: 54px;
    height: 54px;
  }

  .chatbot-mascot-img--header {
    width: 36px;
  }
}

@media print {
  .chatbot-wrap {
    display: none !important;
  }
}

body.nav-open .chatbot-wrap {
  z-index: 80;
}

/* ------ Ürün Karşılaştırma Panel & Tablo ------ */
.compare-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(45, 111, 143, 0.96); /* Brand Koyu Mavi */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100050;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.compare-drawer.show {
    transform: translateY(0);
}
.compare-drawer-content {
    min-height: 70px;
}
.compare-thumbnails img {
    border-radius: 2px;
}
.compare-thumb-wrapper .btn-close-white {
    width: 14px;
    height: 14px;
    font-size: 9px;
    line-height: 14px;
    background-color: #e63946;
    color: #fff;
    opacity: 0.9;
    border: none;
    outline: none;
}
.compare-thumb-wrapper .btn-close-white:hover {
    background-color: #d62828;
    opacity: 1;
}

/* Compare matrix styles */
.compare-matrix-table th, .compare-matrix-table td {
    padding: 1rem;
    border-color: #e9ecef;
}
.compare-heading-col {
    background-color: #fcfcfc !important;
    font-weight: 600;
}
.compare-product-col {
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}
.compare-product-col:hover {
    background-color: #fdfdfd;
}

/* Print layout exclusion for compare elements */
@media print {
    .compare-drawer {
        display: none !important;
    }
}

