/* ============================================
   Nomagri E-Ticaret - CSS Reset
   Modern tarayıcı normalizasyonu
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Mobilde taşan elementlerin yatay scroll (kayma) yaratmasını engelle.
       clip kullanılıyor — position:sticky'yi overflow:hidden gibi bozmaz. */
    overflow-x: clip;
    max-width: 100vw;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: inherit;
    font-size: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* Form elemanları */
input:focus, 
textarea:focus, 
select:focus,
button:focus {
    outline: none;
}

/* Hidden utility */
[hidden] {
    display: none !important;
}

/* Alpine.js cloak - Prevents flash of unstyled content */
[x-cloak] {
    display: none !important;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
