/* HARDY — Carrito con el recorrido de Hawkers (19/11/2026). */

html:has(body.woocommerce-cart), body.woocommerce-cart { background: #fff; }
body.woocommerce-cart .pagina-cab { display: none; }

.hardy-carro {
  max-width: 920px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 36px;
  align-items: start;
  font-family: var(--f-ui);
  color: var(--vc-tinta, #141414);
}

/* ---------- Líneas ---------- */
.hardy-carro__item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e6e6e4;
}
.hardy-carro__foto img { width: 112px; height: 112px; object-fit: cover; background: #f4f4f3; display: block; }
.hardy-carro__nombre {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: inherit;
}
.hardy-carro__color { display: block; font-size: 13px; color: #6b6b6b; margin-top: 4px; }
.hardy-carro__cant { display: inline-flex; align-items: center; margin-top: 34px; background: #f1f1f0; }
.hardy-carro__cant button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}
.hardy-carro__cant button:hover { background: #e4e4e2; }
.hardy-carro__cant .quantity { margin: 0 !important; }
.hardy-carro__cant input.qty {
  width: 30px !important;
  height: 30px;
  padding: 0 !important;
  border: 0 !important;
  background: #fff !important;
  text-align: center;
  font-size: 14px;
  -moz-appearance: textfield;
}
.hardy-carro__cant input.qty::-webkit-outer-spin-button,
.hardy-carro__cant input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hardy-carro__lado { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.hardy-carro__quitar { color: inherit; }
.hardy-carro__quitar svg { width: 20px; height: 20px; }
.hardy-carro__precio { font-size: 15px; font-weight: 700; }
.hardy-carro__actualizar { display: none !important; }

/* ---------- Títulos con barrita, como «Completa tu pedido» ---------- */
.hardy-carro h2.hardy-tit-barra,
.hardy-carro__recos h2.hardy-tit-barra {
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 10px;
  position: relative;
}
.hardy-tit-barra::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 3px;
  background: #d6d6d4;
}

/* ---------- Completá tu look ---------- */
.hardy-carro__look { margin-top: 30px; }
.hardy-carro__look ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.hardy-carro__look li { position: relative; }
.hardy-carro__look .foto img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f4f4f3; display: block; }
.hardy-carro__look .mas {
  position: absolute;
  right: 8px;
  top: calc(100% - 82px);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--vc-tinta, #141414);
  font-size: 16px;
  line-height: 1;
  color: inherit;
}
.hardy-carro__look .n { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #6b6b6b; margin: 8px 4px 2px; }
.hardy-carro__look .p { display: block; font-size: 13px; font-weight: 600; margin: 0 4px; }

/* ---------- Resumen ---------- */
.hardy-carro__resumen { position: sticky; top: 96px; display: grid; gap: 14px; }
.hardy-carro__caja { border: 1px solid #dcdcda; padding: 18px; }
.hardy-carro__total { display: flex; justify-content: space-between; align-items: baseline; text-transform: uppercase; font-size: 15px; font-weight: 600; }
.hardy-carro__total strong { font-size: 18px; font-weight: 700; }
.hardy-carro__total strong small { display: none; }
.hardy-carro__envio {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6e6e4;
  color: #1f9d6b;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hardy-carro__envio svg { width: 22px; height: 22px; }
.hardy-carro__legal { font-size: 11.5px; color: #8a8a8a; line-height: 1.45; margin: 0 0 10px; }
.hardy-carro__legal a { color: inherit; text-decoration: underline; }
.hardy-carro__continuar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  background: var(--vc-tinta, #141414);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hardy-carro__continuar:hover { background: #000; color: #fff; }
.hardy-carro__medios { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 10px; }
.hardy-carro__medios span {
  border: 1px solid #e0e0de;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #4a4a4a;
}
.hardy-carro__cuotas { text-align: center; font-size: 13px; color: var(--vc-rojo, #d7261e); margin: 0; }

.hardy-carro__info { background: #f4f4f3; padding: 16px 18px; display: grid; gap: 12px; }
.hardy-carro__info p { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin: 0; }
.hardy-carro__info svg { width: 20px; height: 20px; flex: none; }

.hardy-carro__cupon { border: 1px solid #dcdcda; padding: 14px 18px; display: flex; gap: 10px; }
.hardy-carro__cupon input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  background: #f1f1f0;
  padding: 0 14px;
  font-size: 14px;
}
.hardy-carro__cupon button {
  height: 42px;
  padding: 0 16px;
  border: 0;
  background: var(--vc-tinta, #141414);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.hardy-carro__cupon-ok { font-size: 13px; margin: 0; }

/* ---------- Te recomendamos ---------- */
.hardy-carro__recos { max-width: 920px; margin: 48px auto 0; padding-top: 28px; border-top: 1px solid #e6e6e4; }
.hardy-carro__recos ul.products { grid-template-columns: repeat(4, 1fr) !important; gap: 4px !important; }

/* ---------- Carrito vacío ---------- */
body.woocommerce-cart .cart-empty,
body.woocommerce-cart .return-to-shop { text-align: center; font-family: var(--f-ui); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hardy-carro { grid-template-columns: 1fr; gap: 24px; margin-top: 8px; }
  .hardy-carro__resumen { position: static; }
  .hardy-carro__item { grid-template-columns: 88px minmax(0, 1fr) auto; }
  .hardy-carro__foto img { width: 88px; height: 88px; }
  .hardy-carro__cant { margin-top: 16px; }
  .hardy-carro__look ul,
  .hardy-carro__recos ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---------- Barra fija del celular ---------- */
.hardy-carro__barra { display: none; }
@media (max-width: 860px) {
  .hardy-carro__barra {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: #fff;
    border-top: 1px solid #e6e6e4;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .hardy-carro__barra > div > span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #6b6b6b; }
  .hardy-carro__barra strong { font-size: 17px; font-weight: 700; }
  .hardy-carro__barra strong small { display: none; }
  .hardy-carro__barra .hardy-carro__continuar { height: 48px; }
  /* El lugar de la barra fija lo da el pie oscuro, no una franja blanca debajo (QA 24/11). */
  body.woocommerce-cart:has(.hardy-carro__barra) .footer { padding-bottom: 110px; }
  body.woocommerce-cart .hardy-wa, body.woocommerce-cart .whatsapp-flotante, body.woocommerce-cart [class*="wa-flot"] { bottom: 88px !important; }
}
@media (max-width: 860px) { .hardy-carro__barra strong, .hardy-carro__barra strong * { white-space: nowrap; } .hardy-carro__barra { grid-template-columns: max-content 1fr; } }
.hardy-carro__cupon input[type="text"] { background: #f1f1f0 !important; border: 0 !important; border-radius: 0 !important; }
.hardy-carro__quitar { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.hardy-carro__seguir { display: block; text-align: center; margin-top: 12px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.hardy-carro__cant button { color: var(--vc-tinta, #141414); font-weight: 600; }
.hardy-carro__llega { font-size: 13px; line-height: 1.45; margin: -4px 0 14px; color: #3a3a3a; }
/* Los avisos de WooCommerce entran adentro de la grilla del carrito: que ocupen todo el ancho. */
.hardy-carro > .woocommerce-error,
.hardy-carro > .woocommerce-message,
.hardy-carro > .woocommerce-info,
.hardy-carro > .woocommerce-notices-wrapper { grid-column: 1 / -1; margin: 0; }
/* Sin el encabezado editorial, el carrito arrancaba debajo del header fijo:
   tapaba el primer anteojo y los avisos (cupón inválido, producto agregado). */
body.woocommerce-cart article.pagina { padding-top: 98px; }
@media (max-width: 860px) { body.woocommerce-cart article.pagina { padding-top: 78px; } }
/* Al sumar desde «Completá tu look» el aviso traía «Ver carrito» estando ya en el carrito. */
body.woocommerce-cart .woocommerce-message .wc-forward { display: none; }
