.shelf-intro .page-title {
  font-size: clamp(38px, 4.2vw, 68px);
}

.shelf {
  --snap: cubic-bezier(0.23, 1, 0.32, 1);
  --well: #ecebf1;
  --bone: #dedde5;
  padding-block: clamp(32px, 4vw, 56px) var(--section);
}

.shelf-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.shelf-list > li {
  display: flex;
  min-width: 0;
}

.shelf-list > .is-own,
.shelf-list > li:not(.is-own):first-child:nth-last-child(odd of :not(.is-own)) {
  grid-column: 1 / -1;
}

.shelf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.07), 0 24px 60px -40px rgba(17, 17, 17, 0.22);
  scroll-margin-top: calc(var(--header) + 24px);
  transition: box-shadow 0.35s ease, scale 0.2s var(--snap);
}

.shelf-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  isolation: isolate;
  border-radius: calc(var(--radius) - 8px);
  background: radial-gradient(70cqw 56cqw at 0% 0%, #fbfafc, transparent 72%), linear-gradient(160deg, #f4f3f7, #eae9ef);
  container-type: inline-size;
}

.shelf-media::before,
.shelf-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shelf-media::before {
  background: repeating-radial-gradient(circle at 0 0, transparent 0 calc(5cqw - 1px), rgba(17, 17, 17, 0.08) calc(5cqw - 1px) 5cqw);
  mask-image: radial-gradient(circle at 0 0, #000, transparent 68%);
  transform-origin: 0 0;
  transition: scale 0.6s var(--ease);
}

.shelf-media::after {
  background: radial-gradient(48cqw 40cqw at 3% 2%, rgba(255, 25, 72, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.shelf-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shelf-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.shelf-art {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.shelf-win {
  position: absolute;
  top: 9cqw;
  left: 8cqw;
  display: grid;
  grid-template-columns: 21cqw minmax(0, 1fr);
  grid-template-rows: 8.4cqw minmax(0, 1fr);
  width: 100cqw;
  height: 60cqw;
  border-radius: 2.4cqw 0 0 0;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.06), 0 3cqw 8cqw -3cqw rgba(17, 17, 17, 0.28);
  transition: box-shadow 0.45s var(--ease);
}

.shelf-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 0 2.6cqw;
  border-bottom: 1px solid var(--line);
  border-radius: 2.4cqw 0 0 0;
  background: var(--paper);
  font-size: 2.2cqw;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}

.shelf-top .ph {
  display: grid;
  place-items: center;
  width: 4.4cqw;
  height: 4.4cqw;
  border-radius: 1.2cqw;
  background: var(--red);
  color: #fff;
  font-size: 2.6cqw;
}

.shelf-top i:not(.ph) {
  width: 18cqw;
  height: 3.2cqw;
  margin-left: 4cqw;
  border-radius: 99px;
  background: var(--paper-2);
}

.shelf-side {
  display: flex;
  flex-direction: column;
  gap: 2.2cqw;
  padding: 2.4cqw;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.shelf-side i {
  height: 1.7cqw;
  border-radius: 99px;
  background: var(--well);
}

.shelf-side i:first-child {
  height: 4cqw;
  margin-bottom: -0.4cqw;
  background: color-mix(in srgb, var(--red) 12%, var(--paper));
}

.shelf-side i:nth-child(2) {
  width: 74%;
}

.shelf-side i:nth-child(3) {
  width: 86%;
}

.shelf-side i:nth-child(4) {
  width: 62%;
}

.shelf-side i:nth-child(5) {
  width: 78%;
}

.shelf-view {
  display: grid;
  align-content: start;
  gap: 1.6cqw;
  min-width: 0;
  padding: 3cqw;
}

.shelf-view::before {
  content: "";
  width: 22cqw;
  height: 2.4cqw;
  margin-bottom: 1.2cqw;
  border-radius: 99px;
  background: var(--ink);
}

.shelf-view i {
  position: relative;
  height: 5cqw;
  border-radius: 1.2cqw;
  background: var(--paper-2);
  transition: translate 0.4s var(--ease), scale 0.4s var(--ease), rotate 0.4s var(--ease);
}

.shelf-view i::before,
.shelf-view i::after {
  content: "";
  position: absolute;
  top: 50%;
  border-radius: 99px;
  background: var(--bone);
  translate: 0 -50%;
}

.shelf-view i::before {
  left: 1.4cqw;
  width: 2.4cqw;
  height: 2.4cqw;
}

.shelf-view i::after {
  left: 5.4cqw;
  width: 34%;
  height: 1.4cqw;
}

.shelf-view i:nth-child(n + 6) {
  display: none;
}

.shelf-card[data-art="liste"] .shelf-view i:nth-child(2) {
  background: color-mix(in srgb, var(--red) 8%, var(--paper));
}

.shelf-card[data-art="liste"] .shelf-view i:nth-child(2)::after {
  background: color-mix(in srgb, var(--red) 36%, var(--paper));
}

.shelf-card[data-art="liste"] .shelf-view i:nth-child(3)::after {
  width: 26%;
}

.shelf-card[data-art="liste"] .shelf-view i:nth-child(4)::after {
  width: 40%;
}

.shelf-card[data-art="grafik"] .shelf-view {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: auto 30cqw;
  align-items: end;
  column-gap: 1.6cqw;
}

.shelf-card[data-art="grafik"] .shelf-view::before {
  grid-column: 1 / -1;
}

.shelf-card[data-art="grafik"] .shelf-view i {
  display: block;
  height: 50%;
  border-radius: 1cqw 1cqw 0.4cqw 0.4cqw;
  background: var(--bone);
  transform-origin: 50% 100%;
}

.shelf-card[data-art="grafik"] .shelf-view i::before,
.shelf-card[data-art="grafik"] .shelf-view i::after {
  content: none;
}

.shelf-card[data-art="grafik"] .shelf-view i:nth-child(1) {
  height: 38%;
}

.shelf-card[data-art="grafik"] .shelf-view i:nth-child(2) {
  height: 58%;
}

.shelf-card[data-art="grafik"] .shelf-view i:nth-child(3) {
  height: 46%;
}

.shelf-card[data-art="grafik"] .shelf-view i:nth-child(4) {
  height: 72%;
}

.shelf-card[data-art="grafik"] .shelf-view i:nth-child(5) {
  height: 54%;
}

.shelf-card[data-art="grafik"] .shelf-view i:nth-child(6) {
  height: 88%;
  background: var(--red);
}

.shelf-card[data-art="grafik"] .shelf-view i:nth-child(7) {
  height: 64%;
}

.shelf-card[data-art="grafik"] .shelf-view i:nth-child(8) {
  height: 78%;
}

.shelf-card[data-art="pano"] .shelf-view {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto repeat(3, 7.4cqw);
  grid-auto-flow: column;
  column-gap: 1.6cqw;
}

.shelf-card[data-art="pano"] .shelf-view::before {
  grid-row: 1;
  grid-column: 1 / -1;
}

.shelf-card[data-art="pano"] .shelf-view i {
  display: block;
  height: auto;
  box-shadow: inset 0 0 0 1px var(--line);
}

.shelf-card[data-art="pano"] .shelf-view i::before {
  top: 1.6cqw;
  left: 1.4cqw;
  width: 58%;
  height: 1.3cqw;
  translate: none;
}

.shelf-card[data-art="pano"] .shelf-view i::after {
  top: auto;
  bottom: 1.4cqw;
  left: 1.4cqw;
  width: 26%;
  height: 1.3cqw;
  translate: none;
}

.shelf-card[data-art="pano"] .shelf-view i:nth-child(4) {
  background: var(--paper);
  box-shadow: inset 0.5cqw 0 0 var(--red), 0 1cqw 2.4cqw -1cqw rgba(17, 17, 17, 0.25);
}

.shelf-card[data-art="odeme"] .shelf-view {
  grid-template-columns: 27cqw 25cqw;
  column-gap: 3cqw;
  row-gap: 1.6cqw;
}

.shelf-card[data-art="odeme"] .shelf-view::before {
  grid-column: 1 / -1;
}

.shelf-card[data-art="odeme"] .shelf-view i {
  display: block;
  grid-column: 1 / -1;
  height: 3.8cqw;
}

.shelf-card[data-art="odeme"] .shelf-view i:nth-child(1) {
  grid-column: 1;
  grid-row: 2 / span 3;
  height: auto;
  border-radius: 1.6cqw;
  background: linear-gradient(135deg, #2c2c32, #111114 58%, #4d0a1e);
  box-shadow: 0 1.4cqw 3cqw -1.4cqw rgba(17, 17, 17, 0.5);
}

.shelf-card[data-art="odeme"] .shelf-view i:nth-child(1)::before {
  top: 2.8cqw;
  left: 2.4cqw;
  width: 3.6cqw;
  height: 2.8cqw;
  border-radius: 0.6cqw;
  background: linear-gradient(135deg, #ececf0, #b6b6bf);
  translate: none;
}

.shelf-card[data-art="odeme"] .shelf-view i:nth-child(1)::after {
  top: auto;
  bottom: 3cqw;
  left: 2.4cqw;
  width: 19cqw;
  height: 1.1cqw;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0 3.4cqw, transparent 3.4cqw 4.8cqw);
  translate: none;
}

.shelf-card[data-art="odeme"] .shelf-view i:nth-child(2),
.shelf-card[data-art="odeme"] .shelf-view i:nth-child(3) {
  grid-column: 2;
  height: 4.4cqw;
  border-radius: 1cqw;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--bone);
}

.shelf-card[data-art="odeme"] .shelf-view i:nth-child(2)::before,
.shelf-card[data-art="odeme"] .shelf-view i:nth-child(3)::before,
.shelf-card[data-art="odeme"] .shelf-view i:nth-child(4)::before {
  content: none;
}

.shelf-card[data-art="odeme"] .shelf-view i:nth-child(2)::after,
.shelf-card[data-art="odeme"] .shelf-view i:nth-child(3)::after {
  left: 1.4cqw;
  width: 46%;
  height: 1.2cqw;
  background: var(--well);
}

.shelf-card[data-art="odeme"] .shelf-view i:nth-child(3)::after {
  width: 30%;
}

.shelf-card[data-art="odeme"] .shelf-view i:nth-child(4) {
  grid-column: 2;
  height: 5cqw;
  border-radius: 99px;
  background: var(--red);
  box-shadow: 0 1cqw 2.4cqw -1cqw color-mix(in srgb, var(--red) 70%, transparent);
}

.shelf-card[data-art="odeme"] .shelf-view i:nth-child(4)::after {
  left: 50%;
  width: 30%;
  height: 1.3cqw;
  background: rgba(255, 255, 255, 0.86);
  translate: -50% -50%;
}

.shelf-card[data-art="odeme"] .shelf-view i:nth-child(n + 5)::before {
  background: color-mix(in srgb, var(--ink) 14%, var(--paper));
}

.shelf-card[data-art="odeme"] .shelf-view i:nth-child(6)::after {
  width: 24%;
}

.shelf-card[data-art="odeme"] .shelf-view i:nth-child(8) {
  display: none;
}

.shelf-card[data-art="teklif"] .shelf-win {
  background: linear-gradient(90deg, var(--paper) 21cqw, var(--paper-2) 21cqw);
}

.shelf-card[data-art="teklif"] .shelf-view {
  position: relative;
  justify-self: start;
  width: 52cqw;
  margin: 2.6cqw 0 0 3.6cqw;
  padding: 3cqw 3.4cqw;
  row-gap: 1.1cqw;
  border-radius: 1cqw 1cqw 0 0;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 1.6cqw 4cqw -2cqw rgba(17, 17, 17, 0.25);
}

.shelf-card[data-art="teklif"] .shelf-view::before {
  width: 16cqw;
}

.shelf-card[data-art="teklif"] .shelf-view i {
  display: block;
  height: 3.2cqw;
  border-radius: 0;
  background: none;
  box-shadow: inset 0 -1px 0 var(--line);
}

.shelf-card[data-art="teklif"] .shelf-view i::before {
  left: 0;
  width: 42%;
  height: 1.2cqw;
}

.shelf-card[data-art="teklif"] .shelf-view i::after {
  right: 0;
  left: auto;
  width: 14%;
  height: 1.2cqw;
}

.shelf-card[data-art="teklif"] .shelf-view i:nth-child(1) {
  height: 4.4cqw;
  box-shadow: none;
}

.shelf-card[data-art="teklif"] .shelf-view i:nth-child(1)::before {
  width: 3.6cqw;
  height: 3.6cqw;
  border-radius: 0.8cqw;
  background: var(--red);
}

.shelf-card[data-art="teklif"] .shelf-view i:nth-child(1)::after {
  width: 26%;
}

.shelf-card[data-art="teklif"] .shelf-view i:nth-child(6) {
  height: 4cqw;
  box-shadow: none;
}

.shelf-card[data-art="teklif"] .shelf-view i:nth-child(6)::before {
  right: 20cqw;
  left: auto;
  width: 9cqw;
  background: color-mix(in srgb, var(--ink) 30%, var(--paper));
}

.shelf-card[data-art="teklif"] .shelf-view i:nth-child(6)::after {
  width: 15cqw;
  height: 2cqw;
  background: var(--ink);
}

.shelf-card[data-art="teklif"] .shelf-view i:nth-child(7) {
  height: 5cqw;
  box-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cpath d='M4 28c10-18 18-22 20-12s-6 18 2 10 12-20 18-14-4 16 4 12 10-12 16-8 6 6 14 2 12-8 20-6' fill='none' stroke='%23111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 0 50% / auto 80% no-repeat;
}

.shelf-card[data-art="teklif"] .shelf-view i:nth-child(7)::before,
.shelf-card[data-art="teklif"] .shelf-view i:nth-child(7)::after {
  content: none;
}

.shelf-card[data-art="teklif"] .shelf-view i:nth-child(8) {
  position: absolute;
  top: 25cqw;
  right: 3.4cqw;
  width: 11cqw;
  height: 11cqw;
  border-radius: 50%;
  background: color-mix(in srgb, var(--red) 6%, transparent);
  box-shadow: inset 0 0 0 0.45cqw var(--red);
  rotate: -14deg;
}

.shelf-card[data-art="teklif"] .shelf-view i:nth-child(8)::before {
  top: 50%;
  left: 50%;
  width: 8cqw;
  height: 8cqw;
  border-radius: 50%;
  background: none;
  box-shadow: inset 0 0 0 0.2cqw color-mix(in srgb, var(--red) 60%, transparent);
  translate: -50% -50%;
}

.shelf-card[data-art="teklif"] .shelf-view i:nth-child(8)::after {
  top: 50%;
  left: 50%;
  width: 2.2cqw;
  height: 4cqw;
  border-right: 0.6cqw solid var(--red);
  border-bottom: 0.6cqw solid var(--red);
  border-radius: 0;
  background: none;
  translate: -50% -62%;
  rotate: 45deg;
}

.shelf-card[data-art="stok"] .shelf-view {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 11.6cqw;
  gap: 1.6cqw;
}

.shelf-card[data-art="stok"] .shelf-view::before {
  grid-column: 1 / -1;
  height: 2.4cqw;
}

.shelf-card[data-art="stok"] .shelf-view i {
  display: block;
  height: auto;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}

.shelf-card[data-art="stok"] .shelf-view i::before {
  top: 1.4cqw;
  left: 1.4cqw;
  z-index: 1;
  width: 46%;
  height: 1.2cqw;
  translate: none;
}

.shelf-card[data-art="stok"] .shelf-view i::after {
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: color-mix(in srgb, var(--ink) 11%, var(--paper-2));
  translate: none;
  transform-origin: 50% 100%;
  scale: 1 var(--lv, 0.6);
  transition: scale 0.5s var(--ease), background-color 0.4s ease;
}

.shelf-card[data-art="stok"] .shelf-view i:nth-child(1) {
  --lv: 0.72;
}

.shelf-card[data-art="stok"] .shelf-view i:nth-child(2) {
  --lv: 0.46;
}

.shelf-card[data-art="stok"] .shelf-view i:nth-child(3) {
  --lv: 0.84;
}

.shelf-card[data-art="stok"] .shelf-view i:nth-child(4) {
  --lv: 0.2;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 45%, transparent);
}

.shelf-card[data-art="stok"] .shelf-view i:nth-child(4)::after {
  background: var(--red);
}

.shelf-card[data-art="stok"] .shelf-view i:nth-child(5) {
  --lv: 0.6;
}

.shelf-card[data-art="stok"] .shelf-view i:nth-child(6) {
  --lv: 0.9;
}

.shelf-card[data-art="stok"] .shelf-view i:nth-child(7) {
  --lv: 0.36;
}

.shelf-card[data-art="stok"] .shelf-view i:nth-child(8) {
  --lv: 0.55;
}

.shelf-card[data-art="destek"] .shelf-view {
  justify-self: start;
  width: 64cqw;
  grid-template-columns: minmax(0, 1fr) 4.6cqw;
  column-gap: 1.4cqw;
  row-gap: 1.4cqw;
}

.shelf-card[data-art="destek"] .shelf-view::before {
  grid-column: 1 / -1;
}

.shelf-card[data-art="destek"] .shelf-view i {
  display: block;
  grid-column: 1 / -1;
  justify-self: start;
  width: 62%;
  height: 6.4cqw;
  border-radius: 1.8cqw 1.8cqw 1.8cqw 0.5cqw;
}

.shelf-card[data-art="destek"] .shelf-view i::before,
.shelf-card[data-art="destek"] .shelf-view i::after {
  left: 1.8cqw;
  height: 1.2cqw;
  translate: none;
}

.shelf-card[data-art="destek"] .shelf-view i::before {
  top: 1.7cqw;
  width: 72%;
}

.shelf-card[data-art="destek"] .shelf-view i::after {
  top: auto;
  bottom: 1.7cqw;
  width: 44%;
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(1) {
  width: 100%;
  height: 3cqw;
  border-radius: 0;
  background: none;
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(1)::before {
  top: 50%;
  left: 0;
  width: 9cqw;
  height: 2.6cqw;
  background: color-mix(in srgb, var(--red) 14%, var(--paper));
  translate: 0 -50%;
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(1)::after {
  top: 50%;
  bottom: auto;
  left: 11cqw;
  width: 32%;
  translate: 0 -50%;
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(3) {
  justify-self: end;
  width: 54%;
  border-radius: 1.8cqw 1.8cqw 0.5cqw 1.8cqw;
  background: var(--ink);
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(3)::before {
  background: rgba(255, 255, 255, 0.72);
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(3)::after {
  background: rgba(255, 255, 255, 0.34);
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(4) {
  width: 40%;
  height: 4.4cqw;
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(4)::before {
  top: 50%;
  width: 64%;
  translate: 0 -50%;
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(4)::after {
  content: none;
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(5) {
  width: 10.4cqw;
  height: 3.8cqw;
  background: radial-gradient(circle at 50% 50%, var(--bone) 0.6cqw, transparent 0.65cqw), var(--paper-2);
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(5)::before,
.shelf-card[data-art="destek"] .shelf-view i:nth-child(5)::after {
  top: 50%;
  bottom: auto;
  width: 1.2cqw;
  height: 1.2cqw;
  translate: 0 -50%;
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(5)::before {
  left: 2.2cqw;
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(5)::after {
  right: 2.2cqw;
  left: auto;
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(6) {
  grid-column: 1;
  width: 100%;
  height: 4.6cqw;
  border-radius: 99px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--bone);
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(6)::before {
  content: none;
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(6)::after {
  top: 50%;
  bottom: auto;
  left: 2cqw;
  width: 38%;
  background: var(--well);
  translate: 0 -50%;
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(7) {
  grid-column: 2;
  width: 4.6cqw;
  height: 4.6cqw;
  border-radius: 50%;
  background: var(--red);
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(7)::before {
  content: none;
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(7)::after {
  top: 50%;
  left: 50%;
  width: 1.8cqw;
  height: 1.8cqw;
  border-radius: 0;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 26% 50%);
  translate: -40% -50%;
}

.shelf-card[data-art="destek"] .shelf-view i:nth-child(8) {
  display: none;
}

.shelf-code {
  background: radial-gradient(70% 90% at 85% 100%, rgba(255, 25, 72, 0.12), transparent 70%), radial-gradient(70cqw 56cqw at 0% 0%, #fbfafc, transparent 72%), linear-gradient(160deg, #f4f3f7, #eae9ef);
}

.shelf-editor {
  position: absolute;
  top: 9cqw;
  left: 8cqw;
  z-index: 1;
  display: grid;
  grid-template-rows: 7cqw minmax(0, 1fr);
  width: 100cqw;
  height: 60cqw;
  border-radius: 2.4cqw 0 0 0;
  background: #141417;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.2), 0 3cqw 8cqw -3cqw rgba(17, 17, 17, 0.45);
  transition: box-shadow 0.45s var(--ease);
}

.shelf-tabs {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 0 2.6cqw;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.shelf-tabs i {
  width: 1.5cqw;
  height: 1.5cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.shelf-tabs b {
  align-self: flex-end;
  width: 17cqw;
  height: 4.4cqw;
  margin-left: 3cqw;
  border-radius: 1cqw 1cqw 0 0;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0.3cqw 0 var(--red);
}

.shelf-lines {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1.6cqw;
  padding: 3.4cqw 0 0 10cqw;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 7cqw, transparent 7cqw);
}

.shelf-lines::before {
  content: "";
  position: absolute;
  top: 3.4cqw;
  left: 3cqw;
  width: 2.2cqw;
  height: 23.3cqw;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0 1.5cqw, transparent 1.5cqw 3.1cqw);
}

.shelf-lines::after {
  content: "";
  position: absolute;
  top: 24.6cqw;
  left: 31.5cqw;
  width: 0.5cqw;
  height: 2.5cqw;
  background: var(--red);
  transition: translate 0.45s var(--ease);
}

.shelf-lines i {
  --c: rgba(255, 255, 255, 0.72);
  --c2: rgba(255, 255, 255, 0.72);
  --w2: 0cqw;
  position: relative;
  display: block;
  width: var(--w, 10cqw);
  height: 1.5cqw;
  margin-left: var(--in, 0cqw);
  border-radius: 99px;
  background: var(--c);
  transform-origin: 0 50%;
}

.shelf-lines i::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(100% + 1.4cqw);
  width: var(--w2);
  height: 100%;
  border-radius: 99px;
  background: var(--c2);
  transform-origin: 0 50%;
  transition: scale 0.45s var(--ease);
}

.shelf-lines i:nth-child(1) {
  --w: 9cqw;
  --c: var(--red);
  --w2: 16cqw;
}

.shelf-lines i:nth-child(2) {
  --w: 12cqw;
  --c: var(--red);
  --w2: 14cqw;
  --c2: #ff8aa5;
}

.shelf-lines i:nth-child(3) {
  --w: 0cqw;
}

.shelf-lines i:nth-child(4) {
  --in: 4cqw;
  --w: 18cqw;
  --w2: 9cqw;
  --c2: rgba(255, 255, 255, 0.28);
}

.shelf-lines i:nth-child(5) {
  --in: 4cqw;
  --w: 7cqw;
  --c: var(--red);
  --w2: 20cqw;
}

.shelf-lines i:nth-child(6) {
  --in: 8cqw;
  --w: 22cqw;
  --c: #ff8aa5;
  --w2: 6cqw;
}

.shelf-lines i:nth-child(7) {
  --w: 3cqw;
}

.shelf-lines i:nth-child(8) {
  --w: 11cqw;
  --c: var(--red);
  --w2: 22cqw;
}

.shelf-lines i:nth-child(8)::after {
  scale: 0.36 1;
}

.shelf-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(20px, 2vw, 26px) clamp(12px, 1.4vw, 20px) clamp(16px, 1.6vw, 22px);
}

.shelf-title {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.shelf-logo {
  display: block;
  width: auto;
  max-width: 150px;
  height: 30px;
  margin-bottom: 4px;
  object-fit: contain;
  object-position: 0 50%;
}

.shelf-name {
  font-size: clamp(22px, 0.7vw + 15px, 27px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.shelf-text {
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.shelf-go {
  flex: none;
  display: block;
}

.shelf-go::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
}

.shelf-go:focus-visible {
  outline: 0;
}

.shelf-card:has(.shelf-go:focus-visible) {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.shelf-card:has(.shelf-go:focus-visible) .shelf-arrow {
  background: var(--red);
  box-shadow: none;
  color: #fff;
}

.shelf-arrow {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 16px;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.shelf-arrow i {
  grid-area: 1 / 1;
  transition: translate 0.3s var(--snap);
}

.shelf-arrow i:last-child {
  translate: -160% 160%;
}

.shelf-chips {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.shelf-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transition: background-color 0.2s ease, color 0.2s ease, scale 0.15s var(--snap);
}

.shelf-chips a i {
  font-size: 16px;
  color: var(--ink-2);
  transition: color 0.2s ease;
}

.shelf .shelf-chips a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.is-own .shelf-name {
  font-size: clamp(26px, 1.1vw + 15px, 34px);
}

html.motion .shelf-card:not(.is-in) {
  opacity: 0.006;
  transform: translateY(40px);
}

html.motion .shelf-card:active {
  scale: 0.99;
}

html.motion .shelf-chips a:active {
  scale: 0.97;
}

html.motion .shelf-card:not(.is-built) :is(.shelf-win, .shelf-editor, .shelf-view i, .shelf-lines i),
html.motion .shelf-card:not(.is-built) .shelf-view::before {
  opacity: 0;
}

html.motion .shelf-card.is-built :is(.shelf-win, .shelf-editor) {
  animation: shelf-rise 0.7s var(--ease) backwards;
}

html.motion .shelf-card.is-built .shelf-view::before,
html.motion .shelf-card.is-built .shelf-view i {
  animation: shelf-in 0.5s var(--ease) 0.2s backwards;
}

html.motion .shelf-card.is-built[data-art="grafik"] .shelf-view i {
  animation-name: shelf-grow;
}

html.motion .shelf-card.is-built .shelf-lines i {
  animation: shelf-type 0.45s var(--ease) 0.25s backwards;
}

html.motion .shelf-card.is-built .shelf-view i:nth-child(1) {
  animation-delay: 0.24s;
}

html.motion .shelf-card.is-built .shelf-view i:nth-child(2) {
  animation-delay: 0.28s;
}

html.motion .shelf-card.is-built .shelf-view i:nth-child(3) {
  animation-delay: 0.32s;
}

html.motion .shelf-card.is-built .shelf-view i:nth-child(4) {
  animation-delay: 0.36s;
}

html.motion .shelf-card.is-built .shelf-view i:nth-child(5) {
  animation-delay: 0.4s;
}

html.motion .shelf-card.is-built .shelf-view i:nth-child(6) {
  animation-delay: 0.44s;
}

html.motion .shelf-card.is-built .shelf-view i:nth-child(7) {
  animation-delay: 0.48s;
}

html.motion .shelf-card.is-built .shelf-view i:nth-child(8) {
  animation-delay: 0.52s;
}

html.motion .shelf-card.is-built .shelf-lines i:nth-child(2) {
  animation-delay: 0.31s;
}

html.motion .shelf-card.is-built .shelf-lines i:nth-child(3) {
  animation-delay: 0.37s;
}

html.motion .shelf-card.is-built .shelf-lines i:nth-child(4) {
  animation-delay: 0.43s;
}

html.motion .shelf-card.is-built .shelf-lines i:nth-child(5) {
  animation-delay: 0.49s;
}

html.motion .shelf-card.is-built .shelf-lines i:nth-child(6) {
  animation-delay: 0.55s;
}

html.motion .shelf-card.is-built .shelf-lines i:nth-child(7) {
  animation-delay: 0.61s;
}

html.motion .shelf-card.is-built .shelf-lines i:nth-child(8) {
  animation-delay: 0.67s;
}

@keyframes shelf-rise {
  from {
    opacity: 0;
    translate: 0 5cqw;
  }
}

@keyframes shelf-in {
  from {
    opacity: 0;
    translate: 0 1.6cqw;
  }
}

@keyframes shelf-grow {
  from {
    opacity: 0;
    scale: 1 0.3;
  }
}

@keyframes shelf-type {
  from {
    scale: 0 1;
  }
}

html:not(.motion) .shelf-arrow i {
  transition: none;
}

@media (hover: hover) and (pointer: fine) {
  .shelf-card:hover {
    box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.09), 0 30px 70px -34px rgba(17, 17, 17, 0.3);
  }

  .shelf-card:hover .shelf-media::after {
    opacity: 1;
  }

  html.motion .shelf-card:hover .shelf-media::before {
    scale: 1.08;
  }

  .shelf-card:hover .shelf-win,
  .shelf-card:hover .shelf-editor {
    box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08), 0 5cqw 11cqw -4cqw rgba(17, 17, 17, 0.4);
  }

  .shelf-card:hover .shelf-arrow {
    background: var(--red);
    box-shadow: none;
    color: #fff;
  }

  html.motion .shelf-card:hover .shelf-arrow i:first-child {
    translate: 160% -160%;
  }

  html.motion .shelf-card:hover .shelf-arrow i:last-child {
    translate: 0 0;
  }

  html.motion .shelf-card.is-built[data-art="liste"]:hover .shelf-view i:nth-child(2) {
    translate: 1.2cqw 0;
  }

  html.motion .shelf-card.is-built[data-art="grafik"]:hover .shelf-view i:nth-child(6) {
    scale: 1 1.12;
  }

  html.motion .shelf-card.is-built[data-art="pano"]:hover .shelf-view i:nth-child(4) {
    translate: 0 -0.8cqw;
  }

  html.motion .shelf-card.is-built[data-art="odeme"]:hover .shelf-view i:nth-child(1) {
    translate: 0 -0.8cqw;
    rotate: -3deg;
  }

  html.motion .shelf-card.is-built[data-art="destek"]:hover .shelf-view i:nth-child(3) {
    translate: -1.2cqw 0;
  }

  html.motion .shelf-card.is-built[data-art="destek"]:hover .shelf-view i:nth-child(7) {
    scale: 1.12;
  }

  html.motion .shelf-card.is-built[data-art="teklif"]:hover .shelf-view i:nth-child(8) {
    scale: 1.12;
    rotate: -6deg;
  }

  .shelf-card[data-art="stok"]:hover .shelf-view i:nth-child(4) {
    --lv: 0.78;
  }

  .shelf-card[data-art="stok"]:hover .shelf-view i:nth-child(4)::after {
    background: color-mix(in srgb, var(--ink) 11%, var(--paper-2));
  }

  html.motion .shelf-own:hover .shelf-lines i:nth-child(8)::after {
    scale: 1 1;
  }

  html.motion .shelf-own:hover .shelf-lines::after {
    translate: 14cqw 0;
  }

  .shelf-chips a:hover {
    background: var(--ink);
    box-shadow: none;
    color: var(--paper);
  }

  .shelf-chips a:hover i {
    color: var(--paper);
  }
}

@media (min-width: 1024px) {
  .shelf-list > .is-own .shelf-card,
  .shelf-list > li:not(.is-own):first-child:nth-last-child(odd of :not(.is-own)) .shelf-card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .shelf-list > .is-own .shelf-media,
  .shelf-list > li:not(.is-own):first-child:nth-last-child(odd of :not(.is-own)) .shelf-media {
    order: 2;
    aspect-ratio: auto;
    min-height: 400px;
  }

  .shelf-list > .is-own .shelf-body,
  .shelf-list > li:not(.is-own):first-child:nth-last-child(odd of :not(.is-own)) .shelf-body {
    justify-content: center;
    padding: var(--pad);
  }

  .shelf-list > .is-own .shelf-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .shelf-list > .is-own .shelf-media {
    min-height: 340px;
  }
}

@media (max-width: 1023px) {
  .shelf-list > .is-own .shelf-media {
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 767px) {
  .shelf-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .shelf-list > li:not(.is-own):first-child:nth-last-child(odd of :not(.is-own)) {
    grid-column: auto;
  }

  .shelf-card {
    padding: 6px;
  }

  .shelf-body {
    padding: 18px 12px 8px;
  }

  .shelf-name {
    font-size: 22px;
  }

  .is-own .shelf-name {
    font-size: 24px;
  }

  .shelf-text {
    font-size: 15px;
  }

  .shelf-list > .is-own .shelf-media {
    aspect-ratio: 16 / 10;
  }
}

@media (pointer: coarse) {
  .shelf-chips a {
    min-height: 44px;
  }
}
