body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  color: #111;
  background: #fff;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 40px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-sizing: border-box;
  z-index: 100;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-right {
  justify-content: flex-end;
}

.site-header a {
  text-decoration: none;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.15px;
  transition: opacity 0.2s ease;
}

.site-header a:hover {
  opacity: 0.55;
}

.site-header .logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 1px;
  font-weight: 700;
  color: rgba(0,0,0,0.82);
}

.checkout-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 148px 48px 84px;
  box-sizing: border-box;
}

.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 42px;
}

.checkout-head h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 400;
}

.checkout-head a {
  color: #111;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid #111;
  padding-bottom: 3px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 64px;
  align-items: start;
}

.checkout-form {
  display: grid;
  gap: 42px;
}

.checkout-section {
  padding-top: 4px;
}

.checkout-section h2 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: rgba(0,0,0,0.58);
  font-size: 12px;
}

.field input,
.field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,0.22);
  border-radius: 0;
  outline: 0;
  padding: 13px 0;
  background: transparent;
  color: #111;
  font-size: 15px;
  box-sizing: border-box;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.payment-option {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-option strong {
  grid-column: 1;
  font-size: 15px;
  font-weight: 400;
}

.payment-option span {
  grid-column: 1;
  color: rgba(0,0,0,0.56);
  font-size: 12px;
  line-height: 1.55;
}

.payment-logo {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  width: 92px;
  max-height: 34px;
  object-fit: contain;
}

.payment-option:has(input:checked) {
  border-color: #111;
  box-shadow: inset 0 0 0 1px #111;
}

.card-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  margin-top: 22px;
}

.card-fields[hidden] {
  display: none;
}

.summary {
  position: sticky;
  top: 112px;
  padding: 28px;
  background: #f8f8f8;
  box-sizing: border-box;
}

.summary h2 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
}

.summary-items {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.summary-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.summary-item img {
  width: 72px;
  height: 88px;
  object-fit: cover;
  background: #eee;
}

.summary-item h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.4px;
}

.summary-item p,
.summary-price {
  margin: 0;
  color: rgba(0,0,0,0.58);
  font-size: 12px;
  line-height: 1.45;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  color: rgba(0,0,0,0.64);
  font-size: 14px;
}

.summary-line.total {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(0,0,0,0.16);
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
}

.place-order {
  width: 100%;
  margin-top: 28px;
  border: 0;
  background: #000;
  color: #fff;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 15px;
}

.checkout-note {
  min-height: 22px;
  margin: 18px 0 0;
  color: rgba(0,0,0,0.58);
  font-size: 13px;
  line-height: 1.6;
}

.empty-checkout {
  display: none;
  max-width: 520px;
  margin: 160px auto 0;
  text-align: center;
}

.empty-checkout h1 {
  margin: 22px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

.empty-checkout p {
  margin: 0 0 24px;
  color: rgba(0,0,0,0.58);
}

.empty-checkout a {
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
  padding-bottom: 3px;
}

@media (max-width: 920px) {
  .site-header {
    padding: 20px 22px;
  }

  .nav-left {
    display: none;
  }

  .nav-right {
    gap: 18px;
  }

  .site-header .logo {
    font-size: 30px;
  }

  .checkout-page {
    padding: 128px 24px 56px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

  .field-grid,
  .payment-options,
  .card-fields {
    grid-template-columns: 1fr;
  }

  .payment-option {
    grid-template-columns: 1fr;
  }

  .payment-logo {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 4px;
  }
}
