/* ==========================================================================
   TESATEST - Laboratuvar Malzeme Test Cihazları Web Platformu CSS
   Renkler: Kırmızı (#c4161c), Antrasit/Siyah (#18191c), Çelik Gri (#c4c8cc)
   ========================================================================== */

:root {
  --primary-red: #c4161c;
  --primary-red-hover: #a11116;
  --primary-red-light: #fff0f1;
  --dark-base: #18191c;
  --dark-surface: #23252a;
  --dark-text: #2c3036;
  --gray-border: #e3e6ea;
  --gray-light: #f5f7fa;
  --gray-gear: #8e939c;
  --whatsapp-green: #25D366;
  --whatsapp-hover: #1eb856;
  --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--dark-text);
  background-color: #fbfcfd;
  overflow-x: hidden;
  position: relative;
  top: 0px !important;
}

/* Google Translate Complete Invisible Styling */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body {
  top: 0px !important;
  position: static !important;
}

#google_translate_element,
.skiptranslate:not(.lang-custom-wrapper) {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Top Bar */
.top-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--gray-border);
  padding: 6px 0;
  font-size: 13px;
  color: #555c66;
}

.top-bar a {
  color: #555c66;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-bar a:hover {
  color: var(--primary-red);
}

.lang-flag-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none !important;
  color: #444 !important;
}

.lang-flag-btn img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.lang-flag-btn:hover,
.lang-flag-btn.active {
  background-color: #f1f3f5;
  border-color: #dee2e6;
  color: var(--primary-red) !important;
}

/* Main Header */
.main-header {
  background-color: #ffffff;
  padding: 16px 0;
}

.site-logo {
  max-height: 58px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s;
}

.site-logo:hover {
  transform: scale(1.02);
}

/* Header Search */
.header-search-form {
  position: relative;
  max-width: 320px;
}

.header-search-input {
  width: 100%;
  padding: 9px 45px 9px 16px;
  font-size: 13px;
  border: 1px solid #ced4da;
  border-radius: 25px;
  background-color: #fafbfc;
  transition: all 0.2s;
}

.header-search-input:focus {
  background-color: #ffffff;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(196, 22, 28, 0.15);
  outline: none;
}

.header-search-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 36px;
  background-color: var(--primary-red);
  border: none;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.header-search-btn:hover {
  background-color: var(--primary-red-hover);
}

/* Primary Navigation (Tesa Red Bar with Integrated Logo & Search) */
.main-nav-bar {
  background: linear-gradient(90deg, #9e1019 0%, #c4161c 30%, #b8141b 100%);
  box-shadow: 0 3px 10px rgba(196, 22, 28, 0.25);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 4px 0;
}

/* Logo inside navbar */
.nav-logo {
  height: 60px;
  width: auto;
  background-color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  object-fit: contain;
}

.nav-logo:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
}

/* Search inside navbar */
.nav-search-form {
  position: relative;
  min-width: 220px;
  max-width: 260px;
}

.nav-search-input {
  width: 100%;
  padding: 7px 36px 7px 14px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  background-color: #ffffff;
  color: #212529;
  outline: none;
  transition: all 0.2s;
}

.nav-search-input:focus {
  background-color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.nav-search-btn {
  position: absolute;
  right: 3px;
  top: 3px;
  bottom: 3px;
  width: 28px;
  background-color: var(--primary-red);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.nav-search-btn:hover {
  background-color: var(--dark-base);
}

.main-nav-bar .navbar {
  padding: 0;
}

.main-nav-bar .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 16px !important;
  transition: background-color 0.2s, color 0.2s;
}

.main-nav-bar .nav-link:hover,
.main-nav-bar .nav-item.active .nav-link {
  background-color: rgba(0, 0, 0, 0.2);
  color: #ffebec !important;
}

/* Dropdown Menu */
.dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 8px 0;
  min-width: 250px;
}

.dropdown-item {
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: #333;
  transition: all 0.15s;
}

.dropdown-item:hover {
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  padding-left: 22px;
}

/* Hero Slider */
.hero-slider-section {
  position: relative;
  background-color: #121417;
}

.hero-slider-item {
  height: 520px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(18,20,23,0.85) 0%, rgba(18,20,23,0.5) 50%, rgba(18,20,23,0.2) 100%);
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 650px;
  color: #ffffff;
}

.hero-badge {
  display: inline-block;
  background-color: var(--primary-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 17px;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 25px;
}

.btn-tesa-red {
  background-color: var(--primary-red);
  color: #ffffff;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 6px;
  border: none;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-tesa-red:hover {
  background-color: var(--primary-red-hover);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(196, 22, 28, 0.4);
  transform: translateY(-2px);
}

.btn-tesa-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 6px;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-tesa-outline:hover {
  background-color: #ffffff;
  color: var(--dark-base);
  transform: translateY(-2px);
}

/* Category Grid (Reference Style Layout) */
.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: #212529;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-red);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-desc {
  max-width: 780px;
  margin: 14px auto 0;
  color: #6c757d;
  font-size: 15px;
  line-height: 1.6;
}

/* Category Cards */
.cat-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-border);
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  height: 100%;
}

.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(196, 22, 28, 0.15);
  border-color: rgba(196, 22, 28, 0.3);
}

.cat-img-box {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-card:hover .cat-img {
  transform: scale(1.08);
}

.cat-overlay-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 20, 23, 0.85) 100%);
  padding: 24px 14px 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.cat-body {
  padding: 12px 14px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f2f5;
}

.cat-name-link {
  font-weight: 600;
  font-size: 13.5px;
  color: #2e343d;
  transition: color 0.2s;
}

.cat-card:hover .cat-name-link {
  color: var(--primary-red);
}

.cat-count-badge {
  font-size: 11px;
  font-weight: 700;
  background-color: #f1f3f5;
  color: #6c757d;
  padding: 3px 8px;
  border-radius: 12px;
}

/* Product Cards */
.product-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--gray-border);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.product-card:hover {
  border-color: var(--primary-red);
  box-shadow: 0 8px 24px rgba(196, 22, 28, 0.12);
  transform: translateY(-4px);
}

.product-thumb-box {
  position: relative;
  height: 210px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #edf2f7;
  text-decoration: none !important;
  color: inherit;
}

.product-thumb-img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card:hover .product-thumb-img {
  transform: scale(1.05);
}

.product-badge-code {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--dark-base);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 5;
  pointer-events: none;
  text-decoration: none !important;
  line-height: 1.35;
  box-shadow: 0 2px 5px rgba(0,0,0,0.18);
  transition: none !important;
}

.product-card:hover .product-badge-code,
.product-thumb-box:hover .product-badge-code,
a.product-thumb-box:hover .product-badge-code,
a:hover .product-badge-code {
  color: #ffffff !important;
  background-color: var(--dark-base) !important;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-meta {
  font-size: 12px;
  color: #8a92a0;
  font-weight: 500;
  margin-bottom: 6px;
}

.product-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e242c;
  line-height: 1.35;
  margin-bottom: 12px;
  flex-grow: 1;
  text-decoration: none;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-title:hover {
  color: var(--primary-red);
}

.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f3f5;
}

.btn-detail {
  flex-grow: 1;
  background-color: #f1f3f5;
  color: #333;
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-detail:hover {
  background-color: var(--primary-red);
  color: #ffffff;
}

.btn-wa-sm {
  width: 38px;
  height: 38px;
  background-color: var(--whatsapp-green);
  color: #ffffff;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-wa-sm:hover {
  background-color: var(--whatsapp-hover);
  color: #ffffff;
  transform: scale(1.06);
}

/* Call to Action Promo Banners (Reference Style) */
.promo-banners-section {
  padding: 40px 0;
}

.promo-box-career {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 5px solid var(--primary-red);
  border-radius: 8px;
  padding: 35px 30px;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.promo-box-contact {
  background: linear-gradient(135deg, #8a0c13 0%, #c4161c 100%);
  border-radius: 8px;
  padding: 35px 30px;
  color: #ffffff;
  height: 100%;
  box-shadow: 0 4px 20px rgba(196, 22, 28, 0.25);
}

.promo-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.promo-desc {
  font-size: 14px;
  margin-bottom: 22px;
  line-height: 1.55;
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: var(--whatsapp-green);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 9999;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float-btn:hover {
  background-color: var(--whatsapp-hover);
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 6px 26px rgba(37, 211, 102, 0.65);
}

.whatsapp-float-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.6;
  z-index: -1;
  animation: waPulse 2s infinite;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Product Detail Page */
.detail-gallery-box {
  background-color: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.detail-main-img {
  max-height: 380px;
  max-width: 100%;
  object-fit: contain;
}

.detail-thumbs-wrap {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.detail-thumb-item {
  width: 70px;
  height: 70px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  cursor: pointer;
  padding: 4px;
  object-fit: contain;
  transition: border-color 0.2s;
}

.detail-thumb-item:hover,
.detail-thumb-item.active {
  border-color: var(--primary-red);
}

.product-code-pill {
  display: inline-block;
  background-color: #e9ecef;
  color: #495057;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* Contact Page Google Maps */
.google-maps-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border: 1px solid var(--gray-border);
  margin-top: 25px;
}

.google-maps-wrap iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: none;
}

.contact-info-card {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--gray-border);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Footer (Reference Style Layout) */
.main-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--gray-border);
  padding: 50px 0 25px;
  margin-top: 60px;
  color: #555e69;
}

.footer-logo {
  max-height: 64px;
  margin-bottom: 18px;
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: #1a1e24;
  margin-bottom: 18px;
  position: relative;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #636d79;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  color: var(--primary-red);
  padding-left: 4px;
}

.footer-newsletter-form {
  position: relative;
  margin-top: 12px;
}

.footer-newsletter-input {
  width: 100%;
  padding: 10px 45px 10px 14px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 13px;
}

.footer-newsletter-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 36px;
  background-color: #791116;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  border-top: 1px solid #eaedf0;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 12.5px;
  color: #8c96a3;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-slider-item {
    height: 420px;
  }
  .hero-title {
    font-size: 30px;
  }
  .site-logo {
    max-height: 46px;
  }
}

@media (max-width: 575.98px) {
  .hero-slider-item {
    height: 360px;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .whatsapp-float-btn {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}

/* Rich Text & CKEditor Description Content Typography */
.product-description-content {
  color: #2b303a;
  line-height: 1.7;
  font-size: 15px;
}

.product-description-content h1,
.product-description-content h2,
.product-description-content h3,
.product-description-content h4,
.product-description-content h5,
.product-description-content h6 {
  color: #18191C;
  font-weight: 700;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
}

.product-description-content p {
  margin-bottom: 1rem;
}

.product-description-content ul,
.product-description-content ol {
  padding-left: 24px;
  margin-bottom: 1.2rem;
}

.product-description-content li {
  margin-bottom: 6px;
}

.product-description-content table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
}

.product-description-content table th,
.product-description-content table td {
  border: 1px solid #e3e6ea;
  padding: 10px 14px;
  vertical-align: top;
}

.product-description-content table th {
  background-color: #f8f9fa;
  font-weight: 700;
}

.product-description-content table tr:nth-child(even) td {
  background-color: #fafbfc;
}

.product-description-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 6px;
  margin: 10px 0;
}

.product-description-content pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 14px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: inherit;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.product-description-content blockquote {
  border-left: 4px solid var(--primary-red);
  padding-left: 16px;
  margin: 16px 0;
  color: #6c757d;
  font-style: italic;
}

