.eshop-search {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 2rem;
  padding: 0.75rem 1.25rem;
  font: inherit;
  border: 2px solid #d6dde8;
  border-radius: 999px;
}

.eshop-search:focus {
  outline: none;
  border-color: var(--color-blue);
}

.eshop-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eshop-list li[hidden] {
  display: none;
}

.eshop-media {
  position: relative;
}

.eshop-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--color-blue);
  border-radius: 999px;
}

.eshop-card {
  display: block;
  height: 100%;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid #e8edf4;
  border-radius: 12px;
}

.eshop-card:hover,
.eshop-card:focus-visible {
  border-color: var(--color-blue);
}

.eshop-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.eshop-card__name {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}

.eshop-card__summary {
  margin: 0 0 0.75rem;
  color: #555;
  font-size: 0.9rem;
}

.eshop-card__price,
.eshop-detail__price {
  margin: 0;
  font-weight: 700;
  color: var(--color-blue);
}

.eshop-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.eshop-gallery__main {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.eshop-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.eshop-gallery__thumb {
  width: 72px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: 2px solid #e8edf4;
  border-radius: 8px;
  overflow: hidden;
}

.eshop-gallery__thumb:hover,
.eshop-gallery__thumb:focus-visible {
  border-color: var(--color-blue);
}

.eshop-gallery__thumb img {
  display: block;
  width: 100%;
}

.eshop-detail__name {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.eshop-detail__price {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.eshop-detail__more {
  grid-column: 1 / -1;
}

.eshop-detail__subheading {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

.eshop-detail__features {
  margin: 0;
  padding-left: 1.25rem;
}

.eshop-message {
  text-align: center;
  color: #555;
}

.eshop-order {
  margin-top: 3rem;
  padding: 2rem;
  border: 3px solid var(--color-blue);
  border-radius: 16px;
  text-align: center;
}

.eshop-order__heading {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
}

.eshop-order__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  text-align: left;
}

.eshop-order label,
.eshop-order__label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
}

.eshop-order input,
.eshop-order textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.9rem;
  font: inherit;
  font-weight: 400;
  border: 2px solid #d6dde8;
  border-radius: 8px;
  box-sizing: border-box;
}

.eshop-order input:focus,
.eshop-order textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}

.eshop-order__point {
  margin-bottom: 1rem;
}

.eshop-order__point .eshop-order__label {
  margin-bottom: 0.35rem;
}

.eshop-order__point-name {
  margin: 0 0 0.5rem;
}

.eshop-order__pick {
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: var(--color-blue);
  cursor: pointer;
  background: var(--color-blue-tint);
  border: 0;
  border-radius: 999px;
}

.eshop-order__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.eshop-order__total {
  font-weight: 700;
}

.eshop-order__info {
  color: #555;
  font-size: 0.9rem;
}

.eshop-order button[type="submit"] {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 0;
}

.eshop-order button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.6;
}

.eshop-order__status {
  font-weight: 600;
  color: #1b7a32;
}

.eshop-order__status--error {
  color: #c62828;
}

@media (max-width: 720px) {
  .eshop-detail,
  .eshop-order__columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .eshop-order {
    padding: 1.25rem;
  }

  .eshop-legal__table {
    display: block;
    overflow-x: auto;
    font-size: 0.8rem;
  }

  .eshop-legal__table th,
  .eshop-legal__table td {
    padding: 0.35rem;
  }
}

.eshop-order .eshop-order__terms {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  justify-content: center;
  margin: 1rem 0 0;
  font-weight: 400;
  font-size: 0.95rem;
}

.eshop-order .eshop-order__terms input {
  display: inline;
  width: auto;
  margin: 0.2rem 0 0;
  padding: 0;
}

.eshop-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  font-size: 0.9rem;
}

.eshop-footer a,
.eshop-legal a,
.eshop-order__terms a {
  color: var(--color-blue);
}

.eshop-legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
}

.eshop-legal ol,
.eshop-legal ul {
  padding-left: 1.25rem;
}

.eshop-legal li {
  margin-bottom: 0.5rem;
}

.eshop-legal__meta {
  text-align: center;
  color: #555;
}

.eshop-legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.eshop-legal__table th,
.eshop-legal__table td {
  padding: 0.5rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid #e8edf4;
}

.eshop-legal__form {
  padding: 1rem 1.5rem;
  border: 2px dashed #d6dde8;
  border-radius: 12px;
}

@media print {
  .page-nav,
  .eshop-footer,
  .eshop-legal__pdf {
    display: none;
  }
}
