html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

html, body {
  height: 100%;
}

body {
  margin-bottom: 0;
  padding-top: 0;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1 0 auto;
}

.header-main-2 .logo-area,
.header-main-2 .header-mid-area {
  display: flex;
  align-items: center;
}

.header-main-2 .logo-area a,
.header-main-2 .header-mid-area a {
  display: inline-flex;
  align-items: center;
}

.header-main-2 .logo-area img,
.header-main-2 .header-mid-area img {
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.header-one.header-seven.inner .header-main-2 .logo-area {
  min-width: 160px;
  padding-left: 12px;
}

.header-one.header-seven.inner .header-main-2 .logo-area img {
  max-height: 120px;
}

.header-one.header-seven.inner .header-main-2 .logo-area a {
  max-width: 240px;
}

@media (max-width: 575.98px) {
  .header-main-2 .logo-area img,
  .header-main-2 .header-mid-area img {
    max-height: 56px;
  }

  .header-one.header-seven.inner .header-main-2 .logo-area img {
    max-height: 80px;
  }
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
  margin-bottom: 40px;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: bold;
}

.card {
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.section-richtext {
  line-height: 1.8;
}

.section-richtext p {
  margin-bottom: 1rem;
}

.section-richtext h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.section-richtext ul,
.section-richtext ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.blog-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
}

.badge {
  padding: 0.5em 0.8em;
}

.btn {
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

.table {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.alert {
  padding: 2rem;
  border-radius: 0.5rem;
}

.breadcrumb {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.product-wrapper--compact .image-area img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* "Görsel yok" placeholder (ana sayfa + ürünler liste) */
.product-wrapper--compact .product-card-media {
  display: block;
}

.product-wrapper--compact .product-card-noimg {
  width: 100%;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  background: #f5f6f8;
  color: rgba(0, 0, 0, 0.55);
}

.product-wrapper--compact .product-card-noimg i {
  display: block;
  line-height: 1;
  margin: 0;
  font-size: 32px;
}

.product-wrapper--compact .product-card-noimg span {
  line-height: 1.2;
}

.product-wrapper--compact .content .title {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.product-wrapper--compact .content .price {
  margin-bottom: 0.25rem;
}

.product-wrapper--compact .content .stock {
  opacity: 0.85;
}

#productSearchClearBtn {
  background: transparent;
  border: 0;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer {
  margin-top: 4rem;
  padding: 2rem 0;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

/* Mobil Menü Stilleri */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-right: 15px;
}

.hamburger-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  color: var(--color-primary, #dc2626);
}

.hamburger-btn:focus {
  outline: none;
}

/* Mobil Menü Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}

.mobile-menu-overlay.active {
  display: block;
}

/* Mobil Menü Panel */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 999;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-panel.active {
  left: 0;
}

.mobile-menu-panel .mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.mobile-menu-panel .mobile-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.mobile-menu-panel .mobile-nav {
  padding: 20px;
}

.mobile-menu-panel .mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-panel .mobile-nav li {
  margin-bottom: 10px;
}

.mobile-menu-panel .mobile-nav a {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-menu-panel .mobile-nav a:hover {
  background: #f5f5f5;
  color: var(--color-primary, #dc2626);
}

/* Desktop'ta mobil menü gizli */
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Mobilde ana menü gizli */
@media (max-width: 991.98px) {
  .header-main-2 .nav-area {
    display: none !important;
  }
  
  .header-main-2 .header-right {
    display: flex !important;
    align-items: center;
  }
}

/* Loader ve scroll düzeltmeleri */
#elevate-load {
  display: none !important;
  pointer-events: none;
}

body.loaded #elevate-load {
  display: none !important;
}

/* Scroll'u engelleyen elementleri düzelt */
html, body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh;
}

/* Preloader yüklendiğinde body overflow hidden ekliyor, bunu engelle */
body:not(.loaded),
body.loaded {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.app-shell {
  overflow: visible !important;
  min-height: 100vh;
}

.app-main {
  overflow: visible !important;
}

/* Scroll to Top Button with Progress Ring */
.scroll-top-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateY(20px);
}

.scroll-top-wrapper.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.scroll-progress-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 3;
}

.scroll-progress-circle {
  fill: none;
  stroke: var(--color-primary, #dc2626);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23;
  transition: stroke-dashoffset 0.1s ease;
}

.scroll-top-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary, #dc2626);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.scroll-top-btn:hover {
  background: var(--color-primary, #dc2626);
  transform: translate(-50%, -50%) scale(1.1);
}

.scroll-top-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

/* Mobil için scroll to top */
@media (max-width: 767.98px) {
  .scroll-top-wrapper {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  
  .scroll-progress-ring {
    width: 44px;
    height: 44px;
  }
  
  .scroll-progress-bg,
  .scroll-progress-circle {
    cx: 22;
    cy: 22;
    r: 19;
    stroke-dasharray: 119.38;
  }
  
  .scroll-progress-circle {
    stroke-dashoffset: 119.38;
  }
  
  .scroll-top-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
}

/* === UI Fixes (Header/Footer/Contact/Admin Mobile) === */

/* Header / Footer Logo Standartlari */
.site-header-logo,
.site-footer-logo {
  height: 80px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
}

@media (max-width: 991.98px) {
  .site-header-logo,
  .site-footer-logo {
    height: 64px;
    max-width: 260px;
  }
}

/* Header menÃ¼ ve footer yazÄ± Ã¶lÃ§ekleri */
.header-main-2 .nav-area .mainmenu > li > a {
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .header-main-2 .nav-area .mainmenu > li > a {
    font-size: 18px;
  }
}

/* "Ana Sayfa" gibi iki kelimeli menÃ¼ler satÄ±r kÄ±rmasÄ±n */
.header-main-2 .nav-area .mainmenu > li {
  white-space: nowrap;
}

.tmp-footer-area .footer-title {
  font-size: 20px;
  line-height: 1.2;
}

.tmp-footer-area .use-full-link-wrapper a.single,
.tmp-footer-area .contactus-link-wrapper .number,
.tmp-footer-area .contactus-link-wrapper p,
.tmp-footer-area .newsletter-area .desc {
  font-size: 17px;
  line-height: 1.5;
}

/* Mobilde header gorunsun */
header.header-one {
  display: block !important;
}

/* Mobil menÃ¼ iÃ§inde logo */
.mobile-menu-logo {
  padding: 10px 0 0 0;
}

.mobile-menu-logo a {
  display: inline-flex;
  align-items: center;
}

/* Mobilde sadece menu butonu kalsin */
@media (max-width: 991.98px) {
  .header-main-2 .header-right .cart-search-area,
  .header-main-2 .header-right .account-area-wrapper {
    display: none !important;
  }

  .header-main-2 .header-right {
    display: flex !important;
    align-items: center;
  }

  .header-main-2 .header-right #menu-btn {
    display: flex !important;
    align-items: center;
  }

  .header-main-2 .header-right #menu-btn .setting-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background: #fff;
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
  }

  .header-main-2 .header-right #menu-btn .setting-btn .bar {
    display: block !important;
    width: 20px;
    height: 2px;
    background: #111 !important;
    margin: 0 !important;
  }
}

/* Public container padding (mobil) */
@media (max-width: 575.98px) {
  .container-header,
  .container-3 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Contact form input gorunurlugu (tel kutusu dahil) */
.tmp-contact-area .contact-form-style-default input,
.tmp-contact-area .contact-form-style-default textarea,
.tmp-contact-area .contact-form-style-default select {
  background-color: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  color: #111 !important;
}

.tmp-contact-area .contact-form-style-default input {
  height: 55px;
  padding: 0 18px;
  border-radius: 6px;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.tmp-contact-area .contact-form-style-default input[type="tel"] {
  height: 55px;
  padding: 0 18px;
  border-radius: 6px;
}

.tmp-contact-area .contact-form-style-default textarea {
  padding: 14px 18px;
  border-radius: 6px;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.tmp-contact-area .contact-form-style-default input:focus,
.tmp-contact-area .contact-form-style-default textarea:focus {
  border-color: rgba(var(--primary-rgb), 0.6) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15) !important;
}

.tmp-contact-area .contact-form-style-default input::placeholder,
.tmp-contact-area .contact-form-style-default textarea::placeholder {
  color: rgba(0, 0, 0, 0.55) !important;
}

/* Admin - mobilde saga/sola kayma azalt */
@media (max-width: 768px) {
  .app-container.container-fluid,
  .app-container.container-xxl {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .app-content input.w-250px,
  .app-content .w-250px {
    width: 100% !important;
    max-width: 100% !important;
  }

  .app-content .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .app-content .table-responsive > table {
    min-width: 720px;
  }

  .admin-table-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }
}

/* Footer sosyal ikonlar tasma yapmasin */
.tmp-footer-area .social-wrapper-1 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 320px;
}

.tmp-footer-area .social-wrapper-1 .single {
  margin: 0 !important;
}

@media (max-width: 991.98px) {
  .tmp-footer-area .social-wrapper-1 {
    max-width: 100%;
  }
}
