/* Bolsa de BOME (modal de producto, aviso, /bolsa y /pedido). Usa los tokens de cada página. */

/* Menú: links de texto (sin cápsulas) + íconos de buscar y bolsa */
.logo-bar .logo-bar-actions { gap: 28px; }
.logo-bar .nav-link { border: none; border-radius: 0; padding: 6px 0; background: none; color: var(--ink); }
.logo-bar .nav-link:hover, .logo-bar .nav-link.active { background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.nav-icon {
  display: inline-flex; align-items: center; gap: 3px; padding: 4px; background: none; border: none; cursor: pointer;
  color: var(--ink); text-decoration: none; font-family: var(--body); font-size: 13px; font-weight: 600;
}
.nav-icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; }
.nav-icon:hover svg { stroke: var(--terracotta-d); }
.mob-icon { display: none; }
@media (max-width: 900px) {
  .mob-icon { display: inline-flex; }
  .logo-bar-right { gap: 10px; }
}

/* Buscador: se abre debajo del menú y lleva a rebajas con los resultados */
.search-bar {
  position: absolute; left: 0; right: 0; top: 100%; display: none; gap: 10px; align-items: center;
  background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 56px; box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}
.search-bar.open { display: flex; }
.search-bar input {
  flex: 1; padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--body); font-size: 15px; color: var(--ink); background: var(--paper);
}
.search-bar input:focus { outline: none; border-color: var(--ink); }
.search-bar button { padding: 13px 24px; border: none; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 14px; font-weight: 600; cursor: pointer; }
@media (max-width: 900px) { .search-bar { padding: 12px 18px; } .search-bar button { padding: 13px 18px; } }

/* Modal: tallas + añadir */
.pm-sizes-title { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.pm-size-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.size-pill {
  min-width: 46px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.size-pill:hover, .size-pill.selected { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pm-unica { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.pm-add {
  display: flex; justify-content: center; width: 100%; padding: 15px 26px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 14px; font-weight: 600;
}
.pm-add:hover { background: var(--terracotta-d); }
.pm-add-msg { font-size: 12px; color: var(--price-red); margin: 8px 0 0; min-height: 0; }
.pm-or { font-size: 13px; color: var(--ink-soft); text-align: center; margin: 12px 0 10px; }
.pm-cta.btn-ghost {
  display: flex; align-items: center; justify-content: center; padding: 13.5px 24px; border: 1.5px solid var(--ink); border-radius: 999px;
  color: var(--ink); background: none; font-size: 14px; font-weight: 600; text-decoration: none;
}
.pm-cta.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Aviso al añadir */
.bag-toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 1200; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: 14px 22px; border-radius: 999px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  display: flex; gap: 18px; align-items: center; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.bag-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.bag-toast a { color: var(--paper); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; flex-shrink: 0; white-space: nowrap; }
/* Celular: ocupa el ancho de la pantalla (con margen) para que el texto y "Ver bolsa" no se corten */
@media (max-width: 900px) {
  .bag-toast { left: 16px; right: 16px; bottom: 24px; transform: translateY(20px); justify-content: space-between; white-space: normal; border-radius: 14px; padding: 14px 18px; line-height: 1.4; }
  .bag-toast.show { transform: translateY(0); }
}

/* Página /bolsa */
.bag-main { padding: 48px 56px 80px; }
.bag-title-page { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 28px; }
.bag-body { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.bag-items { border-top: 1px solid var(--line); }
.bag-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.bag-item img { width: 110px; aspect-ratio: 3/4; object-fit: cover; object-position: center top; background: var(--paper-dim); border-radius: var(--r); display: block; }
.bag-item-name { font-family: var(--display); font-size: 17px; margin-bottom: 4px; }
.bag-item-meta { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }
.bag-item-meta strong { color: var(--ink); font-weight: 600; }
.bag-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 12px; }
.bag-qty button { width: 34px; height: 34px; background: none; border: none; cursor: pointer; font-size: 16px; color: var(--ink); }
.bag-qty span { min-width: 24px; text-align: center; font-size: 13px; }
.bag-item-right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.bag-item-price { font-size: 14px; font-weight: 700; color: var(--price-red); }
.bag-item-price .orig { color: var(--ink-soft); font-weight: 500; text-decoration: line-through; margin-right: 6px; }
.bag-remove { background: none; border: none; cursor: pointer; font-size: 12px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; font-family: var(--body); }
.bag-remove:hover { color: var(--ink); }
.bag-empty { padding: 40px 0; }
.bag-empty p { font-size: 15px; margin-bottom: 20px; }
.bag-item.gone img { opacity: .4; filter: grayscale(1); }
.bag-item.gone .bag-item-name, .bag-item.gone .bag-item-meta { opacity: .55; }
.bag-item-alert { font-size: 12px; color: var(--price-red); margin-top: 6px; line-height: 1.5; }

.bag-summary { border: 1px solid var(--line); border-radius: 8px; padding: 28px; position: sticky; top: 100px; }
.bag-summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.bag-summary-row.total { font-weight: 700; font-size: 16px; padding-top: 14px; margin-top: 10px; border-top: 1px solid var(--line); }
.bag-note { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; margin: 20px 0 24px; }
.bag-send {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 16px;
  background: #25D366; color: #fff; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600;
}
.bag-send:hover { filter: brightness(0.95); }
.bag-send svg { width: 18px; height: 18px; fill: #fff; }

/* Página /pedido (la abre la tienda) */
.order { max-width: 860px; margin: 0 auto; padding: 56px 24px 96px; }
.order-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.order-title { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 34px); margin-bottom: 28px; }
.order-items { border-top: 1px solid var(--line); }
.order-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.order-item img { width: 130px; aspect-ratio: 3/4; object-fit: cover; object-position: center top; background: var(--paper-dim); border-radius: var(--r); display: block; }
.order-name { font-family: var(--display); font-size: 18px; margin-bottom: 10px; }
.order-specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; }
.order-specs dt { color: var(--ink-soft); }
.order-specs dd { color: var(--ink); font-weight: 600; }
.order-tag { display: inline-block; margin-top: 12px; padding: 5px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: #f6e3e3; color: #a12b2b; border-radius: var(--r); }
.order-price { font-size: 15px; font-weight: 700; text-align: right; }
.order-row { display: flex; justify-content: space-between; font-size: 14px; padding-top: 12px; }
.order-items + .order-row { padding-top: 22px; }
.order-total { display: flex; justify-content: space-between; padding: 14px 0 0; margin-top: 12px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 700; }

@media (max-width: 900px) {
  .bag-main { padding: 28px 22px 64px; }
  .bag-body { grid-template-columns: 1fr; gap: 28px; }
  .bag-summary { position: static; padding: 22px; }
  .bag-item { grid-template-columns: 88px 1fr; gap: 14px; }
  .bag-item img { width: 88px; }
  .bag-item-right { grid-column: 2; flex-direction: row; align-items: center; }
  .order { padding: 32px 22px 64px; }
  .order-item { grid-template-columns: 96px 1fr; gap: 14px; }
  .order-item img { width: 96px; }
  .order-price { grid-column: 2; text-align: left; }
}
