/* =========================
   Poulie's Setup ♡
   ========================= */

:root {
  --background: #aab3d1;
  --card: #8f9fd9;
  --border: #69749d;
  --text: #343752;
  --light: #d8def4;

  --content-width: 390px;
}


/* =========================
   Reset
   ========================= */

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

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;

  background: var(--background);
  color: var(--text);

  font-family: "Quicksand", sans-serif;
  font-weight: 400;

  display: flex;
  justify-content: center;

  overflow-x: hidden;
}


/* =========================
   Page
   ========================= */

.page {
  width: 100%;
  max-width: 430px;

  min-height: 100vh;

  padding: 48px 20px 70px;

  display: flex;
  flex-direction: column;
  align-items: center;
}


/* =========================
   Profile
   ========================= */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;

  animation: fadeUp 0.7s
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}


.profile-picture {
  width: 212px;
  height: 212px;

  padding: 6px;

  border: 5px solid var(--light);
  border-radius: 50%;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  animation:
    profileFloat 4s ease-in-out 1s infinite;
}


.profile-picture img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  border-radius: 50%;
}


.profile-picture:hover {
  box-shadow:
    0 10px 30px rgba(52, 55, 82, 0.12);
}


.profile-info {
  margin-top: 24px;

  text-align: center;
}


.profile-info h1 {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}


.profile-info a {
  display: inline-block;

  margin-top: 4px;

  color: var(--text);

  font-size: 16px;
  text-decoration: none;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}


.profile-info a:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}


/* =========================
   Sections
   ========================= */

.setup-section {
  width: 100%;

  margin-top: 48px;
}


.setup-section h2 {
  margin-bottom: 23px;

  font-size: 17px;
  font-weight: 500;

  text-align: center;
}


/* =========================
   Products
   ========================= */

.products-grid {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 14px;
  margin-top: 16px;
}


/* =========================
   Product Card
   ========================= */

.product-card {
  position: relative;

  min-width: 0;
  height: 180px;

  padding: 22px 10px 10px;

  background: var(--card);

  border-radius: 13px;

  color: var(--text);
  text-decoration: none;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;

  animation:
    cardEnter 0.6s
    cubic-bezier(0.22, 1, 0.36, 1)
    forwards;

  transition:
    transform 0.25s
      cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    background 0.25s ease;
}


/* cards entrando em cascata */

.product-card:nth-child(1) {
  animation-delay: 0.25s;
}

.product-card:nth-child(2) {
  animation-delay: 0.35s;
}

.product-card:nth-child(3) {
  animation-delay: 0.45s;
}

.product-card:nth-child(4) {
  animation-delay: 0.55s;
}


/* =========================
   Product label
   ========================= */

.product-name {
  position: absolute;

  top: -9px;
  left: 12%;

  width: 76%;
  height: 23px;

  padding: 0 8px;

  background: var(--light);

  border: 1px solid var(--border);
  border-radius: 20px;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 10px;
  font-weight: 400;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  z-index: 2;
}


/* =========================
   Product image
   ========================= */

.product-image {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}


.product-image img {
  display: block;

  max-width: 100%;
  max-height: 145px;

  object-fit: contain;

  transition:
    transform 0.3s
    cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================
   Hover
   ========================= */

.product-card:hover {
  transform: translateY(-4px);

  background: #98a7dd;

  box-shadow:
    0 10px 22px rgba(52, 55, 82, 0.13);
}


.product-card:hover .product-image img {
  transform: scale(1.04);
}


.product-card:active {
  transform:
    translateY(-1px)
    scale(0.99);
}


/* =========================
   Animations
   ========================= */

@keyframes fadeUp {

  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


@keyframes cardEnter {

  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


@keyframes profileFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }

}


/* =========================
   Mobile
   ========================= */

@media (max-width: 360px) {

  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .profile-picture {
    width: 190px;
    height: 190px;
  }

  .products-grid {
    gap: 12px;
  }

  .product-card {
    height: 170px;
  }

}


/* =========================
   Reduced motion
   ========================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }

}