/* THE WALLPAPER SAMPLE ROOM — every pattern is discontinued and still in stock. */

:root {
  --wp-bg: #efe7d8;
  --wp-ink: #2a2418;
}

body.wallpaper {
  background: var(--wp-bg);
  color: var(--wp-ink);
  min-height: 100vh;
  padding: 4rem 1.5rem 10rem;
}

.wp-header {
  text-align: center;
  margin-bottom: 3rem;
}
.wp-header h1 {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.8rem;
}
.wp-header p {
  max-width: 44ch;
  margin: 0.75rem auto 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

.samples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.sample {
  background: #fff;
  padding: 10px 10px 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transform: rotate(var(--tilt, 0deg));
}
.sample:nth-child(2n) { --tilt: 0.6deg; }
.sample:nth-child(3n) { --tilt: -0.8deg; }
.sample:nth-child(5n) { --tilt: 0.3deg; }

/* click a sample, it lifts a corner and drops back into place */
.sample { cursor: pointer; }
.sample.sample-peel {
  animation: peel 0.5s ease-in-out;
}
@keyframes peel {
  0%   { transform: rotate(var(--tilt, 0deg)) scale(1); }
  40%  { transform: rotate(calc(var(--tilt, 0deg) + 6deg)) scale(1.04) translateY(-6px); }
  100% { transform: rotate(var(--tilt, 0deg)) scale(1); }
}

.swatch {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(0,0,0,0.1);
}

.sample .label {
  display: block;
  margin-top: 0.6rem;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  text-align: center;
  opacity: 0.75;
}
.sample .sku {
  display: block;
  text-align: center;
  font-size: 0.6rem;
  opacity: 0.6;
  margin-top: 0.15rem;
}

/* 1 — stripes */
.p1 {
  background: repeating-linear-gradient(90deg, #d9534f 0 14px, #f4e9df 14px 28px);
}
/* 2 — polka */
.p2 {
  background-color: #2c6e6b;
  background-image: radial-gradient(#f4e9df 22%, transparent 23%);
  background-size: 26px 26px;
}
/* 3 — gingham / plaid */
.p3 {
  background-color: #f4e9df;
  background-image:
    repeating-linear-gradient(0deg, rgba(190, 60, 60, 0.35) 0 6px, transparent 6px 24px),
    repeating-linear-gradient(90deg, rgba(190, 60, 60, 0.35) 0 6px, transparent 6px 24px);
}
/* 4 — chevron */
.p4 {
  background-color: #f4e9df;
  background-image:
    repeating-linear-gradient(135deg, #d9a441 0 10px, transparent 10px 20px),
    repeating-linear-gradient(45deg, #d9a441 0 10px, transparent 10px 20px);
}
/* 5 — houndstooth-ish */
.p5 {
  background-color: #f4e9df;
  background-image:
    conic-gradient(#2a2418 25%, transparent 0 50%, #2a2418 0 75%, transparent 0);
  background-size: 20px 20px;
}
/* 6 — damask blob (organic radial repeats) */
.p6 {
  background-color: #5b3a5c;
  background-image:
    radial-gradient(circle at 25% 25%, #caa6cc 0 12px, transparent 13px),
    radial-gradient(circle at 75% 75%, #caa6cc 0 12px, transparent 13px);
  background-size: 50px 50px;
}
/* 7 — vertical stripe, thin, migraine-inducing on purpose */
.p7 {
  background: repeating-linear-gradient(90deg, #111 0 2px, #f4e9df 2px 6px);
}
/* 8 — checker */
.p8 {
  background:
    conic-gradient(#e0672c 90deg, #f4e9df 0 180deg, #e0672c 0 270deg, #f4e9df 0);
  background-size: 30px 30px;
}
/* 9 — confetti dots, multicolor */
.p9 {
  background-color: #1c2b4a;
  background-image:
    radial-gradient(circle, #ff2fd6 0 3px, transparent 4px),
    radial-gradient(circle, #ffe62f 0 3px, transparent 4px),
    radial-gradient(circle, #2fe0ff 0 3px, transparent 4px);
  background-size: 34px 34px, 34px 34px, 34px 34px;
  background-position: 0 0, 12px 18px, 24px 4px;
}

.wp-hint {
  max-width: 40ch;
  margin: 3rem auto 0;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.7;
}
