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

html,
body {
  font-family: "Lato", "Segoe UI", sans-serif;
  background-color: #fff;
  color: #2d2d2d;
}

body {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.smb-header-nav-container {
  width: 100%;
  background-color: #fcfaf9;
  padding: 0 clamp(12px, 5vw, 64px);
  border-bottom: 1px solid rgba(39, 39, 39, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.smb-header-fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.smb-header-nav {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 8px 0;
}

.smb-header-nav-logo a {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  text-transform: capitalize;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.smb-header-nav-wish a {
  color: #ff4a46;
  background-color: transparent;
  border: 1px solid #ff4a46;
  border-radius: 7px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.smb-header-nav-wish a:hover {
  background-color: rgba(255, 74, 70, 0.06);
  transform: translateY(-1px);
}

.smb-header-nav-wish a::before {
  content: var(--wish-count);
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 12px;
  line-height: 8px;
  padding: 5px;
  border-radius: 50%;
  background-color: #ff4742;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  height: 8px;
}

#smb-page {
  max-width: 768px;
  margin: 0 auto;
  padding: 92px 18px 40px;
}

.wishlist-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.wishlist-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  width: 100%;
  background: #fff;
  border: 1px solid rgba(19, 26, 34, 0.12);
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wishlist-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(18, 32, 55, 0.09);
  border-color: rgba(255, 90, 75, 0.24);
}

.wishlist-visual {
  position: relative;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 1.18;
}

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

#smb-video {
  width: 100%;
  object-fit: cover;
}

.wishlist-visual iframe {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 50, 45, 0.9);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 10px 18px rgba(255, 70, 70, 0.28);
  cursor: pointer;
}

.wishlist-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.wishlist-copy h2 {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.06em;
  color: #161616;
  margin: 2px 0 12px;
}

.wishlist-copy .wishlist-desc {
  font-size: 16px;
  line-height: 1.45;
  color: rgba(34, 34, 34, 0.84);
  margin-bottom: 18px;
  max-width: 100%;
}

.wishlist-copy .wishlist-desc > :first-child > * {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;   /* 显示行数 */
  overflow: hidden;
  text-overflow: ellipsis;
}

.wishlist-copy .wishlist-desc *:not(:first-child) {
  display: none;
}

.discount-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 110, 101, 0.10);
  color: #c10007;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.wishlist-actions {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.deal-button {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  min-height: 62px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff6f64 0%, #f65d4e 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.05em;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 18px rgba(255, 93, 78, 0.14);
}

.deal-button:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(255, 93, 78, 0.18);
}

.deal-button:disabled {
  background: #f5f5f5;
  border-color: #d9d9d9;
  color: #00000040;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.deal-button:disabled:hover {
  filter: none;
  transform: none;
  box-shadow: none;
}

.remove-button {
  border: none;
  background: transparent;
  color: rgba(34, 34, 34, 0.78);
  font-size: 16px;
  font-weight: 500;
  padding: 0 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-decoration: underline;
}

.remove-button:hover {
  opacity: 0.7;
}

.remove-button:disabled:hover {
  opacity: 0.6;
}

.wishlist-email {
  margin-top: 22px;
  padding: 18px 5px;
}

.wishlist-email h3 {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
  color: #1d1d1d;
}

.email-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.email-row input {
  flex: 1;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  color: #333;
  outline: none;
}

.email-row input::placeholder {
  color: rgba(34, 34, 34, 0.54);
}

.email-row button {
  min-width: 118px;
  min-height: 56px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff6f64 0%, #f65d4e 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 18px rgba(255, 93, 78, 0.14);
}

.email-row button:disabled {
  background: #f5f5f5;
  border-color: #d9d9d9;
  color: #00000040;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.email-row button:disabled:hover {
  filter: none;
  transform: none;
  box-shadow: none;
}

.email-row button:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(255, 93, 78, 0.18);
}

.wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.wishlist-empty p {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: #161616;
}

.hide-section {
  display: none;
}

.smb-footer p {
  text-align: center;
  font-size: 15px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 500;
  line-height: 29px;
  font-family: lato, Helvetica, sans-serif;
}

.alert-ele {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 10001;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.alert-ele.show {
  visibility: visible;
  opacity: 1;
  bottom: 90px;
}

.send-btn{
  position: relative;
}

/* 加载中隐藏文字（保留占位，宽度不抖动） */
.send-btn.is-loading .btn-text { visibility: hidden; }

/* 旋转圈 */
.send-btn .btn-loading {
  position: absolute;
  inset: 0;              /* 上下左右 0 + margin auto 实现居中，避免与旋转的 transform 冲突 */
  margin: auto;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  opacity: .85;
  animation: btn-spin .6s linear infinite;
  display: none;
}
.send-btn.is-loading .btn-loading { display: block; }

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

@media (max-width: 640px) {
  .wishlist-item {
    display: flex;
    flex-direction: column;
  }

  .wishlist-visual {
    width: 100%;
    max-width: none;
    aspect-ratio: 1.8;
  }

  .wishlist-copy h2 {
    font-size: 2.15rem;
  }

  .wishlist-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .deal-button {
    max-width: none;
    width: 100%;
  }

  .remove-button {
    align-self: flex-end;
    padding: 0;
  }

  .email-row {
    flex-direction: column;
  }

  .email-row button {
    width: 100%;
  }
}

.smb-header-nav-logo a.sgf-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  text-transform: none;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: 0;
}
.smb-header-nav-logo .sgf-logo-mark {
  height: 40px;
  width: auto;
  display: block;
}
.smb-header-nav-logo .sgf-logo-text {
  font-family: Poppins, Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #1565c0;
  line-height: 1.05;
}
.smb-header-nav-logo .sgf-logo-text em {
  font-style: normal;
  color: #e53935;
  font-weight: 800;
}
.smb-header-nav-wish a.no-count::before { display: none; }
a.deal-button { text-decoration: none; box-sizing: border-box; }
.wishlist-visual video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) {
  .smb-header-nav-logo .sgf-logo-mark { height: 32px; }
  .smb-header-nav-logo .sgf-logo-text { font-size: 16px; }
}