.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .product-list-single {
    grid-template-columns: minmax(220px, 50%);
  }
}

.product-back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: #363636;
  font-weight: 600;
}

.product-back-link:hover {
  color: #222222;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #ffffff;
}

.product-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eeeeee;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.product-card-image:hover img {
  transform: scale(1.03);
}

.product-card h2,
.product-card p {
  margin-inline: 1rem;
}

.product-card h2 {
  margin-top: 1rem;
  margin-bottom: .4rem;
  font-size: medium;
  font-weight: 500;
}

.product-card p {
  line-height: 1.5;
  font-size: smaller;
}

.product-card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .45rem;
  margin-top: auto;
  padding-bottom: 1rem;
  font-weight: 700;
}

.product-card-original-price {
  color: #777777;
  font-size: .9rem;
  font-weight: 400;
}

.product-card-discount {
  color: #9b1c1c;
  font-size: .85rem;
  font-weight: 700;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: .25rem 0;
}

.product-detail-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}

.product-detail-main-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.product-detail-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: #eeeeee;
}

.product-detail-main-image {
  grid-column: 1 / -1;
}

.product-detail-title {
  grid-column: 1 / -1;
  margin: 0 0 .35rem;
  font-size: 1.65rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.product-detail-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
}

.product-detail-thumbnail {
  display: block;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #eeeeee;
  cursor: pointer;
}

.product-detail-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.product-detail-content h1 {
  margin-top: 0;
  margin-bottom: .65rem;
  font-size: 1.65rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.product-description {
  max-width: 36rem;
  margin: 0;
  color: #444444;
  line-height: 1.6;
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .45rem;
  margin: 1.25rem 0 0;
  font-size: 1.2rem;
}

.product-original-price {
  color: #777777;
  font-size: .95rem;
  font-weight: 400;
}

.product-discount {
  color: #9b1c1c;
  font-size: .9rem;
  font-weight: 700;
}

.product-detail-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  align-items: end;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: .25rem;
}

.product-detail-form label {
  grid-column: 1 / -1;
  font-weight: 600;
}

.product-detail-form input[type="number"] {
  box-sizing: border-box;
  width: 5rem;
  min-height: 2.5rem;
  padding: .45rem .6rem;
  border: 1px solid #777;
  border-radius: 4px;
  font: inherit;
}

.product-detail .button,
.product-card .button {
  display: inline-block;
  box-sizing: border-box;
  min-height: 2.5rem;
  padding: .55rem 1rem;
  border: 1px solid #363636;
  border-radius: 4px;
  background: #363636;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.product-detail .button {
  width: max-content;
  justify-self: start;
}

.product-detail-content .button {
  margin-top: 1rem;
}

.product-variants {
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
}

.product-variants legend {
  margin-bottom: .5rem;
  font-weight: 600;
}

.product-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.product-variant-option {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  box-sizing: border-box;
  padding: .45rem .8rem;
  border: 1px solid #777;
  border-radius: 4px;
  color: inherit;
  font-size: .85rem;
  text-decoration: none;
}

.product-variant-option:hover,
.product-variant-option:focus-visible,
.product-variant-option.is-selected {
  border-color: #363636;
  background: #363636;
  color: #fff;
}

.product-variant-option.is-selected {

  font-weight: 600;
}

.product-detail-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d5d5d5;
}

.product-detail-section h3 {
  margin: 0 0 .75rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.product-detail .button:hover,
.product-card .button:hover {
  background: #222222;
  border-color: #222222;
  color: #ffffff;
  text-decoration: none !important;
}

@media (max-width: 650px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: .25rem 0;
  }

  .product-detail-content h1 {
    font-size: 1.45rem;
  }

  .product-detail-image {
    aspect-ratio: 4 / 3;
  }

  .product-detail-gallery {
    grid-template-columns: 1fr;
  }
}

.product-admin-link {
  display: block;
  margin: 1rem;
  padding: .6rem .8rem;
  border: 1px solid rgb(40 92 140 / 0.32);
  border-radius: 5px;
  background: rgb(40 92 140 / 0.08);
  color: #285c8c;
  font-weight: 600;
  text-decoration: none;
}

.product-admin-link:hover,
.product-admin-link:focus {
  background: #285c8c;
  color: #fff;
}

.product-categories {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.5rem 0;
}

.product-category-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 16rem;
  align-items: stretch;
  max-width: 24rem;
  overflow: hidden;
  padding: 0;
  border: 1px solid #d2d8dc;
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
}

.product-category-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.product-category-content {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
}

.product-category-description {
  font-size: .9em;
  line-height: 1.35;
  opacity: .8;
}

.product-category-link:hover,
.product-category-link:focus,
.product-category-link.is-active {
  border-color: #2f6f9f;
  color: #2f6f9f;
}

.product-category-count {
  font-size: .9em;
  opacity: .7;
}

.product-section-heading {
  margin: 1.5rem 0 .75rem;
  font-weight: bold;
}

.product-photographer-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0 .75rem;
}

.product-photographer-example {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
}

.product-photographer-example>a:first-child {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
}

.product-photographer-example>a:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-photographer-example-name {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.product-photographer-example-artist {
  font-size: .9em;
  opacity: .75;
}

.product-photographer-example-artist a {
  color: inherit;
}

@media (max-width: 650px) {
  .product-photographer-examples {
    grid-template-columns: 1fr;
  }
}