/* ==========================================================================
   UzMakon Market — Base Styles
   Reset, Global Defaults, Animations, Scrollbar, Selection
   ========================================================================== */


/* ------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #1A1413;
  background: #F7F2EC;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: transparent;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
}

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

fieldset {
  border: none;
}


/* ------------------------------------------------------------------
   Global Utility
   ------------------------------------------------------------------ */

.uz-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ------------------------------------------------------------------
   Selection
   ------------------------------------------------------------------ */

::selection {
  background: rgba(253, 30, 30, .16);
  color: #1A1413;
}

::-moz-selection {
  background: rgba(253, 30, 30, .16);
  color: #1A1413;
}


/* ------------------------------------------------------------------
   Scrollbar
   ------------------------------------------------------------------ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F1EAE3;
}

::-webkit-scrollbar-thumb {
  background: #C9BFB8;
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: #AEA59F;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #C9BFB8 #F1EAE3;
}


/* ------------------------------------------------------------------
   Focus Visible (global accessibility ring)
   ------------------------------------------------------------------ */

:focus-visible {
  outline: 2px solid #FD1E1E;
  outline-offset: 2px;
}


/* ------------------------------------------------------------------
   Animations
   ------------------------------------------------------------------ */

@keyframes uzFloat {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-16px) rotate(var(--r, 0deg));
  }
}

@keyframes uzFloat2 {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(12px) rotate(var(--r, 0deg));
  }
}

@keyframes uzPop {
  0% {
    transform: scale(.85);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes uzRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes uzSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes uzShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

@keyframes uzSlideIn {
  from {
    transform: translateX(105%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes uzFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes uzCheckmark {
  0% {
    stroke-dashoffset: 48;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
