/* ============================================================
   BINGO KIDS — Storefront
   Premium, warm & playful design system
   ============================================================ */

:root {
  /* Surfaces (warm whites) */
  --bg:        #fffdfb;
  --surface:   #ffffff;
  --surface-2: #fbf5f3;
  --surface-3: #f5eeef;

  /* Text */
  --ink:    #241f2b;
  --ink-2:  #5c5663;
  --muted:  #9a929f;

  /* Lines */
  --line:   #efe8ea;
  --line-2: #f6f0f1;

  /* Brand + accents */
  --brand:      #fb5c7d;
  --brand-ink:  #e23f63;
  --brand-700:  #c42f51;
  --brand-soft: #fff0f3;
  --brand-soft2:#ffdde5;
  --honey:  #ffb23e;
  --honey-soft: #fff3dc;
  --mint:   #14bca0;
  --mint-soft: #d7f6f0;
  --violet: #7b6ef0;
  --violet-soft: #ece9ff;
  --sky:    #3aa6ff;

  /* Radii */
  --r-xs: 10px;
  --r-sm: 14px;
  --r:    20px;
  --r-lg: 28px;
  --r-xl: 38px;

  /* Shadows (warm-tinted) */
  --sh-1: 0 1px 3px rgba(36,31,43,.05);
  --sh-2: 0 8px 22px rgba(36,31,43,.07);
  --sh-3: 0 18px 44px rgba(36,31,43,.11);
  --sh-4: 0 34px 80px rgba(36,31,43,.18);
  --sh-brand: 0 14px 30px rgba(251,92,125,.36);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; font-size: 16px; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
::selection { background: var(--brand-soft2); color: var(--brand-700); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.container { width: min(1200px, 92%); margin-inline: auto; }

/* Gorizontal scroll bo'lmasin (sticky header buzilmasligi uchun clip) */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: -.01em;
  background: var(--brand); color: #fff; isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s var(--ease);
}
.btn::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 60%); opacity: .8;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn--primary { box-shadow: var(--sh-brand); }
.btn--primary:hover { background: var(--brand-ink); box-shadow: 0 18px 38px rgba(251,92,125,.45); }
.btn--lg { padding: 16px 34px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--outline { background: #fff; color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px var(--brand-soft2); }
.btn--outline::after { display: none; }
.btn--outline:hover { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-size: 17px; color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,251,.78);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 22px; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.logo__icon {
  font-size: 21px; width: 42px; height: 42px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ffe0e7, #ffd0dc); border-radius: 14px;
  box-shadow: var(--sh-1); transition: transform .4s var(--ease-out);
}
.logo:hover .logo__icon { transform: rotate(-8deg) scale(1.05); }
.logo__text span { color: var(--brand); }
.logo--light { color: #fff; }
.logo--light .logo__icon { background: rgba(255,255,255,.12); box-shadow: none; }
.logo--light .logo__text span { color: var(--honey); }

.nav { display: none; gap: 4px; }
.nav-overlay { display: none; } /* faqat mobil menyu ochilganda ko'rinadi */
.nav__head { display: none; } /* faqat mobil menyuda */
.nav a {
  font-weight: 600; font-size: 14.5px; color: var(--ink-2);
  padding: 9px 16px; border-radius: 999px; transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--brand-ink); background: var(--brand-soft); }

/* ---------- Category bar (Uzum uslubi) ---------- */
.catbar { border-top: 1px solid var(--line); background: rgba(255,253,251,.7); }
.catbar__inner { display: flex; align-items: center; gap: 14px; height: 54px; }
.catbar__all {
  display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff;
  font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 12px; flex: none;
  transition: background .2s var(--ease);
}
.catbar__all:hover { background: var(--brand-ink); }
.catbar__chips { display: flex; gap: 8px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.catbar__chips::-webkit-scrollbar { display: none; }
.catchip {
  white-space: nowrap; padding: 8px 16px; border-radius: 999px; background: var(--surface-2);
  color: var(--ink-2); font-weight: 600; font-size: 13.5px; transition: all .2s var(--ease);
}
.catchip:hover { background: var(--brand-soft); color: var(--brand-ink); }
.catchip.active { background: var(--ink); color: #fff; }
.catbar__links { display: flex; gap: 6px; flex: none; }
.catbar__links a { font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .2s var(--ease); }
.catbar__links a:hover { color: var(--brand-ink); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: flex; background: var(--surface-2); border-radius: 999px; padding: 4px; }
.lang-btn { padding: 6px 13px; border-radius: 999px; font-weight: 700; font-size: 12.5px; color: var(--muted); transition: all .25s var(--ease); }
.lang-btn.active { background: #fff; color: var(--brand-ink); box-shadow: var(--sh-1); }

.account-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; max-width: 180px;
  border-radius: 999px; background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 14px;
  transition: all .25s var(--ease);
}
.account-btn:hover { background: var(--brand-soft); color: var(--brand-ink); }
#accountLabel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.account-wrap { position: relative; }
.account-menu {
  position: absolute; top: calc(100% + 14px); right: 0; width: 250px;
  background: #fff; border-radius: var(--r-sm); box-shadow: var(--sh-4); border: 1px solid var(--line);
  padding: 8px; z-index: 60; animation: pop .28s var(--ease-out);
}
.account-menu::before {
  content: ''; position: absolute; top: -6px; right: 24px; width: 12px; height: 12px; background: #fff;
  border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg);
}
.account-menu__head { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-menu__avatar {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--violet));
}
.account-menu__name { font-weight: 700; font-size: 15px; }
.account-menu__phone { font-size: 13px; color: var(--muted); }
.account-menu__item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: var(--r-xs); font-weight: 600; font-size: 14px; color: var(--ink-2);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.account-menu__item:hover { background: var(--brand-soft); color: var(--brand-ink); }

.cart-toggle {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-size: 18px; background: var(--surface-2); transition: all .25s var(--ease);
}
.cart-toggle:hover { background: var(--brand-soft); transform: translateY(-1px); }
.cart-count {
  position: absolute; top: -3px; right: -3px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 5px; box-shadow: 0 0 0 2.5px var(--bg);
  transition: transform .3s var(--ease-out);
}
.burger { display: none; width: 44px; height: 44px; border-radius: 13px; font-size: 22px; color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(620px 420px at 88% 8%, var(--honey-soft), transparent 60%),
    radial-gradient(680px 520px at 8% 95%, var(--violet-soft), transparent 60%),
    linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 70%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 76px 0 90px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--brand-ink); padding: 9px 17px; border-radius: 999px;
  font-weight: 700; font-size: 13px; box-shadow: var(--sh-2); margin-bottom: 24px;
}
.hero__badge::before { content: '✨'; }
.hero__content h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.hero__content h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero__content p { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); margin-bottom: 34px; max-width: 470px; }

.hero__art { position: relative; display: grid; place-items: center; min-height: 400px; }
.hero__glow { position: absolute; width: 420px; height: 420px; background: radial-gradient(circle, rgba(251,92,125,.18), transparent 65%); }
.hero__blob {
  position: absolute; width: 370px; height: 370px;
  background: linear-gradient(150deg, #ff8aa3 0%, var(--brand) 55%, var(--brand-700) 100%);
  border-radius: 46% 54% 57% 43% / 44% 47% 53% 56%;
  box-shadow: var(--sh-4), inset 0 -20px 50px rgba(196,47,81,.35);
  animation: morph 11s ease-in-out infinite;
}
.hero__emoji { position: relative; z-index: 2; font-size: 165px; filter: drop-shadow(0 22px 30px rgba(36,31,43,.25)); animation: float 5.5s ease-in-out infinite; }
.hero__float {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); padding: 11px 16px; border-radius: 16px;
  box-shadow: var(--sh-3); font-weight: 700; font-size: 13.5px; border: 1px solid rgba(255,255,255,.7);
}
.hero__float-ic { font-size: 18px; }
.hero__stars { color: var(--honey); letter-spacing: 1px; font-size: 13px; }
.hero__float--1 { top: 14%; left: -2%; animation: float 4.5s ease-in-out infinite; }
.hero__float--2 { bottom: 16%; right: -4%; animation: float 5.5s ease-in-out .6s infinite; }
.hero__float--3 { bottom: 6%; left: 8%; animation: float 5s ease-in-out .3s infinite; }

@keyframes morph {
  0%,100% { border-radius: 46% 54% 57% 43% / 44% 47% 53% 56%; }
  50%     { border-radius: 58% 42% 41% 59% / 57% 56% 44% 43%; }
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ============================================================
   FEATURES
   ============================================================ */
/* ============================================================
   BANNER CAROUSEL (bosh sahifa slayderi)
   ============================================================ */
.banner { padding: 22px 0 6px; }
.slider { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); aspect-ratio: 1600 / 540; background: var(--surface-2); }
.slider__track { display: flex; height: 100%; transition: transform .55s var(--ease-out); will-change: transform; }
.slide { min-width: 100%; height: 100%; display: block; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 26px; font-weight: 700;
  display: grid; place-items: center; box-shadow: var(--sh-2); z-index: 3; line-height: 1;
  opacity: 0; transition: opacity .25s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.slider:hover .slider__arrow { opacity: 1; }
.slider__arrow:hover { background: #fff; }
.slider__arrow:active { transform: translateY(-50%) scale(.92); }
.slider__arrow--prev { left: 16px; }
.slider__arrow--next { right: 16px; }
.slider__dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.dot { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.55); cursor: pointer; transition: all .3s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.dot.active { width: 28px; background: #fff; }
@media (max-width: 760px) {
  .slider { aspect-ratio: 16 / 10; border-radius: var(--r); }
  .slider__arrow { opacity: 1; width: 38px; height: 38px; font-size: 22px; }
  .slider__arrow--prev { left: 10px; } .slider__arrow--next { right: 10px; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 28px 0 4px; position: relative; z-index: 2; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 24px; box-shadow: var(--sh-2);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.feature__icon {
  flex: none; width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; font-size: 26px;
  background: var(--brand-soft);
}
.feature:nth-child(2) .feature__icon { background: var(--mint-soft); }
.feature:nth-child(3) .feature__icon { background: var(--honey-soft); }
.feature h3 { font-size: 16.5px; margin-bottom: 3px; }
.feature p { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 78px 0; }
.section--gray { background: var(--surface-2); }
.section__title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; text-align: center; }
.section__title::after {
  content: ''; display: block; width: 58px; height: 5px; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--honey)); margin: 16px auto 42px;
}

/* ---------- Catalog controls ---------- */
.catalog-controls { display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 36px; }
.search-input {
  flex: 1; min-width: 250px; padding: 15px 22px 15px 48px; border: 1.5px solid var(--line);
  border-radius: 999px; font-size: 15px; background: #fff; box-shadow: var(--sh-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%239a929f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M17 17l-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 19px center;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.filters { display: flex; gap: 10px; }
.filter-select {
  padding: 15px 40px 15px 20px; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 600; background: #fff; cursor: pointer; appearance: none; box-shadow: var(--sh-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23241f2b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 17px center;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.filter-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-1); cursor: pointer;
  transition: transform .42s var(--ease-out), box-shadow .42s var(--ease-out), border-color .3s var(--ease);
}
.product-card:hover { transform: translateY(-10px); box-shadow: var(--sh-3); border-color: transparent; }
.product-card__img { position: relative; aspect-ratio: 4/5; background: var(--surface-2); overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.product-card:hover .product-card__img img { transform: scale(1.08); }
.product-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 88px; opacity: .4; }
.product-card__badge {
  position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 7px 13px; border-radius: 999px; box-shadow: var(--sh-2);
}
.product-card__badge--sale { background: linear-gradient(135deg, var(--brand), var(--brand-700)); }
.product-card__media { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; gap: 6px; }
.pc-media {
  background: rgba(36,31,43,.62); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 10px;
  border-radius: 999px; backdrop-filter: blur(6px);
}
.product-card__view {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; background: rgba(255,255,255,.95); color: var(--ink);
  font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; box-shadow: var(--sh-2);
  opacity: 0; transform: translateY(8px); transition: all .3s var(--ease-out);
}
.product-card:hover .product-card__view { opacity: 1; transform: translateY(0); }
.product-card__out {
  position: absolute; inset: 0; z-index: 3; background: rgba(255,253,251,.8); backdrop-filter: blur(3px);
  display: grid; place-items: center; font-weight: 700; color: var(--ink-2); font-size: 16px; letter-spacing: .02em;
}
.product-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.product-card__cat { font-size: 11.5px; color: var(--violet); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.product-card__rating { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pc-stars { color: var(--honey); letter-spacing: 1px; font-size: 12px; }
.product-card__name { font-weight: 700; font-size: 17.5px; line-height: 1.35; letter-spacing: -.015em; }
.product-card__sizes { font-size: 13px; color: var(--muted); }
.product-card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-card__price { display: flex; flex-direction: column; line-height: 1.15; }
.product-card__price b { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.product-card__price s { font-size: 14px; color: var(--muted); font-weight: 500; }
.product-card__add {
  flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center; transition: all .25s var(--ease-out);
}
.product-card__add { font-size: 22px; } /* ichidagi SVG (1em) o'lchami */
.product-card__add:hover { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); transform: translateY(-2px); }
.product-card__add:disabled { background: var(--surface-3); color: var(--muted); cursor: not-allowed; box-shadow: none; transform: none; }

/* ---------- Product detail modal ---------- */
.modal__box--wide { max-width: 920px; padding: 0; overflow: hidden; }
.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd__media { background: var(--surface-2); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.pd__main { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: #fff; display: grid; place-items: center; box-shadow: var(--sh-1); }
.pd__main img, .pd__main video { width: 100%; height: 100%; object-fit: cover; }
.pd__placeholder { font-size: 90px; opacity: .4; }
.pd__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-thumb {
  width: 62px; height: 62px; border-radius: 12px; overflow: hidden; background: #fff; border: 2px solid transparent;
  display: grid; place-items: center; box-shadow: var(--sh-1); transition: border-color .2s var(--ease);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.active { border-color: var(--brand); }
.pd-thumb__play { font-size: 20px; color: var(--brand); }
.pd__info { padding: 34px; display: flex; flex-direction: column; gap: 12px; }
.pd__cat { font-size: 12px; color: var(--violet); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pd__name { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.pd__price { display: flex; align-items: baseline; gap: 12px; }
.pd__price b { font-size: 30px; font-weight: 800; color: var(--brand-ink); letter-spacing: -.02em; }
.pd__price s { font-size: 17px; color: var(--muted); }
.pd__desc { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.pd__label { font-size: 13px; font-weight: 700; color: var(--ink-2); display: block; margin-bottom: 8px; }
.pd-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-size { min-width: 48px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line); font-weight: 700; font-size: 14px; transition: all .2s var(--ease); }
.pd-size:hover { border-color: var(--brand-soft2); }
.pd-size.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.pd__buy { display: flex; gap: 12px; margin-top: auto; padding-top: 12px; }
.pd__qty { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 5px; }
.pd__qty button { width: 38px; height: 38px; border-radius: 50%; background: #fff; font-weight: 800; font-size: 18px; box-shadow: var(--sh-1); transition: all .18s var(--ease); }
.pd__qty button:hover { background: var(--brand); color: #fff; }
.pd__qty span { min-width: 30px; text-align: center; font-weight: 800; font-size: 16px; }
.pd__buy .btn { flex: 1; }

.empty-msg { text-align: center; color: var(--muted); padding: 64px 20px; font-size: 17px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__inner { display: grid; grid-template-columns: 330px 1fr; align-items: center; gap: 60px; }
.about__art {
  font-size: 135px; aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--r-lg);
  background: radial-gradient(circle at 30% 25%, var(--honey-soft), var(--brand-soft) 75%); box-shadow: var(--sh-2);
}
.about__content .section__title { text-align: left; }
.about__content .section__title::after { margin-inline: 0; }
.about__content p { color: var(--ink-2); font-size: 17px; line-height: 1.8; }

/* Emoji o'rniga qo'yilgan Lucide ikonkalar uchun rang/o'lcham moslashuvi */
.product-card__placeholder, .pd__placeholder, .pp-ph { color: var(--muted); }
.about__art { color: var(--brand); font-size: 112px; }
.success-emoji { color: var(--brand); }
.cart-empty__ic, .cab-empty__ic { font-size: 46px; opacity: .4; display: inline-block; line-height: 1; }
.cart-item__img > svg { opacity: .4; }
.review-notif__ic { color: var(--brand); }
.review-notif--pay .review-notif__ic { color: #9a6700; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #b9b2c0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 42px; padding: 66px 0 38px; }
.footer__col h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
.footer__col > p { margin-top: 14px; font-size: 14.5px; max-width: 300px; line-height: 1.75; }
.footer__col a { display: block; color: #b9b2c0; margin-bottom: 11px; font-size: 14.5px; width: fit-content; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--honey); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: 13.5px; text-align: center; color: #88808f; }

/* ============================================================
   CART DRAWER
   ============================================================ */
.drawer-overlay { position: fixed; inset: 0; background: rgba(36,31,43,.5); z-index: 60; backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease); }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(424px, 92%); background: #fff; z-index: 70;
  transform: translateX(100%); transition: transform .45s var(--ease-out); display: flex; flex-direction: column; box-shadow: var(--sh-4);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-drawer__head h3 { font-size: 20px; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-drawer__foot { padding: 22px 24px; border-top: 1px solid var(--line); background: var(--surface-2); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; font-size: 16px; color: var(--ink-2); }
.cart-total strong { font-size: 25px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }

.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item__img { width: 72px; height: 72px; border-radius: var(--r-sm); object-fit: cover; background: var(--surface-2); display: grid; place-items: center; font-size: 32px; }
.cart-item__info h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
.cart-item__meta { font-size: 13px; color: var(--muted); }
.cart-item__price { font-size: 15px; font-weight: 800; color: var(--brand-ink); }
.qty-control { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.qty-control button { width: 27px; height: 27px; border-radius: 50%; background: #fff; font-weight: 800; font-size: 15px; box-shadow: var(--sh-1); transition: all .18s var(--ease); }
.qty-control button:hover { background: var(--brand); color: #fff; }
.qty-control span { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-item__end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-size { font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; margin-top: 6px; max-width: 110px; }
.cart-item__remove { color: var(--muted); font-size: 12.5px; padding: 4px 2px; transition: color .2s var(--ease); }
.cart-item__remove:hover { color: var(--brand); }
.cart-size { font-size: 12px; margin-top: 7px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.cart-empty { text-align: center; color: var(--muted); padding: 72px 20px; font-size: 16px; }

/* ============================================================
   MODALS
   ============================================================ */
.modal { position: fixed; inset: 0; background: rgba(36,31,43,.55); z-index: 80; backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 36px 16px; overflow-y: auto; }
.modal.open { display: flex; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal__box { background: #fff; border-radius: var(--r); width: min(540px, 100%); padding: 36px; position: relative; box-shadow: var(--sh-4); margin: auto; animation: rise .4s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.modal__box--center { text-align: center; max-width: 440px; }
.modal__box--narrow { max-width: 432px; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: var(--muted); background: var(--surface-2); transition: all .25s var(--ease); }
.modal__close:hover { background: var(--brand-soft); color: var(--brand); transform: rotate(90deg); }
.modal__title { font-size: 26px; font-weight: 800; margin-bottom: 24px; letter-spacing: -.025em; }

/* ---------- Forms ---------- */
.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: 15px; background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #c3bcc6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field textarea { resize: vertical; min-height: 58px; }
input[type="tel"] { letter-spacing: .04em; font-variant-numeric: tabular-nums; }

.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-option { position: relative; }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-card { display: grid; place-items: center; padding: 18px; border: 2px solid var(--line); border-radius: var(--r-sm); font-weight: 800; font-size: 16px; transition: all .22s var(--ease-out); cursor: pointer; }
.pay-card--payme { color: var(--mint); }
.pay-card--click { color: var(--sky); }
.pay-card--cod { color: var(--brand); }
.pay-card--home { color: var(--sky); }
.pay-card--pvz { color: var(--honey); }

/* BTS PVZ tanlash ro'yxati */
.pvz-list { display: flex; flex-direction: column; gap: 8px; max-height: 270px; overflow-y: auto; margin-top: 4px; padding: 2px; }
.pvz-empty { color: var(--muted); font-size: 13.5px; text-align: center; padding: 18px; }
.pvz-item { text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); width: 100%; }
.pvz-item:hover { border-color: var(--brand); }
.pvz-item--sel { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft); }
.pvz-item__name { font-weight: 700; font-size: 14px; color: var(--ink); }
.pvz-item__name i { color: var(--muted); font-style: normal; font-weight: 600; font-size: 12px; }
.pvz-item__addr { font-size: 12.5px; color: var(--ink-2); }
.pvz-item__hours { font-size: 11.5px; color: var(--muted); }
.pvz-toggle { display: inline-flex; gap: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin: 8px 0; }
.pvz-tab { padding: 7px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); transition: all .2s var(--ease); }
.pvz-tab.active { background: #fff; color: var(--brand); box-shadow: var(--sh-1); }
.pvz-map { width: 100%; height: 320px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); margin-top: 4px; }
.pvz-chosen { margin-top: 10px; padding: 10px 13px; background: var(--mint-soft, #e7f7f0); border: 1px solid var(--mint, #2bb673); border-radius: var(--r-sm); font-size: 13px; color: var(--ink); }
.pvz-chosen b { color: var(--brand-ink); }
/* PVZ picker (umumiy komponent) */
/* Kuryer tanlash (1-qadam) */
.pvzp__couriers { display: flex; gap: 10px; margin-bottom: 10px; }
.pvz-courier { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; transition: all .18s var(--ease); }
.pvz-courier:hover { border-color: var(--brand); }
.pvz-courier__name { font-weight: 800; font-size: 14px; letter-spacing: .3px; color: var(--ink); }
.pvz-courier__cnt { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pvz-courier--sel { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--sh-1); }
.pvz-courier--sel .pvz-courier__name { color: var(--brand); }
.pvz-chosen__courier { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .3px; background: var(--brand-soft); color: var(--brand); vertical-align: middle; }
.pvzp__bar { display: flex; gap: 8px; margin-bottom: 8px; }
/* Filial qidiruvi (ko'p filialli kuryerlar uchun) */
.pvzp-searchbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pvzp-search { flex: 1; min-width: 0; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 14px; }
.pvzp-search:focus { outline: none; border-color: var(--brand); }
.pvzp-count { flex: none; font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.pvzp-region { flex: 1; min-width: 0; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 14px; }
.pvzp-geo { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 1.5px solid var(--brand); color: var(--brand); border-radius: var(--r-sm); font-weight: 700; font-size: 13px; background: var(--brand-soft); cursor: pointer; transition: all .2s var(--ease); }
.pvzp-geo:hover { background: var(--brand); color: #fff; }
.pvzp-geo:disabled { opacity: .6; cursor: default; }
/* Picker hech qachon konteynerdan kengroq bo'lmasin (gorizontal scroll oldini olish) */
.pvzp { max-width: 100%; }
.pvzp__couriers, .pvzp__bar, .pvzp-searchbar { max-width: 100%; }
/* --- Mobil: elementlar ekranga sig'sin, yon tomonga cho'zilmasin --- */
@media (max-width: 520px) {
  /* kuryer tablari: 3 tasi teng kenglikda, kerak bo'lsa o'raladi */
  .pvzp__couriers { flex-wrap: wrap; gap: 8px; }
  .pvz-courier { flex: 1 1 0; min-width: 0; padding: 9px 6px; }
  .pvz-courier__name { font-size: 13px; }
  /* viloyat + "Yaqinimda" — ustma-ust (stack), to'liq kenglik, matn kesilmaydi */
  .pvzp__bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .pvzp-region { width: 100%; }
  .pvzp-geo { width: 100%; justify-content: center; padding: 11px 14px; }
  /* qidiruv: input to'liq kenglik, hisob ostida */
  .pvzp-searchbar { flex-wrap: wrap; gap: 6px 10px; }
  .pvzp-search { flex: 1 1 100%; }
  .pvzp-count { flex: 1 1 100%; text-align: right; }
}
.pvz-item__km { color: var(--brand); font-weight: 700; font-style: normal; font-size: 11.5px; }
.pvz-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-size: 13.5px; }
.pvz-summary .link { margin-left: auto; font-weight: 700; cursor: pointer; background: none; border: none; }
/* Kabinet — asosiy PVZ */
.cab-pvz { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 20px; }
.cab-pvz__h { font-size: 15px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.cab-pvz__cur { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.cab-pvz__none { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }

/* Kabinet — Telegram ulash */
.cab-tg { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 20px; }
.cab-tg--on { border-color: #2aabee; background: linear-gradient(120deg, #fff 62%, #eaf6fd); }
.cab-tg__head { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.cab-tg__head svg { color: #2aabee; }
.cab-tg__badge { font-size: 11px; font-weight: 700; color: #1c8fc9; background: #e3f3fb; padding: 2px 9px; border-radius: 999px; }
.cab-tg__sub { font-size: 13px; color: var(--ink-2); margin: 8px 0 12px; line-height: 1.5; }
.cab-tg__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cab-tg__spin { width: 18px; height: 18px; border: 2.5px solid #d7eefb; border-top-color: #2aabee; border-radius: 50%; animation: auth-spin .7s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* Kabinet — shaxsiy promokodlar */
.cab-promos { background: linear-gradient(135deg, var(--brand-soft), #fff); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 20px; }
.cab-promos__h { font-size: 15px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; color: var(--brand-ink); }
.cab-promo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px dashed var(--line); }
.cab-promo:first-of-type { border-top: none; }
.cab-promo__code { font-size: 16px; font-weight: 800; letter-spacing: .06em; color: var(--brand); background: #fff; border: 1px dashed var(--brand); border-radius: 8px; padding: 6px 12px; }
.cab-promo__disc { font-weight: 700; color: var(--ink); }
.cab-promo__exp { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.pay-hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.pay-option input:checked + .pay-card { border-color: currentColor; background: color-mix(in srgb, currentColor 8%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 13%, transparent); }

.order-summary { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px; }
.order-summary h4 { font-size: 15px; margin-bottom: 12px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 5px 0; color: var(--ink-2); }
.order-summary__total { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1.5px dashed var(--line); font-size: 16px; font-weight: 700; }
.order-summary__total strong { color: var(--brand-ink); font-weight: 800; }

/* ---------- Auth ---------- */
.auth-pane { gap: 16px; }
.auth-pane::before {
  content: '🧸'; display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 4px;
  font-size: 33px; background: linear-gradient(135deg, var(--brand-soft), var(--brand-soft2)); border-radius: 20px;
}
.auth-error { color: var(--brand-700); font-size: 13.5px; font-weight: 600; text-align: center; background: var(--brand-soft); padding: 11px; border-radius: var(--r-xs); }
.auth-switch { color: var(--ink-2); font-weight: 600; font-size: 14px; text-align: center; padding: 4px; transition: color .2s var(--ease); }
.auth-switch:hover { color: var(--brand-ink); }
.auth-hint { font-size: 14px; color: var(--ink-2); text-align: center; line-height: 1.55; }
.auth-link { color: var(--brand-ink); font-weight: 700; font-size: 13.5px; text-decoration: underline; }
.auth-link:hover { color: var(--brand-700); }
.otp-demo {
  text-align: center; font-size: 14px; color: var(--ink-2); background: var(--honey-soft);
  border: 1px dashed #ffd089; padding: 12px; border-radius: var(--r-xs);
}
.otp-demo b { font-size: 22px; font-weight: 800; letter-spacing: 6px; color: var(--brand-ink); margin-left: 4px; }
.otp-input {
  text-align: center; font-size: 28px !important; font-weight: 800; letter-spacing: 12px;
  font-variant-numeric: tabular-nums; padding-left: 24px !important;
}
.otp-input::placeholder { letter-spacing: 10px; color: #d9d2da; }

/* ---------- Payment ---------- */
.pay-amount { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 24px; }
.pay-buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.btn-pay { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 17px; border-radius: var(--r-sm); font-weight: 700; font-size: 16px; color: #fff; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), filter .2s var(--ease); }
.btn-pay:hover { transform: translateY(-3px); filter: brightness(1.05); }
.btn-pay:active { transform: scale(.98); }
.btn-pay:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-pay--payme { background: var(--mint); box-shadow: 0 12px 26px rgba(20,188,160,.34); }
.btn-pay--click { background: var(--sky); box-shadow: 0 12px 26px rgba(58,166,255,.34); }
.btn-pay__logo { background: rgba(255,255,255,.22); padding: 5px 12px; border-radius: 8px; font-weight: 800; font-size: 14px; }
.pay-demo-note { font-size: 12.5px; color: var(--ink-2); background: var(--honey-soft); border: 1px solid #ffe2b3; padding: 12px 15px; border-radius: var(--r-xs); margin-bottom: 16px; }

/* ---------- Success ---------- */
.success-emoji { font-size: 72px; margin-bottom: 8px; animation: bounce .6s var(--ease-out); }
@keyframes bounce { 0% { transform: scale(0) rotate(-12deg); } 60% { transform: scale(1.18) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
.order-num { margin: 16px 0 24px; color: var(--muted); font-size: 15px; }
.order-num strong { color: var(--brand-ink); font-weight: 800; font-size: 18px; }

/* ============================================================
   HEADER SEARCH (marketplace uslubi)
   ============================================================ */
.hsearch { flex: 1; max-width: 560px; display: flex; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 999px; overflow: hidden; transition: all .2s var(--ease); }
.hsearch:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.hsearch__input { flex: 1; border: none; background: transparent; outline: none; padding: 12px 20px; font-size: 15px; }
.hsearch__btn { width: 52px; background: var(--brand); color: #fff; font-size: 17px; transition: background .2s var(--ease); }
.hsearch__btn:hover { background: var(--brand-ink); }

/* ============================================================
   PRODUCT PAGE (/product/:id)
   ============================================================ */
.pp { padding: 24px 0 50px; }
.pp__loading, .pp__empty { text-align: center; padding: 80px 20px; color: var(--muted); font-size: 18px; }
.pp__empty a { color: var(--brand-ink); font-weight: 700; }
.pp-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.pp-crumbs a:hover { color: var(--brand-ink); }
.pp-crumbs b { color: var(--ink); font-weight: 600; }

.pp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
.pp-gallery { position: sticky; top: 96px; }
.pp-gallery__main { aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; box-shadow: var(--sh-1); }
.pp-gallery__main img, .pp-gallery__main video { width: 100%; height: 100%; object-fit: cover; }
.pp-ph { font-size: 110px; opacity: .4; }
.pp-gallery__thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pp-thumb { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; transition: border-color .2s var(--ease); box-shadow: var(--sh-1); }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-thumb.active { border-color: var(--brand); }
.pp-thumb__play { font-size: 22px; color: var(--brand); }

.pp-info { display: flex; flex-direction: column; gap: 16px; }
.pp-info__cat { font-size: 12px; color: var(--violet); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pp-info__name { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.pp-rating { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.pp-stars { color: var(--honey); letter-spacing: 2px; }
.pp-price { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface-2); padding: 18px 22px; border-radius: var(--r); }
.pp-price__now { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.pp-price__old { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.pp-price__disc { background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; padding: 5px 11px; border-radius: 999px; }
.pp-install { font-size: 14px; color: var(--ink-2); background: var(--violet-soft); padding: 12px 16px; border-radius: var(--r-sm); }
.pp-install b { color: var(--violet); }

.pp-sizes__label { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.pp-sizes__label b { color: var(--ink); }
.pp-sizes__list { display: flex; gap: 10px; flex-wrap: wrap; }

/* Rang variantlari (mahsulot sahifasi) */
.pp-colors { margin-top: 4px; }
.pp-colors__label { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.pp-colors__label b { color: var(--ink); }
.pp-colors__list { display: flex; gap: 10px; flex-wrap: wrap; }
/* Uzum uslubi: rang varianti = o'sha rangning rasmli miniatyurasi */
.pp-color { width: 56px; height: 72px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); padding: 0; overflow: hidden; transition: all .18s var(--ease); cursor: pointer; }
.pp-color:hover { border-color: var(--brand-soft2); }
.pp-color.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pp-color img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pp-color__sw { display: block; width: 100%; height: 100%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* Rang variantlari (mahsulot kartasi) — Uzum uslubi: rasmli miniatyura */
.product-card__colors { display: flex; align-items: center; gap: 5px; margin: 4px 0 2px; flex-wrap: nowrap; }
.pc-color { flex: none; width: 30px; height: 30px; border-radius: 8px; overflow: hidden; padding: 0; border: 1.5px solid var(--line); background: var(--surface-2); cursor: pointer; transition: border-color .15s var(--ease); }
.pc-color img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-color .pc-sw { display: block; width: 100%; height: 100%; }
.pc-color:hover, .pc-color--sel { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.pc-color-more { flex: none; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-left: 1px; }
/* Variant kartochkasidagi rang nomi yorlig'i (Uzum uslubi) */
.product-card__color { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin: 3px 0 2px; }
.pc-color-dot { flex: none; width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
/* eski rang nuqtalari (boshqa joylarda ishlatilishi mumkin) */
.pc-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.pc-dot-more { font-size: 11px; font-weight: 700; color: var(--muted); }
@media (max-width: 500px) {
  .pc-color { width: 27px; height: 27px; border-radius: 7px; }
  .product-card__colors { gap: 4px; }
}

/* Savatdagi rang */
.cart-item__color { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 600; margin: 2px 0; }
.cart-dot { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.pp-size { min-width: 56px; padding: 13px 16px; border-radius: 14px; border: 2px solid var(--line); font-weight: 700; font-size: 15px; background: #fff; transition: all .2s var(--ease); }
.pp-size:hover { border-color: var(--brand-soft2); }
.pp-size.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }

.pp-buy { display: flex; gap: 14px; margin-top: 4px; }
.pp-qty { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 6px; }
.pp-qty button { width: 44px; height: 44px; border-radius: 50%; background: #fff; font-weight: 800; font-size: 20px; box-shadow: var(--sh-1); transition: all .18s var(--ease); }
.pp-qty button:hover { background: var(--brand); color: #fff; }
.pp-qty span { min-width: 34px; text-align: center; font-weight: 800; font-size: 17px; }
.pp-add { flex: 1; }

.pp-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.pp-perk { background: var(--surface-2); border-radius: var(--r-sm); padding: 14px; text-align: center; }
.pp-perk b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.pp-perk span { font-size: 12px; color: var(--muted); }

.pp-desc { margin-top: 50px; max-width: 800px; }
.pp-desc h2 { font-size: 24px; margin-bottom: 16px; }
.pp-desc p { color: var(--ink-2); font-size: 16px; line-height: 1.8; margin-bottom: 24px; }
.pp-chars { width: 100%; border-collapse: collapse; }
.pp-chars td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pp-chars td:first-child { color: var(--muted); width: 40%; }
.pp-chars td:last-child { font-weight: 600; }

/* ============================================================
   MAHSULOT SAHIFASI — Uzum uslubi (FAQAT shu sahifa: body.product-page)
   ============================================================ */
/* 1) Umumiy header bu sahifada yashiriladi (navigatsiya rasm ustidagi strelka orqali) */
body.product-page .header { display: none; }
body.product-page { padding-bottom: 0; }   /* bu sahifada pastki mobil menyu yo'q */
body.product-page .pp { padding-top: 18px; }

/* 2) Rasm ustidagi suzuvchi panel: orqaga (chap) + savat (o'ng).
   (.pp-gallery desktopda sticky, ≤860px'da relative — ikkalasi ham floatbar uchun positioning kontekst beradi) */
.pp-floatbar { position: absolute; top: 14px; left: 0; right: 0; z-index: 6; display: flex; justify-content: space-between; padding: 0 14px; pointer-events: none; }
.pp-back, .pp-cart {
  pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--sh-2); color: var(--ink); transition: background .2s var(--ease), transform .15s var(--ease);
}
.pp-back:hover, .pp-cart:hover { background: #fff; }
.pp-back:active, .pp-cart:active { transform: scale(.93); }
.pp-back svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pp-cart { position: relative; }
.pp-cart svg { width: 21px; height: 21px; }
.pp-cart__n {
  position: absolute; top: -3px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 2px #fff; line-height: 1;
}

/* 3) Slider: pastdagi miniatyuralar olib tashlandi; asosiy rasmda strelka + nuqta + swipe */
.pp-gallery__thumbs { display: none; }
.pp-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--sh-2); color: var(--ink); transition: background .2s var(--ease), transform .15s var(--ease);
}
.pp-nav--prev { left: 12px; }
.pp-nav--next { right: 12px; }
.pp-nav:hover { background: #fff; }
.pp-nav:active { transform: translateY(-50%) scale(.92); }
.pp-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pp-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 5; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.pp-gdot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.65); box-shadow: 0 0 4px rgba(0,0,0,.3); cursor: pointer; pointer-events: auto; transition: all .2s var(--ease); }
.pp-gdot.active { background: #fff; width: 20px; border-radius: 999px; }
/* silliq almashish animatsiyasi (rasm ichi, .pp-gallery__main overflow:hidden) */
.pp-anim-next { animation: pp-in-next .3s var(--ease-out); }
.pp-anim-prev { animation: pp-in-prev .3s var(--ease-out); }
@keyframes pp-in-next { from { opacity: .2; transform: translateX(7%); } to { opacity: 1; transform: none; } }
@keyframes pp-in-prev { from { opacity: .2; transform: translateX(-7%); } to { opacity: 1; transform: none; } }

/* 4) Mobil: rasm ekran kengligini to'liq egallaydi (full-bleed), 3:4 portret */
@media (max-width: 760px) {
  body.product-page .pp { padding-top: 0; }
  body.product-page .pp-crumbs { display: none; }          /* toza ko'rinish uchun mobil'da yashirin */
  .pp-grid { gap: 20px; }
  .pp-gallery { width: 100vw; margin-left: calc(50% - 50vw); }
  .pp-gallery__main { border-radius: 0; box-shadow: none; aspect-ratio: 3 / 4; }
  .pp-gallery__thumbs { margin-top: 0; padding: 12px 16px 0; gap: 10px; }
  .pp-thumb { width: 62px; height: 62px; }
  .pp-floatbar { top: calc(12px + env(safe-area-inset-top)); padding: 0 12px; }
  .pp-info { padding: 0 2px; gap: 14px; }
  .pp-perks { grid-template-columns: 1fr; gap: 8px; }
  .pp-perk { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; }
  .pp-perk b { margin-bottom: 0; }
  .pp-desc { margin-top: 32px; }
}

/* ---------- Reviews (product page) ---------- */
.reviews-sec { padding: 24px 0 10px; }
.rv-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.rv-head h2 { font-size: 26px; }
.rv-head h2 span { color: var(--muted); font-weight: 600; }
.rv-avg { display: flex; align-items: center; gap: 8px; background: var(--surface-2); padding: 8px 16px; border-radius: 999px; }
.rv-avg b { font-size: 22px; font-weight: 800; }
.rv-avg .pp-stars { color: var(--honey); }

.rv-form { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.rv-form h3 { font-size: 18px; }
.rv-stars { display: flex; gap: 4px; }
.rv-star { font-size: 30px; color: var(--line); transition: color .15s var(--ease); line-height: 1; }
.rv-star.on { color: var(--honey); }
.rv-text { padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: 15px; background: #fff; resize: vertical; }
.rv-text:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.rv-photos { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1.5px dashed var(--line); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s var(--ease); }
.rv-photos:hover { border-color: var(--brand); color: var(--brand-ink); }
.rv-form .media-preview { display: flex; flex-wrap: wrap; gap: 10px; }
.rv-form .media-thumb { width: 70px; height: 70px; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line); }
.rv-form .media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rv-form button[type=submit] { align-self: flex-start; }
.rv-note { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 20px; margin-bottom: 24px; color: var(--ink-2); font-weight: 600; max-width: 640px; }
.rv-note a { color: var(--brand-ink); font-weight: 700; }

.rv-list { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.rv-empty { color: var(--muted); padding: 30px 0; }
.rv-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--sh-1); }
.rv-item__head { display: flex; align-items: center; gap: 12px; }
.rv-ava { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--violet)); }
.rv-meta { flex: 1; }
.rv-name { font-weight: 700; font-size: 15px; }
.rv-date { font-size: 12.5px; color: var(--muted); }
.rv-rate { color: var(--honey); letter-spacing: 1px; }
.rv-body { margin: 12px 0 0; color: var(--ink-2); line-height: 1.7; font-size: 15px; }
.rv-imgs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.rv-img { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.rv-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.rv-img:hover img { transform: scale(1.08); }
.rv-reply { margin-top: 14px; background: var(--brand-soft); border-radius: var(--r-sm); padding: 12px 16px; font-size: 14px; color: var(--ink-2); }
.rv-reply b { color: var(--brand-ink); }

/* ---------- Promokod (checkout) ---------- */
.promo-input { display: flex; gap: 8px; }
.promo-input input { flex: 1; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: 15px; background: #fff; }
.promo-input input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.promo-input .btn { flex: none; }
.promo-msg { font-size: 13px; font-weight: 600; margin-top: 2px; }
.promo-msg--ok { color: var(--mint); }
.promo-msg--err { color: var(--brand-700); }
.summary-row--disc { color: var(--mint); font-weight: 700; }
.summary-row--disc b { color: var(--mint); }

/* ---------- Cabinet (/cabinet) ---------- */
.cab { padding: 28px 0 50px; }
.cab__title { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin-bottom: 24px; }
.cab__grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.cab-profile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--sh-1); text-align: center; position: sticky; top: 96px; }
.cab-profile__avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--violet)); }
.cab-profile__name { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.cab-profile__row { font-size: 14px; color: var(--ink-2); margin-bottom: 5px; }
.cab-edit { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.cab-edit__btns { display: flex; gap: 8px; }
.cab-edit__btns .btn { flex: 1; }
.cab__h2 { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.cab-empty { text-align: center; color: var(--muted); padding: 50px 20px; font-size: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.cab-ord { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--sh-1); margin-bottom: 14px; }
.cab-ord__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cab-ord__id { font-weight: 800; font-size: 16px; color: var(--brand-ink); }
.cab-ord__date { font-size: 12.5px; color: var(--muted); }
.cab-badge { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.cab-badge--new { background: var(--violet-soft); color: var(--violet); }
.cab-badge--pending { background: var(--honey-soft); color: #c98a00; }
.cab-ord--pending { border-color: #ffe2b3; background: #fffdf8; }
.cab-pay-btn { background: var(--mint); color: #fff; font-weight: 700; font-size: 12.5px; padding: 8px 18px; border-radius: 999px; transition: filter .2s; }
.cab-pay-btn:hover { filter: brightness(1.06); }
.cab-pending { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--honey-soft); border: 1px solid #ffe2b3; border-radius: var(--r-sm); padding: 11px 15px; margin-bottom: 12px; }
.cab-pending__t { font-size: 14px; color: #9a6700; font-weight: 600; }
.cab-timer { font-variant-numeric: tabular-nums; font-size: 16px; color: var(--brand-700); }
.cab-pending--out { opacity: .55; }
.cab-badge--done { background: var(--mint-soft); color: var(--mint); }
.cab-badge--canceled { background: var(--brand-soft); color: var(--brand-700); }
.cab-badge--pay { background: var(--surface-2); color: var(--muted); }
.cab-ord__items { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.cab-ord__item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ink-2); background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; }
.cab-ord__item-name { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cab-ord__qty { font-style: normal; color: var(--muted); font-weight: 600; }
.cab-ord__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.cab-ord__meta-sz { font-size: 12px; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.cab-ord__meta-clr { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cab-ord__meta-clr .cab-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.cab-ord__row { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--mint); font-weight: 700; }
.cab-ord__total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 16px; font-weight: 700; }
.cab-ord__total b { color: var(--brand-ink); }
/* ---------- KABINET — mobil (professional, ixcham, app-uslubida) ---------- */
@media (max-width: 760px) {
  body.cab-page { padding-bottom: 0; }          /* kabinetda pastki menyu yo'q — ortiqcha bo'shliq olib tashlanadi */
  .cab { padding: 16px 0 36px; }
  .cab__title { font-size: 23px; margin-bottom: 14px; }
  .cab__grid { grid-template-columns: 1fr; gap: 16px; }
  .cab-profile { position: static; padding: 20px 18px; box-shadow: var(--sh-1); }
  .cab-profile__avatar { width: 64px; height: 64px; font-size: 27px; margin-bottom: 10px; }
  .cab-profile__name { font-size: 18px; margin-bottom: 8px; }
  .cab-profile__row { font-size: 13.5px; }
  .cab__h2 { font-size: 18px; margin-bottom: 12px; }
  /* bo'lim kartalari — ixcham va bir xil */
  .cab-pvz, .cab-tg, .cab-promos { padding: 15px 16px; margin-bottom: 14px; }
  .cab-ord { padding: 15px 16px; margin-bottom: 12px; box-shadow: var(--sh-1); }
  .cab-ord__head { gap: 7px 9px; margin-bottom: 11px; }
  .cab-ord__id { font-size: 15px; }
  /* buyurtma qatori — uzun nom va "sharh" tugmasi qotmasdan o'rab olinadi */
  .cab-ord__item { flex-wrap: wrap; gap: 5px 10px; }
  .cab-ord__item > span:first-child { flex: 1 1 auto; min-width: 0; }
  .cab-ord__item-right { flex-wrap: wrap; justify-content: flex-end; gap: 8px 12px; }
  /* to'lov kutilmoqda paneli — tugma to'liq qulay */
  .cab-pending { gap: 10px; }
  .cab-pending__t { font-size: 13px; }
}
/* iOS Safari fokusda kirish maydonini kattalashtiradi (zoom-jank) agar font < 16px.
   Mobilda barcha forma maydonini 16px qilamiz — sahifa sakramaydi, silliq ishlaydi. */
@media (max-width: 760px) {
  .field input, .field select, .field textarea,
  .pvzp-region, .pvzp-search, .rv-text, .filter-sel, .hsearch__input,
  input[type="text"], input[type="tel"], input[type="search"], input[type="email"], input[type="number"], select, textarea {
    font-size: 16px;
  }
}
@media (max-width: 500px) {
  .cab { padding: 12px 0 32px; }
  .cab__title { font-size: 21px; margin-bottom: 12px; }
  .cab-profile { padding: 18px 16px; }
  .cab-pvz, .cab-tg, .cab-promos, .cab-ord { padding: 14px; }
  .cab-ord__item { font-size: 13.5px; }
  .cab-ord__total { font-size: 15px; }
  /* barmoq uchun qulay tap-target (≥40px) */
  .cab-rv-btn, .cab-pay-btn { padding: 9px 15px; min-height: 40px; display: inline-flex; align-items: center; }
  .cab-edit__btns .btn { min-height: 46px; }
  .cab-promo__code { font-size: 15px; }
  .cab-promo__exp { margin-left: 0; flex-basis: 100%; }
}

/* Kabinet — sharh tugmalari */
.cab-ord__item-right { display: inline-flex; align-items: center; gap: 12px; }
.cab-rv-btn { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; transition: all .2s var(--ease); white-space: nowrap; }
.cab-rv-btn:hover { background: var(--brand); color: #fff; }
.cab-rv-done { color: var(--mint); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.rv-prod-name { font-weight: 700; font-size: 15px; color: var(--ink-2); margin-bottom: 16px; padding: 10px 14px; background: var(--surface-2); border-radius: var(--r-sm); }
.modal .media-preview { display: flex; gap: 8px; flex-wrap: wrap; }
.modal .media-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.modal .media-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Sharh bildirishnomasi */
.review-notif {
  position: fixed; bottom: 22px; right: 22px; z-index: 95; max-width: 360px;
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh-4);
  animation: slideUp .4s var(--ease-out);
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.review-notif__ic { font-size: 24px; flex: none; }
.review-notif__txt { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.review-notif__txt b { color: var(--brand-ink); font-size: 15px; }
.review-notif .btn { flex: none; }
.review-notif__close { flex: none; width: 26px; height: 26px; border-radius: 50%; color: var(--muted); font-size: 13px; background: var(--surface-2); display: grid; place-items: center; }
.review-notif__close:hover { background: var(--brand-soft); color: var(--brand); }

/* To'lov kutilmoqda — shoshilinch (amber) ko'rinish + ikki qatorli matn */
.review-notif--pay { border-color: #ffe2b3; background: linear-gradient(180deg, #fffaf0, #fff); }
.review-notif--pay .review-notif__txt { display: flex; flex-direction: column; gap: 2px; }
.review-notif--pay .review-notif__txt b { color: #9a6700; font-size: 14.5px; }
.review-notif--pay .review-notif__txt small { font-size: 12.5px; color: var(--ink-2); }
.review-notif--pay .cab-timer { font-size: 13.5px; }
/* ikkala bildirishnoma bir vaqtda chiqsa — to'lovniki sharh ustida turadi */
#reviewNotif:not([hidden]) ~ #payNotif { bottom: 104px; }

@media (max-width: 760px) {
  /* mobil: pastki menyu ustida turadi */
  .review-notif { left: 14px; right: 14px; max-width: none; bottom: calc(78px + env(safe-area-inset-bottom)); }
  #reviewNotif:not([hidden]) ~ #payNotif { bottom: calc(168px + env(safe-area-inset-bottom)); }
}

.toast-mini { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(140px); background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 999px; font-weight: 600; z-index: 100; transition: transform .4s var(--ease-out); box-shadow: var(--sh-4); }
.toast-mini.show { transform: translateX(-50%) translateY(0); }
.toast-mini a { color: var(--honey); font-weight: 700; margin-left: 6px; }

/* ============================================================
   TOAST bildirishnoma (chiroyli — native alert o'rniga)
   ============================================================ */
.bk-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(180px);
  z-index: 200; display: flex; align-items: center; gap: 13px;
  width: max-content; max-width: min(460px, calc(100vw - 24px));
  background: var(--ink); color: #fff; padding: 13px 16px 13px 18px; border-radius: 16px;
  box-shadow: var(--sh-4); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .45s var(--ease-out), opacity .3s var(--ease);
}
.bk-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.bk-toast__ic { flex: none; font-size: 18px; line-height: 1; }
.bk-toast__msg { flex: 1; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.bk-toast__btn { flex: none; background: var(--brand); color: #fff; font-weight: 700; font-size: 13.5px; padding: 10px 16px; border-radius: 999px; white-space: nowrap; transition: filter .2s var(--ease); }
.bk-toast__btn:hover { filter: brightness(1.08); }
.bk-toast__btn:active { transform: scale(.97); }
.bk-toast--error   { background: #b3261e; }
.bk-toast--success { background: #1b9c66; }
@media (max-width: 760px) {
  .bk-toast { left: 12px; right: 12px; width: auto; max-width: none; transform: translateY(180px);
    bottom: calc(78px + env(safe-area-inset-bottom)); }
  .bk-toast.show { transform: translateY(0); }
}

@media (max-width: 860px) {
  .pp-grid { grid-template-columns: 1fr; gap: 26px; }
  .pp-gallery { position: relative; top: auto; }  /* sticky'ni bekor qilamiz, ammo floatbar uchun relative qoladi */
  .hsearch { order: 5; max-width: none; flex-basis: 100%; }
}

/* ============================================================
   MOBIL PASTKI MENYU (faqat telefon)
   ============================================================ */
.mobnav { display: none; }
.mobnav__item { background: none; border: none; cursor: pointer; }

@media (max-width: 760px) {
  .mobnav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
    background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 6px 4px; padding-bottom: calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgba(36,31,43,.08);
  }
  .mobnav__item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 0; font-size: 10.5px; font-weight: 600; color: var(--muted); transition: color .2s var(--ease);
  }
  .mobnav__item:active { color: var(--brand); }
  .mobnav__ic { font-size: 22px; position: relative; line-height: 1; }
  .mobnav__badge {
    position: absolute; top: -7px; right: -11px; background: var(--brand); color: #fff; font-style: normal;
    font-size: 9px; font-weight: 800; min-width: 16px; height: 16px; border-radius: 999px;
    display: grid; place-items: center; padding: 0 3px; box-shadow: 0 0 0 2px #fff;
  }
  body { padding-bottom: 64px; } /* pastki menyu uchun joy */
  /* savat oynasi butun ekranni qoplaydi (pastki menyu ustida), iOS panel/home-indikatorni hisobga oladi */
  .cart-drawer { height: 100dvh; padding-bottom: 0; }
  .cart-drawer__foot { padding-bottom: calc(20px + env(safe-area-inset-bottom)); position: sticky; bottom: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 860px) {
  .modal__box--wide { max-width: 480px; }
  .pd { grid-template-columns: 1fr; }
  .pd__main { aspect-ratio: 4/3; }
  .pd__info { padding: 26px 24px 28px; }
  .pd__name { font-size: 24px; }
}
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 54px 0 70px; }
  .hero__content p { margin-inline: auto; }
  .hero__art { min-height: 320px; }
  .hero__blob { width: 300px; height: 300px; }
  .hero__emoji { font-size: 130px; }
  .hero__float--1 { left: 4%; } .hero__float--2 { right: 2%; }
  .features { margin-top: 24px; }
  .about__inner { grid-template-columns: 1fr; gap: 34px; }
  .about__art { max-width: 280px; margin-inline: auto; }
  .about__content .section__title, .about__content .section__title::after { text-align: center; margin-inline: auto; }
}
@media (max-width: 760px) {
  /* MOBIL MENYU — to'liq balandlikdagi, mutlaqo OPAQUE panel (header'dan tashqarida) */
  .nav {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(300px, 84%);
    background: #ffffff; box-shadow: var(--sh-4); z-index: 90;
    padding: 14px 16px calc(20px + env(safe-area-inset-bottom));
    transform: translateX(100%); transition: transform .35s var(--ease-out);
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
  .nav__title { font-size: 17px; font-weight: 800; color: var(--ink); }
  .nav__close { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; color: var(--ink-2); background: var(--surface-2); display: grid; place-items: center; }
  .nav__close:active { background: var(--brand-soft); color: var(--brand-ink); }
  .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(36,31,43,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); z-index: 85; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease); }
  .nav-overlay.open { opacity: 1; visibility: visible; }
  .catbar { display: none; }
  .hsearch { order: 3; flex-basis: 100%; max-width: none; }
  .header__inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .nav a { font-size: 16px; font-weight: 600; color: var(--ink); padding: 15px 14px; border-radius: 12px; min-height: 50px; display: flex; align-items: center; opacity: 1; }
  .nav a:hover, .nav a:active { background: var(--brand-soft); color: var(--brand-ink); }
  .burger { display: grid; place-items: center; }
  .account-btn span:last-child { display: none; }
  .account-btn { padding: 10px; max-width: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding: 50px 0 30px; }
  .section { padding: 58px 0; }
  .modal__box { padding: 28px 22px; }
  .hero__float { font-size: 12px; padding: 9px 13px; }
}
/* ============================================================
   MOBIL (iPhone / ≤500px) — to'liq moslashtirilgan
   ============================================================ */
@media (max-width: 500px) {
  /* --- HEADER: zich va tartibli, elementlar tegmasin --- */
  .header__inner { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .logo { font-size: 18px; gap: 8px; }
  .logo__icon { width: 36px; height: 36px; font-size: 18px; border-radius: 12px; }
  .header__actions { gap: 6px; }
  .lang-switch { padding: 3px; }
  .lang-btn { padding: 0 11px; min-height: 40px; display: flex; align-items: center; font-size: 12px; }
  .account-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .cart-toggle, .burger { width: 44px; height: 44px; }
  .hsearch__input { padding: 13px 16px; font-size: 16px; } /* iOS zoom bo'lmasin: ≥16px */
  .hsearch__btn { width: 50px; }

  /* --- AKKAUNT DROPDOWN: doim ekran ichida (to'liq kenglik) --- */
  .account-menu {
    position: fixed; top: 62px; left: 12px; right: 12px; width: auto; max-width: none;
  }
  .account-menu::before { display: none; }

  /* --- KARTOCHKALAR va bo'limlar ekranga sig'sin --- */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card__body { padding: 12px; }
  .product-card__name { font-size: 14px; }
  .product-card__add { width: 46px; height: 46px; border-radius: 14px; }
  .section { padding: 44px 0; }
  .section__title { font-size: clamp(22px, 6.5vw, 30px); }
  .features { padding: 18px 0 2px; }
  .feature { padding: 16px 16px; gap: 13px; }
  .modal__box { padding: 24px 18px; }

  /* --- TAP-TARGET: barmoq uchun ≥44px --- */
  .qty-control button { width: 38px; height: 38px; font-size: 18px; }
  .qty-control span { min-width: 30px; font-size: 15px; }
  /* --- Savat oynasi: mahsulot qatori va tugmalar qulay --- */
  .cart-drawer { width: min(440px, 100%); }
  .cart-drawer__body { padding: 8px 16px; }
  .cart-drawer__head, .cart-drawer__foot { padding-left: 16px; padding-right: 16px; }
  .cart-item { grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; }
  .cart-item__img { width: 64px; height: 64px; }
  .cart-size { min-height: 40px; font-size: 14px; }
  .cart-item__remove { font-size: 13px; padding: 8px 4px; min-height: 36px; }
  .cart-total strong { font-size: 22px; }
  .cart-empty { padding: 48px 20px; }
  .nav a { min-height: 48px; display: flex; align-items: center; }
  .account-menu__item { padding: 13px 12px; min-height: 48px; }
  .btn--sm { padding: 11px 16px; }

  /* --- Boshqa kichik tuzatishlar --- */
  .pay-options { grid-template-columns: 1fr; }
  .hero__content h1 { font-size: 32px; }
  .hero__float--3 { display: none; }
  .toast-mini { left: 12px; right: 12px; transform: translateY(140px); width: auto; text-align: center; }
  .toast-mini.show { transform: translateY(0); }
}

/* Juda tor ekran (≤360px) — kartochkalar 1 ustun */
@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
}
