/* BRÜN demo shop — design tokens sampled from mockup */
:root {
  --yellow: #FFFC2D;
  --pink: #FF5197;
  --blue: #4E79EC;
  --star-pink: #FF7FBC;
  --ink: #080B11;
  --grey: #A7AFBC;
  --line: #E8E8E8;
  --radius-card: 16px;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1440px; margin: 0 auto; }

/* ---------- nav ---------- */
.nav {
  background: var(--yellow);
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav__links {
  display: flex;
  gap: 57px;
  list-style: none;
  font-size: 24px;
  font-weight: 500;
}
.nav__links a { padding: 4px 2px; }
.nav__links a.is-active { text-decoration: underline; text-underline-offset: 5px; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav__cart {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

/* ---------- hero ---------- */
.hero { position: relative; aspect-ratio: 1440 / 413; overflow: hidden; }
.hero__photo {
  position: absolute; top: 0; left: 24.93%;
  width: 75.07%; height: 100%;
  object-fit: cover;
}
.hero__logo {
  position: absolute; top: 0; left: 0;
  width: 24.93%; height: 100%;
  background: var(--pink);
}
.hero__logo img {
  position: absolute;
  left: 9.3%; top: 13.6%;
  width: 81.2%;
}
.hero__headline {
  position: absolute;
  left: 27.5%; top: 13.5%;
  font-family: 'Anton', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 5.76vw, 83px);
  line-height: 1.01;
  letter-spacing: .2px;
  color: var(--yellow);
  text-transform: uppercase;
  margin: 0;
}

/* ---------- product grid ---------- */
.grid-section { padding: 71px 145px 40px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 61px;
  row-gap: 55px;
}
.card { display: block; }
.card__media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 342 / 465;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card__media img { transform: scale(1.03); }
.card__media--square { aspect-ratio: 1 / 1; }
.pill-new {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--yellow);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
}
.pill-sale {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--pink);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
}
.card__title { margin-top: 14px; font-size: 17px; }
.card__title b { font-weight: 800; }
.card__title .sep { font-weight: 300; color: var(--ink); padding: 0 8px; }
.card__price { margin-top: 3px; font-size: 18px; font-weight: 600; }
.card__price .was { color: var(--grey); text-decoration: line-through; margin-left: 8px; font-size: 14px; }
.card__rating { margin-top: 6px; display: flex; align-items: center; gap: 2px; }
.card__rating .count { color: var(--star-pink); font-size: 12px; margin-left: 4px; }
.star { width: 15px; height: 15px; fill: var(--star-pink); }

/* ---------- section heading (subpages) ---------- */
.page-head { padding: 64px 145px 8px; }
.page-head h1 {
  font-family: 'Anton', 'Inter', sans-serif;
  font-size: 64px;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.page-head p { margin-top: 14px; font-size: 17px; max-width: 560px; }
.page-head--pink h1 { color: var(--pink); }

/* ---------- product page ---------- */
.pdp {
  display: grid;
  grid-template-columns: 736px 1fr;
  column-gap: 61px;
  padding: 80px 145px 40px;
}
.pdp__gallery-main {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f6f6f6;
}
.pdp__gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs { display: flex; gap: 18px; margin-top: 17px; }
.pdp__thumbs button {
  border: 0; padding: 0; cursor: pointer;
  border-radius: 14px; overflow: hidden;
  width: 233px; aspect-ratio: 1 / 1;
  background: none;
}
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs button.is-active { outline: 3px solid var(--ink); outline-offset: -3px; }
.pdp__info { max-width: 352px; }
.pdp__info h1 { font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -.5px; }
.pdp__info h1 .sep { font-weight: 300; padding: 0 10px; }
.pdp__rating { display: flex; align-items: center; gap: 2px; margin-top: 14px; }
.pdp__rating .star { width: 18px; height: 18px; }
.pdp__rating .count { color: var(--star-pink); font-size: 14px; margin-left: 5px; }
.pdp__price { font-size: 28px; font-weight: 700; color: #403C31; margin-top: 18px; }
.pdp__shipnote { font-family: 'Manrope', 'Inter', sans-serif; color: var(--grey); font-size: 16px; margin-top: 8px; line-height: 1.45; }
.pdp__desc { font-family: 'Manrope', 'Inter', sans-serif; margin-top: 24px; font-size: 18px; line-height: 1.5; }
.pdp__qty-label { font-weight: 700; margin-top: 26px; font-size: 20px; }
.qty {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #D9D9D9;
  height: 46px;
}
.qty button {
  width: 34px; height: 100%;
  background: none; border: 0;
  font-size: 18px; color: #7a7a7a;
  cursor: pointer;
}
.qty output { width: 28px; text-align: center; font-size: 16px; }
.btn-cart {
  display: block;
  width: 100%;
  margin-top: 30px;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 999px;
  height: 50px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-cart:hover { filter: brightness(1.06); }

/* accordions */
.acc { margin-top: 34px; }
.acc__item { border-top: 1px solid var(--line); }
.acc__item:last-child { border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%;
  background: none; border: 0;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  cursor: pointer;
}
.acc__head svg { width: 16px; height: 16px; transition: transform .25s; }
.acc__item.open .acc__head svg { transform: rotate(45deg); }
.acc__body { display: none; padding: 0 0 20px; font-size: 15px; color: #3a3d44; }
.acc__item.open .acc__body { display: block; }

/* related products */
.related { padding: 48px 145px 96px; }
.related .product-grid { row-gap: 0; }

/* ---------- FAQ page ---------- */
.faq-wrap { padding: 40px 145px 96px; max-width: 1000px; }
.faq-wrap .acc__head { font-size: 16px; text-transform: none; letter-spacing: 0; text-align: left; }

/* ---------- contact ---------- */
.contact-wrap { padding: 40px 145px 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 61px; }
.contact-form label { display: block; font-weight: 700; font-size: 14px; margin: 22px 0 8px; text-transform: uppercase; letter-spacing: .5px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid #D9D9D9;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 16px;
  border-radius: 8px;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.btn-primary {
  margin-top: 28px;
  background: var(--blue);
  color: #fff;
  border: 0; border-radius: 999px;
  padding: 15px 44px;
  font-family: inherit; font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  cursor: pointer;
}
.contact-aside { border-radius: var(--radius-card); overflow: hidden; align-self: start; }

/* ---------- footer ---------- */
.footer {
  margin-top: 64px;
  background: var(--yellow);
  padding: 56px 145px 48px;
}
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer__brand {
  font-family: 'Anton', sans-serif;
  font-size: 40px;
  letter-spacing: 1px;
}
.footer__cols { display: flex; gap: 80px; }
.footer__cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer__cols ul { list-style: none; font-size: 15px; }
.footer__cols li { margin-bottom: 9px; }
.footer__cols a:hover { text-decoration: underline; }
.footer__note { margin-top: 44px; font-size: 13px; color: rgba(11,13,18,.65); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--ink); color: #fff;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 404 ---------- */
.err-wrap {
  min-height: 60vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.err-wrap h1 { font-family: 'Anton', sans-serif; font-size: 120px; color: var(--pink); line-height: 1; }
.err-wrap p { font-size: 18px; margin: 18px 0 28px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-section, .related, .page-head, .faq-wrap, .contact-wrap, .footer { padding-left: 48px; padding-right: 48px; }
  .product-grid { column-gap: 32px; }
  .pdp { grid-template-columns: 1fr; padding: 48px; row-gap: 40px; }
  .pdp__info { max-width: 560px; }
  .pdp__thumbs button { width: calc((100% - 36px) / 3); }
}
@media (max-width: 760px) {
  .nav__links { gap: 22px; font-size: 15px; }
  .hero { flex-direction: column; }
  .hero__logo { width: 100%; }
  .grid-section, .related, .page-head, .faq-wrap, .contact-wrap, .footer { padding-left: 20px; padding-right: 20px; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 44px; }
  .pdp { padding: 28px 20px; }
  .footer__cols { gap: 40px; flex-wrap: wrap; }
}
