/**
 * Trust bar + Newsletter — premium app-style (mobile-first)
 */

/* —— Trust bar —— */
.home-trust-premium {
  padding: 8px 0 4px !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.home-trust-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 14px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-trust-scroll::-webkit-scrollbar {
  display: none;
}

.trust-card {
  flex: 0 0 min(78vw, 220px);
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(233, 30, 99, 0.1);
  box-shadow: 0 4px 18px rgba(26, 18, 24, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

.trust-icon-ship {
  background: linear-gradient(145deg, #fce4ec 0%, #f8bbd0 100%);
}
.trust-icon-lock {
  background: linear-gradient(145deg, #e8eaf6 0%, #c5cae9 100%);
}
.trust-icon-return {
  background: linear-gradient(145deg, #fff3e0 0%, #ffcc80 100%);
}

.trust-card-body {
  min-width: 0;
  text-align: left;
}

.trust-card-body strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #1a1218;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
  line-height: 1.2;
}

.trust-card-body span {
  display: block;
  font-size: 11px;
  color: #7a6b72;
  line-height: 1.35;
  font-weight: 500;
}

/* —— Newsletter —— */
.home-newsletter-premium {
  padding: 8px 14px 20px !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.newsletter-app-card {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 20px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(155deg, #fce4ec 0%, #fff 38%, #fff8f0 100%);
  border: 1px solid rgba(233, 30, 99, 0.14);
  box-shadow:
    0 8px 32px rgba(233, 30, 99, 0.12),
    0 2px 8px rgba(26, 18, 24, 0.04);
}

.newsletter-app-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-app-card::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c2185b;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(233, 30, 99, 0.2);
  border-radius: 999px;
  position: relative;
  z-index: 1;
}

.newsletter-app-card h3 {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 800;
  color: #1a1218;
  margin: 0 0 6px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.newsletter-app-card > p {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: #5c4d55;
  margin: 0 0 16px;
  line-height: 1.5;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-app-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
}

.newsletter-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(233, 30, 99, 0.15);
  box-shadow: 0 2px 10px rgba(26, 18, 24, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-input-wrap:focus-within {
  border-color: #e91e63;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.12);
}

.newsletter-input-icon {
  padding-left: 14px;
  font-size: 16px;
  opacity: 0.55;
  flex-shrink: 0;
  line-height: 1;
}

.newsletter-app-form input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 14px 14px 14px 8px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: #1a1218;
  outline: none;
}

.newsletter-app-form input[type='email']::placeholder {
  color: #a89ba2;
}

.newsletter-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #e91e63 0%, #ff6b9d 100%);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.newsletter-submit-btn:active {
  transform: scale(0.98);
}

.newsletter-btn-arrow {
  font-size: 16px;
  opacity: 0.9;
}

/* Tablet+ — trust: 3 in row, no scroll */
@media (min-width: 600px) {
  .home-trust-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    overflow: visible;
    padding: 4px 14px 12px;
    max-width: 1240px;
    margin: 0 auto;
  }
  .trust-card {
    flex: none;
    min-width: 0;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .home-trust-scroll {
    padding: 6px 20px 14px;
    gap: 16px;
  }
  .trust-card {
    padding: 18px 16px;
    border-radius: 18px;
  }
  .trust-card-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
  .trust-card-body strong {
    font-size: 14px;
  }
  .trust-card-body span {
    font-size: 12px;
  }
  .trust-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(233, 30, 99, 0.1);
  }

  .home-newsletter-premium {
    padding: 12px 20px 28px !important;
  }
  .newsletter-app-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 32px 26px;
    border-radius: 24px;
  }
  .newsletter-app-card h3 {
    font-size: 24px;
  }
  .newsletter-app-card > p {
    font-size: 14px;
    max-width: 360px;
    margin-bottom: 20px;
  }
  .newsletter-app-form {
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
  }
  .newsletter-input-wrap {
    flex: 1;
    border-radius: 999px;
  }
  .newsletter-submit-btn {
    width: auto;
    flex-shrink: 0;
    padding: 14px 28px;
    border-radius: 999px;
  }
}

/* Safe area above footer nav on mobile */
.page-home .home-newsletter-premium {
  padding-bottom: calc(16px + var(--safe-bottom, 0px)) !important;
}
