/* boomba-cart.css — minimal styles for the custom cart drawer.
   Designed to be visually self-sufficient even when the Shopify theme CSS
   doesn't ship a cart drawer. Uses neutral defaults that play with most themes. */

:root {
  --boomba-drawer-width: 420px;
  --boomba-drawer-bg: #ffffff;
  --boomba-drawer-fg: #1a1a1a;
  --boomba-drawer-border: #e5e5e5;
  --boomba-drawer-accent: #000000;
  --boomba-drawer-shadow: 0 8px 32px rgba(0,0,0,.18);
}

.boomba-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9998;
}
.boomba-cart-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.boomba-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(var(--boomba-drawer-width), 92vw);
  background: var(--boomba-drawer-bg);
  color: var(--boomba-drawer-fg);
  box-shadow: var(--boomba-drawer-shadow);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  font-family: inherit;
}
.boomba-cart-drawer.is-open { transform: translateX(0); }

.boomba-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--boomba-drawer-border);
}
.boomba-cart-drawer__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .02em;
}
.boomba-cart-drawer__close {
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  padding: 0 4px;
}

.boomba-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.boomba-cart-drawer__empty {
  text-align: center;
  color: #777;
  padding: 32px 0;
}

.boomba-cart-drawer__items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.boomba-cart-drawer__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--boomba-drawer-border);
}
.boomba-cart-drawer__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: #f3f3f3;
  border-radius: 4px;
}
.boomba-cart-drawer__meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.boomba-cart-drawer__name {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
}
.boomba-cart-drawer__name:hover { text-decoration: underline; }
.boomba-cart-drawer__price { font-size: 14px; color: #444; }

.boomba-cart-drawer__qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.boomba-cart-drawer__qty-btn {
  width: 28px;
  height: 28px;
  background: #fff;
  border: 1px solid var(--boomba-drawer-border);
  border-radius: 3px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.boomba-cart-drawer__qty-input {
  width: 44px;
  height: 28px;
  text-align: center;
  border: 1px solid var(--boomba-drawer-border);
  border-radius: 3px;
  font: inherit;
  -moz-appearance: textfield;
}
.boomba-cart-drawer__qty-input::-webkit-outer-spin-button,
.boomba-cart-drawer__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.boomba-cart-drawer__remove {
  margin-left: 8px;
  background: none;
  border: 0;
  color: #888;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.boomba-cart-drawer__remove:hover { color: #d33; }

.boomba-cart-drawer__footer {
  border-top: 1px solid var(--boomba-drawer-border);
  padding: 16px 24px 24px;
  background: #fafafa;
}
.boomba-cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 12px;
}
.boomba-cart-drawer__checkout {
  width: 100%;
  padding: 14px 16px;
  background: var(--boomba-drawer-accent);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.boomba-cart-drawer__checkout:disabled { opacity: .5; cursor: not-allowed; }
.boomba-cart-drawer__checkout:not(:disabled):hover { opacity: .9; }
.boomba-cart-drawer__note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: #888;
}

body.boomba-cart-open { overflow: hidden; }
