@import url("cart.css");
@import url("pages.css");

:root {
  --pink: #bd8fe5;
  --pink-dark: #9b6bc7;
  --pink-soft: #f4e9fb;
  --header-bg: #fdf6f8;
  --header-ink: #8b266e;
  --text: #282828;
  --muted: #6b6b6b;
  --bg: #fff;
  --card-shadow: 0 0 16px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, system-ui, sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.alert-bar {
  background: var(--pink);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.35;
}

.alert-bar p {
  margin: 0;
}

.alert-bar a {
  font-weight: 700;
  text-decoration: underline;
}

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
  box-shadow: 0 1px 0 rgba(139, 38, 110, 0.08);
}

body.theme {
  padding-top: var(--site-header-h, 148px);
}

.header {
  background: #fff;
  border-bottom: 0;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px 10px;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  grid-template-areas: "logo search actions";
  gap: 28px;
  align-items: center;
}

.header-inner .logo {
  grid-area: logo;
}

.logo img {
  width: 118px;
  height: auto;
}

.search {
  grid-area: search;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #f3e6ee;
}

.search button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0 6px 0 16px;
  cursor: pointer;
  color: #b9b9b9;
}

.search svg {
  width: 18px;
  height: 18px;
}

.search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 18px 12px 8px;
  outline: none;
  font-size: 14px;
  color: var(--header-ink);
}

.search input::placeholder {
  color: #c4c4c4;
}

.header-actions {
  grid-area: actions;
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--header-ink);
}

.header-link,
.header-icon,
.menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--header-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.header-icon {
  position: relative;
}

.header-icon.is-logged::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
}

.header-link svg,
.header-icon svg,
.menu-toggle svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-extra {
  display: none;
}

.nav-cats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 18px;
  padding: 10px 40px 18px;
  overflow-x: auto;
}

.nav-cats a {
  color: #2c2c2c;
  font-size: 15px;
  font-weight: 500;
  text-transform: lowercase;
  white-space: nowrap;
}

.nav-cats a.is-active {
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #f8f1f5;
}

.hero-track {
  display: flex;
  transition: transform 0.45s ease;
}

.hero-slide,
.hero-slide picture {
  display: block;
  min-width: 100%;
  width: 100%;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
}

.hero-btn.prev {
  left: 16px;
}

.hero-btn.next {
  right: 16px;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section h2,
.newsletter h2 {
  text-align: center;
  color: var(--pink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 28px;
  text-transform: lowercase;
  font-weight: 700;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 16px;
  text-align: center;
}

.cat-grid img {
  width: 88px;
  height: 88px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.cat-grid span {
  font-size: 13px;
  font-weight: 600;
  text-transform: lowercase;
}

.shelf-wrap {
  position: relative;
}

.shelf-btn {
  position: absolute;
  top: 118px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(80, 40, 90, 0.18);
}

.shelf-btn.prev {
  left: -6px;
}

.shelf-btn.next {
  right: -6px;
}

.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  scrollbar-width: none;
}

.shelf-4 {
  grid-auto-columns: calc((100% - 60px) / 4);
}

.shelf-4 .card img {
  height: 240px;
}

.shelf-4 .card-media.is-kit {
  height: 248px;
}

.shelf-4 .card-media.is-kit-3 img {
  height: 248px;
}

.shelf-4 .card-media.is-kit-2 img {
  height: 248px;
}

.shelf-wrap:has(.shelf-4) .shelf-btn {
  top: 132px;
}

.shelf::-webkit-scrollbar {
  display: none;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 12px 14px 16px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: contain;
}

.card-media {
  display: block;
}

.card-media.is-kit {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 228px;
  overflow: hidden;
  gap: 0;
}

.card-media.is-kit img {
  flex: none;
  width: auto;
  max-width: none;
  height: 228px;
  object-fit: contain;
  position: relative;
  transform-origin: center 74%;
}

.card-media.is-kit-2 img {
  width: 52%;
  height: 228px;
  margin-left: -28%;
  transform: scale(1.4);
}

.card-media.is-kit-2 img:first-child {
  margin-left: 6%;
  z-index: 1;
}

.card-media.is-kit-2.is-kit-creatina-shaker img:first-child {
  z-index: 4;
  margin-left: 4%;
}

.card-media.is-kit-2.is-kit-creatina-shaker img:nth-child(2) {
  z-index: 1;
  margin-left: -16%;
}

.card-media.is-kit-3 img {
  width: 52%;
  margin-left: -28%;
  transform: scale(1.4);
}

.card-media.is-kit img:first-child {
  z-index: 1;
}

.card-media.is-kit img:nth-child(2) {
  z-index: 3;
}

.card-media.is-kit img:nth-child(3) {
  z-index: 2;
  margin-right: -8%;
}

.card-media.is-kit-3 img:first-child {
  margin-left: -8%;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.stars {
  color: #f5a524;
  letter-spacing: 1px;
  font-size: 14px;
  line-height: 1;
}

.rating-count {
  color: #9a9a9a;
  font-size: 12px;
}

.card h3 {
  font-size: 16px;
  margin: 8px 0 6px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: lowercase;
  line-height: 1.25;
}

.card h3 a {
  color: inherit;
}

.card-desc {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #2b2b2b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-price,
.price,
.installment {
  text-transform: none;
}

.list-price {
  color: #9a9a9a;
  text-decoration: line-through;
  font-size: 13px;
}

.price-row {
  margin: 2px 0 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.price {
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 800;
}

.installment {
  font-size: 12px;
  color: #8a8a8a;
}

.card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.buy {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--pink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
}

.add-cart {
  width: 48px;
  border: 1.5px solid var(--pink);
  background: #fff;
  color: var(--pink);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 16px;
  font-weight: 700;
}

.add-cart svg {
  width: 18px;
  height: 18px;
}

.add-cart.is-added {
  background: var(--pink);
  color: #fff;
}

.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(90deg, #f7e9ff 0%, #ebd7fb 100%);
  border-radius: 16px;
  padding: 32px;
}

.featured img {
  max-height: 360px;
  margin: 0 auto;
  object-fit: contain;
}

.featured h3 {
  font-size: clamp(28px, 3vw, 42px);
  color: var(--pink);
  margin: 0 0 12px;
  text-transform: lowercase;
}

.newsletter {
  background: var(--pink);
  color: #fff;
  padding: 48px 20px;
  text-align: center;
}

.newsletter h2 {
  color: #fff;
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: clamp(20px, 3vw, 32px);
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.newsletter input {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  min-width: 180px;
}

.newsletter button {
  border: 0;
  background: #fff;
  color: var(--pink);
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
}

.instagram,
.reviews {
  text-align: center;
}

.ig-wrap {
  text-align: left;
}

.ig-wrap .shelf-btn {
  top: 50%;
  transform: translateY(-50%);
}

.ig-feed {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 16px) / 3);
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ig-feed::-webkit-scrollbar {
  display: none;
}

.ig-feed a {
  display: block;
  aspect-ratio: 1;
  scroll-snap-align: start;
  overflow: hidden;
  background: #f6eef4;
}

.ig-feed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 28px 40px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  background: none;
  border-radius: 0;
}

.app-copy h2 {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: clamp(26px, 3vw, 34px);
}

.app-copy > p {
  margin: 0 0 16px;
  color: #555;
  max-width: 320px;
}

.app-copy ul {
  list-style: none;
  margin: 0;
  padding: 18px 22px;
  max-width: 340px;
  background: #f6e7f2;
  border-radius: 18px;
}

.app-copy li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: #444;
  font-size: 14px;
}

.app-copy li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 8px;
  height: 8px;
  background: var(--pink);
  transform: rotate(45deg);
}

.app-phone {
  width: min(280px, 70vw);
  height: auto;
  justify-self: center;
}

.app-qr {
  text-align: center;
}

.app-qr p {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.app-qr .qr {
  width: 168px;
  height: auto;
  margin: 0 auto 16px;
}

.app-stores {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  flex-wrap: wrap;
}

.app-stores img {
  height: 40px;
  width: auto;
}

.footer {
  background: #fbeaf4;
  border-top: 0;
  padding: 48px 20px 24px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer h4 {
  margin: 0 0 12px;
  color: var(--pink);
}

.footer a {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #444;
}

.socials,
.payments,
.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.footer .socials a,
.auth-footer .socials a {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.socials img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  display: block;
}

.auth-footer .socials {
  justify-content: center;
  margin: 0 auto 14px;
}

.payments img {
  height: 28px;
  width: auto;
}

.badges img {
  height: 40px;
  width: auto;
}

.legal {
  max-width: 1280px;
  margin: 32px auto 0;
  font-size: 12px;
  color: #666;
  text-align: center;
  line-height: 1.6;
}

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 50;
}

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 16px;
  display: none;
  gap: 12px;
  align-items: center;
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
}

.cookie.show {
  display: flex;
}

.cookie button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.cookie .accept {
  background: var(--pink);
  color: #fff;
}

.menu-toggle {
  display: none;
  grid-area: menu;
}

@media (max-width: 960px) {
  .featured,
  .app,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .app-copy > p,
  .app-copy ul {
    max-width: none;
  }

  .app-phone {
    order: -1;
  }

  .header {
    background: #fff;
  }

  .header-inner {
    grid-template-columns: 40px 1fr auto;
    grid-template-areas: "menu logo actions";
    gap: 8px;
    padding: 10px 16px;
  }

  .header.is-open .header-inner {
    grid-template-areas:
      "menu logo actions"
      "search search search";
  }

  .header-inner .logo {
    justify-self: center;
  }

  .header-inner .logo img {
    width: 96px;
  }

  .search {
    display: none;
    max-width: none;
    margin-top: 4px;
  }

  .header.is-open .search {
    display: flex;
  }

  .header-actions {
    justify-self: end;
    gap: 14px;
  }

  .header-actions .header-link {
    display: none;
  }

  .menu-toggle {
    display: flex;
    color: var(--header-ink);
  }

  .nav-cats {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-width: none;
    padding: 4px 16px 16px;
  }

  .nav-cats.open {
    display: flex;
  }

  .nav-extra {
    display: flex;
    gap: 22px;
    align-items: center;
    padding: 8px 0 14px;
  }

  .nav-extra .header-link {
    display: flex;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
  }

  .nav-cats > a {
    padding: 10px 0;
    border-top: 1px solid #f3e6ee;
  }

  .ig-feed {
    grid-auto-columns: calc((100% - 8px) / 2);
  }

  .shelf {
    grid-auto-columns: minmax(220px, 78vw);
  }

  .shelf-4 {
    grid-auto-columns: calc((100% - 20px) / 2);
  }

  .shelf-btn {
    width: 36px;
    height: 36px;
    font-size: 24px;
    top: 108px;
  }
}

@media (max-width: 640px) {
  .shelf-4 {
    grid-auto-columns: 82vw;
  }

  .shelf-4 .card-media.is-kit,
  .shelf-4 .card-media.is-kit-2 img,
  .shelf-4 .card-media.is-kit-3 img {
    height: 220px;
  }

  .shelf-4 .card-media.is-kit-2 img,
  .shelf-4 .card-media.is-kit-3 img {
    transform: scale(1.28);
  }
}

@media (max-width: 1024px) {
  .catalog-grid .card-media.is-kit {
    height: 176px;
  }

  .catalog-grid .card-media.is-kit img,
  .catalog-grid .card-media.is-kit-2 img,
  .catalog-grid .card-media.is-kit-3 img {
    height: 176px;
    transform: scale(1.22);
  }
}

@media (max-width: 720px) {
  .catalog-grid .card {
    padding: 10px 10px 12px;
  }

  .catalog-grid .card img {
    height: 160px;
  }

  .catalog-grid .card-media.is-kit {
    height: 160px;
  }

  .catalog-grid .card-media.is-kit img,
  .catalog-grid .card-media.is-kit-2 img,
  .catalog-grid .card-media.is-kit-3 img {
    height: 160px;
    width: 50%;
    transform: scale(1.18);
  }

  .catalog-grid .card-media.is-kit-2.is-kit-creatina-shaker img:nth-child(2) {
    margin-left: -12%;
  }
}
