:root {
  --primary: #005a87;
  --primary-light: #0078b4;
  --secondary: #f5a31a;
  --secondary-dark: #d18e15;
  --bg: #f7f7f7;
  --dark: #1c1c1c;
  --light: #ffffff;
  --gray: #6c757d;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
}

html {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== NAVBAR CORE STYLES ===== */
.navbar {
  padding: 15px 0;
  transition: all 0.3s;
  background-color: var(--light);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== BRAND STYLES ===== */
.navbar-brand {
  color: var(--primary) !important;
  font-size: 24px;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  transition: all 0.3s;
}

/* ===== NAV LINK STYLES ===== */
.nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 8px 15px !important;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover, 
.nav-link:focus {
  color: var(--primary);
}

.nav-link:before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.nav-link:hover:before {
  visibility: visible;
  width: 100%;
}

/* ===== DROPDOWN MEGA MENU ===== */
.dropdown-toggle::after {
  display: none;
}

.dropdown-hover {
  position: static; /* For full-width dropdown */
}

.dropdown-megamenu {
  width: 100%;
  left: 0;
  right: 0;
  padding: 0;
  border: none;
  border-radius: 0 0 10px 10px;
  display: none;
  position: absolute;
  background: white;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  z-index: 1000;
}

.dropdown-hover:hover .dropdown-megamenu {
  display: block;
  margin-top: 0;
}

/* Dropdown Content */
.dropdown-megamenu .container-fluid {
  padding: 0;
}

.dropdown-megamenu .row {
  margin: 0;
}

/* Category Sections */
.dropdown-header {
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.dropdown-header a {
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.dropdown-header a:hover {
  color: var(--primary-light) !important;
  padding-left: 5px;
}

/* Dropdown Items */
.dropdown-item {
  padding: 0.5rem 1rem;
  color: var(--dark);
  transition: all 0.2s ease;
  display: block;
  border-radius: 4px;
  margin: 0.25rem 0;
}

.dropdown-item:hover {
  background-color: rgba(13, 110, 253, 0.1);
  transform: translateX(5px);
  color: var(--primary);
  text-decoration: none;
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate.slideIn {
  animation: slideIn 0.3s ease-out;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (min-width: 992px) {
  .dropdown-megamenu {
    padding: 1rem;
  }
  
  .dropdown-hover {
    position: relative;
  }
}

/* Mobile Menu Fixes */
@media (max-width: 991.98px) {
  .dropdown-megamenu {
    position: static;
    box-shadow: none;
    animation: none;
    display: none !important;
  }
  
  .dropdown-megamenu.show {
    display: block !important;
  }
  
  .dropdown-item:hover {
    transform: none;
    background-color: rgba(13, 110, 253, 0.05);
  }
}

/* Hero Slider */
.hero {
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-1 {
  background-image: url('images/statics/slider1.jpg');
}
.hero-2 {
  background-image: url('images/statics/slider2.png');
}
.hero-3 {
  background-image: url('images/statics/slider3.jpg');
}
.hero-4 {
  background-image: url('images/statics/slider4.jpg');
}

.hero .overlay {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.carousel-indicators button {
  width: 40px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 10px;
  transition: background-color 0.3s, box-shadow 0.3s;
  padding: 0;
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}
.section-header {
  margin-bottom: 50px;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
  position: relative;
  display: flex; /* origin: inline-block*/
  justify-content: center;
}
.section-title:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background: var(--primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}
.section-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* About Section */
.about-img {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.about-content {
  text-align: center;
  list-style: none;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.experience-badge h3 {
  font-size: 2.5rem;
  line-height: 1;
}

.vision-box {
  border-left: 4px solid var(--primary);
  border-right: 4px solid var(--primary);
}

.icon-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-primary-light {
  background-color: rgba(0, 90, 135, 0.1);
}

.feature-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Services */
.service-box {
  background: var(--light);
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.service-box:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary);
  z-index: -1;
  transition: all 0.3s;
}
.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.service-box:hover:before {
  width: 100%;
}
.service-box:hover .service-icon i,
.service-box:hover h4,
.service-box:hover p,
.service-box:hover .read-more {
  color: var(--light);
}
.service-icon {
  margin-bottom: 20px;
}
.service-icon i {
  font-size: 40px;
  color: var(--primary);
  transition: all 0.3s;
}
.service-box h4 {
  font-weight: 600;
  margin-bottom: 15px;
  transition: all 0.3s;
}
.service-box p {
  color: var(--gray);
  transition: all 0.3s;
}
.read-more {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
  transition: all 0.3s;
}
.read-more i {
  margin-left: 5px;
  transition: all 0.3s;
}
.read-more:hover {
  color: var(--secondary);
}

/* Brands */
.grayscale {
  filter: grayscale(10%);
  opacity: 0.6;
  transition: all 0.3s;
  border-radius: 28px;
}
.grayscale:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Contact */
.contact-item {
  display: flex;
  margin-bottom: 25px;
}
.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}
.contact-icon i {
  font-size: 20px;
}
.contact-text h5 {
  font-weight: 600;
  margin-bottom: 5px;
}
.contact-text a {
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s;
}
.contact-text a:hover {
  color: var(--primary);
}
.contact-form {
  background: var(--light);
}
.contact-form h4 {
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.contact-form h4:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background: var(--primary);
  bottom: 0;
  left: 0;
}
.form-control {
  height: 50px;
  border-radius: 0;
  border: 1px solid #ddd;
  
}
.form-control:focus {
  box-shadow: none;
  border-color: var(--primary);
  border-radius: 8px;
}
textarea.form-control {
  height: auto;
  resize: none;
  border-radius: 8px;
}
input.form-control {
  border-radius: 8px;
}

div.col-lg-5.mb-5.mb-lg-0 {
  display: flex;
  align-items: center;
}

.contact-item.mb-4 {
  margin-bottom: 40px !important;
}


/* Map */
.map-section {
  width: 100%;
  height: 450px;
}
.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  margin-top: auto;
  width: 100%;
  background: var(--dark);
  color: var(--light);
}
footer h5 {
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}
footer h5:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--primary);
  bottom: -10px;
  left: 0;
}
footer a {
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s;
}
footer a:hover {
  color: var(--secondary);
  text-decoration: none;
}
footer ul li {
  margin-bottom: 10px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s;
}
.social-links a:hover {
  background: var(--primary);
  color: var(--light);
}

.social-links.mt-4 {
  display: flex;
  align-items: center;
}


/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  background-color: #007bff;
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
  background-color: #0056b3;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}


/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fadeInUp {
  animation-name: fadeInUp;
  animation-duration: 1s;
  animation-fill-mode: both;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .top-bar .contact-info {
    display: none;
  }
  .top-bar {
    text-align: center;
    padding: 5px 0;
  }
  body {
    padding-bottom: 0;
  }
  
  footer {
    position: static;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 50vh;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .section {
    padding: 40px 0;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .counter h2 {
    font-size: 2.5rem;
  }
}

.row {
  justify-content: space-between;
  
}






/* Products Page */
.page-header {
  background: linear-gradient(rgba(0, 90, 135, 0.7), rgba(0, 90, 135, 0.7)), url('images/statics/product-bg.jpg') center/cover no-repeat;
  color: white;
  padding: 100px 0;
}
.page-header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.page-header .lead {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Product Filter */
.btn-group .btn {
  border-radius: 0;
  margin: 0 5px;
}
.btn-group .btn.active {
  background: var(--primary);
  color: white;
}

#search-btn {
  height: 50px;
  width: 50px;
}

/* Product Cards */
.product-container {
  min-height: 500px;
}
.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.product-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}

.price {
  font-weight: 700;
  color: var(--primary);
}

/* No Products Alert */
.alert-info {
  background-color: #e7f8fe;
  border-color: #b6ecff;
  color: #006687;
}

/* Pagination */
.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .page-header {
    padding: 60px 0;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .btn-group {
    flex-wrap: wrap;
  }
  .btn-group .btn {
    margin: 5px;
  }
}










/* ÜRÜN YÖNETİM SAYFASI*/
.sidebar {
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

@media (max-width: 767.98px) {
    .sidebar {
        min-height: auto;
        height: auto;
        padding-bottom: 20px;
    }
}

@media (min-width: 768px) {
    .sidebar {
        min-height: 100vh;
    }
}

/* Other Existing Styles */
.admin-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

#searchResults {
    position: absolute;
    z-index: 1000;
    width: calc(100% - 30px);
}

.search-item:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

#searchButton, #clearSearch {
  height: 50px;
}

.custom-alert {
    min-width: 300px;
    animation: fadeIn 0.3s;
    position: fixed;
    justify-content: last baseline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}