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 #fff, 0 0 0 0.25rem #222;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  background-color: #fff;
  color: #111;
  padding-top: 68px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.appbar {
  min-height: 60px;
  background: #fff;
  border-bottom: 2px solid #111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
}

.appbar .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.language-switcher {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
}

.lang-item {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
  color: #111 !important;
  text-decoration: none;
  border: 1px solid #111;
  background: #fff;
  line-height: 1.2;
}

.lang-item.active {
  background: #111;
  color: #fff !important;
}

.mobile-container {
  max-width: 680px;
}

.catalog-section {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.screen-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.catalog-button {
  min-height: 64px;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  border: 1px solid #111;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.catalog-button:hover,
.catalog-button:focus {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.product-list .list-group-item {
  border-radius: 10px;
  margin-bottom: 0.5rem;
  border: 1px solid #ddd;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.product-stack {
  display: grid;
  gap: 1rem;
}

.product-card {
  border: 1px solid #111;
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.urun-slider {
  position: relative;
  border: 1px solid #222;
  border-radius: 10px;
  background: #f8f8f8;
  height: 345px;
  overflow: hidden;
  touch-action: pan-y;
}

.slider-track {
  width: 100%;
  height: 100%;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: #fff;
}

.slider-image.active {
  display: block;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 1px solid #111;
  background: rgba(255, 255, 255, 0.85);
  color: #111;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  line-height: 30px;
  text-align: center;
  padding: 0;
}

.slider-arrow.left { left: 8px; }
.slider-arrow.right { right: 8px; }

.slider-thumbs {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.thumb-item {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #999;
  cursor: pointer;
  opacity: 0.75;
}

.thumb-item.active {
  border-color: #111;
  opacity: 1;
}

.urun-field {
  margin-top: 0.45rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}


.paged-hidden {
  display: none;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.image-modal.open {
  display: flex;
}

.image-modal-content {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.image-modal-close {
  position: fixed;
  top: 12px;
  right: 16px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.1rem;
  line-height: 1;
}

@media (max-width: 576px) {
  .mobile-container {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .catalog-section {
    padding: 0.6rem;
    border-radius: 10px;
  }

  .product-card {
    padding: 0.55rem;
    border-radius: 10px;
  }

  .urun-slider {
    height: 260px;
  }

  .slider-arrow {
    width: 30px;
    height: 30px;
    line-height: 26px;
  }

  .thumb-item {
    width: 44px;
    height: 44px;
  }

  .urun-field {
    font-size: 0.92rem;
    padding: 0.38rem 0.45rem;
  }
}