/* ==========================================================================
   UzMakon Market — Layout
   Topbar, Header, Mega Menu, Footer, Breadcrumb
   ========================================================================== */


/* ------------------------------------------------------------------
   Top Bar
   ------------------------------------------------------------------ */

.uz-topbar {
  background: #1A1413;
  color: #EAE2DC;
  font-size: 12.5px;
  font-weight: 500;
}

.uz-topbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.uz-topbar__left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.uz-topbar__arch {
  width: 22px;
  height: 11px;
  background: #FD1E1E;
  border-radius: 11px 11px 0 0;
  display: inline-block;
}

.uz-topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #B8AFA8;
}

.uz-topbar__social {
  cursor: pointer;
  transition: color .2s;
}

.uz-topbar__social:hover {
  color: #fff;
}

.uz-topbar__phone {
  color: #EAE2DC;
  font-weight: 700;
}

.uz-topbar__lang {
  padding: 2px 9px;
  border: 1px solid #463E3A;
  border-radius: 7px;
  cursor: pointer;
  background: transparent;
  color: inherit;
}


/* ------------------------------------------------------------------
   Header (Sticky)
   ------------------------------------------------------------------ */

.uz-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 242, 236, .82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(26, 20, 19, .08);
}

.uz-header--scrolled {
  box-shadow: 0 4px 20px rgba(26, 20, 19, .08);
}

.uz-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Logo */
.uz-header__logo {
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.uz-header__logo img {
  height: 30px;
  display: block;
}

/* Catalog Button */
.uz-header__catalog-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #FD1E1E;
  color: #fff;
  border: none;
  border-radius: 13px;
  padding: 13px 20px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  box-shadow: 0 10px 22px -10px rgba(253, 30, 30, .6);
}

.uz-header__catalog-btn:hover {
  background: #E20A0A;
  transform: translateY(-1px);
}

.uz-header__burger {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.uz-header__burger-line {
  width: 17px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Search */
.uz-header__search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #ECE5E0;
  border-radius: 14px;
  padding: 0 6px 0 16px;
  transition: border-color .2s, box-shadow .2s;
  min-width: 0;
  flex: 1;
}

.uz-header__search:focus-within {
  border-color: #FD1E1E;
  box-shadow: 0 0 0 4px rgba(253, 30, 30, .12);
}

.uz-header__search-icon {
  color: #B0A69F;
  font-size: 18px;
  flex-shrink: 0;
}

.uz-header__search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 13px 14px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  color: #1A1413;
  min-width: 0;
}

.uz-header__search-input::placeholder {
  color: #B0A69F;
}

.uz-header__search-btn {
  flex-shrink: 0;
  background: #1A1413;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}

.uz-header__search-btn:hover {
  background: #000;
}

/* Actions */
.uz-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.uz-header__action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background .2s;
  color: #5A524D;
  text-decoration: none;
}

.uz-header__action:hover {
  background: rgba(26, 20, 19, .05);
}

.uz-header__action-icon {
  font-size: 19px;
  line-height: 1;
}

.uz-header__action-label {
  font-size: 11px;
  font-weight: 600;
}

/* Cart */
.uz-header__cart {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: #FFECEA;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 12px;
  transition: background .2s, transform .15s;
  color: #FD1E1E;
}

.uz-header__cart:hover {
  background: #FFD9D4;
  transform: translateY(-1px);
}

.uz-header__cart-badge,
.uz-header__fav-badge {
  position: absolute;
  top: 1px;
  right: 6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: #FD1E1E;
  color: #fff;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
  font-family: 'Unbounded', system-ui, sans-serif;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px -2px rgba(253, 30, 30, .6);
  border: 2px solid #F7F2EC;
}


/* ------------------------------------------------------------------
   Mega Menu
   ------------------------------------------------------------------ */

.uz-mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(247, 242, 236, .96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 20, 19, .08);
  box-shadow: 0 30px 60px -20px rgba(26, 20, 19, .3);
  z-index: 59;
}

.uz-mega-menu.is-open {
  display: block;
  animation: uzRise .25s ease;
}

.uz-mega-menu__grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.uz-mega-menu__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px 14px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: background .2s, border-color .2s, transform .15s;
}

.uz-mega-menu__item:hover {
  background: #fff;
  border-color: #FFD3CE;
  transform: translateX(3px);
}

.uz-mega-menu__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #FFECEA;
  display: grid;
  place-items: center;
}

.uz-mega-menu__icon-arch {
  width: 22px;
  height: 11px;
  background: #FD1E1E;
  border-radius: 11px 11px 0 0;
  display: block;
}

.uz-mega-menu__name {
  font-weight: 700;
  font-size: 14.5px;
  color: #1A1413;
}

.uz-mega-menu__count {
  font-size: 12px;
  color: #9A8F88;
}

/* Mega Menu Overlay */
.uz-mega-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(26, 20, 19, .25);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.uz-mega-menu-overlay.is-open {
  display: block;
}


/* ------------------------------------------------------------------
   Breadcrumb
   ------------------------------------------------------------------ */

.uz-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9A8F88;
  margin-bottom: 18px;
}

.uz-breadcrumb__link {
  color: #9A8F88;
  text-decoration: none;
  transition: color .2s;
}

.uz-breadcrumb__link:hover {
  color: #FD1E1E;
}

.uz-breadcrumb__sep {
  /* separator character "/" rendered in HTML */
}

.uz-breadcrumb__current {
  color: #1A1413;
  font-weight: 600;
}


/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

.uz-footer {
  background: #1A1413;
  color: #EAE2DC;
  margin-top: 60px;
}

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

.uz-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.uz-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.uz-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.uz-footer__logo-arch {
  width: 28px;
  height: 14px;
  background: #FD1E1E;
  border-radius: 14px 14px 0 0;
  display: inline-block;
}

.uz-footer__logo-text {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.uz-footer__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #9A8F88;
  max-width: 280px;
}

.uz-footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.uz-footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  color: #B8AFA8;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.uz-footer__social-link:hover {
  background: #FD1E1E;
  color: #fff;
}

.uz-footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uz-footer__col-title {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

.uz-footer__link {
  color: #9A8F88;
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}

.uz-footer__link:hover {
  color: #FD1E1E;
}

.uz-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.uz-footer__copy {
  font-size: 13px;
  color: #9A8F88;
}

.uz-footer__bottom-links {
  display: flex;
  gap: 20px;
}

.uz-footer__bottom-link {
  font-size: 13px;
  color: #9A8F88;
  text-decoration: none;
  transition: color .2s;
}

.uz-footer__bottom-link:hover {
  color: #FD1E1E;
}
