/* Tam sayfa: footer viewport altında beyaz boşluk bırakmasın */
html {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: hidden;
}
body > main {
  flex: 1 1 auto;
  min-height: 0;
}

.hero-subtext {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* Ürün arama: sade hap — açık lavanta zemin, ince gri-mor çerçeve (eski görünüm) */
.golkapi-product-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid #d1d1e0;
  background: #f3f2f8;
  padding: 0.4rem 0.9rem 0.4rem 1rem;
  transition: border-color 0.15s ease;
}

.golkapi-product-search:focus-within {
  border-color: #b8b8c8;
}

.golkapi-product-search__icon {
  font-size: 1.25rem;
  line-height: 1;
  color: #4a4a4a;
}

/* Tailwind @tailwindcss/forms: input’a beyaz zemin verir; hap içinde tek parça görünsün diye sıfırlanır */
.golkapi-product-search .golkapi-product-search__field {
  min-height: 1.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #4a4a4a;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none;
}

.golkapi-product-search .golkapi-product-search__field::placeholder {
  color: #6d6d6d;
  opacity: 1;
}

.golkapi-product-search .golkapi-product-search__field:focus {
  outline: none;
  box-shadow: none !important;
  border: 0;
  background-color: transparent !important;
}

.golkapi-product-search input[type="search"]::-webkit-search-decoration,
.golkapi-product-search input[type="search"]::-webkit-search-cancel-button,
.golkapi-product-search input[type="search"]::-webkit-search-results-button,
.golkapi-product-search input[type="search"]::-webkit-search-results-decoration {
  appearance: none;
  -webkit-appearance: none;
}

.golkapi-product-search--nav {
  width: 100%;
  min-width: 10.5rem;
  max-width: min(20rem, 100%);
}

@media (min-width: 1024px) {
  .golkapi-product-search--nav {
    max-width: min(22rem, 100%);
  }
}

.golkapi-mobile-nav > summary {
  list-style: none;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 10px;
}

.masonry-item {
  grid-row-end: span 30;
}

.masonry-item.tall {
  grid-row-end: span 45;
}

.perspective-lg {
  perspective: 2000px;
}

.rotate-door-y {
  transform: rotateY(-15deg);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.active-tab-nav {
  border-bottom: 2px solid #e9c176;
  padding-bottom: 4px;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.panel-tab-panel[hidden] {
  display: none;
}

#home-hero-slider {
  max-width: 100vw;
  contain: paint layout;
}

#home-hero-track {
  max-width: none;
}

@media (max-width: 767px) {
  #home-hero-slider {
    height: min(760px, calc(100svh - 5rem)) !important;
    min-height: 560px;
  }

  #home-hero-track {
    position: relative;
    width: 100% !important;
    transform: none !important;
  }

  #home-hero-track > article {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100% !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
  }

  #home-hero-track > article[aria-hidden="false"],
  #home-hero-track > article:not([aria-hidden]) {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
  }

  #home-hero-slider .px-margin-desktop {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  #home-hero-slider .px-8 {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

@media (max-width: 639px) {
  .px-margin-desktop {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .py-section-gap {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  .p-16 {
    padding: 2rem !important;
  }

  .text-display-lg {
    font-size: 2.25rem !important;
    line-height: 1.15 !important;
  }

  .text-headline-lg {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
}

/* Lightbox: stiller burada; Tailwind CDN dinamik innerHTML sınıflarını tarayamayabilir */
.golkapi-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.golkapi-lightbox[hidden] {
  display: none !important;
}

.golkapi-lightbox__inner {
  display: flex;
  max-height: 100%;
  max-width: 100%;
  align-items: center;
  justify-content: center;
}

.golkapi-lightbox__img {
  display: block;
  max-height: 88vh;
  max-width: min(100%, 1200px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

.golkapi-lightbox__btn {
  position: absolute;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease;
}

.golkapi-lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.golkapi-lightbox__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.golkapi-lightbox__btn--close {
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
}

.golkapi-lightbox__btn--prev,
.golkapi-lightbox__btn--next {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
}

.golkapi-lightbox__btn--prev {
  left: 0.5rem;
}

.golkapi-lightbox__btn--next {
  right: 0.5rem;
}

@media (min-width: 640px) {
  .golkapi-lightbox {
    padding: 2rem;
  }

  .golkapi-lightbox__btn--prev {
    left: 1rem;
  }

  .golkapi-lightbox__btn--next {
    right: 1rem;
  }
}

/* Teklif formu (<dialog>) */
.gk-quote-modal {
  margin: auto;
  width: calc(100% - 2rem);
  max-width: 32rem;
  border-radius: 1rem;
  background: #fff;
  color: inherit;
}

.gk-quote-modal::backdrop {
  background: rgba(13, 28, 50, 0.45);
}

.gk-quote-modal[open] {
  display: flex;
  flex-direction: column;
}

#gk-quote-feedback.gk-quote-feedback--ok {
  color: #166534;
}

#gk-quote-feedback.gk-quote-feedback--err {
  color: #b91c1c;
}

/* WhatsApp: balon solda, yesil ikon sagda (kose: inset-inline-end) */
.gk-wa-fab {
  position: fixed;
  z-index: 60;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  inset-inline-end: calc(1.25rem + env(safe-area-inset-end, 0px));
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.gk-wa-fab__bubble {
  pointer-events: none;
  max-width: 11rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(13, 28, 50, 0.14);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: #0d1c32;
  position: relative;
  opacity: 0;
  animation: gk-wa-bubble-in 0.45s ease 2s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .gk-wa-fab__bubble {
    animation: none;
    opacity: 1;
  }
}

@media (min-width: 640px) {
  .gk-wa-fab__bubble {
    max-width: 12.5rem;
    font-size: 0.8125rem;
  }
}

.gk-wa-fab__bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left-color: #fff;
}

.gk-wa-fab__link {
  pointer-events: auto;
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 25px rgba(13, 28, 50, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gk-wa-fab__link:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 28px rgba(13, 28, 50, 0.22);
}

.gk-wa-fab__link:active {
  transform: scale(0.95);
}

@keyframes gk-wa-bubble-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Dil secici (navbar) — modern pill, native ok gizli */
.golkapi-lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  min-width: 4.75rem;
  height: 2.5rem;
  padding: 0.375rem 2rem 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #0d1c32;
  color-scheme: light;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%235f6368'%3E%3Cpath d='M12 15.5 7 10h10l-5 5.5Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 1.125rem;
  border: 1px solid rgba(61, 40, 159, 0.32);
  border-radius: 0.75rem;
  box-shadow:
    0 1px 2px rgba(13, 28, 50, 0.05),
    0 6px 16px rgba(13, 28, 50, 0.06);
  transition:
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.golkapi-lang-select:hover {
  border-color: rgba(61, 40, 159, 0.48);
  box-shadow:
    0 2px 6px rgba(61, 40, 159, 0.12),
    0 10px 24px rgba(13, 28, 50, 0.09);
}

.golkapi-lang-select:focus {
  outline: none;
}

.golkapi-lang-select:focus-visible {
  border-color: rgba(61, 40, 159, 0.65);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(61, 40, 159, 0.35),
    0 6px 16px rgba(13, 28, 50, 0.08);
}

.golkapi-lang-select:active {
  transform: scale(0.98);
}

.golkapi-lang-select--drawer {
  min-width: 4.5rem;
  height: 2.375rem;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
}

/* Ana sayfa — Şubelerimiz (referans düzen) */
.gk-branch-glass-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px 0 rgba(11, 28, 48, 0.06);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gk-branch-glass-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 48px 0 rgba(61, 40, 159, 0.12);
}

.gk-branch-title-underline {
  position: relative;
  display: inline-block;
}

.gk-branch-title-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #3d289f, transparent);
  border-radius: 9999px;
}

.gk-branch-featured-card {
  /* Koyu kart: Tailwind CDN veya başka kurallar arka planı ezmesin diye sabit renk */
  background-color: #121926 !important;
  color: #fff;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.22);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gk-branch-featured-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.35);
}

/* Ana sayfa — Instagram önbellek grid */
.gk-ig-section {
  background: linear-gradient(180deg, rgba(237, 240, 250, 0.65) 0%, rgba(255, 255, 255, 0) 100%);
}

.gk-ig-card {
  border-radius: 16px;
}

.gk-ig-card__media {
  border-radius: 16px;
}
