/* drawer.css — drawer del pedido (FAB del WhatsApp queda en components.css) */

/* ─── Overlay ─── */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(33,28,24,.18);
  z-index: 200; opacity: 0; transition: opacity .24s;
}
.drawer-overlay.show { opacity: 1; }

/* ─── Drawer ─── */
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 380px;
  background: var(--cream); border-left: 1px solid var(--sand);
  box-shadow: -12px 0 40px rgba(33,28,24,.12);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .24s ease;
  z-index: 201;
}
.drawer.show { transform: translateX(0); }
@media (max-width: 600px) { .drawer { width: 100%; } }

.drawer-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 24px 24px 0;
}
.drawer-head .title {
  font-family: var(--sans); font-size: 26px; font-weight: 400;
}
.drawer-head .title em { font-style: italic; color: var(--earth); }
.drawer-head .x {
  font-family: var(--mono); font-size: 14px; color: var(--earth);
  cursor: pointer; background: 0; border: 0;
}

.drawer-sub {
  padding: 0 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--earth); margin: 6px 0 22px;
}

.drawer-items { padding: 0 24px; overflow-y: auto; flex: 1; }
.drawer-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--linen); align-items: start;
}
.drawer-item:last-child { border-bottom: 0; }
.drawer-item .ph-mini {
  width: 56px; aspect-ratio: 1/1; border-radius: 3px;
  background: linear-gradient(135deg, var(--sand), var(--earth));
}
.drawer-item .name { font-family: var(--sans); font-size: 16px; line-height: 1.2; margin-bottom: 2px; }
.drawer-item .meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  color: var(--earth); margin-bottom: 8px;
}
.drawer-item .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.drawer-item .price {
  font-family: var(--mono); font-size: 13px; color: var(--dark);
  text-align: right; padding-top: 2px;
}
.drawer-item .price.cons { color: var(--earth); font-size: 11px; letter-spacing: .06em; }
.drawer-item .x-line {
  font-family: var(--mono); font-size: 11px; color: var(--earth);
  cursor: pointer; opacity: .7; background: 0; border: 0; padding: 0;
}
.drawer-item .x-line:hover { opacity: 1; }
.drawer-item .qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--sand); border-radius: 99px;
  font-family: var(--mono); font-size: 12px;
}
.drawer-item .qty button {
  background: 0; border: 0; color: var(--earth); font-size: 14px;
  padding: 5px 10px; cursor: pointer;
}
.drawer-item .qty span { padding: 0 4px; min-width: 22px; text-align: center; }

.drawer-empty {
  padding: 0 24px; text-align: center; flex: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  color: var(--earth);
}
.drawer-empty p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 18px; }

.drawer-foot {
  margin-top: auto; padding: 18px 24px 22px;
  border-top: 1px solid var(--sand); background: var(--cream);
}
.note {
  width: 100%; padding: 10px 12px; margin-bottom: 14px;
  background: transparent; border: 1px solid var(--sand); border-radius: 4px;
  font-family: var(--sans); font-size: 13px; color: var(--dark); resize: none;
}
.note::placeholder { color: var(--earth); opacity: .7; }
.total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.total .lbl {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--earth);
}
.total .v { font-family: var(--mono); font-size: 18px; color: var(--dark); }
.total-warning {
  font-family: var(--serif); font-style: italic; font-size: 13px;
  color: var(--earth); margin-bottom: 14px;
}
.btn-whats-send {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 20px; border: 0; cursor: pointer;
  background: var(--whats); color: #fff; border-radius: 99px;
  font-family: var(--sans); font-size: 13px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
}
.btn-whats-send svg { width: 16px; height: 16px; fill: currentColor; }

body.drawer-open { overflow: hidden; }
