.collection-switch {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.collection-switch a {
  border: 1px solid rgba(255, 255, 255, .45);
  color: white;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 700;
}

.collection-switch a.active {
  background: #dff4fb;
  color: #092132;
  border-color: #dff4fb;
}

.allocated .section-heading a {
  color: #17201d;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid #17201d;
  padding-bottom: 4px;
}

.interaction-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #59615c;
  font-size: 13px;
  font-weight: 600;
  margin: -18px 0 24px;
}

.interaction-note span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #d9f2fb;
  color: #087da9;
}

.allocated-grid.full {
  grid-template-columns: repeat(4, 1fr);
}

.allocated-card.compact {
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 30, 38, .04);
  transition: transform .35s ease, box-shadow .35s ease;
}

.allocated-card.compact:hover,
.allocated-card.compact:focus-within {
  transform: translateY(-7px);
  box-shadow: 0 20px 42px rgba(16, 30, 38, .13);
}

.allocated-visual {
  height: 285px;
  background: linear-gradient(160deg, #fff 0%, #f4f6f5 100%);
  display: grid;
  place-items: center;
  padding: 23px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  outline: none;
}

.allocated-visual:focus-visible {
  box-shadow: inset 0 0 0 3px var(--blue);
}

.allocated-visual > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .45s ease;
}

.allocated-visual.dark-photo {
  background: #141719;
}

.bottle-details {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  background: linear-gradient(180deg, rgba(5, 18, 27, .12), rgba(5, 18, 27, .96) 56%);
  transform: translateX(102%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22, .8, .25, 1), opacity .3s ease;
}

.bottle-details b {
  font: 600 24px/1.1 var(--serif);
  margin-bottom: 9px;
}

.bottle-details p {
  margin: 0 0 14px;
  color: #e2edf0;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}

.bottle-details small {
  color: #9fe5fb;
  font-weight: 700;
  letter-spacing: .4px;
}

.details-hint {
  position: absolute;
  z-index: 3;
  left: 14px;
  bottom: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 11px;
  background: rgba(9, 33, 50, .9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  transition: opacity .2s ease, transform .2s ease;
}

.details-hint i {
  font-style: normal;
  color: #8fe4ff;
}

.allocated-visual:hover .bottle-details,
.allocated-visual:focus .bottle-details,
.allocated-card.is-open .bottle-details {
  transform: translateX(0);
  opacity: 1;
}

.allocated-visual:hover > img,
.allocated-visual:focus > img,
.allocated-card.is-open .allocated-visual > img {
  transform: scale(1.07) translateX(-4%);
  filter: brightness(.68);
}

.allocated-visual:hover .details-hint,
.allocated-visual:focus .details-hint,
.allocated-card.is-open .details-hint {
  opacity: 0;
  transform: translateY(8px);
}

.allocated-card.compact h3 {
  font-size: 21px;
}

.allocated-card.compact > .allocated-info {
  padding: 21px 22px 24px;
}

.inventory.collection {
  padding-top: clamp(75px, 8vw, 110px);
}

@media (max-width: 1050px) {
  .allocated-grid.full { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .allocated-grid.full { grid-template-columns: repeat(2, 1fr); }
  .allocated-grid.full .allocated-card { display: block; }
  .allocated-grid.full .allocated-card > .allocated-info {
    border-left: 0;
    border-top: 1px solid #ece9e2;
  }
  .allocated-visual { height: 260px; }
  .interaction-note { margin-top: -8px; }
}

@media (max-width: 500px) {
  .collection-switch { flex-wrap: wrap; }
  .allocated-grid.full { grid-template-columns: 1fr; }
  .allocated-visual { height: 310px; }
  .bottle-details { padding: 34px 28px; }
  .bottle-details b { font-size: 26px; }
}
