.description {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.saving {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 13px;
}

.voucher-offer {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.discount {
  background: #0b0b45;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 7px;
}

:root {
  --ink: #0b0b45;
  --paper: #ffffff;
  --muted: #696969;
  --line: #e5e7eb;
  --warm: #f3ede8;
  --gold: #c39852;
}

body,
button {
  font-family: "Source Serif 4", Georgia, serif;
}

.preview {
  background: #0b0b45;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
}

header {
  min-height: 116px;
}

.brand-logo {
  display: inline-flex;
  max-width: min(290px, 63vw);
}

.brand-logo img {
  height: auto;
  width: 100%;
}

.footer-logo {
  display: inline-flex;
  max-width: min(210px, 58vw);
}

.footer-logo img {
  height: auto;
  width: 100%;
}

.intro {
  background: var(--warm);
  box-shadow: -5vw 0 var(--warm), 5vw 0 var(--warm);
}

h1,
.section-head h2,
.product h3,
.details h2,
.wordmark {
  font-family: "Source Serif 4", Georgia, serif;
}

.photo {
  background: #faf8f6;
}

.discount {
  border-radius: 1px;
}

.checkout.ready {
  background: #0b0b45;
}

@media (max-width: 580px) {
  header {
    min-height: 92px;
  }
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 24px;
}

.basket-button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 10px;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px 9px 17px;
}

.basket-count {
  align-items: center;
  background: var(--gold);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  height: 24px;
  justify-content: center;
  min-width: 24px;
  padding: 0 5px;
}

.basket-pulse {
  animation: basket-pulse .38s ease-out;
}

@keyframes basket-pulse {
  50% { transform: scale(1.06); }
}

.order-notice {
  background: #edf5ef;
  border: 1px solid #b8d2be;
  color: #204b2a;
  font-weight: 600;
  margin-top: 26px;
  padding: 14px 18px;
}

.basket-dialog {
  background: transparent;
  border: 0;
  height: 100%;
  margin: 0 0 0 auto;
  max-height: none;
  max-width: min(520px, 100vw);
  padding: 0;
  width: 100%;
}

.basket-dialog::backdrop {
  background: rgba(11, 11, 69, .48);
}

.basket-panel {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.basket-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 28px 30px 22px;
}

.basket-head .eyebrow { margin-bottom: 4px; }
.basket-head h2 { font-size: 34px; font-weight: 500; margin: 0; }

.basket-close {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 38px;
  font-weight: 300;
  height: 44px;
  line-height: 1;
  padding: 0;
  width: 44px;
}

.basket-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 30px;
}

.basket-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 76px 1fr auto;
  padding: 20px 0;
}

.basket-item img {
  background: #faf8f6;
  height: 76px;
  object-fit: contain;
  width: 76px;
}

.basket-item-info { min-width: 0; }
.basket-item-info p { color: var(--muted); font-size: 13px; line-height: 1.35; margin: 0; }
.basket-item-info h3 { font-size: 19px; line-height: 1.25; margin: 2px 0 4px; }
.basket-item-brand { font-size: 11px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.quantity-controls {
  align-items: center;
  border: 1px solid var(--line);
  display: flex;
  grid-column: 2;
  justify-self: start;
}

.quantity-controls button {
  background: #fff;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  height: 34px;
  width: 34px;
}

.quantity-controls button:disabled { color: #b7b7b7; cursor: not-allowed; }
.quantity-controls span { font: 14px Arial, Helvetica, sans-serif; min-width: 28px; text-align: center; }
.basket-line-total { font-size: 15px; grid-column: 3; grid-row: 2; text-align: right; }

.basket-footer {
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(11, 11, 69, .05);
  padding: 20px 30px 24px;
}

.basket-summary { align-items: baseline; display: flex; font-size: 18px; justify-content: space-between; }
.basket-summary strong { font-size: 23px; }
.basket-promo { background: var(--warm); color: var(--ink); font-size: 13px; line-height: 1.45; margin: 14px 0; padding: 11px 13px; }
.basket-checkout, .basket-empty button { background: var(--ink); border: 1px solid var(--ink); color: #fff; cursor: pointer; font: 600 16px "Source Serif 4", Georgia, serif; min-height: 50px; padding: 12px 16px; width: 100%; }
.basket-checkout:disabled { cursor: not-allowed; opacity: .45; }
.basket-terms { color: var(--muted); font-size: 11px; letter-spacing: .07em; margin: 12px 0 0; text-align: center; }
.basket-error { background: #fff2f1; border: 1px solid #e0b4af; color: #8a2119; font-size: 13px; margin: 12px 0 0; padding: 10px 12px; }
.basket-empty { margin: auto; max-width: 330px; padding: 70px 0; text-align: center; }
.basket-empty h3 { font-size: 26px; margin-bottom: 8px; }
.basket-empty p { color: var(--muted); margin-bottom: 22px; }

@media (max-width: 580px) {
  .header-actions { gap: 10px; }
  .header-actions .nav { display: none; }
  .basket-button { padding: 8px 10px 8px 13px; }
  .basket-dialog { max-width: 100vw; }
  .basket-head, .basket-footer { padding-left: 20px; padding-right: 20px; }
  .basket-body { padding-left: 20px; padding-right: 20px; }
  .basket-item { gap: 10px; grid-template-columns: 66px 1fr auto; }
  .basket-item img { height: 66px; width: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  .basket-pulse { animation: none; }
}
