#app {
  min-height: 100vh;
}

.brand-intro {
  align-items: center;
  animation: introFade 3.2s ease forwards;
  background:
    radial-gradient(circle, rgba(255, 238, 171, 0.22) 0 10%, transparent 34%),
    linear-gradient(180deg, rgba(251, 250, 246, 0.98), rgba(18, 68, 82, 0.94));
  display: flex;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: fixed;
  --intro-target-scale: 0.36;
  --intro-target-x: calc(-50vw + clamp(18px, 5vw, 72px) + min(65px, 14.5vw));
  --intro-target-y: calc(-50vh + 45px);
  z-index: 100;
}

.brand-intro::before {
  animation: introBurst 3.2s ease forwards;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 3%, rgba(242, 184, 75, 0.7) 9%, rgba(81, 204, 229, 0.32) 18%, transparent 42%);
  content: "";
  inset: 0;
  position: absolute;
  transform: scale(0.18);
}

.brand-intro__logo {
  animation: introLogo 3.2s ease forwards;
  filter:
    drop-shadow(0 0 10px rgba(255, 226, 140, 0.98))
    drop-shadow(0 0 28px rgba(242, 184, 75, 0.9))
    drop-shadow(0 0 62px rgba(14, 111, 131, 0.86));
  max-height: min(26vh, 260px);
  max-width: min(38vw, 360px);
  position: relative;
  width: min(38vw, 360px);
}

.brand-intro__whole,
.brand-intro__piece img {
  display: block;
  width: 100%;
}

.brand-intro__whole {
  animation: introWhole 3.2s ease forwards;
}

.brand-intro__piece {
  animation: introPiece 3.2s ease forwards;
  clip-path: var(--clip);
  inset: 0;
  opacity: 0;
  position: absolute;
  transform-origin: center;
}

.brand-intro__piece img {
  height: 100%;
  object-fit: contain;
}

.brand-intro__dust {
  animation: introDust 3.2s ease forwards;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 10px currentColor;
  color: #ffffff;
  height: var(--s);
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0.2);
  width: var(--s);
}

.brand-intro__dust--0 {
  color: #f2b84b;
}

.brand-intro__dust--1 {
  color: #51cce5;
}

.brand-intro__dust--2 {
  color: #ffffff;
}

.site-header {
  align-items: center;
  background: rgba(251, 250, 246, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(24, 32, 38, 0.08);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 92px;
  padding: 14px clamp(18px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 31px;
  max-width: min(130px, 29vw);
  object-fit: contain;
  width: auto;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-nav a,
.account-link,
.app-download-link {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--sea-deep);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: var(--signal-soft);
  border-color: #e3c46c;
  color: var(--ink);
}

.site-nav__icon-link {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  min-width: 46px;
  position: relative;
}

.nav-icon {
  display: block;
  flex: 0 0 auto;
  height: 21px;
  width: 21px;
}

.nav-icon path {
  fill: currentColor;
}

.cart-badge {
  align-items: center;
  background: var(--sea);
  border: 2px solid var(--paper);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 5px;
  position: absolute;
  right: -5px;
  top: -6px;
}

.account-link {
  gap: 8px;
}

.app-download-link {
  gap: 8px;
}

.whatsapp-icon {
  color: currentColor;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.whatsapp-icon path {
  fill: currentColor;
}

.page-shell {
  min-height: calc(100vh - 92px);
}

.customer-greeting {
  align-items: center;
  background: #f3f8f9;
  border-bottom: 1px solid #c9e4e9;
  color: var(--sea-deep);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px clamp(18px, 5vw, 72px);
}

.customer-greeting strong,
.customer-greeting span {
  display: block;
}

.customer-greeting strong {
  font-size: 1rem;
  line-height: 1.1;
}

.customer-greeting span {
  color: var(--muted);
  font-size: 0.92rem;
}

.customer-greeting__clear {
  background: transparent;
  border: 1px solid #b6dce3;
  border-radius: 8px;
  color: var(--sea-deep);
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 900;
  padding: 8px 10px;
}

.customer-greeting__form {
  align-items: center;
  display: flex;
  flex: 1 1 460px;
  gap: 8px;
  justify-content: flex-end;
}

.customer-greeting__form input {
  background: #ffffff;
  border: 1px solid #b6dce3;
  border-radius: 8px;
  color: var(--ink);
  min-height: 40px;
  min-width: 0;
  padding: 9px 10px;
  width: min(100%, 180px);
}

.customer-greeting__form button {
  background: var(--signal);
  border: 1px solid #d29a2d;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 900;
  min-height: 40px;
  padding: 9px 12px;
}

.hero,
.page-intro,
.products-grid,
.search-surface,
.lead-layout,
.shop-layout,
.closing-cta {
  padding-left: clamp(18px, 5vw, 72px);
  padding-right: clamp(18px, 5vw, 72px);
}

.hero,
.page-intro {
  padding-bottom: clamp(44px, 8vw, 88px);
  padding-top: clamp(48px, 8vw, 92px);
}

.page-intro {
  background:
    linear-gradient(135deg, rgba(18, 68, 82, 0.98), rgba(24, 32, 38, 0.96));
  color: #ffffff;
  display: grid;
  justify-items: center;
  max-width: none;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.page-intro::after {
  background: rgba(242, 184, 75, 0.22);
  bottom: 0;
  content: "";
  height: 6px;
  left: clamp(18px, 5vw, 72px);
  position: absolute;
  right: clamp(18px, 5vw, 72px);
}

.page-intro h1,
.page-intro .hero-text,
.lead-intro h1,
.lead-intro .hero-text {
  margin-left: auto;
  margin-right: auto;
}

.lead-intro h1 {
  max-width: 11ch;
}

.product-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.products-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-left: auto;
  margin-right: auto;
  max-width: 1280px;
  padding-bottom: 72px;
  width: 100%;
}

.lead-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
  padding-bottom: 72px;
}

.shop-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
  padding-bottom: 72px;
  padding-top: 34px;
}

.detail-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.44fr);
  margin-left: auto;
  margin-right: auto;
  max-width: 1280px;
  padding: 34px clamp(18px, 5vw, 72px) 72px;
}

.shop-layout--cart-only {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.shop-products {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-cart {
  position: sticky;
  top: 116px;
}

.shop-layout--cart-only .shop-cart {
  position: static;
}

.closing-cta {
  align-items: center;
  background: var(--sea-deep);
  color: #ffffff;
  display: flex;
  gap: 24px;
  justify-content: center;
  padding-bottom: clamp(30px, 5vw, 52px);
  padding-top: clamp(30px, 5vw, 52px);
  text-align: center;
}

@media (max-width: 980px) {
  .lead-layout {
    grid-template-columns: 1fr;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .shop-cart {
    position: static;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closing-cta {
    align-items: center;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .brand-intro {
    --intro-target-scale: 0.08;
    --intro-target-x: calc(-50vw + 23px);
    --intro-target-y: calc(-50vh + 27px);
  }

  .site-header {
    align-items: center;
    display: grid;
    gap: 8px 10px;
    grid-template-areas:
      "brand nav"
      "app app"
      "cta cta";
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 0;
    padding: 8px 12px 10px;
  }

  .brand {
    grid-area: brand;
  }

  .brand img {
    height: 19px;
    max-width: 23px;
  }

  .header-actions {
    display: contents;
  }

  .site-nav {
    grid-area: nav;
    justify-content: center;
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 auto;
    font-size: 0.8rem;
    padding: 8px 9px;
    text-align: center;
  }

  .account-link {
    font-size: 0.84rem;
    grid-area: cta;
    justify-self: center;
    min-height: 42px;
    text-align: center;
    white-space: nowrap;
    width: min(100%, 220px);
  }

  .app-download-link {
    font-size: 0.84rem;
    grid-area: app;
    justify-self: center;
    min-height: 42px;
    width: min(100%, 156px);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .shop-products {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .customer-greeting {
    align-items: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .customer-greeting__form {
    align-items: stretch;
    flex-direction: column;
    flex-basis: auto;
    width: 100%;
  }

  .customer-greeting__form input {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-intro,
  .brand-intro::before,
  .brand-intro__logo,
  .brand-intro__whole,
  .brand-intro__piece,
  .brand-intro__dust {
    animation-duration: 0.01ms;
  }
}

@keyframes introFade {
  0%,
  88% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes introLogo {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }

  18%,
  60% {
    opacity: 1;
    transform: scale(1);
  }

  78% {
    opacity: 1;
    transform: scale(1);
  }

  94% {
    opacity: 1;
    transform: translate3d(var(--intro-target-x), var(--intro-target-y), 0) scale(var(--intro-target-scale));
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--intro-target-x), var(--intro-target-y), 0) scale(var(--intro-target-scale));
  }
}

@keyframes introWhole {
  0%,
  52% {
    opacity: 1;
    transform: scale(1);
  }

  58%,
  82% {
    opacity: 0;
    transform: scale(1.08);
  }

  92% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes introPiece {
  0%,
  52% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  56% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  76% {
    opacity: 0;
    transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(0.18);
  }

  86% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes introDust {
  0%,
  48% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.2);
  }

  55% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  78% {
    opacity: 0;
    transform: translate3d(calc(var(--x) - 50%), calc(var(--y) - 50%), 0) scale(0.08);
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(var(--x) - 50%), calc(var(--y) - 50%), 0) scale(0.08);
  }
}

@keyframes introBurst {
  0%,
  48% {
    opacity: 0;
    transform: scale(0.18);
  }

  55% {
    opacity: 0.95;
    transform: scale(0.72);
  }

  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}
