/* SS online — загвар (styles) */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background: #f4f5f7;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: inline-block;
  padding: 10px 18px;
  background: #fff;
  color: #1a1a1a;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.back-btn:hover {
  background: #f0f0f0;
  transform: translateX(-3px);
}

/* Захиалгын хуудасны хоёр баганын байрлал */
.layout {
  position: fixed;
  inset: 0;
  display: flex;
}

/* Зүүн багана */
.catalog-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.view.hidden,
.hidden {
  display: none !important;
}

/* Ангиллын дэлгэц */
#categoryView {
  overflow-y: auto;
  padding: 24px;
}

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

.category-card {
  background: #fff;
  border: none;
  border-radius: 14px;
  padding: 22px 12px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.category-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.category-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Ангилалаар / Брэндээр сонголт */
.mode-tabs {
  display: flex;
  gap: 6px;
}

.mode-tabs button {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #9aa0ab;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.mode-tabs button.active {
  color: #1a1a1a;
}

.store-heading {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
}

.mode-tabs button:hover {
  color: #1a1a1a;
}

/* Брэнд хайх */
.brand-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  margin-bottom: 16px;
}

.brand-search:focus {
  border-color: #4a6cf7;
}

/* Үсгийн самбар (A-Z) */
.letter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.letter-tabs button {
  min-width: 34px;
  height: 34px;
  border: none;
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease, color 0.2s ease;
}

.letter-tabs button.active {
  background: #4a6cf7;
  color: #fff;
}

.letter-tabs button:hover:not(.active) {
  background: #eef1ff;
}

/* Брэндийн grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.brand-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.brand-letter {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #eef1ff;
  color: #4a6cf7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.brand-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Olive Young хуудас харах дэлгэц */
.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 96px; /* "← Буцах" товчны зайг гаргах */
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.page-back {
  border: none;
  background: #f0f0f0;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.page-back:hover {
  background: #e2e2e2;
}

.page-title {
  font-size: 15px;
  font-weight: 600;
}

.frame-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
}

.oy-frame {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
}

.frame-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #666;
  font-size: 14px;
}

.frame-loading.hidden {
  display: none;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #e0e0e0;
  border-top-color: #4a6cf7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
  padding-left: 96px; /* "← Буцах" товчны зайг гаргах */
}

.catalog-title {
  font-size: 24px;
  font-weight: 700;
}

.lang-toggle {
  display: flex;
  background: #e9eaee;
  border-radius: 10px;
  padding: 4px;
  margin-left: auto;
}

.lang-toggle button {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  color: #555;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-toggle button.active {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Барааны дэлгэц (productsView) */
#productsView .catalog-head {
  margin-bottom: 0;
  padding: 20px 24px 16px 96px;
  border-bottom: 1px solid #eaeaea;
}

.product-count {
  font-size: 13px;
  color: #888;
  font-weight: 500;
  white-space: nowrap;
}

.product-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px;
}

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

.grid-loading,
.loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #888;
  font-size: 14px;
  padding: 20px 0;
}

.product-card {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(60, 130, 125, 0.08);
  transition: transform 0.4s cubic-bezier(.33,1,.68,1), box-shadow 0.4s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 46px rgba(60, 130, 125, 0.16);
}

.product-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #EEF5F4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-ph { font-size: 40px; opacity: .5; }
.product-wish {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #9AA8A6; box-shadow: 0 4px 12px rgba(46,39,48,.14);
  transition: transform .15s, color .15s; z-index: 2; padding: 0;
}
.product-wish:hover { transform: scale(1.1); color: #E76F9A; }
.product-wish.on { color: #E76F9A; }
.product-wish.on svg path { fill: #E76F9A; stroke: #E76F9A; }

.soldout-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Карт дээрх хямдрал/захиалга хаагдах countdown */
.card-countdown {
  position: absolute;
  right: 7px;
  bottom: 9px;
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 4px 9px;
  border-radius: 7px;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(2px);
  white-space: nowrap;
  pointer-events: none;
}

.card-countdown::before {
  content: "⏰ ";
}

.card-cd-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #e23744, #ff7a85);
  pointer-events: none;
}

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

.product-brand {
  font-size: 11px;
  color: #9AA8A6;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #23201F;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.product-rating { font-size: 12px; color: #9AA8A6; }

.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.product-prices { display: flex; flex-direction: column; gap: 0; line-height: 1.15; min-width: 0; }
.product-price-top { display: flex; align-items: center; gap: 6px; }

.product-price {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #23201F;
}

.product-price-orig {
  font-size: 12.5px;
  color: #a9bdb9;
  text-decoration: line-through;
  font-weight: 600;
}

.product-discount {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #e23744;
  background: #fdecec;
  border-radius: 5px;
  padding: 2px 5px;
  letter-spacing: -0.2px;
}

.product-add {
  width: 40px; height: 40px; flex: none; border: 1.6px solid #C5E3E0; cursor: pointer;
  border-radius: 50%; background: #fff; color: #2E6E6A;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.product-add:hover { transform: scale(1.08); background: #3FA39A; border-color: #3FA39A; color: #fff; }

/* ===== Барааны дэлгэрэнгүй (PDP) ===== */
.detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px 40px;
}

.pdp {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 36px;
}

/* Зүүн: галерей */
.pdp-gallery {
  width: 420px;
  max-width: 100%;
  flex-shrink: 0;
  position: sticky;
  top: 0;
}

.pdp-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f6f6f6;
  border-radius: 18px;
  overflow: hidden;
}

.pdp-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pdp-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  background: #f6f6f6;
}

.pdp-thumbs img.active {
  border-color: #4a6cf7;
}

/* Баруун: мэдээлэл */
.pdp-info {
  flex: 1;
  min-width: 280px;
}

.pdp-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pdp-brand {
  font-size: 15px;
  color: #4a6cf7;
  font-weight: 700;
}

.pdp-rating {
  font-size: 14px;
  color: #f5a623;
  font-weight: 600;
  white-space: nowrap;
}

.pdp-name {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pdp-price {
  font-size: 28px;
  font-weight: 800;
}

.pdp-price-orig {
  font-size: 16px;
  color: #aaa;
  text-decoration: line-through;
}

.pdp-points {
  margin-left: auto;
  background: #ff5a5f;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Хямдрал / захиалга хаагдах countdown */
.pdp-sale {
  background: #fff1f1;
  border: 1px solid #ffd5d7;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.pdp-sale.hidden {
  display: none;
}

.pdp-sale-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pdp-sale-label {
  font-size: 14px;
  font-weight: 700;
  color: #e23744;
  white-space: nowrap;
}

.pdp-sale-clock {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pdp-sale-clock.hidden {
  display: none;
}

.pdp-sale-clock > span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 38px;
}

.pdp-sale-clock b {
  font-size: 22px;
  font-weight: 800;
  color: #1f1f1f;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.pdp-sale-clock i {
  font-style: normal;
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.pdp-sale-clock em {
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  color: #ddd;
  align-self: flex-start;
  margin-top: 2px;
}

.pdp-sale-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: #c0535b;
  line-height: 1.5;
}

/* Хугацаа хаагдсан төлөв */
.pdp-sale.closed {
  background: #f4f5f7;
  border-color: #e3e5e9;
}

.pdp-sale.closed .pdp-sale-label {
  color: #888;
}

.pdp-sale.closed .pdp-sale-note {
  color: #999;
}

/* Идэвхгүй захиалга/сагслах товч */
.btn-cart.disabled,
.btn-order.disabled,
.btn-cart:disabled,
.btn-order:disabled {
  background: #e7e8ec;
  color: #aaa;
  border-color: #e7e8ec;
  cursor: not-allowed;
  pointer-events: none;
}

.pdp-option {
  margin-bottom: 16px;
}

.pdp-option.hidden {
  display: none;
}

.pdp-option-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #777;
  margin-bottom: 6px;
}

.pdp-option-select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  outline: none;
}

.pdp-option-select:focus {
  border-color: #2bb3c0;
}

.pdp-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.pdp-qty button {
  width: 44px;
  height: 44px;
  border: none;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
  color: #555;
}

.pdp-qty button:hover {
  background: #f4f5f7;
}

.pdp-qty span {
  min-width: 48px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.pdp-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-cart,
.btn-order {
  flex: 1;
  padding: 15px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-cart {
  background: #fff;
  color: #2bb3c0;
  border: 1.5px solid #2bb3c0;
}

.btn-cart:hover {
  background: #eafbfc;
}

.btn-order {
  background: #2bb3c0;
  color: #fff;
  border: 1.5px solid #2bb3c0;
}

.btn-order:hover {
  background: #239aa5;
}

.btn-wish {
  width: 52px;
  flex-shrink: 0;
  border: 1.5px solid #2bb3c0;
  background: #fff;
  border-radius: 12px;
  font-size: 20px;
  color: #2bb3c0;
  cursor: pointer;
}

.btn-wish.on {
  background: #2bb3c0;
  color: #fff;
}

.pdp-oy-link {
  display: inline-block;
  font-size: 13px;
  color: #1a8f3c;
  text-decoration: none;
  margin-bottom: 24px;
}

.pdp-oy-link:hover {
  text-decoration: underline;
}

/* Табууд */
.pdp-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 18px;
}

.pdp-tabs button {
  border: none;
  background: transparent;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.pdp-tabs button.active {
  color: #1a1a1a;
  border-bottom-color: #2bb3c0;
}

.pdp-panel {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  white-space: pre-line;
  word-break: break-word;
}

.pdp-panel.hidden {
  display: none;
}

.pdp-panel.clamped {
  max-height: 300px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 72%, transparent);
  mask-image: linear-gradient(#000 72%, transparent);
}

.pdp-panel-empty {
  color: #aaa;
}

.pdp-more {
  margin-top: 12px;
  background: #f4f5f7;
  border: 1px solid #e2e4e8;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pdp-more:hover {
  background: #ebedf0;
}

.pdp-more.hidden {
  display: none;
}

/* Доорх маркетингийн зурагнууд */
.detail-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}

.detail-images img {
  width: 100%;
  max-width: 620px;
  display: block;
}

/* Toast мэдэгдэл */
.ss-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ss-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Сагс / Захиалга ===== */
.cart-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #2bb3c0;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(43, 179, 192, 0.45);
  transition: transform 0.2s ease;
}

.cart-fab:hover { transform: scale(1.08); }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: #ff5a5f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: flex-end;
}

.cart-overlay.hidden { display: none; }

.cart-drawer {
  width: 420px;
  max-width: 92vw;
  height: 100%;
  background: repeating-linear-gradient(90deg,#FFFFFF 0,#FFFFFF 48px,#D2E8E6 48px,#D2E8E6 96px);
  display: flex;
  flex-direction: column;
  animation: cartIn 0.25s ease;
}

@keyframes cartIn { from { transform: translateX(40px); opacity: 0.5; } to { transform: translateX(0); opacity: 1; } }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 700;
  background: rgba(234,244,243,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #C5E3E0;
}
.cart-head #cartTitle { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; font-size: 24px; color: #23201F; }

.cart-x {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #2E6E6A;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-empty {
  text-align: center;
  color: #999;
  padding: 60px 0;
  font-size: 15px;
}

/* teal бүс (cart-items) дотор цагаан картууд — recos-ийн ягаан/цагаантай ижил эсрэг */
.cart-items {
  padding: 16px 14px 15px;
  background: #E3F1EF;
  border: 1px solid #BDDFDA;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #BCDEDA;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(60,130,125,0.08);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #EEF5F4;
}

.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-brand { font-size: 11px; color: #2E6E6A; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cart-item-name { font-size: 13px; font-weight: 600; line-height: 1.3; margin: 3px 0; color: #23201F; }
.cart-item-opt { font-size: 12px; color: #9AA8A6; }
.cart-item-price { font-size: 16px; font-weight: 800; color: #23201F; margin: 3px 0 1px; }
.cart-item-sub { font-size: 11.5px; color: #9AA8A6; margin-bottom: 8px; }

.cart-item-qty { display: flex; align-items: center; gap: 6px; }
.cart-item-qty button {
  width: 28px; height: 28px; border: 1px solid #C5E3E0; background: #fff; color: #2E6E6A;
  border-radius: 8px; cursor: pointer; font-size: 15px;
}
.cart-item-qty span { min-width: 28px; text-align: center; font-weight: 600; font-size: 14px; }
.cart-item-del {
  margin-left: auto; width: auto !important; padding: 0 10px; color: #ff5a5f;
  border-color: #f3c0c2 !important; font-size: 12px !important;
}

/* "Сагсанд нэмэгдлээ" мэдэгдэл (сагс нээгдэхэд) */
.cart-added { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #23201F; background: #fff; border: 1px solid #C5E3E0; border-radius: 12px; padding: 11px 14px; margin-bottom: 14px; box-shadow: 0 6px 20px rgba(60,130,125,0.08); }
.cart-added-check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #3FA39A; color: #fff; font-size: 13px; flex: none; }

.cart-foot {
  border-top: 1px solid #C5E3E0;
  background: rgba(234,244,243,0.92);
  backdrop-filter: blur(8px);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Сагсан доторх cross-sell — Үүнтэй сайн зохицоно (ягаан бүс = санал болгож буй, сагсанд ОРООГҮЙ) */
.cart-recos { margin-top: 22px; padding: 16px 14px 15px; background: #FCEFF4; border: 1px solid #F3D5E0; border-radius: 18px; }
.cart-recos-title { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; font-size: 21px; color: #C2517B; }
.cart-recos-derma { font-size: 12px; color: #B07E92; margin: 4px 0 12px; }
.cart-recos-list { display: flex; flex-direction: column; gap: 10px; }
.cart-reco { display: flex; gap: 11px; align-items: center; padding: 11px; background: #fff; border: 1px solid #F1D3DE; border-radius: 14px; box-shadow: 0 4px 14px rgba(200,90,140,0.08); }
.cart-reco-img { width: 58px; height: 58px; flex: none; border-radius: 10px; overflow: hidden; background: #EEF5F4; }
.cart-reco-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-reco-info { flex: 1; min-width: 0; }
.cart-reco-brand { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #2E6E6A; }
.cart-reco-name { font-size: 12.5px; font-weight: 600; line-height: 1.3; margin: 2px 0; color: #23201F; }
.cart-reco-why { font-size: 11px; color: #9AA8A6; line-height: 1.35; margin-bottom: 5px; }
.cart-reco-prices { display: flex; align-items: baseline; gap: 7px; }
.cart-reco-orig { font-size: 11.5px; color: #b6c4c1; text-decoration: line-through; font-weight: 600; }
.cart-reco-price { font-size: 14.5px; font-weight: 800; color: #E76F9A; }
.cart-reco-add { width: 38px; height: 38px; flex: none; border: 1.5px solid #EEC2D2; border-radius: 50%; background: #fff; color: #E76F9A; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.cart-reco-add:hover { background: #E76F9A; border-color: #E76F9A; color: #fff; transform: scale(1.08); }
.cart-reco-add.added { background: #E76F9A; border-color: #E76F9A; color: #fff; }

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
}
.cart-total strong { font-size: 20px; }

/* Сагсны нийт дүн / хөнгөлөлт */
.cart-summary { display: flex; flex-direction: column; gap: 6px; }
.cart-sum-row { display: flex; justify-content: space-between; font-size: 13.5px; color: #777; }
.cart-sum-row.cart-discount { color: #2f9e44; font-weight: 700; }
.cart-item-orig { text-decoration: line-through; color: #c2b8bd; }

.cart-checkout-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: #3FA39A;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.cart-checkout-btn:hover { background: #2E6E6A; }
.cart-checkout-btn:disabled { opacity: 0.6; cursor: default; }

.cart-back-btn {
  width: 100%;
  padding: 10px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 14px;
  cursor: pointer;
}

/* Захиалгын маягт */
.checkout-form { display: flex; flex-direction: column; gap: 14px; }
.checkout-form label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; color: #555; gap: 6px; }
.checkout-form input, .checkout-form textarea {
  padding: 11px 13px; border: 1px solid #ddd; border-radius: 10px;
  font-size: 14px; font-weight: 400; outline: none; font-family: inherit;
}
.checkout-form input:focus, .checkout-form textarea:focus { border-color: #2bb3c0; }

.checkout-summary { margin-top: 18px; border-top: 1px solid #eee; padding-top: 14px; }
.cs-row { display: flex; justify-content: space-between; font-size: 13px; color: #555; padding: 4px 0; gap: 10px; }

.cart-success { text-align: center; padding: 40px 10px; }
.cart-success-icon { font-size: 48px; }
.cart-success h3 { font-size: 20px; margin: 12px 0 8px; }
.cart-success p { color: #666; font-size: 14px; margin: 4px 0; }

.chat-col {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid #e5e5e5;
}

.chat-header {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-close {
  border: none;
  background: transparent;
  font-size: 16px;
  color: #888;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.chat-close:hover {
  background: #f0f0f0;
  color: #1a1a1a;
}

.chat-open {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #4a6cf7;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(74, 108, 247, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-open:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(74, 108, 247, 0.5);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.msg-bot {
  align-self: flex-start;
  background: #f0f0f0;
  color: #1a1a1a;
  border-bottom-left-radius: 4px;
}

.msg-user {
  align-self: flex-end;
  background: #4a6cf7;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e5e5;
}

.chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d5d5d5;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}

.chat-input input:focus {
  border-color: #4a6cf7;
}

.chat-input button {
  padding: 10px 16px;
  background: #4a6cf7;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chat-input button:hover {
  background: #3a5ce5;
}

/* ===== Нүүр хуудас (дэлгүүрүүд) ===== */
body.home-page {
  align-items: flex-start;
}

.home {
  width: 100%;
  max-width: 920px;
  padding: 20px 8px 60px;
}

.home-header {
  text-align: center;
  margin-bottom: 36px;
}

.home-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.home-sub {
  font-size: 15px;
  color: #777;
  margin-top: 4px;
}

.store-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
}

.store-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.store-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.store-card.soon {
  background: #f0f1f4;
  box-shadow: none;
  cursor: default;
  border: 2px dashed #d2d5dc;
}

.store-card.soon:hover {
  transform: none;
  box-shadow: none;
}

.store-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: #eef1ff;
  margin-bottom: 8px;
}

.store-logo.oy {
  background: #1a8f3c;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -1px;
}

.store-logo.oy.kr {
  background: #c8102e;
}

.store-name {
  font-size: 17px;
  font-weight: 700;
}

.store-card.soon .store-name {
  color: #9aa0ab;
}

.store-sub {
  font-size: 13px;
  color: #888;
}

.cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: 260px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.card-text {
  font-size: 14px;
  color: #666;
}

/* ===== Төлбөр / зээлийн сонголтууд (PDP) ===== */
.pdp-pay {
  margin: 4px 0 18px;
}
.pdp-pay.hidden { display: none; }

.pdp-pay-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.pay-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pay-card:hover {
  border-color: #2bb3c0;
  box-shadow: 0 4px 14px rgba(43, 179, 192, 0.12);
}

.pay-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.pay-logo.storepay { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.pay-logo.pocket { background: linear-gradient(135deg, #f43f5e, #e11d48); }

.pay-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pay-name {
  font-size: 12px;
  color: #888;
  font-weight: 600;
}
.pay-amount {
  font-size: 17px;
  font-weight: 800;
  color: #1a1a1a;
}

.pay-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}
.pay-badge {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  background: #f4f4f5;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.pay-down {
  font-size: 11px;
  color: #999;
}

.pay-info {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid #c9c9c9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  color: #888;
  font-family: Georgia, "Times New Roman", serif;
}
.pay-card:hover .pay-info {
  border-color: #2bb3c0;
  color: #2bb3c0;
}

/* ===== Зээлийн нөхцлийн дэлгэрэнгүй (modal) ===== */
.loan-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.loan-overlay.hidden { display: none; }

.loan-modal {
  width: 460px;
  max-width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  animation: loanIn 0.2s ease;
}
@keyframes loanIn { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.loan-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.loan-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.loan-logo.storepay { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.loan-logo.pocket { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.loan-title { flex: 1; font-size: 18px; font-weight: 700; }
.loan-x {
  border: none;
  background: transparent;
  font-size: 18px;
  color: #999;
  cursor: pointer;
}

.loan-body { padding: 16px 20px 22px; }

.loan-calc {
  background: #f0fafb;
  color: #178a96;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 12px;
}
.loan-calc b { font-size: 16px; font-weight: 800; }

.loan-stat {
  border: 1px solid #ededed;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.loan-stat-wide { margin-bottom: 10px; }
.loan-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.loan-stat-label { font-size: 12px; color: #999; }
.loan-stat-val { font-size: 16px; font-weight: 700; color: #1a1a1a; }

.loan-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff5f6;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 4px 0 16px;
}
.loan-note-i {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f43f5e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
  font-family: Georgia, serif;
}
.loan-note-h { font-size: 12px; color: #b06; font-weight: 600; margin-bottom: 2px; }
.loan-note-t { font-size: 13px; color: #444; line-height: 1.5; }

.loan-guide-h {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.loan-guide {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.loan-guide li {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  padding-left: 4px;
}

/* ===== Хүслийн жагсаалтын нийгмийн баталгаа ===== */
.pdp-wishline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #777;
  margin: -4px 0 18px;
}
.pdp-wishline.hidden { display: none; }
.pdp-wishline-heart { font-size: 15px; }
.pdp-wishline b { color: #e23744; font-weight: 800; }
.pdp-wishline-em { color: #e23744; font-weight: 600; }

/* ===== Монголд ирэх өдөр ===== */
.pdp-delivery {
  background: #f6f7f9;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.pdp-delivery-head {
  font-size: 13px;
  color: #888;
  font-weight: 600;
  margin-bottom: 10px;
}
.pdp-delivery-body {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pdp-flag { font-size: 26px; line-height: 1; }
.pdp-flag-arrow { color: #bbb; font-size: 18px; font-weight: 700; }
.pdp-delivery-info { margin-left: 6px; }
.pdp-delivery-date { font-size: 16px; font-weight: 800; color: #1a1a1a; }
.pdp-delivery-days { font-size: 12px; color: #999; margin-top: 1px; }

/* ===== Placement A: Cross-sell slide-in нэмэлт панел (AOV) ===== */
.addon-overlay { position: fixed; inset: 0; z-index: 250; background: rgba(46, 39, 48, 0.42); display: flex; justify-content: flex-end; }
.addon-overlay.hidden { display: none; }
.addon-panel { width: 420px; max-width: 92vw; height: 100%; background: repeating-linear-gradient(90deg,#FFFFFF 0,#FFFFFF 48px,#D2E8E6 48px,#D2E8E6 96px); display: flex; flex-direction: column; animation: cartIn 0.25s ease; font-family: "Manrope", system-ui, sans-serif; }
.addon-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: rgba(234,244,243,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid #C5E3E0; }
.addon-added { font-size: 17px; font-weight: 700; color: #23201F; }
.addon-check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #3FA39A; color: #fff; font-size: 13px; margin-left: 4px; }
.addon-x { border: none; background: transparent; font-size: 18px; cursor: pointer; color: #2E6E6A; width: 32px; height: 32px; border-radius: 8px; }
.addon-x:hover { background: #E0EFEC; }
.addon-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.addon-section-title { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; font-size: 22px; color: #23201F; margin-bottom: 4px; }
.addon-derma { font-size: 12px; color: #7C8B89; margin: 4px 0 14px; }
.addon-list { display: flex; flex-direction: column; gap: 12px; }
.addon-row { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid #C5E3E0; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(60,130,125,0.08); }
.addon-row-img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: #EEF5F4; }
.addon-row-img img { width: 100%; height: 100%; object-fit: cover; }
.addon-row-info { flex: 1; min-width: 0; }
.addon-row-brand { font-size: 11px; color: #2E6E6A; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.addon-row-name { font-size: 13px; font-weight: 600; line-height: 1.3; margin: 2px 0; color: #23201F; }
.addon-row-why { font-size: 11.5px; color: #9AA8A6; line-height: 1.35; margin-bottom: 5px; }
.addon-row-price { font-size: 15px; font-weight: 800; color: #23201F; display: flex; align-items: baseline; gap: 7px; }
.addon-row-orig { font-size: 12px; color: #b6c4c1; text-decoration: line-through; font-weight: 600; }
.addon-row-now { color: #E76F9A; }
.addon-add { width: 42px; height: 42px; flex: none; border: 1.5px solid #C5E3E0; border-radius: 50%; background: #fff; color: #2E6E6A; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s; }
.addon-add:hover { transform: scale(1.08); background: #3FA39A; border-color: #3FA39A; color: #fff; }
.addon-add.added { background: #3FA39A; color: #fff; border-color: #3FA39A; }
.addon-foot { border-top: 1px solid #C5E3E0; background: rgba(234,244,243,0.92); backdrop-filter: blur(8px); padding: 16px 20px; display: flex; gap: 10px; }
.addon-continue { flex: 1; padding: 14px; border: 1.5px solid #C5E3E0; border-radius: 12px; background: #fff; color: #23201F; font-size: 15px; font-weight: 600; cursor: pointer; }
.addon-continue:hover { background: #E0EFEC; }
.addon-tocart { flex: 1; padding: 14px; border: none; border-radius: 12px; background: #3FA39A; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.addon-tocart:hover { background: #2E6E6A; }

/* ===== Нэвтрэх — баруунаас гулсах drawer; стрип дэвсгэр дээр тодрох цагаан карт ===== */
.ss-auth-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(46,39,48,.5); backdrop-filter: blur(2px); display: flex; justify-content: flex-end; }
.ss-auth-overlay.hidden { display: none; }
.ss-auth-modal { position: relative; width: 430px; max-width: 92vw; height: 100%; overflow-y: auto; display: flex; background: repeating-linear-gradient(90deg,#FFFFFF 0,#FFFFFF 48px,#D2E8E6 48px,#D2E8E6 96px); border-left: 1px solid #C5E3E0; padding: 28px 26px; animation: ssAuthSlide .3s cubic-bezier(.33,1,.68,1); font-family: 'Manrope', system-ui, sans-serif; }
@keyframes ssAuthSlide { from { transform: translateX(100%); } to { transform: translateX(0); } }
/* Цагаан карт — стрип дэвсгэрээс сүүдэр + захтайгаар тодрон гарна */
.ss-auth-card { position: relative; margin: auto; width: 100%; max-width: 372px; background: #fff; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; padding: 36px 32px 28px; text-align: center; box-shadow: 0 24px 60px rgba(46,110,106,.22), 0 4px 14px rgba(46,110,106,.12); }
.ss-auth-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: none; background: transparent; border-radius: 10px; cursor: pointer; font-size: 19px; color: #B7B0B5; line-height: 1; transition: background .2s, color .2s; }
.ss-auth-x:hover { background: #F2EEF0; color: #23201F; }
.ss-auth-brand { display: inline-block; position: relative; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600; font-size: 30px; color: #23201F; }
.ss-auth-dot { position: absolute; top: 4px; right: -10px; width: 6px; height: 6px; border-radius: 50%; background: #23201F; }
.ss-auth-since { margin: 9px 0 0; font-size: 11px; font-weight: 700; letter-spacing: 5px; color: #9AA8A6; }
.ss-auth-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 33px; color: #23201F; margin: 22px 0 8px; }
.ss-auth-sub { font-size: 14px; color: #6E5C66; margin: 0 auto 22px; max-width: 278px; line-height: 1.55; }
.ss-auth-form { display: flex; flex-direction: column; text-align: left; }
.ss-auth-field { position: relative; display: block; background: #fff; border: 1.5px solid #C5E3E0; border-radius: 14px; padding: 17px 16px 11px; margin-bottom: 15px; box-shadow: 0 4px 14px rgba(60,130,125,.06); transition: border-color .2s, box-shadow .2s; }
.ss-auth-field:focus-within { border-color: #3FA39A; box-shadow: 0 0 0 3px rgba(63,163,154,.14); }
.ss-auth-fl { position: absolute; top: -8px; left: 13px; background: #fff; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #7C8B89; border: 1px solid #DBEBE8; }
.ss-auth-field input { width: 100%; border: none; background: transparent; outline: none; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 600; color: #23201F; padding: 0; }
.ss-auth-field input::placeholder { color: #B7C6C3; font-weight: 500; }
.ss-auth-field-pw input { padding-right: 38px; }
.ss-auth-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: none; background: transparent; cursor: pointer; color: #9AA8A6; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.ss-auth-eye:hover { background: #EEF5F4; color: #2E6E6A; }
.ss-auth-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 18px; gap: 12px; }
.ss-auth-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #6E5C66; font-weight: 500; cursor: pointer; }
.ss-auth-check input { width: 16px; height: 16px; accent-color: #3FA39A; cursor: pointer; }
.ss-auth-forgot { font-size: 13px; font-weight: 700; color: #2E6E6A; text-decoration: none; white-space: nowrap; }
.ss-auth-forgot:hover { text-decoration: underline; }
.ss-auth-submit { width: 100%; padding: 15px; border: none; border-radius: 14px; background: #3FA39A; color: #fff; font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s; }
.ss-auth-submit:hover { background: #2E6E6A; }
.ss-auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #9AA8A6; font-size: 12px; font-weight: 600; }
.ss-auth-or::before, .ss-auth-or::after { content: ""; flex: 1; height: 1px; background: #C5E3E0; }
.ss-google-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 15px 18px; border: 1.5px solid #dadce0; border-radius: 14px; background: #fff; color: #3c4043; font-family: 'Manrope', sans-serif; font-size: 15.5px; font-weight: 600; cursor: pointer; transition: box-shadow .2s, background .2s; }
.ss-google-btn:hover { box-shadow: 0 2px 12px rgba(60,64,67,.18); background: #F8FBFA; }
.ss-google-btn.loading { opacity: .7; pointer-events: none; }
.ss-google-ic { display: inline-flex; flex: none; }
.ss-auth-signup { text-align: center; font-size: 13.5px; color: #9AA8A6; margin: 20px 0 0; }
.ss-auth-signup a { color: #23201F; font-weight: 800; text-decoration: none; }
.ss-auth-signup a:hover { color: #2E6E6A; }
.ss-auth-fine { font-size: 12px; color: #9AA8A6; line-height: 1.6; margin: 16px auto 0; max-width: 280px; }
.ss-auth-fine a { color: #2E6E6A; text-decoration: none; font-weight: 700; }
.ss-auth-fine a:hover { text-decoration: underline; }
.ss-auth-avatar { width: 74px; height: 74px; margin: 6px auto 0; border-radius: 50%; background: linear-gradient(135deg,#3FA39A,#2E6E6A); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 34px; overflow: hidden; box-shadow: 0 10px 26px rgba(60,130,125,.3); }
.ss-auth-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ss-auth-logout { margin-top: 22px; width: 100%; padding: 13px; border: 1.5px solid #C5E3E0; border-radius: 14px; background: #fff; color: #2E6E6A; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; }
.ss-auth-logout:hover { background: #EEF5F4; }
/* Header-т нэвтэрсэн төлвийн тэмдэг */
.ss-account { position: relative; }
body.ss-authed .ss-account::after { content: attr(data-initial); position: absolute; bottom: -4px; right: -6px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: #3FA39A; color: #fff; font-size: 9px; font-weight: 800; line-height: 15px; text-align: center; box-shadow: 0 0 0 2px #fff; font-family: 'Manrope', sans-serif; }
