/* Grocery App hero — from Corewave Grocery App Page (01 Hero) */

@keyframes cw-grocery-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);
  }
}

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

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

.cw-grocery-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: 48px;
  align-items: center;
}

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

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

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

.cw-grocery-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-grocery-hero__title-em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #d4f53c;
}

.cw-grocery-hero__lead-bold {
  margin: 0;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
  max-width: 540px;
  color: #f3efe7;
}

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

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

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

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

.cw-grocery-hero__btn--primary:hover,
.cw-grocery-hero__btn--primary:focus-visible {
  background: #c93a16;
  color: #fff;
}

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

.cw-grocery-hero__btn--secondary:hover,
.cw-grocery-hero__btn--secondary:focus-visible {
  border-color: #d4f53c;
  color: #fff;
}

.cw-grocery-hero__visual {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cw-grocery-hero__preview-label {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(234, 231, 225, 0.55);
}

.cw-grocery-hero__preview-live {
  color: #d4f53c;
}

.cw-grocery-hero__card {
  border-radius: 30px;
  background: linear-gradient(180deg, #221f1b, #1a1815);
  border: 1px solid rgba(234, 231, 225, 0.1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8);
}

.cw-grocery-hero__search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: #2a2622;
  border: 1px solid rgba(234, 231, 225, 0.08);
}

.cw-grocery-hero__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: 500 14px 'Inter', sans-serif;
  color: #f3efe7;
}

.cw-grocery-hero__filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.cw-grocery-hero__filter-sep {
  width: 1px;
  height: 20px;
  background: rgba(234, 231, 225, 0.15);
  margin: 0 2px;
}

.cw-grocery-hero__pill {
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 0;
  font: 600 12.5px 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cw-grocery-hero__pill--toggle {
  border: 1px solid rgba(234, 231, 225, 0.2);
  background: transparent;
  color: rgba(234, 231, 225, 0.85);
}

.cw-grocery-hero__grid-scroll {
  max-height: 318px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.cw-grocery-hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  grid-auto-rows: max-content;
  align-items: start;
  gap: 8px;
}

.cw-grocery-hero__empty {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  font-size: 13.5px;
  color: rgba(234, 231, 225, 0.6);
}

.cw-grocery-hero__product {
  border-radius: 18px;
  background: #2a2622;
  border: 1px solid rgba(234, 231, 225, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: cw-grocery-fade 0.3s ease-out both;
  transition: transform 0.2s;
}

.cw-grocery-hero__product:hover {
  transform: translateY(-3px);
}

.cw-grocery-hero__product-top {
  position: relative;
  height: 62px;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
}

.cw-grocery-hero__product-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  color: #141210;
}

.cw-grocery-hero__wish {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cw-grocery-hero__product-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}

.cw-grocery-hero__product-name {
  font: 700 13px/1.25 'Inter', sans-serif;
  color: #f3efe7;
}

.cw-grocery-hero__product-pack {
  font-size: 11.5px;
  color: rgba(234, 231, 225, 0.55);
}

.cw-grocery-hero__product-foot {
  padding: 0 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex: 0 0 auto;
  margin-top: auto;
}

.cw-grocery-hero__product-price {
  font: 800 14px 'Inter Tight', sans-serif;
  color: #f3efe7;
}

.cw-grocery-hero__add {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(234, 231, 225, 0.3);
  background: transparent;
  color: #f3efe7;
  font: 700 12px 'Inter', sans-serif;
  cursor: pointer;
}

.cw-grocery-hero__add:hover,
.cw-grocery-hero__add:focus-visible {
  background: #d4f53c;
  color: #141210;
  border-color: #d4f53c;
}

.cw-grocery-hero__qty {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 3px;
  border-radius: 999px;
  background: #d4f53c;
  color: #141210;
}

.cw-grocery-hero__qty button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #141210;
  cursor: pointer;
  font: 700 14px 'Inter', sans-serif;
}

.cw-grocery-hero__qty span {
  font: 700 12px 'Inter', sans-serif;
  min-width: 10px;
  text-align: center;
}

.cw-grocery-hero__basket {
  border-radius: 22px;
  background: #f3efe7;
  color: #141210;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cw-grocery-hero__basket-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.cw-grocery-hero__basket-title {
  font: 800 17px 'Inter Tight', sans-serif;
}

.cw-grocery-hero__basket-wish {
  font-size: 12px;
  color: #6b6158;
}

.cw-grocery-hero__free-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cw-grocery-hero__free-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(20, 18, 16, 0.1);
  overflow: hidden;
}

.cw-grocery-hero__free-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #3f9a1a;
  transition: width 0.4s;
}

.cw-grocery-hero__free-msg {
  font-size: 12px;
  color: #4a433c;
}

.cw-grocery-hero__slots {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  flex-wrap: wrap;
}

.cw-grocery-hero__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.cw-grocery-hero__step {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cw-grocery-hero__step-bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(20, 18, 16, 0.12);
  transition: background 0.3s;
}

.cw-grocery-hero__step-bar.is-on {
  background: #3f9a1a;
}

.cw-grocery-hero__step-label {
  font-size: 11px;
  line-height: 1.3;
  color: rgba(20, 18, 16, 0.45);
}

.cw-grocery-hero__step-label.is-on {
  color: #141210;
}

.cw-grocery-hero__checkout {
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.25);
  color: #fff;
  font: 700 14.5px 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.3s;
}

.cw-grocery-hero__checkout.is-ready {
  background: #141210;
}

.cw-grocery-hero__checkout.is-busy {
  background: #6b6158;
}

.cw-grocery-hero__chip {
  align-self: flex-start;
  max-width: 100%;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #d4f53c;
  color: #141210;
  font: 600 12.5px/1.4 'Inter', sans-serif;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.7);
  animation: cw-grocery-fade 0.4s ease-out both;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cw-grocery-hero__chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #141210;
  flex: none;
}

.cw-grocery-hero__panel.is-hidden {
  display: none;
}
