:root {
  --bg: #f7f2e8;
  --paper: #fffdf8;
  --ink: #2e241a;
  --muted: #766a5a;
  --line: #ddcfbc;
  --brand: #6d4726;
  --brand-2: #8a6b2d;
  --green: #1c6b34;
  --focus: #2f7a4a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -5%, #f8dfb4 0%, transparent 38%),
    radial-gradient(circle at 95% 0%, #dbead9 0%, transparent 32%),
    var(--bg);
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.top-bar {
  background: linear-gradient(125deg, #1f140a, #4d3117);
  color: #f2e8d9;
  font-size: 0.86rem;
}

.top-bar .container {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar a {
  color: #f2e8d9;
  text-decoration: none;
}

.cart-header {
  padding: 26px 0 14px;
}

.cart-header h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.6vw, 3rem);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  padding-bottom: 36px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(44, 27, 9, 0.08);
}

.card h2 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.cart-items {
  display: grid;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee5d5;
  align-items: center;
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.cart-item p {
  margin: 0;
}

.item-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.qty {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.qty button {
  border: 0;
  background: #f4ede2;
  color: var(--ink);
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.qty span {
  width: 30px;
  text-align: center;
  font-weight: 600;
}

.money {
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 38px 16px;
}

.empty-state h3 {
  margin: 0 0 8px;
}

.btn,
button.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(109, 71, 38, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(120deg, #5b3a1f, #765a26);
}

.btn-ghost {
  background: #f3ecdf;
  color: var(--ink);
}

.summary {
  padding: 14px 16px 16px;
  display: grid;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.summary-row.total {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 1.05rem;
  font-weight: 800;
}

.actions {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.hosted-checkout-block {
  border: 1px dashed #d8c9b3;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.paypal-button-shell-cart {
  width: 100%;
  margin-top: 8px;
}

.checkout-title {
  margin: 30px 0 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #3a2715;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  padding-bottom: 44px;
}

.checkout-layout aside.card {
  position: sticky;
  top: 16px;
  align-self: start;
}

.checkout-section {
  padding: 18px 20px;
  border-bottom: 1px solid #eee5d5;
}

.checkout-section:nth-child(odd) {
  background: linear-gradient(180deg, #fffefb, #fff9f0);
}

.checkout-section h3 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: #4a3220;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

input,
select {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 122, 74, 0.16);
  background: #fffef9;
}

.note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.loyalty-note {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e6d9c5;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf6, #f7f0e3);
  display: grid;
  gap: 6px;
}

.loyalty-note strong {
  color: #4a3220;
}

#redeemPointsInput {
  margin-top: 2px;
}

.delivery-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(160deg, #fffef9, #f6f7ef);
}

#paypalSection {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #d8c9b3;
  border-radius: 12px;
  background: #fff;
}

.paypal-option-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.paypal-option-icon {
  min-width: 26px;
  height: 22px;
  border-radius: 999px;
  padding: 0 7px;
  border: 1px solid #c2d5c2;
  background: #eaf2ea;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.paypal-region-note {
  margin: 0;
  font-size: 0.88rem;
}

.summary-list {
  max-height: 340px;
  overflow: auto;
  display: grid;
}

.loyalty-summary {
  border-top: 1px solid #eee5d5;
}

.summary-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #eee5d5;
  transition: background-color 0.2s ease;
}

.summary-item:hover {
  background: #fff9ee;
}

.summary-item img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 16px;
}

#orderMessage {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7efe2;
}

.additional-links {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 20px 0;
}

.additional-links h3 {
  margin-top: 0;
}

.additional-links a {
  color: var(--brand);
  text-decoration: none;
}

.additional-links ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

@media (max-width: 940px) {
  .grid,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-layout aside.card {
    position: static;
  }
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
