@font-face {
  font-family: Poppins;
  src: url("assets/poppins-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("assets/poppins-bold.woff2") format("woff2");
  font-weight: 700 800;
  font-display: swap;
}
:root {
  --ink: #201913;
  --mocha: #634532;
  --orange: #fa7900;
  --muted: #81776d;
  --line: #e9e1d9;
  --page: #f8f6f3;
  --green: #198452;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Poppins, Arial, sans-serif;
}
button,
input,
a {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.checkout-announcement {
  min-height: 38px;
  padding: 8px 12px;
  background: var(--mocha);
  color: white;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.checkout-header {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1120px) / 2));
}
.checkout-logo img {
  width: 174px;
  display: block;
}
.header-cart {
  position: relative;
  text-decoration: none;
  color: var(--mocha);
  font-size: 28px;
  line-height: 1;
}
.header-cart span {
  position: absolute;
  right: -12px;
  top: -10px;
  background: var(--orange);
  color: white;
  border-radius: 20px;
  min-width: 20px;
  height: 20px;
  font-size: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.checkout-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 90px;
}
.checkout-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--mocha);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}
h1 span {
  font-size: 15px;
  color: #92867c;
  letter-spacing: 0;
  font-weight: 400;
  white-space: nowrap;
}
.continue-desktop,
.continue-mobile,
.edit-cart {
  color: var(--mocha);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.continue-desktop:hover,
.continue-mobile:hover,
.edit-cart:hover {
  text-decoration: underline;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 24px;
}
.surface {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(52, 33, 19, 0.045);
}
.cart-product {
  padding: 22px;
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr) 25px;
  gap: 20px;
  align-items: start;
  position: relative;
}
.cart-product[hidden] {
  display: none;
}
.cart-product > img {
  width: 154px;
  height: 154px;
  object-fit: cover;
  border-radius: 13px;
  background: #f4f0eb;
}
.mini-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mocha);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.cart-product h2 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 5px;
}
.cart-product-info > p:not(.mini-label) {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 19px;
}
.cart-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}
.quantity {
  display: flex;
  align-items: center;
  border: 1px solid #d8cec4;
  border-radius: 10px;
  overflow: hidden;
  height: 40px;
}
.quantity button {
  background: #fff;
  border: 0;
  width: 35px;
  height: 100%;
  cursor: pointer;
  font-size: 20px;
  color: var(--mocha);
}
.quantity button:hover {
  background: #faf4ed;
}
.quantity output {
  min-width: 27px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}
.item-prices {
  display: grid;
  text-align: right;
  white-space: nowrap;
}
.item-prices strong {
  font-size: 20px;
  color: var(--mocha);
}
.item-prices small {
  font-size: 11px;
  color: var(--muted);
}
.remove-item {
  background: none;
  border: 0;
  color: #a99e93;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}
.remove-item:hover {
  color: var(--orange);
}
.continue-mobile {
  display: none;
}
.cart-perks {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 5px;
  color: var(--mocha);
  font-size: 12px;
  font-weight: 700;
}
.summary {
  padding: 28px;
  position: sticky;
  top: 20px;
}
.summary h2 {
  font-size: 23px;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  font-size: 14px;
}
.summary-row strong {
  white-space: nowrap;
}
.free {
  color: var(--green);
}
.summary-total {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}
.summary-total strong {
  font-size: 28px;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.summary-note,
.checkout-hint {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}
.summary-note {
  margin: 6px 0 27px;
}
.checkout-hint {
  text-align: center;
  margin: 15px 0 0;
}
.primary-button {
  width: 100%;
  min-height: 55px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(250, 121, 0, 0.18);
  transition:
    transform 0.2s,
    filter 0.2s;
}
.primary-button span {
  font-size: 21px;
  line-height: 0;
}
.primary-button:hover {
  filter: brightness(0.96);
  transform: translateY(-2px);
}
.primary-button[aria-disabled="true"] {
  opacity: 0.46;
  pointer-events: none;
  box-shadow: none;
}
.empty-cart {
  padding: 52px 30px;
  text-align: center;
}
.empty-cart[hidden] {
  display: none;
}
.empty-icon {
  font-size: 50px;
  color: var(--mocha);
  margin-bottom: 10px;
}
.empty-cart h2 {
  font-size: 25px;
}
.empty-cart p {
  color: var(--muted);
  font-size: 14px;
}
.empty-cart .primary-button {
  max-width: 280px;
  margin: 25px auto 0;
}
.checkout-footer {
  background: #241b16;
  color: #fff;
  padding: 66px 22px 30px;
}
.footer-inner {
  max-width: 1120px;
  margin: auto;
}
.checkout-footer img {
  width: 185px;
  filter: brightness(0) invert(1);
}
.checkout-footer p {
  font-size: 13px;
  color: #cdbfb3;
  margin: 14px 0 30px;
}
.footer-rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 32px 0;
}
.footer-links {
  display: flex;
  gap: min(12vw, 160px);
}
.footer-links > div {
  display: grid;
  align-content: start;
  gap: 12px;
}
.checkout-footer h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.checkout-footer a {
  color: #d9cabd;
  font-size: 12px;
  text-decoration: none;
}
.checkout-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.checkout-footer small {
  display: block;
  color: #998b80;
  text-align: center;
  font-size: 11px;
}
.footer-methods {
  text-align: center;
  margin-top: 40px;
}
.footer-methods p {
  margin: 6px 0;
}
.steps {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #988c80;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 25px;
}
.steps span:first-child {
  color: var(--green);
}
.steps .current {
  color: var(--mocha);
}
.steps i {
  height: 1px;
  width: 36px;
  background: #cfc3b8;
}
.preview-notice {
  border: 1px solid #edc79e;
  background: #fff5e9;
  color: #6f4b2e;
  padding: 13px 17px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 17px;
}
.delivery-form {
  padding: 30px;
}
.form-title {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}
.form-title > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f6eee7;
  color: var(--mocha);
  font-weight: 700;
  font-size: 12px;
}
.form-title h2 {
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.03em;
}
.form-title .eyebrow {
  margin-bottom: 2px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.fields label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  font-size: 12px;
}
.fields label.full {
  grid-column: 1/-1;
}
.fields label small {
  display: inline;
  color: var(--muted);
  font-weight: 400;
}
.fields input {
  height: 48px;
  min-width: 0;
  border: 1px solid #dcd3ca;
  border-radius: 9px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}
.fields input::placeholder {
  color: #a9a098;
}
.fields input:focus {
  border-color: var(--mocha);
  outline: 2px solid #e3c5af;
  outline-offset: 0;
}
.form-divider {
  height: 1px;
  background: var(--line);
  margin: 29px 0;
}
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.payment-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dcd3ca;
  border-radius: 11px;
  padding: 13px;
  cursor: pointer;
}
.payment-options label:has(input:checked) {
  border-color: var(--mocha);
  background: #fcf7f2;
}
.payment-options input {
  accent-color: var(--mocha);
  margin: 0;
}
.payment-options span {
  display: grid;
  gap: 2px;
}
.payment-options strong {
  font-size: 13px;
}
.payment-options small {
  font-size: 10px;
  color: var(--muted);
}
.payment-options b {
  margin-left: auto;
  color: var(--mocha);
  font-size: 24px;
}
.integration-note {
  margin: 20px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.form-status {
  margin: 18px 0 0;
  padding: 14px;
  background: #f4efe9;
  border-radius: 9px;
  color: var(--mocha);
  font-size: 12px;
  line-height: 1.55;
}
.form-status[hidden] {
  display: none;
}
.checkout-summary-product {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  margin-bottom: 22px;
}
.checkout-summary-product img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}
.checkout-summary-product div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.checkout-summary-product strong {
  font-size: 12px;
}
.checkout-summary-product small {
  font-size: 10px;
  color: var(--muted);
}
.checkout-summary-product > strong {
  white-space: nowrap;
}
.edit-cart {
  display: block;
  margin-top: 24px;
  text-align: center;
}
@media (max-width: 820px) {
  .checkout-main {
    padding-top: 34px;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .summary {
    position: static;
  }
  .checkout-footer {
    margin-top: 0;
  }
}
@media (max-width: 520px) {
  .checkout-header {
    height: 66px;
    padding-inline: 24px;
  }
  .checkout-logo img {
    width: 145px;
  }
  .checkout-main {
    width: calc(100% - 32px);
    padding: 30px 0 70px;
  }
  .checkout-heading {
    margin-bottom: 23px;
  }
  .checkout-heading h1 {
    font-size: 29px;
  }
  .checkout-heading h1 span {
    font-size: 13px;
  }
  .continue-desktop {
    display: none;
  }
  .continue-mobile {
    display: block;
    margin: 16px 4px 0;
  }
  .cart-product {
    grid-template-columns: 74px minmax(0, 1fr) 18px;
    padding: 16px;
    gap: 12px;
    border-radius: 17px;
  }
  .cart-product > img {
    width: 74px;
    height: 82px;
  }
  .cart-product h2 {
    font-size: 15px;
  }
  .cart-product-info > p:not(.mini-label) {
    font-size: 11px;
    margin-bottom: 13px;
  }
  .mini-label {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .cart-bottom {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .item-prices {
    text-align: left;
  }
  .item-prices strong {
    font-size: 19px;
  }
  .summary {
    padding: 22px 20px;
  }
  .summary h2 {
    font-size: 21px;
  }
  .footer-links {
    gap: 25px;
  }
  .footer-links > div {
    flex: 1;
  }
  .checkout-footer {
    padding-top: 55px;
  }
  .steps {
    gap: 8px;
    font-size: 10px;
  }
  .steps i {
    width: 20px;
  }
  .delivery-form {
    padding: 21px 17px;
  }
  .fields {
    gap: 12px;
  }
  .fields label {
    font-size: 11px;
  }
  .fields input {
    padding-inline: 10px;
  }
  .payment-options {
    grid-template-columns: 1fr;
  }
  .checkout-summary-product {
    grid-template-columns: 50px minmax(0, 1fr) auto;
  }
  .checkout-summary-product img {
    width: 50px;
    height: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .primary-button {
    transition: none;
  }
}
