.spr-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: min(100vw, 430px);
  margin: 0 auto;
  background: #f4f5f7;
  color: #17191f;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  overflow-y: auto;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.08);
}

.spr-root * {
  box-sizing: border-box;
}

.spr-page {
  min-height: 100vh;
  padding-bottom: 84px;
  background: #f4f5f7;
}

.spr-home {
  background: #fff;
}

.spr-store-hero {
  min-height: 112px;
  padding: 28px 18px 18px;
  color: #fff;
  background: linear-gradient(135deg, #ff593f 0%, #cf57df 48%, #6d76ff 100%);
  position: relative;
}

.spr-store-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.spr-store-subtitle {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.92;
}

.spr-capsule {
  position: absolute;
  right: 14px;
  top: 26px;
  width: 116px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #181818;
  font-size: 28px;
  letter-spacing: 3px;
}

.spr-capsule::after {
  content: "";
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 4px solid #171717;
  display: block;
}

.spr-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px 12px 18px;
  background: #fff;
}

.spr-action-card {
  min-height: 90px;
  border-radius: 12px;
  padding: 16px 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.spr-action-contact {
  background: linear-gradient(135deg, #6657f3, #8a63ff);
}

.spr-action-buy {
  background: linear-gradient(135deg, #ff5858, #ff4940);
}

.spr-qr {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, #111 25%, transparent 25% 75%, #111 75%) 0 0/16px 16px,
    linear-gradient(#111 25%, transparent 25% 75%, #111 75%) 0 0/16px 16px,
    #fff;
  border: 5px solid #fff;
  flex: 0 0 auto;
}

.spr-phone-icon {
  width: 46px;
  height: 58px;
  border: 7px solid #fff;
  border-radius: 8px;
  position: relative;
  opacity: 0.9;
}

.spr-phone-icon::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}

.spr-action-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.spr-action-text {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.9;
  white-space: nowrap;
}

.spr-filter-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 14px 10px;
  background: #fff;
  border-bottom: 1px solid #f0f1f3;
}

.spr-filter {
  height: 36px;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 17px;
  font-weight: 800;
}

.spr-filter::after {
  content: "⌄";
  margin-left: 7px;
  font-size: 25px;
  line-height: 0;
}

.spr-products {
  background: #f2f3f5;
}

.spr-product-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 12px;
  background: #fff;
  border-bottom: 8px solid #f2f3f5;
}

.spr-product-img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  background: #eef1f4;
}

.spr-product-name {
  font-size: 17px;
  line-height: 1.35;
  color: #101010;
}

.spr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.spr-tag {
  color: #386fd1;
  border: 1px solid #386fd1;
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 14px;
  line-height: 1.35;
}

.spr-row-bottom {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.spr-price {
  color: #f23528;
  font-size: 21px;
  letter-spacing: 0;
}

.spr-stock {
  color: #9a9a9a;
  font-size: 15px;
  margin-left: 10px;
}

.spr-btn {
  border: 0;
  border-radius: 999px;
  background: #ff2f24;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 16px;
  white-space: nowrap;
}

.spr-nav-title {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #eceef2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 4;
}

.spr-back {
  position: absolute;
  left: 14px;
  border: 0;
  background: transparent;
  font-size: 33px;
  line-height: 1;
}

.spr-detail-hero {
  background: #dce1e5;
  padding: 20px 0 12px;
  text-align: center;
}

.spr-detail-img {
  width: min(88vw, 360px);
  height: 360px;
  object-fit: cover;
}

.spr-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.spr-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #aaa;
}

.spr-dot-on {
  background: #111;
}

.spr-card {
  margin: 12px 8px;
  background: #fff;
  border-radius: 8px;
  padding: 14px;
}

.spr-detail-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spr-detail-title {
  font-size: 20px;
  line-height: 1.45;
}

.spr-service-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.spr-service-text {
  color: #474b52;
  font-size: 15px;
  line-height: 1.55;
}

.spr-detail-actions {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100vw, 430px);
  height: 74px;
  background: #fff;
  border-top: 1px solid #eceef2;
  display: grid;
  grid-template-columns: 72px 72px 1fr;
  align-items: center;
  padding: 8px 10px;
  z-index: 2147483001;
}

.spr-icon-action {
  border: 0;
  background: #fff;
  color: #3d424a;
  font-size: 13px;
}

.spr-icon-action span {
  display: block;
  font-size: 25px;
  line-height: 1.1;
}

.spr-notice {
  height: 58px;
  background: #fff8df;
  color: #c9602a;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  font-size: 17px;
}

.spr-cart-item {
  background: #fff;
  padding: 18px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 128px 42px;
  gap: 8px;
  align-items: center;
}

.spr-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d6d8dc;
}

.spr-cart-name {
  font-size: 17px;
  line-height: 1.4;
}

.spr-qty {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-size: 24px;
}

.spr-qty-num {
  min-width: 50px;
  height: 34px;
  border-radius: 4px;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 17px;
}

.spr-delete {
  border: 0;
  background: transparent;
  color: #fb352b;
  font-size: 30px;
}

.spr-cart-total {
  position: fixed;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  width: min(100vw, 430px);
  height: 72px;
  background: #fff;
  border-top: 1px solid #eceef2;
  display: grid;
  grid-template-columns: 84px 1fr 124px;
  align-items: center;
  padding: 0 12px;
  z-index: 2147483001;
}

.spr-empty {
  padding: 80px 20px;
  text-align: center;
  color: #9a9a9a;
  font-size: 15px;
}

.spr-user-head {
  height: 190px;
  padding: 56px 22px 24px;
  background: linear-gradient(135deg, #b45cff 0%, #69b7ff 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
}

.spr-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f2f2f2;
}

.spr-user-name {
  font-size: 25px;
  color: #1d1f24;
  font-weight: 800;
}

.spr-user-id {
  margin-top: 12px;
  font-size: 18px;
}

.spr-section-title {
  color: #9aa2a9;
  font-size: 18px;
  padding: 24px 24px 12px;
}

.spr-order-box {
  margin: 0 12px 28px;
  background: #fff;
  border-radius: 7px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.spr-order-stat {
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-right: 1px solid #f1f1f1;
  color: #555;
}

.spr-order-stat strong {
  color: #111;
  font-size: 22px;
  margin-bottom: 8px;
}

.spr-contact-card {
  margin: 0 12px;
  height: 62px;
  border-radius: 7px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: #5f6369;
  font-size: 18px;
}

.spr-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100vw, 430px);
  height: 64px;
  background: #fff;
  border-top: 1px solid #eceef2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 2147483002;
}

.spr-tab {
  border: 0;
  background: #fff;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 14px;
  position: relative;
}

.spr-tab-icon {
  font-size: 26px;
  line-height: 1;
}

.spr-tab-active {
  color: #7c67ee;
}

.spr-badge {
  position: absolute;
  top: 6px;
  left: 54%;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ff4b55;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

@media (max-width: 360px) {
  .spr-product-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .spr-product-img {
    width: 96px;
    height: 96px;
  }
  .spr-btn {
    padding: 9px 12px;
    font-size: 14px;
  }
}
