/**
 * PHP mağaza ve admin düzeni — npm / Tailwind derlemesi gerekmez.
 * Breakpoint: 1024px (masaüstü), 768px (mağaza tablet+)
 */

/* --- Admin panel --- */
.admin-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
}

.admin-sidebar {
  display: none;
  width: 16rem;
  flex-shrink: 0;
  flex-direction: column;
  border-right: 1px solid var(--color-gray-200, #e5e7eb);
  background-color: var(--color-navy-900, #0a1929);
  color: #fff;
}

.admin-topbar {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 40;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-gray-200, #e5e7eb);
  background-color: var(--color-navy-900, #0a1929);
  padding: 0.75rem 1rem;
  color: #fff;
}

.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.admin-drawer[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

.admin-drawer[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .admin-shell {
    flex-direction: row;
  }

  .admin-sidebar {
    display: flex;
  }

  .admin-topbar,
  .admin-drawer {
    display: none !important;
  }
}

/* --- Mağaza üst menü --- */
.shop-nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.shop-nav-mobile-btn {
  display: inline-flex;
}

.shop-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.shop-mobile-drawer[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

.shop-mobile-drawer[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .shop-nav-desktop {
    display: flex;
  }

  .shop-nav-mobile-btn {
    display: none !important;
  }

  .shop-mobile-drawer {
    display: none !important;
  }
}

/* --- Marka logosu --- */
.brand-logo-link {
  line-height: 0;
}

.brand-logo {
  display: block;
  line-height: 0;
}

.brand-logo__img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.brand-logo__img--header {
  height: 5.5rem;
  width: auto;
  max-width: calc(5.5rem * 1.227);
  aspect-ratio: 200 / 160;
  transform: translate(-25px, -25px);
}

.brand-logo__img--footer,
.brand-logo__img--admin {
  height: 6.75rem;
  max-width: 16.5rem;
  background: transparent;
}

.brand-logo__img--login {
  height: 5rem;
  width: auto;
  max-width: 12rem;
}

.btn-google {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid #dadce0;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3c4043;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 2px rgb(60 64 67 / 15%);
}

.btn-google__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.footer-bottom__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  padding-right: 4.75rem;
  font-size: 0.75rem;
  color: rgb(156 163 175);
}

.footer-bottom__copy {
  margin: 0;
  text-align: center;
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-payment-badges {
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  line-height: 0;
}

.footer-payment-badges img {
  display: block;
  height: 0.75rem;
  width: auto;
}

@media (min-width: 768px) {
  .footer-bottom__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-right: 5.5rem;
  }

  .footer-bottom__copy {
    text-align: left;
  }

  .footer-payment-badges img {
    height: 0.8125rem;
  }
}

@media (min-width: 640px) {
  .brand-logo__img--header {
    height: 7rem;
    max-width: calc(7rem * 1.227);
    transform: translateY(-40px);
  }
}

/* --- Ürün sayfası galeri --- */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-gallery__viewport {
  overflow: hidden;
  border-radius: 1rem;
  background: var(--color-gray-50, #f9fafb);
  touch-action: pan-y pinch-zoom;
  aspect-ratio: 4 / 3;
  max-height: min(68vw, 280px);
  outline: none;
}

.product-gallery__viewport:focus-visible {
  box-shadow: 0 0 0 2px rgb(6 182 212 / 35%);
}

.product-gallery__track {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
  will-change: transform;
}

.product-gallery__slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
}

.product-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
}

.product-gallery__dot {
  width: 0.5rem;
  height: 0.5rem;
  border: 0;
  border-radius: 9999px;
  background: #d1d5db;
  padding: 0;
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.product-gallery__dot.is-active {
  width: 1.25rem;
  background: var(--color-aqua-500, #06b6d4);
}

.product-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.125rem;
  -webkit-overflow-scrolling: touch;
}

.product-gallery__thumb {
  flex: 0 0 3.75rem;
  width: 3.75rem;
  height: 3.75rem;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.product-gallery__thumb.is-active {
  border-color: var(--color-aqua-500, #06b6d4);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .product-gallery__viewport {
    max-height: min(60vw, 360px);
  }

  .product-gallery__thumb {
    flex-basis: 4rem;
    width: 4rem;
    height: 4rem;
  }
}

@media (min-width: 1024px) {
  .product-gallery__thumbs {
    order: -1;
  }

  .product-gallery__dots {
    display: none;
  }

  .product-gallery__viewport {
    aspect-ratio: 1;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery__track {
    transition: none;
  }
}
