/* ============================================================
   Sefir Market — header redesign (clean / minimal)
   ============================================================ */
:root {
  --sm-border: #e2e6ea;
  --sm-muted: #8a8f98;
  --sm-dark: #072134;
  --sm-soft: #f6f8fa;
  --sm-chip: #eef2f6;
  --sm-primary: #072134;
  --sm-primary-hover: #0c3550;
  --sm-primary-soft: #eef2f6;
}

body { color: var(--sm-dark); }

/* ---------- Top bar ---------- */
.sm-topbar {
  background: var(--sm-soft);
  border-bottom: 1px solid var(--sm-border);
  font-size: 14px;
}
.sm-topbar .container {
  display: flex;
  align-items: center;
  min-height: 50px;
  gap: 10px 12px;
  flex-wrap: wrap;
}
.sm-topbar-social {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sm-dark);
}
.sm-topbar-social .sm-join { font-weight: 600; }
.sm-topbar-right { margin-left: auto; }   /* desktop: til tanlash o'ngda */
.sm-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--sm-border);
  background: #fff;
  color: var(--sm-dark);
  text-decoration: none;
  transition: all .15s ease;
}
.sm-social:hover { color: #000; border-color: #cfd2da; transform: translateY(-1px); }
.sm-sep { color: #d3d6dd; }
.sm-phone { color: var(--sm-dark); text-decoration: none; font-weight: 600; white-space: nowrap; }
.sm-phone i { margin-right: 6px; color: var(--sm-muted); }

/* Language switcher as a pill (restyle common/language dropdown) */
.sm-topbar-right .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--sm-border);
  background: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: var(--sm-dark);
  line-height: 1;
}
.sm-topbar-right .dropdown-toggle::before {
  content: "\f0ac";                 /* globe */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--sm-muted);
}
.sm-topbar-right .dropdown-toggle img { display: none; }
.sm-topbar-right .dropdown-menu { border-radius: 12px; border-color: var(--sm-border); }
/* Bayroqlarni bir xil o'lchamga keltirish */
.sm-topbar-right .dropdown-item { display: flex; align-items: center; gap: 8px; }
.sm-topbar-right .dropdown-menu img {
  width: 24px;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--sm-border);
  margin: 0;
  flex: 0 0 auto;
}

/* ---------- Main header ---------- */
header { background: #fff; border-bottom: 1px solid var(--sm-border); }
.sm-header {
  display: flex;
  align-items: center;
  padding: 18px 0;
}
.sm-header #logo { flex: 0 0 auto; margin: 0; line-height: 0; }
.sm-header #logo img { max-height: 54px; width: auto; }

/* Search */
.sm-search {
  flex: 0 1 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: 16px;
  padding: 5px 5px 5px 18px;
  max-width: 100%;
}
.sm-search > i { color: var(--sm-muted); font-size: 16px; margin-right: 10px; }
.sm-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  padding: 11px 6px;
  color: var(--sm-dark);
}
.sm-search input::placeholder { color: #aab0b8; }
.sm-search button {
  border: 0;
  background: var(--sm-chip);
  color: var(--sm-dark);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 26px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s ease;
  white-space: nowrap;
}
.sm-search button:hover { background: #e5e7eb; }

/* Right-side action icons */
.sm-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sm-actions > a,
.sm-actions .dropdown-toggle,
.sm-actions #header-cart .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid transparent;
  color: var(--sm-dark);
  text-decoration: none;
  font-size: 19px;
  transition: all .15s ease;
  cursor: pointer;
  box-shadow: none;
}
.sm-actions > a:hover,
.sm-actions .dropdown-toggle:hover,
.sm-actions #header-cart .btn:hover { background: var(--sm-soft); border-color: var(--sm-border); }
.sm-actions > a span,
.sm-actions .dropdown-toggle span { display: none; }
.sm-actions .dropdown-toggle::after { display: none; }      /* hide bootstrap caret */

/* Dropdown menyu (hisob / savat) — normal ko'rinish */
.sm-actions .dropdown-menu { min-width: 210px; border-radius: 12px; border-color: var(--sm-border); padding: 6px; }
.sm-actions .dropdown-menu .dropdown-item {
  display: block;
  width: auto;
  height: auto;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--sm-dark);
}
.sm-actions .dropdown-menu .dropdown-item:hover { background: var(--sm-primary-soft); color: var(--sm-primary); }

/* Cart component -> icon only (hide the "X item(s) - $Y" text) */
.sm-actions #header-cart .dropdown.d-grid { display: block !important; }
/* Hamma action elementlarini bir xil 46px flex-markaz qutiga majburlash (savatni tekislash) */
.sm-actions > * { display: flex; align-items: center; height: 46px; margin: 0; }
.sm-actions #header-cart,
.sm-actions #header-cart .dropdown { display: flex !important; align-items: center; height: 46px; margin: 0; }
.sm-actions #header-cart .btn {
  font-size: 0;
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sm-actions #header-cart .btn i { font-size: 19px; line-height: 1; vertical-align: middle; }
.sm-actions #header-cart .dropdown-menu { font-size: 14px; min-width: 320px; }

/* small count badge slot (optional, used if markup provides it) */
.sm-actions .sm-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #1f2330; color: #fff;
  font-size: 11px; line-height: 1;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.sm-actions > * { position: relative; }

/* ---------- Category section (doiraviy ikon, Piyolamarket uslubi) ---------- */
/* ---------- Category head (title + mobile burger) ---------- */
.sm-cat-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 16px;
}
.sm-cat-head .sm-cat-title { margin: 0; }
.sm-cat-burger {
  display: none;                /* faqat mobile'da koʻrinadi */
  position: absolute;
  right: 0;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--sm-soft);
  color: var(--sm-primary);
  font-size: 18px;
  cursor: pointer;
  transition: background .18s ease, transform .15s ease;
}
.sm-cat-burger:hover { background: #e5e9ed; }
.sm-cat-burger:active { transform: scale(.94); }
@media (max-width: 768px) {
  .sm-cat-burger { display: inline-flex; align-items: center; justify-content: center; }
  /* Mobile'da horizontal scroll kategoriyalar yashirin — ular drawer'da koʻrinadi */
  .sm-cat-list { display: none !important; }
}

/* ---------- Bottom drawer (mobile only) ---------- */
.sm-cat-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(7,33,52,.45);
  z-index: 1080;
  opacity: 0;
  transition: opacity .28s ease;
}
.sm-cat-drawer-overlay.is-open { opacity: 1; }
.sm-cat-drawer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1085;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 30px rgba(7,33,52,.18);
  padding: 8px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.sm-cat-drawer.is-open { transform: translateY(0); }
.sm-cat-drawer-handle {
  width: 44px; height: 5px;
  background: #d9dde2;
  border-radius: 999px;
  margin: 6px auto 14px;
}
.sm-cat-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sm-cat-drawer-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--sm-dark);
}
.sm-cat-drawer-close {
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--sm-soft);
  color: var(--sm-dark);
  cursor: pointer;
  font-size: 15px;
}
.sm-cat-drawer-close:hover { background: #e5e9ed; }
.sm-cat-drawer-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 12px;
}
.sm-cat-drawer-item { text-align: center; }
.sm-cat-drawer-link {
  display: block;
  text-decoration: none;
  color: var(--sm-dark);
  transition: transform .2s ease;
}
.sm-cat-drawer-link:active { transform: scale(.96); }

@media (min-width: 769px) {
  .sm-cat-drawer, .sm-cat-drawer-overlay { display: none !important; }
}

.sm-cat-section {
  margin: 24px 0;
  text-align: center;
}
.sm-cat-title {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 800;
  color: var(--sm-dark);
  letter-spacing: -0.3px;
  text-align: center;
}
.sm-cat-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  display: flex;
  gap: 24px;
  justify-content: center;          /* markazdan boshlanish */
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sm-cat-list::-webkit-scrollbar { display: none; }
.sm-cat-item {
  flex: 0 0 auto;
  width: 130px;
  text-align: center;
}
.sm-cat-link {
  display: block;
  text-decoration: none;
  color: var(--sm-dark);
  outline: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), color .2s ease;
}
.sm-cat-link:hover,
.sm-cat-link:focus-visible {
  color: var(--sm-primary);
  transform: translateY(-6px);
}
.sm-cat-circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sm-soft);
  box-shadow: 0 4px 14px rgba(7,33,52,.08);
  transition: box-shadow .28s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.sm-cat-circle::after {
  /* tashqi halqa — hover'da chiqadi */
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--sm-primary);
  opacity: 0;
  transform: scale(.92);
  transition: opacity .25s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.sm-cat-link:hover .sm-cat-circle,
.sm-cat-link:focus-visible .sm-cat-circle {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(7,33,52,.18);
}
.sm-cat-link:hover .sm-cat-circle::after,
.sm-cat-link:focus-visible .sm-cat-circle::after {
  opacity: 1;
  transform: scale(1);
}
.sm-cat-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.sm-cat-link:hover .sm-cat-circle img,
.sm-cat-link:focus-visible .sm-cat-circle img { transform: scale(1.08); }
.sm-cat-circle--initial {
  background: var(--sm-primary);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  transition: letter-spacing .25s ease;
}
.sm-cat-link:hover .sm-cat-circle--initial,
.sm-cat-link:focus-visible .sm-cat-circle--initial { letter-spacing: 2px; }
.sm-cat-label {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sm-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.sm-cat-link:hover .sm-cat-label,
.sm-cat-link:focus-visible .sm-cat-label { color: var(--sm-primary); }

/* Item sigʻmasa scrollga oʻtsin (kichik ekranlarda) */
@media (max-width: 768px) {
  .sm-cat-list { justify-content: flex-start; padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 576px) {
  .sm-cat-title { font-size: 22px; margin-bottom: 12px; }
  .sm-cat-list { gap: 14px; }
  .sm-cat-item { width: 98px; }
  .sm-cat-circle { width: 90px; height: 90px; }
  .sm-cat-circle--initial { font-size: 32px; }
  .sm-cat-label { font-size: 13px; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .sm-cat-link, .sm-cat-circle, .sm-cat-circle img, .sm-cat-circle--initial, .sm-cat-label { transition: none; }
  .sm-cat-link:hover, .sm-cat-link:focus-visible { transform: none; }
  .sm-cat-link:hover .sm-cat-circle, .sm-cat-link:focus-visible .sm-cat-circle { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .sm-header { flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 14px 0; }
  .sm-search { order: 3; flex: 1 1 100%; max-width: 100%; }
  .sm-actions { order: 2; }

  /* Kategoriya paneli: "KATEGORIYALAR" — to'liq enli bitta toggle (burger + chevron) */
  #menu.navbar { flex-wrap: wrap; }
  #menu #category {
    width: 100%;
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
  }
  #menu #category::after {
    content: "\f078";                 /* chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .72em;
    margin-left: auto;
    transition: transform .2s ease;
  }
  #menu #category[aria-expanded="true"]::after { transform: rotate(180deg); }
  #menu .navbar-nav { width: 100%; padding-top: 6px; }
  #menu .navbar-nav .nav-link { padding: 8px 2px; }
}
@media (max-width: 575px) {
  /* Topbar: 1-qator = ijtimoiy tarmoqlar; 2-qator = telefon (chap) ↔ til (o'ng) */
  .sm-topbar .container { min-height: 0; padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
  .sm-topbar-social { flex: 1 1 100%; justify-content: center; }
  .sm-sep { display: none; }
  .sm-phone { margin-right: auto; }
  .sm-topbar-right { margin-left: 0; }
  .sm-search button { padding: 11px 16px; }
  /* Header: yengilroq otstuplar */
  .sm-header { padding: 12px 0; gap: 12px; }
}

/* ============================================================
   Brand color theme — #072134 (dark navy)
   ============================================================ */

/* Bootstrap primary buttons (OTP modal, forms, etc.) */
.btn-primary {
  --bs-btn-bg: var(--sm-primary);
  --bs-btn-border-color: var(--sm-primary);
  --bs-btn-hover-bg: var(--sm-primary-hover);
  --bs-btn-hover-border-color: var(--sm-primary-hover);
  --bs-btn-active-bg: var(--sm-primary-hover);
  --bs-btn-active-border-color: var(--sm-primary-hover);
  --bs-btn-disabled-bg: var(--sm-primary);
  --bs-btn-disabled-border-color: var(--sm-primary);
}
.btn-outline-secondary {
  --bs-btn-color: var(--sm-primary);
  --bs-btn-border-color: #cdd6de;
  --bs-btn-hover-bg: var(--sm-primary);
  --bs-btn-hover-border-color: var(--sm-primary);
}

/* Barcha tugmalar — navy (#072134). Tema gradient/ranglarini bosib o'tadi. */
.btn-primary, .btn-secondary, .btn-info, .btn-light, .btn-default,
.btn-success, .btn-warning, .btn-danger {
  background-image: none !important;
  background-color: var(--sm-primary) !important;
  border-color: var(--sm-primary) !important;
  color: #fff !important;
  text-shadow: none !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active,
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active, .btn-secondary.active,
.btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active,
.btn-light:hover, .btn-light:focus, .btn-light:active, .btn-light.active,
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active,
.btn-success:hover, .btn-success:focus, .btn-success:active,
.btn-warning:hover, .btn-warning:focus, .btn-warning:active,
.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
  background-image: none !important;
  background-color: var(--sm-primary-hover) !important;
  border-color: var(--sm-primary-hover) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Links */
a { color: var(--sm-primary); }
a:hover { color: var(--sm-primary-hover); }

/* Search button -> brand navy */
.sm-search button { background: var(--sm-primary); color: #fff; }
.sm-search button:hover { background: var(--sm-primary-hover); }
.sm-search:focus-within { border-color: var(--sm-primary); }

/* Action icons + hover tint */
.sm-actions > a, .sm-actions .dropdown-toggle, .sm-actions #header-cart .btn { color: var(--sm-primary); }
.sm-actions > a:hover,
.sm-actions .dropdown-toggle:hover,
.sm-actions #header-cart .btn:hover { background: var(--sm-primary-soft); border-color: #dbe3ea; color: var(--sm-primary); }


/* Language pill hover */
.sm-topbar-right .dropdown-toggle:hover { border-color: var(--sm-primary); }

/* Footer -> navy */
footer { background-color: var(--sm-primary) !important; }

/* Utility overrides so Bootstrap primary matches the brand */
.text-primary { color: var(--sm-primary) !important; }
.bg-primary { background-color: var(--sm-primary) !important; }
.btn-light { --bs-btn-color: var(--sm-primary); }

/* Faol ro'yxat elementi (chapdagi kategoriya moduli, account menyu va h.k.) — navy */
.list-group-item.active {
  background-color: var(--sm-primary) !important;
  border-color: var(--sm-primary) !important;
  color: #fff !important;
}

/* Banner placeholder (rasm o'rniga matn) */
.sm-banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 360px;
  background: var(--sm-soft);
  border: 1px dashed #cfd6dd;
  border-radius: 16px;
  color: var(--sm-primary);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 24px;
}
@media (max-width: 575px) { .sm-banner-placeholder { min-height: 200px; } }

/* Banner rasm — tabiiy nisbatda, to'liq enli, bo'shliqsiz, border yo'q */
.sm-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  border-radius: 0;
}
[id^="carousel-banner"] {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
[id^="carousel-banner"] .carousel-inner { border: 0; padding: 0; }
[id^="carousel-banner"] .carousel-item > .row { margin: 0; padding: 0; }
[id^="carousel-banner"] .carousel-item [class*="col-"] { padding: 0; border: 0; }
[id^="carousel-banner"] .carousel-item a { display: block; line-height: 0; }
/* Pastdagi dotlar / indicatorlar olib tashlanadi */
[id^="carousel-banner"] .carousel-indicators { display: none !important; }
[id^="carousel-banner"] .carousel-control-prev,
[id^="carousel-banner"] .carousel-control-next { display: none !important; }

/* ============================================================
   PRODUCT PAGE — piyolamarket.uz uslubida qayta dizayn
   ============================================================ */

.sm-product { padding-top: 6px; }
.sm-product .breadcrumb { background: transparent; padding: 0 0 8px; }

/* ---------- Breadcrumb butunlay yashirin ---------- */
.breadcrumb { display: none !important; }
.breadcrumb > li.breadcrumb-item {
  padding: 0 !important;
  margin: 0;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  text-shadow: none !important;
}
/* Eski rotated square strelka olib tashlanadi */
.breadcrumb > li.breadcrumb-item:after { display: none !important; }
/* Ajratuvchi belgi — har item oldida (1-dan keyin) */
.breadcrumb > li.breadcrumb-item + li:before {
  content: "›" !important;
  display: inline-block;
  padding: 0 12px !important;
  color: var(--sm-muted);
  font-size: 16px;
  font-weight: 500;
}
.breadcrumb > li.breadcrumb-item > a {
  color: var(--sm-muted);
  text-decoration: none;
  transition: color .15s ease;
}
.breadcrumb > li.breadcrumb-item > a:hover { color: var(--sm-primary); }
.breadcrumb > li.breadcrumb-item:last-child { color: var(--sm-dark); font-weight: 600; }
.breadcrumb i.fa-home,
.breadcrumb i.fa-house { font-size: 14px; color: var(--sm-muted); }

/* ===== Galereya (chap) ===== */
.sm-prod-gallery {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.sm-prod-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 96px;
}
.sm-prod-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background: var(--sm-soft);
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .15s;
}
.sm-prod-thumb img { max-width: 80%; max-height: 80%; object-fit: contain; }
.sm-prod-thumb.active { border-color: var(--sm-primary); }
.sm-prod-thumb:hover { border-color: var(--sm-border); }

.sm-prod-main {
  position: relative;
  flex: 1 1 auto;
  background: var(--sm-soft);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  padding: 0;
}
/* Carousel: gorizontal scroll, snap, navbatma navbat rasm */
.sm-prod-slider {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sm-prod-slider::-webkit-scrollbar { display: none; }
.sm-prod-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: block;
}
.sm-prod-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;          /* rasm sigʻimliroq koʻrinadi (qirqilmaydi) */
  display: block;
}

/* Dots indicator */
.sm-prod-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
}
.sm-prod-dot {
  pointer-events: auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(7,33,52,.25);
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, width .25s ease;
}
.sm-prod-dot:hover { background: rgba(7,33,52,.45); }
.sm-prod-dot.is-active {
  background: var(--sm-primary);
  width: 22px;
  border-radius: 4px;
}
.sm-prod-wishlist { position: absolute; top: 16px; right: 16px; margin: 0; }
.sm-prod-heart {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: all .15s;
}
.sm-prod-heart:hover { color: var(--sm-primary); transform: scale(1.06); }

/* ===== Info card (o'ng) ===== */
.sm-prod-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 992px) {
  .sm-prod-info { position: sticky; top: 16px; }
}

.sm-prod-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f0fe;
  color: #1e7be0;
  font-weight: 600;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  align-self: flex-start;
}
.sm-prod-badge i { font-size: 14px; }

.sm-prod-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--sm-dark);
  margin: 0;
}

.sm-prod-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--sm-dark);
}
.sm-prod-rating .fa-star { color: var(--sm-primary); }
.sm-prod-rating .sm-dot { color: var(--sm-muted); }
.sm-prod-rating a { color: var(--sm-muted); text-decoration: none; }

.sm-prod-price-block { margin-top: 4px; }
.sm-prod-price-label { font-size: 13px; color: var(--sm-muted); margin-bottom: 4px; }
.sm-prod-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sm-prod-price-new {
  font-size: 28px;
  font-weight: 800;
  color: var(--sm-dark);
  letter-spacing: -.3px;
}
.sm-prod-price-old {
  font-size: 17px;
  color: var(--sm-muted);
  text-decoration: line-through;
}
.sm-prod-discount {
  background: #e53935;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 3px 9px;
  border-radius: 7px;
}

/* ===== Kartochka (collapsible / payment) ===== */
.sm-prod-card {
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: 16px;
  overflow: hidden;
}

/* Collapsible row */
.sm-prod-collapse-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  color: var(--sm-dark);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.sm-prod-collapse-toggle:hover { background: var(--sm-soft); color: var(--sm-dark); }
.sm-prod-collapse-toggle > i:first-child { color: var(--sm-muted); }
.sm-prod-collapse-toggle .sm-arrow { margin-left: auto; transition: transform .2s; color: var(--sm-muted); font-size: 13px; }
.sm-prod-collapse-toggle:not(.collapsed) .sm-arrow { transform: rotate(90deg); }
.sm-prod-collapse-body { padding: 0 18px 16px; color: var(--sm-dark); font-size: 14px; line-height: 1.55; }

/* Payment card */
.sm-prod-pay { padding: 4px; }
.sm-pay-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--sm-soft);
  border-radius: 12px;
  margin: 4px;
}
.sm-pay-tabs .nav-link {
  flex: 1 1 50%;
  text-align: center;
  border: 0 !important;
  border-radius: 9px;
  background: transparent;
  color: var(--sm-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 12px;
}
.sm-pay-tabs .nav-link.active {
  background: #fff !important;
  color: var(--sm-primary) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.sm-pay-content { padding: 14px 16px 16px; }

.sm-pay-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.sm-pay-left { flex: 1; }
.sm-pay-right { text-align: right; }
.sm-pay-cap { font-size: 12px; color: var(--sm-muted); margin-bottom: 6px; }
.sm-pay-months { display: inline-flex; gap: 0; background: var(--sm-soft); border-radius: 10px; padding: 4px; }
.sm-pay-mbtn {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13px;
  color: var(--sm-muted);
  cursor: pointer;
}
.sm-pay-mbtn.active { background: #fff; color: var(--sm-primary); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Checkout sahifasidagi muddatli oy tugmalari */
.sm-install-months { display: inline-flex; gap: 0; background: var(--sm-soft); border-radius: 10px; padding: 4px; }
.sm-install-mbtn { border: 0; background: transparent; padding: 8px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--sm-muted); cursor: pointer; transition: all .15s ease; }
.sm-install-mbtn.active { background: #fff; color: var(--sm-primary); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sm-install-mbtn:hover:not(.active) { color: var(--sm-dark); }
.sm-cash-options { display: flex; gap: 10px; flex-wrap: wrap; }
.sm-pay-amount { font-size: 20px; font-weight: 700; color: var(--sm-dark); white-space: nowrap; }
.sm-pay-amount small { font-size: 12px; font-weight: 500; color: var(--sm-muted); }

.sm-pay-install-options { display: grid; gap: 8px; }
.sm-pay-iopt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--sm-border);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  margin: 0;
}
.sm-pay-iopt input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.sm-pay-iopt:hover { border-color: #7B2CBF; }
.sm-pay-iopt.active { border-color: #7B2CBF; background: #faf5ff; box-shadow: 0 0 0 2px rgba(123, 44, 191, .12); }
.sm-pay-iopt-title { font-weight: 600; color: var(--sm-dark); font-size: 14px; }
.sm-pay-iopt-title small { font-weight: 400; color: var(--sm-muted); }
.sm-pay-iopt-desc { font-size: 12px; color: var(--sm-muted); }

.sm-pay-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--sm-border);
}
.sm-pay-logos-cap { font-size: 12px; color: var(--sm-muted); margin-right: 4px; }
.sm-pay-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid var(--sm-border);
  background: #fff;
  color: var(--sm-dark);
  transition: all .15s;
}
.sm-pay-logo:hover { border-color: var(--sm-primary); color: var(--sm-primary); }
.sm-pay-logo-paylater { color: #5d3fd3; border-color: #d8cef7; }
.sm-pay-logo-paylater:hover { background: #5d3fd3; color: #fff; border-color: #5d3fd3; }
.sm-pay-logo-uzum { color: #7c3aed; border-color: #ddd0f7; }
.sm-pay-logo-uzum:hover { background: #7c3aed; color: #fff; border-color: #7c3aed; }

/* ===== CTA — Sotib olish ===== */
.sm-prod-cta {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.sm-prod-buy {
  flex: 1 1 auto;
  border: 0;
  background: var(--sm-primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 14px;
  cursor: pointer;
  transition: all .15s;
  box-shadow: 0 2px 8px rgba(7,33,52,.18);
  animation: sm-buy-pulse 2.2s ease-in-out infinite;
  position: relative;
}
.sm-prod-buy:hover {
  background: var(--sm-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(7,33,52,.28);
  animation-play-state: paused;
}
.sm-prod-buy:active { transform: translateY(0); }
.sm-prod-buy:disabled { opacity: .6; cursor: not-allowed; animation: none; }

@keyframes sm-buy-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(7,33,52,.18), 0 0 0 0 rgba(7,33,52,.35); }
  50%      { box-shadow: 0 2px 8px rgba(7,33,52,.18), 0 0 0 10px rgba(7,33,52,0); }
}

@media (prefers-reduced-motion: reduce) {
  .sm-prod-buy { animation: none; }
}
.sm-prod-cart-btn {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid var(--sm-border);
  background: #fff;
  border-radius: 14px;
  color: var(--sm-dark);
  font-size: 18px;
  cursor: pointer;
  transition: all .15s;
}
.sm-prod-cart-btn:hover { background: var(--sm-soft); color: var(--sm-primary); border-color: var(--sm-primary); }

/* Mobile responsive */
@media (max-width: 767px) {
  .sm-prod-gallery { flex-direction: column-reverse; }
  .sm-prod-thumbs { flex-direction: row; flex: 0 0 auto; overflow-x: auto; }
  .sm-prod-thumb { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 10px; }
  .sm-prod-main { border-radius: 14px; }
  .sm-prod-title { font-size: 19px; }
  .sm-prod-price-new { font-size: 24px; }
  .sm-pay-row { flex-direction: column; gap: 10px; }
  .sm-pay-right { text-align: left; }

  /* Mobile-only: "Buyurtma berish" tugmasini pastda fixed qilamiz */
  .sm-prod-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1040;
    margin: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--sm-border);
    box-shadow: 0 -8px 24px rgba(7,33,52,.10);
    gap: 8px;
    animation: sm-cta-slide-up .35s cubic-bezier(.34,1.56,.64,1) both;
  }
  .sm-prod-cta .sm-prod-buy {
    font-size: 17px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #f3b803 !important;
    color: #000 !important;
    box-shadow: 0 2px 8px rgba(243,184,3,.25);
    animation: sm-buy-pulse-gold 2.2s ease-in-out infinite;
  }
  .sm-prod-cta .sm-prod-buy:hover {
    background: #d9a302 !important;
    box-shadow: 0 6px 18px rgba(243,184,3,.35);
  }
}
@keyframes sm-buy-pulse-gold {
  0%, 100% { box-shadow: 0 2px 8px rgba(243,184,3,.25), 0 0 0 0 rgba(243,184,3,.45); }
  50%      { box-shadow: 0 2px 8px rgba(243,184,3,.25), 0 0 0 10px rgba(243,184,3,0); }
}
@media (max-width: 767px) {
  .sm-prod-cta .sm-prod-cart-btn { width: 48px; height: 48px; border-radius: 12px; }
  /* Pastdagi fixed tugma kontentni bekitmasligi uchun */
  #product-info { padding-bottom: 96px; }
  /* Footerda joy berib qoʻyamiz, ko'rilganda bekitmasligi uchun */
  footer { padding-bottom: 90px; }
}

@keyframes sm-cta-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ============================================================
   PRODUCT THUMB (kategoriya/related kartochkalardagi tugmalar)
   ============================================================ */
/* ============================================================
   Sm-thumb-card — Clean white (border yo'q, fon oq)
   ============================================================ */
/* Mobile (≤575px): har bir module/kategoriya gridda mahsulotlar 2 tadan koʻrinadi */
@media (max-width: 575.98px) {
  .row.row-cols-1 > .col,
  #product-list.row-cols-1 > .col {
    flex: 0 0 auto;
    width: 50%;
  }
  .product-thumb.sm-thumb-card .sm-thumb-name { font-size: 13px; min-height: 36px; }
  .product-thumb.sm-thumb-card .sm-thumb-price { font-size: 14px; }

  /* Mobile'da rasm — 100% en, tabiiy nisbat, chetlaridan chetgacha */
  .product-thumb.sm-thumb-card,
  .sm-thumb-card {
    padding: 0 !important;                /* card padding olib tashlanadi */
    border-radius: 12px;
    overflow: hidden;
  }
  .sm-thumb-card .sm-thumb-image {
    aspect-ratio: unset !important;       /* kvadrat majburi yo'q */
    height: auto !important;
    border-radius: 12px 12px 0 0;
  }
  .sm-thumb-card .sm-thumb-link {
    height: auto;
  }
  .sm-thumb-card .sm-thumb-link img {
    width: 100% !important;
    height: auto !important;              /* tabiiy balandlik */
    object-fit: contain !important;       /* qirqilmaydi */
  }
  .sm-thumb-card .sm-thumb-meta {
    padding: 10px 12px 12px;              /* matn atrofida ozgina joy */
  }
  .sm-thumb-card .sm-thumb-wishlist {
    top: 10px;
    right: 10px;
  }
}

.product-thumb.sm-thumb-card,
.sm-thumb-card {
  background: #fff;
  border: 1px solid var(--sm-border) !important;
  border-radius: 14px;
  box-shadow: none;
  padding: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.product-thumb.sm-thumb-card:hover,
.sm-thumb-card:hover {
  border-color: var(--sm-primary) !important;
  box-shadow: 0 6px 18px rgba(7,33,52,.08);
  transform: translateY(-2px);
}
.sm-thumb-card .sm-thumb-image {
  position: relative;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;          /* kvadrat blok — rasm to'liq to'ldiradi */
  transition: transform .25s ease;
}
.sm-thumb-card .sm-thumb-image:hover { transform: translateY(-2px); }
.sm-thumb-card .sm-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}
.sm-thumb-card .sm-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* rasm blokni to'liq qoplaydi */
  display: block;
  margin: 0;
  transition: transform .45s ease;
}
.sm-thumb-card .sm-thumb-image:hover .sm-thumb-link img { transform: scale(1.04); }

/* Sevimlilar — top-right circular */
.sm-thumb-card .sm-thumb-wishlist {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
}
.sm-thumb-card .sm-thumb-heart {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--sm-primary);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(7,33,52,.10);
  transition: transform .2s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}
.sm-thumb-card .sm-thumb-heart:hover,
.sm-thumb-card .sm-thumb-heart:focus-visible {
  background: var(--sm-primary);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(7,33,52,.22);
}
.sm-thumb-card .sm-thumb-heart.sm-wished {
  background: var(--sm-primary);
  color: #fff;
}
.sm-thumb-card .sm-thumb-heart.sm-wished i { animation: sm-heart-burst .55s ease; }

/* Meta blok — rasm ostida (sof matnli) */
.sm-thumb-card .sm-thumb-meta {
  padding: 16px 4px 0;
}
.sm-thumb-card .sm-thumb-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  color: var(--sm-dark);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 10px;
  min-height: 44px;
}
.sm-thumb-card .sm-thumb-name:hover { color: var(--sm-primary); }
.sm-thumb-card .sm-thumb-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.sm-thumb-card .sm-thumb-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--sm-dark);
  letter-spacing: -.3px;
}
.sm-thumb-card .sm-thumb-price-old {
  font-size: 14px;
  color: var(--sm-muted);
  text-decoration: line-through;
}
.sm-thumb-card .sm-thumb-rating {
  color: #f5a623;
  font-size: 13px;
  margin-bottom: 8px;
}
.sm-thumb-card .sm-thumb-rating .fa-regular { color: #d8d8d8; }

/* Cart action — kichik tugma (Buyurtma berish o'rniga) */
.sm-thumb-card .sm-thumb-cart-form { margin-top: 4px; }
.sm-thumb-card .sm-thumb-cart-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--sm-border);
  color: var(--sm-primary);
  border-radius: 28px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .15s ease;
}
.sm-thumb-card .sm-thumb-cart-link:hover,
.sm-thumb-card .sm-thumb-cart-link:focus-visible {
  background: var(--sm-primary);
  color: #fff;
  border-color: var(--sm-primary);
  transform: translateY(-1px);
}
.sm-thumb-card .sm-thumb-cart-link:active { transform: translateY(0); }

@media (max-width: 576px) {
  .sm-thumb-card .sm-thumb-image { padding: 22px 16px; border-radius: 18px; }
  .sm-thumb-card .sm-thumb-link img { max-height: 240px; }
  .sm-thumb-card .sm-thumb-heart { width: 38px; height: 38px; font-size: 15px; }
  .sm-thumb-card .sm-thumb-name { font-size: 14px; }
  .sm-thumb-card .sm-thumb-price { font-size: 16px; }
}

/* Eski tugma stillari (boshqa joylarda ishlatilsa) — saqlash uchun */
.product-thumb .sm-thumb-actions {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--sm-border);
  background: var(--sm-soft);
}
.product-thumb .sm-thumb-btn {
  flex: 1 1 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: var(--sm-primary);
  font-size: 19px;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, transform .15s ease, box-shadow .22s ease, flex-basis .35s ease;
  position: relative;
  overflow: hidden;
  outline: none;
}

/* Ripple effect — bosilganda dumaloq mavj */
.product-thumb .sm-thumb-btn::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}
.product-thumb .sm-thumb-btn:active::after {
  animation: sm-thumb-ripple .55s ease-out;
}
@keyframes sm-thumb-ripple {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: .6; }
  100% { transform: translate(-50%, -50%) scale(18); opacity: 0; }
}

/* ---- Savatcha tugma ---- */
.product-thumb .sm-thumb-btn:not(.sm-thumb-btn-heart):hover,
.product-thumb .sm-thumb-btn:not(.sm-thumb-btn-heart):focus-visible {
  background: var(--sm-primary);
  color: #fff;
  box-shadow: inset 0 0 0 0 transparent, 0 6px 14px rgba(7,33,52,.18);
}
.product-thumb .sm-thumb-btn:not(.sm-thumb-btn-heart):hover i,
.product-thumb .sm-thumb-btn:not(.sm-thumb-btn-heart):focus-visible i {
  animation: sm-cart-bounce .55s cubic-bezier(.34,1.56,.64,1);
}
@keyframes sm-cart-bounce {
  0%   { transform: translateY(0) rotate(0); }
  25%  { transform: translateY(-6px) rotate(-8deg); }
  55%  { transform: translateY(2px) rotate(6deg); }
  80%  { transform: translateY(-2px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* ---- Yurakcha tugma (brand navy) ---- */
.product-thumb .sm-thumb-btn-heart:hover,
.product-thumb .sm-thumb-btn-heart:focus-visible {
  background: var(--sm-primary);
  color: #fff;
  box-shadow: 0 6px 14px rgba(7,33,52,.22);
}
.product-thumb .sm-thumb-btn-heart:hover i,
.product-thumb .sm-thumb-btn-heart:focus-visible i {
  animation: sm-heart-pulse .8s ease-in-out;
}
@keyframes sm-heart-pulse {
  0%   { transform: scale(1); }
  15%  { transform: scale(1.25); }
  30%  { transform: scale(1); }
  45%  { transform: scale(1.18); }
  60%  { transform: scale(1); }
  100% { transform: scale(1); }
}

/* Sevimlilarga qo'shilgan holatda — toʻldirilgan navy */
.product-thumb .sm-thumb-btn-heart.sm-wished {
  background: var(--sm-primary);
  color: #fff;
}
.product-thumb .sm-thumb-btn-heart.sm-wished i {
  animation: sm-heart-burst .65s ease;
}
@keyframes sm-heart-burst {
  0%   { transform: scale(.4); }
  60%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.product-thumb .sm-thumb-btn:active { transform: scale(.97); }
.product-thumb .sm-thumb-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Eski universal bounce (boshqa joylarda ishlatilgan bo'lsa) */
@keyframes sm-thumb-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  70%  { transform: scale(.92); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .product-thumb .sm-thumb-btn,
  .product-thumb .sm-thumb-btn i { transition: none !important; animation: none !important; }
  .product-thumb .sm-thumb-btn::after { display: none; }
}

/* Naqd to'lov — Click kartochkasi */
.sm-pay-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 16px;
  background: var(--sm-soft);
  border: 1.5px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all .18s ease;
}
.sm-pay-method:hover { background: #fff; box-shadow: 0 4px 14px rgba(7,33,52,.08); transform: translateY(-1px); }
.sm-pay-method:active { transform: translateY(0); }
.sm-pay-method.active { background: #fff; border-color: var(--sm-primary); box-shadow: 0 4px 14px rgba(7,33,52,.08); }
.sm-click-logo { width: 36px; height: 36px; flex: 0 0 36px; }
.sm-click-text {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.5px;
  color: #111;
  line-height: 1;
}

/* ============================================================
   TEZKOR BUYURTMA (Muddatli to'lov) modallari
   ============================================================ */
.sm-qo-modal .modal-content {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(7,33,52,.18);
}
.sm-qo-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  background-color: var(--sm-soft);
  border-radius: 999px;
  width: 32px; height: 32px;
  opacity: 1;
  padding: 0;
}
.sm-qo-body { padding: 36px 28px 28px; }
.sm-qo-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--sm-primary);
  margin: 0 0 22px;
}
.sm-qo-label { font-size: 14px; color: var(--sm-muted); margin-bottom: 8px; display: block; }
.sm-qo-help { font-size: 13px; color: var(--sm-muted); text-align: center; margin-bottom: 16px; }
.sm-qo-help strong { color: var(--sm-primary); }

.sm-qo-phone-row {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--sm-primary);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}
.sm-qo-phone-row.is-invalid,
.sm-qo-phone-row:has(.is-invalid) { border-color: #dc3545; }
.sm-qo-flag { font-size: 22px; margin-right: 4px; }
.sm-qo-prefix { font-weight: 700; color: var(--sm-primary); margin-right: 6px; font-size: 18px; }
.sm-qo-input-phone {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 18px;
  color: var(--sm-primary);
  padding: 0;
}
.sm-qo-input-phone::placeholder { color: #b6bbc4; font-weight: 400; }

.sm-qo-input-code {
  width: 100%;
  border: 1.5px solid var(--sm-primary);
  border-radius: 14px;
  padding: 14px 18px;
  background: #fff;
  font-size: 22px;
  text-align: center;
  letter-spacing: 8px;
  font-weight: 700;
  color: var(--sm-primary);
  outline: 0;
}
.sm-qo-input-code.is-invalid { border-color: #dc3545; }

.sm-qo-error-phone,
.sm-qo-error-code {
  display: block;
  font-size: 13px;
  color: #dc3545;
  margin-top: 6px;
  min-height: 18px;
}
.sm-qo-error-phone:empty,
.sm-qo-error-code:empty { display: none; }

.sm-qo-btn {
  display: block;
  width: 100%;
  background: var(--sm-primary);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 16px;
  margin-top: 18px;
  cursor: pointer;
  transition: all .15s;
}
.sm-qo-btn:hover { background: var(--sm-primary-hover); transform: translateY(-1px); }
.sm-qo-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.sm-qo-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.sm-qo-change { color: var(--sm-muted); text-decoration: none; font-size: 13px; }
.sm-qo-change:hover { color: var(--sm-primary); }
.sm-qo-resend {
  background: transparent;
  border: 0;
  color: var(--sm-primary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.sm-qo-resend:disabled { color: var(--sm-muted); cursor: not-allowed; }

/* Success modal */
.sm-qo-success { padding: 40px 28px 32px; text-align: center; }
.sm-qo-check { font-size: 64px; color: #1aab39; margin-bottom: 18px; line-height: 1; }
.sm-qo-success-title { font-size: 22px; font-weight: 800; color: var(--sm-primary); margin: 0 0 10px; }
.sm-qo-success-text { color: var(--sm-muted); font-size: 15px; margin-bottom: 24px; }

/* ============================================================
   Unified checkout modal — sm-co-* (Naqd va Muddatli toʻlov)
   ============================================================ */
.sm-co-field { margin-bottom: 16px; }
.sm-co-input {
  width: 100%;
  background: #f6f8fa;
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--sm-dark);
  outline: none;
  transition: border-color .15s, background .15s;
  font-family: inherit;
}
.sm-co-input:focus { border-color: var(--sm-primary); background: #fff; }
.sm-co-input.is-invalid { border-color: #dc3545; }
select.sm-co-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23072134' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 44px;
}
.sm-co-btn {
  display: block;
  width: 100%;
  background: var(--sm-primary);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 17px;
  margin-top: 8px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.sm-co-btn:hover { background: var(--sm-primary-hover); transform: translateY(-1px); }
.sm-co-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.sm-co-form .invalid-feedback { font-size: 12px; margin-top: 4px; }

/* ============================================================
   Auth modal — kirish / profil yaratish (SMS OTP)
   ============================================================ */
.sm-auth-modal .modal-dialog { max-width: 520px; }
.sm-auth-content {
  border: 0;
  border-radius: 22px;
  padding: 36px 36px 32px;
  position: relative;
  box-shadow: 0 24px 60px rgba(7, 33, 52, .18);
}
.sm-auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #f1f2f6;
  color: var(--sm-dark);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sm-auth-close:hover { background: #e6e8ee; color: #000; }

.sm-auth-body { padding-top: 8px; }
.sm-auth-title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  color: var(--sm-dark);
  margin: 6px 0 26px;
  letter-spacing: -.2px;
}
.sm-auth-form { margin: 0; }
.sm-auth-label {
  display: block;
  font-size: 15px;
  color: var(--sm-muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.sm-auth-help {
  font-size: 14px;
  color: var(--sm-muted);
  margin: -6px 0 18px;
  text-align: center;
}
.sm-auth-help strong { color: var(--sm-dark); font-weight: 700; }

.sm-auth-alert:empty { display: none; }
.sm-auth-alert .alert { border-radius: 12px; font-size: 14px; padding: 10px 14px; margin-bottom: 16px; }

/* Phone field */
.sm-phone-field {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--sm-border);
  border-radius: 16px;
  background: #fff;
  padding: 6px 6px 6px 10px;
  min-height: 62px;
  transition: border-color .15s, box-shadow .15s;
}
.sm-phone-field:focus-within {
  border-color: var(--sm-primary);
  box-shadow: 0 0 0 3px rgba(7, 33, 52, .08);
}
.sm-phone-field.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .12);
}

.sm-phone-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 4px;
  border-right: 1px solid var(--sm-border);
  cursor: default;
  user-select: none;
}
.sm-flag-uz {
  display: inline-block;
  width: 30px;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  line-height: 0;
}
.sm-flag-uz svg { display: block; width: 100%; height: 100%; }
.sm-phone-flag .fa-chevron-down { color: var(--sm-muted); font-size: 11px; }

.sm-phone-prefix {
  padding: 0 12px 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--sm-dark);
  letter-spacing: .2px;
}
.sm-phone-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 20px;
  font-weight: 600;
  color: var(--sm-dark);
  padding: 6px 12px 6px 0;
  letter-spacing: .3px;
  min-width: 0;
}
.sm-phone-input::placeholder { color: #b7bcc4; font-weight: 500; }

/* OTP code input */
.sm-auth-code-input {
  display: block;
  width: 100%;
  border: 1.5px solid var(--sm-border);
  border-radius: 16px;
  background: #fff;
  padding: 18px 20px;
  font-size: 26px;
  font-weight: 700;
  color: var(--sm-dark);
  text-align: center;
  letter-spacing: 8px;
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.sm-auth-code-input:focus { border-color: var(--sm-primary); box-shadow: 0 0 0 3px rgba(7, 33, 52, .08); }
.sm-auth-code-input.is-invalid { border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220, 53, 69, .12); }
.sm-auth-code-input::placeholder { color: #d0d4dc; letter-spacing: 8px; }

.sm-auth-error {
  display: none;
  color: #dc3545;
  font-size: 13px;
  margin-top: 8px;
  padding-left: 4px;
}
.sm-phone-field.is-invalid + .sm-auth-error,
.sm-auth-code-input.is-invalid + .sm-auth-error { display: block; }

/* Primary CTA */
.sm-auth-btn {
  display: block;
  width: 100%;
  border: 0;
  margin-top: 18px;
  padding: 20px 18px;
  border-radius: 16px;
  background: #8b8caf;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, transform .12s, box-shadow .18s;
  box-shadow: 0 4px 14px rgba(139, 140, 175, .35);
}
.sm-auth-btn:hover { background: #777aa0; box-shadow: 0 6px 18px rgba(119, 122, 160, .42); }
.sm-auth-btn:active { transform: translateY(1px); }
.sm-auth-btn:disabled { opacity: .65; cursor: not-allowed; }

/* Footer (code form) */
.sm-auth-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.sm-auth-link,
.sm-auth-link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--sm-muted);
  text-decoration: none;
  cursor: pointer;
}
.sm-auth-link:hover { color: var(--sm-primary); }
.sm-auth-link-btn:not(:disabled) { color: var(--sm-primary); }
.sm-auth-link-btn:disabled { color: var(--sm-muted); cursor: not-allowed; }

/* Mobile */
@media (max-width: 575px) {
  .sm-auth-content { padding: 28px 20px 24px; border-radius: 18px; }
  .sm-auth-title { font-size: 20px; margin-bottom: 22px; }
  .sm-phone-prefix, .sm-phone-input { font-size: 18px; }
  .sm-phone-field { min-height: 58px; }
  .sm-auth-btn { padding: 18px 16px; font-size: 16px; }
}

/* ============================================================
   Sevimlilar badge va heart "filled" holati
   ============================================================ */
.sm-action-with-badge { position: relative; }
.sm-action-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 999px;
  border: 2px solid #fff;
  box-sizing: content-box;
  transform: translate(30%, -30%);
  display: none;
}
.sm-action-badge.sm-badge-show { display: inline-block; }

/* Heart "to'la" holati (sevimlilarda) */
/* Mahsulot sahifasidagi floating heart — navy outline */
.sm-prod-heart.sm-wished i { color: var(--sm-primary) !important; font-weight: 900; }
/* Eski product-thumb tugmasi — navy fon, oq ikona */
.sm-thumb-btn-heart.sm-wished { background: var(--sm-primary); color: #fff; }
.sm-thumb-btn-heart.sm-wished i { color: #fff !important; font-weight: 900; }
/* Yangi card style heart (top-right circle) — navy fon + oq toʻldirilgan yurakcha */
.sm-thumb-card .sm-thumb-heart.sm-wished i { color: #fff !important; font-weight: 900; }
