/* E-Commerce App hero — from Corewave eCommerce App Page (01 Hero) */

@keyframes cw-ecom-pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes cw-ecom-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cw-ecom-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes cw-ecom-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 85, 39, 0.55);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(255, 85, 39, 0);
  }
}

.cw-ecommerce-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 500px at 78% 45%, rgba(212, 245, 60, 0.1), transparent 70%),
    radial-gradient(500px 400px at 60% 95%, rgba(255, 85, 39, 0.16), transparent 70%),
    #141210;
  color: #eae7e1;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.cw-ecommerce-hero__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 40px;
  align-items: center;
}

.cw-ecommerce-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.cw-ecommerce-hero__eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #ff7a50;
}

.cw-ecommerce-hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5527;
  animation: cw-ecom-ping 1.8s infinite;
  flex: none;
}

.cw-ecommerce-hero__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #f3efe7;
}

.cw-ecommerce-hero__title-em {
  color: #d4f53c;
}

.cw-ecommerce-hero__lead {
  margin: 0;
  max-width: 560px;
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(234, 231, 225, 0.78);
  text-wrap: pretty;
}

.cw-ecommerce-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cw-ecommerce-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  box-sizing: border-box;
}

.cw-ecommerce-hero__btn--primary {
  background: #e0431c;
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(224, 67, 28, 0.8);
}

.cw-ecommerce-hero__btn--primary:hover {
  background: #c93a16;
  color: #fff;
}

.cw-ecommerce-hero__btn--secondary {
  padding: 0 22px;
  border: 1px solid rgba(234, 231, 225, 0.25);
  color: #eae7e1;
  font-weight: 500;
}

.cw-ecommerce-hero__btn--secondary:hover {
  border-color: #d4f53c;
  color: #fff;
}

.cw-ecommerce-hero__visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  outline: none;
}

.cw-ecommerce-hero__stage {
  position: relative;
  transition: transform 0.2s ease-out;
  transform-style: preserve-3d;
}

.cw-ecommerce-hero__phone-shell {
  width: 280px;
  height: 560px;
  border-radius: 46px;
  background: #0b0a09;
  padding: 10px;
  box-sizing: border-box;
  box-shadow:
    0 0 0 1px rgba(234, 231, 225, 0.12),
    0 50px 100px -40px rgba(0, 0, 0, 0.9);
}

.cw-ecommerce-hero__phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: #f6f3ee;
  color: #141210;
  display: flex;
  flex-direction: column;
}

.cw-ecommerce-hero__phone-status {
  height: 36px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 11px;
  font-weight: 600;
}

.cw-ecommerce-hero__phone-notch {
  width: 72px;
  height: 22px;
  border-radius: 12px;
  background: #0b0a09;
}

.cw-ecommerce-hero__phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 10px;
}

.cw-ecommerce-hero__store-name {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 17px;
}

.cw-ecommerce-hero__cart-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #141210;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cw-ecommerce-hero__cart-btn.is-bump {
  animation: cw-ecom-pop 0.4s ease-out both;
}

.cw-ecommerce-hero__cart-count {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #e0431c;
  color: #fff;
  font: 700 10px 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cw-ecommerce-hero__product-hero {
  margin: 0 12px;
  height: 230px;
  border-radius: 24px;
  background: var(--cw-ecom-prod-bg, #ff9e86);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.4s;
}

.cw-ecommerce-hero__product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #141210;
  color: #d4f53c;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.cw-ecommerce-hero__product-icon.is-pop {
  animation: cw-ecom-pop 0.45s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}

.cw-ecommerce-hero__product-meta {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cw-ecommerce-hero__product-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.cw-ecommerce-hero__product-name {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 18px;
}

.cw-ecommerce-hero__product-price {
  font: 800 17px 'Inter Tight', sans-serif;
}

.cw-ecommerce-hero__reviews {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b6158;
}

.cw-ecommerce-hero__stars {
  color: #e08a1c;
}

.cw-ecommerce-hero__swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cw-ecommerce-hero__swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px #f6f3ee;
  transition: border-color 0.2s;
}

.cw-ecommerce-hero__swatch.is-active {
  border-color: #141210;
}

.cw-ecommerce-hero__add-btn {
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #e0431c;
  color: #fff;
  font: 600 14px 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.3s;
}

.cw-ecommerce-hero__add-btn.is-added {
  background: #3f9a1a;
}

.cw-ecommerce-hero__chip {
  position: absolute;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  animation: cw-ecom-bob 5s ease-in-out infinite;
}

.cw-ecommerce-hero__chip--ship {
  left: -150px;
  top: 70px;
  background: #1e1b18;
  border: 1px solid rgba(234, 231, 225, 0.1);
  color: #eae7e1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cw-ecommerce-hero__chip--pay {
  right: -140px;
  top: 210px;
  background: #f3efe7;
  color: #141210;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation-delay: 1.4s;
}

.cw-ecommerce-hero__chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.cw-ecommerce-hero__chip-icon--lime {
  background: #d4f53c;
}

.cw-ecommerce-hero__chip-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cw-ecommerce-hero__chip-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(234, 231, 225, 0.5);
}

.cw-ecommerce-hero__chip--pay .cw-ecommerce-hero__chip-kicker {
  color: #6b6158;
}

.cw-ecommerce-hero__chip-label {
  font-weight: 600;
  font-size: 13px;
}

.cw-ecommerce-hero__chip-label.is-fade {
  animation: cw-ecom-fade 0.3s ease-out both;
}

.cw-ecommerce-hero__pay-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.cw-ecommerce-hero__pay-tags span {
  padding: 4px 8px;
  border-radius: 6px;
  font: 700 11px 'Inter', sans-serif;
}

.cw-ecommerce-hero__pay-tags span:nth-child(1) {
  background: #141210;
  color: #fff;
}

.cw-ecommerce-hero__pay-tags span:nth-child(2) {
  background: #cfc4f6;
  color: #141210;
}

.cw-ecommerce-hero__pay-tags span:nth-child(3) {
  background: #d4f53c;
  color: #141210;
}

.cw-ecommerce-hero__toast-pill {
  position: absolute;
  left: -150px;
  bottom: -22px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #e0431c;
  color: #fff;
  font: 600 13px 'Inter', sans-serif;
  box-shadow: 0 20px 40px -20px rgba(224, 67, 28, 0.8);
  animation: cw-ecom-bob 5s 0.7s ease-in-out infinite;
  white-space: nowrap;
  max-width: min(280px, 90vw);
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .cw-ecommerce-hero__chip--ship {
    left: -40px;
  }

  .cw-ecommerce-hero__chip--pay {
    right: -24px;
  }

  .cw-ecommerce-hero__toast-pill {
    left: 50%;
    transform: translateX(-50%);
    bottom: -48px;
  }
}

@media (max-width: 640px) {
  .cw-ecommerce-hero__visual {
    min-height: 520px;
  }

  .cw-ecommerce-hero__chip--ship,
  .cw-ecommerce-hero__chip--pay {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-ecommerce-hero__eyebrow-dot,
  .cw-ecommerce-hero__chip,
  .cw-ecommerce-hero__toast-pill {
    animation: none;
  }

  .cw-ecommerce-hero__stage {
    transition: none;
  }
}
