/* 06 Cubby: every product for the pet, shelved by use case. */

.cubby {
  background: var(--sky-section);
}
.cubby-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}
.cubby-head h1 em {
  color: var(--tangerine);
}
.cubby-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.cubby-intro p {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}
.cubby-intro .cubby-note {
  color: var(--ink);
  font-size: 13px;
}
.cubby-intro .cubby-note:empty {
  display: none;
}
.cubby-room {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
}

/* The pet: 3D twin, else their photo, else the drawing. */
.cubby-pet {
  flex: 1 1 220px;
  max-width: 300px;
  position: sticky;
  top: 100px;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--pink-tint);
}
.cubby-pet-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cubby-pet-model {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.cubby-pet-model model-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
}
.cubby-pet .cubby-pet-art {
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%) scale(0.78);
  transform-origin: bottom center;
}
.cubby-pet.has-photo .cubby-pet-art,
.cubby-pet.has-3d-model .cubby-pet-art {
  display: none;
}

.cubby-shelves {
  flex: 999 1 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.cubby-shelf {
  background: var(--paper);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(31, 36, 64, 0.08);
}
.cubby-shelf header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.cubby-shelf h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}
.cubby-shelf header small {
  color: var(--muted-2);
}
.cubby-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.cubby-row-item {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  border: 1px solid rgba(31, 36, 64, 0.08);
}
.cubby-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(31, 36, 64, 0.06) 0 1px, transparent 1px 8px), var(--tint);
}
.cubby-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cubby-row-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.cubby-row-copy b {
  font-size: 13px;
}
.cubby-row-copy small {
  font-size: 11px;
  color: var(--muted-2);
  margin-top: -3px;
}
.cubby-row-copy .arcade-btn {
  align-self: flex-start;
  padding: 5px 10px;
  font-size: 11px;
}
