/* ==========================================================================
   Storefront theme "Samarqand": warm paper page, lapis blue, one gold accent.

   The brand mark is an eight-point star (the girih star of Samarkand tilework):
   it marks every section heading, patterns the hero and footer, and sits in the
   turning seal. Headlines are a serif; everything else is a plain grotesk.
   Corners are small and surfaces are flat - rules and hairlines do the work
   that shadows and big radii did in the previous theme.

   Loaded only by the storefront; the admin panel keeps style.css.
   Colours key off --accent so every generated shop can pick its own.
   ========================================================================== */

:root {
  --accent:        #1B3A9C;                                   /* lapis */
  --accent-hover:  color-mix(in srgb, var(--accent) 82%, #000);
  --accent-light:  color-mix(in srgb, var(--accent) 9%, #fff);
  --accent-border: color-mix(in srgb, var(--accent) 28%, #fff);

  --gold:       #C9982F;
  --gold-deep:  #9A7118;
  --gold-light: #F4E7C3;

  --ink:        #14182B;
  --ink-body:   #2A2F45;
  --ink-muted:  #6A6F84;
  --ink-light:  #9A9FB2;
  --ink-cat:    var(--gold-deep);

  --page:       #F5F1E8;
  --white:      #FFFDF8;
  --sand:       #ECE6D8;
  --line:       #DDD6C6;
  --line-dark:  #C6BDA9;

  --dark:       #0F1B4D;
  --dark-text:  #E9E6DA;
  --dark-muted: #A9B0CF;
  --dark-line:  #2B3872;

  --ok:    #12776F;
  --ok-bg: #D8EFEC;
  --err:   #A92B1E;
  --err-bg:#F8DFDA;

  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --max:  1240px;
  --pad:  24px;
  --r:    8px;
  --ease: .18s ease;

  /* the star, as a mask: 8 points, drawn once and reused everywhere */
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l3.1 4.5 5.4-1 -1 5.4L24 12l-4.5 3.1 1 5.4-5.4-1L12 24l-3.1-4.5-5.4 1 1-5.4L0 12l4.5-3.1-1-5.4 5.4 1z'/%3E%3C/svg%3E");
  /* the same star as a faint repeating tile, for dark surfaces */
  --tiles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.075' stroke-width='1'%3E%3Cpath d='M36 6l7.8 11.2 13.4-2.4-2.4 13.4L66 36l-11.2 7.8 2.4 13.4-13.4-2.4L36 66l-7.8-11.2-13.4 2.4 2.4-13.4L6 36l11.2-7.8-2.4-13.4 13.4 2.4z'/%3E%3Cpath d='M0 0l6 6M72 0l-6 6M0 72l6-6M72 72l-6-6'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body { font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  color: var(--ink-body); background: var(--page); 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; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12;
  color: var(--ink); letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--gold-light); color: var(--ink); }

.uz-wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Wordmark: "Asl" upright, "Zar" in gold italic - the gold is the zar. */
.uz-word { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; }
.uz-word__a { color: inherit; }
.uz-word__b { color: var(--gold); font-style: italic; font-weight: 700; }

/* The star that opens every heading. */
.uz-bar { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; background: var(--gold);
  -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.uz-bar.dark { background: var(--accent); }
.uz-blob { display: inline-block; width: 44px; height: 44px; background: var(--line-dark);
  -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }

/* ---------------------------------------------------------------- buttons */
.uz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: var(--r); transition: background var(--ease), transform var(--ease); }
.uz-btn:hover { background: var(--accent-hover); }
.uz-btn:active { transform: translateY(1px); }
.uz-btn--wide { width: 100%; }
.uz-outline-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px;
  color: var(--ink); padding: 4px 0; border-bottom: 2px solid var(--gold);
  transition: color var(--ease), border-color var(--ease); white-space: nowrap; }
.uz-outline-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------------- topbar */
.uz-topbar { background: var(--dark); color: var(--dark-text); font-size: 12.5px; letter-spacing: .02em; }
.uz-topbar__inner { max-width: var(--max); margin: 0 auto; padding: 8px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.uz-topbar__left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.uz-topbar__left::before { content: ""; width: 11px; height: 11px; flex-shrink: 0; background: var(--gold);
  -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.uz-topbar__left span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uz-topbar__right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.uz-topbar__right a { color: var(--dark-muted); font-weight: 600; transition: color var(--ease); }
.uz-topbar__right a:hover { color: #fff; }
.uz-topbar__phone { color: #fff !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; }
.uz-topbar__lang { color: var(--gold); font-weight: 700; padding-left: 14px; border-left: 1px solid var(--dark-line); }

/* ---------------------------------------------------------------- header */
.uz-header { top: 0; z-index: 100; background: color-mix(in srgb, var(--page) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.uz-header__inner { max-width: var(--max); margin: 0 auto; padding: 14px var(--pad);
  display: flex; align-items: center; gap: 22px; }
.uz-header__logo { font-size: 30px; line-height: 1; color: var(--ink); flex-shrink: 0; }
.uz-header__logo img { height: 38px; width: auto; }

.uz-catalog-btn { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 11px 16px; border: 1.5px solid var(--ink); border-radius: var(--r);
  font-weight: 700; font-size: 14px; color: var(--ink); text-transform: uppercase; letter-spacing: .06em;
  transition: background var(--ease), color var(--ease); }
.uz-catalog-btn:hover { background: var(--ink); color: var(--page); }
.uz-burger { display: inline-flex; flex-direction: column; gap: 3.5px; }
.uz-burger span { display: block; width: 16px; height: 2px; background: currentColor; }
.uz-burger span:nth-child(2) { width: 11px; }

/* Search is a ruled line, not a pill: type and it reads like a form field. */
.uz-search { flex: 1; display: flex; align-items: center; min-width: 0;
  border-bottom: 1.5px solid var(--ink); transition: border-color var(--ease); }
.uz-search:focus-within { border-color: var(--accent); }
.uz-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  padding: 10px 4px; font-size: 15px; }
.uz-search input::placeholder { color: var(--ink-light); }
.uz-search button { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink); padding: 8px 4px 8px 14px; transition: color var(--ease); }
.uz-search button:hover { color: var(--accent); }

.uz-header__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.uz-action { position: relative; display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: var(--r); font-size: 13.5px; font-weight: 600; color: var(--ink);
  transition: background var(--ease); }
.uz-action:hover { background: var(--sand); }
.uz-action__icon { font-size: 19px; line-height: 1; display: inline-flex; }
.uz-action__badge { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; }

/* ---------------------------------------------------------------- mega menu */
.uz-mega { display: none; border-top: 1px solid var(--line); background: var(--white); }
.uz-mega.open { display: block; }
.uz-mega__inner { max-width: var(--max); margin: 0 auto; padding: 8px var(--pad) 18px; }
.uz-mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 28px; }
.uz-mega__item { display: flex; align-items: center; gap: 12px; padding: 13px 4px;
  border-bottom: 1px solid var(--line); transition: color var(--ease), padding var(--ease); }
.uz-mega__item:hover { color: var(--accent); padding-left: 10px; }
.uz-mega__emoji { font-size: 20px; width: 26px; text-align: center; }
.uz-mega__name { display: block; font-weight: 700; font-size: 14.5px; }
.uz-mega__sub { display: block; color: var(--ink-muted); font-size: 12px; margin-top: 1px; }

/* ---------------------------------------------------------------- hero */
.uz-hero { background: var(--dark) var(--tiles); color: var(--dark-text); position: relative;
  border-bottom: 4px solid var(--gold); }
.uz-hero__banner { max-width: var(--max); margin: 0 auto; padding: 64px var(--pad) 0;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: end; }
.uz-hero__blob { display: none; }
.uz-hero__inner { padding-bottom: 60px; }
.uz-hero__badge { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.uz-hero__badge::before { content: ""; width: 13px; height: 13px; background: var(--gold);
  -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.uz-hero__title { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; font-weight: 800;
  color: #fff; letter-spacing: -.025em; }
.uz-hero__title span { color: var(--gold); font-style: italic; font-weight: 700; }
.uz-hero__desc { max-width: 500px; margin-top: 22px; font-size: 16.5px; line-height: 1.6; color: var(--dark-muted); }
.uz-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.uz-hero__cta { display: inline-flex; align-items: center; gap: 8px; padding: 15px 28px;
  border-radius: var(--r); font-weight: 700; font-size: 15px;
  transition: background var(--ease), color var(--ease), border-color var(--ease); }
.uz-hero__cta--1 { background: var(--gold); color: var(--ink); }
.uz-hero__cta--1:hover { background: #DDAE44; }
.uz-hero__cta--1::after { content: "\2192"; }
.uz-hero__cta--2 { border: 1.5px solid var(--dark-line); color: #fff; }
.uz-hero__cta--2:hover { border-color: #fff; }
.uz-hero__stats { display: flex; align-items: stretch; margin-top: 44px;
  border-top: 1px solid var(--dark-line); }
.uz-hero__stats > div:not(.uz-hero__divider) { padding: 18px 28px 0 0; }
.uz-hero__divider { width: 1px; background: var(--dark-line); margin-right: 28px; }
.uz-hero__stat-n { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: #fff; line-height: 1.1; white-space: nowrap; }
.uz-hero__stat-l { font-size: 12.5px; color: var(--dark-muted); margin-top: 3px; letter-spacing: .03em; }

/* Three real products, standing like arched niches in a tiled wall. */
.az-wall { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  align-items: end; align-self: end; }
.az-wall__tile { position: relative; display: block; overflow: hidden; background: var(--white);
  border-radius: 999px 999px 0 0; border: 3px solid var(--gold); border-bottom: 0;
  aspect-ratio: 3 / 5; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.az-wall__tile:nth-child(2) { aspect-ratio: 3 / 6.1; }
.az-wall__tile:hover { transform: translateY(-8px); }
.az-wall__tile img { width: 100%; height: 100%; object-fit: cover; }
.az-wall__price { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px;
  background: linear-gradient(to top, rgba(15, 27, 77, .92), rgba(15, 27, 77, 0));
  color: #fff; font-weight: 800; font-size: 13.5px; text-align: center; font-variant-numeric: tabular-nums; }
.az-seal { position: absolute; left: -46px; top: 8%; width: 118px; height: 118px; z-index: 2;
  color: var(--ink); background: var(--gold); border-radius: 50%; padding: 7px;
  animation: az-turn 26s linear infinite; }
.az-seal text { font: 700 10.4px var(--font-body); letter-spacing: .19em; fill: currentColor; text-transform: uppercase; }
@keyframes az-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .az-seal { animation: none; } html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- trust band */
.uz-trust { border-bottom: 1px solid var(--line); background: var(--white); }
.uz-trust__grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: trust; }
.uz-trust__item { display: flex; align-items: flex-start; gap: 14px; padding: 24px 22px 24px 0;
  counter-increment: trust; }
.uz-trust__item + .uz-trust__item { border-left: 1px solid var(--line); padding-left: 22px; }
.uz-trust__icon { flex-shrink: 0; font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: 26px; line-height: 1; color: var(--gold); }
.uz-trust__icon svg { display: none; }
.uz-trust__icon::before { content: counter(trust, decimal-leading-zero); }
.uz-trust__title { font-weight: 700; font-size: 15px; color: var(--ink); }
.uz-trust__sub { font-size: 13px; color: var(--ink-muted); margin-top: 1px; }

/* ---------------------------------------------------------------- section header */
.uz-section { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad) 0; }
.uz-section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  padding-bottom: 16px; margin-bottom: 26px; border-bottom: 1px solid var(--ink); }
.uz-section-header__left { display: flex; align-items: center; gap: 13px; min-width: 0; }
.uz-section-header h2, .uz-listing-head h2 { font-size: clamp(26px, 3vw, 38px); }

/* ---------------------------------------------------------------- categories
   An index, not a wall of tiles: ruled cells, name, count, arrow. */
.uz-cats__grid { display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line); margin-top: -26px; }
.uz-cats__item { position: relative; display: flex; align-items: center; gap: 12px;
  padding: 20px 40px 20px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background var(--ease), color var(--ease); }
.uz-cats__item::after { content: "\2192"; position: absolute; right: 16px; top: 50%;
  transform: translate(-6px, -50%); opacity: 0; color: var(--gold);
  transition: opacity var(--ease), transform var(--ease); }
.uz-cats__item:hover { background: var(--dark); color: #fff; }
.uz-cats__item:hover::after { opacity: 1; transform: translate(0, -50%); }
.uz-cats__emoji { font-size: 22px; width: 28px; text-align: center; flex-shrink: 0; }
.uz-cats__name { font-weight: 700; font-size: 14.5px; line-height: 1.25; flex: 1; min-width: 0; }
.uz-cats__count { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.uz-cats__item:hover .uz-cats__count { color: var(--dark-muted); }

/* ---------------------------------------------------------------- product grid + card */
.uz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }

.uz-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.uz-card__image { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--sand); border-radius: var(--r); }
.uz-card__image img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.uz-card:hover .uz-card__image img { transform: scale(1.045); }
.uz-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ink-light); font-size: 13px; }
.uz-card__badge { position: absolute; left: 0; top: 14px; background: var(--gold); color: var(--ink);
  font-weight: 800; font-size: 12.5px; padding: 5px 11px 5px 10px; border-radius: 0 4px 4px 0;
  font-variant-numeric: tabular-nums; }
.uz-card__badge--dark { background: var(--dark); color: #fff; }
.uz-card__out { position: absolute; inset: auto 0 0 0; background: rgba(20, 24, 43, .82); color: #fff;
  font-size: 12px; font-weight: 700; text-align: center; padding: 8px; letter-spacing: .06em; text-transform: uppercase; }
.uz-card__fav { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); color: var(--ink); font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease), color var(--ease), transform var(--ease); }
.uz-card__fav:hover { transform: scale(1.08); }
.uz-card__fav.is-active { background: var(--accent); color: #fff; }

.uz-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 13px; }
.uz-card__category { font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-cat); margin-bottom: 5px; }
.uz-card__name { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em; transition: color var(--ease); }
.uz-card__name:hover { color: var(--accent); }
.uz-card__stars { color: var(--gold); font-size: 13px; margin-top: 5px; letter-spacing: 1px; }
.uz-card__stars small { color: var(--ink-muted); letter-spacing: 0; }
.uz-card__prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 9px; }
.uz-card__price { font-weight: 800; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.uz-card__old { font-size: 13px; color: var(--ink-light); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.uz-card__instal { font-size: 12px; color: var(--ink-muted); margin-top: 4px; }

.uz-card__add { margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: center;
  gap: 7px; padding: 12px; border-radius: var(--r); border: 1.5px solid var(--ink);
  font-weight: 700; font-size: 14px; color: var(--ink);
  transition: background var(--ease), color var(--ease), border-color var(--ease); }
.uz-card__body > .uz-card__prices { margin-bottom: 13px; }
.uz-card__body > .uz-card__instal { margin-top: -9px; margin-bottom: 13px; }
.uz-card__add:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.uz-card__add:disabled { opacity: .4; cursor: default; background: transparent;
  border-color: var(--line-dark); color: var(--ink-muted); }

.uz-stepper { display: none; align-items: center; justify-content: space-between; margin-top: auto;
  background: var(--accent); border-radius: var(--r); padding: 4px; }
.uz-stepper.on { display: flex; }
.uz-stepper button { width: 38px; height: 38px; border-radius: 6px; color: #fff; font-size: 19px;
  font-weight: 700; transition: background var(--ease); }
.uz-stepper button:hover { background: rgba(255, 255, 255, .18); }
.uz-stepper .qty { color: #fff; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- banners */
.uz-banners { position: relative; border-radius: var(--r); overflow: hidden; margin: 40px 0 0;
  background: var(--accent) var(--tiles); }
.uz-banner { display: none; position: relative; min-height: clamp(150px, 19vw, 220px); align-items: center; }
.uz-banner.on { display: flex; }
.uz-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uz-banner__copy { position: relative; z-index: 1; padding: 30px 38px; color: #fff; max-width: 640px; }
.uz-banner:has(img) .uz-banner__copy { background: linear-gradient(90deg, rgba(15, 27, 77, .86), rgba(15, 27, 77, 0)); }
.uz-banner__copy h3 { font-size: clamp(22px, 2.8vw, 34px); color: #fff; margin-bottom: 6px; }
.uz-banner__copy p { color: rgba(255, 255, 255, .82); margin-bottom: 16px; font-size: 15px; }
.uz-banner__copy .uz-promo__cta { display: inline-flex; padding: 11px 22px; font-size: 14px; }
.uz-banner__dots { position: absolute; bottom: 16px; right: 20px; display: flex; gap: 7px; z-index: 2; }
.uz-banner__dots button { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.uz-banner__dots button.on { background: var(--gold); }

/* ---------------------------------------------------------------- promo */
.uz-promo { margin-top: 64px; padding: 44px 48px; background: var(--gold); color: var(--ink);
  border-radius: var(--r); display: flex; align-items: center; justify-content: space-between; gap: 28px;
  position: relative; overflow: hidden; }
.uz-promo::before { content: ""; position: absolute; right: -60px; top: 50%; width: 300px; height: 300px;
  transform: translateY(-50%) rotate(12deg); background: rgba(20, 24, 43, .08);
  -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.uz-promo__content { position: relative; }
.uz-promo__title { font-size: clamp(26px, 3.4vw, 42px); font-style: italic; }
.uz-promo__desc { margin-top: 8px; font-size: 16px; color: rgba(20, 24, 43, .78); max-width: 620px; }
.uz-promo__cta { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; font-weight: 700; padding: 15px 28px; border-radius: var(--r);
  transition: background var(--ease); }
.uz-promo__cta:hover { background: var(--dark); }

/* ---------------------------------------------------------------- partnership bar */
.uz-partner { max-width: var(--max); margin: 0 auto; padding: 26px var(--pad) 0; }
.uz-partner__link { display: flex; align-items: center; gap: 12px; padding: 14px 4px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-weight: 600; color: var(--ink); transition: color var(--ease); }
.uz-partner__link:hover { color: var(--accent); }
.uz-partner__icon { color: var(--gold); }
.uz-partner__text { flex: 1; }
.uz-partner__arrow { transition: transform var(--ease); }
.uz-partner__link:hover .uz-partner__arrow { transform: translateX(5px); }

/* ---------------------------------------------------------------- load more / pager */
.uz-load-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 44px 0 0;
  color: var(--ink-muted); font-size: 13.5px; }
.uz-load-more > a { padding: 14px 34px; border: 1.5px solid var(--ink); border-radius: var(--r);
  font-weight: 700; color: var(--ink); transition: background var(--ease), color var(--ease); }
.uz-load-more > a:hover { background: var(--ink); color: var(--page); }
.uz-load-more span a { color: var(--accent); font-weight: 600; }

/* ---------------------------------------------------------------- breadcrumb */
.uz-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 22px 0 0;
  font-size: 13px; color: var(--ink-muted); }
.uz-crumb a:hover { color: var(--accent); }
.uz-crumb b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- listing controls */
.uz-listing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; padding: 22px 0 16px; margin-bottom: 24px; border-bottom: 1px solid var(--ink); }
.uz-sorter { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-muted); }
.uz-sorter select { border: 0; border-bottom: 1.5px solid var(--ink); background: transparent;
  padding: 6px 4px; font-weight: 600; color: var(--ink); outline: none; cursor: pointer; }
.uz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.uz-chip { padding: 8px 15px; border: 1px solid var(--line-dark); border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  transition: background var(--ease), color var(--ease), border-color var(--ease); }
.uz-chip:hover { border-color: var(--ink); }
.uz-chip.on { background: var(--ink); border-color: var(--ink); color: var(--page); }

/* ---------------------------------------------------------------- product detail */
.uz-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px;
  margin-top: 22px; align-items: start; }
.uz-gallery { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand);
  border-radius: var(--r); display: flex; align-items: center; justify-content: center; }
.uz-gallery img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.uz-gallery.is-empty { color: var(--ink-light); }
.uz-thumbs { display: flex; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.uz-thumbs button { width: 70px; height: 70px; border-radius: 6px; overflow: hidden;
  border: 2px solid transparent; opacity: .7; transition: opacity var(--ease), border-color var(--ease); }
.uz-thumbs button:hover { opacity: 1; }
.uz-thumbs button.on { border-color: var(--gold); opacity: 1; }
.uz-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.uz-detail__cat { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-cat); margin-bottom: 10px; }
.uz-detail h1 { font-size: clamp(26px, 3.2vw, 40px); }
.uz-detail__lede { margin-top: 10px; color: var(--ink-muted); font-size: 16px; }
.uz-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; font-size: 13.5px; }
.uz-stars { color: var(--gold); letter-spacing: 1px; }
.uz-stars small { color: var(--ink-muted); letter-spacing: 0; margin-left: 4px; }
.uz-brand-tag { font-weight: 700; border-bottom: 1.5px solid var(--gold); }
.uz-instock, .uz-outstock { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.uz-instock { color: var(--ok); }
.uz-outstock { color: var(--err); }
.uz-instock::before, .uz-outstock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.uz-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px;
  padding-top: 22px; border-top: 1px solid var(--line); }
.uz-price-row .uz-card__badge { border-radius: 4px; align-self: center; }
.uz-price { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 3.6vw, 44px);
  color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.uz-price-old { font-size: 18px; color: var(--ink-light); text-decoration: line-through; }
.uz-instal { margin-top: 12px; font-size: 14px; color: var(--ink-body); }

.uz-buy-row { display: flex; gap: 10px; margin-top: 22px; }
.uz-buy-row .uz-card__add, .uz-buy-row .uz-stepper { flex: 1; margin-top: 0; }
.uz-buy-row .uz-card__add { padding: 15px; font-size: 15.5px; }
.uz-buy-row .uz-stepper button { height: 44px; }
.uz-fav-btn { width: 54px; flex-shrink: 0; border: 1.5px solid var(--ink); border-radius: var(--r);
  font-size: 20px; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.uz-fav-btn:hover { background: var(--sand); }
.uz-fav-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- order box */
.uz-order-box { margin-top: 26px; padding: 26px; background: var(--white);
  border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--r); }
.uz-order-box h2 { font-size: 24px; }
.uz-order-box .hint { color: var(--ink-muted); font-size: 13.5px; margin: 6px 0 18px; }
.uz-field { margin-bottom: 14px; }
.uz-field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.uz-field input, .uz-field select, .uz-field textarea { width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--line-dark); border-radius: var(--r); background: #fff; outline: none;
  transition: border-color var(--ease), box-shadow var(--ease); }
.uz-field input:focus, .uz-field select:focus, .uz-field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.uz-field .help, .help { font-size: 12.5px; color: var(--ink-muted); margin-top: 5px; }
.uz-privacy { font-size: 12.5px; color: var(--ink-muted); margin-top: 12px; text-align: center; }
.uz-privacy a { color: var(--ink); border-bottom: 1px solid var(--gold); }

.uz-note { padding: 12px 15px; border-radius: var(--r); font-size: 14px; margin-bottom: 14px;
  background: var(--accent-light); color: var(--ink); border-left: 3px solid var(--accent); }
.uz-note.ok { background: var(--ok-bg); border-color: var(--ok); }
.uz-note.err { background: var(--err-bg); border-color: var(--err); }

/* ---------------------------------------------------------------- panels (description, specs, reviews) */
.uz-panel { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--ink); }
.uz-panel > h2 { font-size: 26px; margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.uz-panel > p { max-width: 760px; font-size: 15.5px; line-height: 1.7; }
.uz-page-body { max-width: 720px; }
.uz-page-body p { margin-bottom: 14px; font-size: 15.5px; line-height: 1.7; }
.uz-specs { width: 100%; max-width: 760px; border-collapse: collapse; }
.uz-specs th, .uz-specs td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left;
  font-size: 14.5px; vertical-align: top; }
.uz-specs th { font-weight: 500; color: var(--ink-muted); width: 44%; padding-right: 16px; }
.uz-specs td { font-weight: 600; color: var(--ink); }
.uz-reviews { display: grid; gap: 0; max-width: 760px; }
.uz-review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.uz-review__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }

/* ---------------------------------------------------------------- drawers */
.uz-overlay { position: fixed; inset: 0; background: rgba(15, 27, 77, .5); z-index: 199;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.uz-overlay.open { opacity: 1; visibility: visible; }
.uz-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 200;
  background: var(--page); display: flex; flex-direction: column; border-left: 4px solid var(--gold);
  transform: translateX(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.uz-drawer.open { transform: translateX(0); }
.uz-drawer__head { display: flex; align-items: center; justify-content: space-between;
  padding: 22px 22px 18px; border-bottom: 1px solid var(--ink); }
.uz-drawer__head h3 { font-size: 24px; }
.uz-drawer__close { width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 1;
  transition: background var(--ease); }
.uz-drawer__close:hover { background: var(--sand); }
.uz-drawer__body { flex: 1; overflow-y: auto; padding: 6px 22px; }
.uz-drawer__empty { text-align: center; padding: 64px 12px; color: var(--ink-muted); }
.uz-drawer__empty .uz-blob { margin: 0 auto 16px; display: block; }
.uz-drawer__empty h4 { font-size: 20px; margin-bottom: 6px; }
.uz-line { display: grid; grid-template-columns: 62px 1fr auto; gap: 13px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line); }
.uz-line__img { width: 62px; height: 62px; border-radius: 6px; overflow: hidden; background: var(--sand); display: block; }
.uz-line__img img { width: 100%; height: 100%; object-fit: cover; }
.uz-line__name { font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uz-line__price { font-size: 13px; color: var(--ink-muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.uz-line__price b { color: var(--ink); }
.uz-line__x { width: 30px; height: 30px; border-radius: 50%; font-size: 19px; color: var(--ink-muted);
  transition: background var(--ease), color var(--ease); }
.uz-line__x:hover { background: var(--err-bg); color: var(--err); }
.uz-drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--ink); background: var(--white); }
.uz-drawer__total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px;
  font-size: 14px; color: var(--ink-muted); }
.uz-drawer__total b { font-family: var(--font-head); font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- cart page */
.uz-cart { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.uz-cart__lines { display: flex; flex-direction: column; }
.uz-cart__lines > div:last-child { margin-top: 22px; }
.uz-cart__line { display: grid; grid-template-columns: 84px 1fr auto auto auto; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line); }
.uz-cart__thumb { width: 84px; height: 84px; border-radius: 6px; overflow: hidden; background: var(--sand); display: block; }
.uz-cart__thumb img { width: 100%; height: 100%; object-fit: cover; }
.uz-cart__name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.uz-cart__name:hover { color: var(--accent); }
.uz-cart__unit { font-size: 13px; color: var(--ink-muted); margin-top: 3px; }
.uz-cart__total { font-weight: 800; color: var(--ink); min-width: 104px; text-align: right; font-variant-numeric: tabular-nums; }
.uz-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: var(--r); }
.uz-qty button { width: 34px; height: 36px; font-size: 17px; font-weight: 700; transition: background var(--ease); }
.uz-qty button:hover { background: var(--sand); }
.uz-qty .n { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.uz-checkout { margin-top: 0; position: sticky; top: 96px; }

/* ---------------------------------------------------------------- thanks / empty */
.uz-thanks { max-width: 560px; margin: 64px auto 0; text-align: center; padding: 44px 32px;
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--r); }
.uz-thanks__tick { width: 68px; height: 68px; margin: 0 auto 20px; background: var(--gold); color: var(--ink);
  font-size: 30px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.uz-thanks h1 { font-size: 32px; margin-bottom: 10px; }
.uz-thanks .uz-outline-btn { margin-top: 22px; }
.uz-empty { text-align: center; padding: 72px 20px; color: var(--ink-muted); }
.uz-empty .uz-blob { display: block; margin: 0 auto 18px; }
.uz-empty h3 { font-size: 26px; margin-bottom: 8px; }
.uz-empty .uz-btn, .uz-empty .uz-outline-btn { margin-top: 20px; }

/* ---------------------------------------------------------------- footer */
.uz-footer { margin-top: 88px; background: var(--dark) var(--tiles); color: var(--dark-text);
  border-top: 4px solid var(--gold); }
.uz-footer__inner { max-width: var(--max); margin: 0 auto; padding: 60px var(--pad) 26px; }
.uz-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.uz-footer__logo { font-size: clamp(44px, 6vw, 76px); line-height: .95; color: #fff; }
.uz-footer__desc { margin-top: 16px; max-width: 340px; color: var(--dark-muted); font-size: 14.5px; }
.uz-footer__socials { display: flex; gap: 8px; margin-top: 18px; }
.uz-footer__socials a { width: 40px; height: 40px; border: 1px solid var(--dark-line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
  letter-spacing: .04em; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.uz-footer__socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.uz-footer__col { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.uz-footer__col-title { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px; }
.uz-footer__col a, .uz-footer__col p { color: var(--dark-text); transition: color var(--ease); }
.uz-footer__col a:hover { color: var(--gold); }
.uz-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--dark-line);
  font-size: 12.5px; color: var(--dark-muted); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .uz-grid { grid-template-columns: repeat(3, 1fr); }
  .uz-cats__grid, .uz-mega__grid { grid-template-columns: repeat(3, 1fr); }
  .uz-action__label { display: none; }
  .uz-hero__banner { gap: 30px; }
  .az-seal { left: -30px; width: 96px; height: 96px; }
}

@media (max-width: 860px) {
  :root { --pad: 16px; }
  .uz-topbar__right a:not(.uz-topbar__phone) { display: none; }
  /* two rows: logo + icons, then catalogue button + search */
  .uz-header__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 12px;
    grid-template-areas: "logo . actions" "cat search search"; padding-top: 12px; padding-bottom: 12px; }
  .uz-header__logo { grid-area: logo; font-size: 26px; }
  .uz-header__actions { grid-area: actions; }
  .uz-catalog-btn { grid-area: cat; padding: 10px 13px; }
  .uz-search { grid-area: search; }

  .uz-hero__banner { grid-template-columns: 1fr; padding-top: 44px; gap: 0; }
  .uz-hero__inner { padding-bottom: 36px; }
  .uz-hero__stats > div:not(.uz-hero__divider) { padding-right: 18px; }
  .uz-hero__divider { margin-right: 18px; }
  .uz-hero__stat-n { font-size: 19px; }
  .uz-hero__stats > div:not(.uz-hero__divider) { padding-right: 12px; }
  .uz-hero__divider { margin-right: 12px; }
  .az-wall { max-width: 460px; margin: 0 auto; width: 100%; }
  .az-seal { left: auto; right: -6px; top: -34px; width: 88px; height: 88px; }

  .uz-trust__grid { grid-template-columns: 1fr 1fr; }
  .uz-trust__item { padding: 18px 14px 18px 0; }
  .uz-trust__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .uz-trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }

  .uz-section { padding-top: 44px; }
  .uz-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .uz-cats__grid, .uz-mega__grid { grid-template-columns: repeat(2, 1fr); }
  .uz-cats__item { padding: 16px 12px; }
  .uz-cats__item::after { display: none; }
  .uz-card__name { font-size: 14px; }
  .uz-card__price { font-size: 16.5px; }
  .uz-card__add { padding: 11px 8px; font-size: 13.5px; }

  .uz-promo { flex-direction: column; align-items: flex-start; padding: 32px 24px; margin-top: 48px; }
  .uz-detail { grid-template-columns: 1fr; gap: 26px; }
  .uz-cart { grid-template-columns: 1fr; gap: 28px; }
  .uz-checkout { position: static; }
  .uz-cart__line { grid-template-columns: 68px 1fr auto; row-gap: 10px; }
  .uz-cart__thumb { width: 68px; height: 68px; }
  .uz-cart__line .uz-qty { grid-column: 2; justify-self: start; }
  .uz-cart__total { grid-column: 3; grid-row: 2; min-width: 0; }
  .uz-cart__line .uz-line__x { grid-column: 3; grid-row: 1; justify-self: end; }

  .uz-footer { margin-top: 64px; }
  .uz-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .uz-footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .uz-topbar__left span { font-size: 11.5px; }
  .uz-search button { display: none; }
  .uz-hero__title { font-size: 36px; }
  .uz-hero__cta { padding: 14px 20px; flex: 1; justify-content: center; }
  .uz-order-box { padding: 20px 16px; }
}

/* ---------------------------------------------------------------- who sells it */
.uz-card__seller { font-size: 12.5px; color: var(--ink-muted); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uz-card__seller b, .uz-seller b { color: var(--ink); font-weight: 700; }
.uz-seller { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px;
  background: var(--sand); color: var(--ink-muted); font-size: 13px; }

/* ---------------------------------------------------------------- chat helper
   Built only from the theme's variables, so it follows Clay and Dark by itself. */
.bot-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--on-ink, #fff);
  display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .45);
  transition: transform .18s ease; }
.bot-fab:hover { transform: scale(1.07); }
.bot-fab::after { content: ""; position: absolute; right: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: #2ECC71; border: 2px solid var(--page); }
html.bot-open .bot-fab { display: none; }
body:has(.uz-tryon-btn) .bot-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }

.bot { position: fixed; inset: 0; z-index: 210; display: flex; flex-direction: column;
  background: var(--page); color: var(--ink-body); }
.bot[hidden] { display: none; }
.bot-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px;
  background: var(--white); border-bottom: 1px solid var(--line); }
.bot-head div { flex: 1; min-width: 0; }
.bot-head strong { display: block; font: 800 16.5px/1.2 var(--font-head); color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-head small { display: flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: 12.5px; margin-top: 2px; }
.bot-head small b { width: 8px; height: 8px; border-radius: 50%; background: #2ECC71; }
.bot-x { width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--ink); flex: none; }
.bot-x:hover { background: var(--sand); }
.bot-ava { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.bot-ava i { width: 15px; height: 15px; border-radius: 50%; background: var(--on-ink, #fff); opacity: .95; }
.bot-ava.sm { width: 30px; height: 30px; }
.bot-ava.sm i { width: 10px; height: 10px; }
.bot-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.bot-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.bot-msg p { margin: 0; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.bot-in p { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bot-out { align-self: flex-end; }
.bot-out p { background: var(--accent); color: var(--on-ink, #fff); border-bottom-right-radius: 6px; }
.bot-msg a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bot-typing p { display: flex; gap: 5px; padding: 15px 16px; }
.bot-typing p i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); animation: botdot 1s infinite; }
.bot-typing p i:nth-child(2) { animation-delay: .15s; }
.bot-typing p i:nth-child(3) { animation-delay: .3s; }
@keyframes botdot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.bot-vote { display: flex; align-items: center; gap: 6px; margin: -4px 0 0 38px; font-size: 12.5px; color: var(--ink-muted); }
.bot-vote button { width: 34px; height: 30px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  font-size: 14px; line-height: 1; }
.bot-vote button:hover { border-color: var(--accent); }
.bot-quick { display: grid; gap: 8px; margin-left: 38px; }
.bot-quick[hidden] { display: none; }
.bot-quick span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.bot-quick button { text-align: left; background: var(--white); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 11px 16px; font-weight: 600; font-size: 14.5px; transition: border-color var(--ease); }
.bot-quick button:hover { border-color: var(--accent); }
.bot-form { display: flex; gap: 8px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--line); }
.bot-form input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 1.5px solid var(--line-dark);
  background: var(--page); color: var(--ink); outline: none; }
.bot-form input:focus { border-color: var(--accent); }
.bot-form button { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--on-ink, #fff);
  display: grid; place-items: center; flex: none; }
.bot-form button:disabled { opacity: .45; cursor: default; }
@media (min-width: 720px) {
  .bot { inset: auto 22px 22px auto; width: 392px; height: min(640px, calc(100vh - 44px)); border-radius: 24px;
    overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .5); }
  .bot-fab { right: 24px; bottom: 24px; width: 62px; height: 62px; }
}

/* ---------------------------------------------------------------- light / dark button */
.az-mode { cursor: pointer; }
.az-mode__sun { display: none; }
html[data-theme="dark"] .az-mode__sun { display: block; }
html[data-theme="dark"] .az-mode__moon { display: none; }

/* ------------------------------------------------- the dressing room
   Everything here floats over the shop. Nothing above this line moves,
   so switching the feature off leaves the storefront exactly as it was. */

.uz-tryon-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 19px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink, #111827); color: #fff;
  font: 600 14.5px/1 var(--font-body, inherit);
  box-shadow: 0 6px 22px rgba(17, 24, 39, .28);
  transition: transform .16s ease, box-shadow .16s ease;
}
.uz-tryon-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(17,24,39,.34); }
.uz-tryon-btn:active { transform: translateY(0); }
@media (max-width: 560px) {
  .uz-tryon-btn { right: 12px; bottom: 12px; padding: 12px 16px; }
  .uz-tryon-btn span { display: none; }        /* icon only, out of the way */
}

.uz-tryon[hidden] { display: none; }
.uz-tryon { position: fixed; inset: 0; z-index: 70; }
.uz-tryon__veil { position: absolute; inset: 0; background: rgba(17,24,39,.42); }
.uz-tryon__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 100%);
  background: var(--surface, #fff); display: flex; flex-direction: column;
  box-shadow: -18px 0 44px rgba(17,24,39,.18);
  animation: uz-tryon-in .22s ease;
}
@keyframes uz-tryon-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .uz-tryon__panel { animation: none; } }

.uz-tryon__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--line, #e5e7eb);
}
.uz-tryon__head h2 { margin: 0; font-size: 19px; font-family: var(--font-head, inherit); }
.uz-tryon__head p { margin: 4px 0 0; font-size: 13px; color: var(--muted, #6b7280); }
.uz-tryon__x {
  border: 0; background: none; font-size: 27px; line-height: 1; cursor: pointer;
  color: var(--muted, #6b7280); padding: 0 4px;
}
.uz-tryon__x:hover { color: var(--ink, #111827); }

.uz-tryon__stage {
  padding: 14px 20px 4px; text-align: center;
  background: var(--bg, #f8f9fb); border-bottom: 1px solid var(--line, #e5e7eb);
}
.uz-model { display: block; width: auto; height: auto;
  max-width: 190px; max-height: 46vh; }
.uz-model__body { color: #d7dbe2; }
.uz-slot[data-empty="1"] { display: none; }
.uz-slot .uz-fill { transition: fill .2s ease; }
.uz-slot .uz-shade { fill: #000; }

.uz-tryon__verdict {
  margin: 8px 0 12px; font-size: 13.5px; line-height: 1.45;
  padding: 9px 12px; border-radius: 10px; text-align: left;
}
.uz-tryon__verdict[data-tone="good"] { background: #e7f6ee; color: #14663f; }
.uz-tryon__verdict[data-tone="warn"] { background: #fdf3e2; color: #8a5a08; }
.uz-tryon__verdict[data-tone="bad"]  { background: #fdeaea; color: #97231d; }

.uz-tryon__picks { padding: 0 20px; }
.uz-tryon__picks:empty { display: none; }
.uz-pick {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--line, #eef0f3); font-size: 14px;
}
.uz-pick__chip { width: 18px; height: 18px; border-radius: 5px; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.uz-pick__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.uz-pick__price { color: var(--muted, #6b7280); font-size: 13px; }
.uz-pick__x { border: 0; background: none; cursor: pointer; color: var(--muted,#6b7280);
  font-size: 18px; line-height: 1; padding: 0 2px; }
.uz-pick__x:hover { color: #b3261e; }

.uz-tryon__rack { flex: 1; overflow-y: auto; padding: 14px 20px 8px; }
.uz-rack { margin-bottom: 16px; }
.uz-rack h3 {
  margin: 0 0 8px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted, #6b7280); font-weight: 700;
}
.uz-rack__row { display: flex; gap: 8px; flex-wrap: wrap; }
.uz-swatch {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 7px 11px 7px 8px; border-radius: 999px; font: inherit; font-size: 13px;
  background: var(--bg, #f8f9fb); border: 1px solid var(--line, #e5e7eb);
  color: inherit; max-width: 100%;
}
.uz-swatch:hover { border-color: var(--accent, #F97316); }
.uz-swatch[aria-pressed="true"] {
  border-color: var(--accent, #F97316);
  box-shadow: inset 0 0 0 1px var(--accent, #F97316);
}
.uz-swatch__chip { width: 17px; height: 17px; border-radius: 50%; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.uz-swatch__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 150px; }

.uz-tryon__foot {
  display: flex; gap: 10px; padding: 14px 20px;
  border-top: 1px solid var(--line, #e5e7eb);
}
.uz-tryon__foot .uz-btn { flex: 1; }
.uz-tryon__foot .uz-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* the real-shape layers, stacked exactly over the drawn model */
.uz-figure { position: relative; display: inline-block; }
.uz-layers { position: absolute; inset: 0; pointer-events: none; }
.uz-layer {
  position: absolute; inset: 0;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.uz-layer[hidden] { display: none; }

/* the generated mannequin, when one has been saved.
   Both sides are limits, never fixed sizes: a fixed width with a max-height
   squashes the figure on a short screen instead of scaling it down. */
.uz-model-photo {
  display: block; width: auto; height: auto;
  max-width: 190px; max-height: 46vh; object-fit: contain;
}
.uz-figure { position: relative; display: inline-block; line-height: 0; }
.uz-figure[data-figure="photo"] .uz-layers { inset: 0; }
/* the drawn clothes stretch over whichever figure is underneath */
.uz-model-clothes { position: absolute; inset: 0; width: 100%; height: 100%; }
.uz-figure[data-figure="photo"] .uz-model-clothes { opacity: .92; }
