:root {
  --bg: #ffffff;
  --panel: rgba(0, 0, 0, 0.03);
  --panel2: rgba(0, 0, 0, 0.06);
  --text: rgba(0, 0, 0, 0.92);
  --muted: rgba(0, 0, 0, 0.58);
  --line: rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --maxw: 1220px;
  --gap: clamp(14px, 2vw, 22px);
  --padX: clamp(18px, 3.2vw, 42px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background:
    radial-gradient(
      1100px 600px at 12% 0%,
      rgba(0, 0, 0, 0.06),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 95% 10%,
      rgba(0, 0, 0, 0.045),
      transparent 55%
    ),
    var(--bg);
  color: var(--text);
}

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

/* Header cart button (same look as product page) */
.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition:
    transform 220ms var(--ease),
    background 220ms var(--ease);
}
.cart-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 1);
}

.page {
  padding: 110px var(--padX) 70px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sep {
  opacity: 0.6;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0 26px;
}

.layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.02));
  padding: clamp(16px, 2.2vw, 22px);
  box-shadow: var(--shadow);
}

.title {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: 0.01em;
}

.muted {
  color: var(--muted);
}

/* Cart item */
.item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.item:first-child {
  border-top: none;
  padding-top: 0;
}

@media (max-width: 620px) {
  .item {
    grid-template-columns: 80px 1fr;
    grid-template-areas:
      "img info"
      "controls controls";
    align-items: start;
  }
  .itemMedia {
    grid-area: img;
  }
  .itemInfo {
    grid-area: info;
  }
  .itemControls {
    grid-area: controls;
  }
}

.itemMedia {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f2f2f2;
  aspect-ratio: 4 / 5;
}
.itemMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.itemName {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}

.itemMeta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.7);
}

.scentLine {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.5;
}
.scentLine strong {
  color: rgba(0, 0, 0, 0.88);
}

.itemControls {
  display: grid;
  justify-items: end;
  gap: 10px;
}

@media (max-width: 620px) {
  .itemControls {
    justify-items: start;
    margin-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    padding-top: 12px;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.priceRow {
  text-align: right;
}
@media (max-width: 620px) {
  .priceRow {
    text-align: left;
  }
}

.unitPrice {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.lineTotal {
  margin: 0;
  font-weight: 800;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 8px 10px;
}

.qty button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 160ms var(--ease),
    background 160ms var(--ease);
}
.qty button:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.03);
}

.qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 800;
}

.dangerBtn {
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(0, 0, 0, 0.75);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  transition:
    background 220ms var(--ease),
    transform 220ms var(--ease);
}
.dangerBtn:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.03);
}

/* Summary */
.summaryRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.summaryRow:first-of-type {
  border-top: none;
}

.total {
  font-size: 18px;
  font-weight: 900;
}

.btn {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 220ms var(--ease),
    background 220ms var(--ease),
    border-color 220ms var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.18);
}

.btn.primary {
  background: #0b0b0b;
  color: #fff;
  border-color: #0b0b0b;
}
.btn.primary:hover {
  background: #111;
}

.empty {
  border: 1px dashed rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 18px;
  color: rgba(0, 0, 0, 0.7);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
  transition:
    opacity 260ms var(--ease),
    transform 260ms var(--ease);
  z-index: 9999;
  max-width: min(560px, calc(100% - 24px));
  text-align: center;
  font-size: 13px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Responsive confirm modal */
.rc-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 10000;
  padding: 16px;
}

.rc-modal.is-open {
  display: grid;
}

.rc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.rc-modal__dialog {
  position: relative;
  width: min(520px, calc(100% - 24px));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
  padding: 18px;
}

.rc-modal__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.rc-modal__text {
  margin: 0 0 14px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 13px;
  line-height: 1.5;
}

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

.floating-btn-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  height: 50px;
  background: linear-gradient(135deg, #444444, #111111, #000000);

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(85, 85, 85, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  border: none;
  outline: none;
}

.floating-btn-whatsapp:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(85, 85, 85, 0.4);
}

.floating-btn-whatsapp:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 5px 15px rgba(85, 85, 85, 0.4);
}
.floating-btn-whatsapp i {
  color: white;
  font-size: 24px;
  padding: 10px;
}

.floating-btn-whatsapp:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}

.tooltip {
  position: absolute;
  bottom: 55px;
  right: 10px;
  background: linear-gradient(135deg, #444444, #111111, #000000);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}
@media (max-width: 767px) {
  .floating-btn-whatsapp {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 420px) {
  .rc-modal__actions {
    grid-template-columns: 1fr;
  }
}
