/* =========================
   BASE
========================= */
html, body{
  height: 100%;
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cart{
  flex: 1;
}

.cart{
  padding: 32px 0 64px;
  background: #fff;
}

.cart__title{
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* =========================
   MESSAGES
========================= */
.msg{
  margin: 10px 0;
  font-size: 13px;
}
.msg--error{ color: #9a2b2b; }
.msg--success{ color: #1b7a3a; }

/* =========================
   EMPTY STATE
========================= */
.state{
  border: 1px solid var(--line);
  padding: 28px;
  text-align: center;
}

.state h2{
  margin: 0 0 8px;
  font-size: 18px;
}
.state p{
  margin: 0 0 16px;
  color: var(--muted);
}

/* =========================
   BUTTONS & LINKS
========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  background: rgba(111,123,69,.95);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: none;
}

.btn-outline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.link{
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  color: rgba(27,20,18,.75);
}
.link.danger{ color: #9a2b2b; }

/* =========================
   GRID
========================= */
.cart__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

/* =========================
   LIST
========================= */
.list{
  display: grid;
  gap: 18px;
}

/* =========================
   ROW (ITEM)
========================= */
.row{
  display: grid;
  grid-template-columns: 110px 1fr 120px;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.row:last-child{
  border-bottom: none;
}

.row__img img{
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: #f6f6f6;
}

/* INFO */
.row__info{
  display: grid;
  gap: 6px;
}

.row__name{
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.row__name a{
  color: #111;
  text-decoration: none;
}

.row__price{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* CONTROLS */
.row__controls{
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.qty{
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty__label{
  font-size: 12px;
  color: var(--muted);
}
.qty__input{
  width: 64px;
  height: 38px;
  border: 1px solid var(--line);
  padding: 0 8px;
  background: #fff;
}

/* TOTAL */
.row__total{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  font-size: 13px;
}
.row__total strong{
  font-size: 15px;
}

/* =========================
   ACTIONS
========================= */
.cart__actions{
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* =========================
   SUMMARY
========================= */
.sum{
  border: 1px solid var(--line);
  padding: 22px;
}

.sum__title{
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sum__line{
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.sum__note{
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.sum__cta{
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

/* =========================
   RESPONSIVO
========================= */
@media (min-width: 980px){
  .cart__grid{
    grid-template-columns: 1fr 360px;
  }
}

@media (max-width: 680px){
  .row{
    grid-template-columns: 1fr;
  }

  .row__img img{
    width: 100%;
    height: 160px;
  }

  .row__total{
    align-items: flex-start;
  }
}

body{
  min-height: 100vh;
}