/* Artwork is intentionally shown without decorative mats or frames. */
.ccard figure,
.pcard figure,
.frame-lg,
.t-card figure {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ccard img,
.pcard img,
.frame-lg img,
.t-card figure img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.pcard,
.t-card {
  background: transparent !important;
  box-shadow: none !important;
}

.collection-filter-hidden {
  display: none !important;
}

.pcard figure {
  margin: 0 !important;
}

.pcard .body,
.t-card .cbody {
  background: #fff;
}

/* Keep collection art in a clean side-by-side grid; reveal the ID card on demand. */
.pcard.id-card-popover {
  position: relative;
}

.pcard.id-card-popover .body {
  display: none !important;
}

.pcard.id-card-popover.is-open .body {
  position: absolute;
  z-index: 4;
  inset: 16px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 24px 20px 20px !important;
  border: 1px solid #D4DFE9;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 45px -22px rgba(18, 29, 48, 0.6);
}

.pcard.id-card-popover .body .learn {
  display: none !important;
}

.pcard.id-card-popover .card-more {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 9px 15px;
  border: 1px solid #1E2D4A;
  background: rgba(30, 45, 74, 0.92);
  color: #fff;
  font: 500 10px/1.2 Montserrat, Arial, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease;
}

.pcard.id-card-popover figure:hover .card-more,
.pcard.id-card-popover figure:focus-within .card-more {
  opacity: 1;
}

.pcard.id-card-popover .card-more:hover,
.pcard.id-card-popover .card-more:focus-visible {
  background: #3D4F6B;
  outline: none;
}

.pcard.id-card-popover .card-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 1;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5E7290;
  font: 24px/1 Georgia, serif;
  cursor: pointer;
}

.pcard.id-card-popover .card-close:hover,
.pcard.id-card-popover .card-close:focus-visible {
  color: #1E2D4A;
  outline: none;
}

@media (max-width: 520px) {
  .pcard.id-card-popover .card-more {
    opacity: 1;
  }

  .pcard.id-card-popover.is-open .body {
    inset: 10px;
    padding: 22px 16px 16px !important;
  }
}

/* Bandanas keep their metadata visible, but the card stays secondary to the artwork. */
body.bandanas-page .shopgrid .pcard {
  box-shadow: 0 18px 34px -22px rgba(8, 16, 12, 0.55);
}

body.bandanas-page .shopgrid .pcard figure {
  height: 210px !important;
  margin: 7px 7px 0 !important;
  padding: 7px !important;
}

body.bandanas-page .shopgrid .pcard img {
  padding: 8px !important;
}

body.bandanas-page .shopgrid .pcard .body {
  margin: 0 7px !important;
  padding: 9px 12px 11px !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
}

body.bandanas-page .shopgrid .pcard h3 {
  font-size: 16px !important;
  line-height: 1.1;
}

body.bandanas-page .shopgrid .pcard .med {
  margin: 3px 0 5px;
  font-size: 9px;
  line-height: 1.25;
  min-height: 0;
}

body.bandanas-page .shopgrid .pcard .price {
  font-size: 14px;
}

body.bandanas-page .shopgrid .pcard .add {
  align-self: center;
  width: min(100%, 150px);
  margin-top: 7px !important;
  padding: 6px 12px !important;
  border: 0 !important;
  background: #B9DDF2 !important;
  color: #1E2D4A;
  font-size: 9px;
  letter-spacing: .13em;
}

body.bandanas-page .shopgrid .pcard .add:hover {
  background: #9FCBE5 !important;
  color: #1E2D4A;
}

/* Keep the pet commission prompt between the two featured dog portraits. */
body.pet-portraits-page .shopgrid .grid.cols2 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1040px;
  align-items: center;
}

body.pet-portraits-page .shopgrid .grid.cols2 .pcard:first-child {
  grid-column: 1;
  grid-row: 1;
}

body.pet-portraits-page .shopgrid .grid.cols2 .commtile {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  padding: 22px 14px;
}

body.pet-portraits-page .shopgrid .grid.cols2 .commtile .plus {
  font-size: 34px;
  margin-bottom: 4px;
}

body.pet-portraits-page .shopgrid .grid.cols2 .commtile h3 {
  font-size: 17px;
  line-height: 1.15;
  margin-bottom: 7px;
}

body.pet-portraits-page .shopgrid .grid.cols2 .commtile p {
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 14px;
}

body.pet-portraits-page .shopgrid .grid.cols2 .commtile .btn {
  padding: 10px 12px;
  font-size: 9px;
  letter-spacing: .12em;
}

body.pet-portraits-page .shopgrid .grid.cols2 .pcard:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}

@media (max-width: 860px) {
  body.pet-portraits-page .shopgrid .grid.cols2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.pet-portraits-page .shopgrid .grid.cols2 .pcard:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  body.pet-portraits-page .shopgrid .grid.cols2 .commtile {
    grid-column: 2;
    grid-row: 1;
  }

  body.pet-portraits-page .shopgrid .grid.cols2 .pcard:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  body.pet-portraits-page .shopgrid .grid.cols2 {
    grid-template-columns: 1fr;
  }

  body.pet-portraits-page .shopgrid .grid.cols2 .pcard:first-child,
  body.pet-portraits-page .shopgrid .grid.cols2 .commtile,
  body.pet-portraits-page .shopgrid .grid.cols2 .pcard:nth-child(2) {
    grid-column: 1;
  }

  body.pet-portraits-page .shopgrid .grid.cols2 .pcard:first-child {
    grid-row: 1;
  }

  body.pet-portraits-page .shopgrid .grid.cols2 .commtile {
    grid-row: 2;
  }

  body.pet-portraits-page .shopgrid .grid.cols2 .pcard:nth-child(2) {
    grid-row: 3;
  }
}