/* ==========================================================================
   UzMakon Market — Components
   Product Card, Trust Badges, Category Tiles, Promo Banner,
   Section Header, Product Grid, Load More Button
   ========================================================================== */


/* ------------------------------------------------------------------
   Product Card
   ------------------------------------------------------------------ */

.uz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ECE5E0;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .4s cubic-bezier(.2, .85, .25, 1),
              box-shadow .4s,
              border-color .4s;
  box-shadow: 0 1px 2px rgba(26, 20, 19, .05);
  font-family: 'Manrope', system-ui, sans-serif;
  height: 100%;
  min-width: 0;
}

.uz-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 26px 50px -18px rgba(253, 30, 30, .30),
              0 10px 24px -10px rgba(26, 20, 19, .20);
  border-color: #FFD3CE;
}

/* --- Lazy Image Loading --- */
@keyframes uz-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.uz-lazy-wrap {
  position: relative;
}

.uz-lazy-wrap .uz-lazy-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: linear-gradient(90deg, #F1EAE3 25%, #F9F3ED 50%, #F1EAE3 75%);
  background-size: 200% 100%;
  animation: uz-shimmer 1.6s ease-in-out infinite;
  border-radius: inherit;
}

.uz-lazy-wrap img {
  opacity: 0;
  transition: opacity .35s ease;
}

.uz-lazy-wrap img.uz-loaded {
  opacity: 1 !important;
  z-index: 2;
  position: relative;
}

.uz-lazy-wrap .uz-lazy-loader.uz-hidden {
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

/* Card — Image Area */
.uz-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F1EAE3;
}

.uz-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .65s cubic-bezier(.2, .8, .2, 1), opacity .35s ease;
}

.uz-card:hover .uz-card__image img {
  transform: scale(1.08);
}

/* Card — Badges */
.uz-card__badge {
  position: absolute;
  top: 13px;
  left: 13px;
  background: #FD1E1E;
  color: #fff;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .01em;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: 0 6px 16px -4px rgba(253, 30, 30, .55);
  z-index: 2;
}

.uz-card__badge--top {
  position: absolute;
  top: 13px;
  left: 13px;
  background: rgba(26, 20, 19, .86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 2;
}

/* Card — Favorite Button */
.uz-card__fav {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 39px;
  height: 39px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
  box-shadow: 0 4px 12px -4px rgba(26, 20, 19, .18);
  z-index: 2;
}

.uz-card__fav:hover {
  transform: scale(1.1);
  background: #fff;
}

.uz-card__fav-icon {
  font-size: 18px;
  line-height: 1;
  color: #9A8F88;
}

.uz-card__fav.is-active .uz-card__fav-icon {
  color: #FD1E1E;
}

/* Detail — Favorite Button */
.uz-detail__fav-btn {
  width: 52px;
  height: 52px;
  border: 2px solid #E8E2DB;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .2s, transform .15s;
  flex-shrink: 0;
}
.uz-detail__fav-btn:hover {
  border-color: #FD1E1E;
  transform: scale(1.05);
}
.uz-detail__fav-btn.is-active {
  border-color: #FD1E1E;
  background: #FFF5F5;
}
.uz-detail__fav-icon {
  font-size: 22px;
  line-height: 1;
  color: #9A8F88;
}
.uz-detail__fav-btn.is-active .uz-detail__fav-icon {
  color: #FD1E1E;
}

/* Favorites Drawer — Add to Cart Button */
.uz-fav__add-cart {
  border: 1px solid #E8E2DB;
  border-radius: 8px;
  background: #fff;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background .2s;
}
.uz-fav__add-cart:hover {
  background: #F7F2EC;
}
.uz-fav__add-cart:disabled {
  opacity: .5;
  cursor: default;
}

/* Card — Body */
.uz-card__body {
  padding: 15px 16px 17px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.uz-card__category {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #C0564E;
}

.uz-card__name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.32;
  color: #1A1413;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card — Prices */
.uz-card__prices {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.uz-card__price {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #1A1413;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.uz-card__old-price {
  font-size: 13px;
  color: #AEA59F;
  text-decoration: line-through;
}

/* Card — Add to Cart Button */
.uz-card__add-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: #FD1E1E;
  color: #fff;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 10px 22px -8px rgba(253, 30, 30, .5);
}

.uz-card__add-btn:hover {
  transform: translateY(-2px);
  background: #E20A0A;
  box-shadow: 0 16px 28px -10px rgba(253, 30, 30, .62);
}

/* Card — Stepper (Quantity Control) */
.uz-card__stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FD1E1E;
  border-radius: 14px;
  padding: 5px;
  box-shadow: 0 10px 22px -8px rgba(253, 30, 30, .5);
}

.uz-card__stepper-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
}

.uz-card__stepper-btn:hover {
  background: rgba(255, 255, 255, .32);
}

.uz-card__stepper-qty {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  font-family: 'Unbounded', system-ui, sans-serif;
}


/* ------------------------------------------------------------------
   Trust Band
   ------------------------------------------------------------------ */

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

.uz-trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.uz-trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #ECE5E0;
  border-radius: 18px;
  padding: 16px 18px;
  transition: transform .2s, box-shadow .2s;
}

.uz-trust__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -20px rgba(26, 20, 19, .3);
}

.uz-trust__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #FFECEA;
  display: grid;
  place-items: center;
}

.uz-trust__icon-arch {
  width: 24px;
  height: 12px;
  background: #FD1E1E;
  border-radius: 12px 12px 0 0;
}

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

.uz-trust__sub {
  font-size: 12.5px;
  color: #9A8F88;
  margin-top: 2px;
}


/* ------------------------------------------------------------------
   Partnership CTA
   ------------------------------------------------------------------ */

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

.uz-partnership__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: linear-gradient(135deg, #1A1413 0%, #2A1715 100%);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 20px rgba(26, 20, 19, .15);
}

.uz-partnership__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 20, 19, .25);
}

.uz-partnership__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(253, 30, 30, .15);
  border-radius: 12px;
  flex-shrink: 0;
  color: #FD1E1E;
}

.uz-partnership__text {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  flex: 1;
}

.uz-partnership__arrow {
  font-size: 20px;
  color: #FD1E1E;
  transition: transform .2s ease;
}

.uz-partnership__link:hover .uz-partnership__arrow {
  transform: translateX(4px);
}

/* ------------------------------------------------------------------
   Categories
   ------------------------------------------------------------------ */

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

.uz-categories__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.uz-categories__title {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0;
  letter-spacing: -.02em;
}

.uz-categories__subtitle {
  margin: 7px 0 0;
  color: #9A8F88;
  font-size: 14px;
}

.uz-categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.uz-categories__item {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid #ECE5E0;
  border-radius: 20px;
  padding: 20px 18px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.uz-categories__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -22px rgba(253, 30, 30, .35);
  border-color: #FFD3CE;
}

.uz-categories__arch {
  width: 50px;
  height: 25px;
  background: linear-gradient(180deg, #FD1E1E, #E20A0A);
  border-radius: 50px 50px 0 0;
  box-shadow: 0 10px 20px -8px rgba(253, 30, 30, .5);
}

.uz-categories__name {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  color: #1A1413;
}

.uz-categories__count {
  font-size: 12px;
  color: #9A8F88;
  font-weight: 600;
}


/* ------------------------------------------------------------------
   Section Header
   ------------------------------------------------------------------ */

.uz-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.uz-section-header__left {
  display: flex;
  align-items: center;
  gap: 13px;
}

.uz-section-header__arch {
  width: 32px;
  height: 16px;
  background: #FD1E1E;
  border-radius: 32px 32px 0 0;
}

.uz-section-header__arch--dark {
  background: #1A1413;
}

.uz-section-header__title {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0;
  letter-spacing: -.02em;
}

.uz-section-header__link {
  background: transparent;
  border: 1.5px solid #E2D8D1;
  color: #1A1413;
  border-radius: 12px;
  padding: 11px 20px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}

.uz-section-header__link:hover {
  border-color: #FD1E1E;
  background: #FFECEA;
}


/* ------------------------------------------------------------------
   Product Grid
   ------------------------------------------------------------------ */

.uz-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}


/* ------------------------------------------------------------------
   Load More
   ------------------------------------------------------------------ */

.uz-load-more {
  text-align: center;
  padding-top: 28px;
}

.uz-load-more__spinner {
  margin-bottom: 12px;
}

.uz-load-more__btn {
  background: transparent;
  border: 1.5px solid #E2D8D1;
  color: #1A1413;
  border-radius: 14px;
  padding: 15px 30px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.uz-load-more__btn:hover {
  border-color: #FD1E1E;
  background: #FFECEA;
}


/* ------------------------------------------------------------------
   Promo Banner
   ------------------------------------------------------------------ */

.uz-promo {
  border-radius: 28px;
  background: linear-gradient(110deg, #FD1E1E 0%, #C20808 100%);
  color: #fff;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
  margin: 34px 0;
}

.uz-promo::before {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 220px;
  height: 110px;
  background: rgba(255, 255, 255, .12);
  border-radius: 220px 220px 0 0;
  pointer-events: none;
}

.uz-promo::after {
  content: '';
  position: absolute;
  left: 20%;
  top: -30px;
  width: 120px;
  height: 60px;
  background: rgba(255, 255, 255, .08);
  border-radius: 120px 120px 0 0;
  pointer-events: none;
}

.uz-promo__content {
  position: relative;
  z-index: 1;
}

.uz-promo__title {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.15;
  margin: 0 0 10px;
}

.uz-promo__desc {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
  max-width: 440px;
}

.uz-promo__cta {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: #fff;
  color: #FD1E1E;
  border: none;
  border-radius: 14px;
  padding: 15px 30px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .3);
  text-decoration: none;
}

.uz-promo__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, .4);
}
