/* =========================================================
   LXP DRAWER CART
   The markup is printed in the footer on every page and the
   JS toggles .is-open — without these rules it rendered as
   plain text at the bottom of the site.
   ========================================================= */

.lxpCart {
  --lxp-cream: #fbfaf7;
  --lxp-ink: rgba(12, 12, 12, 0.92);
  --lxp-warm: rgba(76, 69, 63, 0.82);
  --lxp-line: rgba(76, 69, 63, 0.16);
  --lxp-gold-a: #b69764;
  --lxp-serif: "SangBleu", "Canela", "Iowan Old Style", "Didot", serif;
  --lxp-sans: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  position: fixed;
  inset: 0;
  z-index: 100000;
  visibility: hidden;
  pointer-events: none;
}

.lxpCart.is-open {
  visibility: visible;
  pointer-events: auto;
}

.lxpCart__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 14, 0.42);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.lxpCart.is-open .lxpCart__backdrop { opacity: 1; }

.lxpCart__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--lxp-cream);
  box-shadow: -30px 0 70px -40px rgba(28, 22, 16, 0.7);
  transform: translateX(102%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.lxpCart.is-open .lxpCart__panel { transform: none; }

html.lxpCartLock { overflow: hidden; }

/* ---- Head ---- */

.lxpCart__head {
  position: relative;
  padding: 30px 28px 22px;
  border-bottom: 1px solid var(--lxp-line);
  flex: 0 0 auto;
}

.lxpCart__kicker {
  font-family: var(--lxp-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(76, 69, 63, 0.6);
  margin-bottom: 8px;
}

.lxpCart__title {
  font-family: var(--lxp-serif);
  font-weight: 300;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--lxp-ink);
}

.lxpCart__close {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  color: var(--lxp-warm);
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.lxpCart__close:hover {
  border-color: var(--lxp-line);
  color: var(--lxp-ink);
}

/* ---- Body ---- */

.lxpCart__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px 28px;
}

.lxpCart__empty {
  font-family: var(--lxp-sans);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(76, 69, 63, 0.6);
  padding: 30px 0;
}

.lxpCart__item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--lxp-line);
}

.lxpCart__item:last-child { border-bottom: 0; }

.lxpCart__thumb img,
.lxpCart__thumb {
  display: block;
  width: 68px;
  height: auto;
  border-radius: 2px;
  background: #efece5;
}

.lxpCart__name {
  font-family: var(--lxp-serif);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--lxp-ink);
  margin-bottom: 4px;
}

.lxpCart__name a { color: inherit; text-decoration: none; }

.lxpCart__meta,
.lxpCart__sub,
.lxpCart__price {
  font-family: var(--lxp-sans);
  font-size: 13px;
  color: var(--lxp-warm);
}

.lxpCart__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.lxpCart__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--lxp-line);
  border-radius: 2px;
  overflow: hidden;
}

.lxpCart__qtyBtn {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--lxp-warm);
  font-size: 15px;
  line-height: 1;
}

.lxpCart__qtyBtn:hover { background: rgba(76, 69, 63, 0.06); }

.lxpCart__qtyInput {
  width: 40px;
  height: 32px;
  border: 0;
  border-left: 1px solid var(--lxp-line);
  border-right: 1px solid var(--lxp-line);
  text-align: center;
  font-family: var(--lxp-sans);
  font-size: 13px;
  background: transparent;
  color: var(--lxp-ink);
  appearance: textfield;
  -moz-appearance: textfield;
}

.lxpCart__qtyInput::-webkit-outer-spin-button,
.lxpCart__qtyInput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.lxpCart__remove {
  font-family: var(--lxp-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(76, 69, 63, 0.55);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s ease;
}

.lxpCart__remove:hover { color: #8c2f2f; }

.lxpCart__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 8px;
  border-radius: 999px;
  background: rgba(76, 69, 63, 0.35);
  vertical-align: middle;
}

/* ---- Foot ---- */

.lxpCart__foot {
  flex: 0 0 auto;
  padding: 22px 28px 28px;
  border-top: 1px solid var(--lxp-line);
  background: rgba(255, 255, 255, 0.5);
}

.lxpCart__footEmpty {
  font-family: var(--lxp-sans);
  font-size: 13px;
  color: rgba(76, 69, 63, 0.55);
  text-align: center;
}

.lxpCart__subtotalRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.lxpCart__subtotalLabel {
  font-family: var(--lxp-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(76, 69, 63, 0.6);
}

.lxpCart__subtotalVal {
  font-family: var(--lxp-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--lxp-ink);
}

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

.lxpCart__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lxp-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 14px;
  border-radius: 2px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease;
}

.lxpCart__btn:hover { transform: translateY(-1px); }

.lxpCart__btnGhost {
  border: 1px solid var(--lxp-line);
  color: var(--lxp-ink);
  background: transparent;
}

.lxpCart__btnGhost:hover { background: rgba(76, 69, 63, 0.05); }

.lxpCart__btnPrimary {
  border: 1px solid #1c1815;
  background: #1c1815;
  color: var(--lxp-cream);
}

.lxpCart__btnPrimary:hover { background: #2a231d; }

.lxpCart__fine {
  margin-top: 14px;
  font-family: var(--lxp-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(76, 69, 63, 0.5);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .lxpCart__panel,
  .lxpCart__backdrop { transition: none; }
}
