/* INK WINK — demo shop stylesheet */

:root {
  --cream: #FCF5EF;
  --ink: #403C31;
  --pink: #EB7C82;
  --announce-pink: #F0A0A3;
  --hero-blue: #C8DAE4;
  --butter: #FED466;
  --behind-yellow: #FDE3A6;
  --footer-purple: #AD98DD;
  --divider: #E5DED8;
  --font-display: "Lilita One", "Baloo 2", cursive;
  --font-body: "Manrope", "Nunito", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
}

a { color: inherit; }

/* ---------- Announcement bar ---------- */

.announce {
  position: relative;
  background: var(--announce-pink);
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announce.is-hidden { display: none; }

.announce p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.announce-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 6px 10px;
  font-size: 26px;
  line-height: 1;
  color: var(--cream);
  cursor: pointer;
  font-family: var(--font-body);
}

/* ---------- Header ---------- */

.site-header { background: var(--cream); }

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 208px;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.page-product .header-inner { height: 153px; }
.page-product .logo img { width: 104px; height: auto; }

.logo { display: inline-block; line-height: 0; justify-self: start; }
.logo img { width: 182px; height: auto; }

.main-nav {
  display: flex;
  gap: 42px;
}

.main-nav a {
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  text-decoration: none;
}

.main-nav a:hover { color: var(--pink); }

.cart {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  text-transform: uppercase;
  text-decoration: none;
}

.cart img { width: 36px; height: auto; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 570fr 418fr 418fr;
  gap: 17px;
  height: 451px;
}

.hero-blue {
  background: var(--hero-blue);
  padding: 67px 40px 0 60px;
}

.hero-blue h1 {
  font-size: 72px;
  line-height: 1.04;
  margin: 0 0 20px;
}

.hero-blue p {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 0 37px;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 451px;
  object-fit: cover;
}

.hero-rainbow {
  background: url("../assets/framed-print.jpg") center / cover no-repeat;
}

.hero-badge {
  position: absolute;
  left: 901px;
  top: 322px;
  width: 198px;
  height: auto;
  z-index: 2;
}

.btn-pill {
  display: inline-block;
  background: var(--butter);
  border: 0;
  border-radius: 24px;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.btn-pill:hover { filter: brightness(1.03); }

/* ---------- Section heading rows ---------- */

.section-row {
  max-width: 1320px;
  margin: 64px auto 26px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-row h2,
.section-heading {
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.shop-all {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.shop-all:hover { color: var(--pink); }

/* ---------- Product card grid ---------- */

.grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.card {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transform: scale(1.3);
}

/* full-frame shots (person in frame) — mockup shows these un-zoomed */
.card img.no-zoom { transform: none; }

.card-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
}

.card-name { font-weight: 700; font-size: 16px; }
.card-price { font-weight: 600; font-size: 16px; }

.card:hover .card-name { text-decoration: underline; }

/* ---------- Feature trio ---------- */

.features {
  max-width: 1320px;
  margin: 0 auto;
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.feature {
  text-align: center;
  padding: 0 20px;
}

.feature + .feature { border-left: 1px solid var(--divider); }

.feature-icon {
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-icon img { max-height: 100px; width: auto; }

.feature h3 {
  font-size: 32px;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.feature p {
  margin: 0 auto;
  max-width: 400px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
}

/* ---------- Behind the print ---------- */

.behind {
  background: var(--behind-yellow);
  padding-bottom: 74px;
}

.torn-yellow {
  display: block;
  width: 100%;
  height: auto;
}

.behind-inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}

.behind-inner > h2 {
  font-size: 32px;
  text-transform: uppercase;
  margin: 6px 0 29px;
}

.behind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.tile-rainbow {
  height: 252px;
  background: url("../assets/rainbow-gradient.jpg") center / cover no-repeat;
}

.behind-grid figure { margin: 0; }

.behind-grid figure:last-child figcaption { padding-right: 88px; }

.behind-grid figcaption {
  background: var(--cream);
  padding: 14px 50px 12px 16px;
  min-height: 94px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.44;
}

.splat {
  position: absolute;
  right: -13px;
  bottom: -16px;
  width: 114px;
  pointer-events: none;
}

/* ---------- Footer ---------- */

.torn-footer {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -82px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.site-footer {
  background: var(--footer-purple);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 0 40px;
  display: grid;
  grid-template-columns: 400px 470px 320px;
  justify-content: space-between;
}

.footer-col + .footer-col {
  border-left: 1px solid rgba(252, 245, 239, 0.45);
  padding-left: 56px;
}

.footer-inner h2 {
  font-size: 32px;
  text-transform: uppercase;
  margin: 24px 0 10px;
}

.footer-inner p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--cream);
}

.footer-about-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-about-row p { max-width: 256px; }

.footer-about-row img { width: 90px; height: 90px; flex: none; }

.newsletter {
  margin-top: 22px;
  display: flex;
  gap: 10px;
}

.newsletter input {
  width: 320px;
  height: 44px;
  border: 0;
  border-radius: 9px;
  background: #FBEFE3;
  padding: 0 18px;
  font-family: "Montserrat", var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}

.newsletter input::placeholder { color: #9C968A; }

.newsletter button {
  width: 66px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 9px;
  background: var(--butter);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.socials {
  display: flex;
  gap: 22px;
  margin-top: 56px;
}

.socials img { width: 44px; height: 44px; }

.socials a:hover { opacity: 0.8; }

/* ---------- Product page ---------- */

.product-layout {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 845px minmax(0, 1fr);
  gap: 31px;
  align-items: start;
}

.gallery-main img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.thumbs {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.thumb {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.thumb.is-active img { outline: 2px solid var(--ink); outline-offset: -2px; }

.details { padding-top: 8px; }

.details h1 {
  font-size: 48px;
  line-height: 1.08;
  margin: 0 0 14px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.rating-count {
  color: var(--pink);
  font-weight: 600;
  font-size: 16px;
}

.price {
  font-weight: 800;
  font-size: 26px;
  margin: 0 0 4px;
}

.shipping-note {
  margin: 0 0 26px;
  font-size: 15px;
  font-weight: 500;
  color: #A49D91;
}

.desc { margin: 0 0 30px; font-size: 18px; line-height: 1.5; }
.desc .lead { font-weight: 800; display: block; }
.desc-body { font-weight: 500; }

.opt-label {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 12px;
}

.swatches { display: flex; gap: 15px; margin-bottom: 28px; }

.swatch {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  outline-offset: 3px;
}

.swatch.is-selected { outline: 2px solid var(--ink); }

.sizes { display: flex; flex-wrap: wrap; gap: 11px; max-width: 310px; margin-bottom: 26px; }

.size-btn {
  min-width: 63px;
  height: 46px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid #E3DBD3;
  background: #F3ECE6;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}

.size-btn.is-selected {
  border: 2px solid var(--pink);
  background: #FBEDE7;
}

.qty-label { margin-top: 2px; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #E3DBD3;
  border-radius: 9px;
  background: #FCF5EF;
  height: 44px;
  margin-bottom: 34px;
}

.qty button {
  width: 42px;
  height: 100%;
  border: 0;
  background: none;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
}

.qty output {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}

.add-to-cart {
  display: block;
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 29px;
  background: var(--butter);
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 38px;
}

.add-to-cart:hover { filter: brightness(1.03); }

.accordions { border-top: 1px solid #E7E0DA; }

.accordion { border-bottom: 1px solid #E7E0DA; }

.accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 0;
  height: 59px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.accordion-head .acc-icon {
  font-weight: 500;
  font-size: 24px;
  color: #8E887D;
}

.accordion-panel {
  padding: 0 0 22px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.accordion-panel p { margin: 0 0 10px; }
.accordion-panel p:last-child { margin-bottom: 0; }
.accordion-panel ul { margin: 0; padding-left: 20px; }

/* ---------- You'll also love ---------- */

.also-love { margin: 96px 0 93px; }

.also-love-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 52px;
  text-transform: uppercase;
  margin-bottom: 56px;
}

.also-love-heading img { width: 44px; height: auto; }

/* ---------- Simple pages (about / process / contact / 404) ---------- */

.page-simple {
  max-width: 1320px;
  margin: 0 auto;
  padding-bottom: 110px;
}

.page-simple .page-title {
  font-size: 52px;
  text-transform: uppercase;
  margin: 8px 0 26px;
}

.page-simple .intro {
  max-width: 640px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 18px;
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.about-cols img { display: block; width: 100%; }

.about-cols h2 {
  font-size: 32px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.about-cols p { font-size: 18px; font-weight: 500; line-height: 1.6; margin: 0 0 16px; }

/* Contact form */

.contact-form {
  max-width: 560px;
  margin-top: 36px;
  display: grid;
  gap: 18px;
}

.contact-form label {
  font-family: var(--font-display);
  font-size: 20px;
  display: block;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #E3DBD3;
  border-radius: 9px;
  background: #FFFDFB;
  padding: 13px 18px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9C968A; }

.form-note {
  background: #E1EBE2;
  border-radius: 9px;
  padding: 14px 18px;
  font-weight: 600;
}

/* 404 */

.page-404 {
  text-align: center;
  padding: 60px 0 140px;
}

.page-404 h1 { font-size: 64px; text-transform: uppercase; margin-bottom: 16px; }
.page-404 p { font-size: 18px; font-weight: 500; margin: 0 0 30px; }
.page-404 .tile-rainbow {
  width: 317px;
  height: 256px;
  margin: 0 auto 42px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .header-inner { height: auto; padding: 24px 30px; grid-template-columns: auto 1fr auto; gap: 20px; }
  .main-nav { gap: 22px; justify-self: center; }
  .main-nav a { font-size: 17px; }
  .hero { grid-template-columns: 1fr; height: auto; }
  .hero-blue { padding: 56px 30px; }
  .hero-rainbow { height: 260px; }
  .hero-badge { left: auto; right: 20px; top: 430px; width: 160px; }
  .section-row, .grid, .features, .behind-inner, .footer-inner, .product-layout, .page-simple {
    padding-left: 30px;
    padding-right: 30px;
  }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; gap: 48px; }
  .feature + .feature { border-left: 0; }
  .behind-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .splat { right: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 12px; }
  .footer-col + .footer-col { border-left: 0; padding-left: 0; }
  .product-layout { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .card-bar { height: 44px; padding: 0 10px; }
  .card-name, .card-price { font-size: 13px; }
  .card-name { margin-right: 8px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; flex-wrap: wrap; gap: 16px; }
  .logo img { width: 130px; }
  .hero-blue h1 { font-size: 52px; }
  .hero-badge { top: 380px; width: 130px; }
  .announce p { font-size: 14px; padding: 0 34px; }
  .newsletter input { width: 100%; min-width: 0; }
  .details h1 { font-size: 38px; }
  .also-love-heading { font-size: 36px; }
  .also-love-heading img { width: 30px; }
  .behind-grid { grid-template-columns: 1fr; }
}
