/* Laminated Glasses — ommaviy sayt uslublari.
   Rang: chuqur dengiz ko'ki + shaffof oyna oq-moviysi, harakatga chorlovchi
   elementlarda iliq amber. Og'ir effektlar ishlatilmaydi: sekin qurilmalarda
   ham ravon ishlashi uchun faqat transform va opacity animatsiyalanadi. */

:root {
  --white: #ffffff;
  --ice: #eef5fa;
  --ice-2: #dceaf5;
  --sky: #2e86c8;
  --sky-deep: #12557f;
  --sky-soft: #8cc4e8;
  --navy: #06263d;
  --navy-soft: #3c6484;
  --amber: #e0983a;
  --amber-soft: #fbf0dd;
  --line: rgba(6, 38, 61, 0.12);
  --line-strong: rgba(6, 38, 61, 0.22);
  --glass-bg: rgba(255, 255, 255, 0.78);
  --radius-lg: 24px;
  --radius-md: 15px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(6, 38, 61, 0.1);
  --shadow-lift: 0 18px 40px rgba(6, 38, 61, 0.18);
  --font-head: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Sahifalar orasidagi o'tish — brauzer qo'llab-quvvatlasa (Chrome/Android
   asosiy brauzeri shular jumlasidan), bosh sahifa → mahsulotlar → yangiliklar
   kabi o'tishlar to'liq qayta yuklanish o'rniga silliq kross-feyd bilan
   almashadi. Qo'llab-quvvatlamaydigan brauzerlarda oddiy o'tish ishlayveradi,
   hech narsa buzilmaydi. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: lg-page-out 0.22s var(--ease) both;
}

::view-transition-new(root) {
  animation: lg-page-in 0.28s var(--ease) both;
}

@keyframes lg-page-out {
  to { opacity: 0; transform: translateY(-6px); }
}

@keyframes lg-page-in {
  from { opacity: 0; transform: translateY(10px); }
}

/* Sarlavha panel sahifadan-sahifaga "sakramasdan" o'zi bilan o'tadi. */
.site-header {
  view-transition-name: site-header;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.wrap {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Umumiy tugmalar — admin panel ham shu klasslardan foydalanadi */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease),
    box-shadow 0.16s var(--ease), color 0.16s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--sky-deep);
  box-shadow: var(--shadow-soft);
}

.btn-accent {
  background: var(--amber);
  color: #29190a;
}

.btn-accent:hover:not(:disabled) {
  background: #cf8a2e;
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--ice);
}

.btn-sm {
  padding: 9px 17px;
  font-size: 0.83rem;
}

.btn-block {
  width: 100%;
}

/* Brend belgisi */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand small {
  font-family: var(--font-body);
  font-size: 0.67rem;
  font-weight: 500;
  color: var(--navy-soft);
  letter-spacing: 0.01em;
}

/* Ism so'raydigan kirish oynasi */

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: linear-gradient(160deg, #06263d 0%, #12557f 55%, #2e86c8 100%);
}

.gate.open {
  display: flex;
}

.gate-card {
  width: min(430px, 100%);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  box-shadow: 0 30px 70px rgba(2, 20, 34, 0.45);
}

.gate-card .brand-mark {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
}

.gate-card h1 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.gate-card p {
  margin: 0 0 20px;
  color: var(--navy-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.gate-google {
  display: flex;
  justify-content: center;
  min-height: 44px;
  margin: 4px 0 0;
  transition: opacity 0.16s var(--ease);
}

.gate-google.busy {
  opacity: 0.5;
  pointer-events: none;
}

.gate-cancel {
  display: block;
  margin: 0 auto;
  padding: 8px 14px;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.86rem;
  color: var(--navy-soft);
  text-decoration: underline;
  cursor: pointer;
}

.gate-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--navy);
  outline: none;
  transition: border-color 0.16s var(--ease);
}

.gate-input:focus {
  border-color: var(--sky);
}

.gate-error {
  min-height: 20px;
  margin: 8px 0 12px;
  font-size: 0.84rem;
  color: #b3413f;
}

.gate-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--navy-soft);
}

/* Sarlavha paneli */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}


.header-side {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* Scroll bilan ochiladigan yengil animatsiya — foydalanuvchi pastga
   tushganda kartalar ravon paydo bo'ladi. */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: var(--ice);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  border: none;
  cursor: pointer;
}

.user-chip[hidden] {
  display: none;
}

.user-chip.static {
  cursor: default;
}

.user-chip .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  overflow: hidden;
}

.user-chip .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.16s var(--ease);
}

.cart-btn:hover {
  background: var(--ice);
}

.cart-btn svg {
  width: 18px;
  height: 18px;
}

.cart-count {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--amber);
  color: #29190a;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.cart-count[hidden] {
  display: none;
}

/* Bosh ekran */

.hero {
  padding: 74px 0 84px;
  background: linear-gradient(180deg, var(--ice) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  font-weight: 600;
}

.hero p {
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--navy-soft);
  max-width: 48ch;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-stats strong {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-stats span {
  font-size: 0.8rem;
  color: var(--navy-soft);
}

/* Oyna qatlamlari — CSS bilan chizilgan, hech qanday tashqi rasm yo'q */

.glass-visual {
  position: relative;
  aspect-ratio: 4 / 4.4;
  display: grid;
  place-items: center;
}

.pane {
  position: absolute;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lift);
}

.pane-back {
  width: 58%;
  height: 64%;
  top: 6%;
  left: 2%;
  background: linear-gradient(150deg, #cfe6f6 0%, #9fc9e8 100%);
  transform: rotate(-7deg);
}

.pane-front {
  width: 66%;
  height: 78%;
  right: 3%;
  bottom: 3%;
  background: linear-gradient(160deg, #3f93cf 0%, #12557f 70%, #06263d 100%);
  overflow: hidden;
}

.pane-front::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: radial-gradient(
      120% 90% at 20% 15%,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(255, 255, 255, 0) 55%
    );
}

.pane-front::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 45%;
  height: 190%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(18deg);
  animation: sweep 7s var(--ease) 1.2s infinite;
}

@keyframes sweep {
  0%,
  72% {
    transform: translateX(0) rotate(18deg);
  }
  100% {
    transform: translateX(340%) rotate(18deg);
  }
}

.glass-badge {
  position: absolute;
  bottom: 9%;
  left: 0;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  border-left: 3px solid var(--amber);
}

/* Katalog */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.section-head p {
  margin: 0;
  color: var(--navy-soft);
  font-size: 0.95rem;
}

.catalog {
  padding: 72px 0;
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--navy);
  outline: none;
  transition: border-color 0.16s var(--ease);
}

.search-box input:focus {
  border-color: var(--sky);
}

.search-box svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--navy-soft);
}

.filters {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 26px;
  scrollbar-width: thin;
}

.filters::-webkit-scrollbar {
  height: 4px;
}

.filters::-webkit-scrollbar-thumb {
  background: var(--ice-2);
  border-radius: 4px;
}

.filter-pill {
  flex: none;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.filter-pill:hover {
  border-color: var(--sky-soft);
  color: var(--navy);
}

.filter-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.product-card:hover {
  border-color: var(--sky-soft);
  box-shadow: var(--shadow-soft);
}

.product-media {
  aspect-ratio: 4 / 3;
  background: var(--ice);
  cursor: pointer;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media .no-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--sky-soft);
}

.product-media .no-image svg {
  width: 40px;
  height: 40px;
}

.product-body {
  padding: 17px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.product-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sky-deep);
  background: var(--ice);
  padding: 4px 10px;
  border-radius: 999px;
}

.product-name {
  font-family: var(--font-head);
  font-size: 1.07rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  cursor: pointer;
}

.product-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--navy-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-foot {
  margin-top: auto;
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  font-family: var(--font-head);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-price span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-soft);
  margin-left: 4px;
}

.state-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: var(--navy-soft);
  font-size: 0.93rem;
}

.skeleton {
  height: 300px;
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, var(--ice) 30%, #f7fbfe 50%, var(--ice) 70%);
  background-size: 250% 100%;
  animation: shimmer 1.3s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -250% 0;
  }
}

/* Qanday ishlaydi — haqiqiy ketma-ketlik, shu sabab raqamlangan */

.steps {
  padding: 72px 0;
  background: var(--navy);
  color: var(--white);
}

.steps .section-head h2 {
  color: var(--white);
}

.steps .section-head p {
  color: var(--sky-soft);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.step {
  background: var(--navy);
  padding: 26px 22px 28px;
}

.step b {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1rem;
  margin: 0 0 7px;
  font-weight: 700;
}

.step p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.6;
  color: #b9d4e8;
}

/* Qoidalar */

.rules {
  padding: 72px 0;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.rule {
  border: 1px solid var(--line);
  border-left: 3px solid var(--sky);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  background: var(--white);
}

.rule.highlight {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.rule h3 {
  font-size: 0.98rem;
  margin: 0 0 7px;
  font-weight: 700;
}

.rule p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--navy-soft);
}

/* Xizmatlar */

.services {
  padding: 72px 0;
  background: var(--ice);
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.service-card:hover {
  border-color: var(--sky-soft);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  margin-bottom: 16px;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.03rem;
  margin: 0 0 8px;
  font-weight: 600;
}

.service-card p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--navy-soft);
}


/* Biz haqimizda */

.about {
  padding: 72px 0;
  background: var(--navy);
  color: var(--white);
}

.about .section-head h2 {
  color: var(--white);
}

.about .section-head p {
  color: var(--sky-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text {
  margin: 0 0 14px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: #cfe3f1;
}

.about-stats {
  display: grid;
  gap: 16px;
}

.about-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.about-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 4px;
}

.about-stat span {
  font-size: 0.85rem;
  color: #b9d4e8;
}

@media (max-width: 760px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Yangiliklar */

.news {
  padding: 72px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--white);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.news-card:hover {
  border-color: var(--sky-soft);
  box-shadow: var(--shadow-soft);
}

.news-date {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sky-deep);
  background: var(--ice);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.news-card h3 {
  font-family: var(--font-head);
  font-size: 1.02rem;
  margin: 0 0 8px;
  font-weight: 600;
}

.news-card p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--navy-soft);
}

.news-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 0;
  color: var(--navy-soft);
  font-size: 0.9rem;
}

/* Aloqa */

.contact {
  padding: 72px 0;
  background: var(--ice);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--amber-soft);
  color: var(--sky-deep);
  margin-bottom: 16px;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-card h3 {
  font-family: var(--font-head);
  font-size: 1.02rem;
  margin: 0 0 8px;
  font-weight: 600;
}

.contact-card p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--navy-soft);
}

/* Pastki qism */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: var(--ice);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-note {
  font-size: 0.82rem;
  color: var(--navy-soft);
}

/* Savat paneli */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 38, 61, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 130;
  width: min(430px, 100%);
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.26s var(--ease);
  box-shadow: -20px 0 50px rgba(6, 38, 61, 0.22);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
}

.icon-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.icon-close:hover {
  background: var(--ice);
}

.drawer-notice {
  margin: 16px 22px 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #6b4a16;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-row {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 13px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-thumb {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-sm);
  background: var(--ice);
  object-fit: cover;
}

.cart-info h4 {
  margin: 0 0 3px;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.3;
}

.cart-info .meta {
  font-size: 0.76rem;
  color: var(--navy-soft);
  margin: 0 0 9px;
}

.cart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}

.qty button {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--white);
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
}

.qty button:hover {
  background: var(--ice);
}

.qty span {
  min-width: 30px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-line-total {
  font-weight: 700;
  font-size: 0.9rem;
}

.link-danger {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.78rem;
  color: #b3413f;
  cursor: pointer;
  font-family: inherit;
}

.link-danger:hover {
  text-decoration: underline;
}

.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 18px 22px 22px;
}

.drawer-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.drawer-total span {
  color: var(--navy-soft);
  font-size: 0.88rem;
}

.drawer-total strong {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.drawer-empty {
  text-align: center;
  color: var(--navy-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 50px 10px;
}

/* Modallar */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(6, 38, 61, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  position: relative;
  width: min(600px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

.modal-media {
  aspect-ratio: 16 / 10;
  background: var(--ice);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-media .no-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--sky-soft);
}

.modal-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.modal-body h3 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.modal-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--navy-soft);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

/* Rasmiylashtirish natijasi — Telegram butun saytda faqat shu yerda */

.checkout-modal {
  width: min(520px, 100%);
  padding: 30px 28px 28px;
  text-align: center;
}

.checkout-modal .code {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--ice);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  margin-bottom: 16px;
}

.checkout-modal h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.checkout-modal p {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--navy-soft);
}

.order-preview {
  text-align: left;
  background: var(--ice);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--navy);
  max-height: 190px;
  overflow-y: auto;
  margin-bottom: 18px;
}

/* Bildirishnoma */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  transform: translate(-50%, 24px);
  background: var(--navy);
  color: var(--white);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  max-width: 88vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  background: #a5332f;
}

/* Moslashuvchanlik */

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .glass-visual {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 48px 0 56px;
  }
  .hero-stats {
    gap: 26px;
  }
  .catalog,
  .steps,
  .rules {
    padding: 52px 0;
  }
  .cart-btn span.label {
    display: none;
  }
  .user-chip .name {
    display: none;
  }
  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Subtle homepage motion — preserves the original visual identity */
.hero h1,.hero p,.hero-actions,.hero-stats { animation: lg-rise .75s cubic-bezier(.2,.7,.2,1) both; }
.hero p { animation-delay:.10s } .hero-actions { animation-delay:.18s } .hero-stats { animation-delay:.26s }
.glass-visual { animation: lg-float 6s ease-in-out infinite; }
@keyframes lg-rise { from { opacity:0; transform:translateY(18px) } to {opacity:1;transform:translateY(0)} }
@keyframes lg-float { 0%,100% { transform:translateY(0) } 50% { transform:translateY(-9px) } }
@media (prefers-reduced-motion: reduce) { .hero h1,.hero p,.hero-actions,.hero-stats,.glass-visual {animation:none!important} }

/* Modern polished motion layer — original blue/ice/amber palette retained */
@keyframes lg-rise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@keyframes lg-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-12px) rotate(1deg)}}
@keyframes lg-shimmer{0%{transform:translateX(-140%) skewX(-18deg)}100%{transform:translateX(220%) skewX(-18deg)}}
.hero{position:relative;overflow:hidden;background:radial-gradient(ellipse at 82% 35%,rgba(140,196,232,.30),transparent 42%),linear-gradient(125deg,#fff 15%,#eef5fa 100%)}
.hero:before{content:"";position:absolute;width:340px;height:340px;border:1px solid rgba(46,134,200,.13);border-radius:50%;right:-110px;top:-150px;box-shadow:0 0 0 35px rgba(46,134,200,.035),0 0 0 75px rgba(46,134,200,.025);pointer-events:none}
.hero .wrap>div:first-child{animation:lg-rise .8s both}.glass-visual{animation:lg-float 7s ease-in-out infinite;filter:drop-shadow(0 25px 30px rgba(6,38,61,.13))}.hero h1{letter-spacing:-.045em}.hero .btn-primary{box-shadow:0 10px 24px rgba(6,38,61,.16)}
.service-card,.step,.contact-card,.product-card,.about-stats,.news-card,.rule{transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}.service-card:hover,.step:hover,.contact-card:hover,.product-card:hover,.news-card:hover{transform:translateY(-6px);box-shadow:0 20px 45px rgba(6,38,61,.12)}
/* Sensorli ekranlarda bosilganda darhol qisqa "bosildi" javobi */
@media (hover:none){.service-card:active,.step:active,.contact-card:active,.product-card:active,.news-card:active,.rule:active{transform:scale(.97);box-shadow:0 8px 18px rgba(6,38,61,.1)}}
.about{position:relative;overflow:hidden;background:linear-gradient(135deg,#f7fbfe,#eef5fa)}.about:after{content:"";position:absolute;width:260px;height:260px;border:1px solid rgba(46,134,200,.15);border-radius:50%;right:-90px;bottom:-120px;box-shadow:0 0 0 28px rgba(46,134,200,.035),0 0 0 58px rgba(46,134,200,.025);pointer-events:none}.about-grid{position:relative;z-index:1}.about-text{line-height:1.9}
/* Business-ready contact page */
.contact-modern{padding:76px 0 90px;background:linear-gradient(145deg,#f7fbfe 0%,#fff 55%,#eef5fa 100%);overflow:hidden}.contact-intro{max-width:720px;margin-bottom:38px;animation:lg-rise .65s both}.contact-intro .eyebrow,.visual-tag{font-size:.72rem;font-weight:800;letter-spacing:.18em;color:var(--sky);text-transform:uppercase}.contact-intro h1{font-family:var(--font-head);font-size:clamp(2.2rem,5vw,4rem);line-height:1.08;letter-spacing:-.045em;margin:15px 0}.contact-intro h1 em{color:var(--sky);font-style:normal}.contact-intro p{max-width:590px;color:var(--navy-soft);line-height:1.8}.contact-modern-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:28px;align-items:stretch}.contact-details{display:flex;flex-direction:column;gap:13px}.contact-method{display:flex;align-items:center;gap:16px;padding:20px 22px;background:rgba(255,255,255,.86);border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 25px rgba(6,38,61,.045);transition:transform .25s,box-shadow .25s}.contact-method:hover{transform:translateX(5px);box-shadow:var(--shadow-soft)}.contact-method>span:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0}.contact-method small{font-size:.68rem;letter-spacing:.12em;color:var(--navy-soft);font-weight:700}.contact-method strong{font-size:1rem;overflow-wrap:anywhere}.contact-method b{margin-left:auto;color:var(--sky);font-size:1.2rem}.cm-icon{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:14px;background:var(--ice);color:var(--sky-deep);font-size:1.45rem}.social-panel{padding:23px;background:#fff;border:1px solid var(--line);border-radius:18px;margin-top:5px}.social-panel h3{margin:0 0 6px;font-size:1rem}.social-panel p{margin:0 0 17px;color:var(--navy-soft);font-size:.88rem;line-height:1.6}.social-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.social-btn{display:flex;align-items:center;justify-content:center;gap:7px;flex-direction:column;padding:13px 6px;border:1px solid var(--line);border-radius:13px;font-size:.74rem;font-weight:700;transition:transform .22s,background .22s}.social-btn:hover{transform:translateY(-4px);background:var(--ice)}.social-btn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.instagram{color:#bd397c}.telegram{color:#168bc4}.youtube{color:#e43131}.gmail{color:#c34b3d}.contact-visual{position:relative;min-height:440px;padding:28px;border-radius:24px;background:linear-gradient(145deg,#06263d,#12557f 60%,#2e86c8);color:#fff;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 24px 55px rgba(6,38,61,.18);animation:lg-rise .8s .12s both}.visual-glow{position:absolute;width:300px;height:300px;right:-80px;top:-90px;border-radius:50%;background:rgba(140,196,232,.22);filter:blur(3px)}.visual-tag{color:#b9e2fb;position:relative}.visual-glass{position:relative;min-height:240px;border:1px solid rgba(255,255,255,.5);border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.04));backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;text-align:center;font-family:var(--font-head);font-size:clamp(1.6rem,3vw,2.5rem);line-height:1.3;box-shadow:inset 0 0 35px rgba(255,255,255,.08),0 18px 45px rgba(0,0,0,.12);overflow:hidden}.visual-glass em{color:#b9e2fb;font-style:normal}.glass-shine{position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.17) 48%,transparent 60%);animation:lg-shimmer 6s ease-in-out infinite}.visual-bottom{position:relative;display:flex;justify-content:space-between;gap:12px;font-size:.78rem;color:#d7eaf7}.visual-bottom span:first-child{font-weight:800;letter-spacing:.08em}
@media(max-width:760px){.contact-modern{padding:52px 0}.contact-modern-grid{grid-template-columns:1fr}.contact-visual{min-height:350px}.social-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}.contact-method{padding:16px}.hero:before{opacity:.5}}
@media(prefers-reduced-motion:reduce){.glass-visual,.glass-shine{animation:none!important}}


/* Homepage refresh — same blue/ice palette, more premium editorial layout */
.hero{isolation:isolate;padding-top:clamp(76px,9vw,126px);padding-bottom:clamp(76px,9vw,118px);background:radial-gradient(ellipse at 78% 40%,rgba(140,196,232,.38),transparent 39%),linear-gradient(120deg,#fff 0%,#f1f7fb 58%,#e8f2f9 100%)}
.hero:after{content:"";position:absolute;inset:0;z-index:-1;opacity:.24;background-image:linear-gradient(rgba(18,85,127,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(18,85,127,.055) 1px,transparent 1px);background-size:46px 46px;mask-image:linear-gradient(90deg,transparent,#000 72%)}
.hero .wrap{gap:clamp(30px,6vw,90px);align-items:center}.hero-copy{max-width:650px}.hero-eyebrow{display:inline-flex;align-items:center;gap:10px;margin-bottom:22px;padding:9px 14px;border:1px solid rgba(18,85,127,.13);border-radius:999px;background:rgba(255,255,255,.72);color:#12557f;font-size:.72rem;font-weight:800;letter-spacing:.12em;box-shadow:0 8px 26px rgba(6,38,61,.045)}.eyebrow-dot{width:7px;height:7px;border-radius:50%;background:#4b9dce;box-shadow:0 0 0 5px rgba(75,157,206,.13)}.hero h1{max-width:650px;font-size:clamp(2.65rem,5.2vw,5rem);line-height:1.02;letter-spacing:-.065em}.hero h1 em{font-family:Fraunces,serif;font-weight:500;color:#236f9e;font-style:italic;letter-spacing:-.045em}.hero p{max-width:570px;line-height:1.85;font-size:clamp(1rem,1.35vw,1.12rem);color:#4c6475}.hero-actions{gap:13px;margin-top:28px}.hero .btn{border-radius:14px;padding:15px 22px}.hero .btn-primary{box-shadow:0 12px 28px rgba(18,85,127,.2)}.hero-stats{margin-top:35px;gap:0}.hero-stats div{padding:0 23px;border-left:1px solid rgba(18,85,127,.14)}.hero-stats div:first-child{padding-left:0;border-left:0}.hero-stats strong{font-size:1.65rem;color:#12557f}.hero-stats span{font-size:.75rem;letter-spacing:.015em}.hero-showcase{position:relative;min-height:410px;display:grid;place-items:center;isolation:isolate}.glass-visual{position:relative;z-index:2;width:min(100%,430px);min-height:370px}.pane{border-radius:28px!important}.pane-front{box-shadow:inset 0 0 0 1px rgba(255,255,255,.9),0 28px 65px rgba(18,85,127,.22)!important}.glass-badge{display:flex;align-items:center;gap:9px;right:-15px;bottom:28px;padding:13px 17px;border:1px solid rgba(255,255,255,.8);border-radius:14px;background:rgba(255,255,255,.9);box-shadow:0 15px 40px rgba(6,38,61,.12);backdrop-filter:blur(12px);font-weight:700;color:#164e70}.badge-check{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e0f1fa;color:#176a9e}.showcase-orbit{position:absolute;border:1px solid rgba(35,111,158,.13);border-radius:50%;pointer-events:none}.orbit-one{width:460px;height:460px;animation:orbit-pulse 7s ease-in-out infinite}.orbit-two{width:550px;height:550px;border-style:dashed;animation:orbit-rotate 42s linear infinite}.showcase-caption{position:absolute;z-index:3;bottom:-4px;left:2%;display:flex;align-items:center;gap:10px;color:#6b8798;font-size:.78rem;font-weight:700;letter-spacing:.05em}.caption-line{display:inline-block;width:30px;height:1px;background:#4b9dce}.about{padding-top:90px;padding-bottom:90px}.about-grid{padding:clamp(24px,5vw,60px);border:1px solid rgba(18,85,127,.08);border-radius:28px;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(236,246,252,.92));box-shadow:0 22px 70px rgba(18,85,127,.07)}.about .section-head h2{font-size:clamp(2rem,3.5vw,3rem);letter-spacing:-.045em}.about-stats{gap:12px}.about-stat{border:1px solid rgba(18,85,127,.09);border-radius:18px;background:#fff;padding:22px;box-shadow:0 12px 30px rgba(18,85,127,.045)}
@keyframes orbit-pulse{0%,100%{transform:scale(.97);opacity:.6}50%{transform:scale(1.04);opacity:1}}@keyframes orbit-rotate{to{transform:rotate(360deg)}}
@media(max-width:760px){.hero{padding-top:58px;padding-bottom:65px}.hero-showcase{min-height:300px;margin-top:12px}.glass-visual{min-height:290px;width:88%}.orbit-one{width:310px;height:310px}.orbit-two{width:365px;height:365px}.glass-badge{right:-10px;bottom:12px;font-size:.72rem}.showcase-caption{bottom:-12px;left:8%}.hero-stats div{padding:0 12px}.hero-stats strong{font-size:1.35rem}.hero-eyebrow{font-size:.62rem}.about-grid{border-radius:20px}}
@media(prefers-reduced-motion:reduce){.orbit-one,.orbit-two{animation:none!important}}

/* Homepage refresh — preserve the existing blue / ice / amber brand palette */
body:has(.hero) .hero{position:relative;isolation:isolate;overflow:hidden;padding:clamp(76px,10vw,132px) 0 clamp(80px,9vw,118px);background:radial-gradient(ellipse at 82% 24%,rgba(140,196,232,.34),transparent 34%),linear-gradient(125deg,#f7fbfe 0%,#edf6fc 48%,#e4f1f9 100%)}
body:has(.hero) .hero:before{content:"";position:absolute;z-index:-1;width:520px;height:520px;border:1px solid rgba(18,85,127,.10);border-radius:50%;right:-150px;top:-245px;box-shadow:0 0 0 42px rgba(35,111,158,.035),0 0 0 92px rgba(35,111,158,.025);animation:homeHalo 12s ease-in-out infinite alternate}
body:has(.hero) .hero:after{content:"";position:absolute;z-index:-1;width:230px;height:230px;left:-115px;bottom:-135px;border-radius:50%;background:rgba(140,196,232,.18);filter:blur(2px)}
body:has(.hero) .hero .wrap{position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:clamp(36px,6vw,90px);align-items:center}
body:has(.hero) .hero-copy{animation:homeRise .8s cubic-bezier(.2,.7,.2,1) both}
body:has(.hero) .hero h1{font-size:clamp(3rem,6vw,5.7rem);line-height:.99;letter-spacing:-.075em;max-width:720px;margin:0 0 24px}
body:has(.hero) .hero h1 em{color:#236f9e;text-shadow:0 8px 30px rgba(35,111,158,.10)}
body:has(.hero) .hero p{font-size:clamp(1rem,1.35vw,1.15rem);max-width:550px;line-height:1.9}
body:has(.hero) .hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:32px}
body:has(.hero) .hero .btn{padding:16px 23px;border-radius:15px;transition:transform .25s,box-shadow .25s}
body:has(.hero) .hero .btn:hover{transform:translateY(-3px);box-shadow:0 16px 32px rgba(18,85,127,.16)}
body:has(.hero) .hero-showcase{min-height:460px;animation:homeFloat 7s ease-in-out infinite}
body:has(.hero) .glass-visual{width:min(100%,460px);min-height:410px;filter:drop-shadow(0 28px 35px rgba(18,85,127,.13))}
body:has(.hero) .pane-front{background:linear-gradient(145deg,rgba(255,255,255,.84),rgba(140,196,232,.35))!important;border:1px solid rgba(255,255,255,.95);backdrop-filter:blur(10px)}
body:has(.hero) .pane-back{border:1px solid rgba(35,111,158,.18);background:linear-gradient(145deg,rgba(220,234,245,.65),rgba(255,255,255,.35))!important}
body:has(.hero) .hero-stats{display:flex;flex-wrap:wrap;margin-top:42px;padding-top:22px;border-top:1px solid rgba(18,85,127,.12)}
body:has(.hero) .hero-stats div{padding:0 22px;border-left:1px solid rgba(18,85,127,.14)}
body:has(.hero) .hero-stats div:first-child{padding-left:0;border-left:0}
body:has(.hero) .hero-stats strong{font-size:1.8rem;color:#12557f}
body:has(.hero) .hero-stats span{display:block;font-size:.75rem;color:#637e90}
@keyframes homeRise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@keyframes homeFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes homeHalo{from{transform:scale(.96) rotate(0)}to{transform:scale(1.06) rotate(12deg)}}
@media(max-width:850px){body:has(.hero) .hero .wrap{grid-template-columns:1fr}body:has(.hero) .hero-showcase{min-height:320px;order:-1}body:has(.hero) .glass-visual{min-height:300px;width:80%}body:has(.hero) .hero h1{font-size:clamp(2.8rem,10vw,4.4rem)}}
@media(prefers-reduced-motion:reduce){body:has(.hero) .hero-copy,body:has(.hero) .hero-showcase,body:has(.hero) .hero:before{animation:none!important;transition:none!important}}

/* Multi-image product gallery */
.product-gallery{position:relative;width:100%;height:100%;overflow:hidden;background:#f7f5f1;cursor:zoom-in}
.product-gallery .gallery-shot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.025);transition:opacity .9s ease,transform 1.4s ease}
.product-gallery .gallery-shot.active{opacity:1;transform:scale(1)}
.gallery-count{position:absolute;right:10px;bottom:10px;padding:4px 9px;border-radius:20px;background:#111a;color:white;font-size:11px}
@media(prefers-reduced-motion:reduce){.product-gallery .gallery-shot{transition:none}}

/* Product detail gallery: navigation, thumbnails and full-screen zoom */
.detail-gallery{position:relative;width:100%;aspect-ratio:4/3;background:#f5f4f1;display:flex;align-items:center;justify-content:center;overflow:hidden}
.detail-main-image{width:100%;height:100%;object-fit:contain;cursor:zoom-in;transition:opacity .25s ease}
.detail-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;border:0;border-radius:50%;width:42px;height:42px;background:#ffffffdf;color:#182532;font-size:30px;line-height:1;cursor:pointer;box-shadow:0 3px 14px #0002}
.detail-arrow.prev{left:12px}.detail-arrow.next{right:12px}
.detail-counter{position:absolute;right:12px;bottom:12px;background:#101820c9;color:white;padding:5px 10px;border-radius:20px;font-size:12px}
.detail-zoom{position:absolute;left:12px;bottom:12px;border:0;border-radius:20px;background:#ffffffdf;padding:8px 12px;cursor:pointer;font-size:12px}
.detail-thumbs{display:flex;gap:8px;padding:10px 12px;overflow-x:auto;background:#fff}
.detail-thumb{flex:0 0 68px;width:68px;height:58px;padding:2px;border:2px solid transparent;border-radius:7px;background:#f4f4f4;cursor:pointer;overflow:hidden}
.detail-thumb.active{border-color:#176b9a}.detail-thumb img{width:100%;height:100%;object-fit:cover}
.product-lightbox{display:none;position:fixed;inset:0;z-index:99999;background:#080b10f5;align-items:center;justify-content:center;padding:55px 70px}
.product-lightbox.open{display:flex}.product-lightbox img{max-width:95vw;max-height:88vh;object-fit:contain}
.product-lightbox button{position:absolute;border:0;border-radius:50%;width:48px;height:48px;background:#ffffffdf;color:#111;font-size:32px;cursor:pointer}
.product-lightbox .lightbox-close{top:18px;right:20px}.product-lightbox .lightbox-prev{left:18px;top:50%;transform:translateY(-50%)}.product-lightbox .lightbox-next{right:18px;top:50%;transform:translateY(-50%)}
.lightbox-count{position:absolute;bottom:18px;color:white;background:#0008;padding:7px 14px;border-radius:20px}
@media(max-width:600px){.product-lightbox{padding:45px 48px}.detail-gallery{aspect-ratio:1/1}.detail-arrow{width:36px;height:36px}}

/* Reliable product-card crossfade sizing */
.product-media{position:relative;aspect-ratio:4/3;min-height:190px;}
.product-media .product-gallery{position:absolute;inset:0;width:100%;height:100%;}
.product-media .product-gallery .gallery-shot{display:block;width:100%;height:100%;object-fit:cover;will-change:opacity,transform;}
.product-media .product-gallery .gallery-shot.active{z-index:1;}
.product-media .gallery-count{z-index:3;pointer-events:none;}

/* Reliable product-card crossfade sizing */
.product-media{position:relative;aspect-ratio:4/3;min-height:190px;}
.product-media .product-gallery{position:absolute;inset:0;width:100%;height:100%;}
.product-media .product-gallery .gallery-shot{display:block;width:100%;height:100%;object-fit:cover;will-change:opacity,transform;}
.product-media .product-gallery .gallery-shot.active{z-index:1;}
.product-media .gallery-count{z-index:3;pointer-events:none;}

/* Reliable hover/click-triggered product image motion */
.product-media { position:relative; }
.product-gallery { display:block; min-height:180px; }
.product-gallery .gallery-shot {
  will-change: opacity, transform;
  transition: opacity .72s cubic-bezier(.22,.61,.36,1), transform 1.15s cubic-bezier(.22,.61,.36,1), filter .45s ease;
}
.product-gallery .gallery-shot.active { z-index:1; }
.product-media:hover .product-gallery .gallery-shot.active,
.product-gallery.is-playing .gallery-shot.active {
  transform:scale(1.045);
  filter:saturate(1.06);
}
.product-media:hover { box-shadow:inset 0 0 0 2px rgba(46,134,200,.24); }
.product-gallery .gallery-count { z-index:3; pointer-events:none; }


/* ---------- Akkaunt oynalari: ism so'rash va profil (js/main.js) ---------- */

.lg-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 38, 61, 0.6);
  backdrop-filter: blur(3px);
}

.lg-overlay.open {
  display: flex;
  animation: lg-fade 0.18s var(--ease) both;
}

.lg-card {
  position: relative;
  width: min(440px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px 28px 26px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  animation: lg-pop 0.24s var(--ease) both;
}

.lg-card.lg-center {
  text-align: center;
}

.lg-card h2 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.lg-sub {
  margin: 0 0 20px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--navy-soft);
  overflow-wrap: anywhere;
}

.lg-sub strong {
  color: var(--navy);
}

.lg-hint {
  margin: 14px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--navy-soft);
}

.lg-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.lg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lg-avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 1.6rem;
  box-shadow: 0 0 0 4px var(--ice-2);
}

.lg-center .lg-avatar {
  margin: 0 auto 14px;
}

.lg-field {
  display: block;
  margin: 0 0 14px;
  text-align: left;
}

.lg-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy-soft);
}

.lg-field input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  color: var(--navy);
  outline: none;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.lg-field input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(46, 134, 200, 0.16);
}

.lg-field small {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--navy-soft);
}

.lg-locked-box {
  position: relative;
}

.lg-locked-box input {
  padding-right: 42px;
  background: var(--ice);
  color: var(--navy-soft);
  cursor: not-allowed;
  text-overflow: ellipsis;
}

.lg-locked-box input:focus {
  border-color: var(--line-strong);
  box-shadow: none;
}

.lg-locked-box svg {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--navy-soft);
  pointer-events: none;
}

.lg-error {
  min-height: 20px;
  margin: 0 0 10px;
  font-size: 0.84rem;
  text-align: left;
  color: #b3413f;
}

.lg-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--ice);
  color: var(--navy);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.16s var(--ease);
}

.lg-close:hover {
  background: var(--ice-2);
}

.lg-profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-right: 38px;
}

.lg-profile-head .lg-sub {
  margin: 0;
}

.lg-info {
  margin: 20px 0 0;
  padding: 4px 0;
  border-top: 1px solid var(--line);
}

.lg-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.86rem;
  color: var(--navy-soft);
}

.lg-info-row strong {
  text-align: right;
  font-weight: 700;
  color: var(--navy);
}

.lg-logout {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.lg-confirm-text {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--navy-soft);
}

.lg-confirm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lg-btn-danger {
  background: #b3413f;
  color: var(--white);
}

.lg-btn-danger:hover:not(:disabled) {
  background: #963433;
}

@keyframes lg-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lg-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .lg-card {
    padding: 26px 20px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-overlay.open,
  .lg-card {
    animation: none;
  }
}

/* ---------- Konstruktor limiti (constructor.html) ---------- */

.constructor-limit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--ice);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--navy);
}

.constructor-limit[hidden] {
  display: none;
}

.constructor-limit .cl-body {
  flex: 1;
  min-width: 0;
}

.constructor-limit strong {
  display: block;
  margin-bottom: 2px;
}

.constructor-limit small {
  display: block;
  color: var(--navy-soft);
  font-size: 0.8rem;
}

.constructor-limit .btn {
  margin-top: 10px;
}

.constructor-limit.is-blocked {
  background: var(--amber-soft);
  border-color: rgba(224, 152, 58, 0.45);
}

.constructor-limit.is-ok {
  background: #e8f6ee;
  border-color: rgba(46, 143, 92, 0.3);
}

.constructor-drop.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.constructor-drop.is-disabled:hover {
  border-color: var(--line-strong);
  background: transparent;
}

/* ---------- Like (yurakcha) va izohlar ---------- */

.product-card { position: relative; }

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--navy-soft);
  font: 600 0.82rem/1 var(--font-body);
  padding: 7px 11px 7px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.like-btn svg {
  width: 18px;
  height: 18px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: fill 0.15s var(--ease), transform 0.2s var(--ease);
}

.like-btn:hover { border-color: #e0566a; color: #e0566a; }
.like-btn:active svg { transform: scale(0.8); }
.like-btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

.like-btn.liked {
  color: #e0364f;
  border-color: #f2a3ae;
  background: #fff1f3;
}

.like-btn.liked svg { fill: #e0364f; }

.like-card {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(6, 38, 61, 0.16);
}

.like-card.liked { background: #fff1f3; }

.social-box {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Izoh tugmasi (kartada va mahsulot oynasida) ---------- */

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

.social-head .comment-btn { flex: 1; width: auto; margin: 0; }

.comment-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--sky-deep);
  font: 700 0.86rem/1 var(--font-body);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.comment-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comment-btn:hover { background: var(--ice); border-color: var(--sky); }
.comment-btn:active { background: var(--ice-2); }
.comment-btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

.cb-count {
  min-width: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--sky-deep);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

/* ---------- Izohlar oynasi ---------- */

.comments-overlay {
  z-index: 150;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overscroll-behavior: contain;
}

.comments-sheet {
  width: min(520px, 100%);
  height: min(680px, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  outline: none;
  animation: cmIn 0.22s var(--ease);
}

@keyframes cmIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes cmUp {
  from { transform: translateY(40px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}

.cm-handle { display: none; }

.cm-head {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 12px 20px;
  border-bottom: 1px solid var(--line);
}

.cm-titles { flex: 1; min-width: 0; }

.cm-titles h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.cm-sub {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: var(--navy-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm-close {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--ice);
  color: var(--navy);
  font-size: 0.95rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cm-close:hover { background: var(--ice-2); }

.cm-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 14px;
}

/* Bitta izoh */

.cm-item {
  display: flex;
  gap: 12px;
  padding: 14px 4px 14px 5px; /* chapda admin halqasi kesilmasligi uchun joy */
  border-bottom: 1px solid var(--line);
  content-visibility: auto;
  contain-intrinsic-size: auto 84px;
}

.cm-item:last-of-type { border-bottom: 0; }

.cm-avatar {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--white);
  font: 700 1rem/1 var(--font-body);
  user-select: none;
}

.cm-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cm-item.admin .cm-avatar { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px #1d9bf0; }

.cm-main { flex: 1; min-width: 0; }

.cm-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.cm-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.cm-admin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 4px;
  border-radius: 999px;
  background: #e8f4fe;
  color: #1479c4;
}

.cm-badge { display: inline-flex; width: 17px; height: 17px; color: #1d9bf0; }
.cm-badge svg { width: 100%; height: 100%; }

.cm-admin-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cm-you {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sky-deep);
  background: var(--ice);
  padding: 2px 8px;
  border-radius: 999px;
}

.cm-time {
  margin-top: 1px;
  font-size: 0.74rem;
  color: var(--navy-soft);
}

.cm-text {
  margin: 6px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--navy);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 6px;
}

.cm-actions-end { justify-content: flex-end; }

.cm-actions button {
  border: 0;
  background: none;
  padding: 7px 8px;
  border-radius: 8px;
  font: 700 0.8rem/1 var(--font-body);
  color: var(--sky-deep);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cm-actions button:hover { background: rgba(46, 134, 200, 0.12); }
.cm-actions button.danger { color: #b3413f; }
.cm-actions button.danger:hover { background: rgba(179, 65, 63, 0.1); }
.cm-actions button.primary { background: var(--sky-deep); color: var(--white); padding: 8px 14px; }
.cm-actions button.primary:hover { background: var(--navy); }
.cm-actions button:disabled { opacity: 0.55; cursor: default; }

.cm-limit { font-size: 0.76rem; color: var(--navy-soft); padding: 7px 8px; }

/* Tahrirlash */

.cm-editor { margin-top: 8px; }

.cm-editor textarea,
.cm-compose textarea {
  width: 100%;
  resize: none;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--navy);
  font: 400 16px/1.4 var(--font-body); /* 16px: iPhone'da yozishda sahifa kattalashib ketmasin */
}

.cm-editor textarea {
  min-height: 60px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.cm-editor textarea:focus,
.cm-compose textarea:focus {
  outline: 2px solid var(--sky-soft);
  border-color: var(--sky);
}

.cm-hint {
  margin: 6px 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--navy-soft);
}

.cm-hint-row { display: flex; justify-content: space-between; gap: 10px; padding: 0 4px; }
.cm-privacy { padding: 0 4px; }

.cm-error { font-size: 0.82rem; font-weight: 600; color: #b3413f; padding: 0 4px; }
.cm-error:empty { display: none; }
.cm-error:not(:empty) { margin-top: 6px; }

/* Bo'sh holat va "yana ko'rsatish" */

.cm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 44px 16px;
  text-align: center;
}

.cm-empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--sky);
}

.cm-empty-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cm-empty-text { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--navy-soft); }
p.cm-empty-text:only-child { padding: 40px 0; text-align: center; }

.cm-more {
  display: block;
  width: 100%;
  margin: 10px 0 2px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--sky-deep);
  font: 700 0.85rem/1 var(--font-body);
  cursor: pointer;
}

.cm-more:hover { background: var(--ice); }

/* Pastdagi yozish joyi */

.cm-foot {
  flex: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--white);
}

.cm-foot .btn-block { margin-top: 10px; }
.cm-full { margin: 4px 0; text-align: center; font-size: 0.84rem; }

.cm-compose {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.cm-compose .cm-avatar { width: 38px; height: 38px; margin-bottom: 2px; }

.cm-compose textarea {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  max-height: 110px;
  padding: 10px 14px;
  border-radius: 21px;
  background: var(--ice);
}

.cm-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--sky-deep);
  color: var(--white);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cm-send svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cm-send:hover { background: var(--navy); }
.cm-send:disabled { opacity: 0.5; cursor: default; }

/* Telefon: pastdan chiqadigan oyna */

@media (max-width: 640px) {
  .comments-overlay { align-items: flex-end; padding: 0; }

  .comments-sheet {
    width: 100%;
    height: 90%;
    border-radius: 20px 20px 0 0;
    animation: cmUp 0.25s var(--ease);
  }

  .comments-overlay.kb .comments-sheet { height: 100%; border-radius: 0; }

  .cm-handle {
    display: block;
    flex: none;
    width: 40px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 4px;
    background: var(--line-strong);
  }

  .cm-head { padding: 8px 12px 10px 16px; }
  .cm-body { padding: 2px 16px 12px; }
  .cm-actions button { padding: 9px 10px; }
}

/* Kuchsiz qurilmalar / animatsiyani kamaytirish: animatsiyasiz, yengil */

.lite .comments-sheet,
.lite .comment-btn { animation: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  .comments-sheet { animation: none; }
  .comment-btn { transition: none; }
}

/* ---------- Izohlarga admin javoblari ---------- */

/* Admin uchun: foydalanuvchi izohining chap tomonidagi yagona "Javob berish" tugmasi. */
.cm-reply-btn {
  flex: none;
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 3px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--sky-deep);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.cm-reply-btn:hover { background: var(--sky-deep); color: var(--white); transform: scale(1.07); }
.cm-reply-btn:active { transform: scale(0.94); }
.cm-reply-btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

/* Hozir javob yozilayotgan izoh ajralib turadi. */
.cm-item.replying {
  background: rgba(46, 134, 200, 0.08);
  border-radius: 12px;
  box-shadow: inset 3px 0 0 var(--sky);
}

.cm-replies {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
}

.cm-item.is-reply { padding: 10px 0 6px 5px; border-bottom: 0; } /* 5px: admin halqasi kesilmasin */
/* Admin ko'rinishida avatarlar bir chiziqda tursin (Javob tugmasi o'rnini bo'sh qoldiramiz). */
.cm-item.reply-gutter { padding-left: 51px; }
.cm-item.is-reply + .cm-item.is-reply { border-top: 1px dashed var(--line); }
.cm-item.is-reply .cm-avatar { width: 30px; height: 30px; font-size: 0.82rem; }

.cm-replyto { font-size: 0.76rem; font-weight: 700; color: var(--sky-deep); }

/* Pastdagi yozish joyidagi "kimga javob" paneli. */
.cm-replying {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 10px 8px 12px;
  border-left: 3px solid var(--sky);
  border-radius: 8px;
  background: var(--ice);
  animation: cm-reply-in 0.22s var(--ease);
}

.cm-replying-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-replying-text strong { font-size: 0.8rem; color: var(--sky-deep); }
.cm-replying-text span {
  font-size: 0.8rem;
  color: var(--navy-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-replying-x {
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy-soft);
  font-size: 0.9rem;
  cursor: pointer;
}
.cm-replying-x:hover { background: var(--ice-2); color: var(--navy); }

@keyframes cm-reply-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Telefon: mahsulot rasmlari o'zi surilib almashadi (js: setupProductGalleries) ---------- */
.product-gallery.is-slide .gallery-shot {
  opacity: 1;
  filter: none;
  transform: translate3d(100%, 0, 0); /* navbatdagi rasm o'ng tomonda kutib turadi */
  transition: transform 0.75s var(--ease);
}
.product-gallery.is-slide .gallery-shot.active { transform: translate3d(0, 0, 0); z-index: 2; }
.product-gallery.is-slide .gallery-shot.leaving { transform: translate3d(-100%, 0, 0); z-index: 1; }
/* Sensorli ekranda :hover "yopishib" qoladi -- surilish buzilmasin. */
.product-media:hover .product-gallery.is-slide .gallery-shot.active { transform: translate3d(0, 0, 0); filter: none; }

/* ---------- UI tuzatishlari ---------- */

/* Yopiq savat paneli o'z soyasi bilan ekranning o'ng chetini xiralashtirib turardi
   (barcha sahifalarda). Yopiq paytda soya ham, panel ham ko'rinmaydi (Tab bilan ham
   ichiga kirib bo'lmaydi); yopilish animatsiyasi esa saqlanadi. */
.drawer {
  visibility: hidden;
  box-shadow: none;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), visibility 0s linear 0.26s;
}
.drawer.open {
  visibility: visible;
  box-shadow: -20px 0 50px rgba(6, 38, 61, 0.22);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), visibility 0s;
}

/* Bezak elementlar (orbitalar, yaltirash) tufayli sahifa yon tomonga siljimasin. */
body { overflow-x: clip; }

/* Juda tor telefonlar (320–400px): sarlavha sig'ib, "Savat" ekrandan chiqib ketmasin. */
.brand { min-width: 0; }
.brand span { min-width: 0; }
.header-side { flex: none; }

@media (max-width: 400px) {
  .site-header .wrap { gap: 8px; }
  .brand { gap: 8px; font-size: 0.95rem; }
  .brand-mark { width: 30px; height: 30px; }
  .brand small { display: none; }
  .header-side { gap: 6px; }
  .cart-btn { padding: 9px 12px; gap: 6px; }
  .user-chip { padding: 5px; }
}

/* ---------- Yangiliklar: rasm, like va izoh tugmalari ---------- */

.news-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }

.news-card { display: flex; flex-direction: column; }

.news-card .news-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--ice-2);
}

.news-card .news-date { align-self: flex-start; }

.news-card .news-text { overflow-wrap: anywhere; }
.news-card .news-text.expanded { white-space: pre-line; }

.news-more {
  align-self: flex-start;
  margin-top: 8px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--sky-deep);
  font: 700 0.84rem/1.2 var(--font-body);
  cursor: pointer;
}

.news-more:hover { text-decoration: underline; }
.news-more:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.news-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.news-actions .comment-btn { flex: 1; width: auto; margin: 0; }
