/* Boutique 02 — temel stiller: sıfırlama, tipografi, yardımcılar, odak */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--b2-layout-header-h) + var(--b2-space-4));
}

body {
  margin: 0;
  background: var(--b2-color-bg);
  color: var(--b2-color-text);
  font-family: var(--b2-font-sans);
  font-size: var(--b2-font-size-base);
  line-height: var(--b2-line-height-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.b2-lock { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { font-weight: var(--b2-font-weight-semibold); line-height: var(--b2-line-height-snug); }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }

/* Odak: klavye kullanıcıları için her zaman görünür */
:focus-visible {
  outline: 2px solid var(--b2-color-focus);
  outline-offset: 3px;
  border-radius: var(--b2-radius-sm);
}
main:focus { outline: none; }

/* Yardımcılar */
.b2-container {
  width: 100%;
  max-width: var(--b2-layout-container);
  margin-inline: auto;
  padding-inline: var(--b2-layout-gutter);
}

.b2-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.b2-skip-link {
  position: absolute;
  top: var(--b2-space-2);
  left: var(--b2-space-2);
  z-index: 100;
  padding: var(--b2-space-2) var(--b2-space-4);
  background: var(--b2-color-brand);
  color: var(--b2-color-on-brand);
  font-weight: var(--b2-font-weight-medium);
  transform: translateY(-200%);
}
.b2-skip-link:focus-visible { transform: none; outline-color: var(--b2-color-focus-on-dark); }

.b2-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.b2-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.b2-icon--sm { width: 1rem; height: 1rem; }
.b2-icon--lg { width: 1.75rem; height: 1.75rem; stroke-width: 1.25; }

.b2-noscript {
  padding: var(--b2-space-4);
  text-align: center;
  background: var(--b2-color-bg-alt);
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
